From gambas.fr at ...626... Mon Sep 1 00:11:02 2008 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 1 Sep 2008 00:11:02 +0200 Subject: [Gambas-user] Nice book of Gambas In-Reply-To: <20080831141607.f740hxdf4o4s0okc@...1958...> References: <48BABD12.6060805@...1400...> <799be1690808311215s4ab965d4l941ddd2b67536653@...627...> <20080831141607.f740hxdf4o4s0okc@...1958...> Message-ID: <6324a42a0808311511s7af2a086v81e8eb9bcbde72af@...627...> i'mm not sure that J. Rittinghouse write something else as he is really sick. Fabien Bodard 2008/8/31 : > Quoting Jason Hackney : > >> First of all, I bought this book. Mr. Rittinghouse obviously worked >> very hard on it and I felt he deserves a little something for his >> effort. >> >> Does anyone know if Mr. Rittinghouse plans on releasing an updated >> version of this book? There are inconsistencies, errors, and just >> plain outdated information throughout the current version. >> >> Just two examples: >> >> 1) There are some details omitted (or just not well clarified for a >> beginner) in the chapter regarding drawing. >> 2) The CASE/SELECT information could be more complete. >> >> I'd really, REALLY like to see some sort of reference (I know, >> that would be a book in itself!!) >> >> Otherwise, it's a decent book (I've been using it primarily as a >> reference). I'd love to help make it better. I have a knack for >> finding mundane nuggets of goodness that can be cleaned up. >> >> Jason > > Sounds like a prime candidate for a Wiki project. ;-) > >> >> p.s. John, if you're out there, I'm serious about the offer to help. >> > > Thanks ! > > I didn't want to be a pest here. I think the www.AllBasic.Info site is > maturing quickly. (almost a month old) I wish you guys would show some > of your stuff over there and knock some socks off with Gambas. You > already have the HotBasic Linux guru hooked. ;-) > > John > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From admin at ...1956... Mon Sep 1 00:19:17 2008 From: admin at ...1956... (admin at ...1956...) Date: Sun, 31 Aug 2008 15:19:17 -0700 Subject: [Gambas-user] Nice book of Gambas In-Reply-To: <6324a42a0808311511s7af2a086v81e8eb9bcbde72af@...627...> References: <48BABD12.6060805@...1400...> <799be1690808311215s4ab965d4l941ddd2b67536653@...627...> <20080831141607.f740hxdf4o4s0okc@...1958...> <6324a42a0808311511s7af2a086v81e8eb9bcbde72af@...627...> Message-ID: <20080831151917.xf4u7gywhwk4cck4@...1958...> Quoting Fabien Bodard : > i'mm not sure that J. Rittinghouse write something else as he is really sick. > > Fabien Bodard That is sad news. Maybe the work he did could be used as a foundation to build on with a wiki and a PayPal Donation button could be added. I would contribute. John From rterry at ...1946... Mon Sep 1 01:29:49 2008 From: rterry at ...1946... (richard terry) Date: Mon, 1 Sep 2008 09:29:49 +1000 Subject: [Gambas-user] Q:how to save a file.png into Postgresql In-Reply-To: <200808311142.52986.rolf.frogs@...221...> References: <200808290722.21869.rterry@...1946...> <200808311110.49289.rterry@...1946...> <200808311142.52986.rolf.frogs@...221...> Message-ID: <200809010929.49549.rterry@...1946...> Hi Rof, thanks for taking the time to reply. Dies at the line containing 'Coct' with message: unknown identifier but I'm sure this way is good, as I can remember reading something about this in the postgres doc's but couldn't figure out how to do the substitution. Next step? thanks. Richard > On Sun, 31 Aug 2008 07:42:49 pm Rolf Schmidt wrote: > Hi richard > > > Public sub Save_Image(ImagePath as string) > > > > Dim img As Image > > Dim pictureData As String > > Dim sql As String > > > > img = Image.Load(ImagePath) ' Save temp image as png file > > tempFile = Temp() & ".png" > > img.Save(tempFile) > > > > > > pictureData = File.Load(tempFile) 'reload as a string > > > > > > At this point the pictureData string seems to be ok. > > > > I Then tried writing to the database: > > > > sql = "insert into temp_image(piccie)" > > "values($$" > > sql = sql & pictureData & "$$)" > > > > and got back this message: > > > > Query failed:ERROR: invalid byte sequence for encoding "UTF8":0x89 HINT: > > This error can also happen if the byte sequence does not match the > > encoding expected by the server, which is controlled by > > "client_encoding" > > Hope you defined your database field as byta for blob. > Then you have to mask out a lot of byte codes in your picture data. > > I did it like this: > > PUBLIC SUB SavePic_Click() > DIM hFile AS Stream > DIM buffer AS Byte > DIM picText AS String > > OPEN NameOfPic FOR INPUT AS #hFile > WHILE NOT Eof(hFile) > READ #hFile, buffer, lof(hFile) > IF buffer < 32 OR buffer > 126 THEN > picText = picText & "\\\\" & Coct(buffer) > ELSE > SELECT buffer > CASE 92 ' mask "|" char > picText = picText & "\\\\134" > CASE 39 ' mask "'" char > picText = picText & "\\'" > DEFAULT > picText = picText & Chr$(buffer) > END SELECT > END IF > WEND > CLOSE hFile > > query = "insert into table (picci) values ('" & picText & "')" > .... > END > > Hope that helps > Fine regards > Rolf From sourceforge-raindog2 at ...94... Mon Sep 1 02:20:11 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Sun, 31 Aug 2008 20:20:11 -0400 Subject: [Gambas-user] Drawing Persistence In-Reply-To: <799be1690808311338g274c7fe0u85ff015e9df8d04b@...627...> References: <799be1690808311338g274c7fe0u85ff015e9df8d04b@...627...> Message-ID: <200808312020.12472.sourceforge-raindog2@...94...> On Sunday 31 August 2008 16:38, Jason Hackney wrote: > How do you make an image in the Drawing Area persistent? > That is, I draw a box. Then open a popup (which appears directly over > my drawing). Close the popup when I'm done and parts of my drawing > (which were covered by the popup) are blanked out--needing to be > redrawn by calling the initial drawing event. You want the Cached property. http://www.gambasdoc.org/help/comp/gb.qt/drawingarea/cached Rob From gambas at ...1... Mon Sep 1 03:01:18 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 1 Sep 2008 03:01:18 +0200 Subject: [Gambas-user] New feature in Gambas 3 development version Message-ID: <200809010301.19030.gambas@...1...> Hi, If you use the development version, now you can declare typed object arrays: DIM ArrayOfLabels AS Label[8, 8] The Label[] class is dynamically created by the interpreter the first time it is used. It has exactly the same features as the Object[] class, except that it always returns Labels, not Objects. So, something like: ArrayOfLabels[1, 1].Text = "Hello" becomes faster as the interpreter now knows that ArrayOfLabels[1, 1] returns a label, and so can optimize the property access. This feature is more powerful. Any class can be followed by "[]" to become an typed array class, and this process is recursive. So "String[][][]" is an array of array of array of String! I don't know if it useful in that specific case... At the moment, the IDE automatic completion does not understand this new syntax. But it is planned. I want to enhance this "template" feature: I'd like to do something like: DIM MyIndex AS String.Collection to be able to declare a Collection whose elements are strings. It could be faster than using the standard Collection, whose elements are variants. Then we will be able to do weird things, like: DIM WhatTheFuck AS String.Collection[].Collection That would be a Collection whose elements are arrays of Collection whose elemnts are String. And maybe we could go further: using any class as template. Something like: DIM MyListOfString AS String.List where List is a class written in Gambas. I don't know that last feature would be really useful anyway. Waiting for people comments now... :-) Regards, -- Benoit Minisini From jshackney at ...626... Mon Sep 1 03:50:18 2008 From: jshackney at ...626... (Jason Hackney) Date: Sun, 31 Aug 2008 21:50:18 -0400 Subject: [Gambas-user] Drawing Persistence In-Reply-To: <200808312020.12472.sourceforge-raindog2@...94...> References: <799be1690808311338g274c7fe0u85ff015e9df8d04b@...627...> <200808312020.12472.sourceforge-raindog2@...94...> Message-ID: <799be1690808311850ybd2f5e9gf1b06ca00706c379@...627...> Hey Rob, thanks for the direction. Got it working now. I was confusing how clear, cached, and refresh work with each other. I think I got 'em all set now. :-) Cheers. > You want the Cached property. > > http://www.gambasdoc.org/help/comp/gb.qt/drawingarea/cached > > Rob From rterry at ...1946... Mon Sep 1 06:15:24 2008 From: rterry at ...1946... (richard terry) Date: Mon, 1 Sep 2008 14:15:24 +1000 Subject: [Gambas-user] Database manager bug In-Reply-To: <200808191217.17889.gambas@...1...> References: <200808191354.15271.rterry@...1946...> <200808191217.17889.gambas@...1...> Message-ID: <200809011415.24485.rterry@...1946...> Further to this problem, now on Build 1532, I wonder if Benoit could point me on where to proceed. After my recent posts about difficulty saving images, I decided to give the database manager another try, and it bugs out in just the same way, first when clicking on ones database it comes up saying it can't find a particular table, then when I try again (after about 2-3 tries) it bugs out with the error message. Is there any way I can do this with some tracing, to help find the bug? Regards Richard On Tue, 19 Aug 2008 08:17:17 pm Benoit Minisini wrote: > On mardi 19 ao?t 2008, richard terry wrote: > > I don't use this ever, but decided to give it a try. It came up with > > error that it couldn't find a table (which is there because I checked) > > and then the second time I repeated the action (clicking on the database > > name in the tree control), it bugged out with the error message below. > > > > Regards > > > > Richard > > Which version of gambas do you use? > > Which database server do you use? > > What is the name of the table? postgresql 8.2.4-2 gambas 1503 and building 1506 as I type. table was just one of mine called lu_instructions, I think the name is irrelevant. If you give me any clues how to, I will try and check it out. Richard -------------- next part -------------- A non-text attachment was scrubbed... Name: database_Bug.png Type: image/png Size: 26179 bytes Desc: not available URL: From robertsonhamish at ...626... Mon Sep 1 08:59:41 2008 From: robertsonhamish at ...626... (Hamish Robertson) Date: Mon, 1 Sep 2008 13:59:41 +0700 Subject: [Gambas-user] Nice book of Gambas In-Reply-To: <20080831151917.xf4u7gywhwk4cck4@...1958...> References: <48BABD12.6060805@...1400...> <799be1690808311215s4ab965d4l941ddd2b67536653@...627...> <20080831141607.f740hxdf4o4s0okc@...1958...> <6324a42a0808311511s7af2a086v81e8eb9bcbde72af@...627...> <20080831151917.xf4u7gywhwk4cck4@...1958...> Message-ID: So would I. Turning that book into a wiki is a great Idea. Would John be up for that though? On 01/09/2008, admin at ...1956... wrote: > Quoting Fabien Bodard : > >> i'mm not sure that J. Rittinghouse write something else as he is really >> sick. >> >> Fabien Bodard > > That is sad news. > > Maybe the work he did could be used as a foundation to build on with a > wiki and a PayPal Donation button could be added. I would contribute. > > > John > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From admin at ...1956... Mon Sep 1 09:24:49 2008 From: admin at ...1956... (admin at ...1956...) Date: Mon, 01 Sep 2008 00:24:49 -0700 Subject: [Gambas-user] Nice book of Gambas In-Reply-To: References: <48BABD12.6060805@...1400...> <799be1690808311215s4ab965d4l941ddd2b67536653@...627...> <20080831141607.f740hxdf4o4s0okc@...1958...> <6324a42a0808311511s7af2a086v81e8eb9bcbde72af@...627...> <20080831151917.xf4u7gywhwk4cck4@...1958...> Message-ID: <20080901002449.zqtnzw9ps04c4w0o@...1958...> Quoting Hamish Robertson : > So would I. Turning that book into a wiki is a great Idea. Would John > be up for that though? > I would be happy to host this wiki. I'll set it up and the group here can pick an administrator which can assign sysop's to help. http://Gambas.AllBasic.Info I would install Mediawiki as the platform. Just over the net and in your court. ;-) John From robertsonhamish at ...626... Mon Sep 1 09:48:11 2008 From: robertsonhamish at ...626... (Hamish Robertson) Date: Mon, 1 Sep 2008 14:48:11 +0700 Subject: [Gambas-user] Nice book of Gambas In-Reply-To: <20080901002449.zqtnzw9ps04c4w0o@...1958...> References: <48BABD12.6060805@...1400...> <799be1690808311215s4ab965d4l941ddd2b67536653@...627...> <20080831141607.f740hxdf4o4s0okc@...1958...> <6324a42a0808311511s7af2a086v81e8eb9bcbde72af@...627...> <20080831151917.xf4u7gywhwk4cck4@...1958...> <20080901002449.zqtnzw9ps04c4w0o@...1958...> Message-ID: Er, I think this one should be up to John. :) I've emailed him. See what he says. H. On 01/09/2008, admin at ...1956... wrote: > Quoting Hamish Robertson : > >> So would I. Turning that book into a wiki is a great Idea. Would John >> be up for that though? >> > > I would be happy to host this wiki. I'll set it up and the group here > can pick an administrator which can assign sysop's to help. > > http://Gambas.AllBasic.Info > > I would install Mediawiki as the platform. > > Just over the net and in your court. ;-) > > > John > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From maximvonk at ...626... Mon Sep 1 10:39:43 2008 From: maximvonk at ...626... (MaxVK) Date: Mon, 1 Sep 2008 01:39:43 -0700 (PDT) Subject: [Gambas-user] Ubuntu packages updated In-Reply-To: <7259b5ae0803261127w338d7216r3ca018ed73f7e246@...627...> References: <7259b5ae0803261127w338d7216r3ca018ed73f7e246@...627...> Message-ID: <19250295.post@...1379...> Hello there. Many thanks for supplying this information. However, I have something of a problem (I think). Iv added the line "deb http://azores.linex.org/gambas-other gutsy main" and quite correctly the update is picked up by the system. However, when the update manager lists the available updates I am told that only a partial update is possible. Further examination within synaptic allows me to select all of the available updates but when I click apply the list of changes includes completely removing both of the applications that I have written with Gambas and use on a regular basis. The currently installed versions of the updates are reported as 2.0.00910 Is there some way around this or do I need to recompile and re-install my current programs? I know I'm a bit behind the current versions, but Iv been off the computer for some time now and I'm eager to catch up and carry on where I left off. Regards Max Daniel Campos-3 wrote: > > Hi: > > I've updated Ubuntu packages at gnuLinEx site to 2.4.1: > > Gutsy -> amd64 and i386 > Feisty -> amd64 and i386 > Edgy -> i386 > > I'll soon abandon Edgy support, there are quite few downloads for that > version in the logs, I made them mainly for Guadalinex spanish > distribution but soon they will upgrade to Ubuntu 8. > > For sources.list file: > > deb http://azores.linex.org/gambas-other gutsy main > > or > > deb http://azores.linex.org/gambas-other feisty main > > or > > deb http://azores.linex.org/gambas-other edgy main > > Regards, > > Daniel > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://www.nabble.com/Ubuntu-packages-updated-tp16312463p19250295.html Sent from the gambas-user mailing list archive at Nabble.com. From admin at ...1956... Mon Sep 1 10:52:16 2008 From: admin at ...1956... (admin at ...1956...) Date: Mon, 01 Sep 2008 01:52:16 -0700 Subject: [Gambas-user] Nice book of Gambas In-Reply-To: References: <48BABD12.6060805@...1400...> <799be1690808311215s4ab965d4l941ddd2b67536653@...627...> <20080831141607.f740hxdf4o4s0okc@...1958...> <6324a42a0808311511s7af2a086v81e8eb9bcbde72af@...627...> <20080831151917.xf4u7gywhwk4cck4@...1958...> <20080901002449.zqtnzw9ps04c4w0o@...1958...> Message-ID: <20080901015216.dfdrltqf6gcso8ow@...1958...> Quoting Hamish Robertson : > Er, I think this one should be up to John. :) > > I've emailed him. See what he says. > I didn't get your e-mail so try support_AT_scriptbasic_DOT_org . If you already have permission to make this a GNU FDL document, I have no problem with facilitating it as a sub-domain of All Basic. Moving the content to the wiki will have to the Gambas groups project. John From admin at ...1956... Mon Sep 1 11:06:06 2008 From: admin at ...1956... (admin at ...1956...) Date: Mon, 01 Sep 2008 02:06:06 -0700 Subject: [Gambas-user] Nice book of Gambas In-Reply-To: References: <48BABD12.6060805@...1400...> <799be1690808311215s4ab965d4l941ddd2b67536653@...627...> <20080831141607.f740hxdf4o4s0okc@...1958...> <6324a42a0808311511s7af2a086v81e8eb9bcbde72af@...627...> <20080831151917.xf4u7gywhwk4cck4@...1958...> <20080901002449.zqtnzw9ps04c4w0o@...1958...> Message-ID: <20080901020606.q9m7qza5w84wo8sc@...1958...> Quoting Hamish Robertson : > Er, I think this one should be up to John. :) > I fine with it after reading the license and restrictions. Sure would be nice if someone could move this into Open Office which exports to Mediawiki. I'll post something here when the wiki is ready for use. John From mike.crean at ...1940... Mon Sep 1 11:53:46 2008 From: mike.crean at ...1940... (Mike) Date: Mon, 1 Sep 2008 17:53:46 +0800 Subject: [Gambas-user] broken link Message-ID: <20080901095347.025E33DBCD5@...1961...> Benoit, on the Gambas site the link bellow seems to be broken. http://gambas.gnulinex.org/ubuntu Regards Mike From klaine8 at ...626... Mon Sep 1 12:33:58 2008 From: klaine8 at ...626... (Kari Laine) Date: Mon, 1 Sep 2008 13:33:58 +0300 Subject: [Gambas-user] Nice book of Gambas In-Reply-To: <20080901020606.q9m7qza5w84wo8sc@...1958...> References: <48BABD12.6060805@...1400...> <799be1690808311215s4ab965d4l941ddd2b67536653@...627...> <20080831141607.f740hxdf4o4s0okc@...1958...> <6324a42a0808311511s7af2a086v81e8eb9bcbde72af@...627...> <20080831151917.xf4u7gywhwk4cck4@...1958...> <20080901002449.zqtnzw9ps04c4w0o@...1958...> <20080901020606.q9m7qza5w84wo8sc@...1958...> Message-ID: <61452b690809010333h5c2ec759l9ac296f76022fe75@...627...> So did John give permission for the book to go wiki? How a pdf can be converted to text? Is it possible with commercial acrobat ? Best Regards Kari Laine On Mon, Sep 1, 2008 at 12:06 PM, wrote: > Quoting Hamish Robertson : > > > Er, I think this one should be up to John. :) > > > > I fine with it after reading the license and restrictions. > > Sure would be nice if someone could move this into Open Office which > exports to Mediawiki. > > I'll post something here when the wiki is ready for use. > > > John > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From admin at ...1956... Mon Sep 1 12:48:24 2008 From: admin at ...1956... (admin at ...1956...) Date: Mon, 01 Sep 2008 03:48:24 -0700 Subject: [Gambas-user] Nice book of Gambas In-Reply-To: <61452b690809010333h5c2ec759l9ac296f76022fe75@...627...> References: <48BABD12.6060805@...1400...> <799be1690808311215s4ab965d4l941ddd2b67536653@...627...> <20080831141607.f740hxdf4o4s0okc@...1958...> <6324a42a0808311511s7af2a086v81e8eb9bcbde72af@...627...> <20080831151917.xf4u7gywhwk4cck4@...1958...> <20080901002449.zqtnzw9ps04c4w0o@...1958...> <20080901020606.q9m7qza5w84wo8sc@...1958...> <61452b690809010333h5c2ec759l9ac296f76022fe75@...627...> Message-ID: <20080901034824.se8imhch8ogwc08w@...1958...> Quoting Kari Laine : > So did John give permission for the book to go wiki? > How a pdf can be converted to text? Is it possible with commercial acrobat ? > > Best Regards > Kari Laine Hi Kari, I have the http://gambas.allbasic.info domain active with a temporary home page. I will install Mediawiki tomorrow. (late here) You will need to register an account on the wiki with a valid e-mail address to post. (helps with spam bots) Open Office will export to Mediawiki format. I'll take a shot at converting the PDF to a HTML document after the wiki is installed. If someone else can take care of content preparation that would be great. John From gambas at ...1938... Mon Sep 1 12:49:13 2008 From: gambas at ...1938... (gambas at ...1938...) Date: Mon, 1 Sep 2008 12:49:13 +0200 Subject: [Gambas-user] Nice book of Gambas In-Reply-To: <61452b690809010333h5c2ec759l9ac296f76022fe75@...627...> References: <48BABD12.6060805@...1400...> <20080901020606.q9m7qza5w84wo8sc@...1958...> <61452b690809010333h5c2ec759l9ac296f76022fe75@...627...> Message-ID: <200809011249.13596.gambas@...1938...> Am Montag, 1. September 2008 12:33:58 schrieb Kari Laine: > So did John give permission for the book to go wiki? > How a pdf can be converted to text? Is it possible with commercial acrobat > ? > > Best Regards > Kari Laine If John would give permission to use his book as basis for a wiki, he also could donate his original script...both depends on the contracts between John and the publishing company. Greetz Stevie From admin at ...1956... Mon Sep 1 12:55:53 2008 From: admin at ...1956... (admin at ...1956...) Date: Mon, 01 Sep 2008 03:55:53 -0700 Subject: [Gambas-user] Nice book of Gambas In-Reply-To: <200809011249.13596.gambas@...1938...> References: <48BABD12.6060805@...1400...> <20080901020606.q9m7qza5w84wo8sc@...1958...> <61452b690809010333h5c2ec759l9ac296f76022fe75@...627...> <200809011249.13596.gambas@...1938...> Message-ID: <20080901035553.mtpfp85lw4cwgw0w@...1958...> Quoting gambas at ...1938...: > Am Montag, 1. September 2008 12:33:58 schrieb Kari Laine: >> So did John give permission for the book to go wiki? >> How a pdf can be converted to text? Is it possible with commercial acrobat >> ? >> >> Best Regards >> Kari Laine > If John would give permission to use his book as basis for a wiki, he also > could donate his original script...both depends on the contracts between John > and the publishing company. > > Greetz > Stevie Based on what I understand from the license section of the PDF, the book was made an open document with the ability to expand on it. If I read it wrong, please correct my error. John From doriano.blengino at ...1909... Mon Sep 1 13:07:10 2008 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Mon, 01 Sep 2008 13:07:10 +0200 Subject: [Gambas-user] New feature in Gambas 3 development version In-Reply-To: <200809010301.19030.gambas@...1...> References: <200809010301.19030.gambas@...1...> Message-ID: <48BBCCDE.7060106@...1909...> Benoit Minisini ha scritto: > Hi, > > If you use the development version, now you can declare typed object arrays: > > DIM ArrayOfLabels AS Label[8, 8] > > The Label[] class is dynamically created by the interpreter the first time it > is used. > > It has exactly the same features as the Object[] class, except that it always > returns Labels, not Objects. > > So, something like: > > ArrayOfLabels[1, 1].Text = "Hello" > > becomes faster as the interpreter now knows that ArrayOfLabels[1, 1] returns a > label, and so can optimize the property access. > I think that every step in direction of more strong typing is a good step, for two reasons. First is the possibility for the compiler to check for type mismatches: it is better to catch errors at compile time instead to catch them at runtime. Next, optimization and speed-up is an added value, thanks to the fact that the interpreter already knows what is happening. > This feature is more powerful. Any class can be followed by "[]" to become an > typed array class, and this process is recursive. > > So "String[][][]" is an array of array of array of String! I don't know if it > useful in that specific case... > Generalization of concepts is always good, in my opinion; one can think at something, and know that it will work, without exceptions. Why one could have an "array of labels", but not an "array of arrays (of something)"? I suspect that an array of array is simply a bi-dimensional array (at least at the logic level - for the CPU they could be two different things), but still prefer to have two different ways to declare it. > I want to enhance this "template" feature: I'd like to do something like: > > DIM MyIndex AS String.Collection > > to be able to declare a Collection whose elements are strings. It could be > faster than using the standard Collection, whose elements are variants. > Again, strong typization is the key. Variants are nice, but they should be used only when convenient. If all that one wants are numbers (for example, integers), then an Integer.Collection saves memory and CPU time, code is clearer, and more protected from errors. In fact, I always look with suspect to heterogeneous collections, lists or arrays. There are languages which proudly claim to have heterogeneous lists; I think they should be avoided as much as possible. There are cases where this is almost required, for example the collection of controls owned by a Form but, in my opinion, they should be typecasted explicitly by the programmer. To do the same thing (a homogeneous collection of something), other languages require to derive a new collection type from the ancestor one, which contains the basilar function of "Collection". While this is powerful, it is also tedious and unnecessary most of the times... so, I definately say that I would be very content about this feature. > And maybe we could go further: using any class as template. Something like: > > DIM MyListOfString AS String.List > > where List is a class written in Gambas. > > I don't know that last feature would be really useful anyway. > Right now, nothing comes to my mind about the usefulness of such a thing. And I suspect it is nearly impossible to implement in a correct way. But there are counter reasons to both the sentences. Nobody can say a thing is useless just because he can not imagine a useful way to deploy it... so, who can tell? The second argument is more strict. If we think at the List class as something similar to a collection, then the List class should implement methods to read, write, add and delete elements (strings, in this case). All these things are already present in Collection class. If we do not think at the Collection similarity, then what could the List class do? And how should it be implemented? And why should we have a declarative part (the "AS String.List") possibly conflicting with the implementation part? The implementation of the List class already should/could contain methods which require/return the correct type (String), so an added declaration is a complication. In other words, I see a conflict between declaration (String.List) and implementation of the List class, unless the List class always talks "variants", and the compiler converts the variant type from/to String (because String is in declaration String.List). Please note: the compiler does type conversion, not the interpreter. In the latter case, these things are already present in the language (at interpreter level). If what is wanted is a more specialized version of Collection, with added functionalities, then inheriting from Collection would be more appropriate. Hope I succeded in explaining myself. I can't remember right now if it is possible in gambas to define array properties but, if it is so, then all the semantics required to cover the Collection/Array are already present. If array properties are not inside, they could be added... Anyway, the xxxx.Collection is a great, useful, clean, easy to use idea. Best salutations, Doriano Blengino From klaine8 at ...626... Mon Sep 1 13:05:21 2008 From: klaine8 at ...626... (Kari Laine) Date: Mon, 1 Sep 2008 14:05:21 +0300 Subject: [Gambas-user] Nice book of Gambas In-Reply-To: <20080901035553.mtpfp85lw4cwgw0w@...1958...> References: <48BABD12.6060805@...1400...> <20080901020606.q9m7qza5w84wo8sc@...1958...> <61452b690809010333h5c2ec759l9ac296f76022fe75@...627...> <200809011249.13596.gambas@...1938...> <20080901035553.mtpfp85lw4cwgw0w@...1958...> Message-ID: <61452b690809010405h258e3321u8b8a3016ee2920b6@...627...> > > > Based on what I understand from the license section of the PDF, the > book was made an open document with the ability to expand on it. If I > read it wrong, please correct my error. > > I think the original text is still needed. I tried to convert it with pdftohtml and got this error susePK1:/home/kari/kirjat # pdftohtml gambas_beginner_guide.pdf gambas.html Error: Copying of text from this document is not allowed. So the pdf is protected. I don't know whether it possible to hack pdftohtml to ignore that... If it is really open document and publishing company or John don't object it we could divide the work to 50 pages each and start typing :-) But it would be nice to get the source. Best Regards Kari From admin at ...1956... Mon Sep 1 13:11:08 2008 From: admin at ...1956... (admin at ...1956...) Date: Mon, 01 Sep 2008 04:11:08 -0700 Subject: [Gambas-user] Nice book of Gambas In-Reply-To: <61452b690809010405h258e3321u8b8a3016ee2920b6@...627...> References: <48BABD12.6060805@...1400...> <20080901020606.q9m7qza5w84wo8sc@...1958...> <61452b690809010333h5c2ec759l9ac296f76022fe75@...627...> <200809011249.13596.gambas@...1938...> <20080901035553.mtpfp85lw4cwgw0w@...1958...> <61452b690809010405h258e3321u8b8a3016ee2920b6@...627...> Message-ID: <20080901041108.njb1osgekg488kwc@...1958...> Quoting Kari Laine : >> >> >> Based on what I understand from the license section of the PDF, the >> book was made an open document with the ability to expand on it. If I >> read it wrong, please correct my error. >> >> I think the original text is still needed. I tried to convert it with > pdftohtml and got this error > > susePK1:/home/kari/kirjat # pdftohtml gambas_beginner_guide.pdf gambas.html > Error: Copying of text from this document is not allowed. > > So the pdf is protected. I don't know whether it possible to hack pdftohtml > to ignore that... > > If it is really open document and publishing company or John don't object it > we could divide the work to 50 pages each and start typing :-) But it would > be nice to get the source. > Kari, I tried as well. Can you take the lead on getting the password or the original source document? John From charles at ...1784... Mon Sep 1 13:35:22 2008 From: charles at ...1784... (charlesg) Date: Mon, 1 Sep 2008 04:35:22 -0700 (PDT) Subject: [Gambas-user] Nice book of Gambas In-Reply-To: <61452b690809010405h258e3321u8b8a3016ee2920b6@...627...> References: <48BABD12.6060805@...1400...> <799be1690808311215s4ab965d4l941ddd2b67536653@...627...> <20080831141607.f740hxdf4o4s0okc@...1958...> <6324a42a0808311511s7af2a086v81e8eb9bcbde72af@...627...> <20080831151917.xf4u7gywhwk4cck4@...1958...> <20080901002449.zqtnzw9ps04c4w0o@...1958...> <20080901020606.q9m7qza5w84wo8sc@...1958...> <61452b690809010333h5c2ec759l9ac296f76022fe75@...627...> <200809011249.13596.gambas@...1938...> <20080901035553.mtpfp85lw4cwgw0w@...1958...> <61452b690809010405h258e3321u8b8a3016ee2920b6@...627...> Message-ID: <19253201.post@...1379...> Hi, Perhaps this is all a bit premature without John's approval! You would not have to type it: it cuts 'n pastes ok. -- View this message in context: http://www.nabble.com/Nice-book-of-Gambas-tp19243391p19253201.html Sent from the gambas-user mailing list archive at Nabble.com. From klaine8 at ...626... Mon Sep 1 13:48:02 2008 From: klaine8 at ...626... (Kari Laine) Date: Mon, 1 Sep 2008 14:48:02 +0300 Subject: [Gambas-user] Nice book of Gambas In-Reply-To: <20080901041108.njb1osgekg488kwc@...1958...> References: <48BABD12.6060805@...1400...> <20080901020606.q9m7qza5w84wo8sc@...1958...> <61452b690809010333h5c2ec759l9ac296f76022fe75@...627...> <200809011249.13596.gambas@...1938...> <20080901035553.mtpfp85lw4cwgw0w@...1958...> <61452b690809010405h258e3321u8b8a3016ee2920b6@...627...> <20080901041108.njb1osgekg488kwc@...1958...> Message-ID: <61452b690809010448v19769a07i7810d274ab4c1c02@...627...> > Kari, > > I tried as well. > > Can you take the lead on getting the password or the original source > document? > > John > Hi John, I think there is no password on the file because I commented a test in pdftohtml to ignore some kind of protection and out it came. BUT there is no layout, no pictures only the text. So it is big job to turn it to a nice document. Anyway the screen capture pictures would probably be old anyway. I read the OpenContent license of the book and if I understood right it would make difficult to produce derivative work or wiki - quite impossible in fact. Maybe someone with leverage - Benoit - could contact John W Rittinghouse and ask. Fact is Gambas needs more documentation to lure users. Also I would be prepared to pay for a technical document how Gambas works. I have used now countles hours and I have just scratched the surface. Either I am darn stupid or Benoit is about to win obfuscated code contest :-) before this day I know very little about compilers and interpreters and I am not very good with C - so it is going to take few months... And Windows version would be nice too :-) Best Regards Kari Laine From ron at ...1740... Mon Sep 1 14:14:08 2008 From: ron at ...1740... (Ron) Date: Mon, 01 Sep 2008 14:14:08 +0200 Subject: [Gambas-user] HBox from right to left? Message-ID: <48BBDC90.7050102@...1740...> Hi, I want -for example- align a clock textfield in my status bar on the righthand side, and keep it far right after resizing my window. But there is only a HBox which aligns from left to right, how about one pointing the other way, does that makes sense? Regards, Ron_2nd From gambas at ...1... Mon Sep 1 14:20:12 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 1 Sep 2008 14:20:12 +0200 Subject: [Gambas-user] Nice book of Gambas In-Reply-To: <61452b690809010448v19769a07i7810d274ab4c1c02@...627...> References: <48BABD12.6060805@...1400...> <20080901041108.njb1osgekg488kwc@...1958...> <61452b690809010448v19769a07i7810d274ab4c1c02@...627...> Message-ID: <200809011420.12971.gambas@...1...> On lundi 01 septembre 2008, KI have nari Laine wrote: > > Kari, > > > > I tried as well. > > > > Can you take the lead on getting the password or the original source > > document? > > > > John > > Hi John, > > > I think there is no password on the file because I commented a test in > pdftohtml to ignore some kind of protection and out it came. BUT there is > no layout, no pictures only the text. So it is big job to turn it to a nice > document. Anyway the screen capture pictures would probably be old anyway. > > I read the OpenContent license of the book and if I understood right it > would make difficult to produce derivative work or wiki - quite impossible > in fact. > > Maybe someone with leverage - Benoit - could contact John W Rittinghouse > and ask. I have no news from him since he sent me its book. I think I have lost its email in my annual email bleedings. > > Fact is Gambas needs more documentation to lure users. I agree. If only I have more time! > Also I would be > prepared to pay for a technical document how Gambas works. I have used now > countles hours and I have just scratched the surface. Either I am darn > stupid or Benoit is about to win obfuscated code contest :-) before this > day I know very little about compilers and interpreters and I am not very > good with C - so it is going to take few months... Maybe this is the main reason of your problems. I admit I don't document my code a lot, but I don't obfuscate it at all. If you choose good symbol names, and if you do logical things, your code is usually almost explain itself. I will try to comment the interpreter better now I know that somebody tries to understand it. And I will answer your questions too. But you should first really learn the C language and get some information about compilers and interpreters. > > And Windows version would be nice too :-) > I won't do it. But if there is a volunteer, I will help him. > > Best Regards > Kari Laine Regards, -- Benoit Minisini From gambas at ...1... Mon Sep 1 14:21:28 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 1 Sep 2008 14:21:28 +0200 Subject: [Gambas-user] HBox from right to left? In-Reply-To: <48BBDC90.7050102@...1740...> References: <48BBDC90.7050102@...1740...> Message-ID: <200809011421.28804.gambas@...1...> On lundi 01 septembre 2008, Ron wrote: > Hi, > > I want -for example- align a clock textfield in my status bar on the > righthand side, and keep it far right after resizing my window. > > But there is only a HBox which aligns from left to right, how about one > pointing the other way, does that makes sense? > > Regards, > Ron_2nd > There is a trick. :-) Put a panel with Expand property set at the beginning of the HBox, and everything will be pushed to the right. Regards, -- Benoit Minisini From ron at ...1740... Mon Sep 1 14:34:09 2008 From: ron at ...1740... (Ron) Date: Mon, 01 Sep 2008 14:34:09 +0200 Subject: [Gambas-user] HBox from right to left? In-Reply-To: <200809011421.28804.gambas@...1...> References: <48BBDC90.7050102@...1740...> <200809011421.28804.gambas@...1...> Message-ID: <48BBE141.4020905@...1740...> Benoit Minisini schreef: > On lundi 01 septembre 2008, Ron wrote: > >> Hi, >> >> I want -for example- align a clock textfield in my status bar on the >> righthand side, and keep it far right after resizing my window. >> >> But there is only a HBox which aligns from left to right, how about one >> pointing the other way, does that makes sense? >> >> Regards, >> Ron_2nd >> >> > > There is a trick. :-) > > Put a panel with Expand property set at the beginning of the HBox, and > everything will be pushed to the right. > > Regards, > > That works, thanks! Regards, Ron_2nd. From klaine8 at ...626... Mon Sep 1 15:19:17 2008 From: klaine8 at ...626... (Kari Laine) Date: Mon, 1 Sep 2008 16:19:17 +0300 Subject: [Gambas-user] Nice book of Gambas In-Reply-To: <200809011420.12971.gambas@...1...> References: <48BABD12.6060805@...1400...> <20080901041108.njb1osgekg488kwc@...1958...> <61452b690809010448v19769a07i7810d274ab4c1c02@...627...> <200809011420.12971.gambas@...1...> Message-ID: <61452b690809010619g4ed58dcax75357e1466e7c47a@...627...> On Mon, Sep 1, 2008 at 3:20 PM, Benoit Minisini < gambas at ...1...> wrote: > > Also I would be > > prepared to pay for a technical document how Gambas works. I have used > now > > countles hours and I have just scratched the surface. Either I am darn > > stupid or Benoit is about to win obfuscated code contest :-) before this > > day I know very little about compilers and interpreters and I am not very > > good with C - so it is going to take few months... > > Maybe this is the main reason of your problems. I admit I don't document my > code a lot, but I don't obfuscate it at all. > > Hi Benoit, I hope you understood from the context that this obfuscate bit was meant as joke... Best Regards Kari From gambas at ...1... Mon Sep 1 15:25:27 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 1 Sep 2008 15:25:27 +0200 Subject: [Gambas-user] Nice book of Gambas In-Reply-To: <61452b690809010619g4ed58dcax75357e1466e7c47a@...627...> References: <48BABD12.6060805@...1400...> <200809011420.12971.gambas@...1...> <61452b690809010619g4ed58dcax75357e1466e7c47a@...627...> Message-ID: <200809011525.27677.gambas@...1...> On lundi 01 septembre 2008, Kari Laine wrote: > On Mon, Sep 1, 2008 at 3:20 PM, Benoit Minisini < > > gambas at ...1...> wrote: > > > Also I would be > > > prepared to pay for a technical document how Gambas works. I have used > > > > now > > > > > countles hours and I have just scratched the surface. Either I am darn > > > stupid or Benoit is about to win obfuscated code contest :-) before > > > this day I know very little about compilers and interpreters and I am > > > not very good with C - so it is going to take few months... > > > > Maybe this is the main reason of your problems. I admit I don't document > > my code a lot, but I don't obfuscate it at all. > > > > Hi Benoit, > > I hope you understood from the context that this obfuscate bit was meant as > joke... > Yes, don't worry. :-) -- Benoit Minisini From admin at ...1956... Mon Sep 1 21:14:43 2008 From: admin at ...1956... (admin at ...1956...) Date: Mon, 01 Sep 2008 12:14:43 -0700 Subject: [Gambas-user] Nice book of Gambas In-Reply-To: <61452b690809010448v19769a07i7810d274ab4c1c02@...627...> References: <48BABD12.6060805@...1400...> <20080901020606.q9m7qza5w84wo8sc@...1958...> <61452b690809010333h5c2ec759l9ac296f76022fe75@...627...> <200809011249.13596.gambas@...1938...> <20080901035553.mtpfp85lw4cwgw0w@...1958...> <61452b690809010405h258e3321u8b8a3016ee2920b6@...627...> <20080901041108.njb1osgekg488kwc@...1958...> <61452b690809010448v19769a07i7810d274ab4c1c02@...627...> Message-ID: <20080901121443.wx94pyo9skw4oc44@...1958...> Quoting Kari Laine : >> Kari, >> >> I tried as well. >> >> Can you take the lead on getting the password or the original source >> document? >> >> John >> > > Hi John, > > > I think there is no password on the file because I commented a test in > pdftohtml to ignore some kind of protection and out it came. BUT there is no > layout, no pictures only the text. So it is big job to turn it to a nice > document. Anyway the screen capture pictures would probably be old anyway. > > I read the OpenContent license of the book and if I understood right it > would make difficult to produce derivative work or wiki - quite impossible > in fact. > > Maybe someone with leverage - Benoit - could contact John W Rittinghouse and > ask. > > Fact is Gambas needs more documentation to lure users. Also I would be > prepared to pay for a technical document how Gambas works. I have used now > countles hours and I have just scratched the surface. Either I am darn > stupid or Benoit is about to win obfuscated code contest :-) before this day > I know very little about compilers and interpreters and I am not very good > with C - so it is going to take few months... > > And Windows version would be nice too :-) > > > Best Regards > Kari Laine > Kari, I won't install the wiki till you have permission from John R.and the source to the original content. I will leave the http://gambas.allbasic.info sub-domain active till no hope is left. I'm still counting on you to get to the bottom of this. John From klaine8 at ...626... Mon Sep 1 21:18:23 2008 From: klaine8 at ...626... (Kari Laine) Date: Mon, 1 Sep 2008 22:18:23 +0300 Subject: [Gambas-user] Nice book of Gambas In-Reply-To: <20080901121443.wx94pyo9skw4oc44@...1958...> References: <48BABD12.6060805@...1400...> <20080901020606.q9m7qza5w84wo8sc@...1958...> <61452b690809010333h5c2ec759l9ac296f76022fe75@...627...> <200809011249.13596.gambas@...1938...> <20080901035553.mtpfp85lw4cwgw0w@...1958...> <61452b690809010405h258e3321u8b8a3016ee2920b6@...627...> <20080901041108.njb1osgekg488kwc@...1958...> <61452b690809010448v19769a07i7810d274ab4c1c02@...627...> <20080901121443.wx94pyo9skw4oc44@...1958...> Message-ID: <61452b690809011218r361c611fs1eed14a71bd1dbe3@...627...> On Mon, Sep 1, 2008 at 10:14 PM, wrote: > > I won't install the wiki till you have permission from John R.and the > source to the original content. I will leave the > http://gambas.allbasic.info sub-domain active till no hope is left. > > I'm still counting on you to get to the bottom of this. > > John > Hi, I tried to search homepage or something like that for the author. Did not find. I won't try actively any more. And anyway I am not the right person to contact him - Benoit would be. Best Regards Kari From sevoir75 at ...626... Mon Sep 1 21:27:16 2008 From: sevoir75 at ...626... (=?ISO-8859-1?Q?Szenogr=E1di?= Norbert =?ISO-8859-1?Q?P=E9ter?=) Date: Mon, 01 Sep 2008 21:27:16 +0200 Subject: [Gambas-user] new user In-Reply-To: <61452b690809011218r361c611fs1eed14a71bd1dbe3@...627...> References: <48BABD12.6060805@...1400...> <20080901020606.q9m7qza5w84wo8sc@...1958...> <61452b690809010333h5c2ec759l9ac296f76022fe75@...627...> <200809011249.13596.gambas@...1938...> <20080901035553.mtpfp85lw4cwgw0w@...1958...> <61452b690809010405h258e3321u8b8a3016ee2920b6@...627...> <20080901041108.njb1osgekg488kwc@...1958...> <61452b690809010448v19769a07i7810d274ab4c1c02@...627...> <20080901121443.wx94pyo9skw4oc44@...1958...> <61452b690809011218r361c611fs1eed14a71bd1dbe3@...627...> Message-ID: <1220297236.7347.4.camel@...1964...> Hi all. Im a new member on gambas-user-list. I have some quession: - How can I send a datas to other form.. - How can I see any -manual inserted- data in Tableview and/or Gridview.. Sorry for my newbie quession.. :) Im hope you can answer it :) Sevoir from Hungary ;) From gambas at ...1938... Mon Sep 1 21:55:38 2008 From: gambas at ...1938... (gambas at ...1938...) Date: Mon, 1 Sep 2008 21:55:38 +0200 Subject: [Gambas-user] Nice book of Gambas In-Reply-To: <20080901121443.wx94pyo9skw4oc44@...1958...> References: <48BABD12.6060805@...1400...> <61452b690809010448v19769a07i7810d274ab4c1c02@...627...> <20080901121443.wx94pyo9skw4oc44@...1958...> Message-ID: <200809012155.38940.gambas@...1938...> Am Montag, 1. September 2008 21:14:43 schrieb admin at ...1956...: > Kari, > > I won't install the wiki till you have permission from John R.and the > source to the original content. I will leave the > http://gambas.allbasic.info sub-domain active till no hope is left. > > I'm still counting on you to get to the bottom of this. > > John Sorry...but what are you trying to do here?? ...you have an "allbasic-site" and want it to be a central site for "all" basic dialects. ...so go for it!! ...search for the author of the book and drop him a mail, but stop pushing other people into fire, which flames cook your meal! Greetz Stevie From admin at ...1956... Mon Sep 1 22:49:29 2008 From: admin at ...1956... (admin at ...1956...) Date: Mon, 01 Sep 2008 13:49:29 -0700 Subject: [Gambas-user] Nice book of Gambas In-Reply-To: <200809012155.38940.gambas@...1938...> References: <48BABD12.6060805@...1400...> <61452b690809010448v19769a07i7810d274ab4c1c02@...627...> <20080901121443.wx94pyo9skw4oc44@...1958...> <200809012155.38940.gambas@...1938...> Message-ID: <20080901134929.ug0li2380cckkk0c@...1958...> Quoting gambas at ...1938...: > Am Montag, 1. September 2008 21:14:43 schrieb admin at ...1956...: >> Kari, >> >> I won't install the wiki till you have permission from John R.and the >> source to the original content. I will leave the >> http://gambas.allbasic.info sub-domain active till no hope is left. >> >> I'm still counting on you to get to the bottom of this. >> >> John > Sorry...but what are you trying to do here?? ...you have an "allbasic-site" > and want it to be a central site for "all" basic dialects. ...so go for > it!! ...search for the author of the book and drop him a mail, but stop > pushing other people into fire, which flames cook your meal! > > Greetz > Stevie I was willing to accommodate the request to save the efforts put into an open document that is getting stale by the day. If my contributions and kindness aren't needed or appreciated then I will remove the Gambas sub-domain and let the book die a slow death. Sorry I even mentioned it. John From gambas.fr at ...626... Mon Sep 1 23:14:16 2008 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 1 Sep 2008 23:14:16 +0200 Subject: [Gambas-user] Nice book of Gambas In-Reply-To: <20080901134929.ug0li2380cckkk0c@...1958...> References: <48BABD12.6060805@...1400...> <61452b690809010448v19769a07i7810d274ab4c1c02@...627...> <20080901121443.wx94pyo9skw4oc44@...1958...> <200809012155.38940.gambas@...1938...> <20080901134929.ug0li2380cckkk0c@...1958...> Message-ID: <6324a42a0809011414t6851e39cu749f32cce485acab@...627...> so for all of you understand why we do not have any news about John R, i will give you the lost private mail content he send to me there is two month : --begin-- Fabien, Thank you for remembering me and sending this. I know I have been out of touch and apologize. Dealing with stage 3 pancreatic cancer so I hope you understand. jr --end-- so now you can understand why he is not able to write something else From ariefbayu at ...626... Tue Sep 2 03:09:27 2008 From: ariefbayu at ...626... (Arief Bayu Purwanto) Date: Tue, 2 Sep 2008 08:09:27 +0700 Subject: [Gambas-user] Nice book of Gambas In-Reply-To: <6324a42a0809011414t6851e39cu749f32cce485acab@...627...> References: <48BABD12.6060805@...1400...> <61452b690809010448v19769a07i7810d274ab4c1c02@...627...> <20080901121443.wx94pyo9skw4oc44@...1958...> <200809012155.38940.gambas@...1938...> <20080901134929.ug0li2380cckkk0c@...1958...> <6324a42a0809011414t6851e39cu749f32cce485acab@...627...> Message-ID: <976ad9050809011809g192634d7r18af223050dbbd07@...627...> On 9/2/08, Fabien Bodard wrote: > > --begin-- > > Fabien, > Thank you for remembering me and sending this. I know I have been out of > touch and apologize. Dealing with stage 3 pancreatic cancer so I hope you > understand. > > jr > > --end-- > > so now you can understand why he is not able to write something else Uh... I'm sorry to hear that... -- Arief Bayu Purwanto About : http://about.freelancer.web.id/ Blog : http://bayu.freelancer.web.id/ From girardhenri at ...67... Tue Sep 2 07:36:28 2008 From: girardhenri at ...67... (Henri Girard) Date: Tue, 2 Sep 2008 05:36:28 +0000 Subject: [Gambas-user] Nice book of Gambas In-Reply-To: <20080901035553.mtpfp85lw4cwgw0w@...1958...> References: <48BABD12.6060805@...1400...> <20080901020606.q9m7qza5w84wo8sc@...1958...> <61452b690809010333h5c2ec759l9ac296f76022fe75@...627...> <200809011249.13596.gambas@...1938...> <20080901035553.mtpfp85lw4cwgw0w@...1958...> Message-ID: I don't know if you know it but openoffice 3 has an import of acrobat which is not bad though in beta version > Date: Mon, 1 Sep 2008 03:55:53 -0700> From: admin at ...1956...> To: gambas-user at lists.sourceforge.net> Subject: Re: [Gambas-user] Nice book of Gambas> > Quoting gambas at ...1938...:> > > Am Montag, 1. September 2008 12:33:58 schrieb Kari Laine:> >> So did John give permission for the book to go wiki?> >> How a pdf can be converted to text? Is it possible with commercial acrobat> >> ?> >>> >> Best Regards> >> Kari Laine> > If John would give permission to use his book as basis for a wiki, he also> > could donate his original script...both depends on the contracts between John> > and the publishing company.> >> > Greetz> > Stevie> > Based on what I understand from the license section of the PDF, the > book was made an open document with the ability to expand on it. If I > read it wrong, please correct my error.> > John> > -------------------------------------------------------------------------> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge> Build the coolest Linux based applications with Moblin SDK & win great prizes> Grand prize is a trip for two to an Open Source event anywhere in the world> http://moblin-contest.org/redirect.php?banner_id=100&url=/> _______________________________________________> Gambas-user mailing list> Gambas-user at lists.sourceforge.net> https://lists.sourceforge.net/lists/listinfo/gambas-user _________________________________________________________________ T?l?phonez gratuitement ? tous vos proches avec Windows Live Messenger? !? T?l?chargez-le maintenant ! http://www.windowslive.fr/messenger/1.asp From gambas at ...1938... Tue Sep 2 07:44:12 2008 From: gambas at ...1938... (gambas at ...1938...) Date: Tue, 2 Sep 2008 07:44:12 +0200 Subject: [Gambas-user] Nice book of Gambas In-Reply-To: <976ad9050809011809g192634d7r18af223050dbbd07@...627...> References: <48BABD12.6060805@...1400...> <6324a42a0809011414t6851e39cu749f32cce485acab@...627...> <976ad9050809011809g192634d7r18af223050dbbd07@...627...> Message-ID: <200809020744.13357.gambas@...1938...> Am Dienstag, 2. September 2008 03:09:27 schrieb Arief Bayu Purwanto: > On 9/2/08, Fabien Bodard wrote: > > --begin-- > > > > Fabien, > > Thank you for remembering me and sending this. I know I have been out of > > touch and apologize. Dealing with stage 3 pancreatic cancer so I hope > > you understand. > > > > jr > > > > --end-- > > > > so now you can understand why he is not able to write something else > > Uh... I'm sorry to hear that... :-((( Hope he makes it! Greetz Stevie From ronstk at ...239... Tue Sep 2 09:26:03 2008 From: ronstk at ...239... (Ron Onstenk) Date: Tue, 2 Sep 2008 09:26:03 +0200 Subject: [Gambas-user] Nice book of Gambas In-Reply-To: <20080901134929.ug0li2380cckkk0c@...1958...> References: <48BABD12.6060805@...1400...> <200809012155.38940.gambas@...1938...> <20080901134929.ug0li2380cckkk0c@...1958...> Message-ID: <200809020926.04602.ronstk@...239...> On Monday 01 September 2008, admin at ...1956... wrote: > Quoting gambas at ...1938...: > > > Am Montag, 1. September 2008 21:14:43 schrieb admin at ...1956...: > >> Kari, > >> > >> I won't install the wiki till you have permission from John R.and the > >> source to the original content. I will leave the > >> http://gambas.allbasic.info sub-domain active till no hope is left. > >> > >> I'm still counting on you to get to the bottom of this. > >> > >> John > > Sorry...but what are you trying to do here?? ...you have an "allbasic-site" > > and want it to be a central site for "all" basic dialects. ...so go for > > it!! ...search for the author of the book and drop him a mail, but stop > > pushing other people into fire, which flames cook your meal! > > > > Greetz > > Stevie > > I was willing to accommodate the request to save the efforts put into > an open document that is getting stale by the day. If my contributions > and kindness aren't needed or appreciated then I will remove the > Gambas sub-domain and let the book die a slow death. > > Sorry I even mentioned it. > > John > In my view Stevie is right, You are the one that republish the book in all ways. If it is changed to a wiki site point 2 a) of the opendocument licence will be in affect and difficult to fullfill. So _you_ need the written permission to host it anyway and not the word I have got it by mouth from J.R., Benoit or any other person. You are only allowed to host the unmodified pdf for redistribution to members of the gambas community as said in the first part of the book (1st page of text). Don't forget it is published as a _real_ book and J.R. has also an agrement with the publisher and it is posible he evem does not have the right to give permission. The fact that it is available as pdf, and specail mentioned to the gambas community, does not mean J.R.only has all the rights for permision, The book as script is sold to the publisher as J.R. will have got money for it. Most cases publishing, and copyrights, are hands over. Did you read the watermark in the pdf, that is the reason you find the trouble when you try to print it and the document is protected. With KPDF you (or I) can't copy past text to the clipboard. That will be a need restriction from the book puslisher for a permsion to release it as pdf. Gambas users, the group who mostly will buy it, get this way a preview before the actual buy. I wish I got such previews from books of Stephen King :) Ron_1st -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? From ronstk at ...239... Tue Sep 2 09:31:47 2008 From: ronstk at ...239... (Ron Onstenk) Date: Tue, 2 Sep 2008 09:31:47 +0200 Subject: [Gambas-user] Nice book of Gambas In-Reply-To: References: <48BABD12.6060805@...1400...> <20080901035553.mtpfp85lw4cwgw0w@...1958...> Message-ID: <200809020931.47593.ronstk@...239...> On Tuesday 02 September 2008, Henri Girard wrote: > I don't know if you know it but openoffice 3 has an import of acrobat which is not bad though in beta version > ? > Yeah right and when the pdf is protected against print and copy/past and the developers of OO are honest they import that too and handle following those restrictions. So you can read it and that's it. :) Ron_1st -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? From doriano.blengino at ...1909... Tue Sep 2 09:39:14 2008 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Tue, 02 Sep 2008 09:39:14 +0200 Subject: [Gambas-user] new user In-Reply-To: <1220297236.7347.4.camel@...1964...> References: <48BABD12.6060805@...1400...> <20080901020606.q9m7qza5w84wo8sc@...1958...> <61452b690809010333h5c2ec759l9ac296f76022fe75@...627...> <200809011249.13596.gambas@...1938...> <20080901035553.mtpfp85lw4cwgw0w@...1958...> <61452b690809010405h258e3321u8b8a3016ee2920b6@...627...> <20080901041108.njb1osgekg488kwc@...1958...> <61452b690809010448v19769a07i7810d274ab4c1c02@...627...> <20080901121443.wx94pyo9skw4oc44@...1958...> <61452b690809011218r361c611fs1eed14a71bd1dbe3@...627...> <1220297236.7347.4.camel@...1964...> Message-ID: <48BCEDA2.9010904@...1909...> Szenogr?di Norbert P?ter ha scritto: > Hi all. > > Im a new member on gambas-user-list. > > I have some quession: > - How can I send a datas to other form.. > There are two ways. 1 - In the project properties, you can set "Controls of forms are public". Once this is done, you can address/refer to controls on other forms by their name, i.e. "Form2.label1.text = ....". This option is global to the project: all the form have public controls or none. 2 - As each form is a class, it can have public variables and methods. You can declare PUBLIC variables and access them from outside the form. If you want the form react in some way, this is not enough; after setting a variable you must call a public method declared in the form, which can manipulate its controls. This can be done in a single step: write a public method having some parameter, then call that method passing the data you want. That method can use the data you passed and do what is needed. For example, suppose you have a main form which, at some point, opens another form as a "status" form. This StatusForm has a Label1 on it, showing some message. If controls are public (first solution), then you simply write in the main: StatusForm.Label1.Text = "Opening data file..." WAIT ' this is required to update instantly the screen Using the second way runs like this. In the StatusForm code (.class file), declare a public method like this: PUBLIC SUB UpdateMessage(st AS String) Label1.Text = st WAIT END At this point, in the main program, you can call: StatusForm.UpdateMessage("Opening data file...") > - How can I see any -manual inserted- data in Tableview and/or > Gridview.. > Look at the manual page about GridView - it contains an example on how to set grid "dimensions" (number of row and columns), and fill them by code. About to see them... I don't understand the problem; provided that the event loop is called, then you will see any data a Gridview is filled with. Email again if you have still problems. From gambas at ...1938... Tue Sep 2 10:18:47 2008 From: gambas at ...1938... (gambas at ...1938...) Date: Tue, 2 Sep 2008 10:18:47 +0200 Subject: [Gambas-user] Nice book of Gambas In-Reply-To: <200809020931.47593.ronstk@...239...> References: <48BABD12.6060805@...1400...> <200809020931.47593.ronstk@...239...> Message-ID: <200809021018.48278.gambas@...1938...> To get back to the topic. :-) I think it's a very very good idea to take the book as a basis for documentation in a wiki. But what is needed is the permission of J.R. and/or the publisher. With respect to J.R.s situation, we could try to contact the publisher of the book. When they say "no" it is no...but it's an answer. Perhaps they can tell us, who's responsible for granting rights and permissions. Here is my situation...and I know, I'm not allone with this. I never coded in any OO-language. ...and I never designed a GUI-program. ...but I like Gambas so much. ...and there is either old or no documentation. For a rookie like me, at the moment coding in Gambas means: Hacking one hour and gathering the needed information eight hours. Looking into the PDF-book, searching the wiki, scanning the mailinglist archives, analyzing other people code sniplets in the internet and so on. ...it's a little bit frustrating. It would be so pity, when Gambas doesn't get the acception, it is owing. Sorry for my poor English ...it's not my native language. Greetz Stevie From rospolosco at ...152... Tue Sep 2 10:42:19 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Tue, 2 Sep 2008 10:42:19 +0200 Subject: [Gambas-user] Nice book of Gambas In-Reply-To: <200809021018.48278.gambas@...1938...> References: <48BABD12.6060805@...1400...> <200809020931.47593.ronstk@...239...> <200809021018.48278.gambas@...1938...> Message-ID: <200809021042.20035.rospolosco@...152...> Fabien, bad idea to spread the world with J.R. health conditions. It's against privacy law on many countries, unless J.R. gave you permission to do that. I think it's a good idea removing that message from Gambas online archives. Benoit, can you do it? Best regards, Stefano Palmeri From klaine8 at ...626... Tue Sep 2 11:01:47 2008 From: klaine8 at ...626... (Kari Laine) Date: Tue, 2 Sep 2008 12:01:47 +0300 Subject: [Gambas-user] new user In-Reply-To: <48BCEDA2.9010904@...1909...> References: <48BABD12.6060805@...1400...> <200809011249.13596.gambas@...1938...> <20080901035553.mtpfp85lw4cwgw0w@...1958...> <61452b690809010405h258e3321u8b8a3016ee2920b6@...627...> <20080901041108.njb1osgekg488kwc@...1958...> <61452b690809010448v19769a07i7810d274ab4c1c02@...627...> <20080901121443.wx94pyo9skw4oc44@...1958...> <61452b690809011218r361c611fs1eed14a71bd1dbe3@...627...> <1220297236.7347.4.camel@...1964...> <48BCEDA2.9010904@...1909...> Message-ID: <61452b690809020201j330b4160r1f28d562e85c0704@...627...> On Tue, Sep 2, 2008 at 10:39 AM, Doriano Blengino < doriano.blengino at ...1909...> wrote: > Look at the manual page about GridView - it contains an example on how > to set grid "dimensions" (number of row and columns), and fill them by > code. About to see them... I don't understand the problem; provided that > the event loop is called, then you will see any data a Gridview is > filled with. > > Thanks for good info. Could you please tell me what you are referring with "manual page about GridView"? I could not find it. Best Regards Kari From klaine8 at ...626... Tue Sep 2 11:22:23 2008 From: klaine8 at ...626... (Kari Laine) Date: Tue, 2 Sep 2008 12:22:23 +0300 Subject: [Gambas-user] Nice book of Gambas In-Reply-To: <200809021042.20035.rospolosco@...152...> References: <48BABD12.6060805@...1400...> <200809020931.47593.ronstk@...239...> <200809021018.48278.gambas@...1938...> <200809021042.20035.rospolosco@...152...> Message-ID: <61452b690809020222p71012be5r52c843adab6af5ce@...627...> On Tue, Sep 2, 2008 at 11:42 AM, Stefano Palmeri wrote: > Fabien, bad idea to spread the world with J.R. health conditions. > It's against privacy law on many countries, unless J.R. gave you > permission to do that. I think it's a good idea removing > that message from Gambas online archives. > Benoit, can you do it? > > Best regards, > > Stefano Palmeri > > If I would knew that this going to start this heated discussion I would not have posted it in the first place... Anyway here are the details for the publisher Beginner's Guide to Gambas *by John W. Rittinghouse * Product Details - ISBN: 0741429489 - ISBN-13: 9780741429483 - Format: Paperback, 364pp - Publisher: Buy Books on the Web.Com - Pub. Date: January 2006 - Sales Rank: 476,005 http://www.buybooksontheweb.com/ There is a contact on the page. Someone with good english should write proposition to them. Possibly discuss it here. But I am quite sure the answer from the publisher is NO. Best Regards Kari Laine From gambas at ...1938... Tue Sep 2 11:28:25 2008 From: gambas at ...1938... (gambas at ...1938...) Date: Tue, 2 Sep 2008 11:28:25 +0200 Subject: [Gambas-user] ByRef Message-ID: <200809021128.25643.gambas@...1938...> Hello List! I've switched to development version 3.0 and I'm trying to get rid of this ByRef thing. I wonder, if someone could explane the syntax to me! Thanks in advance!! Greetz Stevie From doriano.blengino at ...1909... Tue Sep 2 11:31:18 2008 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Tue, 02 Sep 2008 11:31:18 +0200 Subject: [Gambas-user] new user In-Reply-To: <61452b690809020201j330b4160r1f28d562e85c0704@...627...> References: <48BABD12.6060805@...1400...> <200809011249.13596.gambas@...1938...> <20080901035553.mtpfp85lw4cwgw0w@...1958...> <61452b690809010405h258e3321u8b8a3016ee2920b6@...627...> <20080901041108.njb1osgekg488kwc@...1958...> <61452b690809010448v19769a07i7810d274ab4c1c02@...627...> <20080901121443.wx94pyo9skw4oc44@...1958...> <61452b690809011218r361c611fs1eed14a71bd1dbe3@...627...> <1220297236.7347.4.camel@...1964...> <48BCEDA2.9010904@...1909...> <61452b690809020201j330b4160r1f28d562e85c0704@...627...> Message-ID: <48BD07E6.3040708@...1909...> Kari Laine ha scritto: > On Tue, Sep 2, 2008 at 10:39 AM, Doriano Blengino < > doriano.blengino at ...1909...> wrote: > > >> Look at the manual page about GridView - it contains an example on how >> to set grid "dimensions" (number of row and columns), and fill them by >> code. About to see them... I don't understand the problem; provided that >> the event loop is called, then you will see any data a Gridview is >> filled with. >> >> >> > Thanks for good info. Could you please tell me what you are referring with > "manual page about GridView"? I could not find it. > I downloaded the html documentation, so the relevant part is the last one (xxx is my local path): xxx/help/comp/gb+qt/gridview.html If you point to the main page of the online help, the one which has an "tree index" on the left, click on "gb.qt" in the left; the right side of the page will show a directory of QT controls - there you will find "GridView". Or, you can look at online documentation (I get a different layout, but it's ok...): http://gambasdoc.org/help/comp and there you find "gb.qt". GTK is almost the same, but several hidden and obscure differences/bugs arise. It is very good you can choose between QT and GTK without changing anything in your project and, for simple GUI management, GTK works enough; if you need "solid" GUI, QT is the way to go, at the moment. I don't know why my local copy of the help has a nice index in the left, while I cannot get it online. My local copy was borrowed directly from the source distribution. Anyway, I paste here the source code on how to fill a Gridview: Examples 'Fill grid explicitely GridView1.Columns.Count = 4 GridView1.Rows.Count = 3 GridView1.Columns.Width = 52 GridView1.Rows[1].Height = 52 GridView1[0,0].Text = "0,0" GridView1[0,0].Alignment = 4 GridView1[1,1].Text = "1,1" GridView1[0,1].Text = "0,1" GridView1[1,0].Picture = Picture["image.png"] Keeping on willing to help, best regards. Doriano Blengino From emil at ...1913... Tue Sep 2 11:50:56 2008 From: emil at ...1913... (Emil Tchekov) Date: Tue, 2 Sep 2008 11:50:56 +0200 Subject: [Gambas-user] ByRef In-Reply-To: <200809021128.25643.gambas@...1938...> Message-ID: Hello Stevie, If this is similar to the ByRef from VB, there is following to be said: In Subroutine or Function that expects parameters passed from other part of your program there are two possibilities to pass them By Value (ByVal) or by Reference (ByRef). First one means that your Sub gets only the Value and does NOT change the variable that was passed in. Passing by Reference is almoust the same as the pointer concept from C language, INTERN the address of the var is passed so the Value CAN be changed inside the Subroutine. Hereby you must be carefull, sometime passing ByRef can spare time and ressources, but it can also be (used without deeper mean) a source of hardly to track bugs... kind regards Emil -----Ursprungliche Nachricht----- Von: gambas-user-bounces at lists.sourceforge.net [mailto:gambas-user-bounces at lists.sourceforge.net]Im Auftrag von gambas at ...1938... Gesendet: Dienstag, 2. September 2008 11:28 An: mailing list for gambas users Betreff: [Gambas-user] ByRef Hello List! I've switched to development version 3.0 and I'm trying to get rid of this ByRef thing. I wonder, if someone could explane the syntax to me! Thanks in advance!! Greetz Stevie ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From emil at ...1913... Tue Sep 2 12:06:09 2008 From: emil at ...1913... (Emil Tchekov) Date: Tue, 2 Sep 2008 12:06:09 +0200 Subject: [Gambas-user] ByRef In-Reply-To: <200809021128.25643.gambas@...1938...> Message-ID: Forgot to gave you example (VB) sub main() dim a as integer a=1 debug.print a, pr1(a) debug.print a, pr2(a) debug.print a end sub private sub pr1(byval a) a=2 return a end sub private sub pr2(byref a) a=2 return a end sub result will be as follows 1 2 1* 2 2 (!) *As you can see on the first sub the var a is local to your sub, it was changed (returns 2), but the passed a has stil value 1 (!) in the second procedure the passed var a was changed! (the a that was defined in the sub main!) -----Ursprungliche Nachricht----- Von: gambas-user-bounces at lists.sourceforge.net [mailto:gambas-user-bounces at lists.sourceforge.net]Im Auftrag von gambas at ...1938... Gesendet: Dienstag, 2. September 2008 11:28 An: mailing list for gambas users Betreff: [Gambas-user] ByRef Hello List! I've switched to development version 3.0 and I'm trying to get rid of this ByRef thing. I wonder, if someone could explane the syntax to me! Thanks in advance!! Greetz Stevie ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Tue Sep 2 12:20:24 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 2 Sep 2008 12:20:24 +0200 Subject: [Gambas-user] Nice book of Gambas In-Reply-To: <200809021042.20035.rospolosco@...152...> References: <48BABD12.6060805@...1400...> <200809021018.48278.gambas@...1938...> <200809021042.20035.rospolosco@...152...> Message-ID: <200809021220.24401.gambas@...1...> On mardi 02 septembre 2008, Stefano Palmeri wrote: > Fabien, bad idea to spread the world with J.R. health conditions. > It's against privacy law on many countries, unless J.R. gave you > permission to do that. I think it's a good idea removing > that message from Gambas online archives. > Benoit, can you do it? > > Best regards, > > Stefano Palmeri > You are right. But I have to wait that the post appears in the archive: the latest mail in it is from Aug.22th at the moment! Regards, -- Benoit Minisini From mike.crean at ...1940... Tue Sep 2 13:16:39 2008 From: mike.crean at ...1940... (Mike) Date: Tue, 2 Sep 2008 19:16:39 +0800 Subject: [Gambas-user] shell Message-ID: <20080902111640.5E43F3DB957@...1961...> Hi all I am trying to run the terminal with input from the gambas shell command. Looks like I have it wrong, any help please. SHELL "/home/mike/Desktop/Terminal espeak Hello" Regards all Mike From sevoir75 at ...626... Tue Sep 2 13:33:33 2008 From: sevoir75 at ...626... (=?ISO-8859-1?Q?Szenogr=E1di?= Norbert =?ISO-8859-1?Q?P=E9ter?=) Date: Tue, 02 Sep 2008 13:33:33 +0200 Subject: [Gambas-user] shell In-Reply-To: <20080902111640.5E43F3DB957@...1961...> References: <20080902111640.5E43F3DB957@...1961...> Message-ID: <1220355213.6509.0.camel@...1964...> Hi, this is working fine: PUBLIC SUB Form_Open() SHELL "espeak Hello" END regards, Sevoir 2008. 09. 2, kedd keltez?ssel 19.16-kor Mike ezt ?rta: > Hi all > > > > I am trying to run the terminal with input from the gambas shell command. > Looks like I have it wrong, any help please. > > > > SHELL "/home/mike/Desktop/Terminal espeak Hello" > > > > Regards all > > Mike > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From rolf.frogs at ...221... Tue Sep 2 13:48:55 2008 From: rolf.frogs at ...221... (Rolf Schmidt) Date: Tue, 2 Sep 2008 13:48:55 +0200 Subject: [Gambas-user] Q:how to save a file.png into Postgresql In-Reply-To: <200809010929.49549.rterry@...1946...> References: <200808290722.21869.rterry@...1946...> <200808311142.52986.rolf.frogs@...221...> <200809010929.49549.rterry@...1946...> Message-ID: <200809021348.58728.rolf.frogs@...221...> Hello Richard > Dies at the line containing 'Coct' with message: unknown identifier > > but I'm sure this way is good, as I can remember reading something about > this in the postgres doc's but couldn't figure out how to do the > substitution. OK, I thougt it is a Gambas converting function, but it isn't. It should convert a given number into an octal number, return the number as a string. So here it is: PRIVAT FUNCTION COct(num as Integer) as String DIM octnumber AS NEW Interger[] DIM octstring as String octnumber.Add(int(num / 64)) octnumber.Add(int((num MOD 64) / 8 )) octnumber.Add((num Mod 64) MOD 8) octstring = octnumber[0] & octnumber[1] & octnumber[2] RETURN octstring END > Next step? Test it. Fine regards Rolf -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part. URL: From sbungay at ...981... Tue Sep 2 15:52:21 2008 From: sbungay at ...981... (Stephen Bungay) Date: Tue, 02 Sep 2008 09:52:21 -0400 Subject: [Gambas-user] new user In-Reply-To: <48BCEDA2.9010904@...1909...> References: <48BABD12.6060805@...1400...> <20080901020606.q9m7qza5w84wo8sc@...1958...> <61452b690809010333h5c2ec759l9ac296f76022fe75@...627...> <200809011249.13596.gambas@...1938...> <20080901035553.mtpfp85lw4cwgw0w@...1958...> <61452b690809010405h258e3321u8b8a3016ee2920b6@...627...> <20080901041108.njb1osgekg488kwc@...1958...> <61452b690809010448v19769a07i7810d274ab4c1c02@...627...> <20080901121443.wx94pyo9skw4oc44@...1958...> <61452b690809011218r361c611fs1eed14a71bd1dbe3@...627...> <1220297236.7347.4.camel@...1964...> <48BCEDA2.9010904@...1909...> Message-ID: <48BD4515.5040507@...981...> Yet another way of doing this is to use public properties. For example, a small form class that pops up a message might look like this; PRIVATE mMessageText AS String PUBLIC PROPERTY MessageText AS String PRIVATE FUNCTION MessageText_Read() AS String RETURN (mMessageText) END PRIVATE SUB MessageText_Write(Value AS String) mMessageText = Value TextArea1.Text = Value Timer2.Enabled = TRUE END PUBLIC SUB Timer2_Timer() ME.Close END You set the value of properties and the class does whatever it was designed to do with them, in this case set a TextArea to the value that was set in the public property "MessageText". The form has a timer on it which is set to display the message for X number of seconds and then close the form. You could add another property to this form to allow the changing of the timer interval, giving the form even more flexibility. PRIVATE mMessageText AS String PRIVATE mTimeInterval AS Integer PUBLIC PROPERTY TimerInterval AS Integer PRIVATE FUNCTION TimerInterval_Read() AS Integer RETURN (mTimerInterval) END PRIVATE TimerInterval_Write(Value AS Integer) mTimerInterval = Value ' Assign the delay from the variable 'mTimerInterval' ' OR 'Value', in this case I use the former. Timer2.Delay = mTimerInterval END PUBLIC PROPERTY MessageText AS String PRIVATE FUNCTION MessageText_Read() AS String RETURN (mMessageText) END PRIVATE SUB MessageText_Write(Value AS String) mMessageText = Value TextArea1.Text = Value ' If the user does not set a delay then set the default. If TimerInterval = 0 then Timer2.Delay = 3 end if ' Ensure the timer is enabled. If not Timer2.Enabled then Timer2.Enabled = TRUE end if END PUBLIC SUB Timer2_Timer() ME.Close END Steve. Doriano Blengino wrote: > Szenogr?di Norbert P?ter ha scritto: >> Hi all. >> >> Im a new member on gambas-user-list. >> >> I have some quession: >> - How can I send a datas to other form.. >> > There are two ways. > 1 - In the project properties, you can set "Controls of forms are > public". Once this is done, you can address/refer to controls on other > forms by their name, i.e. "Form2.label1.text = ....". This option is > global to the project: all the form have public controls or none. > > 2 - As each form is a class, it can have public variables and methods. > You can declare PUBLIC variables and access them from outside the form. > If you want the form react in some way, this is not enough; after > setting a variable you must call a public method declared in the form, > which can manipulate its controls. This can be done in a single step: > write a public method having some parameter, then call that method > passing the data you want. That method can use the data you passed and > do what is needed. > > For example, suppose you have a main form which, at some point, opens > another form as a "status" form. This StatusForm has a Label1 on it, > showing some message. If controls are public (first solution), then you > simply write in the main: > > StatusForm.Label1.Text = "Opening data file..." > WAIT ' this is required to update instantly the screen > > Using the second way runs like this. In the StatusForm code (.class > file), declare a public method like this: > > PUBLIC SUB UpdateMessage(st AS String) > Label1.Text = st > WAIT > END > > At this point, in the main program, you can call: > StatusForm.UpdateMessage("Opening data file...") > >> - How can I see any -manual inserted- data in Tableview and/or >> Gridview.. >> > Look at the manual page about GridView - it contains an example on how > to set grid "dimensions" (number of row and columns), and fill them by > code. About to see them... I don't understand the problem; provided that > the event loop is called, then you will see any data a Gridview is > filled with. > > Email again if you have still problems. > > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From sbungay at ...981... Tue Sep 2 16:02:12 2008 From: sbungay at ...981... (Stephen Bungay) Date: Tue, 02 Sep 2008 10:02:12 -0400 Subject: [Gambas-user] new user In-Reply-To: <61452b690809020201j330b4160r1f28d562e85c0704@...627...> References: <48BABD12.6060805@...1400...> <200809011249.13596.gambas@...1938...> <20080901035553.mtpfp85lw4cwgw0w@...1958...> <61452b690809010405h258e3321u8b8a3016ee2920b6@...627...> <20080901041108.njb1osgekg488kwc@...1958...> <61452b690809010448v19769a07i7810d274ab4c1c02@...627...> <20080901121443.wx94pyo9skw4oc44@...1958...> <61452b690809011218r361c611fs1eed14a71bd1dbe3@...627...> <1220297236.7347.4.camel@...1964...> <48BCEDA2.9010904@...1909...> <61452b690809020201j330b4160r1f28d562e85c0704@...627...> Message-ID: <48BD4764.9050205@...981...> Kari means go to the online help. Select the little question mark '?' to the right of the 'tools' menu at the top of the GAMBAS IDE. Then select 'Help Browswer' and when it appears you will see on the left side of the window a list of items entitled 'Gambas components'. Now I usually use QT, so I would look down through that list until I find the item labeled 'gb.qt' and click on the plus sign '+' to expand it out. If you're using GTK then look for 'gb.gtk' and click on the '+' that is next to it. Look down through the resulting expanded tree of items and you will see an entry for 'GridView'. Click on THAT and you will get the information of which Kari speaks. Steve. Kari Laine wrote: > On Tue, Sep 2, 2008 at 10:39 AM, Doriano Blengino < > doriano.blengino at ...1909...> wrote: > >> Look at the manual page about GridView - it contains an example on how >> to set grid "dimensions" (number of row and columns), and fill them by >> code. About to see them... I don't understand the problem; provided that >> the event loop is called, then you will see any data a Gridview is >> filled with. >> >> > Thanks for good info. Could you please tell me what you are referring with > "manual page about GridView"? I could not find it. > > Best Regards > Kari > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1938... Tue Sep 2 16:14:04 2008 From: gambas at ...1938... (gambas at ...1938...) Date: Tue, 2 Sep 2008 16:14:04 +0200 Subject: [Gambas-user] ByRef In-Reply-To: References: Message-ID: <200809021614.04519.gambas@...1938...> Am Dienstag, 2. September 2008 12:06:09 schrieb Emil Tchekov: > Forgot to gave you example (VB) > > > sub main() > > dim a as integer > > a=1 > > debug.print a, pr1(a) > debug.print a, pr2(a) > debug.print a > > end sub > > > private sub pr1(byval a) > > a=2 > > return a > > end sub > > > private sub pr2(byref a) > > a=2 > > return a > > end sub > > > result will be as follows > > 1 2 > > 1* 2 > > 2 (!) > > > *As you can see on the first sub the var a is local to your sub, it was > changed (returns 2), but the passed a has stil value 1 > > (!) in the second procedure the passed var a was changed! (the a that was > defined in the sub main!) Hi Emil, thanks for your reply! ...it helped to understand the concepts and the syntax. Meanwhile I got it running. Gambas wants the "Byref" twice! Once by calling the procedure and a second time in the header of the function. Sub Main DIM sResult as String sResult = "" GetData(Byref sResult) Print sResult & "\n" End Public Sub GetData(ByRef sResult As String) sResult = "Hello" End Greetz Stevie From gambas at ...1... Tue Sep 2 16:35:47 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 2 Sep 2008 16:35:47 +0200 Subject: [Gambas-user] ByRef In-Reply-To: <200809021614.04519.gambas@...1938...> References: <200809021614.04519.gambas@...1938...> Message-ID: <200809021635.47987.gambas@...1...> On mardi 02 septembre 2008, gambas at ...1938... wrote: > Am Dienstag, 2. September 2008 12:06:09 schrieb Emil Tchekov: > > Forgot to gave you example (VB) > > > > > > sub main() > > > > dim a as integer > > > > a=1 > > > > debug.print a, pr1(a) > > debug.print a, pr2(a) > > debug.print a > > > > end sub > > > > > > private sub pr1(byval a) > > > > a=2 > > > > return a > > > > end sub > > > > > > private sub pr2(byref a) > > > > a=2 > > > > return a > > > > end sub > > > > > > result will be as follows > > > > 1 2 > > > > 1* 2 > > > > 2 (!) > > > > > > *As you can see on the first sub the var a is local to your sub, it was > > changed (returns 2), but the passed a has stil value 1 > > > > (!) in the second procedure the passed var a was changed! (the a that was > > defined in the sub main!) > > Hi Emil, > > thanks for your reply! ...it helped to understand the concepts and the > syntax. Meanwhile I got it running. Gambas wants the "Byref" twice! Once by > calling the procedure and a second time in the header of the function. > > Sub Main > > DIM sResult as String > sResult = "" > GetData(Byref sResult) > Print sResult & "\n" > End > > > Public Sub GetData(ByRef sResult As String) > > sResult = "Hello" > > End > > Greetz > Stevie > The ByRef feature was mainly added to help people porting VB project. It does not work by passing pointers, but by keeping the value of the argument when the function ends, and put it into the expression passed ByRef. GetData(ByRef sResult) does actually the following: GetData(sResult) ' Push sResult on the stack as first argument. ... ' Do not free the stack after GetData ends. sResult = ... ' Gets the value from the stack and put it into sResult. Note that this way, any assignment expression can be passed by reference. GetData(ByRef MyCollectionOfLabels["key"].Text) At function declaration, ByRef means that you *can* pass the argument by reference, but that you may not. At function call, ByRef means that you *want* the argument to be passe by reference. As Gambas linking is entirely dynamic, the interpreter checks at runtime that you use ByRef if the function really allows it. This is the reason why ByRef must be specified noth at function declaration and at function call. Moreover, you can see that ByRef makes the function call slower because of the needed checks and the recall of the value from the stack. Regards, -- Benoit Minisini From klaine8 at ...626... Tue Sep 2 16:37:34 2008 From: klaine8 at ...626... (Kari Laine) Date: Tue, 2 Sep 2008 17:37:34 +0300 Subject: [Gambas-user] new user In-Reply-To: <48BD4764.9050205@...981...> References: <48BABD12.6060805@...1400...> <61452b690809010405h258e3321u8b8a3016ee2920b6@...627...> <20080901041108.njb1osgekg488kwc@...1958...> <61452b690809010448v19769a07i7810d274ab4c1c02@...627...> <20080901121443.wx94pyo9skw4oc44@...1958...> <61452b690809011218r361c611fs1eed14a71bd1dbe3@...627...> <1220297236.7347.4.camel@...1964...> <48BCEDA2.9010904@...1909...> <61452b690809020201j330b4160r1f28d562e85c0704@...627...> <48BD4764.9050205@...981...> Message-ID: <61452b690809020737g6396db69ta6b231e070c46c2c@...627...> On Tue, Sep 2, 2008 at 5:02 PM, Stephen Bungay wrote: > Kari means go to the online help. > > Select the little question mark '?' to the right of the 'tools' menu > at the top of the GAMBAS IDE. Then select 'Help Browswer' and when it > appears you will see on the left side of the window a list of items > entitled 'Gambas components'. > I really know this :-))) But that "man gridview" confused me because I thought there are man pages for things.... Best Regards Kari From ronstk at ...239... Tue Sep 2 17:16:10 2008 From: ronstk at ...239... (Ron_1st) Date: Tue, 2 Sep 2008 17:16:10 +0200 Subject: [Gambas-user] Nice book of Gambas In-Reply-To: <61452b690809020222p71012be5r52c843adab6af5ce@...627...> References: <48BABD12.6060805@...1400...> <200809021042.20035.rospolosco@...152...> <61452b690809020222p71012be5r52c843adab6af5ce@...627...> Message-ID: <200809021716.10485.ronstk@...239...> On Tuesday 02 September 2008, Kari Laine wrote: > On Tue, Sep 2, 2008 at 11:42 AM, Stefano Palmeri wrote: > > > Fabien, bad idea to spread the world with J.R. health conditions. > > It's against privacy law on many countries, unless J.R. gave you > > permission to do that. I think it's a good idea removing > > that message from Gambas online archives. > > Benoit, can you do it? > > > > Best regards, > > > > Stefano Palmeri > > > If I would knew that this going to start this heated discussion I would not > have posted it in the first place... > No problem of a heated discussion for me. I think it just only good to try to get the real permision. The idea to make a wiki of it so users can contribute to it is just fine. I had also in the first time many problems to find the way how all the stuff was mixed together and I'm not the only one. > Anyway here are the details for the publisher > Beginner's Guide to Gambas *by John W. > Rittinghouse > * > Product Details > >? ?- ISBN: 0741429489 >? ?- ISBN-13: 9780741429483 >? ?- Format: Paperback, 364pp >? ?- Publisher: Buy Books on the Web.Com >? ?- Pub. Date: January 2006 >? ?- Sales Rank: 476,005 > > http://www.buybooksontheweb.com/ > > There is a contact on the page. Someone with good english should write > proposition to them. > Possibly discuss it here. > But I am quite sure the answer from the publisher is NO. Think the same. But never try is always lost. > > Best Regards > Kari Laine Best regards Ron_1st -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? From gambas at ...1938... Tue Sep 2 18:04:16 2008 From: gambas at ...1938... (gambas at ...1938...) Date: Tue, 2 Sep 2008 18:04:16 +0200 Subject: [Gambas-user] ByRef In-Reply-To: <200809021635.47987.gambas@...1...> References: <200809021614.04519.gambas@...1938...> <200809021635.47987.gambas@...1...> Message-ID: <200809021804.16375.gambas@...1938...> Am Dienstag, 2. September 2008 16:35:47 schrieb Benoit Minisini: > > The ByRef feature was mainly added to help people porting VB project. > > It does not work by passing pointers, but by keeping the value of the > argument when the function ends, and put it into the expression passed > ByRef. > > GetData(ByRef sResult) > > does actually the following: > > GetData(sResult) ' Push sResult on the stack as first argument. > ... ' Do not free the stack after GetData ends. > sResult = ... ' Gets the value from the stack and put it into sResult. > > Note that this way, any assignment expression can be passed by reference. > > GetData(ByRef MyCollectionOfLabels["key"].Text) > > At function declaration, ByRef means that you *can* pass the argument by > reference, but that you may not. > > At function call, ByRef means that you *want* the argument to be passe by > reference. > > As Gambas linking is entirely dynamic, the interpreter checks at runtime > that you use ByRef if the function really allows it. This is the reason why > ByRef must be specified noth at function declaration and at function call. > > Moreover, you can see that ByRef makes the function call slower because of > the needed checks and the recall of the value from the stack. Message understood!!! :-))) Thank you very much! Greetz Stevie From klaine8 at ...626... Tue Sep 2 18:11:23 2008 From: klaine8 at ...626... (Kari Laine) Date: Tue, 2 Sep 2008 19:11:23 +0300 Subject: [Gambas-user] Nice book of Gambas In-Reply-To: <200809021716.10485.ronstk@...239...> References: <48BABD12.6060805@...1400...> <200809021042.20035.rospolosco@...152...> <61452b690809020222p71012be5r52c843adab6af5ce@...627...> <200809021716.10485.ronstk@...239...> Message-ID: <61452b690809020911y6d56a0c2v84882a6656558447@...627...> On Tue, Sep 2, 2008 at 6:16 PM, Ron_1st wrote: > On Tuesday 02 September 2008, Kari Laine wrote: > > On Tue, Sep 2, 2008 at 11:42 AM, Stefano Palmeri >wrote: > > > > Product Details > > > > - ISBN: 0741429489 > > - ISBN-13: 9780741429483 > > - Format: Paperback, 364pp > > - Publisher: Buy Books on the Web.Com > > - Pub. Date: January 2006 > > - Sales Rank: 476,005 > > > > http://www.buybooksontheweb.com/ > > > > There is a contact on the page. Someone with good english should write > > proposition to them. > > Possibly discuss it here. > > But I am quite sure the answer from the publisher is NO. > > Think the same. But never try is always lost. > > They will ask "What's there for me?" Maybe addspace for them at allbasic.info ? Best Regards Kari From gambas at ...1938... Tue Sep 2 18:28:38 2008 From: gambas at ...1938... (gambas at ...1938...) Date: Tue, 2 Sep 2008 18:28:38 +0200 Subject: [Gambas-user] Nice book of Gambas In-Reply-To: <200809021716.10485.ronstk@...239...> References: <48BABD12.6060805@...1400...> <61452b690809020222p71012be5r52c843adab6af5ce@...627...> <200809021716.10485.ronstk@...239...> Message-ID: <200809021828.38329.gambas@...1938...> Am Dienstag, 2. September 2008 17:16:10 schrieb Ron_1st: > > If I would knew that this going to start this heated discussion I would > > not have posted it in the first place... > > No problem of a heated discussion for me. Full Ack! > I think it just only good to try to get the real permision. After reading the licence, any other strategy would be a crime! > > Anyway here are the details for the publisher > > > > Beginner's Guide to Gambas *by John W. > > Rittinghouse >John+W%2E+Rittinghouse> * > > Product Details > > > >? ?- ISBN: 0741429489 > >? ?- ISBN-13: 9780741429483 > >? ?- Format: Paperback, 364pp > >? ?- Publisher: Buy Books on the Web.Com > >? ?- Pub. Date: January 2006 > >? ?- Sales Rank: 476,005 > > > > http://www.buybooksontheweb.com/ > > > > There is a contact on the page. Someone with good english should write > > proposition to them. > > Possibly discuss it here. > > But I am quite sure the answer from the publisher is NO. I would do it....but English is not my native language. :-( Perhaps (at a first step) we should create a list of arguments, why the publisher should grant us permission to modify the books content. ...and to be honest: I don't think, that they say: NO ...because: - Meanwhile the book is overaged ...something about 50% - With every new release of Gambas it becomes older and older....and "our" Benoit is a hard-working guy! ;-) - J.R. never updated the book...it's (too???) much work to update it in an one-man-show. - The book is free for downloading. ...reading it, to become an overview regarding Gambas is okay...but, because of its age, it's no reliable reference. ...only a few people would pay for the print. ...so making money with the book is a fading process. ...uuuuuuuuppppppsssss! ...I created a list of arguments! ;-) Greetz Stevie From klaine8 at ...626... Tue Sep 2 21:59:21 2008 From: klaine8 at ...626... (Kari Laine) Date: Tue, 2 Sep 2008 22:59:21 +0300 Subject: [Gambas-user] Nice book of Gambas In-Reply-To: <200809021828.38329.gambas@...1938...> References: <48BABD12.6060805@...1400...> <61452b690809020222p71012be5r52c843adab6af5ce@...627...> <200809021716.10485.ronstk@...239...> <200809021828.38329.gambas@...1938...> Message-ID: <61452b690809021259x10c9dbdch39fb0eea4b7888ac@...627...> On Tue, Sep 2, 2008 at 7:28 PM, wrote: > Am Dienstag, 2. September 2008 17:16:10 schrieb Ron_1st: > > > If I would knew that this going to start this heated discussion I would > > > not have posted it in the first place... > > > > No problem of a heated discussion for me. > Full Ack! > > > I think it just only good to try to get the real permision. > After reading the licence, any other strategy would be a crime! > > > > > > > http://www.buybooksontheweb.com/ > > > > > > There is a contact on the page. Someone with good english should write > > > proposition to them. > > > Possibly discuss it here. > > > But I am quite sure the answer from the publisher is NO. > I would do it....but English is not my native language. :-( > > Perhaps (at a first step) we should create a list of arguments, why the > publisher should grant us permission to modify the books content. > ...and to be honest: I don't think, that they say: NO ...because: > - Meanwhile the book is overaged ...something about 50% > - With every new release of Gambas it becomes older and older....and "our" > Benoit is a hard-working guy! ;-) > - J.R. never updated the book...it's (too???) much work to update it in an > one-man-show. > - The book is free for downloading. ...reading it, to become an overview > regarding Gambas is okay...but, because of its age, it's no reliable > reference. ...only a few people would pay for the print. ...so making money > with the book is a fading process. > > ...uuuuuuuuppppppsssss! ...I created a list of arguments! ;-) > I think you made a good summary. Another thing might be that publisher might get updated book to publish. I mean some people want the real thing. I have bought - I think three at least - Rubini's device driver book, samba-book, a Linux kernel book, and a linux programming book. It is nice to have the real thing - harddisks tend to crash :-) And as I wrote earlier add-space for the publisher is valuable thing these days. Now we need a volunteer to write a first draft. Best Regards Kari Laine From rterry at ...1946... Wed Sep 3 01:59:41 2008 From: rterry at ...1946... (richard terry) Date: Wed, 3 Sep 2008 09:59:41 +1000 Subject: [Gambas-user] Q:how to save a file.png into Postgresql In-Reply-To: <200809021348.58728.rolf.frogs@...221...> References: <200808290722.21869.rterry@...1946...> <200809010929.49549.rterry@...1946...> <200809021348.58728.rolf.frogs@...221...> Message-ID: <200809030959.41332.rterry@...1946...> On Tue, 2 Sep 2008 09:48:55 pm you wrote: Ok, that got me a bit further: This is the resultant (failed) insert query . First try using $$ as the delimiters as per my code gives this and fails: insert into clin_consult.temp_image(piccie)values($$\\211PNG\\015\\012\\032\\012\\000\\000\\000\\015IHDR\\000\\000\\000\\232\\000\\000\\000\\311\\010\\002\\000\\000\\000T\\207\\274\\031\\000\\000\\005\\266IDATx\\234\\355\\235\\331\\266\\2330\\020\\004\\345\\234\\374\\377/\\223\\007\\345\\020\\007\\373\\012!f\\351i\\272\\236\\262\\330 M1#!\\263\\274\\266mk\\202\\205_\\331\\015\\020\\226H\'\\025\\322I\\205tR! \\235TH\'\\025\\322I\\205tR\\361;\\273\\001f\\274^/\\333\\015V\\134`! \\311Ns\\227N\\333\\364\\206A\\247_\\334\\313\\031e\\320)v\\244\\223\\212\\362: \\313\\325CW\\312\\353\\364\\246\\326\\341R[g\\255X\\007P\\370\\274s\\354\\362\\352Y#\\307\\221Q5; \\265h\\360\\225\\252: \\307\\330\\272)\\224\\270%u\\026\\212o0\\365t\\236\\272\\344 (\\233k\\024\\323\\351\\352r\\360\\335*\\365\\240\\222N\\345\\345)5NT\\252$G: \\005\\262s\\322\\245wj\\2268\\244\\320u\\006\\273\\254^\\256\\241u\\202\\344e!puf\\271,=\\277\\005\\325\\251\\274\\134\\003T\\347\\014r\\371\\311\\0130 (\\010\\347\\227\\2036\\000Fl\\007.; \\021\\134\\216A\\036A\\341t\\216Iw\\011\\016\\226N\\333_\\244\\3570\\336\\027l\\202\\002\\351\\204\\215Q!Pt\\002\\016\\231\\025\\023\\024B\'\\240\\313\\242\\344\\353DvY\\3560J\\326\\211Y\\262&\\001l| \\246\\316\\231p\\244\\347G\\255\\0214\\277\\330\\016Hw9\\003\\224\\3214\\235\\310C\\346\\001\\234\\226\\234\\002\\232\\235h\\021\\254Rrst\\342\\254\\376\\314S\\302h\\202N\\220\\236\\233\\203\\320\\257h\\235\\205\\206\\314ON\\333\\226n\\024t\\354\\024k\\204\\352, \\235\\232\\035\\360\\004\\005\\312N|\\227\\035d\\243q:+\\316f\\177\\002\\326 (Pv\\326b\\306h\\274\\324 \\235L\\251y\\211`\\243\\021: \\323\\247\\357NL\\036\\205\\221\\335w\\327I0\\233\\375J\\357\\327\\274\\321\\030\\251\\276:Y]\\2763\\337\\205\\000\\243\\216: \\237\\340\\262\\263m\\033H\\232z\\335\\256\\313:^\\016\\330\\266m\\262\\327~\\301\\261\\327Y\\372n\\241\\367\\306/\\264p\\336\\350\\362. \\306\\030\\337\\243R\\335\\345 {\\303\\016\\177}\\377w\\303\\235\\332\\206\\302,; \\347;Y\\302\\345\\347\\377\\356\\177\\356\\037\\033\\177\\276M\\007\\344\\322\\014\\371| k&\\033"p\\331\\377\\260\\253:|\\340\\263\\331\\247: \\277ng\\200\\215\\210\\233 [\\311\\035*L\\370I\\336i\\276\\316tg\\2412\\337\\211\\322\\255b[\\327\\345\\370\\366\\315IUw\\3662\\376\\326\\362\\336o| \\263\\254\\313w\\356\\334\\226 {(\\321\\2276~\\312Z\\304Vtr\\210\\334\\371\\251; \\313\\313=\\373\\027o\\316\\201\\027Bw\\241\\330>pe`\\222C\\334\\255\\002\\265Pug\\277\\020_7b\\350!; \\234-\\344\\216\\235\\357\\134m\\306Tv\\336l\\226Ut\\3748\\234\\237\\200\\267v\\200\\256F\\370G\\267\\030\\340r~\\311\\376*\\226k\\266WW, \\021x\\257\\264\\301U\\344\\260\\240h\\262M3\\235\\247+^\\260\\025lr\\321\\316\\273\\015_\\247\\307W\\357\\231\\234\\3229N;XO\\227H\\357\\305\\327\\006\\134]x\\232\\315\\316\\257F\\323C\\200L\\330\\270s9;? \\2776\\370L\\271\\341\\223\\011\\315l\\251@\\271\\012\\3769\\270\\216P\\312N\\027tS\\2030\\300^\\247\\246\\273\\211 (; \\355ISP\\2615#\\275\\3226\\351$\\303Q\\247\\352m<9\\2572\\017\\270l\\356\\346m\\361\\206D\\356\\235\\263\\330\\036\\206\\261\\347\\314\\245\\011u~\\225\\367\\020\\243\\276:5| \\006C\\230\\235OF:\\251 \\324\\271| w\\000\\001\\270o9\\272\\303A\\336C\\134\\266\\254\\363\\316\\000\\202\\025\\202\\314\\234\\011\\213\\355\\223q\\327\\371\\234B\\207\\200\\262\\323\\227\\340\\243Y: \\251\\220N*\\244\\223\\012\\351\\244B: \\251\\220N*\\244\\223\\012\\351\\244B: \\251\\220N*\\244\\223\\012\\351\\244B: \\251\\220N*\\244\\223\\012\\351\\244B: \\251\\220N*\\244\\223\\012\\351\\244B: \\251\\220N*\\244\\223\\012\\351\\244B: \\251\\220N*\\244\\223\\012\\351\\244B: \\251\\220N*\\244\\223\\012\\351\\244B: \\251p\\327\\011\\362\\014\\210\\207\\240\\354\\244B: \\251H\\323\\251\'\\232x\\340\\253S\\003gp\\004Tl\\251p\\324\\251\\324\\214\\307\\345\\231\\354\\247")\\007N\\316\\027o()\\0231\\3269\\343\\22225\\307\\204\\035\\342\\232\\012Q! \\235A\\304$\\250\\336\\020H\\205\\261\\316\\311qQF\\235\\340| \\026\\374c\\261\\3279?q}\\275^LR\\021f\\354\\371\\2572\\227QCB\\337\\3247&=\\026\\367\\031w6\\240\\203@\\217\\366\\257^{\\021\\032\\357\\236\\235\\177ws\\261\\253\\2652u\\262w\\014\\331\\331\\331\\266\\215u@\\205jj\\350\\211\\012\\237Q\\264\\231AP\\261\\375o\\227W<\\301V]\\314^$\\350l\\250\\261\\230\\007-)wrt\\266\\262F\\301\\233\\235\\246\\363_\\013`\\246\\205\\247\\200\\273l\\010: [\\005\\243\\370";\\020:;\\200W2, \\314\\256s\\343\\011\\244\\263\\201\\031\\255\\270\\364\\201\\245\\263\\223~!`\\271\\244\\334)\\371\\262\\344\\036\\356\\224KJ? \\001\\021\\331A\\274V(\\353\\222\\206\\352. \\033f\\261\\355\\204\\235\\252\\257\\035\\026\\230q\\303\\325\\331\\374O\\017\\226\\363\\0336h\\320: \\233\\233Q>\\221\\035t\\235\\315\\324 (\\253\\305\\035\\304\\251\\320\\001\\253\\237\\325\\350]\\266\\022\\331\\271\\263<9z\\202\\310N%\\235\\235KR\\237#\\262SOg\\363\\277P\\241bL: %uv\\314\\245\\326\\015\\305Na\\235\\315\\316h\\351 \\274S[g\\273m\\264z\\367\\017\\224\\327\\331\\270V\\351n\\302\\240\\263\\325\\271Z\\300\\233\\222? \\220-C, \\262C\\222\\235\\015\\340v\\037\\004xt\\266\\037\\2142u\\360\\024*\\235\\242\\300\\022\\274\\230G: \\251\\220N*\\244\\223\\012\\351\\244B: \\251\\220N*\\244\\223\\012\\351\\244B: \\251\\220N*\\244\\223\\012\\351\\244B: \\251\\370\\003>\\241\\324n\\304~\\303\\331\\000\\000\\000\\000IEND\\256B`\\202$$) Second try using ' as delimeters gives this and fails, but adds a hint: insert into clin_consult.temp_image(piccie)values('\\211PNG\\015\\012\\032\\012\\000\\000\\000\\015IHDR\\000\\000\\000\\232\\000\\000\\000\\311\\010\\002\\000\\000\\000T\\207\\274\\031\\000\\000\\005\\266IDATx\\234\\355\\235\\331\\266\\2330\\020\\004\\345\\234\\374\\377/\\223\\007\\345\\020\\007\\373\\012!f\\351i\\272\\236\\262\\330 M1#!\\263\\274\\266mk\\202\\205_\\331\\015\\020\\226H\'\\025\\322I\\205tR! \\235TH\'\\025\\322I\\205tR\\361;\\273\\001f\\274^/\\333\\015V\\134`! \\311Ns\\227N\\333\\364\\206A\\247_\\334\\313\\031e\\320)v\\244\\223\\212\\362: \\313\\325CW\\312\\353\\364\\246\\326\\341R[g\\255X\\007P\\370\\274s\\354\\362\\352Y#\\307\\221Q5; \\265h\\360\\225\\252: \\307\\330\\272)\\224\\270%u\\026\\212o0\\365t\\236\\272\\344 (\\233k\\024\\323\\351\\352r\\360\\335*\\365\\240\\222N\\345\\345)5NT\\252$G: \\005\\262s\\322\\245wj\\2268\\244\\320u\\006\\273\\254^\\256\\241u\\202\\344e!puf\\271,=\\277\\005\\325\\251\\274\\134\\003T\\347\\014r\\371\\311\\0130 (\\010\\347\\227\\2036\\000Fl\\007.; \\021\\134\\216A\\036A\\341t\\216Iw\\011\\016\\226N\\333_\\244\\3570\\336\\027l\\202\\002\\351\\204\\215Q!Pt\\002\\016\\231\\025\\023\\024B\'\\240\\313\\242\\344\\353DvY\\3560J\\326\\211Y\\262&\\001l| \\246\\316\\231p\\244\\347G\\255\\0214\\277\\330\\016Hw9\\003\\224\\3214\\235\\310C\\346\\001\\234\\226\\234\\002\\232\\235h\\021\\254Rrst\\342\\254\\376\\314S\\302h\\202N\\220\\236\\233\\203\\320\\257h\\235\\205\\206\\314ON\\333\\226n\\024t\\354\\024k\\204\\352, \\235\\232\\035\\360\\004\\005\\312N|\\227\\035d\\243q:+\\316f\\177\\002\\326 (Pv\\326b\\306h\\274\\324 \\235L\\251y\\211`\\243\\021: \\323\\247\\357NL\\036\\205\\221\\335w\\327I0\\233\\375J\\357\\327\\274\\321\\030\\251\\276:Y]\\2763\\337\\205\\000\\243\\216: \\237\\340\\262\\263m\\033H\\232z\\335\\256\\313:^\\016\\330\\266m\\262\\327~\\301\\261\\327Y\\372n\\241\\367\\306/\\264p\\336\\350\\362. \\306\\030\\337\\243R\\335\\345 {\\303\\016\\177}\\377w\\303\\235\\332\\206\\302,; \\347;Y\\302\\345\\347\\377\\356\\177\\356\\037\\033\\177\\276M\\007\\344\\322\\014\\371| k&\\033"p\\331\\377\\260\\253:|\\340\\263\\331\\247: \\277ng\\200\\215\\210\\233 [\\311\\035*L\\370I\\336i\\276\\316tg\\2412\\337\\211\\322\\255b[\\327\\345\\370\\366\\315IUw\\3662\\376\\326\\362\\336o| \\263\\254\\313w\\356\\334\\226 {(\\321\\2276~\\312Z\\304Vtr\\210\\334\\371\\251; \\313\\313=\\373\\027o\\316\\201\\027Bw\\241\\330>pe`\\222C\\334\\255\\002\\265Pug\\277\\020_7b\\350!; \\234-\\344\\216\\235\\357\\134m\\306Tv\\336l\\226Ut\\3748\\234\\237\\200\\267v\\200\\256F\\370G\\267\\030\\340r~\\311\\376*\\226k\\266WW, \\021x\\257\\264\\301U\\344\\260\\240h\\262M3\\235\\247+^\\260\\025lr\\321\\316\\273\\015_\\247\\307W\\357\\231\\234\\3229N;XO\\227H\\357\\305\\327\\006\\134]x\\232\\315\\316\\257F\\323C\\200L\\330\\270s9;? \\2776\\370L\\271\\341\\223\\011\\315l\\251@\\271\\012\\3769\\270\\216P\\312N\\027tS\\2030\\300^\\247\\246\\273\\211 (; \\355ISP\\2615#\\275\\3226\\351$\\303Q\\247\\352m<9\\2572\\017\\270l\\356\\346m\\361\\206D\\356\\235\\263\\330\\036\\206\\261\\347\\314\\245\\011u~\\225\\367\\020\\243\\276:5| \\006C\\230\\235OF:\\251 \\324\\271| w\\000\\001\\270o9\\272\\303A\\336C\\134\\266\\254\\363\\316\\000\\202\\025\\202\\314\\234\\011\\213\\355\\223q\\327\\371\\234B\\207\\200\\262\\323\\227\\340\\243Y: \\251\\220N*\\244\\223\\012\\351\\244B: \\251\\220N*\\244\\223\\012\\351\\244B: \\251\\220N*\\244\\223\\012\\351\\244B: \\251\\220N*\\244\\223\\012\\351\\244B: \\251\\220N*\\244\\223\\012\\351\\244B: \\251\\220N*\\244\\223\\012\\351\\244B: \\251\\220N*\\244\\223\\012\\351\\244B: \\251\\220N*\\244\\223\\012\\351\\244B: \\251p\\327\\011\\362\\014\\210\\207\\240\\354\\244B: \\251H\\323\\251\'\\232x\\340\\253S\\003gp\\004Tl\\251p\\324\\251\\324\\214\\307\\345\\231\\354\\247")\\007N\\316\\027o()\\0231\\3269\\343\\22225\\307\\204\\035\\342\\232\\012Q! \\235A\\304$\\250\\336\\020H\\205\\261\\316\\311qQF\\235\\340| \\026\\374c\\261\\3279?q}\\275^LR\\021f\\354\\371\\2572\\227QCB\\337\\3247&=\\026\\367\\031w6\\240\\203@\\217\\366\\257^{\\021\\032\\357\\236\\235\\177ws\\261\\253\\2652u\\262w\\014\\331\\331\\331\\266\\215u@\\205jj\\350\\211\\012\\237Q\\264\\231AP\\261\\375o\\227W<\\301V]\\314^$\\350l\\250\\261\\230\\007-)wrt\\266\\262F\\301\\233\\235\\246\\363_\\013`\\246\\205\\247\\200\\273l\\010: [\\005\\243\\370";\\020:;\\200W2, \\314\\256s\\343\\011\\244\\263\\201\\031\\255\\270\\364\\201\\245\\263\\223~!`\\271\\244\\334)\\371\\262\\344\\036\\356\\224KJ? \\001\\021\\331A\\274V(\\353\\222\\206\\352. \\033f\\261\\355\\204\\235\\252\\257\\035\\026\\230q\\303\\325\\331\\374O\\017\\226\\363\\0336h\\320: \\233\\233Q>\\221\\035t\\235\\315\\324 (\\253\\305\\035\\304\\251\\320\\001\\253\\237\\325\\350]\\266\\022\\331\\271\\263<9z\\202\\310N%\\235\\235KR\\237#\\262SOg\\363\\277P\\241bL: %uv\\314\\245\\326\\015\\305Na\\235\\315\\316h\\351 \\274S[g\\273m\\264z\\367\\017\\224\\327\\331\\270V\\351n\\302\\240\\263\\325\\271Z\\300\\233\\222? \\220-C, \\262C\\222\\235\\015\\340v\\037\\004xt\\266\\037\\2142u\\360\\024*\\235\\242\\300\\022\\274\\230G: \\251\\220N*\\244\\223\\012\\351\\244B: \\251\\220N*\\244\\223\\012\\351\\244B: \\251\\220N*\\244\\223\\012\\351\\244B: \\251\\370\\003>\\241\\324n\\304~\\303\\331\\000\\000\\000\\000IEND\\256B`\\202') WARNING: nonstandard use of \\ in a string literal LINE 1: insert into clin_consult.temp_image(piccie)values('\\211PNG\... ^ HINT: Use the escape string syntax for backslashes, e.g., E'\\'. Perhaps someone can understand this and help Regards Richard > Hello Richard > > > Dies at the line containing 'Coct' with message: unknown identifier > > > > but I'm sure this way is good, as I can remember reading something about > > this in the postgres doc's but couldn't figure out how to do the > > substitution. > > OK, I thougt it is a Gambas converting function, but it isn't. > It should convert a given number into an octal number, return the number as > a string. > So here it is: > > PRIVAT FUNCTION COct(num as Integer) as String > DIM octnumber AS NEW Interger[] > DIM octstring as String > > octnumber.Add(int(num / 64)) > octnumber.Add(int((num MOD 64) / 8 )) > octnumber.Add((num Mod 64) MOD 8) > octstring = octnumber[0] & octnumber[1] & octnumber[2] > RETURN octstring > END > > > Next step? > > Test it. > > Fine regards > Rolf From kari.laine at ...1400... Wed Sep 3 02:25:12 2008 From: kari.laine at ...1400... (Kari Laine) Date: Wed, 03 Sep 2008 03:25:12 +0300 Subject: [Gambas-user] Books about compilers and interpreters Message-ID: <48BDD968.7070901@...1400...> Hi, Could we collect to this thread list of books which are good about compiler and interpreter design. I have one old book but it is pretty tough read. It is Compilers Principles, Techniques and Tools by Alfred V.Aho, Ravi Sethi, Jeffrey D.Ullman. I am seeking a easier book to make me ready to tackle that one. I am also after ANSI C standard document. Is it available gratis from net as pdf? Benoit ? Best Regards Kari Laine From sbungay at ...981... Wed Sep 3 04:50:17 2008 From: sbungay at ...981... (Stephen Bungay) Date: Tue, 02 Sep 2008 22:50:17 -0400 Subject: [Gambas-user] new user In-Reply-To: <61452b690809020737g6396db69ta6b231e070c46c2c@...627...> References: <48BABD12.6060805@...1400...> <61452b690809010405h258e3321u8b8a3016ee2920b6@...627...> <20080901041108.njb1osgekg488kwc@...1958...> <61452b690809010448v19769a07i7810d274ab4c1c02@...627...> <20080901121443.wx94pyo9skw4oc44@...1958...> <61452b690809011218r361c611fs1eed14a71bd1dbe3@...627...> <1220297236.7347.4.camel@...1964...> <48BCEDA2.9010904@...1909...> <61452b690809020201j330b4160r1f28d562e85c0704@...627...> <48BD4764.9050205@...981...> <61452b690809020737g6396db69ta6b231e070c46c2c@...627...> Message-ID: <48BDFB69.8050108@...981...> Yeah there are man pages for things... but the conventional man pages don't apply to GAMBAS and the components. :) Kari Laine wrote: > On Tue, Sep 2, 2008 at 5:02 PM, Stephen Bungay wrote: > >> Kari means go to the online help. >> >> Select the little question mark '?' to the right of the 'tools' menu >> at the top of the GAMBAS IDE. Then select 'Help Browswer' and when it >> appears you will see on the left side of the window a list of items >> entitled 'Gambas components'. >> > > I really know this :-))) But that "man gridview" confused me because I > thought there are man pages for things.... > > > Best Regards > Kari > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From klaine8 at ...626... Wed Sep 3 05:19:38 2008 From: klaine8 at ...626... (Kari Laine) Date: Wed, 3 Sep 2008 06:19:38 +0300 Subject: [Gambas-user] Books about compilers and interpreters In-Reply-To: <48BDD968.7070901@...1400...> References: <48BDD968.7070901@...1400...> Message-ID: <61452b690809022019r72deb2cbp63ba9c5e4c5e9e34@...627...> On Wed, Sep 3, 2008 at 3:25 AM, Kari Laine wrote: > Hi, > > Could we collect to this thread list of books which are good about > compiler and interpreter design. > > Forget first wrong list second amazon.co.uk search compilers and there is ton to select. Kari From klaine8 at ...626... Wed Sep 3 07:33:48 2008 From: klaine8 at ...626... (Kari Laine) Date: Wed, 3 Sep 2008 08:33:48 +0300 Subject: [Gambas-user] Nice book of Gambas In-Reply-To: <61452b690809021259x10c9dbdch39fb0eea4b7888ac@...627...> References: <48BABD12.6060805@...1400...> <61452b690809020222p71012be5r52c843adab6af5ce@...627...> <200809021716.10485.ronstk@...239...> <200809021828.38329.gambas@...1938...> <61452b690809021259x10c9dbdch39fb0eea4b7888ac@...627...> Message-ID: <61452b690809022233w9e2b606v1901afe96ef1fec6@...627...> Hi, as nobody has volunteered I try to write this proposal for publisher. ---------------------- Dear Sir, You are the publisher for a book from John W. Rittinghouse titled as Beginner's Guide to Gambas. It is very fine book but parts of it are pretty dated. Gambas project is very active and it has users all over the world. *Gambas* is a free development environment based on a *Basic* interpreter with object extensions, a bit like *Visual Basic?* (but it is *NOT* a clone !) More information at the http://gambas.sourceforge.net . Benoit Minisini is the starter of the project and main developer. Gambas is now at version 2.8.2 and version 3.x.x is under development. Book was based on version 1.x.x. As is typical for open source projects documentation is always little behind. Developer's do what they like most - code! And producing nice documentation is quite tuff and dull project. So it is not done. On the Gambas mailing list an idea was raised that maybe if we get permission from you we would turn this book as a baseline for wiki. Then Gambas users and developers all over the world make it current and better. It is hard to start wiki from zero so that is the reason for this request. Only you know how good seller it is at the moment. But it's little old and possible customers noticing that might not like the situation. Also it is already available as free download in pdf-format. What's your benefit 1. There would be your add on the wiki mentioning what book and publisher it is based on. 2. After the wiki has lived for something around 12 months someone from the Gambas community might turn contents of the wiki to a book you could publish. Many people like to buy the real book also independent that same information is in the net. Yours Sincerely ------------------------ You may now open the fire :-) Best Regards Kari From gambas at ...1... Wed Sep 3 09:08:09 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 3 Sep 2008 09:08:09 +0200 Subject: [Gambas-user] Books about compilers and interpreters In-Reply-To: <48BDD968.7070901@...1400...> References: <48BDD968.7070901@...1400...> Message-ID: <200809030908.09560.gambas@...1...> On mercredi 03 septembre 2008, Kari Laine wrote: > Hi, > > Could we collect to this thread list of books which are good about > compiler and interpreter design. > > I have one old book but it is pretty tough read. It is Compilers > Principles, Techniques and Tools by Alfred V.Aho, Ravi Sethi, Jeffrey > D.Ullman. > I am seeking a easier book to make me ready to tackle that one. > > I am also after ANSI C standard document. Is it available gratis from > net as pdf? > > Benoit ? > > Best Regards > Kari Laine > The few I learned about compilers and interpreters mainly comes from: - The learn of assembly language on Z80, then M68000, and a bit of Mips and x86. - The learn of C language. - The Lex & Yacc software learned at School. - The write of a Lisp interpreter. By learning, I mean writing software of course. :-) And all depends on your own skills and technical background. You are the better people to find the better book that suits your need. I suggest you start with C and Lex & Yacc to understand the Gambas compiler first - if understanding Gambas is your goal of course :-) Regards, -- Benoit Minisini From klaine8 at ...626... Wed Sep 3 09:37:35 2008 From: klaine8 at ...626... (Kari Laine) Date: Wed, 3 Sep 2008 10:37:35 +0300 Subject: [Gambas-user] Books about compilers and interpreters In-Reply-To: <200809030908.09560.gambas@...1...> References: <48BDD968.7070901@...1400...> <200809030908.09560.gambas@...1...> Message-ID: <61452b690809030037q1864f6ffkc7d12029e54a0a61@...627...> On Wed, Sep 3, 2008 at 10:08 AM, Benoit Minisini < gambas at ...1...> wrote: > > And all depends on your own skills and technical background. You are the > better people to find the better book that suits your need. Thanks for answering. I have programmed on and of - simple things with different versions of Basic. I started programming with RPG back in 1986 :-) . Have been learning C and C++ for now about a year as a hobby. > > > I suggest you start with C and Lex & Yacc to understand the Gambas compiler > first - if understanding Gambas is your goal of course :-) > > Yes it is. I have always wondered how compilers and interpreters work not to forget the debugger. It is a tall order - but I will persist :-) (hopefully...) Could you tell me what you need libffi for? Anyway I also use more time to practice programming in Gambas. I am sure there are other's who do the same and produce those valuable little pieces of code. Those people should be asked to send them to somewhere to be collected. And a rule should be that nobody uses word "stupid" when having a look at them :-) I have a domain kllog.net, which I bought for other purpose but it is now unused - I could start collecting these examples there (or maybe the allbasic.info want's to do that) - then people could suggest which are good enough to be part of the Gambas distribution. Best Regards Kari From gambas at ...1... Wed Sep 3 09:45:16 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 3 Sep 2008 09:45:16 +0200 Subject: [Gambas-user] Books about compilers and interpreters In-Reply-To: <61452b690809030037q1864f6ffkc7d12029e54a0a61@...627...> References: <48BDD968.7070901@...1400...> <200809030908.09560.gambas@...1...> <61452b690809030037q1864f6ffkc7d12029e54a0a61@...627...> Message-ID: <200809030945.16850.gambas@...1...> On mercredi 03 septembre 2008, Kari Laine wrote: > > Could you tell me what you need libffi for? > > 'ffi' stand for "foreign function interface". It is a library that allows you to dynamically forge a function call at runtime for any function, any CPU (almost) and whatever how arguments are pushed on the stack or CPU registers. Without this library, it is impossible to cleanly implement EXTERN function calls in Gambas (and any other interpreters). Regards, -- Benoit Minisini From gambas at ...1938... Wed Sep 3 10:56:37 2008 From: gambas at ...1938... (gambas at ...1938...) Date: Wed, 3 Sep 2008 10:56:37 +0200 Subject: [Gambas-user] Creating a library Message-ID: <200809031056.37408.gambas@...1938...> Hi List! I've written a kind of library, where I droped my standard routines. At the moment, I have to compile this class every time with my projects. Is there someone on this list, who can tell me, what I have to do, to compile the library separately and how I can get access to the methods in the library, when I want to use them in my project? Thanks in advance! Greetz Stevie From lordheavym at ...626... Wed Sep 3 11:11:34 2008 From: lordheavym at ...626... (Laurent Carlier) Date: Wed, 3 Sep 2008 11:11:34 +0200 Subject: [Gambas-user] Creating a library In-Reply-To: <200809031056.37408.gambas@...1938...> References: <200809031056.37408.gambas@...1938...> Message-ID: <200809031111.34595.lordheavym@...626...> Le Wednesday 03 September 2008 10:56:37 gambas at ...1938..., vous avez ?crit : > Hi List! > > I've written a kind of library, where I droped my standard routines. At the > moment, I have to compile this class every time with my projects. > > Is there someone on this list, who can tell me, what I have to do, to > compile the library separately and how I can get access to the methods in > the library, when I want to use them in my project? > > Thanks in advance! > > Greetz > Stevie > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge Build the coolest Linux based applications with Moblin SDK & win > great prizes Grand prize is a trip for two to an Open Source event anywhere > in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user I guess you can find some examples about creating shared library under linux under linux (eg: http://www.faqs.org/docs/Linux-HOWTO/Program-Library- HOWTO.html) First create your library, after we can talk about two posibilities; accessing it through EXTERN keywords, or creating a gambas component (best way i guess). It should be better if you move this topic in the devel mailing list. Regards, From ronstk at ...239... Wed Sep 3 11:17:47 2008 From: ronstk at ...239... (Ron Onstenk) Date: Wed, 3 Sep 2008 11:17:47 +0200 Subject: [Gambas-user] Nice book of Gambas In-Reply-To: <61452b690809022233w9e2b606v1901afe96ef1fec6@...627...> References: <48BABD12.6060805@...1400...> <61452b690809021259x10c9dbdch39fb0eea4b7888ac@...627...> <61452b690809022233w9e2b606v1901afe96ef1fec6@...627...> Message-ID: <200809031117.47711.ronstk@...239...> On Wednesday 03 September 2008, Kari Laine wrote: > Hi, > > as nobody has volunteered I try to write this proposal for publisher. > > ---------------------- > Dear Sir, > > You are the publisher for a book from John W. Rittinghouse titled as > Beginner's Guide to Gambas. > It is very fine book but parts of it are pretty dated. Gambas project is > very active and it has users all over the world. > > *Gambas* is a free development environment based on a *Basic* interpreter > with object extensions, a bit like *Visual Basic?* (but it is *NOT* a > clone !) More information at the http://gambas.sourceforge.net . Benoit > Minisini is the starter of the project and main developer. accuracy - has Benoit made almost all of it?> > > Gambas is now at version 2.8.2 and version 3.x.x is under development. Book > was based on version 1.x.x. > > As is typical for open source projects documentation is always little > behind. Developer's do what they like most - code! And producing nice > documentation is quite tuff and dull project. So it is not done. On the > Gambas mailing list an idea was raised that maybe if we get permission from > you we would turn this book as a baseline for wiki. Then Gambas users and > developers all over the world make it current and better. It is hard to > start wiki from zero so that is the reason for this request. > > Only you know how good seller it is at the moment. But it's little old and > possible customers noticing that might not like the situation. Also it is > already available as free download in pdf-format. > > What's your benefit > 1. There would be your add on the wiki mentioning what book and publisher it > is based on. > 2. After the wiki has lived for something around 12 months someone from the > Gambas community might turn contents of the wiki to a book you could > publish. Many people like to buy the real book also independent that same > information is in the net. > > > > Yours Sincerely > Looks not to bad but don't forget to add to write which book. > ------------------------ > > Product Details > > > > ? - ISBN: 0741429489 > > ? - ISBN-13: 9780741429483 > > ? - Format: Paperback, 364pp > > ? - Publisher: Buy Books on the Web.Com > > ? - Pub. Date: January 2006 And the who should get the permision is at admin at ...1965... You are writing on behalf of the admin nom. The email address is a bit stupid, thats why I did suggested he should do the request. From klaine8 at ...626... Wed Sep 3 11:30:52 2008 From: klaine8 at ...626... (Kari Laine) Date: Wed, 3 Sep 2008 12:30:52 +0300 Subject: [Gambas-user] Nice book of Gambas In-Reply-To: <200809031117.47711.ronstk@...239...> References: <48BABD12.6060805@...1400...> <61452b690809021259x10c9dbdch39fb0eea4b7888ac@...627...> <61452b690809022233w9e2b606v1901afe96ef1fec6@...627...> <200809031117.47711.ronstk@...239...> Message-ID: <61452b690809030230g5bb20709xb9f4edc8e3d2afb4@...627...> On Wed, Sep 3, 2008 at 12:17 PM, Ron Onstenk wrote: > On Wednesday 03 September 2008, Kari Laine wrote: > > Hi, > > > Looks not to bad but don't forget to add to write which book. > > > ------------------------ > > > Product Details > > > > > > - ISBN: 0741429489 > > > - ISBN-13: 9780741429483 > > > - Format: Paperback, 364pp > > > - Publisher: Buy Books on the Web.Com > > > - Pub. Date: January 2006 > > And the who should get the permision is at admin at ...1965... > You are writing on behalf of the admin nom. > > The email address is a bit stupid, thats why I did suggested he > should do the request. > > Was it him who originated the wiki-idea? I think it is a good idea but now it is his turn to comment and maybe tell his real name... Best Regards Kari Laine From ronstk at ...239... Wed Sep 3 11:51:03 2008 From: ronstk at ...239... (Ron_1st) Date: Wed, 3 Sep 2008 11:51:03 +0200 Subject: [Gambas-user] Q:how to save a file.png into Postgresql In-Reply-To: <200809030959.41332.rterry@...1946...> References: <200808290722.21869.rterry@...1946...> <200809021348.58728.rolf.frogs@...221...> <200809030959.41332.rterry@...1946...> Message-ID: <200809031151.03579.ronstk@...239...> On Wednesday 03 September 2008, richard terry wrote: > On Tue, 2 Sep 2008 09:48:55 pm you wrote: > Ok, that got me a bit further: This is the resultant (failed) insert query . > First try using $$ as the delimiters as per my code gives this and fails: > > insert into > clin_consult.temp_image(piccie)values($$\\211PNG\\015\\012...... ---8<----- > \\251\\370\\003>\\241\\324n\\304~\\303\\331\\000\\000\\000\\000IEND\\256B`\\202') > WARNING: nonstandard use of \\ in a string literal > LINE 1: insert into clin_consult.temp_image(piccie)values('\\211PNG\... > ^ > HINT: Use the escape string syntax for backslashes, e.g., E'\\'. > > > Perhaps someone can understand this and help > > Regards > > Richard > In mysql like syntax the command would be > LINE 1: insert into clin_consult.temp_image(piccie)values('\\211PNG\... > ^ The ^ is at the position where th error is. Is the field temp_image existing? Is the _ also allowed in field names as it looks allowed in table names? What is your field an table name and are they following the syntax rules of posgresql, the database system you use, as I rememeber well? Just reading what I typed I see clin_consult.temp_image(piccie) (values) Do you mean the field -=- clin_consult.temp_image -=- in table -=- piccies -=- or the table -=- clin_consult.temp_image -=- in filed -=- piccies -=- ????? Should the fieldname not be surrond with quotes while a dot in the name in most caases is not allowed. As far I know the only safe are just only alphanummeric and underscore and a name as -=- clin_consult.temp_image -=- looks to me as invalid without qoutes surrounding this name constuction. Try to add a field as 'myfiled' in the table and insert into that filed. to find out you current fieldname is a invalid field name.Best regards Ron_1st -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? From ronstk at ...239... Wed Sep 3 12:25:37 2008 From: ronstk at ...239... (Ron_1st) Date: Wed, 3 Sep 2008 12:25:37 +0200 Subject: [Gambas-user] Nice book of Gambas In-Reply-To: <61452b690809030230g5bb20709xb9f4edc8e3d2afb4@...627...> References: <48BABD12.6060805@...1400...> <200809031117.47711.ronstk@...239...> <61452b690809030230g5bb20709xb9f4edc8e3d2afb4@...627...> Message-ID: <200809031225.37516.ronstk@...239...> On Wednesday 03 September 2008, Kari Laine wrote: > > > > > Was it him who originated the wiki-idea? I think it is a good idea but now > it is his turn to comment and maybe tell his real name... > > Best Regards > Kari Laine > Not sure it was his idea but he is as holder/hoster/republisher of the wiki who needs the permission for the Dutch law. When he is a ISP and a customer of that ISP is the owner of the wiki then the customer need the permission and the orginating publisher can ask the ISP to knock off the customers wiki site when no permision exsists. If the ISP get the permission, the ISP is responsible of the wiki content and I do not think any ISP wants that. If you or I get the permision then the publisher can ask the ISP to knock off the wiki/site and the ISP *MUST* do that action becasuse the ISP's customer has no rights to do and you r I are not a customer of the ISP. It is just as simple as that and the reason AllBasic should get the permision himself. It is the risk of having a site with protected content even if it is free (in all ways) to everyone, using logo's and/or registered productnames and even can advertise the product. This is something many home webmaster wanabees are forget when they setup a (private) website to the general public. I hope this also explains something I wrote before. Best regards Ron_1st -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? From gambas at ...1938... Wed Sep 3 12:39:24 2008 From: gambas at ...1938... (gambas at ...1938...) Date: Wed, 3 Sep 2008 12:39:24 +0200 Subject: [Gambas-user] Nice book of Gambas In-Reply-To: <200809031225.37516.ronstk@...239...> References: <48BABD12.6060805@...1400...> <61452b690809030230g5bb20709xb9f4edc8e3d2afb4@...627...> <200809031225.37516.ronstk@...239...> Message-ID: <200809031239.25003.gambas@...1938...> Am Mittwoch, 3. September 2008 12:25:37 schrieb Ron_1st: > Not sure it was his idea but he is as holder/hoster/republisher > of the wiki who needs the permission for the Dutch law. > > When he is a ISP and a customer of that ISP is the owner of the wiki > then the customer need the permission and the orginating publisher can > ask the ISP to knock off the customers wiki site when no permision exsists. > > If the ISP get the permission, the ISP is responsible of the wiki > content and I do not think any ISP wants that. > > If you or I get the permision then the publisher can ask the ISP to > knock off the wiki/site and the ISP *MUST* do that action becasuse > the ISP's customer has no rights to do and you r I are not a customer > of the ISP. > > It is just as simple as that and the reason AllBasic should get > the permision himself. > It is the risk of having a site with protected content even if > it is free (in all ways) to everyone, using logo's and/or > registered productnames and even can advertise the product. The community works on a Wiki, which rights and permissions lay by one person/institution? Best way would be, when the publisher makes the book GPL. Greetz Stevie From klaine8 at ...626... Wed Sep 3 13:18:21 2008 From: klaine8 at ...626... (Kari Laine) Date: Wed, 3 Sep 2008 14:18:21 +0300 Subject: [Gambas-user] Nice book of Gambas In-Reply-To: <200809031239.25003.gambas@...1938...> References: <48BABD12.6060805@...1400...> <61452b690809030230g5bb20709xb9f4edc8e3d2afb4@...627...> <200809031225.37516.ronstk@...239...> <200809031239.25003.gambas@...1938...> Message-ID: <61452b690809030418l5f408ac2y5c7ff9ee4b03177e@...627...> On Wed, Sep 3, 2008 at 1:39 PM, wrote: > Am Mittwoch, 3. September 2008 12:25:37 schrieb Ron_1st: > > The community works on a Wiki, which rights and permissions lay by one > person/institution? Best way would be, when the publisher makes the book > GPL. > > I am not very knowledgeable of the different licenses (pity I am not a lawyer). Is GPL good license for the textbook/wiki? If no-one else raises their hands I will work on the draft and make a first contact to the publisher - let's say friday. Maybe their ignore that kind of mail or they might get interested. Problem is I very new to Gambas community and therefore am not good candidate for this. Also I am bad negotiator :-) Who will host this wiki? Should it be part of the existing Gambas-wiki? Btw. I noticed there is mention that Gambas wiki is written in Gambas. Is it's source code available under GPL? If I get the permission and nobody else volunteers to host it I think I can think hosting it. Newer run wiki but it might be time to learn it. I am sure it's big work to set it up originally with the baseline. let me know whether I should proceed or drop the whole thing. Best Regards Kari Laine From gambas at ...1... Wed Sep 3 13:41:57 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 3 Sep 2008 13:41:57 +0200 Subject: [Gambas-user] Problem fixed in gb.db.sqlite3 Message-ID: <200809031341.57914.gambas@...1...> Hi, I fixed an important bug in the Sqlite3 Gambas driver in revision 1536. The driver sometimes truncated the value of fields in query results. This bug appears recently for the following reason: There is a missing feature in the function that run SQL queries (sqlite3_exec) in the sqlite3 library, that prevented me from implementing Blob support. So I took the source code of this function and rewrote it for my needs. And SQLite changed, and so the old code did not work, and so I had to update it. Of course, this situation is far from perfect, but I see no other solution at the moment. Maybe I should write to the SQLite author to ask him to add what I need in the sqlite3_exec function. Regards, -- Benoit Minisini From ronstk at ...239... Wed Sep 3 13:57:57 2008 From: ronstk at ...239... (Ron_1st) Date: Wed, 3 Sep 2008 13:57:57 +0200 Subject: [Gambas-user] Nice book of Gambas In-Reply-To: <200809031239.25003.gambas@...1938...> References: <48BABD12.6060805@...1400...> <200809031225.37516.ronstk@...239...> <200809031239.25003.gambas@...1938...> Message-ID: <200809031357.58220.ronstk@...239...> On Wednesday 03 September 2008, gambas at ...1938... wrote: > Am Mittwoch, 3. September 2008 12:25:37 schrieb Ron_1st: > > Not sure it was his idea but he is as holder/hoster/republisher > > of the wiki who needs the permission for the Dutch law. > > > > When he is a ISP and a customer of that ISP is the owner of the wiki > > then the customer need the permission and the orginating publisher can > > ask the ISP to knock off the customers wiki site when no permision exsists. > > > > If the ISP get the permission, the ISP is responsible of the wiki > > content and I do not think any ISP wants that. > > > > If you or I get the permision then the publisher can ask the ISP to > > knock off the wiki/site and the ISP *MUST* do that action becasuse > > the ISP's customer has no rights to do and you r I are not a customer > > of the ISP. > > > > It is just as simple as that and the reason AllBasic should get > > the permision himself. > > It is the risk of having a site with protected content even if > > it is free (in all ways) to everyone, using logo's and/or > > registered productnames and even can advertise the product. > > The community works on a Wiki, which rights and permissions lay by one > person/institution? Best way would be, when the publisher makes the book GPL. > > Greetz > Stevie > > I do not kow how Wikipedia exact works when someone put protected content in a article but someone shall/must/will react on it. The publisher wil not make it GPL if they can have financial profit of it when they sell the book. Asking the publisher to make it GPL will be need as it is posible they do not know about GPL, it is in general not in there interest anyway for the complete work/book. Because the current book as-is is so outdated they maybe well willing to do but take in account that if so many people want it free as wiki they have also still posible customers for selling. It's a bit contra. Any way it is in best interest for allBasic to prevent illlegal as much as possible and getting permision before is always better as telling 'I did not know' afterwards just in this grey situation. If he do not want ask the permission then he should not use the book as basic start source with copy/paste but type his interpretation in his own words and the gambas community can add/correct this content. Best regards Ron_1st PS GPL is not the right licence (software) see http://en.wikipedia.org/wiki/Open_content for other more correct ones. -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? From sourceforge-raindog2 at ...94... Wed Sep 3 14:43:15 2008 From: sourceforge-raindog2 at ...94... (Rob) Date: Wed, 3 Sep 2008 08:43:15 -0400 Subject: [Gambas-user] Nice book of Gambas In-Reply-To: <200809031357.58220.ronstk@...239...> References: <48BABD12.6060805@...1400...> <200809031239.25003.gambas@...1938...> <200809031357.58220.ronstk@...239...> Message-ID: <200809030843.15454.sourceforge-raindog2@...94...> On Wednesday 03 September 2008 07:57, Ron_1st wrote: > The publisher wil not make it GPL if they can have financial profit > of it when they sell the book. Does the publisher even own the copyright in this case? Rittinghouse used a vanity press, by the looks of the book a print-on-demand one, and they often don't. I would check my copy but it's still packed following my most recent move. If he'd used CafePress or Lulu I would feel safe saying they absolutely don't own it, but as I recall he used a different one. At any rate, the biggest obstacle to wikifying the book was the fact that we don't have the original document. Even then it'd take a lot of work. Benoit's original Gambas documentation was much shorter and it still took me weeks to get it into the original Gambas wiki.... which eventually fell into disrepair and disorganization, just as I think the one based on this book eventually would. MediaWiki is a better wiki than TWiki was, but a book needs a fundamental organization to it. I think that if someone wants to proceed with this, you'll need to get in touch with John -- or, if the worst has happened, with his estate. Rob From ronstk at ...239... Wed Sep 3 15:05:44 2008 From: ronstk at ...239... (Ron_1st) Date: Wed, 3 Sep 2008 15:05:44 +0200 Subject: [Gambas-user] Nice book of Gambas In-Reply-To: <61452b690809030418l5f408ac2y5c7ff9ee4b03177e@...627...> References: <48BABD12.6060805@...1400...> <200809031239.25003.gambas@...1938...> <61452b690809030418l5f408ac2y5c7ff9ee4b03177e@...627...> Message-ID: <200809031505.44258.ronstk@...239...> On Wednesday 03 September 2008, Kari Laine wrote: > On Wed, Sep 3, 2008 at 1:39 PM, wrote: > > > Am Mittwoch, 3. September 2008 12:25:37 schrieb Ron_1st: > > > > The community works on a Wiki, which rights and permissions lay by one > > person/institution? Best way would be, when the publisher makes the book > > GPL. > > > > > I am not very knowledgeable of the different licenses (pity I am not a > lawyer). Is GPL good license for the textbook/wiki? No the GPL involves software, see other post just done be me at the end. > If no-one else raises > their hands I will work on the draft and make a first contact to the > publisher - let's say friday. Maybe their ignore that kind of mail or they > might get interested. Problem is I very new to Gambas community and > therefore am not good candidate for this. Also I am bad negotiator :-) > > Who will host this wiki? Should it be part of the existing Gambas-wiki? Btw. > I noticed there is mention that Gambas wiki is written in Gambas. Is it's > source code available under GPL? The presentation is a la wiki. The gambas engine behind it is I assume total different from it. I'm also interested to see how it works, it's a second master piece from the gambas master :) > > If I get the permission and nobody else volunteers to host it I think I can > think hosting it. Newer run wiki but it might be time to learn it. I am sure > it's big work to set it up originally with the baseline. > Basic its easy to install. The hard thing is get te content in. It is not easy cut/paste into a file but you must use the wiki own page editor as far I know to get correct content. :) > let me know whether I should proceed or drop the whole thing. > > > > Best Regards > Kari Laine Difficult to answer. Everyone will say yeeeesssssssss go for it. If you like experimenting, have time and want to learn something as a wiki I would say go for it but try first a private wikisite to get the feeling how it works. And as usual on forums and mailists, everyone wants all kind of stuff but contribute to it is to much work so you will be long time on your own. See the start of allBasic, the idea is good, the frontpage give a nice view what is avalable but as Rob Kudla already mentioned the contribution should be more to make the site a hit to go look for information. Yes it need time to grow up and time will tell. As time passes by every new site should at least half the content of an already existing site to have a value for the visitor or a very special and unique subject to attrackt people for a visit and posible contribution. For realy good sites you need 2 hands (10 fingers) the remaining you need the hands of all china people. Conclusion? It is better to spend time to help other potential good sites in the growup period then starting a new site. Concentrating information has more value then spread it out over different sites that lose the interest of the visitors who did like the site so much. allBasic site is willing to host the wiki as he told and initialized already. Fabian Bodard did make gambasforge.net and got a lot contributions but he has to less time to maintenance the site well. Gareth Bult has made http://gambasrad.org/ and spend a lot of time but the last entry in documentation is around Nov 2007, except 1 in Jan 2008. This one was/is connected with the gambas wiki from Benoit and the maillist. The forum is still alive but topic/post versus views is enorm. There is need of practical examples with documentation other then the syntax of the gambas Basic languageas proven by the many requests. Willing to provide exists but a few do it in practice. Best regards Ron_1st (again such boring long message) :) -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? From klaine8 at ...626... Wed Sep 3 15:06:21 2008 From: klaine8 at ...626... (Kari Laine) Date: Wed, 3 Sep 2008 16:06:21 +0300 Subject: [Gambas-user] Nice book of Gambas In-Reply-To: <200809030843.15454.sourceforge-raindog2@...94...> References: <48BABD12.6060805@...1400...> <200809031239.25003.gambas@...1938...> <200809031357.58220.ronstk@...239...> <200809030843.15454.sourceforge-raindog2@...94...> Message-ID: <61452b690809030606h1a7f3f63gcdf85451d13e3cde@...627...> On Wed, Sep 3, 2008 at 3:43 PM, Rob wrote: > On Wednesday 03 September 2008 07:57, Ron_1st wrote: > > The publisher wil not make it GPL if they can have financial profit > > of it when they sell the book. > > Does the publisher even own the copyright in this case? Rittinghouse used > a > vanity press, by the looks of the book a print-on-demand one, and they > often > don't. I would check my copy but it's still packed following my most > recent > move. If he'd used CafePress or Lulu I would feel safe saying they > absolutely don't own it, but as I recall he used a different one. > > At any rate, the biggest obstacle to wikifying the book was the fact that > we > don't have the original document. Even then it'd take a lot of work. > Benoit's original Gambas documentation was much shorter and it still took > me > weeks to get it into the original Gambas wiki.... which eventually fell > into > disrepair and disorganization, just as I think the one based on this book > eventually would. MediaWiki is a better wiki than TWiki was, but a book > needs > a fundamental organization to it. > > I think that if someone wants to proceed with this, you'll need to get in > touch with John -- or, if the worst has happened, with his estate. > I will ask the publisher about the status and if they don't have the rights and the original text I forget the whole thing. I am not going to pester John at the situation it is. I don't know him but feel sorry for him. Kari From kari.laine at ...1400... Wed Sep 3 15:51:09 2008 From: kari.laine at ...1400... (Kari Laine) Date: Wed, 03 Sep 2008 16:51:09 +0300 Subject: [Gambas-user] Is it possible to command OpenOffic.org Message-ID: <48BE964D.5040705@...1400...> Hi, in the VB times I made use of the possibility to create Excel sheets from VB. Is it possible to make same for OOo from Gambas? Best Regards Kari From david_villalobos_c at ...43... Wed Sep 3 16:08:02 2008 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Wed, 3 Sep 2008 07:08:02 -0700 (PDT) Subject: [Gambas-user] Is it possible to command OpenOffic.org Message-ID: <404265.42544.qm@...1667...> Hi, at the moment it can't. You have to wirte all the code, time ago I was trying to make it, but I'm working in a mysql related project and do not have time to make it. Saludos -- David ----- Original Message ---- From: Kari Laine To: gambas-user at lists.sourceforge.net Sent: Wednesday, September 3, 2008 7:51:09 AM Subject: [Gambas-user] Is it possible to command OpenOffic.org Hi, in the VB times I made use of the possibility to create Excel sheets from VB. Is it possible to make same for OOo from Gambas? Best Regards Kari ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From jshackney at ...626... Wed Sep 3 16:56:42 2008 From: jshackney at ...626... (Jason Hackney) Date: Wed, 3 Sep 2008 10:56:42 -0400 Subject: [Gambas-user] Nice book of Gambas In-Reply-To: <61452b690809030606h1a7f3f63gcdf85451d13e3cde@...627...> References: <48BABD12.6060805@...1400...> <200809031239.25003.gambas@...1938...> <200809031357.58220.ronstk@...239...> <200809030843.15454.sourceforge-raindog2@...94...> <61452b690809030606h1a7f3f63gcdf85451d13e3cde@...627...> Message-ID: <799be1690809030756j5065fd3fo9df1d18afcab5353@...627...> I'm not certain how much the publisher cares. Feel free to let me know if this has already been hashed over. Excerpt from page 2 of the book: "All rights reserved. Personal use of this material is permitted. However, permission to reprint/republish this material for advertising or promotional purposes or for creating new collective works for resale or redistribution to servers or lists, or to reuse any copyrighted component of this work in other works must be obtained from the author, John W. Rittinghouse." Without diving into technicalities, I think that just about covers it. And trying to find a way around it will likely take more effort than just creating a new/original work from the community. I originally offered to assist with getting the dead-tree version of the book up-to-date without knowing Mr. Rittinghouse's personal concern that will likely prevent him from continuing work on the book. It was from that thought that the wiki idea was brought up by John (allbasic). I'm personally not very interested in wiki since wiki doesn't travel well on airplanes (I fly for a living) or to hotels with spotty internet access. I have a strong preference for paper. My offer still stands. I'd be willing to offer my time to help edit a [new] book for Gambas. I do a fair job at spell checking and some general grammar cleanup. This is my feeling: I think what may be best is not to attempt to use/revise/rehash this book out of respect for Mr. Rittinghouse, but perhaps to create a new book altogether (paper, electronic, whatever). I started creating some very basic documentation (based almost exclusively on gambasdoc.org/help) for my personal use, but what I really want--and probably what most everyone learning Gambas wants--is a lot of good examples. Respectfully, Jason From jshackney at ...626... Wed Sep 3 17:04:14 2008 From: jshackney at ...626... (Jason Hackney) Date: Wed, 3 Sep 2008 11:04:14 -0400 Subject: [Gambas-user] Nice book of Gambas In-Reply-To: <799be1690809030756j5065fd3fo9df1d18afcab5353@...627...> References: <48BABD12.6060805@...1400...> <200809031239.25003.gambas@...1938...> <200809031357.58220.ronstk@...239...> <200809030843.15454.sourceforge-raindog2@...94...> <61452b690809030606h1a7f3f63gcdf85451d13e3cde@...627...> <799be1690809030756j5065fd3fo9df1d18afcab5353@...627...> Message-ID: <799be1690809030804v89dc170j236edfbb1e5fa535@...627...> Looks like Ron_1st already covered most of my thoughts :-) From gambas at ...1... Wed Sep 3 17:18:25 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 3 Sep 2008 17:18:25 +0200 Subject: [Gambas-user] Is it possible to command OpenOffic.org In-Reply-To: <48BE964D.5040705@...1400...> References: <48BE964D.5040705@...1400...> Message-ID: <200809031718.25067.gambas@...1...> On mercredi 03 septembre 2008, Kari Laine wrote: > Hi, > > in the VB times I made use of the possibility to create Excel sheets > from VB. Is it possible to make same for OOo from Gambas? > > Best Regards > Kari > You don't really need specific feature in Gambas for that. OpenOffice are text files zipped, so you can create a spreadsheet with OpenOffice, and use it as a template with your Gambas program by unzipping it, modifying the content.xml file, and zip it back. I'm using this method with the web application I develop in Gambas for my job. I generate OpenOffice documents, Word/Excel documents and PDF. Regards, -- Benoit Minisini From gambas at ...1... Wed Sep 3 17:19:57 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 3 Sep 2008 17:19:57 +0200 Subject: [Gambas-user] Nice book of Gambas In-Reply-To: <200809031505.44258.ronstk@...239...> References: <48BABD12.6060805@...1400...> <61452b690809030418l5f408ac2y5c7ff9ee4b03177e@...627...> <200809031505.44258.ronstk@...239...> Message-ID: <200809031719.57355.gambas@...1...> On mercredi 03 septembre 2008, Ron_1st wrote: > > > > Who will host this wiki? Should it be part of the existing Gambas-wiki? > > Btw. I noticed there is mention that Gambas wiki is written in Gambas. Is > > it's source code available under GPL? > > The presentation is a la wiki. > The gambas engine behind it is I assume total different from it. > I'm also interested to see how it works, it's a second master piece from > the gambas master :) > The Gambas wiki is run by a cgi script named "doc.cgi" whose source code is in the Gambas source code archive. But it is not a master piece, but a quick & dirty made wiki! Regards, -- Benoit Minisini From rterry at ...1946... Thu Sep 4 05:16:42 2008 From: rterry at ...1946... (richard terry) Date: Thu, 4 Sep 2008 13:16:42 +1000 Subject: [Gambas-user] Q:how to save a file.png into Postgresql [solved] In-Reply-To: <200809031151.03579.ronstk@...239...> References: <200808290722.21869.rterry@...1946...> <200809030959.41332.rterry@...1946...> <200809031151.03579.ronstk@...239...> Message-ID: <200809041316.42865.rterry@...1946...> On Wed, 3 Sep 2008 07:51:03 pm Ron_1st wrote: Finally solved. I did try and try inserting the E in the hint, but put in inside the qotes and not outside it so this works: insert into Insert into clin_consult.temp_image(piccie) values (E'\\211PNG\\015\\012\\032\\012\\....') Thanks to everyone who helped. Syan mailed my via the postgres novice list. I never could intrepret documentation very well. Regards Richard > > On Wednesday 03 September 2008, richard terry wrote: > > On Tue, 2 Sep 2008 09:48:55 pm you wrote: > > Ok, that got me a bit further: This is the resultant (failed) insert > > query . First try using $$ as the delimiters as per my code gives this > > and fails: > > > > insert into > > clin_consult.temp_image(piccie)values($$\\211PNG\\015\\012...... > > ---8<----- > > > \\251\\370\\003>\\241\\324n\\304~\\303\\331\\000\\000\\000\\000IEND\\256B > >`\\202') WARNING: nonstandard use of \\ in a string literal > > LINE 1: insert into clin_consult.temp_image(piccie)values('\\211PNG\... > > ^ > > HINT: Use the escape string syntax for backslashes, e.g., E'\\'. > > > > > > Perhaps someone can understand this and help > > > > Regards > > > > Richard > > In mysql like syntax the command would be > > > LINE 1: insert into clin_consult.temp_image(piccie)values('\\211PNG\... > > ^ > > The ^ is at the position where th error is. > Is the field temp_image existing? > Is the _ also allowed in field names as it looks allowed in table names? > > What is your field an table name and are they following the syntax rules > of posgresql, the database system you use, as I rememeber well? > > > > Just reading what I typed I see clin_consult.temp_image(piccie) (values) > > Do you mean the field -=- clin_consult.temp_image -=- in table -=- piccies > -=- or the table -=- clin_consult.temp_image -=- in filed -=- piccies -=- > ????? > > > > Should the fieldname not be surrond with quotes while a dot in the > name in most caases is not allowed. > As far I know the only safe are just only alphanummeric and underscore > and a name as -=- clin_consult.temp_image -=- looks to me as invalid > without qoutes surrounding this name constuction. > > Try to add a field as 'myfiled' in the table and insert into that filed. > to find out you current fieldname is a invalid field name.Best regards > > > Ron_1st From rterry at ...1946... Thu Sep 4 06:40:28 2008 From: rterry at ...1946... (richard terry) Date: Thu, 4 Sep 2008 14:40:28 +1000 Subject: [Gambas-user] Getting a picture back from postgres Message-ID: <200809041440.28918.rterry@...1946...> Now that I've finally inserted the picture, are there any tricks for getting it back and re-viewing it - someone I think it wont be just a simple query, I used the code in Picture database I can extract the blob, but now trying to write to a file it complains about 'getting blob' and wanting a string I guess one somehow has to reverse the process. Thanks in advance for any help. richard From gambas at ...1... Thu Sep 4 11:28:16 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 4 Sep 2008 11:28:16 +0200 Subject: [Gambas-user] Q:how to save a file.png into Postgresql [solved] In-Reply-To: <200809041316.42865.rterry@...1946...> References: <200808290722.21869.rterry@...1946...> <200809031151.03579.ronstk@...239...> <200809041316.42865.rterry@...1946...> Message-ID: <200809041128.16329.gambas@...1...> On jeudi 04 septembre 2008, richard terry wrote: > On Wed, 3 Sep 2008 07:51:03 pm Ron_1st wrote: > > Finally solved. > > I did try and try inserting the E in the hint, but put in inside the qotes > and not outside it so this works: > > insert into Insert into clin_consult.temp_image(piccie) values > (E'\\211PNG\\015\\012\\032\\012\\....') > > Thanks to everyone who helped. Syan mailed my via the postgres novice list. > I never could intrepret documentation very well. > > Regards > > Richard > Can you provide a link to the postgresql documentation that depicts this feature, so that I can fix the Gambas postgresql driver too? It would be a good idea, wouldn't it? :-) Regards, -- Benoit Minisini From gambas at ...1938... Thu Sep 4 14:25:14 2008 From: gambas at ...1938... (gambas at ...1938...) Date: Thu, 4 Sep 2008 14:25:14 +0200 Subject: [Gambas-user] Creating a library In-Reply-To: <200809031056.37408.gambas@...1938...> References: <200809031056.37408.gambas@...1938...> Message-ID: <200809041425.14221.gambas@...1938...> Am Mittwoch, 3. September 2008 10:56:37 schrieb gambas at ...1938...: > Hi List! > > I've written a kind of library, where I droped my standard routines. At the > moment, I have to compile this class every time with my projects. > > Is there someone on this list, who can tell me, what I have to do, to > compile the library separately and how I can get access to the methods in > the library, when I want to use them in my project? > > Thanks in advance! > > Greetz > Stevie Sorry for bothering you again. ...is this question to stupid or to complex? Greetz Stevie From doriano.blengino at ...1909... Thu Sep 4 14:33:03 2008 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Thu, 04 Sep 2008 14:33:03 +0200 Subject: [Gambas-user] Creating a library In-Reply-To: <200809041425.14221.gambas@...1938...> References: <200809031056.37408.gambas@...1938...> <200809041425.14221.gambas@...1938...> Message-ID: <48BFD57F.9080109@...1909...> gambas at ...1938... ha scritto: > Am Mittwoch, 3. September 2008 10:56:37 schrieb gambas at ...1938...: > >> Hi List! >> >> I've written a kind of library, where I droped my standard routines. At the >> moment, I have to compile this class every time with my projects. >> >> Is there someone on this list, who can tell me, what I have to do, to >> compile the library separately and how I can get access to the methods in >> the library, when I want to use them in my project? >> When you speak about "compile this class every time", I think your libray is a gambas source code. If it is so, then you can not compile it separately; you can make instead a component and export it (by the clause EXPORT), and create an executable which can be later reused every time you want (by specifying it in the "components" page of the project properties). More info about this, if you want. If you are not talking about a gambas source code, then more infos are available, if you want - but specify better the situation. I suppose it is the first case, thought. Regards, Doriano Blengino From emil at ...1913... Thu Sep 4 14:41:31 2008 From: emil at ...1913... (Emil Tchekov) Date: Thu, 4 Sep 2008 14:41:31 +0200 Subject: [Gambas-user] Creating a library In-Reply-To: <200809041425.14221.gambas@...1938...> Message-ID: I am sorry, I am not skilled enough to answer. Why do you not try to search the wikis & message archive. I think you can find what you are looking for regards Emil -----Ursprungliche Nachricht----- Von: gambas-user-bounces at lists.sourceforge.net [mailto:gambas-user-bounces at lists.sourceforge.net]Im Auftrag von gambas at ...1938... Gesendet: Donnerstag, 4. September 2008 14:25 An: mailing list for gambas users Betreff: Re: [Gambas-user] Creating a library Am Mittwoch, 3. September 2008 10:56:37 schrieb gambas at ...1938...: > Hi List! > > I've written a kind of library, where I droped my standard routines. At the > moment, I have to compile this class every time with my projects. > > Is there someone on this list, who can tell me, what I have to do, to > compile the library separately and how I can get access to the methods in > the library, when I want to use them in my project? > > Thanks in advance! > > Greetz > Stevie Sorry for bothering you again. ...is this question to stupid or to complex? Greetz Stevie ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1938... Thu Sep 4 15:57:56 2008 From: gambas at ...1938... (gambas at ...1938...) Date: Thu, 4 Sep 2008 15:57:56 +0200 Subject: [Gambas-user] Creating a library In-Reply-To: <48BFD57F.9080109@...1909...> References: <200809031056.37408.gambas@...1938...> <200809041425.14221.gambas@...1938...> <48BFD57F.9080109@...1909...> Message-ID: <200809041557.56508.gambas@...1938...> Am Donnerstag, 4. September 2008 14:33:03 schrieb Doriano Blengino: > gambas at ...1938... ha scritto: > > Am Mittwoch, 3. September 2008 10:56:37 schrieb gambas at ...1938...: > >> Hi List! > >> > >> I've written a kind of library, where I droped my standard routines. At > >> the moment, I have to compile this class every time with my projects. > >> > >> Is there someone on this list, who can tell me, what I have to do, to > >> compile the library separately and how I can get access to the methods > >> in the library, when I want to use them in my project? > > When you speak about "compile this class every time", I think your > libray is a gambas source code. If it is so, then you can not compile it > separately; you can make instead a component and export it (by the > clause EXPORT), and create an executable which can be later reused every > time you want (by specifying it in the "components" page of the project > properties). More info about this, if you want. > > If you are not talking about a gambas source code, then more infos are > available, if you want - but specify better the situation. I suppose it > is the first case, thought. Hi Doriano! Yes!! ..it is the first case! :-) ...and I appreciate any further info about this topic! :-) greetz Stevie From doriano.blengino at ...1909... Thu Sep 4 16:39:06 2008 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Thu, 04 Sep 2008 16:39:06 +0200 Subject: [Gambas-user] Creating a library In-Reply-To: <200809041557.56508.gambas@...1938...> References: <200809031056.37408.gambas@...1938...> <200809041425.14221.gambas@...1938...> <48BFD57F.9080109@...1909...> <200809041557.56508.gambas@...1938...> Message-ID: <48BFF30A.7020807@...1909...> gambas at ...1938... ha scritto: > Am Donnerstag, 4. September 2008 14:33:03 schrieb Doriano Blengino: > >> gambas at ...1938... ha scritto: >> >>> Am Mittwoch, 3. September 2008 10:56:37 schrieb gambas at ...1938...: >>> >>>> Hi List! >>>> >>>> I've written a kind of library, where I droped my standard routines. At >>>> the moment, I have to compile this class every time with my projects. >>>> >> When you speak about "compile this class every time", I think your >> libray is a gambas source code. If it is so, then you can not compile it >> Make a (dummy?) project with your libray in it; give it a meaningful name. Edit the library source: put a "EXPORT" alone in a line at the beginning: ' Gambas module file EXPORT PUBLIC SUB printit(st AS String) PRINT st END Run the project, or compile it. Go to the project properties (General, Options, Components...); in the "Options" tab set "This project is a component" to YES; further tabs should appear on the right of the window (Provides and Requires). Go the tab "Provides", and click on the line starting with your library name, under the column "Type", and set "Class". Confirm with "OK". Next, create an executable: Main menu/Project/Create/Executable; a window will open asking for a location. For this kind of things, I use the same path as the project, but could be better to choose a location accessible by other users too, I don't know. Before continuing, expand the last item in the window named "Options": two checkboxes will appear. Check the "Install components in the user directory" or something similar. Confirm with OK. Quit Gambas. In your home directory you shoud find two directories: .local/lib/gambas2/ .local/share/gambas2/ with things inside them (symbolic links to the executable you created before). If you don't find ~/.local, or one of the other subdirectory, try to create them and repeat the create executable step. I don't remember whther gambas creates them automatically or it expects them to be there. Restart gambas, open/create another project (not the old one, I suppose...), go to the project properties under the section "Components". In the list of available components, you should find a line containing the name of the project you did in the first step. Check it, and now in your project you can use the methods declared in your library. Referring to the source code above, I called that module "alib", and put it inside a project "provalib". So, in another project, I can check the line "provalib", and the methods are accessible by writing "alib.printit()". Some notes: I use gambas 2.0.0, quite an old version, with italian localization. Your version could be a little different... I am testing what I am just writing to you, and it works. But there could be better/preferrable methods. Good luck, hope this solves. Cheers, Doriano. From gambas at ...1938... Thu Sep 4 18:53:15 2008 From: gambas at ...1938... (gambas at ...1938...) Date: Thu, 4 Sep 2008 18:53:15 +0200 Subject: [Gambas-user] Creating a library In-Reply-To: <48BFF30A.7020807@...1909...> References: <200809031056.37408.gambas@...1938...> <200809041557.56508.gambas@...1938...> <48BFF30A.7020807@...1909...> Message-ID: <200809041853.15249.gambas@...1938...> Am Donnerstag, 4. September 2008 16:39:06 schrieb Doriano Blengino: > Make a (dummy?) project with your libray in it; give it a meaningful name. > Edit the library source: put a "EXPORT" alone in a line at the beginning: > > ' Gambas module file > > EXPORT > > PUBLIC SUB printit(st AS String) > > PRINT st > > END > > Run the project, or compile it. > Go to the project properties (General, Options, Components...); in the > "Options" tab set "This project is a component" to YES; further tabs > should appear on the right of the window (Provides and Requires). > Go the tab "Provides", and click on the line starting with your library > name, under the column "Type", and set "Class". > Confirm with "OK". > > Next, create an executable: Main menu/Project/Create/Executable; a > window will open asking for a location. > For this kind of things, I use the same path as the project, but could > be better to choose a location accessible by other users too, I don't > know. Before continuing, expand the last item in the window named > "Options": two checkboxes will appear. Check the "Install components in > the user directory" or something similar. > > Confirm with OK. > > Quit Gambas. In your home directory you shoud find two directories: > > .local/lib/gambas2/ > .local/share/gambas2/ > > with things inside them (symbolic links to the executable you created > before). > If you don't find ~/.local, or one of the other subdirectory, try to > create them and repeat the create executable step. I don't remember > whther gambas creates them automatically or it expects them to be there. > > Restart gambas, open/create another project (not the old one, I > suppose...), go to the project properties under the section > "Components". In the list of available components, you should find a > line containing the name of the project you did in the first step. Check > it, and now in your project you can use the methods declared in your > library. > Referring to the source code above, I called that module "alib", and put > it inside a project "provalib". So, in another project, I can check the > line "provalib", and the methods are accessible by writing > "alib.printit()". > > Some notes: > > I use gambas 2.0.0, quite an old version, with italian localization. > Your version could be a little different... > > I am testing what I am just writing to you, and it works. But there > could be better/preferrable methods. > > Good luck, hope this solves. Hi Doriano, thank you so much for this guide. :-) I will check this, with my current version of Gambas! Greetz Stevie From sevoir75 at ...626... Thu Sep 4 20:35:47 2008 From: sevoir75 at ...626... (Sevoir) Date: Thu, 04 Sep 2008 20:35:47 +0200 Subject: [Gambas-user] Listbox.List(x) error Message-ID: <1220553347.7778.4.camel@...1964...> Hi All! I have a problem. I want get a Listbox item text value to a label.caption .. label.caption = ListBox.list(1) but I have an error message : Not a function What I mistaked? Regards, Sevoir From jscops at ...11... Thu Sep 4 21:26:55 2008 From: jscops at ...11... (Jacky) Date: Thu, 4 Sep 2008 21:26:55 +0200 Subject: [Gambas-user] Listbox.List(x) error In-Reply-To: <1220553347.7778.4.camel@...1964...> References: <1220553347.7778.4.camel@...1964...> Message-ID: <200809042126.55533.jscops@...11...> Le Thursday 04 September 2008 20:35:47 Sevoir, vous avez ?crit?: > Hi All! > > I have a problem. > I want get a Listbox item text value to a label.caption .. > label.caption = ListBox.list(1) > but I have an error message : > Not a function > > What I mistaked? > > Regards, Sevoir Use label.Text is better no ? Jacky From sevoir75 at ...626... Thu Sep 4 21:35:07 2008 From: sevoir75 at ...626... (Sevoir) Date: Thu, 04 Sep 2008 21:35:07 +0200 Subject: [Gambas-user] Listbox.List(x) error In-Reply-To: <200809042126.55533.jscops@...11...> References: <1220553347.7778.4.camel@...1964...> <200809042126.55533.jscops@...11...> Message-ID: <1220556907.7778.7.camel@...1964...> Hi, Thanks your answer, but problem still Regards, Sevoir 2008. 09. 4, cs?t?rt?k keltez?ssel 21.26-kor Jacky ezt ?rta: > Le Thursday 04 September 2008 20:35:47 Sevoir, vous avez ?crit : > > Hi All! > > > > I have a problem. > > I want get a Listbox item text value to a label.caption .. > > label.caption = ListBox.list(1) > > but I have an error message : > > Not a function > > > > What I mistaked? > > > > Regards, Sevoir > > Use label.Text is better no ? > > Jacky > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From jscops at ...11... Thu Sep 4 21:44:00 2008 From: jscops at ...11... (Jacky) Date: Thu, 4 Sep 2008 21:44:00 +0200 Subject: [Gambas-user] Listbox.List(x) error In-Reply-To: <1220553347.7778.4.camel@...1964...> References: <1220553347.7778.4.camel@...1964...> Message-ID: <200809042144.00966.jscops@...11...> Le Thursday 04 September 2008 20:35:47 Sevoir, vous avez ?crit?: > Hi All! > > I have a problem. > I want get a Listbox item text value to a label.caption .. > label.caption = ListBox.list(1) > but I have an error message : > Not a function > > What I mistaked? label.caption = ListBox.list[1] Jacky From klaine8 at ...626... Thu Sep 4 21:46:25 2008 From: klaine8 at ...626... (Kari Laine) Date: Thu, 4 Sep 2008 22:46:25 +0300 Subject: [Gambas-user] Listbox.List(x) error In-Reply-To: <1220556907.7778.7.camel@...1964...> References: <1220553347.7778.4.camel@...1964...> <200809042126.55533.jscops@...11...> <1220556907.7778.7.camel@...1964...> Message-ID: <61452b690809041246o37a2af5bj42dcd28bbd4a8b8c@...627...> On Thu, Sep 4, 2008 at 10:35 PM, Sevoir wrote: > Hi, > > Thanks your answer, but problem still > > Regards, Sevoir > > 2008. 09. 4, cs?t?rt?k keltez?ssel 21.26-kor Jacky ezt ?rta: > > Le Thursday 04 September 2008 20:35:47 Sevoir, vous avez ?crit : > > > Hi All! > > > > > > I have a problem. > > > I want get a Listbox item text value to a label.caption .. > > > label.caption = ListBox.list(1) > > > but I have an error message : > > > Not a function > > > > > > What I mistaked? > > > > > > Regards, Sevoir > > > > Use label.Text is better no ? > > > > Jacky > So basic problem is how to get specified element from to listbox. I can get selected element by using the listbox.current.text. I also can get all listbox elements by using listbox.list.join("|"). Listbox.list returns array[]-type so it should be possible to index it - but as I am beginner with Gambas - I don't know. I would also like to know so gurus tell us :-) Best Regards Kari From sevoir75 at ...626... Thu Sep 4 21:56:25 2008 From: sevoir75 at ...626... (Sevoir) Date: Thu, 04 Sep 2008 21:56:25 +0200 Subject: [Gambas-user] Listbox.List(x) error In-Reply-To: <200809042144.00966.jscops@...11...> References: <1220553347.7778.4.camel@...1964...> <200809042144.00966.jscops@...11...> Message-ID: <1220558185.7778.10.camel@...1964...> Thx this working. Regards, Norbert 2008. 09. 4, cs?t?rt?k keltez?ssel 21.44-kor Jacky ezt ?rta: > Le Thursday 04 September 2008 20:35:47 Sevoir, vous avez ?crit : > > Hi All! > > > > I have a problem. > > I want get a Listbox item text value to a label.caption .. > > label.caption = ListBox.list(1) > > but I have an error message : > > Not a function > > > > What I mistaked? > > label.caption = ListBox.list[1] > > Jacky > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From tomas.eroles at ...277... Thu Sep 4 22:21:55 2008 From: tomas.eroles at ...277... (Tomas Eroles i Forner) Date: Thu, 04 Sep 2008 22:21:55 +0200 Subject: [Gambas-user] Best control for a game In-Reply-To: <200808281157.04022.gambas@...1...> References: <1219917091.4753.4.camel@...1787...> <200808281157.04022.gambas@...1...> Message-ID: <1220559715.4395.5.camel@...1787...> Hi again Well, I've made some research in DrawingArea. I've been reading the documentation on the wiki, and, if I understand it, for drawing I have to draw into a DrawingArea enclosing all draw commands in a Draw.Begin(DrawingArea)...Draw.End group of code. It seems to work, but, I see that you can start drawing if you put a command button, or a menu or something like this, but it does not work in a Form_Open event. Is it like this? Thanks El dj 28 de 08 del 2008 a les 11:57 +0200, en/na Benoit Minisini va escriure: > On jeudi 28 ao?t 2008, Tomas Eroles i Forner wrote: > > Hi all > > I'm trying to write a gambas scrabble (yes, I'm in holidays :-), and I'm > > thinking which is the best control to do that. > > I've tried to use a 15x15 matrix text label, but I think perhaps there > > is a better control. > > > > What do you think about? > > If using a GridView or TableView, is it possible to paint some squares > > (for 2xWord, 3xWord, 2xLetter...) > > > > Thanks in advance > > Draw everything yourself in a DrawingArea, this is the fastest. > > Or create your own "scrabble cell" control based on a DrawingArea, and put 225 > of them inside a container. > > Regards, > From gambas at ...1... Thu Sep 4 23:44:32 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 4 Sep 2008 23:44:32 +0200 Subject: [Gambas-user] Listbox.List(x) error In-Reply-To: <1220558185.7778.10.camel@...1964...> References: <1220553347.7778.4.camel@...1964...> <200809042144.00966.jscops@...11...> <1220558185.7778.10.camel@...1964...> Message-ID: <200809042344.32586.gambas@...1...> On jeudi 04 septembre 2008, Sevoir wrote: > Thx this working. > > > Regards, Norbert > > 2008. 09. 4, cs?t?rt?k keltez?ssel 21.44-kor Jacky ezt ?rta: > > Le Thursday 04 September 2008 20:35:47 Sevoir, vous avez ?crit : > > > Hi All! > > > > > > I have a problem. > > > I want get a Listbox item text value to a label.caption .. > > > label.caption = ListBox.list(1) > > > but I have an error message : > > > Not a function > > > > > > What I mistaked? > > > > label.caption = ListBox.list[1] > > > > Jacky > > The syntax in Gambas is different from the vb syntax: Label.Caption = ListBox[1] If you do Label.Caption = ListBox.List[1], you get the same result, because you actually get the second element of what returns ListBox.List, which is an array of all listbox elements. If the listbox has 10000 items, you are killing a fly with a hammer then. Regards, -- Benoit Minisini From wdahn at ...1000... Fri Sep 5 06:35:02 2008 From: wdahn at ...1000... (Werner) Date: Fri, 05 Sep 2008 12:35:02 +0800 Subject: [Gambas-user] Best control for a game In-Reply-To: <1220559715.4395.5.camel@...1787...> References: <1219917091.4753.4.camel@...1787...> <200808281157.04022.gambas@...1...> <1220559715.4395.5.camel@...1787...> Message-ID: <48C0B6F6.6090506@...1000...> Tomas Eroles i Forner wrote: > Hi again > Well, I've made some research in DrawingArea. > I've been reading the documentation on the wiki, and, if I understand > it, for drawing I have to draw into a DrawingArea enclosing all draw > commands in a Draw.Begin(DrawingArea)...Draw.End group of code. > > It seems to work, but, I see that you can start drawing if you put a > command button, or a menu or something like this, but it does not work > in a Form_Open event. > > Is it like this? > > Thanks > It is meant to be used somewhat differently. You can put all your drawing commands in a Draw.Begin(DrawingArea)...Draw.End group of code. However, it is much more practical to use the drawing area's draw event http://gambasdoc.org/help/comp/gb.qt/drawingarea/.draw because it will also deal with needs to redraw that come from outside the application i.e.other applications' windows that were partially overlapping. Have a look at the "Analog Watch" example. So your Draw event would look like this: PUBLIC SUB dwgScrabble_Draw() 'don't use BEGIN and END, it is already done ... ... END Also, do not use WAIT statements in here if there is any slight chance that something elsewhere wanted to be drawn. I learned this the hard way :-D Regards Werner From doriano.blengino at ...1909... Fri Sep 5 08:01:39 2008 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Fri, 05 Sep 2008 08:01:39 +0200 Subject: [Gambas-user] Best control for a game In-Reply-To: <48C0B6F6.6090506@...1000...> References: <1219917091.4753.4.camel@...1787...> <200808281157.04022.gambas@...1...> <1220559715.4395.5.camel@...1787...> <48C0B6F6.6090506@...1000...> Message-ID: <48C0CB43.1060204@...1909...> Werner ha scritto: > Tomas Eroles i Forner wrote: > >> commands in a Draw.Begin(DrawingArea)...Draw.End group of code. >> >> It seems to work, but, I see that you can start drawing if you put a >> command button, or a menu or something like this, but it does not work >> in a Form_Open event. >> >> Is it like this? >> > However, it is much more practical to use the drawing area's draw event > http://gambasdoc.org/help/comp/gb.qt/drawingarea/.draw > > because it will also deal with needs to redraw that come from outside the application i.e.other applications' windows that were partially overlapping. Have a look at the "Analog Watch" example. > Werner is right but, perhaps, you can still get what you want if you set the "Cached" property of the DrawingArea. By setting that property, the DrawingArea repaints automatically itself when needed; whether to go this way or the other depends on several factors: dimension of the drawing, complexity of the drawing, complexity of the code needed to remember what to draw... I suppose that the main difference between the two methods is this. If you use the Cached property, your code can update the drawing when it wants; the result is a cached bitmap that can consume a lot of memory, but still is a simple bitmap. This is the easiest way. If you don't use the Cached property, your code to update the drawing is called every time the DrawingArea "unveals". If this code is fast, then this method is better. However, this second method is a little more complicated to understand: when the program, asynchronously, wants to change the appearance, it can Draw() directly, but it must also remember the sequence of operations needed to refresh the entire drawing, so a double job is needed. And this is the harder way... Cheers, Doriano Blengino From gambas at ...1... Fri Sep 5 11:59:03 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 5 Sep 2008 11:59:03 +0200 Subject: [Gambas-user] Best control for a game In-Reply-To: <48C0CB43.1060204@...1909...> References: <1219917091.4753.4.camel@...1787...> <48C0B6F6.6090506@...1000...> <48C0CB43.1060204@...1909...> Message-ID: <200809051159.03766.gambas@...1...> On vendredi 05 septembre 2008, Doriano Blengino wrote: > Werner ha scritto: > > Tomas Eroles i Forner wrote: > >> commands in a Draw.Begin(DrawingArea)...Draw.End group of code. > >> > >> It seems to work, but, I see that you can start drawing if you put a > >> command button, or a menu or something like this, but it does not work > >> in a Form_Open event. > >> > >> Is it like this? > > > > However, it is much more practical to use the drawing area's draw event > > http://gambasdoc.org/help/comp/gb.qt/drawingarea/.draw > > > > because it will also deal with needs to redraw that come from outside the > > application i.e.other applications' windows that were partially > > overlapping. Have a look at the "Analog Watch" example. > > Werner is right but, perhaps, you can still get what you want if you set > the "Cached" property of the DrawingArea. > By setting that property, the DrawingArea repaints automatically itself > when needed; whether to go this way or the other depends on several > factors: dimension of the drawing, complexity of the drawing, complexity > of the code needed to remember what to draw... > > I suppose that the main difference between the two methods is this. If > you use the Cached property, your code can update the drawing when it > wants; the result is a cached bitmap that can consume a lot of memory, > but still is a simple bitmap. This is the easiest way. If you don't use > the Cached property, your code to update the drawing is called every > time the DrawingArea "unveals". If this code is fast, then this method > is better. However, this second method is a little more complicated to > understand: when the program, asynchronously, wants to change the > appearance, it can Draw() directly, You cannot draw directly on a DrawingArea if it is not cached (even if it actually allowed at the moment). Drawing must be done inside the Draw event only. If you need to refresh the DrawingArea, you must call its Refresh() method. When the DrawingArea is cached, it maintain a pixmap cache (like a Picture object), so you can draw inside it whenever you want. Regards, -- Benoit Minisini From leonardo at ...1237... Fri Sep 5 12:33:57 2008 From: leonardo at ...1237... (Leonardo Miliani) Date: Fri, 05 Sep 2008 12:33:57 +0200 Subject: [Gambas-user] Maybe a bug in how Gambas manages open DB connections Message-ID: <48C10B15.3000706@...1237...> I would like to get your attention on what I think is a bug of how Gambas manages open DB connections. In a project of mine, I manage 2 connections to a MySQL DB. In a form of that project I open the first connection and get a result with the Connection.Find() method; then, I open the second connection. After this, if I try to make another operation on the first connection I get an "Invalid object" error. It seems that Gambas, when it opens the second connection, deletes all the old ones so it has no more references to other connections but the last one. Example code: PRIVATE Connessione AS NEW Connection PRIVATE Risultato AS Result PUBLIC SUB Form_Open() WITH Connessione .Name = MySQL.NomeDB .Type = "mysql" .User = MySQL.Utente .Password = MySQL.Password .Host = MySQL.Host .Open END WITH END PUBLIC SUB btnCercaTarga_Click() DIM Connessione AS NEW Connection DIM Connessione2 AS NEW Connection DIM Risultato AS Result DIM Risultato2 AS Result Risultato = Connessione.Find("auto", "targa=&1", Trim(txtTarga.Text)) IF Risultato.Available = FALSE THEN RETURN END IF WITH Connessione2 .Name = MySQL.NomeDB .Type = "mysql" .User = MySQL.Utente .Password = MySQL.Password .Host = MySQL.Host .Open END WITH Risultato.MoveFirst ** <--------------- Here I get the error ** [...] To solve this, I had to call the Connection.Find() method another time before to access to the Result class. -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Scegli software opensource - Choose opensource software Co-fondatore di Gambas-it.org Il sito di riferimento della comunit? italiana degli utenti di Gambas www.gambas-it.org From gambas at ...1... Fri Sep 5 14:02:45 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 5 Sep 2008 14:02:45 +0200 Subject: [Gambas-user] Maybe a bug in how Gambas manages open DB connections In-Reply-To: <48C10B15.3000706@...1237...> References: <48C10B15.3000706@...1237...> Message-ID: <200809051402.45708.gambas@...1...> On vendredi 05 septembre 2008, Leonardo Miliani wrote: > I would like to get your attention on what I think is a bug of how > Gambas manages open DB connections. > > In a project of mine, I manage 2 connections to a MySQL DB. > In a form of that project I open the first connection and get a result > with the Connection.Find() method; then, I open the second connection. > After this, if I try to make another operation on the first connection I > get an "Invalid object" error. > It seems that Gambas, when it opens the second connection, deletes all > the old ones so it has no more references to other connections but the > last one. > > Example code: > PRIVATE Connessione AS NEW Connection > PRIVATE Risultato AS Result > > PUBLIC SUB Form_Open() > WITH Connessione > .Name = MySQL.NomeDB > .Type = "mysql" > .User = MySQL.Utente > .Password = MySQL.Password > .Host = MySQL.Host > .Open > END WITH > END > > PUBLIC SUB btnCercaTarga_Click() > DIM Connessione AS NEW Connection > DIM Connessione2 AS NEW Connection > DIM Risultato AS Result > DIM Risultato2 AS Result > > Risultato = Connessione.Find("auto", "targa=&1", Trim(txtTarga.Text)) > IF Risultato.Available = FALSE THEN > RETURN > END IF > > WITH Connessione2 > .Name = MySQL.NomeDB > .Type = "mysql" > .User = MySQL.Utente > .Password = MySQL.Password > .Host = MySQL.Host > .Open > END WITH > > Risultato.MoveFirst ** <--------------- Here I get the error ** > [...] > > > To solve this, I had to call the Connection.Find() method another time > before to access to the Result class. I cannot reproduce the problem with your code. Which version of Gambas do you use? Note that your code is incorrect anyway: you declare a new connection object is a local variable named Connessione in btnCercaTarga_Click which overrides the global variable with the same name, and that connection object is not initialized. REgards, -- Benoit Minisini From gambas at ...1938... Fri Sep 5 14:41:04 2008 From: gambas at ...1938... (gambas at ...1938...) Date: Fri, 5 Sep 2008 14:41:04 +0200 Subject: [Gambas-user] Bug or feature in Version 3.0 (snapshot a week ago) Message-ID: <200809051441.05287.gambas@...1938...> When I type: If(bla = x) then During compilation, I get the error: Not enough arguments to if() When I type: If (bla = x) then All went fine. The only difference between the two statements is the missing whitespace after "If" in the first one. Greetz Stevie From gambas at ...1... Fri Sep 5 14:48:01 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 5 Sep 2008 14:48:01 +0200 Subject: [Gambas-user] Bug or feature in Version 3.0 (snapshot a week ago) In-Reply-To: <200809051441.05287.gambas@...1938...> References: <200809051441.05287.gambas@...1938...> Message-ID: <200809051448.01551.gambas@...1...> On vendredi 05 septembre 2008, gambas at ...1938... wrote: > When I type: > If(bla = x) then > During compilation, I get the error: > Not enough arguments to if() > > When I type: > If (bla = x) then > All went fine. > > The only difference between the two statements is the missing whitespace > after "If" in the first one. > > Greetz > Stevie > Yes, because If() is a function. The IF statement does not need to take parenthesis. Regards, -- Benoit Minisini From ron at ...1740... Fri Sep 5 14:54:03 2008 From: ron at ...1740... (Ron) Date: Fri, 05 Sep 2008 14:54:03 +0200 Subject: [Gambas-user] Datacontrol field missing Password option? Message-ID: <48C12BEB.2050904@...1740...> Hi, Is it possible to let Datacontrol input act the same as a Textbox with Password option set to true? I need to edit a users table with datasource/databrowser, but password entry is readable as you type. Regards, Ron_2nd From ron at ...1740... Fri Sep 5 15:04:46 2008 From: ron at ...1740... (Ron) Date: Fri, 05 Sep 2008 15:04:46 +0200 Subject: [Gambas-user] Combobox copy 'bug' Message-ID: <48C12E6E.7070101@...1740...> Hi, If you copy and past a Combobox in editor mode, the name gets updated, Combobox1..2..3, but the text inside the Combobox still has the old name. Gambas 2.8.1 Regards, Ron_2nd. From gambas at ...1... Fri Sep 5 15:05:07 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 5 Sep 2008 15:05:07 +0200 Subject: [Gambas-user] Datacontrol field missing Password option? In-Reply-To: <48C12BEB.2050904@...1740...> References: <48C12BEB.2050904@...1740...> Message-ID: <200809051505.07711.gambas@...1...> On vendredi 05 septembre 2008, Ron wrote: > Hi, > > Is it possible to let Datacontrol input act the same as a Textbox with > Password option set to true? > > I need to edit a users table with datasource/databrowser, but password > entry is readable as you type. > > Regards, > Ron_2nd > There is a trick: DIM hTextBox AS TextBox = MyDataControl.Children[0] hTextBox.Password = TRUE -- Benoit Minisini From ron at ...1740... Fri Sep 5 15:07:13 2008 From: ron at ...1740... (Ron) Date: Fri, 05 Sep 2008 15:07:13 +0200 Subject: [Gambas-user] Combobox copy 'bug' In-Reply-To: <48C12E6E.7070101@...1740...> References: <48C12E6E.7070101@...1740...> Message-ID: <48C12F01.7070305@...1740...> Ron schreef: > Hi, > > If you copy and past a Combobox in editor mode, the name gets updated, > Combobox1..2..3, > but the text inside the Combobox still has the old name. > > Gambas 2.8.1 > > Regards, > Ron_2nd. > > Never mind, I thinks its ok, the Text value is copied.. which is ok I guess.. the name should be unique so that one is updated. Sorry for the noise. Regards, Ron_2nd From ron at ...1740... Fri Sep 5 15:12:58 2008 From: ron at ...1740... (Ron) Date: Fri, 05 Sep 2008 15:12:58 +0200 Subject: [Gambas-user] Datacontrol field missing Password option? In-Reply-To: <200809051505.07711.gambas@...1...> References: <48C12BEB.2050904@...1740...> <200809051505.07711.gambas@...1...> Message-ID: <48C1305A.2000201@...1740...> Benoit Minisini schreef: > On vendredi 05 septembre 2008, Ron wrote: > >> Hi, >> >> Is it possible to let Datacontrol input act the same as a Textbox with >> Password option set to true? >> >> I need to edit a users table with datasource/databrowser, but password >> entry is readable as you type. >> >> Regards, >> Ron_2nd >> >> > > There is a trick: > > DIM hTextBox AS TextBox = MyDataControl.Children[0] > hTextBox.Password = TRUE > > Yes this work perfectly, thanks. Ron_2nd From ronstk at ...239... Fri Sep 5 16:51:13 2008 From: ronstk at ...239... (Ron_1st) Date: Fri, 5 Sep 2008 16:51:13 +0200 Subject: [Gambas-user] Listbox.List(x) error In-Reply-To: <1220553347.7778.4.camel@...1964...> References: <1220553347.7778.4.camel@...1964...> Message-ID: <200809051651.13729.ronstk@...239...> On Thursday 04 September 2008, Sevoir wrote: > Hi All! > > I have a problem. > I want get a Listbox item text value to a label.caption .. > label.caption = ListBox.list(1) > but I have an error message : > Not a function > > What I mistaked? > > Regards, Sevoir > > If I make comething like 'label.caption = ListBox.list(1)' and get error messages i look to the line and see 2 posible mallfunctions 1) label.caption 2) ListBox.list(1) Which one would be candidate ? Firstway todo: mytexttoshow = ListBox.list(1) label.caption = mytexttoshow Now you can see wich part of the _smart_ line is malfunction :) Second way todo: The error tells about 'Not a function' Mostly functions are on the rightside of the '=' Second function passing arguments between '(' and ')' So candidate is 'ListBox.list(1)' Does 'list' as function/property exist If exists then what is the return type? Aahh I see in the help it is array. How do we access a array element? Again in the help I see by using '[indexnumber]' So next line should solve label.caption = ListBox.list[1] Have fun :) Best regards Ron_1st -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? From ronstk at ...239... Fri Sep 5 16:51:29 2008 From: ronstk at ...239... (Ron_1st) Date: Fri, 5 Sep 2008 16:51:29 +0200 Subject: [Gambas-user] Listbox.List(x) error In-Reply-To: <61452b690809041246o37a2af5bj42dcd28bbd4a8b8c@...627...> References: <1220553347.7778.4.camel@...1964...> <1220556907.7778.7.camel@...1964...> <61452b690809041246o37a2af5bj42dcd28bbd4a8b8c@...627...> Message-ID: <200809051651.29276.ronstk@...239...> On Thursday 04 September 2008, Kari Laine wrote: > On Thu, Sep 4, 2008 at 10:35 PM, Sevoir wrote: > > > Hi, > > > > Thanks your answer, but problem still > > > > Regards, Sevoir > > > > 2008. 09. 4, cs?t?rt?k keltez?ssel 21.26-kor Jacky ezt ?rta: > > > Le Thursday 04 September 2008 20:35:47 Sevoir, vous avez ?crit : > > > > Hi All! > > > > > > > > I have a problem. > > > > I want get a Listbox item text value to a label.caption .. > > > > label.caption = ListBox.list(1) > > > > but I have an error message : > > > > Not a function > > > > > > > > What I mistaked? > > > > > > > > Regards, Sevoir > > > > > > Use label.Text is better no ? > > > > > > Jacky > > > > So basic problem is how to get specified element from to listbox. I can get > selected element by using the listbox.current.text. I also can get all > listbox elements by using listbox.list.join("|"). Listbox.list returns > array[]-type so it should be possible to index it - but as I am beginner > with Gambas - I don't know. I would also like to know so gurus tell us :-) > > Best Regards > Kari You explain yourself the correctway already :) > Listbox.list returns array[]-type How do you access array elements? What about myllistboxtextarray[1] ? Best regards Ron_1st -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? From doriano.blengino at ...1909... Fri Sep 5 17:25:31 2008 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Fri, 05 Sep 2008 17:25:31 +0200 Subject: [Gambas-user] Bug or feature in Version 3.0 (snapshot a week ago) In-Reply-To: <200809051448.01551.gambas@...1...> References: <200809051441.05287.gambas@...1938...> <200809051448.01551.gambas@...1...> Message-ID: <48C14F6B.8040003@...1909...> Benoit Minisini ha scritto: > On vendredi 05 septembre 2008, gambas at ...1938... wrote: > >> When I type: >> If(bla = x) then >> During compilation, I get the error: >> Not enough arguments to if() >> >> When I type: >> If (bla = x) then >> All went fine. >> >> The only difference between the two statements is the missing whitespace >> after "If" in the first one. >> >> Greetz >> Stevie >> >> > > Yes, because If() is a function. The IF statement does not need to take > parenthesis. > > Regards, > > This seems to me a little strange - there is already the Iif() function... is this shorter name "If()" for some VB(tm) compatibility? I am just curious about it... From kari.laine at ...1400... Fri Sep 5 23:36:16 2008 From: kari.laine at ...1400... (Kari Laine) Date: Sat, 06 Sep 2008 00:36:16 +0300 Subject: [Gambas-user] Multi threaded apps Message-ID: <48C1A650.9070107@...1400...> Hi, is it possible to make multi threaded apps with Gambas? I think not. Best Regards Kari Laine From leonardo at ...1237... Fri Sep 5 23:36:34 2008 From: leonardo at ...1237... (Leonardo Miliani) Date: Fri, 05 Sep 2008 23:36:34 +0200 Subject: [Gambas-user] Maybe a bug in how Gambas manages open DB connections In-Reply-To: <200809051402.45708.gambas@...1...> References: <48C10B15.3000706@...1237...> <200809051402.45708.gambas@...1...> Message-ID: <48C1A662.5000109@...1237...> Benoit Minisini ha scritto: > On vendredi 05 septembre 2008, Leonardo Miliani wrote: >> I would like to get your attention on what I think is a bug of how >> Gambas manages open DB connections. >> >> In a project of mine, I manage 2 connections to a MySQL DB. >> In a form of that project I open the first connection and get a result >> with the Connection.Find() method; then, I open the second connection. >> After this, if I try to make another operation on the first connection I >> get an "Invalid object" error. >> It seems that Gambas, when it opens the second connection, deletes all >> the old ones so it has no more references to other connections but the >> last one. >> >> Example code: >> PRIVATE Connessione AS NEW Connection >> PRIVATE Risultato AS Result >> >> PUBLIC SUB Form_Open() >> WITH Connessione >> .Name = MySQL.NomeDB >> .Type = "mysql" >> .User = MySQL.Utente >> .Password = MySQL.Password >> .Host = MySQL.Host >> .Open >> END WITH >> END >> >> PUBLIC SUB btnCercaTarga_Click() >> DIM Connessione AS NEW Connection >> DIM Connessione2 AS NEW Connection >> DIM Risultato AS Result >> DIM Risultato2 AS Result >> >> Risultato = Connessione.Find("auto", "targa=&1", Trim(txtTarga.Text)) >> IF Risultato.Available = FALSE THEN >> RETURN >> END IF >> >> WITH Connessione2 >> .Name = MySQL.NomeDB >> .Type = "mysql" >> .User = MySQL.Utente >> .Password = MySQL.Password >> .Host = MySQL.Host >> .Open >> END WITH >> >> Risultato.MoveFirst ** <--------------- Here I get the error ** >> [...] >> >> >> To solve this, I had to call the Connection.Find() method another time >> before to access to the Result class. > > I cannot reproduce the problem with your code. Which version of Gambas do you > use? > > Note that your code is incorrect anyway: you declare a new connection object > is a local variable named Connessione in btnCercaTarga_Click which overrides > the global variable with the same name, and that connection object is not > initialized. > > REgards, > Sorry. I mixed two examples, one with the Connection "Connessione" declared as global and one with the connection declared as local because I was testing the two different ways. But nothing changed for me, I got the same error with both of the cases. Otherwise, the first call to Connessione.Find: Risultato = Connessione.Find("auto", "targa=&1", Trim(txtTarga.Text) works fine; but after I open the second connection, the new attempt to access the first connection give me back that error. -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Scegli software opensource - Choose opensource software Co-fondatore di Gambas-it.org Il sito di riferimento della comunit? italiana degli utenti di Gambas www.gambas-it.org From leonardo at ...1237... Fri Sep 5 23:37:32 2008 From: leonardo at ...1237... (Leonardo Miliani) Date: Fri, 05 Sep 2008 23:37:32 +0200 Subject: [Gambas-user] Maybe a bug in how Gambas manages open DB connections In-Reply-To: <200809051402.45708.gambas@...1...> References: <48C10B15.3000706@...1237...> <200809051402.45708.gambas@...1...> Message-ID: <48C1A69C.5070505@...1237...> Benoit Minisini ha scritto: > On vendredi 05 septembre 2008, Leonardo Miliani wrote: >> I would like to get your attention on what I think is a bug of how >> Gambas manages open DB connections. >> >> In a project of mine, I manage 2 connections to a MySQL DB. >> In a form of that project I open the first connection and get a result >> with the Connection.Find() method; then, I open the second connection. >> After this, if I try to make another operation on the first connection I >> get an "Invalid object" error. >> It seems that Gambas, when it opens the second connection, deletes all >> the old ones so it has no more references to other connections but the >> last one. >> >> Example code: >> PRIVATE Connessione AS NEW Connection >> PRIVATE Risultato AS Result >> >> PUBLIC SUB Form_Open() >> WITH Connessione >> .Name = MySQL.NomeDB >> .Type = "mysql" >> .User = MySQL.Utente >> .Password = MySQL.Password >> .Host = MySQL.Host >> .Open >> END WITH >> END >> >> PUBLIC SUB btnCercaTarga_Click() >> DIM Connessione AS NEW Connection >> DIM Connessione2 AS NEW Connection >> DIM Risultato AS Result >> DIM Risultato2 AS Result >> >> Risultato = Connessione.Find("auto", "targa=&1", Trim(txtTarga.Text)) >> IF Risultato.Available = FALSE THEN >> RETURN >> END IF >> >> WITH Connessione2 >> .Name = MySQL.NomeDB >> .Type = "mysql" >> .User = MySQL.Utente >> .Password = MySQL.Password >> .Host = MySQL.Host >> .Open >> END WITH >> >> Risultato.MoveFirst ** <--------------- Here I get the error ** >> [...] >> >> >> To solve this, I had to call the Connection.Find() method another time >> before to access to the Result class. > > I cannot reproduce the problem with your code. Which version of Gambas do you > use? > > Note that your code is incorrect anyway: you declare a new connection object > is a local variable named Connessione in btnCercaTarga_Click which overrides > the global variable with the same name, and that connection object is not > initialized. > > REgards, > Ops.... I forgot the version: 2.8.1, but got the same error with previous versions 2.8 and, if I remember correctly, 2.7. -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Scegli software opensource - Choose opensource software Co-fondatore di Gambas-it.org Il sito di riferimento della comunit? italiana degli utenti di Gambas www.gambas-it.org From klaine8 at ...626... Sat Sep 6 00:28:35 2008 From: klaine8 at ...626... (Kari Laine) Date: Sat, 6 Sep 2008 01:28:35 +0300 Subject: [Gambas-user] Maybe a bug in how Gambas manages open DB connections In-Reply-To: <48C1A69C.5070505@...1237...> References: <48C10B15.3000706@...1237...> <200809051402.45708.gambas@...1...> <48C1A69C.5070505@...1237...> Message-ID: <61452b690809051528x166b831crc1a9bc875fcde404@...627...> > > Ops.... I forgot the version: 2.8.1, but got the same error with > previous versions 2.8 and, if I remember correctly, 2.7. > > Hi, with Gambas 2.7 I tested following and got no errors. Maybe you could post more complete program others could test with. ' Gambas class file PRIVATE Connessione AS NEW Connection PRIVATE Risultato AS Result PUBLIC SUB Form_Open() WITH Connessione .Name = "laskutus" .Type = "mysql" .User = "root" .Password = "" .Host = "localhost" .Open END WITH END PUBLIC SUB Button1_Click() DIM Connessione2 AS NEW Connection DIM Risultato2 AS Result Risultato = Connessione.Find("asiakas", "id=&1", Trim(TextBox1.Text)) ' IF Risultato.Available = FALSE THEN ' RETURN ' END IF TextBox2.Text = Risultato!nimi WITH Connessione2 .Name = "laskutus" .Type = "mysql" .User = "root" .Password = "" .Host = "localhost" .Open END WITH Risultato2 = Connessione2.Find("yritys", "id=&1", Trim(TextBox1.Text)) TextBox3.Text = Risultato2!nimi Risultato.MoveFirst TextBox4.text = Risultato!nimi END Best Regards Kari Laine From klaine8 at ...626... Sat Sep 6 01:00:44 2008 From: klaine8 at ...626... (Kari Laine) Date: Sat, 6 Sep 2008 02:00:44 +0300 Subject: [Gambas-user] Maybe a bug in how Gambas manages open DB connections In-Reply-To: <61452b690809051528x166b831crc1a9bc875fcde404@...627...> References: <48C10B15.3000706@...1237...> <200809051402.45708.gambas@...1...> <48C1A69C.5070505@...1237...> <61452b690809051528x166b831crc1a9bc875fcde404@...627...> Message-ID: <61452b690809051600l559afd51ne50d6a18555e2f19@...627...> Hi again, now I think I understand what the problem is - I did notice it straight away because I had only 1 record on both tables. I do not get any error from the Gambas but the Risultato.movefirst has no effect. It returns the record that was searched for in the first place in Risultato = Connessione.Find("asiakas", "id=&1", Trim(TextBox1.Text)) Also I have stupid question result.movefirst should return a boolean how I can store that? dim firstOk as Boolean firstOK = result.movefirst gives an error - I know this is stupid question. Best Regards Kari Laine From nando_f at ...951... Sat Sep 6 01:11:27 2008 From: nando_f at ...951... (nando) Date: Fri, 5 Sep 2008 18:11:27 -0500 Subject: [Gambas-user] Multi threaded apps In-Reply-To: <48C1A650.9070107@...1400...> References: <48C1A650.9070107@...1400...> Message-ID: <20080905225803.M68317@...951...> I think multi-threaded would be wonderful and groundbreaking, but much work. Hypothetical example: PUBLIC SUB Button1_Click() NEW THREAD (Low Priority) DIM x AS INTEGER PRINT Button1.Thread 'this indicates which thread it is (1,2,3,4...) 'because clicking the button makes a new thread 'something like a 'collection of threads' FOR x = 1 TO 12345678 PRINT x NEXT END This thread would cease to exist when the SUB is completed. The main thread continues processing along side this one. The interpreter would have to switch running threads regularly. Thinking out loud. -Fernando ---------- Original Message ----------- From: Kari Laine To: mailing list for gambas users Sent: Sat, 06 Sep 2008 00:36:16 +0300 Subject: [Gambas-user] Multi threaded apps > Hi, > > is it possible to make multi threaded apps with Gambas? I think not. > > Best Regards > Kari Laine > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From pinozollo at ...626... Sat Sep 6 02:15:36 2008 From: pinozollo at ...626... (Pino Zollo) Date: Fri, 5 Sep 2008 20:15:36 -0400 Subject: [Gambas-user] Multi threaded apps In-Reply-To: <20080905225803.M68317@...951...> References: <48C1A650.9070107@...1400...> <20080905225803.M68317@...951...> Message-ID: <200809052015.38459.pinozollo@...626...> Alle 19:11, venerd? 5 settembre 2008, nando ha scritto: > This thread would cease to exist when the SUB is completed. > The main thread continues processing along side this one. > > The interpreter would have to switch running threads regularly. I guess that there should be many instances of the interpreter, one for thread. Hope the interpreter is light enough ! Very nice and usefull to have ! Pino From tomas.eroles at ...277... Sat Sep 6 10:13:50 2008 From: tomas.eroles at ...277... (Tomas Eroles i Forner) Date: Sat, 06 Sep 2008 10:13:50 +0200 Subject: [Gambas-user] Best control for a game In-Reply-To: <200809051159.03766.gambas@...1...> References: <1219917091.4753.4.camel@...1787...> <48C0B6F6.6090506@...1000...> <48C0CB43.1060204@...1909...> <200809051159.03766.gambas@...1...> Message-ID: <1220688830.4151.11.camel@...1787...> Ok, it seems to work fine. I can draw all the board without problems, but I have yet some questions: I'm drawing the board after a menu command. If after the drawing the board I click on Maximize button, the board is erased and I have to draw it another time. How can I solve that? Other question: the board is a 15x15 matrix, drawn by rectangles, and I would like to work with each rectangle, because I would like to paint some of them depending on their position (it will be stored on a file or on a database). Is possible to refer to a rectangle after it has been drawn? That is, may I draw all the rectangles and after that, while reading a file (or a table) put some colour on them (background property perhaps)? Thanks in advance for your answers, guys El dv 05 de 09 del 2008 a les 11:59 +0200, en/na Benoit Minisini va escriure: > On vendredi 05 septembre 2008, Doriano Blengino wrote: > > Werner ha scritto: > > > Tomas Eroles i Forner wrote: > > >> commands in a Draw.Begin(DrawingArea)...Draw.End group of code. > > >> > > >> It seems to work, but, I see that you can start drawing if you put a > > >> command button, or a menu or something like this, but it does not work > > >> in a Form_Open event. > > >> > > >> Is it like this? > > > > > > However, it is much more practical to use the drawing area's draw event > > > http://gambasdoc.org/help/comp/gb.qt/drawingarea/.draw > > > > > > because it will also deal with needs to redraw that come from outside the > > > application i.e.other applications' windows that were partially > > > overlapping. Have a look at the "Analog Watch" example. > > > > Werner is right but, perhaps, you can still get what you want if you set > > the "Cached" property of the DrawingArea. > > By setting that property, the DrawingArea repaints automatically itself > > when needed; whether to go this way or the other depends on several > > factors: dimension of the drawing, complexity of the drawing, complexity > > of the code needed to remember what to draw... > > > > I suppose that the main difference between the two methods is this. If > > you use the Cached property, your code can update the drawing when it > > wants; the result is a cached bitmap that can consume a lot of memory, > > but still is a simple bitmap. This is the easiest way. If you don't use > > the Cached property, your code to update the drawing is called every > > time the DrawingArea "unveals". If this code is fast, then this method > > is better. However, this second method is a little more complicated to > > understand: when the program, asynchronously, wants to change the > > appearance, it can Draw() directly, > > You cannot draw directly on a DrawingArea if it is not cached (even if it > actually allowed at the moment). > > Drawing must be done inside the Draw event only. > > If you need to refresh the DrawingArea, you must call its Refresh() method. > > When the DrawingArea is cached, it maintain a pixmap cache (like a Picture > object), so you can draw inside it whenever you want. > > Regards, > From pete992000 at ...1683... Sat Sep 6 10:16:46 2008 From: pete992000 at ...1683... (Peter Russell) Date: Sat, 06 Sep 2008 18:16:46 +1000 Subject: [Gambas-user] Best control for a game In-Reply-To: <1220688830.4151.11.camel@...1787...> References: <1219917091.4753.4.camel@...1787...> <48C0B6F6.6090506@...1000...> <48C0CB43.1060204@...1909...> <200809051159.03766.gambas@...1...> <1220688830.4151.11.camel@...1787...> Message-ID: <1220689006.24580.0.camel@...1966...> Maybe using a grid might be an option. Regards Pete On Sat, 2008-09-06 at 10:13 +0200, Tomas Eroles i Forner wrote: > Ok, it seems to work fine. > I can draw all the board without problems, but I have yet some > questions: > > I'm drawing the board after a menu command. If after the drawing the > board I click on Maximize button, the board is erased and I have to draw > it another time. How can I solve that? > > Other question: the board is a 15x15 matrix, drawn by rectangles, and I > would like to work with each rectangle, because I would like to paint > some of them depending on their position (it will be stored on a file or > on a database). Is possible to refer to a rectangle after it has been > drawn? That is, may I draw all the rectangles and after that, while > reading a file (or a table) put some colour on them (background property > perhaps)? > > Thanks in advance for your answers, guys > > > El dv 05 de 09 del 2008 a les 11:59 +0200, en/na Benoit Minisini va > escriure: > > On vendredi 05 septembre 2008, Doriano Blengino wrote: > > > Werner ha scritto: > > > > Tomas Eroles i Forner wrote: > > > >> commands in a Draw.Begin(DrawingArea)...Draw.End group of code. > > > >> > > > >> It seems to work, but, I see that you can start drawing if you put a > > > >> command button, or a menu or something like this, but it does not work > > > >> in a Form_Open event. > > > >> > > > >> Is it like this? > > > > > > > > However, it is much more practical to use the drawing area's draw event > > > > http://gambasdoc.org/help/comp/gb.qt/drawingarea/.draw > > > > > > > > because it will also deal with needs to redraw that come from outside the > > > > application i.e.other applications' windows that were partially > > > > overlapping. Have a look at the "Analog Watch" example. > > > > > > Werner is right but, perhaps, you can still get what you want if you set > > > the "Cached" property of the DrawingArea. > > > By setting that property, the DrawingArea repaints automatically itself > > > when needed; whether to go this way or the other depends on several > > > factors: dimension of the drawing, complexity of the drawing, complexity > > > of the code needed to remember what to draw... > > > > > > I suppose that the main difference between the two methods is this. If > > > you use the Cached property, your code can update the drawing when it > > > wants; the result is a cached bitmap that can consume a lot of memory, > > > but still is a simple bitmap. This is the easiest way. If you don't use > > > the Cached property, your code to update the drawing is called every > > > time the DrawingArea "unveals". If this code is fast, then this method > > > is better. However, this second method is a little more complicated to > > > understand: when the program, asynchronously, wants to change the > > > appearance, it can Draw() directly, > > > > You cannot draw directly on a DrawingArea if it is not cached (even if it > > actually allowed at the moment). > > > > Drawing must be done inside the Draw event only. > > > > If you need to refresh the DrawingArea, you must call its Refresh() method. > > > > When the DrawingArea is cached, it maintain a pixmap cache (like a Picture > > object), so you can draw inside it whenever you want. > > > > Regards, > > > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From doriano.blengino at ...1909... Sat Sep 6 10:47:11 2008 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Sat, 06 Sep 2008 10:47:11 +0200 Subject: [Gambas-user] Maybe a bug in how Gambas manages open DB connections In-Reply-To: <61452b690809051600l559afd51ne50d6a18555e2f19@...627...> References: <48C10B15.3000706@...1237...> <200809051402.45708.gambas@...1...> <48C1A69C.5070505@...1237...> <61452b690809051528x166b831crc1a9bc875fcde404@...627...> <61452b690809051600l559afd51ne50d6a18555e2f19@...627...> Message-ID: <48C2438F.9040002@...1909...> Kari Laine ha scritto: > Hi again, > > now I think I understand what the problem is - I did notice it straight away > because I had only 1 record on both tables. I do not get any error from the > Gambas but the Risultato.movefirst has no effect. It returns the record that > was searched for in the first place in Risultato = > Connessione.Find("asiakas", "id=&1", Trim(TextBox1.Text)) > > Also I have stupid question result.movefirst should return a boolean how I > can store that? > dim firstOk as Boolean > firstOK = result.movefirst gives an error - I know this is stupid question. > You get a message like "Wanted boolean, got function", right? I think the problem is solved like this: firstOK = result.movefirst() ' trailing "()", like C The parentheses are required to tell gambas that result.movefirst has to be called/executed, instead of simply take its address in memory. They are not always required, because in other situations the compiler can understand by itself what to do with a function name. Cheers, Doriano. From gambas at ...1... Sat Sep 6 10:52:13 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 6 Sep 2008 10:52:13 +0200 Subject: [Gambas-user] =?iso-8859-1?q?Maybe_a_bug_in_how_Gambas_manages_op?= =?iso-8859-1?q?en_DB=09connections?= In-Reply-To: <48C1A69C.5070505@...1237...> References: <48C10B15.3000706@...1237...> <200809051402.45708.gambas@...1...> <48C1A69C.5070505@...1237...> Message-ID: <200809061052.13673.gambas@...1...> On vendredi 05 septembre 2008, Leonardo Miliani wrote: > > Ops.... I forgot the version: 2.8.1, but got the same error with > previous versions 2.8 and, if I remember correctly, 2.7. Then please post the actual code that shows your problem. Thanks. -- Benoit Minisini From doriano.blengino at ...1909... Sat Sep 6 11:13:23 2008 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Sat, 06 Sep 2008 11:13:23 +0200 Subject: [Gambas-user] Multi threaded apps In-Reply-To: <200809052015.38459.pinozollo@...626...> References: <48C1A650.9070107@...1400...> <20080905225803.M68317@...951...> <200809052015.38459.pinozollo@...626...> Message-ID: <48C249B3.9040603@...1909...> Pino Zollo ha scritto: > Alle 19:11, venerd? 5 settembre 2008, nando ha scritto: > >> This thread would cease to exist when the SUB is completed. >> The main thread continues processing along side this one. >> >> The interpreter would have to switch running threads regularly. >> > > I guess that there should be many instances of the interpreter, one for > thread. Hope the interpreter is light enough ! > Very nice and usefull to have ! > Threads share their dataspace (otherwise they are no more threads, but processes instead). If two or more interpreters share the same data, then a lot of problem arise - the whole event system breaks, because there is concurrent access to the same structured data which, at a certain point, can loose its integrity (both the data structures managed internally by gambas, and the user ones...). If we want threads, then we also have to use locks, semaphores, priorities and other difficult things. Nando's idea is a lot easier to put in practice: at least, internal data structures are safe, but still is a big task. Then, the user gets a lot of responsabilities... what if, while one thread uses a FOR EACH on a collection, another thread deletes it?. I think the easiest way is to have an "Idle event" - an event fired everytime there is nothing else to do. In the Idle event handler, one can run many background jobs. May be this is already possible using a timer with very short interval (zero?), but this is not the intended usage of timers. Happy coding to all, Doriano Blengino From gambas at ...1... Sat Sep 6 12:10:34 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 6 Sep 2008 12:10:34 +0200 Subject: [Gambas-user] Multi threaded apps In-Reply-To: <48C249B3.9040603@...1909...> References: <48C1A650.9070107@...1400...> <200809052015.38459.pinozollo@...626...> <48C249B3.9040603@...1909...> Message-ID: <200809061210.34372.gambas@...1...> On samedi 06 septembre 2008, Doriano Blengino wrote: > Pino Zollo ha scritto: > > Alle 19:11, venerd? 5 settembre 2008, nando ha scritto: > >> This thread would cease to exist when the SUB is completed. > >> The main thread continues processing along side this one. > >> > >> The interpreter would have to switch running threads regularly. > > > > I guess that there should be many instances of the interpreter, one for > > thread. Hope the interpreter is light enough ! > > Very nice and usefull to have ! > > Threads share their dataspace (otherwise they are no more threads, but > processes instead). If two or more interpreters share the same data, > then a lot of problem arise - the whole event system breaks, because > there is concurrent access to the same structured data which, at a > certain point, can loose its integrity (both the data structures managed > internally by gambas, and the user ones...). If we want threads, then we > also have to use locks, semaphores, priorities and other difficult > things. Nando's idea is a lot easier to put in practice: at least, > internal data structures are safe, but still is a big task. Then, the > user gets a lot of responsabilities... what if, while one thread uses a > FOR EACH on a collection, another thread deletes it?. > > I think the easiest way is to have an "Idle event" - an event fired > everytime there is nothing else to do. In the Idle event handler, one > can run many background jobs. May be this is already possible using a > timer with very short interval (zero?), but this is not the intended > usage of timers. > > > Happy coding to all, > Doriano Blengino > > Gambas interpreter was not designed to be multi-threaded at all. What sort of background process people want to do during their application? I never had such a need. Regards, -- Benoit Minisini From klaine8 at ...626... Sat Sep 6 13:14:20 2008 From: klaine8 at ...626... (Kari Laine) Date: Sat, 6 Sep 2008 14:14:20 +0300 Subject: [Gambas-user] Maybe a bug in how Gambas manages open DB connections In-Reply-To: <200809061052.13673.gambas@...1...> References: <48C10B15.3000706@...1237...> <200809051402.45708.gambas@...1...> <48C1A69C.5070505@...1237...> <200809061052.13673.gambas@...1...> Message-ID: <61452b690809060414i5df266c8u128fb23d40ad2029@...627...> Not the original poster, but I got interested of this. I can't get movefirst() to work. If I first search a record by using Connessione.Find(........................) TextBox2.Text = Risultato!nimi give the right field Then I make Risultato.MoveFirst() TextBox3.Text = Risultato!nimi does not give the nimi-field of the first record - it gives the one in the previous step. Do I have to somehow refresh something before using it? Best Regards Kari Laine From ron at ...1740... Sat Sep 6 13:15:43 2008 From: ron at ...1740... (Ron) Date: Sat, 06 Sep 2008 13:15:43 +0200 Subject: [Gambas-user] Multi threaded apps In-Reply-To: <200809061210.34372.gambas@...1...> References: <48C1A650.9070107@...1400...> <200809052015.38459.pinozollo@...626...> <48C249B3.9040603@...1909...> <200809061210.34372.gambas@...1...> Message-ID: <48C2665F.8090400@...1740...> Benoit Minisini schreef: > On samedi 06 septembre 2008, Doriano Blengino wrote: > >> Pino Zollo ha scritto: >> >>> Alle 19:11, venerd? 5 settembre 2008, nando ha scritto: >>> >>>> This thread would cease to exist when the SUB is completed. >>>> The main thread continues processing along side this one. >>>> >>>> The interpreter would have to switch running threads regularly. >>>> >>> I guess that there should be many instances of the interpreter, one for >>> thread. Hope the interpreter is light enough ! >>> Very nice and usefull to have ! >>> >> Threads share their dataspace (otherwise they are no more threads, but >> processes instead). If two or more interpreters share the same data, >> then a lot of problem arise - the whole event system breaks, because >> there is concurrent access to the same structured data which, at a >> certain point, can loose its integrity (both the data structures managed >> internally by gambas, and the user ones...). If we want threads, then we >> also have to use locks, semaphores, priorities and other difficult >> things. Nando's idea is a lot easier to put in practice: at least, >> internal data structures are safe, but still is a big task. Then, the >> user gets a lot of responsabilities... what if, while one thread uses a >> FOR EACH on a collection, another thread deletes it?. >> >> I think the easiest way is to have an "Idle event" - an event fired >> everytime there is nothing else to do. In the Idle event handler, one >> can run many background jobs. May be this is already possible using a >> timer with very short interval (zero?), but this is not the intended >> usage of timers. >> >> >> Happy coding to all, >> Doriano Blengino >> >> >> > > Gambas interpreter was not designed to be multi-threaded at all. > > What sort of background process people want to do during their application? I > never had such a need. > > Regards, > > My home automation program does a lot of things 'at the same time' To give you an idea what it does already: parse and writing sensor (now about 50) data to a mysql database, like temp, humid, door/window open close, dark/light etc saving selected sensor data to rrdtool databases, and create rrdtool graphs of sensor data have several sockets open, like rfxcom receiver (receives and process sensor data) asterisk api socket (gets phone call status), and logs missed calls hddtemp socket, gets harddrive temps, upsd socket, gets ups stats like status and mains voltage have a main loop running every 250mS to calculate things and runs scripts to process data and set vars like season, sunrise, moonphase every second, minute, hour, year depending on type. so i can start things only if a new_minute is active for example scans for my bluetooth devices to see if i'm at home (wip) reads several serial interfaces (1-wire sensors, gps, sms modem etc) gui handling for managing sensor devices etc fetch rss feed it also has a small webserver buildin, to look at program data over the internet, but haven't got it to run 100% ok yet it grabs camera captures when mailbox sensor is activated. what i need to add, is an xmlrpc server (if I only knew how this component works) anyone has a code snippet? an event scheduler stored in mysql table, for scheduled events like, lamp on of every evening (now hardcoded) some data input is triggered because the device sends it every now and then, some data is polled for every x seconds so for some parts multi-threading would be a bless... but it's now still a single user standalone program, i could/should take it apart, and get the logging part seperate (server), from the gui part (client) Regards, Ron_2nd From doriano.blengino at ...1909... Sat Sep 6 14:08:01 2008 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Sat, 06 Sep 2008 14:08:01 +0200 Subject: [Gambas-user] Multi threaded apps In-Reply-To: <200809061210.34372.gambas@...1...> References: <48C1A650.9070107@...1400...> <200809052015.38459.pinozollo@...626...> <48C249B3.9040603@...1909...> <200809061210.34372.gambas@...1...> Message-ID: <48C272A1.8010101@...1909...> Benoit Minisini ha scritto: > On samedi 06 septembre 2008, Doriano Blengino wrote: > >> Pino Zollo ha scritto: >> >>> Alle 19:11, venerd? 5 settembre 2008, nando ha scritto: >>> >>>> This thread would cease to exist when the SUB is completed. >>>> The main thread continues processing along side this one. >>>> >>>> The interpreter would have to switch running threads regularly. >>>> >>> I guess that there should be many instances of the interpreter, one for >>> thread. Hope the interpreter is light enough ! >>> Very nice and usefull to have ! >>> >> I think the easiest way is to have an "Idle event" - an event fired >> everytime there is nothing else to do. In the Idle event handler, one >> can run many background jobs. May be this is already possible using a >> timer with very short interval (zero?), but this is not the intended >> usage of timers. >> >> >> Happy coding to all, >> Doriano Blengino >> >> >> > > Gambas interpreter was not designed to be multi-threaded at all. > > What sort of background process people want to do during their application? I > never had such a need. > It depends on what kind of applications you develop. I speak only for myself but, in general, a problem arises every time you want to do some sort of background process where you want all the power the CPU has, but without sacrificing the application responsiveness to user input. For example, I made some time ago a picture viewer able to open a disk directory, show thumbnails of pictures inside it, and let the user click on a thumbnail to view the full image. If a user selects a directory having thousands pictures in it, he simply cannot wait until all the thumbnails are made - this can take several seconds or minutes. So, while creating thumbnails, the program must respond to user input - the thumbnails creation is a background process. The program tries to create the thumbnails the user can see - if the user scrolls the listview down, the program gives up what it was doing before, and starts to analyze the pictures from the first item now visible in the list. If the user changes directory, the file list is refreshed and the whole thing restarts. Now, this problem could be solved in gambas by implementing a loop for the thumbnail creation, with a WAIT inside it to let the program catch user input, but this reverses in some way the whole idea: the foreground process, in this case, would be the creation of thumbnails, expressed with some sort of cycle. Written like this, the program never leaves this cycle - until the thumbnails are finished, of course. In another occasion, I wrote a kind of file manager (ftp client, to be precise), which copied files in background. When the user wanted to copy a file, the request was appended to a job queue; the background process consumed up the queue, one file at a time. Simple and clean, this is the beauty of background. Again, it could be done in gambas too, but reversing the concept. But this is not all, about multitask. The two examples were only about background tasks, not true multitasking. But now the things get much more complicated... Regards, Doriano Blengino From girardhenri at ...67... Sat Sep 6 18:33:41 2008 From: girardhenri at ...67... (Henri Girard) Date: Sat, 6 Sep 2008 18:33:41 +0200 Subject: [Gambas-user] Maybe a bug in how Gambas manages openDB connections References: <48C10B15.3000706@...1237...><200809051402.45708.gambas@...1...> <48C1A662.5000109@...1237...> Message-ID: ----- Original Message ----- From: "Leonardo Miliani" To: "mailing list for gambas users" Sent: Friday, September 05, 2008 11:36 PM Subject: Re: [Gambas-user] Maybe a bug in how Gambas manages openDB connections Benoit Minisini ha scritto: > On vendredi 05 septembre 2008, Leonardo Miliani wrote: >> I would like to get your attention on what I think is a bug of how >> Gambas manages open DB connections. >> >> In a project of mine, I manage 2 connections to a MySQL DB. >> In a form of that project I open the first connection and get a result >> with the Connection.Find() method; then, I open the second connection. >> After this, if I try to make another operation on the first connection I >> get an "Invalid object" error. >> It seems that Gambas, when it opens the second connection, deletes all >> the old ones so it has no more references to other connections but the >> last one. >> >> Example code: >> PRIVATE Connessione AS NEW Connection >> PRIVATE Risultato AS Result >> >> PUBLIC SUB Form_Open() >> WITH Connessione >> .Name = MySQL.NomeDB >> .Type = "mysql" >> .User = MySQL.Utente >> .Password = MySQL.Password >> .Host = MySQL.Host >> .Open >> END WITH >> END >> >> PUBLIC SUB btnCercaTarga_Click() >> DIM Connessione AS NEW Connection >> DIM Connessione2 AS NEW Connection >> DIM Risultato AS Result >> DIM Risultato2 AS Result >> >> Risultato = Connessione.Find("auto", "targa=&1", Trim(txtTarga.Text)) >> IF Risultato.Available = FALSE THEN >> RETURN >> END IF >> >> WITH Connessione2 >> .Name = MySQL.NomeDB >> .Type = "mysql" >> .User = MySQL.Utente >> .Password = MySQL.Password >> .Host = MySQL.Host >> .Open >> END WITH >> >> Risultato.MoveFirst ** <--------------- Here I get the error ** >> [...] >> >> >> To solve this, I had to call the Connection.Find() method another time >> before to access to the Result class. > > I cannot reproduce the problem with your code. Which version of Gambas do > you > use? > > Note that your code is incorrect anyway: you declare a new connection > object > is a local variable named Connessione in btnCercaTarga_Click which > overrides > the global variable with the same name, and that connection object is not > initialized. > > REgards, > Sorry. I mixed two examples, one with the Connection "Connessione" declared as global and one with the connection declared as local because I was testing the two different ways. But nothing changed for me, I got the same error with both of the cases. Otherwise, the first call to Connessione.Find: Risultato = Connessione.Find("auto", "targa=&1", Trim(txtTarga.Text) works fine; but after I open the second connection, the new attempt to access the first connection give me back that error. -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Scegli software opensource - Choose opensource software Co-fondatore di Gambas-it.org Il sito di riferimento della comunit? italiana degli utenti di Gambas www.gambas-it.org ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Sat Sep 6 18:47:19 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 6 Sep 2008 18:47:19 +0200 Subject: [Gambas-user] Maybe a bug in how Gambas manages open DB connections In-Reply-To: <61452b690809060414i5df266c8u128fb23d40ad2029@...627...> References: <48C10B15.3000706@...1237...> <200809061052.13673.gambas@...1...> <61452b690809060414i5df266c8u128fb23d40ad2029@...627...> Message-ID: <200809061847.19281.gambas@...1...> On samedi 06 septembre 2008, Kari Laine wrote: > Not the original poster, > > but I got interested of this. I can't get movefirst() to work. > > If I first search a record by using > Connessione.Find(........................) > > TextBox2.Text = Risultato!nimi give the right field > > Then I make Risultato.MoveFirst() > > > TextBox3.Text = Risultato!nimi does not give the nimi-field of the first > record - it gives the one in the previous step. > > Do I have to somehow refresh something before using it? > > Best Regards > Kari Laine Can you provide a project that shows the behaviour you are describing? Thanks in advance. Regards, -- Benoit Minisini From girardhenri at ...67... Sat Sep 6 18:55:47 2008 From: girardhenri at ...67... (Henri Girard) Date: Sat, 6 Sep 2008 16:55:47 +0000 Subject: [Gambas-user] gambas2 64 bits Message-ID: Hi I am running intrepid and i would like to compile gambas. can someone send me a script to compile on 64 bits or have a link to get it working on kubuntu intrepid thanks Henri _________________________________________________________________ Email envoy? avec Windows Live Hotmail. Dites adieux aux spam et virus, passez ? Hotmail?! C'est gratuit ! http://www.windowslive.fr/hotmail/default.asp From lordheavym at ...626... Sat Sep 6 19:06:47 2008 From: lordheavym at ...626... (Laurent Carlier) Date: Sat, 6 Sep 2008 19:06:47 +0200 Subject: [Gambas-user] gambas2 64 bits In-Reply-To: References: Message-ID: <200809061906.47646.lordheavym@...626...> Le samedi 06 septembre 2008 18:55:47 Henri Girard, vous avez ?crit : > Hi > I am running intrepid and i would like to compile gambas. can someone send > me a script to compile on 64 bits or have a link to get it working on > kubuntu intrepid > thanks > Henri > _________________________________________________________________ > Email envoy? avec Windows Live Hotmail. Dites adieux aux spam et virus, > passez ? Hotmail?! C'est gratuit ! > http://www.windowslive.fr/hotmail/default.asp > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge Build the coolest Linux based applications with Moblin SDK & win > great prizes Grand prize is a trip for two to an Open Source event anywhere > in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user It's the same as in 32 bits. Here i'm running debian sid 64 on a desktop and a laptop with gambas 2 & 3. Regards, From klaine8 at ...626... Sat Sep 6 19:16:38 2008 From: klaine8 at ...626... (Kari Laine) Date: Sat, 6 Sep 2008 20:16:38 +0300 Subject: [Gambas-user] Maybe a bug in how Gambas manages open DB connections In-Reply-To: <200809061847.19281.gambas@...1...> References: <48C10B15.3000706@...1237...> <200809061052.13673.gambas@...1...> <61452b690809060414i5df266c8u128fb23d40ad2029@...627...> <200809061847.19281.gambas@...1...> Message-ID: <61452b690809061016u60395802m5cf9b0a9a090f93b@...627...> > > > Can you provide a project that shows the behaviour you are describing? > > Thanks in advance. > > Regards, > > -- > Benoit Minisini > > Thanks for interest. Here it is. There is database_script directory where is script to create database laskutus. When you test the program insert 1,2,3 to textbox1 and press the button. Best Regards Kari Laine -------------- next part -------------- A non-text attachment was scrubbed... Name: databasetest1.tar.gz Type: application/x-gzip Size: 10033 bytes Desc: not available URL: From gambas at ...1... Sat Sep 6 20:04:11 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 6 Sep 2008 20:04:11 +0200 Subject: [Gambas-user] Maybe a bug in how Gambas manages open DB connections In-Reply-To: <61452b690809061016u60395802m5cf9b0a9a090f93b@...627...> References: <48C10B15.3000706@...1237...> <200809061847.19281.gambas@...1...> <61452b690809061016u60395802m5cf9b0a9a090f93b@...627...> Message-ID: <200809062004.11733.gambas@...1...> On samedi 06 septembre 2008, Kari Laine wrote: > > Can you provide a project that shows the behaviour you are describing? > > > > Thanks in advance. > > > > Regards, > > > > -- > > Benoit Minisini > > > > Thanks for interest. > > Here it is. There is database_script directory where is script to create > database laskutus. > When you test the program insert 1,2,3 to textbox1 and press the button. > > Best Regards > Kari Laine I don't see any bug: there is only one record in your Result object, so how can MoveFirst() go to another record that the only one present in the Result object? -- Benoit Minisini From girardhenri at ...67... Sat Sep 6 20:41:05 2008 From: girardhenri at ...67... (Henri Girard) Date: Sat, 6 Sep 2008 18:41:05 +0000 Subject: [Gambas-user] gambas2 64 bits In-Reply-To: <200809061906.47646.lordheavym@...626...> References: <200809061906.47646.lordheavym@...626...> Message-ID: Kubuntu intrepid gambas2 is broken i remember i got that script from gambas.it maintener if he could send it back to me i could compile ---------------------------------------- > From: lordheavym at ...626... > To: gambas-user at lists.sourceforge.net > Date: Sat, 6 Sep 2008 19:06:47 +0200 > Subject: Re: [Gambas-user] gambas2 64 bits > > Le samedi 06 septembre 2008 18:55:47 Henri Girard, vous avez ?crit : >> Hi >> I am running intrepid and i would like to compile gambas. can someone send >> me a script to compile on 64 bits or have a link to get it working on >> kubuntu intrepid >> thanks >> Henri >> _________________________________________________________________ >> Email envoy? avec Windows Live Hotmail. Dites adieux aux spam et virus, >> passez ? Hotmail ! C'est gratuit ! >> http://www.windowslive.fr/hotmail/default.asp >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move Developer's >> challenge Build the coolest Linux based applications with Moblin SDK & win >> great prizes Grand prize is a trip for two to an Open Source event anywhere >> in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > It's the same as in 32 bits. Here i'm running debian sid 64 on a desktop and a > laptop with gambas 2 & 3. > > Regards, > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user _________________________________________________________________ T?l?phonez gratuitement ? tous vos proches avec Windows Live Messenger? !? T?l?chargez-le maintenant !? http://www.windowslive.fr/messenger/1.asp From klaine8 at ...626... Sat Sep 6 22:18:32 2008 From: klaine8 at ...626... (Kari Laine) Date: Sat, 6 Sep 2008 23:18:32 +0300 Subject: [Gambas-user] Maybe a bug in how Gambas manages open DB connections In-Reply-To: <200809062004.11733.gambas@...1...> References: <48C10B15.3000706@...1237...> <200809061847.19281.gambas@...1...> <61452b690809061016u60395802m5cf9b0a9a090f93b@...627...> <200809062004.11733.gambas@...1...> Message-ID: <61452b690809061318l4b96c83epdf8035cc7ba6b44f@...627...> Sorry my bad. Kari On Sat, Sep 6, 2008 at 9:04 PM, Benoit Minisini < gambas at ...1...> wrote: > On samedi 06 septembre 2008, Kari Laine wrote: > > > Can you provide a project that shows the behaviour you are describing? > > > > > > Thanks in advance. > > > > > > Regards, > > > > > > -- > > > Benoit Minisini > > > > > > Thanks for interest. > > > > Here it is. There is database_script directory where is script to create > > database laskutus. > > When you test the program insert 1,2,3 to textbox1 and press the button. > > > > Best Regards > > Kari Laine > > I don't see any bug: there is only one record in your Result object, so how > can MoveFirst() go to another record that the only one present in the > Result > object? > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From pinozollo at ...626... Sat Sep 6 23:08:01 2008 From: pinozollo at ...626... (Pino Zollo) Date: Sat, 6 Sep 2008 17:08:01 -0400 Subject: [Gambas-user] Multi threaded apps In-Reply-To: <200809061210.34372.gambas@...1...> References: <48C1A650.9070107@...1400...> <48C249B3.9040603@...1909...> <200809061210.34372.gambas@...1...> Message-ID: <200809061708.03306.pinozollo@...626...> Alle 06:10, sabato 6 settembre 2008, Benoit Minisini ha scritto: > Gambas interpreter was not designed to be multi-threaded at all. > > What sort of background process people want to do during their application? > I never had such a need. When the applications does a lot of asynchronous input/output background processes simplify a lot the programmer's life and, possibly, the resilience of the full application. You can think to objects as hardware components interconnected like chips on the motherboard. Every one does his task and receives or sends data to other "objects" via a pipe in place of a copper wire. When tcp/ip is involved any new connection on the same address, the same piece of code is instantiated handling the new connection, letting the kernel the task of distributing the CPU power. Just for having a look to applications that use heavily multitasking (or multi threads), my old applications in Modula-3 are available on my site (http://www.qsl.net/zp4kfx/Linux ) How these features can be implemented in GAMBAS I do not know not having any idea about how it is implemented. At the time of CP/M (does somebody remember it ?) and when the Z80 was running a 4 MHz, a wonderfull programming language, named FORTH, had a good success and had a profound impact on my way of tinking programs...even now my gambas program is conceived with the same logic. The BASIC of the HP-85 did share the same style: Every line of BASIC code was compiled, like FORTH, as a sequence of addresses. The interpreter had just to call in sequence those addresses. In such a kind of BASIC multitasking is implemented easily. (In FORTH too). and....yes I started with punched cards ;-) Regards Pino From doriano.blengino at ...1909... Sun Sep 7 11:05:02 2008 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Sun, 07 Sep 2008 11:05:02 +0200 Subject: [Gambas-user] Multi threaded apps In-Reply-To: <200809061708.03306.pinozollo@...626...> References: <48C1A650.9070107@...1400...> <48C249B3.9040603@...1909...> <200809061210.34372.gambas@...1...> <200809061708.03306.pinozollo@...626...> Message-ID: <48C3993E.8060601@...1909...> Pino Zollo ha scritto: > Alle 06:10, sabato 6 settembre 2008, Benoit Minisini ha scritto: > >> Gambas interpreter was not designed to be multi-threaded at all. >> >> What sort of background process people want to do during their application? >> I never had such a need. >> > > When the applications does a lot of asynchronous input/output background > processes simplify a lot the programmer's life and, possibly, the resilience > of the full application. > > You can think to objects as hardware components interconnected like chips on > the motherboard. > Every one does his task and receives or sends data to other "objects" via a > pipe in place of a copper wire. > When tcp/ip is involved any new connection on the same address, the same piece > of code is instantiated handling the new connection, letting the kernel the > task of distributing the CPU power. > > Just for having a look to applications that use heavily multitasking (or multi > threads), my old applications in Modula-3 are available on my site > (http://www.qsl.net/zp4kfx/Linux ) > > How these features can be implemented in GAMBAS I do not know not having any > idea about how it is implemented. > > At the time of CP/M (does somebody remember it ?) and when the Z80 was running > a 4 MHz, a wonderfull programming language, named FORTH, had a good success > and had a profound impact on my way of tinking programs...even now my gambas > program is conceived with the same logic. > The BASIC of the HP-85 did share the same style: > Every line of BASIC code was compiled, like FORTH, as a sequence of addresses. > The interpreter had just to call in sequence those addresses. > > In such a kind of BASIC multitasking is implemented easily. (In FORTH too). > > and....yes I started with punched cards ;-) > Dear Pino, it is a pleasure for me to read about Z80, CP/M, Forth, HP-85 and so on. Like you, I started to program well before the PC was invented. But times are changed. Benoit is right when he says he never felt the need for multitasking; a correctly implemented event system can solve almost any problem. If you need a lot of TCP/IP sockets to keep running many connections, then you instantiate many "TCP socket object"s, with their event handler. When data arrive, the event handler sends reply. When data can be sended, another event handler is invoked, which sends data. No CPU time is wasted. The same can be done with files (not sure whether gambas can do non-blocking I/O on common files but, if it can not, it is another kind of problem). Modern approach is to eliminate polling and slow things, and replace them with events. Twenty years ago we did not have OOP and event driven applications. It is true that an advanced application can be written more easily having multithreading, but those advanced applications are very few, compared to the total number of application currently written in gambas. Asking for true multithreading is like asking for complex numbers: gambas does not have them, but still you can write an application which copes with them - this application will be more difficult to write, but will work pretty the same. Once again, I would say that multithreading is, in some way, in contrast with the event-driven paradigm. On the other hand, if gambas had multithreading, complex numbers, and other nice things, nobody would complain... Ciao, Doriano Blengino From garulfounix at ...626... Sun Sep 7 12:34:20 2008 From: garulfounix at ...626... (=?iso-8859-1?q?Fran=E7ois?=) Date: Sun, 7 Sep 2008 12:34:20 +0200 Subject: [Gambas-user] French mailing list is die ? Message-ID: <200809071234.20154.garulfounix@...626...> Hi Benoit, Since a long time, I find the french ML is empty. Is there a problem with it ? -- GarulfoUnix - Fran?ois Gallo (fr)Contributeur ? Gambas(Traductions, documentations, rapport de bugs...) (en)Gambas contributor(Translation, documentation, bugs report...and so on) From lordheavym at ...626... Sun Sep 7 12:38:54 2008 From: lordheavym at ...626... (Laurent Carlier) Date: Sun, 7 Sep 2008 12:38:54 +0200 Subject: [Gambas-user] French mailing list is die ? In-Reply-To: <200809071234.20154.garulfounix@...626...> References: <200809071234.20154.garulfounix@...626...> Message-ID: <200809071238.54829.lordheavym@...626...> Le dimanche 07 septembre 2008 12:34:20 Fran?ois, vous avez ?crit : > Hi Benoit, > > Since a long time, I find the french ML is empty. > Is there a problem with it ? Perhaps not a lot of people are posting their bugs/questions in the french ML ? It's a question of preference. With the EN mailing-list, you can touch more people. If you want you can post in the french ML, i can answer if i know the answer :-) There is many french people involved in gambas :-p A plus tard sur la liste fran?aise ! ++ From garulfounix at ...626... Sun Sep 7 12:45:17 2008 From: garulfounix at ...626... (=?iso-8859-1?q?Fran=E7ois?=) Date: Sun, 7 Sep 2008 12:45:17 +0200 Subject: [Gambas-user] French mailing list is die ? In-Reply-To: <200809071238.54829.lordheavym@...626...> References: <200809071234.20154.garulfounix@...626...> <200809071238.54829.lordheavym@...626...> Message-ID: <200809071245.17904.garulfounix@...626...> Le Sunday 07 September 2008 12:38:54 Laurent Carlier, vous avez ?crit?: > Le dimanche 07 septembre 2008 12:34:20 Fran?ois, vous avez ?crit : > > Hi Benoit, > > > > Since a long time, I find the french ML is empty. > > Is there a problem with it ? > > Perhaps not a lot of people are posting their bugs/questions in the french > ML ? It's a question of preference. With the EN mailing-list, you can touch > more people. > > If you want you can post in the french ML, i can answer if i know the > answer > > :-) > > There is many french people involved in gambas :-p > > A plus tard sur la liste fran?aise ! > > ++ > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge Build the coolest Linux based applications with Moblin SDK & win > great prizes Grand prize is a trip for two to an Open Source event anywhere > in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user lolo, if i'm asking that, it's because i already have report bugs but Benoit doesn't answer me (it's strange, though :) ) . Not really a lots messages at the moment. -- GarulfoUnix - Fran?ois Gallo (fr)Contributeur ? Gambas(Traductions, documentations, rapport de bugs...) (en)Gambas contributor(Translation, documentation, bugs report...and so on) From bundeshund at ...467... Sun Sep 7 14:05:22 2008 From: bundeshund at ...467... (Hans-Martin Bundeshund) Date: Sun, 7 Sep 2008 12:05:22 +0000 (GMT) Subject: [Gambas-user] Signal #11 Message-ID: <812172.5786.qm@...1967...> Hello all, i have an application running well with 2.7.0 but getting a signal#11 with 2.8.2 PUBLIC SUB ButtonPartner_Click() DIM hForm AS FPartnerStart signal#11 --> hForm = NEW FPartnerStart(BenutzerID) <-- signal#11 hForm.Show END As i get the error by creating a new form (what is designed with the gambas-ide) i thing there is 1 component that makes the trouble. But in this form i use a bunch of different component, so its not that simple to find out what will bring this error. Any suggestion how to find the guilty component? regards, HMB __________________________________________________ Do You Yahoo!? Sie sind Spam leid? Yahoo! Mail verf?gt ?ber einen herausragenden Schutz gegen Massenmails. http://mail.yahoo.com From bundeshund at ...467... Sun Sep 7 14:46:23 2008 From: bundeshund at ...467... (Hans-Martin) Date: Sun, 7 Sep 2008 14:46:23 +0200 Subject: [Gambas-user] Signal #11 In-Reply-To: <812172.5786.qm@...1967...> References: <812172.5786.qm@...1967...> Message-ID: <200809071446.24214.> Am Sonntag, 7. September 2008 14:05:22 schrieb Hans-Martin Bundeshund: > Hello all, > > i have an application running well with 2.7.0 but getting a signal#11 with > 2.8.2 > > PUBLIC SUB ButtonPartner_Click() > DIM hForm AS FPartnerStart > > signal#11 --> hForm = NEW FPartnerStart(BenutzerID) <-- signal#11 > hForm.Show > > END > > > As i get the error by creating a new form (what is designed with the > gambas-ide) i thing there is 1 component that makes the trouble. But in > this form i use a bunch of different component, so its not that simple to > find out what will bring this error. > > Any suggestion how to find the guilty component? > > regards, > HMB > hmm, i think its not a bad idea to post the FPartnerStart-form: # Gambas Form File 2.0 { Form Form MoveScaled(13.4444,4,97,77) Text = ("Partnerverwaltung") { EditImmerAn Menu NeuenPartnerAnlegen Name = "EditImmerAn" Text = ("") Shortcut = "F1" } { ButtonPartnerNeuanlage Button MoveScaled(3,0,20,3) Enabled = False ToolTip = ("Einen Neuen Partner anlegen") Text = ("Neuen Partner anlegen") } { ButtonPartnerAendern Button MoveScaled(25,0,13,3) Enabled = False ToolTip = ("Aktuellen Partner bearbeiten") Text = ("Partner \xC3\xA4ndern") } { ButtonPartnerSuchen Button MoveScaled(79,0,16,3) Enabled = False ToolTip = ("Nach einem Partner suchen.\nEs m\xC3\xBCssen minimum 3 Buch-\nstaben eingegeben werden.") Text = ("Partner anzeigen") } { TabStripPartner TabStrip MoveScaled(2,8,93,67) Enabled = False Font = Font["Bold"] AutoResize = True Count = 9 Index = 0 Text = ("Anschrift") Picture = Picture["editcopy.png"] { TextBoxName1 TextBox MoveScaled(15,1,77,3) Text = ("") ReadOnly = True MaxLength = 255 } { TextLabel1 TextLabel MoveScaled(2,1,11.4444,2.5556) ToolTip = ("Erste Zeile der Anschrift") Text = ("Name1") Alignment = Align.Right } { TextLabel2 TextLabel MoveScaled(2,5,11.4444,2.5556) ToolTip = ("Zweite Zeile der Anschrift") Text = ("Name2") Alignment = Align.Right } { TextBoxName2 TextBox MoveScaled(15,5,77,3) Text = ("") ReadOnly = True MaxLength = 255 } { TextLabel3 TextLabel MoveScaled(2,9,11.4444,2.5556) ToolTip = ("Dritte Zeile der Anschrift") AutoResize = True Text = ("Name3") Alignment = Align.Right } { TextBoxName3 TextBox MoveScaled(15,9,77,3) Text = ("") ReadOnly = True MaxLength = 255 } { TextLabel4 TextLabel MoveScaled(2,13,11.4444,2.5556) ToolTip = ("Stra\xC3\x9Fe der Anschrift") Text = ("Stra\xC3\x9Fe") Alignment = Align.Right } { TextBoxStrasse TextBox MoveScaled(15,13,51,3) Expand = True Text = ("") MaxLength = 255 } { TextBoxPF TextBox MoveScaled(72,13,20,3) Text = ("") ReadOnly = True MaxLength = 255 } { TextLabelPLZ TextLabel MoveScaled(2,17,11.4444,2.5556) ToolTip = ("Die PLZ zur Stra\xC3\x9Fenanschrift") Text = ("PLZ Stra\xC3\x9Fe") Alignment = Align.Right } { TextBoxPLZPF TextBox MoveScaled(72,17,20,3) ToolTip = ("Die Postleitzahl der Postfachs") Text = ("") ReadOnly = True MaxLength = 255 } { TextBoxPLZ TextBox MoveScaled(15,17,19,3) ToolTip = ("PLZ der Stra\xC3\x9Fenanschrift") Text = ("") ReadOnly = True MaxLength = 255 } { TextLabel6 TextLabel MoveScaled(9,21,4,2.5556) ToolTip = ("Der Ort der Anschrift") Text = ("Ort") Alignment = Align.Right } { TextBoxOrt TextBox MoveScaled(15,21,77,3) Text = ("") ReadOnly = True MaxLength = 255 } { TextLabel7 TextLabel MoveScaled(2,25,11.4444,2.5556) ToolTip = ("Das Land der Anschrift") Text = ("Land") Alignment = Align.Right } { TextBoxLand TextBox MoveScaled(15,25,77,3) Text = ("") ReadOnly = True MaxLength = 255 } { TextLabel8 TextLabel MoveScaled(1,32,13,2.5556) ToolTip = ("Telefonnummer der Zentrale") Text = ("Zentrale") Alignment = Align.Right } { TextLabel9 TextLabel MoveScaled(2,36,11.4444,2.5556) ToolTip = ("Die FAX-Nummer der Zentrale") Text = ("FAX") Alignment = Align.Right } { TextLabel10 TextLabel MoveScaled(64,53,10.5556,3.4444) ToolTip = ("Das Anlagedatum des Partners in der Datenbank") Text = ("Angelegt am") Alignment = Align.Right } { TextLabelEinstufung TextLabel MoveScaled(2,52,11.4444,3.4444) ToolTip = ("Einstufung/Beurteilung des Kunden") Text = ("Einstufung") Alignment = Align.Right } { TextBoxTelefonZentrale TextBox MoveScaled(15,32,35,3) Text = ("") ReadOnly = True MaxLength = 255 } { ButtonWeitereNummern Button MoveScaled(54,32,38,7) ToolTip = ("Anzeige/Pflege weiterer Nummern") Text = ("weitere Nummern") } { TextBoxFAX TextBox MoveScaled(15,36,35,3) Text = ("") ReadOnly = True MaxLength = 255 } { TextBoxAngelegtAm TextBox MoveScaled(76,53,12,3) Enabled = False Text = ("10.10.2006") ReadOnly = True } { TextLabel14 TextLabel MoveScaled(2,40,11.4444,2.5556) ToolTip = ("Die URL der Homepage") Text = ("Homepage") Alignment = Align.Right } { TextBoxHomepage TextBox MoveScaled(15,40,77,3) Text = ("") ReadOnly = True MaxLength = 255 } { PictureBoxAnschriftNeu PictureBox MoveScaled(7,58,2.5556,2.5556) Enabled = False ToolTip = ("Neue Anschrift erstellen") Picture = Picture["empty.png"] Stretch = True Alignment = Align.Center } { PictureBoxAnschriftOK PictureBox MoveScaled(44,58,2.5556,2.5556) Enabled = False ToolTip = ("Aktuelle Anschrift speichern") Picture = Picture["button_ok.png"] Stretch = True Alignment = Align.Center } { PictureBoxAnschriftCancle PictureBox MoveScaled(48,58,2.5556,2.5556) Enabled = False ToolTip = ("Aktuelle Anschrift verwerfen") Picture = Picture["button_cance.png"] Stretch = True Alignment = Align.Center } { PictureBoxAnschriftWeiter PictureBox MoveScaled(89,58,3.4444,2.5556) Visible = False Enabled = False ToolTip = ("N\xC3\xA4chste Anschrift") Picture = Picture["1rightarrow.png"] Stretch = True Alignment = Align.Center } { PictureBoxAnschriftZurueck PictureBox MoveScaled(0,58,3.4444,2.5556) Visible = False Enabled = False ToolTip = ("Vorherige Anschrift") Picture = Picture["1leftarrow.png"] Stretch = True Alignment = Align.Center } { TextLabel5 TextLabel MoveScaled(0,44,13,3) ToolTip = ("\xC3\x96ffnungzeiten und weitere zeitliche Eintr\xC3\xA4ge") Text = ("\xC3\x96ffnungszeiten") Alignment = Align.Right } { TextBoxOeffnungszeiten TextBox MoveScaled(15,44,77,3) Text = ("") ReadOnly = True MaxLength = 255 } { PictureBoxAnschriftEdit PictureBox MoveScaled(12,58,2.5556,2.5556) Enabled = False ToolTip = ("Aktuelle Anschrift \xC3\xA4ndern") Picture = Picture["edit.png"] Stretch = True Alignment = Align.Center } { SliderAnschriftStatus Slider MoveScaled(15,53,34.5556,1.6667) Enabled = False MinValue = -100 Step = 5 PageStep = 5 } { TextLabelAnschriftStatus TextLabel MoveScaled(50,52,11,4) Text = ("0 -- Neutral") Alignment = Align.Center } { ComboBoxAnschriftArt ComboBox MoveScaled(15,48,20,4) Text = ("") } { TextBoxBranche TextBox MoveScaled(62,48,30,4) Text = ("") ReadOnly = True MaxLength = 255 } { ButtonNeueArtAnlegen Button MoveScaled(38,48,9,4) Text = ("neue Art") } { PictureBoxAnschriftLoeschen PictureBox MoveScaled(69,57,3,4) Enabled = False ToolTip = ("Aktuelle Anschrift verwerfen") Picture = Picture["Bombe1.png"] Stretch = True Alignment = Align.Center } { TextLabel12 TextLabel MoveScaled(1,48,12,3) Text = ("AnschriftArt") Alignment = Align.Right } { TextLabel13 TextLabel MoveScaled(53,48,8,4) ToolTip = ("Die Branche des Partners") Text = ("Branche") Alignment = Align.Right } { TextLabel32 TextLabel MoveScaled(67,13,4,3) ToolTip = ("Die Nummer des Postfachs") Text = ("PF") Alignment = Align.Right } { TextLabel33 TextLabel MoveScaled(60,17,11.4444,2.5556) ToolTip = ("Die Postleitzahl der Postfachs") Text = ("PLZ PF") Alignment = Align.Right } { PictureBoxDrag PictureBox MoveScaled(81,58,4,3) Enabled = False Picture = Picture["bookmark.png"] Stretch = True } Index = 1 Text = ("Ansprechpartner") Picture = Picture["kontact_contacts.png"] { TextLabel20 TextLabel MoveScaled(0,0.7778,16,2.5556) ToolTip = ("Der Name des Ansprechpartners") Text = ("Name") Alignment = Align.Right } { ComboBoxSex ComboBox MoveScaled(16.7778,0.7778,8,2.5556) ToolTip = ("Bestimmen Sie das Geschlecht des Ansprechpartners") Text = ("Herr") List = [("Herr"), ("Frau")] } { TextBoxAnsprechpartnerName TextBox MoveScaled(25.6667,0.7778,66,3) ToolTip = ("Bitte geben Sie hier den Namen wie \neine Anrede ein, also z- B- \n'Herr Meisner' oder 'Herr Anton Burger'") Text = ("") ReadOnly = True MaxLength = 255 } { TextLabel21 TextLabel MoveScaled(3,5,13,2.5556) ToolTip = ("Die Telefon-Nummer des Ansprechpartners") Text = ("Telefon") Alignment = Align.Right } { TextBoxAnsprechpartnerTelefon TextBox MoveScaled(17,5,75,3) Text = ("") ReadOnly = True MaxLength = 255 } { TextLabel22 TextLabel MoveScaled(3,9,13,2.5556) ToolTip = ("Die Mobil/Handy-Nummer des Ansprechpartners") Text = ("Mobil") Alignment = Align.Right } { TextBoxAnsprechpartnerMobil TextBox MoveScaled(17,9,35,3) Text = ("") ReadOnly = True MaxLength = 255 } { TextLabel23 TextLabel MoveScaled(11,13,5,3) ToolTip = ("eMail-Adresse des Ansprechpartners") Text = ("eMail") Alignment = Align.Right } { TextBoxAnsprechpartnerEmail TextBox MoveScaled(17,13,75,3) Text = ("") ReadOnly = True MaxLength = 255 } { TextLabel24 TextLabel MoveScaled(3,17,13,2.5556) ToolTip = ("FAX-Nummer des Ansprechpartners") Text = ("FAX") Alignment = Align.Right } { TextBoxAnsprechpartnerFAX TextBox MoveScaled(17,17,35,3) Text = ("") ReadOnly = True MaxLength = 255 } { TextBoxAnsprechpartnerAbteilung TextBox MoveScaled(17,21,35,3) Text = ("") ReadOnly = True MaxLength = 255 } { TextBoxAnsprechpartnerVorG TextBox MoveScaled(67,21,25,3) ToolTip = ("Bitte geben Sie hier den Namen wie eine Anrede ein, also z- B- 'Herr Meisner' oder 'Herr Anton Burger'...") Text = ("") ReadOnly = True MaxLength = 255 } { TextBoxAnsprechpartnerFunktion TextBox MoveScaled(17,25,35,3) Text = ("") ReadOnly = True MaxLength = 255 } { PictureBoxAnsprechpartnerWeiter PictureBox MoveScaled(89,58,3.4444,2.5556) Visible = False Enabled = False ToolTip = ("n\xC3\xA4chster Ansprechpartner") Picture = Picture["1rightarrow.png"] Stretch = True Alignment = Align.Center } { PictureBoxAnsprechpartnerZurueck PictureBox MoveScaled(0,58,3.4444,2.5556) Visible = False Enabled = False ToolTip = ("vorheriger Ansprechpartner") Picture = Picture["1leftarrow.png"] Stretch = True Alignment = Align.Center } { PictureBoxAnsprechpartnerOK PictureBox MoveScaled(44,58,2.5556,2.5556) Enabled = False ToolTip = ("Eingabe speichern") Picture = Picture["button_ok.png"] Stretch = True Alignment = Align.Center } { PictureBoxAnsprechpartnerCancle PictureBox MoveScaled(48,58,2.5556,2.5556) Enabled = False ToolTip = ("Eingabe abbrechen") Picture = Picture["button_cance.png"] Stretch = True Alignment = Align.Center } { PictureBoxAnsprechpartnerNeu PictureBox MoveScaled(7,58,2.5556,2.5556) Enabled = False ToolTip = ("Neuen Ansprechpartner erstellen") Picture = Picture["empty.png"] Stretch = True Alignment = Align.Center } { TextLabelGebursttag TextLabel MoveScaled(3,29,13,3.4444) ToolTip = ("Geburtstagsdatum des Ansprechpartners") Text = ("Geburtstag") Alignment = Align.Right } { PictureBoxTorte PictureBox MoveScaled(41,29,4,3.4444) Enabled = False ToolTip = ("Hat Geburtstag") Picture = Picture["pink_cake.png"] Stretch = True } { TextLabel16 TextLabel MoveScaled(3,21,13,2.5556) ToolTip = ("Die Abteilung in der der Ansprechpartner arbeitet") Text = ("Abteilung") Alignment = Align.Right } { TextLabel17 TextLabel MoveScaled(3,25,13,2.5556) ToolTip = ("Beschreibt die Funktion/Stellung innerhalb der Firma") Text = ("Funktion") Alignment = Align.Right } { TextLabel18 TextLabel MoveScaled(54,21,12,2.5556) ToolTip = ("Den Namen des Vorgesetzten") Text = ("Vorgesetzter") Alignment = Align.Right } { PictureBoxAnsprechpartnerEdit PictureBox MoveScaled(12,58,2.5556,2.5556) Enabled = False ToolTip = ("Aktuelle Ansprechpartner \xC3\xA4ndern") Picture = Picture["edit.png"] Stretch = True Alignment = Align.Center } { PictureBoxeMailAnsprechpartner PictureBox MoveScaled(7,12,4,3.4444) Picture = Picture["eMail.png"] Stretch = True } { SpinBoxTag SpinBox MoveScaled(17,29,5,3) Tag = "Geburtstag" MinValue = 1 MaxValue = 31 } { SpinBoxMonat SpinBox MoveScaled(24,29,5,3) ToolTip = ("Geburtsmonat") MinValue = 1 MaxValue = 12 } { SpinBoxJahr SpinBox MoveScaled(31,29,7,3) ToolTip = ("Geburtsjahr") MinValue = 1 MaxValue = 9999 } { TextAreaAnsprechpartnerBemerkung TextArea MoveScaled(1,39,91,17) Text = ("") ReadOnly = True Wrap = True } { TextLabel30 TextLabel MoveScaled(22,29,2,3) Text = (".") Alignment = Align.Center } { TextLabel31 TextLabel MoveScaled(29,29,2,3) Text = (".") Alignment = Align.Center } { ButtonAktionen Button MoveScaled(17,34,35,4) ToolTip = ("Lassen Die den Ansprechpartner an Aktionen teilhaben oder pflegen Sie weitere Aktionen") Text = ("Aktionen") } Index = 2 Text = ("Funktionen") Picture = Picture["kontact_notes.png"] { PictureBox9 PictureBox MoveScaled(43.4444,32,2.5556,2.5556) Enabled = False Picture = Picture["button_ok.png"] Stretch = True Alignment = Align.Center } { PictureBox10 PictureBox MoveScaled(48.7778,32,2.5556,2.5556) Picture = Picture["button_cance.png"] Stretch = True Alignment = Align.Center } { PictureBox11 PictureBox MoveScaled(8,32,2.5556,2.5556) Picture = Picture["empty.png"] Stretch = True Alignment = Align.Center } { TabStrip1 TabStrip MoveScaled(1,1,90,56) Count = 3 Index = 0 Text = ("Sucht") { ListBoxSucht ListBox MoveScaled(0.7778,0.7778,88,51) } Index = 1 Text = ("Bietet") { ListBoxBietet ListBox MoveScaled(0.7778,0.7778,73.6667,39) } Index = 2 Text = ("Sonstiges") { ListBoxSonstiges ListBox MoveScaled(0.7778,0.7778,73.6667,39) } Index = 0 } { PictureBoxFunktionenNeu PictureBox MoveScaled(7,58,2.5556,2.5556) Enabled = False ToolTip = ("Neuen Eintrag anlegen") Picture = Picture["empty.png"] Stretch = True Alignment = Align.Center } { PictureBoxFunktionenEdit PictureBox MoveScaled(12,58,2.5556,2.5556) Enabled = False ToolTip = ("Aktuellen Eintrag \xC3\xA4ndern") Picture = Picture["edit.png"] Stretch = True Alignment = Align.Center } { PictureBoxFunktionenOK PictureBox MoveScaled(44,58,2.5556,2.5556) Enabled = False ToolTip = ("Eingabe beenden") Picture = Picture["button_ok.png"] Stretch = True Alignment = Align.Center } { PictureBoxFunktionenCancle PictureBox MoveScaled(48,58,2.5556,2.5556) Enabled = False ToolTip = ("Eingabe abbrechen") Picture = Picture["button_cance.png"] Stretch = True Alignment = Align.Center } Index = 3 Text = ("Historie") Picture = Picture["knewsticker.png"] { TextLabel11 TextLabel MoveScaled(31,-0.7778,0.7778,0.7778) Text = ("TextLabel11") } { PictureBoxHistorieNeu PictureBox MoveScaled(7,58,2.5556,2.5556) Enabled = False ToolTip = ("Neuen Historieneintrag anlegen") Picture = Picture["empty.png"] Stretch = True Alignment = Align.Center } { PictureBoxHistorieEdit PictureBox MoveScaled(12,58,2.5556,2.5556) Enabled = False ToolTip = ("Aktuellen Historieneintrag \xC3\xA4ndern") Picture = Picture["edit.png"] Stretch = True Alignment = Align.Center } { ListViewHistorie ListView MoveScaled(0.7778,0.7778,91,55) } Index = 4 Text = ("Auftr?ge") Picture = Picture["fileopen.png"] { PictureBoxAuftragNeu PictureBox MoveScaled(7,58,2.5556,2.5556) Enabled = False ToolTip = ("Neuen Auftrag anlegen") Picture = Picture["empty.png"] Stretch = True Alignment = Align.Center } { PictureBox2 PictureBox MoveScaled(12,58,2.5556,2.5556) Enabled = False ToolTip = ("Aktuellen Auftrag \xC3\xA4ndern") Picture = Picture["edit.png"] Stretch = True Alignment = Align.Center } { ListViewAuftrag ListView MoveScaled(1,2,91,55) } Index = 5 Text = ("Bemerkung") Picture = Picture["messagebox_info.png"] { TextAreaBemerkung TextArea MoveScaled(1,2,91,55) Text = ("") ReadOnly = True Wrap = True } { PictureBoxBemerkungCancle PictureBox MoveScaled(48,58,2.5556,2.5556) Enabled = False ToolTip = ("Eingabe abbrechen") Picture = Picture["button_cance.png"] Stretch = True Alignment = Align.Center } { PictureBoxBemerkungOK PictureBox MoveScaled(44,58,2.5556,2.5556) Enabled = False ToolTip = ("Bemerkung speichern") Picture = Picture["button_ok.png"] Stretch = True Alignment = Align.Center } { PictureBoxBemerkungNeu PictureBox MoveScaled(7,58,2.5556,2.5556) Enabled = False ToolTip = ("Neue Bemerkung anlegen") Picture = Picture["empty.png"] Stretch = True Alignment = Align.Center } { PictureBoxBemerkungEdit PictureBox MoveScaled(12,58,2.5556,2.5556) Enabled = False ToolTip = ("Aktuelle Bemerkung \xC3\xA4ndern") Picture = Picture["edit.png"] Stretch = True Alignment = Align.Center } Index = 6 Text = ("Bankverbindung") Picture = Picture["Dollar.png"] { PictureBoxBankverbindungWeiter PictureBox MoveScaled(89,58,3.4444,2.5556) Visible = False Enabled = False ToolTip = ("n\xC3\xA4chste Bankverbindung") Picture = Picture["1rightarrow.png"] Stretch = True Alignment = Align.Center } { PictureBoxBankverbindungZurueck PictureBox MoveScaled(0,58,3.4444,2.5556) Visible = False Enabled = False ToolTip = ("vorherige Bankverbindung") Picture = Picture["1leftarrow.png"] Stretch = True Alignment = Align.Center } { PictureBoxBankverbindungNeu PictureBox MoveScaled(7,58,2.5556,2.5556) Enabled = False ToolTip = ("Neue Bankvernindung anlegen") Picture = Picture["empty.png"] Stretch = True Alignment = Align.Center } { PictureBoxBankverbindungOK PictureBox MoveScaled(44,58,2.5556,2.5556) Enabled = False ToolTip = ("Bankverbindung speichern") Picture = Picture["button_ok.png"] Stretch = True Alignment = Align.Center } { PictureBoxBankverbindungCancle PictureBox MoveScaled(48,58,2.5556,2.5556) Enabled = False ToolTip = ("Eingabe abbrechen") Picture = Picture["button_cance.png"] Stretch = True Alignment = Align.Center } { TextLabel19 TextLabel MoveScaled(1,1,9.6667,2.5556) ToolTip = ("Name der Bank") Text = ("Bank") Alignment = Align.Right } { TextBoxKontoName TextBox MoveScaled(12,1,80,3) Text = ("") ReadOnly = True MaxLength = 255 } { TextLabel25 TextLabel MoveScaled(0,5,10.5556,2.5556) ToolTip = ("Konto-Nummer der Bankverbindung") Text = ("Konto-Nr.") Alignment = Align.Right } { TextBoxKontoNr TextBox MoveScaled(12,5,80,3) Text = ("") ReadOnly = True MaxLength = 255 } { ComboBoxWaehrung ComboBox MoveScaled(12,9,35,4) Text = (" ") ReadOnly = True } { TextLabel26 TextLabel MoveScaled(1,9,10,4) ToolTip = ("W\xC3\xA4hrung des Kontos") Text = ("W\xC3\xA4hrung") Alignment = Align.Right } { TextBoxBLZ TextBox MoveScaled(12,14,80,3) Text = ("") ReadOnly = True MaxLength = 255 } { TextLabel27 TextLabel MoveScaled(2,14,8.7778,2.5556) ToolTip = ("Bankleitzahl der Bankverbindung") Text = ("BLZ") Alignment = Align.Right } { TextLabel28 TextLabel MoveScaled(2,18,8.7778,2.5556) ToolTip = ("IBAN-Nummer der Bankverbindung") Text = ("IBAN") Alignment = Align.Right } { TextBoxIBAN TextBox MoveScaled(12,18,80,3) Text = ("") ReadOnly = True MaxLength = 255 } { TextLabel29 TextLabel MoveScaled(1,22,9.6667,2.5556) ToolTip = ("SWIFT-Nummer der Bankverbindung") Text = ("SWIFT") Alignment = Align.Right } { TextBoxSWIFT TextBox MoveScaled(12,22,80,3) Text = ("") ReadOnly = True MaxLength = 255 } { TextBoxWaehrungNeu TextBox MoveScaled(56,9,10,4) ToolTip = ("Hier k\xC3\xB6nnen neue W\xC3\xA4hrungseinheiten angelegt werden") Text = ("") ReadOnly = True MaxLength = 255 } { ButtonWaehrungNeu Button MoveScaled(67,9,24,4) Enabled = False ToolTip = ("Hier k\xC3\xB6nnen neue W\xC3\xA4hrungseinheiten angelegt werden") Text = ("neue W\xC3\xA4hrung hinzuf\xC3\xBCgen") } { PictureBoxBankverbindungEdit PictureBox MoveScaled(12,58,2.5556,2.5556) Enabled = False ToolTip = ("Aktuelle Bankverbindung \xC3\xA4ndern") Picture = Picture["edit.png"] Stretch = True Alignment = Align.Center } { TextAreaBankverbindungBemerkung TextArea MoveScaled(1,26,91,31) Text = ("TextArea1") ReadOnly = True } Index = 7 Text = ("Dokumente") Picture = Picture["package_editors.png"] { ListBoxDokumente ListBox MoveScaled(1,14,91,26) } { ComboBoxAuswahlDokumente ComboBox MoveScaled(1.6667,2.5556,90,3) Text = (" ") } { TextAreaDokuBemerkung TextArea MoveScaled(1,41,91,14) Text = ("") } { PictureBoxHinzufuegen PictureBox MoveScaled(2,7,5,5) ToolTip = ("Dokument einf\xC3\xBCgen") Picture = Picture["add.png"] Stretch = True } { PictureBoxLoeschen PictureBox MoveScaled(23,7,5,5) ToolTip = ("Dokument entfernen") Picture = Picture["stop.png"] Stretch = True } { ButtonNeu Button MoveScaled(10,8,10,4) ToolTip = ("Ein neues Dokument Verf\xC3\xBCgbar machen") Text = ("NEU") } { PictureBoxStarten PictureBox MoveScaled(42,7,6,5) ToolTip = ("ausgew\xC3\xA4hltes Dokument anzeigen/drucken") Picture = Picture["fileprint.png"] Stretch = True } { PictureBoxeMail PictureBox MoveScaled(33,7,5,5) ToolTip = ("ausgew\xC3\xA4hltes Dokument (Datei) an einen Ansprechpartner senden") Picture = Picture["eMail.png"] Stretch = True } Index = 8 Text = ("Export") { ButtonExportAnsprechpartner Button MoveScaled(5,3,43,5) Text = ("Exportiere alle Ansprechpartner") } { ButtonExportPartner Button MoveScaled(5,10,43,5) Enabled = False Text = ("Exportiere alle Partner") } { Button1 Button MoveScaled(5,17,43,6) Enabled = False Text = ("Exportiere alle Bankverbindungen") } { CheckBoxAuswahlAnsprechpartner CheckBox MoveScaled(51,4,18,3) Text = ("nach Auswahl") } { CheckBoxAuswahlPartner CheckBox MoveScaled(51,11,18,3) Enabled = False Text = ("nach Auswahl") } { CheckBoxAuswahlBank CheckBox MoveScaled(51,19,18,3) Enabled = False Text = ("nach Auswahl") } Index = 0 } { Timer1 #Timer #X = 230 #Y = 620 Delay = 10 } { TextLabel15 TextLabel MoveScaled(1.6667,4,8.7778,2) Font = Font["Bold"] Text = ("Partner") Alignment = Align.Center } { PictureBoxPartnerCancle PictureBox MoveScaled(39,0,4,4) Visible = False Enabled = False ToolTip = ("Aktuellen Partner verlassen") Picture = Picture["apply.png"] Stretch = True Alignment = Align.Center } { ComboBoxPartnerName ComboBox MoveScaled(11,4,84,3) ToolTip = ("'%ter' - findet alle Partner, die 'ter' im Namen haben\n'May' findet alle Partner, die mit 'May' anfangen") Drop = True Text = ("") } { ButtonPartnerLoeschen Button MoveScaled(44,0,16,3) Enabled = False ToolTip = ("Aktuellen Partner l\xC3\xB6schen") Text = ("Partner l\xC3\xB6schen") } { ButtonAlleSuche Button MoveScaled(65,0,12,3) ToolTip = ("Nach ALLEN Partner suchen.\nDiese Suche dauert unter Um-\nst\xC3\xA4nden etwas l\xC3\xA4nger.") Text = ("Alle Suchen") } { CheckBoxAlleSuchen CheckBox MoveScaled(63,0,2,3) ToolTip = ("Markieren Sie diese Box, um in allen relevanten Feldern \n(PartnerName, Anschrift, Ansprechpartner und mehr)\n zu suchen. \n\nDiese Suche ben\xC3\xB6tigt unter Umst\xC3\xA4nden etwas Zeit.") Text = ("") } { CheckBoxEditImmerAn CheckBox MoveScaled(1,0,2,3) ToolTip = ("Aktivieren, wenn Sie Massenverarbeitung t\xC3\xA4tigen wollen") Text = ("") } } From bundeshund at ...467... Sun Sep 7 14:48:27 2008 From: bundeshund at ...467... (Hans-Martin) Date: Sun, 7 Sep 2008 14:48:27 +0200 Subject: [Gambas-user] Signal #11 In-Reply-To: <812172.5786.qm@...1967...> References: <812172.5786.qm@...1967...> Message-ID: <200809071448.27704.bundeshund@...467...> Am Sonntag, 7. September 2008 14:05:22 schrieb Hans-Martin Bundeshund: > Hello all, > > i have an application running well with 2.7.0 but getting a signal#11 with > 2.8.2 > > PUBLIC SUB ButtonPartner_Click() > DIM hForm AS FPartnerStart > > signal#11 --> hForm = NEW FPartnerStart(BenutzerID) <-- signal#11 > hForm.Show > > END > > > As i get the error by creating a new form (what is designed with the > gambas-ide) i thing there is 1 component that makes the trouble. But in > this form i use a bunch of different component, so its not that simple to > find out what will bring this error. > > Any suggestion how to find the guilty component? > > regards, > HMB > hmm, i think it's not a bad idea to post the FPartnerStart-form: # Gambas Form File 2.0 { Form Form MoveScaled(13.4444,4,97,77) Text = ("Partnerverwaltung") { EditImmerAn Menu NeuenPartnerAnlegen Name = "EditImmerAn" Text = ("") Shortcut = "F1" } { ButtonPartnerNeuanlage Button MoveScaled(3,0,20,3) Enabled = False ToolTip = ("Einen Neuen Partner anlegen") Text = ("Neuen Partner anlegen") } { ButtonPartnerAendern Button MoveScaled(25,0,13,3) Enabled = False ToolTip = ("Aktuellen Partner bearbeiten") Text = ("Partner \xC3\xA4ndern") } { ButtonPartnerSuchen Button MoveScaled(79,0,16,3) Enabled = False ToolTip = ("Nach einem Partner suchen.\nEs m\xC3\xBCssen minimum 3 Buch-\nstaben eingegeben werden.") Text = ("Partner anzeigen") } { TabStripPartner TabStrip MoveScaled(2,8,93,67) Enabled = False Font = Font["Bold"] AutoResize = True Count = 9 Index = 0 Text = ("Anschrift") Picture = Picture["editcopy.png"] { TextBoxName1 TextBox MoveScaled(15,1,77,3) Text = ("") ReadOnly = True MaxLength = 255 } { TextLabel1 TextLabel MoveScaled(2,1,11.4444,2.5556) ToolTip = ("Erste Zeile der Anschrift") Text = ("Name1") Alignment = Align.Right } { TextLabel2 TextLabel MoveScaled(2,5,11.4444,2.5556) ToolTip = ("Zweite Zeile der Anschrift") Text = ("Name2") Alignment = Align.Right } { TextBoxName2 TextBox MoveScaled(15,5,77,3) Text = ("") ReadOnly = True MaxLength = 255 } { TextLabel3 TextLabel MoveScaled(2,9,11.4444,2.5556) ToolTip = ("Dritte Zeile der Anschrift") AutoResize = True Text = ("Name3") Alignment = Align.Right } { TextBoxName3 TextBox MoveScaled(15,9,77,3) Text = ("") ReadOnly = True MaxLength = 255 } { TextLabel4 TextLabel MoveScaled(2,13,11.4444,2.5556) ToolTip = ("Stra\xC3\x9Fe der Anschrift") Text = ("Stra\xC3\x9Fe") Alignment = Align.Right } { TextBoxStrasse TextBox MoveScaled(15,13,51,3) Expand = True Text = ("") MaxLength = 255 } { TextBoxPF TextBox MoveScaled(72,13,20,3) Text = ("") ReadOnly = True MaxLength = 255 } { TextLabelPLZ TextLabel MoveScaled(2,17,11.4444,2.5556) ToolTip = ("Die PLZ zur Stra\xC3\x9Fenanschrift") Text = ("PLZ Stra\xC3\x9Fe") Alignment = Align.Right } { TextBoxPLZPF TextBox MoveScaled(72,17,20,3) ToolTip = ("Die Postleitzahl der Postfachs") Text = ("") ReadOnly = True MaxLength = 255 } { TextBoxPLZ TextBox MoveScaled(15,17,19,3) ToolTip = ("PLZ der Stra\xC3\x9Fenanschrift") Text = ("") ReadOnly = True MaxLength = 255 } { TextLabel6 TextLabel MoveScaled(9,21,4,2.5556) ToolTip = ("Der Ort der Anschrift") Text = ("Ort") Alignment = Align.Right } { TextBoxOrt TextBox MoveScaled(15,21,77,3) Text = ("") ReadOnly = True MaxLength = 255 } { TextLabel7 TextLabel MoveScaled(2,25,11.4444,2.5556) ToolTip = ("Das Land der Anschrift") Text = ("Land") Alignment = Align.Right } { TextBoxLand TextBox MoveScaled(15,25,77,3) Text = ("") ReadOnly = True MaxLength = 255 } { TextLabel8 TextLabel MoveScaled(1,32,13,2.5556) ToolTip = ("Telefonnummer der Zentrale") Text = ("Zentrale") Alignment = Align.Right } { TextLabel9 TextLabel MoveScaled(2,36,11.4444,2.5556) ToolTip = ("Die FAX-Nummer der Zentrale") Text = ("FAX") Alignment = Align.Right } { TextLabel10 TextLabel MoveScaled(64,53,10.5556,3.4444) ToolTip = ("Das Anlagedatum des Partners in der Datenbank") Text = ("Angelegt am") Alignment = Align.Right } { TextLabelEinstufung TextLabel MoveScaled(2,52,11.4444,3.4444) ToolTip = ("Einstufung/Beurteilung des Kunden") Text = ("Einstufung") Alignment = Align.Right } { TextBoxTelefonZentrale TextBox MoveScaled(15,32,35,3) Text = ("") ReadOnly = True MaxLength = 255 } { ButtonWeitereNummern Button MoveScaled(54,32,38,7) ToolTip = ("Anzeige/Pflege weiterer Nummern") Text = ("weitere Nummern") } { TextBoxFAX TextBox MoveScaled(15,36,35,3) Text = ("") ReadOnly = True MaxLength = 255 } { TextBoxAngelegtAm TextBox MoveScaled(76,53,12,3) Enabled = False Text = ("10.10.2006") ReadOnly = True } { TextLabel14 TextLabel MoveScaled(2,40,11.4444,2.5556) ToolTip = ("Die URL der Homepage") Text = ("Homepage") Alignment = Align.Right } { TextBoxHomepage TextBox MoveScaled(15,40,77,3) Text = ("") ReadOnly = True MaxLength = 255 } { PictureBoxAnschriftNeu PictureBox MoveScaled(7,58,2.5556,2.5556) Enabled = False ToolTip = ("Neue Anschrift erstellen") Picture = Picture["empty.png"] Stretch = True Alignment = Align.Center } { PictureBoxAnschriftOK PictureBox MoveScaled(44,58,2.5556,2.5556) Enabled = False ToolTip = ("Aktuelle Anschrift speichern") Picture = Picture["button_ok.png"] Stretch = True Alignment = Align.Center } { PictureBoxAnschriftCancle PictureBox MoveScaled(48,58,2.5556,2.5556) Enabled = False ToolTip = ("Aktuelle Anschrift verwerfen") Picture = Picture["button_cance.png"] Stretch = True Alignment = Align.Center } { PictureBoxAnschriftWeiter PictureBox MoveScaled(89,58,3.4444,2.5556) Visible = False Enabled = False ToolTip = ("N\xC3\xA4chste Anschrift") Picture = Picture["1rightarrow.png"] Stretch = True Alignment = Align.Center } { PictureBoxAnschriftZurueck PictureBox MoveScaled(0,58,3.4444,2.5556) Visible = False Enabled = False ToolTip = ("Vorherige Anschrift") Picture = Picture["1leftarrow.png"] Stretch = True Alignment = Align.Center } { TextLabel5 TextLabel MoveScaled(0,44,13,3) ToolTip = ("\xC3\x96ffnungzeiten und weitere zeitliche Eintr\xC3\xA4ge") Text = ("\xC3\x96ffnungszeiten") Alignment = Align.Right } { TextBoxOeffnungszeiten TextBox MoveScaled(15,44,77,3) Text = ("") ReadOnly = True MaxLength = 255 } { PictureBoxAnschriftEdit PictureBox MoveScaled(12,58,2.5556,2.5556) Enabled = False ToolTip = ("Aktuelle Anschrift \xC3\xA4ndern") Picture = Picture["edit.png"] Stretch = True Alignment = Align.Center } { SliderAnschriftStatus Slider MoveScaled(15,53,34.5556,1.6667) Enabled = False MinValue = -100 Step = 5 PageStep = 5 } { TextLabelAnschriftStatus TextLabel MoveScaled(50,52,11,4) Text = ("0 -- Neutral") Alignment = Align.Center } { ComboBoxAnschriftArt ComboBox MoveScaled(15,48,20,4) Text = ("") } { TextBoxBranche TextBox MoveScaled(62,48,30,4) Text = ("") ReadOnly = True MaxLength = 255 } { ButtonNeueArtAnlegen Button MoveScaled(38,48,9,4) Text = ("neue Art") } { PictureBoxAnschriftLoeschen PictureBox MoveScaled(69,57,3,4) Enabled = False ToolTip = ("Aktuelle Anschrift verwerfen") Picture = Picture["Bombe1.png"] Stretch = True Alignment = Align.Center } { TextLabel12 TextLabel MoveScaled(1,48,12,3) Text = ("AnschriftArt") Alignment = Align.Right } { TextLabel13 TextLabel MoveScaled(53,48,8,4) ToolTip = ("Die Branche des Partners") Text = ("Branche") Alignment = Align.Right } { TextLabel32 TextLabel MoveScaled(67,13,4,3) ToolTip = ("Die Nummer des Postfachs") Text = ("PF") Alignment = Align.Right } { TextLabel33 TextLabel MoveScaled(60,17,11.4444,2.5556) ToolTip = ("Die Postleitzahl der Postfachs") Text = ("PLZ PF") Alignment = Align.Right } { PictureBoxDrag PictureBox MoveScaled(81,58,4,3) Enabled = False Picture = Picture["bookmark.png"] Stretch = True } Index = 1 Text = ("Ansprechpartner") Picture = Picture["kontact_contacts.png"] { TextLabel20 TextLabel MoveScaled(0,0.7778,16,2.5556) ToolTip = ("Der Name des Ansprechpartners") Text = ("Name") Alignment = Align.Right } { ComboBoxSex ComboBox MoveScaled(16.7778,0.7778,8,2.5556) ToolTip = ("Bestimmen Sie das Geschlecht des Ansprechpartners") Text = ("Herr") List = [("Herr"), ("Frau")] } { TextBoxAnsprechpartnerName TextBox MoveScaled(25.6667,0.7778,66,3) ToolTip = ("Bitte geben Sie hier den Namen wie \neine Anrede ein, also z- B- \n'Herr Meisner' oder 'Herr Anton Burger'") Text = ("") ReadOnly = True MaxLength = 255 } { TextLabel21 TextLabel MoveScaled(3,5,13,2.5556) ToolTip = ("Die Telefon-Nummer des Ansprechpartners") Text = ("Telefon") Alignment = Align.Right } { TextBoxAnsprechpartnerTelefon TextBox MoveScaled(17,5,75,3) Text = ("") ReadOnly = True MaxLength = 255 } { TextLabel22 TextLabel MoveScaled(3,9,13,2.5556) ToolTip = ("Die Mobil/Handy-Nummer des Ansprechpartners") Text = ("Mobil") Alignment = Align.Right } { TextBoxAnsprechpartnerMobil TextBox MoveScaled(17,9,35,3) Text = ("") ReadOnly = True MaxLength = 255 } { TextLabel23 TextLabel MoveScaled(11,13,5,3) ToolTip = ("eMail-Adresse des Ansprechpartners") Text = ("eMail") Alignment = Align.Right } { TextBoxAnsprechpartnerEmail TextBox MoveScaled(17,13,75,3) Text = ("") ReadOnly = True MaxLength = 255 } { TextLabel24 TextLabel MoveScaled(3,17,13,2.5556) ToolTip = ("FAX-Nummer des Ansprechpartners") Text = ("FAX") Alignment = Align.Right } { TextBoxAnsprechpartnerFAX TextBox MoveScaled(17,17,35,3) Text = ("") ReadOnly = True MaxLength = 255 } { TextBoxAnsprechpartnerAbteilung TextBox MoveScaled(17,21,35,3) Text = ("") ReadOnly = True MaxLength = 255 } { TextBoxAnsprechpartnerVorG TextBox MoveScaled(67,21,25,3) ToolTip = ("Bitte geben Sie hier den Namen wie eine Anrede ein, also z- B- 'Herr Meisner' oder 'Herr Anton Burger'...") Text = ("") ReadOnly = True MaxLength = 255 } { TextBoxAnsprechpartnerFunktion TextBox MoveScaled(17,25,35,3) Text = ("") ReadOnly = True MaxLength = 255 } { PictureBoxAnsprechpartnerWeiter PictureBox MoveScaled(89,58,3.4444,2.5556) Visible = False Enabled = False ToolTip = ("n\xC3\xA4chster Ansprechpartner") Picture = Picture["1rightarrow.png"] Stretch = True Alignment = Align.Center } { PictureBoxAnsprechpartnerZurueck PictureBox MoveScaled(0,58,3.4444,2.5556) Visible = False Enabled = False ToolTip = ("vorheriger Ansprechpartner") Picture = Picture["1leftarrow.png"] Stretch = True Alignment = Align.Center } { PictureBoxAnsprechpartnerOK PictureBox MoveScaled(44,58,2.5556,2.5556) Enabled = False ToolTip = ("Eingabe speichern") Picture = Picture["button_ok.png"] Stretch = True Alignment = Align.Center } { PictureBoxAnsprechpartnerCancle PictureBox MoveScaled(48,58,2.5556,2.5556) Enabled = False ToolTip = ("Eingabe abbrechen") Picture = Picture["button_cance.png"] Stretch = True Alignment = Align.Center } { PictureBoxAnsprechpartnerNeu PictureBox MoveScaled(7,58,2.5556,2.5556) Enabled = False ToolTip = ("Neuen Ansprechpartner erstellen") Picture = Picture["empty.png"] Stretch = True Alignment = Align.Center } { TextLabelGebursttag TextLabel MoveScaled(3,29,13,3.4444) ToolTip = ("Geburtstagsdatum des Ansprechpartners") Text = ("Geburtstag") Alignment = Align.Right } { PictureBoxTorte PictureBox MoveScaled(41,29,4,3.4444) Enabled = False ToolTip = ("Hat Geburtstag") Picture = Picture["pink_cake.png"] Stretch = True } { TextLabel16 TextLabel MoveScaled(3,21,13,2.5556) ToolTip = ("Die Abteilung in der der Ansprechpartner arbeitet") Text = ("Abteilung") Alignment = Align.Right } { TextLabel17 TextLabel MoveScaled(3,25,13,2.5556) ToolTip = ("Beschreibt die Funktion/Stellung innerhalb der Firma") Text = ("Funktion") Alignment = Align.Right } { TextLabel18 TextLabel MoveScaled(54,21,12,2.5556) ToolTip = ("Den Namen des Vorgesetzten") Text = ("Vorgesetzter") Alignment = Align.Right } { PictureBoxAnsprechpartnerEdit PictureBox MoveScaled(12,58,2.5556,2.5556) Enabled = False ToolTip = ("Aktuelle Ansprechpartner \xC3\xA4ndern") Picture = Picture["edit.png"] Stretch = True Alignment = Align.Center } { PictureBoxeMailAnsprechpartner PictureBox MoveScaled(7,12,4,3.4444) Picture = Picture["eMail.png"] Stretch = True } { SpinBoxTag SpinBox MoveScaled(17,29,5,3) Tag = "Geburtstag" MinValue = 1 MaxValue = 31 } { SpinBoxMonat SpinBox MoveScaled(24,29,5,3) ToolTip = ("Geburtsmonat") MinValue = 1 MaxValue = 12 } { SpinBoxJahr SpinBox MoveScaled(31,29,7,3) ToolTip = ("Geburtsjahr") MinValue = 1 MaxValue = 9999 } { TextAreaAnsprechpartnerBemerkung TextArea MoveScaled(1,39,91,17) Text = ("") ReadOnly = True Wrap = True } { TextLabel30 TextLabel MoveScaled(22,29,2,3) Text = (".") Alignment = Align.Center } { TextLabel31 TextLabel MoveScaled(29,29,2,3) Text = (".") Alignment = Align.Center } { ButtonAktionen Button MoveScaled(17,34,35,4) ToolTip = ("Lassen Die den Ansprechpartner an Aktionen teilhaben oder pflegen Sie weitere Aktionen") Text = ("Aktionen") } Index = 2 Text = ("Funktionen") Picture = Picture["kontact_notes.png"] { PictureBox9 PictureBox MoveScaled(43.4444,32,2.5556,2.5556) Enabled = False Picture = Picture["button_ok.png"] Stretch = True Alignment = Align.Center } { PictureBox10 PictureBox MoveScaled(48.7778,32,2.5556,2.5556) Picture = Picture["button_cance.png"] Stretch = True Alignment = Align.Center } { PictureBox11 PictureBox MoveScaled(8,32,2.5556,2.5556) Picture = Picture["empty.png"] Stretch = True Alignment = Align.Center } { TabStrip1 TabStrip MoveScaled(1,1,90,56) Count = 3 Index = 0 Text = ("Sucht") { ListBoxSucht ListBox MoveScaled(0.7778,0.7778,88,51) } Index = 1 Text = ("Bietet") { ListBoxBietet ListBox MoveScaled(0.7778,0.7778,73.6667,39) } Index = 2 Text = ("Sonstiges") { ListBoxSonstiges ListBox MoveScaled(0.7778,0.7778,73.6667,39) } Index = 0 } { PictureBoxFunktionenNeu PictureBox MoveScaled(7,58,2.5556,2.5556) Enabled = False ToolTip = ("Neuen Eintrag anlegen") Picture = Picture["empty.png"] Stretch = True Alignment = Align.Center } { PictureBoxFunktionenEdit PictureBox MoveScaled(12,58,2.5556,2.5556) Enabled = False ToolTip = ("Aktuellen Eintrag \xC3\xA4ndern") Picture = Picture["edit.png"] Stretch = True Alignment = Align.Center } { PictureBoxFunktionenOK PictureBox MoveScaled(44,58,2.5556,2.5556) Enabled = False ToolTip = ("Eingabe beenden") Picture = Picture["button_ok.png"] Stretch = True Alignment = Align.Center } { PictureBoxFunktionenCancle PictureBox MoveScaled(48,58,2.5556,2.5556) Enabled = False ToolTip = ("Eingabe abbrechen") Picture = Picture["button_cance.png"] Stretch = True Alignment = Align.Center } Index = 3 Text = ("Historie") Picture = Picture["knewsticker.png"] { TextLabel11 TextLabel MoveScaled(31,-0.7778,0.7778,0.7778) Text = ("TextLabel11") } { PictureBoxHistorieNeu PictureBox MoveScaled(7,58,2.5556,2.5556) Enabled = False ToolTip = ("Neuen Historieneintrag anlegen") Picture = Picture["empty.png"] Stretch = True Alignment = Align.Center } { PictureBoxHistorieEdit PictureBox MoveScaled(12,58,2.5556,2.5556) Enabled = False ToolTip = ("Aktuellen Historieneintrag \xC3\xA4ndern") Picture = Picture["edit.png"] Stretch = True Alignment = Align.Center } { ListViewHistorie ListView MoveScaled(0.7778,0.7778,91,55) } Index = 4 Text = ("Auftr?ge") Picture = Picture["fileopen.png"] { PictureBoxAuftragNeu PictureBox MoveScaled(7,58,2.5556,2.5556) Enabled = False ToolTip = ("Neuen Auftrag anlegen") Picture = Picture["empty.png"] Stretch = True Alignment = Align.Center } { PictureBox2 PictureBox MoveScaled(12,58,2.5556,2.5556) Enabled = False ToolTip = ("Aktuellen Auftrag \xC3\xA4ndern") Picture = Picture["edit.png"] Stretch = True Alignment = Align.Center } { ListViewAuftrag ListView MoveScaled(1,2,91,55) } Index = 5 Text = ("Bemerkung") Picture = Picture["messagebox_info.png"] { TextAreaBemerkung TextArea MoveScaled(1,2,91,55) Text = ("") ReadOnly = True Wrap = True } { PictureBoxBemerkungCancle PictureBox MoveScaled(48,58,2.5556,2.5556) Enabled = False ToolTip = ("Eingabe abbrechen") Picture = Picture["button_cance.png"] Stretch = True Alignment = Align.Center } { PictureBoxBemerkungOK PictureBox MoveScaled(44,58,2.5556,2.5556) Enabled = False ToolTip = ("Bemerkung speichern") Picture = Picture["button_ok.png"] Stretch = True Alignment = Align.Center } { PictureBoxBemerkungNeu PictureBox MoveScaled(7,58,2.5556,2.5556) Enabled = False ToolTip = ("Neue Bemerkung anlegen") Picture = Picture["empty.png"] Stretch = True Alignment = Align.Center } { PictureBoxBemerkungEdit PictureBox MoveScaled(12,58,2.5556,2.5556) Enabled = False ToolTip = ("Aktuelle Bemerkung \xC3\xA4ndern") Picture = Picture["edit.png"] Stretch = True Alignment = Align.Center } Index = 6 Text = ("Bankverbindung") Picture = Picture["Dollar.png"] { PictureBoxBankverbindungWeiter PictureBox MoveScaled(89,58,3.4444,2.5556) Visible = False Enabled = False ToolTip = ("n\xC3\xA4chste Bankverbindung") Picture = Picture["1rightarrow.png"] Stretch = True Alignment = Align.Center } { PictureBoxBankverbindungZurueck PictureBox MoveScaled(0,58,3.4444,2.5556) Visible = False Enabled = False ToolTip = ("vorherige Bankverbindung") Picture = Picture["1leftarrow.png"] Stretch = True Alignment = Align.Center } { PictureBoxBankverbindungNeu PictureBox MoveScaled(7,58,2.5556,2.5556) Enabled = False ToolTip = ("Neue Bankvernindung anlegen") Picture = Picture["empty.png"] Stretch = True Alignment = Align.Center } { PictureBoxBankverbindungOK PictureBox MoveScaled(44,58,2.5556,2.5556) Enabled = False ToolTip = ("Bankverbindung speichern") Picture = Picture["button_ok.png"] Stretch = True Alignment = Align.Center } { PictureBoxBankverbindungCancle PictureBox MoveScaled(48,58,2.5556,2.5556) Enabled = False ToolTip = ("Eingabe abbrechen") Picture = Picture["button_cance.png"] Stretch = True Alignment = Align.Center } { TextLabel19 TextLabel MoveScaled(1,1,9.6667,2.5556) ToolTip = ("Name der Bank") Text = ("Bank") Alignment = Align.Right } { TextBoxKontoName TextBox MoveScaled(12,1,80,3) Text = ("") ReadOnly = True MaxLength = 255 } { TextLabel25 TextLabel MoveScaled(0,5,10.5556,2.5556) ToolTip = ("Konto-Nummer der Bankverbindung") Text = ("Konto-Nr.") Alignment = Align.Right } { TextBoxKontoNr TextBox MoveScaled(12,5,80,3) Text = ("") ReadOnly = True MaxLength = 255 } { ComboBoxWaehrung ComboBox MoveScaled(12,9,35,4) Text = (" ") ReadOnly = True } { TextLabel26 TextLabel MoveScaled(1,9,10,4) ToolTip = ("W\xC3\xA4hrung des Kontos") Text = ("W\xC3\xA4hrung") Alignment = Align.Right } { TextBoxBLZ TextBox MoveScaled(12,14,80,3) Text = ("") ReadOnly = True MaxLength = 255 } { TextLabel27 TextLabel MoveScaled(2,14,8.7778,2.5556) ToolTip = ("Bankleitzahl der Bankverbindung") Text = ("BLZ") Alignment = Align.Right } { TextLabel28 TextLabel MoveScaled(2,18,8.7778,2.5556) ToolTip = ("IBAN-Nummer der Bankverbindung") Text = ("IBAN") Alignment = Align.Right } { TextBoxIBAN TextBox MoveScaled(12,18,80,3) Text = ("") ReadOnly = True MaxLength = 255 } { TextLabel29 TextLabel MoveScaled(1,22,9.6667,2.5556) ToolTip = ("SWIFT-Nummer der Bankverbindung") Text = ("SWIFT") Alignment = Align.Right } { TextBoxSWIFT TextBox MoveScaled(12,22,80,3) Text = ("") ReadOnly = True MaxLength = 255 } { TextBoxWaehrungNeu TextBox MoveScaled(56,9,10,4) ToolTip = ("Hier k\xC3\xB6nnen neue W\xC3\xA4hrungseinheiten angelegt werden") Text = ("") ReadOnly = True MaxLength = 255 } { ButtonWaehrungNeu Button MoveScaled(67,9,24,4) Enabled = False ToolTip = ("Hier k\xC3\xB6nnen neue W\xC3\xA4hrungseinheiten angelegt werden") Text = ("neue W\xC3\xA4hrung hinzuf\xC3\xBCgen") } { PictureBoxBankverbindungEdit PictureBox MoveScaled(12,58,2.5556,2.5556) Enabled = False ToolTip = ("Aktuelle Bankverbindung \xC3\xA4ndern") Picture = Picture["edit.png"] Stretch = True Alignment = Align.Center } { TextAreaBankverbindungBemerkung TextArea MoveScaled(1,26,91,31) Text = ("TextArea1") ReadOnly = True } Index = 7 Text = ("Dokumente") Picture = Picture["package_editors.png"] { ListBoxDokumente ListBox MoveScaled(1,14,91,26) } { ComboBoxAuswahlDokumente ComboBox MoveScaled(1.6667,2.5556,90,3) Text = (" ") } { TextAreaDokuBemerkung TextArea MoveScaled(1,41,91,14) Text = ("") } { PictureBoxHinzufuegen PictureBox MoveScaled(2,7,5,5) ToolTip = ("Dokument einf\xC3\xBCgen") Picture = Picture["add.png"] Stretch = True } { PictureBoxLoeschen PictureBox MoveScaled(23,7,5,5) ToolTip = ("Dokument entfernen") Picture = Picture["stop.png"] Stretch = True } { ButtonNeu Button MoveScaled(10,8,10,4) ToolTip = ("Ein neues Dokument Verf\xC3\xBCgbar machen") Text = ("NEU") } { PictureBoxStarten PictureBox MoveScaled(42,7,6,5) ToolTip = ("ausgew\xC3\xA4hltes Dokument anzeigen/drucken") Picture = Picture["fileprint.png"] Stretch = True } { PictureBoxeMail PictureBox MoveScaled(33,7,5,5) ToolTip = ("ausgew\xC3\xA4hltes Dokument (Datei) an einen Ansprechpartner senden") Picture = Picture["eMail.png"] Stretch = True } Index = 8 Text = ("Export") { ButtonExportAnsprechpartner Button MoveScaled(5,3,43,5) Text = ("Exportiere alle Ansprechpartner") } { ButtonExportPartner Button MoveScaled(5,10,43,5) Enabled = False Text = ("Exportiere alle Partner") } { Button1 Button MoveScaled(5,17,43,6) Enabled = False Text = ("Exportiere alle Bankverbindungen") } { CheckBoxAuswahlAnsprechpartner CheckBox MoveScaled(51,4,18,3) Text = ("nach Auswahl") } { CheckBoxAuswahlPartner CheckBox MoveScaled(51,11,18,3) Enabled = False Text = ("nach Auswahl") } { CheckBoxAuswahlBank CheckBox MoveScaled(51,19,18,3) Enabled = False Text = ("nach Auswahl") } Index = 0 } { Timer1 #Timer #X = 230 #Y = 620 Delay = 10 } { TextLabel15 TextLabel MoveScaled(1.6667,4,8.7778,2) Font = Font["Bold"] Text = ("Partner") Alignment = Align.Center } { PictureBoxPartnerCancle PictureBox MoveScaled(39,0,4,4) Visible = False Enabled = False ToolTip = ("Aktuellen Partner verlassen") Picture = Picture["apply.png"] Stretch = True Alignment = Align.Center } { ComboBoxPartnerName ComboBox MoveScaled(11,4,84,3) ToolTip = ("'%ter' - findet alle Partner, die 'ter' im Namen haben\n'May' findet alle Partner, die mit 'May' anfangen") Drop = True Text = ("") } { ButtonPartnerLoeschen Button MoveScaled(44,0,16,3) Enabled = False ToolTip = ("Aktuellen Partner l\xC3\xB6schen") Text = ("Partner l\xC3\xB6schen") } { ButtonAlleSuche Button MoveScaled(65,0,12,3) ToolTip = ("Nach ALLEN Partner suchen.\nDiese Suche dauert unter Um-\nst\xC3\xA4nden etwas l\xC3\xA4nger.") Text = ("Alle Suchen") } { CheckBoxAlleSuchen CheckBox MoveScaled(63,0,2,3) ToolTip = ("Markieren Sie diese Box, um in allen relevanten Feldern \n(PartnerName, Anschrift, Ansprechpartner und mehr)\n zu suchen. \n\nDiese Suche ben\xC3\xB6tigt unter Umst\xC3\xA4nden etwas Zeit.") Text = ("") } { CheckBoxEditImmerAn CheckBox MoveScaled(1,0,2,3) ToolTip = ("Aktivieren, wenn Sie Massenverarbeitung t\xC3\xA4tigen wollen") Text = ("") } } From klaine8 at ...626... Sun Sep 7 15:25:34 2008 From: klaine8 at ...626... (Kari Laine) Date: Sun, 7 Sep 2008 16:25:34 +0300 Subject: [Gambas-user] Signal #11 In-Reply-To: <200809071448.27704.bundeshund@...467...> References: <812172.5786.qm@...1967...> <200809071448.27704.bundeshund@...467...> Message-ID: <61452b690809070625p5a880b89x6117be2e2606186a@...627...> On Sun, Sep 7, 2008 at 3:48 PM, Hans-Martin wrote: > Am Sonntag, 7. September 2008 14:05:22 schrieb Hans-Martin Bundeshund: > > Hello all, > > > > i have an application running well with 2.7.0 but getting a signal#11 > with > > 2.8.2 > > > > PUBLIC SUB ButtonPartner_Click() > > DIM hForm AS FPartnerStart > > > > signal#11 --> hForm = NEW FPartnerStart(BenutzerID) <-- signal#11 > > hForm.Show > > > > END > Hi, sorry can not help you with your problem but it is better to send a little project as .tar.gz to the list which exhibits the problem. That way Benoit and others have it easier to test it and help you. As I am learning the Gambas I can not figure out what is this container object passed to form-constructor. I tried to look at Gambas help but no avail. Could someone tell me please. Best Regards Kari Laine From ronstk at ...239... Sun Sep 7 16:44:34 2008 From: ronstk at ...239... (Ron_1st) Date: Sun, 7 Sep 2008 16:44:34 +0200 Subject: [Gambas-user] Signal #11 In-Reply-To: <200809071448.27704.bundeshund@...467...> References: <812172.5786.qm@...1967...> <200809071448.27704.bundeshund@...467...> Message-ID: <200809071644.35159.ronstk@...239...> On Sunday 07 September 2008, Hans-Martin wrote: > > Hello all, > > > > i have an application running well with 2.7.0 but getting a signal#11 with > > 2.8.2 > > > > PUBLIC SUB ButtonPartner_Click() > > ? DIM hForm AS FPartnerStart > > > > signal#11 --> ?hForm = NEW FPartnerStart(BenutzerID) ? ?<-- signal#11 > > ? hForm.Show > > > > END > > > > > > As i get the error by creating a new form (what is designed with the > > gambas-ide) i thing there is 1 component that makes the trouble. But in > > this form i use a bunch of different component, so its not that simple to > > find out what will bring this error. > > > > Any suggestion how to find the guilty component? > > > > regards, > > HMB > > > You get the error on creating the instance as shown. Two things happen 1) building the form as visible object 2) running the initialize code in the class file. If the form has the error you should get the error if the *.class file is empty or a dummy that does nothing. If no error occurs then it is the class file that has something wrong. Just something I had once in the past. At the time MoveScale was introduced in the forms I had some problems alike this. I made the 4 values round values instead float as I see in your form. In my project the bug was gone. Not nessasary this still happens nowadays. > { Form Form >? MoveScaled(13.4444,4,97,77) <-- to MoveScaled(13,4,97,77) >? Text = ("Partnerverwaltung") >? { EditImmerAn Menu NeuenPartnerAnlegen > .... Second point I see is the percent in the tooltip. Maybe that is a special character in gambas as the \ is. >? { ComboBoxPartnerName ComboBox >? ? MoveScaled(11,4,84,3) >? ? ToolTip = ("'%ter' - findet alle Partner, die 'ter' im Namen haben\n'May' > findet alle Partner, die mit 'May' anfangen") > ? Drop = True >? ? Text = ("") >? } You could try to make a copy of the project with only the form and class file. Set the form/class as startup and check what happens. Editing here will not corrupt your current real project to mess. Best regards Ron_1st -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? From bundeshund at ...467... Sun Sep 7 18:20:07 2008 From: bundeshund at ...467... (Hans-Martin) Date: Sun, 7 Sep 2008 18:20:07 +0200 Subject: [Gambas-user] Signal #11 In-Reply-To: <200809071644.35159.ronstk@...239...> References: <812172.5786.qm@...1967...> <200809071448.27704.bundeshund@...467...> <200809071644.35159.ronstk@...239...> Message-ID: <200809071820.07847.bundeshund@...467...> Am Sonntag, 7. September 2008 16:44:34 schrieb Ron_1st: > On Sunday 07 September 2008, Hans-Martin wrote: > > > Hello all, > > > > > > i have an application running well with 2.7.0 but getting a signal#11 > > > with 2.8.2 > > > > > > PUBLIC SUB ButtonPartner_Click() > > > ? DIM hForm AS FPartnerStart > > > > > > signal#11 --> ?hForm = NEW FPartnerStart(BenutzerID) ? ?<-- signal#11 > > > ? hForm.Show > > > > > > END > > > > > > > > > As i get the error by creating a new form (what is designed with the > > > gambas-ide) i thing there is 1 component that makes the trouble. But in > > > this form i use a bunch of different component, so its not that simple > > > to find out what will bring this error. > > > > > > Any suggestion how to find the guilty component? > > > > > > regards, > > > HMB > > You get the error on creating the instance as shown. > Two things happen > 1) building the form as visible object > 2) running the initialize code in the class file. > > If the form has the error you should get the error if the *.class > file is empty or a dummy that does nothing. > If no error occurs then it is the class file that has something wrong. > > Just something I had once in the past. At the time MoveScale was introduced > in the forms I had some problems alike this. > I made the 4 values round values instead float as I see in your form. > In my project the bug was gone. Not nessasary this still happens nowadays. > > > { Form Form > >? MoveScaled(13.4444,4,97,77) <-- to MoveScaled(13,4,97,77) > >? Text = ("Partnerverwaltung") > >? { EditImmerAn Menu NeuenPartnerAnlegen > > .... fixed this, but same behavier :( > > Second point I see is the percent in the tooltip. > Maybe that is a special character in gambas as the \ is. > > >? { ComboBoxPartnerName ComboBox > >? ? MoveScaled(11,4,84,3) > >? ? ToolTip = ("'%ter' - findet alle Partner, die 'ter' im Namen > > haben\n'May' findet alle Partner, die mit 'May' anfangen") > > ? Drop = True > >? ? Text = ("") > >? } fixed this too, but still sig11 > > You could try to make a copy of the project with only the form and class > file. Set the form/class as startup and check what happens. good idea. i have done this. gambas throws the signal#11 error before the first statement (in _new()) is reached. so the breakpoint i set on the first instruction is never reached... strange. there must be something else in the .form-file that will raise this error... > Editing here will not corrupt your current real project to mess. > > Many thanks for that. me have to look closer and try more out :( It must something that changes between 2.7.0 and 2.8.2... > Best regards > Ron_1st Hans-Martin From bundeshund at ...467... Sun Sep 7 19:37:44 2008 From: bundeshund at ...467... (Hans-Martin) Date: Sun, 7 Sep 2008 19:37:44 +0200 Subject: [Gambas-user] Signal #11 - solved In-Reply-To: <200809071448.27704.bundeshund@...467...> References: <812172.5786.qm@...1967...> <200809071448.27704.bundeshund@...467...> Message-ID: <200809071937.44956.bundeshund@...467...> Am Sonntag, 7. September 2008 14:48:27 schrieb Hans-Martin: > Am Sonntag, 7. September 2008 14:05:22 schrieb Hans-Martin Bundeshund: > > Hello all, > > > > i have an application running well with 2.7.0 but getting a signal#11 > > with 2.8.2 > > > > PUBLIC SUB ButtonPartner_Click() > > DIM hForm AS FPartnerStart > > > > signal#11 --> hForm = NEW FPartnerStart(BenutzerID) <-- signal#11 > > hForm.Show > > > > END > > > > > > As i get the error by creating a new form (what is designed with the > > gambas-ide) i thing there is 1 component that makes the trouble. But in > > this form i use a bunch of different component, so its not that simple to > > find out what will bring this error. > > > > Any suggestion how to find the guilty component? > > > > regards, > > HMB > > hmm, i think it's not a bad idea to post the FPartnerStart-form: > > # Gambas Form File 2.0 > > ... > > { EditImmerAn Menu NeuenPartnerAnlegen > Name = "EditImmerAn" > Text = ("") > Shortcut = "F1" > } I deleted one component after another with the ide and tried it. Still Signal#11. After my form was empty, i still got signal#11. Then i looked into it with a text-editor and saw that there is still a menu alive. deleted this and the signal#11 was gone :) after that i switched to my orginal project and deleted only the menu. all is fine now :) From joaruoff at ...17... Sun Sep 7 20:03:54 2008 From: joaruoff at ...17... (Joachim Ruoff) Date: Sun, 07 Sep 2008 20:03:54 +0200 Subject: [Gambas-user] Signal #11 In-Reply-To: <200809071820.07847.bundeshund@...467...> References: <812172.5786.qm@...1967...> <200809071448.27704.bundeshund@...467...> <200809071644.35159.ronstk@...239...> <200809071820.07847.bundeshund@...467...> Message-ID: <48C4178A.9070101@...17...> Hi all, I had a similar problem, my application runs well until I update to Gambas 2.8, then I get the error message with signal#11 I could solve that problem, when I delete the shortcuts in the menu editor, now the program runs well. May be there is a bug with that shortcuts? When I use these shortcuts in an other application the same problem occurs. Regards Joachim Hans-Martin schrieb: > Am Sonntag, 7. September 2008 16:44:34 schrieb Ron_1st: > >> On Sunday 07 September 2008, Hans-Martin wrote: >> >>>> Hello all, >>>> >>>> i have an application running well with 2.7.0 but getting a signal#11 >>>> with 2.8.2 >>>> >>>> PUBLIC SUB ButtonPartner_Click() >>>> DIM hForm AS FPartnerStart >>>> >>>> signal#11 --> hForm = NEW FPartnerStart(BenutzerID) <-- signal#11 >>>> hForm.Show >>>> >>>> END >>>> >>>> >>>> As i get the error by creating a new form (what is designed with the >>>> gambas-ide) i thing there is 1 component that makes the trouble. But in >>>> this form i use a bunch of different component, so its not that simple >>>> to find out what will bring this error. >>>> >>>> Any suggestion how to find the guilty component? >>>> >>>> regards, >>>> HMB >>>> >> You get the error on creating the instance as shown. >> Two things happen >> 1) building the form as visible object >> 2) running the initialize code in the class file. >> >> If the form has the error you should get the error if the *.class >> file is empty or a dummy that does nothing. >> If no error occurs then it is the class file that has something wrong. >> >> Just something I had once in the past. At the time MoveScale was introduced >> in the forms I had some problems alike this. >> I made the 4 values round values instead float as I see in your form. >> In my project the bug was gone. Not nessasary this still happens nowadays. >> >> >>> { Form Form >>> MoveScaled(13.4444,4,97,77) <-- to MoveScaled(13,4,97,77) >>> Text = ("Partnerverwaltung") >>> { EditImmerAn Menu NeuenPartnerAnlegen >>> .... >>> > > fixed this, but same behavier :( > > >> Second point I see is the percent in the tooltip. >> Maybe that is a special character in gambas as the \ is. >> >> >>> { ComboBoxPartnerName ComboBox >>> MoveScaled(11,4,84,3) >>> ToolTip = ("'%ter' - findet alle Partner, die 'ter' im Namen >>> haben\n'May' findet alle Partner, die mit 'May' anfangen") >>> Drop = True >>> Text = ("") >>> } >>> > > fixed this too, but still sig11 > > >> You could try to make a copy of the project with only the form and class >> file. Set the form/class as startup and check what happens. >> > > good idea. i have done this. gambas throws the signal#11 error before the > first statement (in _new()) is reached. so the breakpoint i set on the first > instruction is never reached... strange. there must be something else in > the .form-file that will raise this error... > > >> Editing here will not corrupt your current real project to mess. >> >> >> > > Many thanks for that. me have to look closer and try more out :( > It must something that changes between 2.7.0 and 2.8.2... > > >> Best regards >> Ron_1st >> > > Hans-Martin > > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From leonardo at ...1237... Sun Sep 7 23:34:10 2008 From: leonardo at ...1237... (Leonardo Miliani) Date: Sun, 07 Sep 2008 23:34:10 +0200 Subject: [Gambas-user] Maybe a bug in how Gambas manages open DB connections In-Reply-To: <200809061052.13673.gambas@...1...> References: <48C10B15.3000706@...1237...> <200809051402.45708.gambas@...1...> <48C1A69C.5070505@...1237...> <200809061052.13673.gambas@...1...> Message-ID: <48C448D2.2040601@...1237...> Benoit Minisini ha scritto: > On vendredi 05 septembre 2008, Leonardo Miliani wrote: >> Ops.... I forgot the version: 2.8.1, but got the same error with >> previous versions 2.8 and, if I remember correctly, 2.7. > > Then please post the actual code that shows your problem. > > Thanks. > English is not my native language so maybe I can not explain the problem very well. But it's very easy to understand (don't think at the code, now: just think in "pseudocode" or logical steps): 1) I open a connection named C1 2) I get some results from it 3) I open a new connection named C2 4) Just after the point 3), if I try to get some other results from C1, I get the error the the C1 is not a valid object. I must call another MySQL query (even with C1.Find or C1.Execute or whatever I want) before to look for a result. I send the complete form (class and gui) that give me the error: not the complete project (toooooo big, several MBs), not the original DB (tooo big...). -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Scegli software opensource - Choose opensource software Co-fondatore di Gambas-it.org Il sito di riferimento della comunit? italiana degli utenti di Gambas www.gambas-it.org -------------- next part -------------- A non-text attachment was scrubbed... Name: frmApriAuto.tar.bz2 Type: application/x-bzip Size: 2193 bytes Desc: not available URL: From ron at ...1740... Sun Sep 7 23:49:58 2008 From: ron at ...1740... (Ron) Date: Sun, 07 Sep 2008 23:49:58 +0200 Subject: [Gambas-user] Trayicon question Message-ID: <48C44C86.5060904@...1740...> Hi, I want to add trayicon functionality to my program. So I have dragged a Trayicon object to my main form to start with. When I start my program I get an 'Embedding has failed' error. Since the message is so sparse, I have no clue where to look... Do I miss a component, or forgot something? I'm using gb.qt with Gambas 2.8.1 Thanks in advance. Regards, Ron_2nd From ronstk at ...239... Mon Sep 8 02:13:20 2008 From: ronstk at ...239... (Ron_1st) Date: Mon, 8 Sep 2008 02:13:20 +0200 Subject: [Gambas-user] Maybe a bug in how Gambas manages open DB connections In-Reply-To: <48C448D2.2040601@...1237...> References: <48C10B15.3000706@...1237...> <200809061052.13673.gambas@...1...> <48C448D2.2040601@...1237...> Message-ID: <200809080213.20300.ronstk@...239...> On Sunday 07 September 2008, Leonardo Miliani wrote: > Benoit Minisini ha scritto: > > On vendredi 05 septembre 2008, Leonardo Miliani wrote: > >> Ops.... I forgot the version: 2.8.1, but got the same error with > >> previous versions 2.8 and, if I remember correctly, 2.7. > > > > Then please post the actual code that shows your problem. > > > > Thanks. > > > > English is not my native language so maybe I can not explain the problem > very well. > But it's very easy to understand (don't think at the code, now: just > think in "pseudocode" or logical steps): > > 1) I open a connection named C1 > 2) I get some results from it > 3) I open a new connection named C2 > 4) Just after the point 3), if I try to get some other results from C1, > I get the error the the C1 is not a valid object. I must call another > MySQL query (even with C1.Find or C1.Execute or whatever I want) before > to look for a result. > > I send the complete form (class and gui) that give me the error: not the > complete project (toooooo big, several MBs), not the original DB (tooo > big...). > When I did understand right in the past the mysql access is asynchroon. This means before the C!.exec it connects and after it it disconnect leaving no open connections, only the result is hold. When you make the C2 connection maybe the C1 connection is destroyed. This because i think you use the exact same property values. Try with another user name for C2, then mysql knows they are different For the connection the main properties are 'use', 'password', 'server', 'port'. Less importand are the 'database' and 'table' The wrong thing I see is that all those properties are put together on the connection. I should have 1 connection and across that same connection be able to access several databases and tables in them. I'm not sure that this is true in gambas. Seen from the mysql server it gets request from 2 equal sources, the different gambas connections are the same for the TCP connection. There is no unique identification sign they are differnt in the TCP connection. It could be the 'user'/'password' So the asynchroon close from the C@ connection kills someway C1 also. I think. Just guessing this is the problem. Best regards Ron_1st -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? From ronstk at ...239... Mon Sep 8 02:17:14 2008 From: ronstk at ...239... (Ron_1st) Date: Mon, 8 Sep 2008 02:17:14 +0200 Subject: [Gambas-user] Signal #11 - solved In-Reply-To: <200809071937.44956.bundeshund@...467...> References: <812172.5786.qm@...1967...> <200809071448.27704.bundeshund@...467...> <200809071937.44956.bundeshund@...467...> Message-ID: <200809080217.14902.ronstk@...239...> On Sunday 07 September 2008, Hans-Martin wrote: > Am Sonntag, 7. September 2008 14:48:27 schrieb Hans-Martin: > > Am Sonntag, 7. September 2008 14:05:22 schrieb Hans-Martin Bundeshund: > > > Hello all, > > > > > > i have an application running well with 2.7.0 but getting a signal#11 > > > with 2.8.2 > > > > > > PUBLIC SUB ButtonPartner_Click() > > > DIM hForm AS FPartnerStart > > > > > > signal#11 --> hForm = NEW FPartnerStart(BenutzerID) <-- signal#11 > > > hForm.Show > > > > > > END > > > > > > > > > As i get the error by creating a new form (what is designed with the > > > gambas-ide) i thing there is 1 component that makes the trouble. But in > > > this form i use a bunch of different component, so its not that simple to > > > find out what will bring this error. > > > > > > Any suggestion how to find the guilty component? > > > > > > regards, > > > HMB > > > > hmm, i think it's not a bad idea to post the FPartnerStart-form: > > > > # Gambas Form File 2.0 > > > > ... > > > { EditImmerAn Menu NeuenPartnerAnlegen > > Name = "EditImmerAn" > > Text = ("") > > Shortcut = "F1" > > } > > > I deleted one component after another with the ide and tried it. Still > Signal#11. After my form was empty, i still got signal#11. Then i looked into > it with a text-editor and saw that there is still a menu alive. deleted this > and the signal#11 was gone :) > after that i switched to my orginal project and deleted only the menu. all is > fine now :) > Fine to had that copy to delete parts :) :) Best regards Ron_1st -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? From rterry at ...1946... Mon Sep 8 03:12:10 2008 From: rterry at ...1946... (richard terry) Date: Mon, 8 Sep 2008 11:12:10 +1000 Subject: [Gambas-user] Suggestion for IDE behaviour Message-ID: <200809081112.10742.rterry@...1946...> I keep a directory in my project where I keep a text file for changes I want to make to forms I note at run-time that like all forms, any file in here is not editable. I wondered if it would be possible to allow files not used during the running of the project to be editable at run-time - as I find I'd like to make notes as I watch the behaviour of my program, and am unable to do this because of the above behaviour. Regards Richard From sevoir75 at ...626... Mon Sep 8 10:52:29 2008 From: sevoir75 at ...626... (Sevoir) Date: Mon, 08 Sep 2008 10:52:29 +0200 Subject: [Gambas-user] generating pdf ?! Message-ID: <1220863949.7763.8.camel@...1964...> Hi all, Can I generating any pdf file from gambas2 ? Regards, Norbert From ron at ...1740... Mon Sep 8 13:17:58 2008 From: ron at ...1740... (Ron) Date: Mon, 08 Sep 2008 13:17:58 +0200 Subject: [Gambas-user] Gambas 2.8 packages for Debian? Message-ID: <48C509E6.2020002@...1740...> Anyone has Gambas 2.8 packages for Debian etch (4.0r3)? Or has a nice script or document to build them? Thanks. Regards, Ron_2nd From jredrejo at ...626... Mon Sep 8 13:34:42 2008 From: jredrejo at ...626... (=?UTF-8?Q?Jos=C3=A9_Luis_Redrejo?=) Date: Mon, 8 Sep 2008 13:34:42 +0200 Subject: [Gambas-user] Gambas 2.8 packages for Debian? In-Reply-To: <48C509E6.2020002@...1740...> References: <48C509E6.2020002@...1740...> Message-ID: <8eb28a500809080434o41393205y6a1a067703f7b254@...627...> I've them for Debian sid & lenny. I'll upload it to Debian this week. For etch you'll have to wait a little more (for etch a gtk backport must be used). Regards. Jos? L. 2008/9/8 Ron > > Anyone has Gambas 2.8 packages for Debian etch (4.0r3)? > Or has a nice script or document to build them? > > Thanks. > Regards, > Ron_2nd > > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Mon Sep 8 15:43:36 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 8 Sep 2008 15:43:36 +0200 Subject: [Gambas-user] French mailing list is die ? In-Reply-To: <200809071245.17904.garulfounix@...626...> References: <200809071234.20154.garulfounix@...626...> <200809071238.54829.lordheavym@...626...> <200809071245.17904.garulfounix@...626...> Message-ID: <200809081543.36705.gambas@...1...> On dimanche 07 septembre 2008, Fran?ois wrote: > > lolo, if i'm asking that, it's because i already have report bugs but > Benoit doesn't answer me (it's strange, though :) ) . > > Not really a lots messages at the moment. I have *one* bug report from you on the french mailing-list, and I forgot^W didn't have the time to look it yet. :-) -- Benoit Minisini From gambas at ...1... Mon Sep 8 15:46:08 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 8 Sep 2008 15:46:08 +0200 Subject: [Gambas-user] Signal #11 In-Reply-To: <812172.5786.qm@...1967...> References: <812172.5786.qm@...1967...> Message-ID: <200809081546.08457.gambas@...1...> On dimanche 07 septembre 2008, Hans-Martin Bundeshund wrote: > Hello all, > > i have an application running well with 2.7.0 but getting a signal#11 with > 2.8.2 > > PUBLIC SUB ButtonPartner_Click() > DIM hForm AS FPartnerStart > > signal#11 --> hForm = NEW FPartnerStart(BenutzerID) <-- signal#11 > hForm.Show > > END > > > As i get the error by creating a new form (what is designed with the > gambas-ide) i thing there is 1 component that makes the trouble. But in > this form i use a bunch of different component, so its not that simple to > find out what will bring this error. > > Any suggestion how to find the guilty component? > > regards, > HMB > Can you proceed as explained on the "Reporting a problem" page of the website? Of course, you should better send me a project that reproduces the crash. Regards, -- Benoit Minisini From gambas at ...1... Mon Sep 8 15:47:26 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 8 Sep 2008 15:47:26 +0200 Subject: [Gambas-user] Signal #11 In-Reply-To: <61452b690809070625p5a880b89x6117be2e2606186a@...627...> References: <812172.5786.qm@...1967...> <200809071448.27704.bundeshund@...467...> <61452b690809070625p5a880b89x6117be2e2606186a@...627...> Message-ID: <200809081547.26041.gambas@...1...> On dimanche 07 septembre 2008, Kari Laine wrote: > On Sun, Sep 7, 2008 at 3:48 PM, Hans-Martin wrote: > > Am Sonntag, 7. September 2008 14:05:22 schrieb Hans-Martin Bundeshund: > > > Hello all, > > > > > > i have an application running well with 2.7.0 but getting a signal#11 > > > > with > > > > > 2.8.2 > > > > > > PUBLIC SUB ButtonPartner_Click() > > > DIM hForm AS FPartnerStart > > > > > > signal#11 --> hForm = NEW FPartnerStart(BenutzerID) <-- signal#11 > > > hForm.Show > > > > > > END > > Hi, > > sorry can not help you with your problem but it is better to send a little > project as .tar.gz to the list which exhibits the problem. That way Benoit > and others have it easier to test it and help you. > > As I am learning the Gambas I can not figure out what is this container > object passed to form-constructor. I tried to look at Gambas help but no > avail. Could someone tell me please. > > Best Regards > Kari Laine If you create a Form with no argument to its constructor, you creates a top-level window. If you put an argument, this argument must be a Container, and then the Form is just (or almost) like another control that is created inside its container. Regards, -- Benoit Minisini From gambas at ...1... Mon Sep 8 15:49:26 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 8 Sep 2008 15:49:26 +0200 Subject: [Gambas-user] Trayicon question In-Reply-To: <48C44C86.5060904@...1740...> References: <48C44C86.5060904@...1740...> Message-ID: <200809081549.26181.gambas@...1...> On dimanche 07 septembre 2008, Ron wrote: > Hi, > > I want to add trayicon functionality to my program. > So I have dragged a Trayicon object to my main form to start with. > > When I start my program I get an 'Embedding has failed' error. > Since the message is so sparse, I have no clue where to look... > Do I miss a component, or forgot something? > > I'm using gb.qt with Gambas 2.8.1 > In which desktop ? Can you send your project ? -- Benoit Minisini From gambas at ...1... Mon Sep 8 15:50:30 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 8 Sep 2008 15:50:30 +0200 Subject: [Gambas-user] generating pdf ?! In-Reply-To: <1220863949.7763.8.camel@...1964...> References: <1220863949.7763.8.camel@...1964...> Message-ID: <200809081550.30221.gambas@...1...> On lundi 08 septembre 2008, Sevoir wrote: > Hi all, > > > Can I generating any pdf file from gambas2 ? > > Regards, Norbert > See the pdf command-line tools: ps2pdf and so on... Then you just have to generate ps from gambas, by using the gb.qt Printer object. Regards, -- Benoit Minisini From jjmoncar at ...626... Mon Sep 8 16:05:26 2008 From: jjmoncar at ...626... (jjmoncar) Date: Tue, 9 Sep 2008 09:35:26 +1930 Subject: [Gambas-user] reports in gambas Message-ID: <7522e790809080705n3a54313fk6a8f34177e46d54c@...627...> Good morning. can anyone put an example of how to generate reports with the component gb.report? thanks in advance. From ron at ...1740... Mon Sep 8 16:10:49 2008 From: ron at ...1740... (Ron) Date: Mon, 08 Sep 2008 16:10:49 +0200 Subject: [Gambas-user] Trayicon question In-Reply-To: <200809081549.26181.gambas@...1...> References: <48C44C86.5060904@...1740...> <200809081549.26181.gambas@...1...> Message-ID: <48C53269.8040605@...1740...> Benoit Minisini schreef: > On dimanche 07 septembre 2008, Ron wrote: > >> Hi, >> >> I want to add trayicon functionality to my program. >> So I have dragged a Trayicon object to my main form to start with. >> >> When I start my program I get an 'Embedding has failed' error. >> Since the message is so sparse, I have no clue where to look... >> Do I miss a component, or forgot something? >> >> I'm using gb.qt with Gambas 2.8.1 >> >> > > In which desktop ? Can you send your project ? > > I get this error when I start my application as a remote X command without a full desktop (with nomachine NX client), ok makes sense that the tray has problems with that, but I don't remember other X applications have problems with this. When I start a full desktop and run my app, it works, but I get a signal 11 error every time I close my application, if I enable the trayicon code. Will try to destilate a smaller project with my trayicon code to sent to you. Regards, Ron_2nd From gambas at ...1... Mon Sep 8 16:48:10 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 8 Sep 2008 16:48:10 +0200 Subject: [Gambas-user] Signal #11 - solved In-Reply-To: <200809071937.44956.bundeshund@...467...> References: <812172.5786.qm@...1967...> <200809071448.27704.bundeshund@...467...> <200809071937.44956.bundeshund@...467...> Message-ID: <200809081648.10731.gambas@...1...> On dimanche 07 septembre 2008, Hans-Martin wrote: > Am Sonntag, 7. September 2008 14:48:27 schrieb Hans-Martin: > > Am Sonntag, 7. September 2008 14:05:22 schrieb Hans-Martin Bundeshund: > > > Hello all, > > > > > > i have an application running well with 2.7.0 but getting a signal#11 > > > with 2.8.2 > > > > > > PUBLIC SUB ButtonPartner_Click() > > > DIM hForm AS FPartnerStart > > > > > > signal#11 --> hForm = NEW FPartnerStart(BenutzerID) <-- signal#11 > > > hForm.Show > > > > > > END > > > > > > > > > As i get the error by creating a new form (what is designed with the > > > gambas-ide) i thing there is 1 component that makes the trouble. But in > > > this form i use a bunch of different component, so its not that simple > > > to find out what will bring this error. > > > > > > Any suggestion how to find the guilty component? > > > > > > regards, > > > HMB > > > > hmm, i think it's not a bad idea to post the FPartnerStart-form: > > > > # Gambas Form File 2.0 > > > > ... > > > > > { EditImmerAn Menu NeuenPartnerAnlegen > > > > Name = "EditImmerAn" > > Text = ("") > > Shortcut = "F1" > > } > > I deleted one component after another with the ide and tried it. Still > Signal#11. After my form was empty, i still got signal#11. Then i looked > into it with a text-editor and saw that there is still a menu alive. > deleted this and the signal#11 was gone :) > after that i switched to my orginal project and deleted only the menu. all > is fine now :) > OK, I understood the bug: but why did you put shortcuts on top-level menus? -- Benoit Minisini From gambas at ...1... Mon Sep 8 16:59:05 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 8 Sep 2008 16:59:05 +0200 Subject: [Gambas-user] Trayicon question In-Reply-To: <48C53269.8040605@...1740...> References: <48C44C86.5060904@...1740...> <200809081549.26181.gambas@...1...> <48C53269.8040605@...1740...> Message-ID: <200809081659.05224.gambas@...1...> On lundi 08 septembre 2008, Ron wrote: > Benoit Minisini schreef: > > On dimanche 07 septembre 2008, Ron wrote: > >> Hi, > >> > >> I want to add trayicon functionality to my program. > >> So I have dragged a Trayicon object to my main form to start with. > >> > >> When I start my program I get an 'Embedding has failed' error. > >> Since the message is so sparse, I have no clue where to look... > >> Do I miss a component, or forgot something? > >> > >> I'm using gb.qt with Gambas 2.8.1 > > > > In which desktop ? Can you send your project ? > > I get this error when I start my application as a remote X command > without a full desktop (with nomachine NX client), ok makes sense that > the tray has problems with that, On X-Window, system tray icons are done with the same protocol than window embedding (Embedder control in Gambas). So the message error is "Embedding has failed". > but I don't remember other X > applications have problems with this. Maybe they just don't tell you there was a problem. > > When I start a full desktop and run my app, it works, but I get a signal > 11 error every time I close my application, if I enable the trayicon code. > Will try to destilate a smaller project with my trayicon code to sent to > you. > OK, waiting for it! Regards, -- Benoit Minisini From klaine8 at ...626... Mon Sep 8 21:28:52 2008 From: klaine8 at ...626... (Kari Laine) Date: Mon, 8 Sep 2008 22:28:52 +0300 Subject: [Gambas-user] reports in gambas In-Reply-To: <7522e790809080705n3a54313fk6a8f34177e46d54c@...627...> References: <7522e790809080705n3a54313fk6a8f34177e46d54c@...627...> Message-ID: <61452b690809081228t5a8830a4k7ab2bb2087b3a5f2@...627...> On Mon, Sep 8, 2008 at 5:05 PM, jjmoncar wrote: > Good morning. > > can anyone put an example of how to generate reports with the component > gb.report? > > Hi, That module is written in Gambas. Open that as a Gambas Project. Ok this supposes you have installed Gambas source code. References: <7522e790809080705n3a54313fk6a8f34177e46d54c@...627...> <61452b690809081228t5a8830a4k7ab2bb2087b3a5f2@...627...> Message-ID: <200809082158.30173.jscops@...11...> Le Monday 08 September 2008 21:28:52 Kari Laine, vous avez ?crit?: > On Mon, Sep 8, 2008 at 5:05 PM, jjmoncar wrote: > > Good morning. > > > > can anyone put an example of how to generate reports with the component > > gb.report? > > > > Hi, Hi, Here is a simple example which show you how to generate reports with the component gb.report Warning. This program work with kprinter ( you need kdeprint libraries in your system ) Jacky -------------- next part -------------- A non-text attachment was scrubbed... Name: Print_ex-0.0.1.tar.gz Type: application/x-tgz Size: 12961 bytes Desc: not available URL: From rospolosco at ...152... Mon Sep 8 22:50:26 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Mon, 8 Sep 2008 22:50:26 +0200 Subject: [Gambas-user] LIKE operator bug? Message-ID: <200809082250.27404.rospolosco@...152...> I've this code and I want to filter all not-digits from an alphanumeric string. PUBLIC SUB Main() DIM sAllChars, sSingleChar, sFiltered AS String sAllChars = "1,2,A,B,C,D,?,?,a,x,?,5,7,G,?,?,$,&,?,1,2,3,4" FOR EACH sSingleChar IN Split(sAllChars) IF sSingleChar LIKE "[^0-9]" THEN CONTINUE ELSE sFiltered = sFiltered & sSingleChar ENDIF NEXT PRINT sFiltered END but the result is "12???57???1234". It seems that LIKE gets confused by some special chars. I don't know whether this is a bug or something else. My Gambas version is 2.7.0 Saluti, Stefano Palmeri From rospolosco at ...152... Mon Sep 8 23:05:01 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Mon, 8 Sep 2008 23:05:01 +0200 Subject: [Gambas-user] LIKE operator bug? In-Reply-To: <200809082250.27404.rospolosco@...152...> References: <200809082250.27404.rospolosco@...152...> Message-ID: <200809082305.01972.rospolosco@...152...> Il luned? 8 settembre 2008 22:50:26 Stefano Palmeri ha scritto: > I've this code and I want to filter all not-digits from an > alphanumeric string. > > > PUBLIC SUB Main() > > DIM sAllChars, sSingleChar, sFiltered AS String > > sAllChars = "1,2,A,B,C,D,?,?,a,x,?,5,7,G,?,?,$,&,?,1,2,3,4" > > FOR EACH sSingleChar IN Split(sAllChars) > > IF sSingleChar LIKE "[^0-9]" THEN > CONTINUE > ELSE > sFiltered = sFiltered & sSingleChar > ENDIF > > NEXT > > PRINT sFiltered > > END > > > but the result is "12???57???1234". It seems that LIKE gets confused by > some special chars. I don't know whether this is a bug or something else. > > My Gambas version is 2.7.0 > > Saluti, > > Stefano Palmeri > p.s.: my english is not perfect, so to be clear, I expect this result from previous code: 12571234 Saluti > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge Build the coolest Linux based applications with Moblin SDK & win > great prizes Grand prize is a trip for two to an Open Source event anywhere > in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From leonardo at ...1237... Mon Sep 8 23:39:17 2008 From: leonardo at ...1237... (Leonardo Miliani) Date: Mon, 08 Sep 2008 23:39:17 +0200 Subject: [Gambas-user] Maybe a bug in how Gambas manages open DB connections In-Reply-To: <200809080213.20300.ronstk@...239...> References: <48C10B15.3000706@...1237...> <200809061052.13673.gambas@...1...> <48C448D2.2040601@...1237...> <200809080213.20300.ronstk@...239...> Message-ID: <48C59B85.4020502@...1237...> Ron_1st ha scritto: > On Sunday 07 September 2008, Leonardo Miliani wrote: >> Benoit Minisini ha scritto: >>> On vendredi 05 septembre 2008, Leonardo Miliani wrote: >>>> Ops.... I forgot the version: 2.8.1, but got the same error with >>>> previous versions 2.8 and, if I remember correctly, 2.7. >>> Then please post the actual code that shows your problem. >>> >>> Thanks. >>> >> English is not my native language so maybe I can not explain the problem >> very well. >> But it's very easy to understand (don't think at the code, now: just >> think in "pseudocode" or logical steps): >> >> 1) I open a connection named C1 >> 2) I get some results from it >> 3) I open a new connection named C2 >> 4) Just after the point 3), if I try to get some other results from C1, >> I get the error the the C1 is not a valid object. I must call another >> MySQL query (even with C1.Find or C1.Execute or whatever I want) before >> to look for a result. >> >> I send the complete form (class and gui) that give me the error: not the >> complete project (toooooo big, several MBs), not the original DB (tooo >> big...). >> > > When I did understand right in the past the mysql access is asynchroon. > This means before the C!.exec it connects and after it it disconnect > leaving no open connections, only the result is hold. > When you make the C2 connection maybe the C1 connection is destroyed. > This because i think you use the exact same property values. > Try with another user name for C2, then mysql knows they are different > > For the connection the main properties are 'use', 'password', 'server', 'port'. > Less importand are the 'database' and 'table' > > The wrong thing I see is that all those properties are put together on the connection. > I should have 1 connection and across that same connection be able to > access several databases and tables in them. > I'm not sure that this is true in gambas. > > Seen from the mysql server it gets request from 2 equal sources, the different gambas > connections are the same for the TCP connection. > There is no unique identification sign they are differnt in the TCP connection. > It could be the 'user'/'password' > So the asynchroon close from the C@ connection kills someway C1 also. I think. > > Just guessing this is the problem. > > Best regards > Ron_1st > Thanks for you answer. But I would tell that in several other parts of my program I open two connections named Connessione1 and Connessione2 and I work with them simultaneously without problems. Only in the example I open the second one just after I made some work on the first one, and got the error. -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Scegli software opensource - Choose opensource software Co-fondatore di Gambas-it.org Il sito di riferimento della comunit? italiana degli utenti di Gambas www.gambas-it.org From leonardo at ...1237... Mon Sep 8 23:53:27 2008 From: leonardo at ...1237... (Leonardo Miliani) Date: Mon, 08 Sep 2008 23:53:27 +0200 Subject: [Gambas-user] LIKE operator bug? In-Reply-To: <200809082305.01972.rospolosco@...152...> References: <200809082250.27404.rospolosco@...152...> <200809082305.01972.rospolosco@...152...> Message-ID: <48C59ED7.8000501@...1237...> Stefano Palmeri ha scritto: > Il luned? 8 settembre 2008 22:50:26 Stefano Palmeri ha scritto: >> I've this code and I want to filter all not-digits from an >> alphanumeric string. >> >> >> PUBLIC SUB Main() >> >> DIM sAllChars, sSingleChar, sFiltered AS String >> >> sAllChars = "1,2,A,B,C,D,?,?,a,x,?,5,7,G,?,?,$,&,?,1,2,3,4" >> >> FOR EACH sSingleChar IN Split(sAllChars) >> >> IF sSingleChar LIKE "[^0-9]" THEN >> CONTINUE >> ELSE >> sFiltered = sFiltered & sSingleChar >> ENDIF >> >> NEXT >> >> PRINT sFiltered >> >> END >> >> >> but the result is "12???57???1234". It seems that LIKE gets confused by >> some special chars. I don't know whether this is a bug or something else. >> >> My Gambas version is 2.7.0 >> >> Saluti, >> >> Stefano Palmeri >> > > p.s.: my english is not perfect, so to be clear, I expect > this result from previous code: > > 12571234 > > Saluti > >> >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move Developer's >> challenge Build the coolest Linux based applications with Moblin SDK & win >> great prizes Grand prize is a trip for two to an Open Source event anywhere >> in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> 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 the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > It's the "^" character that seems to have some problems, because if you invert your test and do the string adding when the test is true (when the char IS in the interval 0-9), everything goes correctly and you get the right result: IF sSingleChar LIKE "[0-9]" THEN sFiltered = sFiltered & sSingleChar ENDIF Gives 12571234 P.S: Gambas 2.8.2 -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Scegli software opensource - Choose opensource software Co-fondatore di Gambas-it.org Il sito di riferimento della comunit? italiana degli utenti di Gambas www.gambas-it.org From gambas at ...1... Tue Sep 9 01:23:27 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 9 Sep 2008 01:23:27 +0200 Subject: [Gambas-user] LIKE operator bug? In-Reply-To: <200809082250.27404.rospolosco@...152...> References: <200809082250.27404.rospolosco@...152...> Message-ID: <200809090123.27712.gambas@...1...> On lundi 08 septembre 2008, Stefano Palmeri wrote: > I've this code and I want to filter all not-digits from an > alphanumeric string. > > > PUBLIC SUB Main() > > DIM sAllChars, sSingleChar, sFiltered AS String > > sAllChars = "1,2,A,B,C,D,?,?,a,x,?,5,7,G,?,?,$,&,?,1,2,3,4" > > FOR EACH sSingleChar IN Split(sAllChars) > > IF sSingleChar LIKE "[^0-9]" THEN > CONTINUE > ELSE > sFiltered = sFiltered & sSingleChar > ENDIF > > NEXT > > PRINT sFiltered > > END > > > but the result is "12???57???1234". It seems that LIKE gets confused by > some special chars. I don't know whether this is a bug or something else. > > My Gambas version is 2.7.0 > > Saluti, > > Stefano Palmeri > LIKE only deals with ASCII characters, not with UTF-8 strings. In UTF-8 strings, non ASCII-characters are written with several bytes, and so LIKE gets confused. Regards, -- Benoit Minisini From sevoir75 at ...626... Tue Sep 9 09:00:25 2008 From: sevoir75 at ...626... (Sevoir) Date: Tue, 09 Sep 2008 09:00:25 +0200 Subject: [Gambas-user] Gambas 3 compile error Message-ID: <1220943625.6468.9.camel@...1964...> Hi All, I would like compile Gambas3. But I get some error: make[4]: *** [gb_image_la-main.lo] Error 1 make[4]: Leaving directory `/home/sevoir/trunk/gb.image/src' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/home/sevoir/trunk/gb.image' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/sevoir/trunk/gb.image' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/sevoir/trunk' make: *** [all] Error 2 System: Ubuntu Hardy Heron 8.04.1 Can I solve it? Regards, Sevoir From lordheavym at ...626... Tue Sep 9 09:09:45 2008 From: lordheavym at ...626... (Laurent Carlier) Date: Tue, 9 Sep 2008 09:09:45 +0200 Subject: [Gambas-user] Gambas 3 compile error In-Reply-To: <1220943625.6468.9.camel@...1964...> References: <1220943625.6468.9.camel@...1964...> Message-ID: <200809090909.46214.lordheavym@...626...> Le mardi 09 septembre 2008 09:00:25 Sevoir, vous avez ?crit : > Hi All, > > > I would like compile Gambas3. But I get some error: > > make[4]: *** [gb_image_la-main.lo] Error 1 > make[4]: Leaving directory `/home/sevoir/trunk/gb.image/src' > make[3]: *** [all-recursive] Error 1 > make[3]: Leaving directory `/home/sevoir/trunk/gb.image' > make[2]: *** [all] Error 2 > make[2]: Leaving directory `/home/sevoir/trunk/gb.image' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/home/sevoir/trunk' > make: *** [all] Error 2 > > > System: Ubuntu Hardy Heron 8.04.1 > Can I solve it? > > Regards, Sevoir > It's a bit short :-p go in gb.image and do: make > output.txt 2>&1 and pots the content of output.txt (or the file) Regards, From ron at ...1740... Wed Sep 10 15:05:17 2008 From: ron at ...1740... (Ron) Date: Wed, 10 Sep 2008 15:05:17 +0200 Subject: [Gambas-user] Disable closing window with X? Message-ID: <48C7C60D.3030009@...1740...> Hi, is there a way to disable closing a window by using the X in the titlebar? or removing the X? If i use: PUBLIC SUB Form_Close() STOP EVENT END ME.close is also disable ofcourse. I need it for a login window, I only want to accept closing via a buttonpress after some checks... Hmm I can add some logic I guess, and only do a stop event when user is not auth. Regards, Ron_2nd From gambas at ...1... Wed Sep 10 15:24:44 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 10 Sep 2008 15:24:44 +0200 Subject: [Gambas-user] Suggestion for IDE behaviour In-Reply-To: <200809081112.10742.rterry@...1946...> References: <200809081112.10742.rterry@...1946...> Message-ID: <200809101524.44748.gambas@...1...> On lundi 08 septembre 2008, richard terry wrote: > I keep a directory in my project where I keep a text file for changes I > want to make to forms > I note at run-time that like all forms, any file in here is not editable. > > I wondered if it would be possible to allow files not used during the > running of the project to be editable at run-time - as I find I'd like to > make notes as I watch the behaviour of my program, and am unable to do this > because of the above behaviour. > > Regards > > Richard > How can you know that a file won't be used? -- Benoit Minisini From gambas at ...1... Wed Sep 10 15:40:05 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 10 Sep 2008 15:40:05 +0200 Subject: [Gambas-user] Maybe a bug in how Gambas manages open DB connections In-Reply-To: <48C448D2.2040601@...1237...> References: <48C10B15.3000706@...1237...> <200809061052.13673.gambas@...1...> <48C448D2.2040601@...1237...> Message-ID: <200809101540.05821.gambas@...1...> On dimanche 07 septembre 2008, Leonardo Miliani wrote: > Benoit Minisini ha scritto: > > On vendredi 05 septembre 2008, Leonardo Miliani wrote: > >> Ops.... I forgot the version: 2.8.1, but got the same error with > >> previous versions 2.8 and, if I remember correctly, 2.7. > > > > Then please post the actual code that shows your problem. > > > > Thanks. > > English is not my native language so maybe I can not explain the problem > very well. > But it's very easy to understand (don't think at the code, now: just > think in "pseudocode" or logical steps): > > 1) I open a connection named C1 > 2) I get some results from it > 3) I open a new connection named C2 > 4) Just after the point 3), if I try to get some other results from C1, > I get the error the the C1 is not a valid object. I must call another > MySQL query (even with C1.Find or C1.Execute or whatever I want) before > to look for a result. > > I send the complete form (class and gui) that give me the error: not the > complete project (toooooo big, several MBs), not the original DB (tooo > big...). I cannot do anything with that. If you cannot send the full project, please create and send a project that allows me to reproduce the bug. Regards, -- Benoit Minisini From gambas at ...1... Wed Sep 10 15:51:56 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 10 Sep 2008 15:51:56 +0200 Subject: [Gambas-user] Nice book of Gambas In-Reply-To: <200809021042.20035.rospolosco@...152...> References: <48BABD12.6060805@...1400...> <200809021018.48278.gambas@...1938...> <200809021042.20035.rospolosco@...152...> Message-ID: <200809101551.56749.gambas@...1...> On mardi 02 septembre 2008, Stefano Palmeri wrote: > Fabien, bad idea to spread the world with J.R. health conditions. > It's against privacy law on many countries, unless J.R. gave you > permission to do that. I think it's a good idea removing > that message from Gambas online archives. > Benoit, can you do it? > > Best regards, > > Stefano Palmeri > Done. -- Benoit Minisini From gambas at ...1... Wed Sep 10 15:54:54 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 10 Sep 2008 15:54:54 +0200 Subject: [Gambas-user] Feature request In-Reply-To: <19136261.post@...1379...> References: <19136261.post@...1379...> Message-ID: <200809101554.54057.gambas@...1...> On lundi 25 ao?t 2008, jbskaggs wrote: > On the packager utility in gambas- would it be possible to add a feature > so when you create more than one linux flavor installation it asks you for > a new directory for each flavor? > > This would make distribution updates much faster. > > JB Skaggs Can you elaborate? -- Benoit Minisini From lordheavym at ...626... Wed Sep 10 17:00:07 2008 From: lordheavym at ...626... (Laurent Carlier) Date: Wed, 10 Sep 2008 17:00:07 +0200 Subject: [Gambas-user] Disable closing window with X? In-Reply-To: <48C7C60D.3030009@...1740...> References: <48C7C60D.3030009@...1740...> Message-ID: <200809101700.07510.lordheavym@...626...> Le mercredi 10 septembre 2008 15:05:17 Ron, vous avez ?crit : > Hi, > > is there a way to disable closing a window by using the X in the titlebar? > or removing the X? > > If i use: > PUBLIC SUB Form_Close() > > STOP EVENT > > END > > ME.close is also disable ofcourse. > > I need it for a login window, I only want to accept closing via a > buttonpress after some checks... > Hmm I can add some logic I guess, and only do a stop event when user is > not auth. > > Regards, > Ron_2nd > PRIVATE UserNotAuth AS BOOLEAN PUBLIC SUB Form_Close() if NOT UserNotAuth THEN STOP EVENT END Regards, From ron at ...1740... Wed Sep 10 17:06:57 2008 From: ron at ...1740... (Ron) Date: Wed, 10 Sep 2008 17:06:57 +0200 Subject: [Gambas-user] Disable closing window with X? In-Reply-To: <200809101700.07510.lordheavym@...626...> References: <48C7C60D.3030009@...1740...> <200809101700.07510.lordheavym@...626...> Message-ID: <48C7E291.8070607@...1740...> Laurent Carlier schreef: > Le mercredi 10 septembre 2008 15:05:17 Ron, vous avez ?crit : > >> Hi, >> >> is there a way to disable closing a window by using the X in the titlebar? >> or removing the X? >> >> If i use: >> PUBLIC SUB Form_Close() >> >> STOP EVENT >> >> END >> >> ME.close is also disable ofcourse. >> >> I need it for a login window, I only want to accept closing via a >> buttonpress after some checks... >> Hmm I can add some logic I guess, and only do a stop event when user is >> not auth. >> >> Regards, >> Ron_2nd >> >> > > PRIVATE UserNotAuth AS BOOLEAN > > PUBLIC SUB Form_Close() > > if NOT UserNotAuth THEN STOP EVENT > > END > > > Regards, > Yes thanks, That will do just fine! Just after typing my question something like this flashed before my eyes ;-) Regards, Ron. From gambas at ...1938... Wed Sep 10 17:59:31 2008 From: gambas at ...1938... (gambas at ...1938...) Date: Wed, 10 Sep 2008 17:59:31 +0200 Subject: [Gambas-user] Nice book of Gambas In-Reply-To: <200809101551.56749.gambas@...1...> References: <48BABD12.6060805@...1400...> <200809021042.20035.rospolosco@...152...> <200809101551.56749.gambas@...1...> Message-ID: <200809101759.32002.gambas@...1938...> Am Mittwoch, 10. September 2008 15:51:56 schrieb Benoit Minisini: > On mardi 02 septembre 2008, Stefano Palmeri wrote: > > Fabien, bad idea to spread the world with J.R. health conditions. > > It's against privacy law on many countries, unless J.R. gave you > > permission to do that. I think it's a good idea removing > > that message from Gambas online archives. > > Benoit, can you do it? > > > > Best regards, > > > > Stefano Palmeri > > Done. Sorry, for bringing up thist hread. Perhaps missed a mail or didn't understand something between the lines, but....is there still some interest or working active on this topic? Greetz Stevie From ron at ...1740... Wed Sep 10 19:10:58 2008 From: ron at ...1740... (Ron) Date: Wed, 10 Sep 2008 19:10:58 +0200 Subject: [Gambas-user] Menu disable? Message-ID: <48C7FFA2.2020803@...1740...> Hi, Having build login functionality in my application brings up the next challenge ;-) Can you disable a menu, so you see it (greyed out) but can't select anything? I have tried to uncheck Enabled in menu editor, but I see no change. Also setting property like MenuDevices.Enabled = FALSE doesn't change a thing, I can still use it. Hide and Show are working, but enable/disable aren't, any clue(s)? Thanks. Gambas 2.8.1, gb.qt Regards, Ron_2nd. From leonardo at ...1237... Wed Sep 10 23:19:24 2008 From: leonardo at ...1237... (Leonardo Miliani) Date: Wed, 10 Sep 2008 23:19:24 +0200 Subject: [Gambas-user] Menu disable? In-Reply-To: <48C7FFA2.2020803@...1740...> References: <48C7FFA2.2020803@...1740...> Message-ID: <48C839DC.8030005@...1237...> Ron ha scritto: > Hi, > > Having build login functionality in my application brings up the next > challenge ;-) > > Can you disable a menu, so you see it (greyed out) but can't select > anything? > > I have tried to uncheck Enabled in menu editor, but I see no change. > Also setting property like MenuDevices.Enabled = FALSE doesn't change a > thing, I can still use it. > > Hide and Show are working, but enable/disable aren't, any clue(s)? > > Thanks. > > Gambas 2.8.1, gb.qt > > Regards, > Ron_2nd. > Do it by code.... Let's imagine that you have this menus: Menu1 -First -Second Menu2 -Third -Fourth If you want to deselect a voice, just use i.e. First.Enabled = False, if you want to hide it just use First.Visible = False. If you want to hide an entire menu just type in i.e. Menu1.Visible = False. -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Scegli software opensource - Choose opensource software Co-fondatore di Gambas-it.org Il sito di riferimento della comunit? italiana degli utenti di Gambas www.gambas-it.org From leonardo at ...1237... Wed Sep 10 23:46:55 2008 From: leonardo at ...1237... (Leonardo Miliani) Date: Wed, 10 Sep 2008 23:46:55 +0200 Subject: [Gambas-user] Maybe a bug in how Gambas manages open DB connections In-Reply-To: <200809101540.05821.gambas@...1...> References: <48C10B15.3000706@...1237...> <200809061052.13673.gambas@...1...> <48C448D2.2040601@...1237...> <200809101540.05821.gambas@...1...> Message-ID: <48C8404F.10509@...1237...> Benoit Minisini ha scritto: > I cannot do anything with that. If you cannot send the full project, please > create and send a project that allows me to reproduce the bug. > > Regards, > I was creating a little example for you and I was thinking that I got the error... but I didn't! So there is a bug in the project I sent you, or something that Gambas doesn't like... I don't understand... -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Scegli software opensource - Choose opensource software Co-fondatore di Gambas-it.org Il sito di riferimento della comunit? italiana degli utenti di Gambas www.gambas-it.org From gambas at ...1... Thu Sep 11 01:18:46 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 11 Sep 2008 01:18:46 +0200 Subject: [Gambas-user] =?iso-8859-1?q?Maybe_a_bug_in_how_Gambas_manages_op?= =?iso-8859-1?q?en_DB=09connections?= In-Reply-To: <48C8404F.10509@...1237...> References: <48C10B15.3000706@...1237...> <200809101540.05821.gambas@...1...> <48C8404F.10509@...1237...> Message-ID: <200809110118.46611.gambas@...1...> On mercredi 10 septembre 2008, Leonardo Miliani wrote: > Benoit Minisini ha scritto: > > I cannot do anything with that. If you cannot send the full project, > > please create and send a project that allows me to reproduce the bug. > > > > Regards, > > I was creating a little example for you and I was thinking that I got > the error... but I didn't! > So there is a bug in the project I sent you, or something that Gambas > doesn't like... I don't understand... Maybe you should try to send the full project, with the database. If the database is too big, maybe you can just put a few data in it, just what is needed to reproduce the bug. Regards, -- Benoit Minisini From jbskaggs at ...1871... Thu Sep 11 02:29:44 2008 From: jbskaggs at ...1871... (jbskaggs) Date: Wed, 10 Sep 2008 17:29:44 -0700 (PDT) Subject: [Gambas-user] Feature request In-Reply-To: <200809101554.54057.gambas@...1...> References: <19136261.post@...1379...> <200809101554.54057.gambas@...1...> Message-ID: <19425714.post@...1379...> Sure- When I make a package release for say ubuntu, mandrake, debian, fedora, etc and have gambas IDE make all the packages. It places all the make packages in one single directory. When I try and make the packages at seperate times it changes the release number which really complicates tracking the software. And its a pain to manually go back and either change the release number or to try and copy out which files go with which packages and cut and move them. (I almost always end up losing or missing files) If there was a way to have the IDE request a directory for each different package: Right now the IDE asks for one destination directory, but if I could have it ask for a destination dirctory for each type of linux chosen that would help alot. Example: so for ubuntu I could choose: /home/distro/ubuntu for fedora I could choose: /home/distro/fedora etc does that make sense? JB Benoit Minisini wrote: > > On lundi 25 ao?t 2008, jbskaggs wrote: >> On the packager utility in gambas- would it be possible to add a feature >> so when you create more than one linux flavor installation it asks you >> for >> a new directory for each flavor? >> >> This would make distribution updates much faster. >> >> JB Skaggs > > Can you elaborate? > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the > world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://www.nabble.com/Feature-request-tp19136261p19425714.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Thu Sep 11 02:44:57 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 11 Sep 2008 02:44:57 +0200 Subject: [Gambas-user] Feature request In-Reply-To: <19425714.post@...1379...> References: <19136261.post@...1379...> <200809101554.54057.gambas@...1...> <19425714.post@...1379...> Message-ID: <200809110244.57063.gambas@...1...> On jeudi 11 septembre 2008, jbskaggs wrote: > Sure- > > When I make a package release for say ubuntu, mandrake, debian, fedora, etc > and have gambas IDE make all the packages. It places all the make packages > in one single directory. > > When I try and make the packages at seperate times it changes the release > number which really complicates tracking the software. And its a pain to > manually go back and either change the release number or to try and copy > out which files go with which packages and cut and move them. (I almost > always end up losing or missing files) > > If there was a way to have the IDE request a directory for each different > package: > > Right now the IDE asks for one destination directory, but if I could have > it ask for a destination dirctory for each type of linux chosen that would > help alot. > > Example: > > so for ubuntu I could choose: /home/distro/ubuntu > > for fedora I could choose: /home/distro/fedora > > etc > > does that make sense? > > JB > If I add a the sub-directory automatically from the name of the distribution, will it be enough? -- Benoit Minisini From jbskaggs at ...1871... Thu Sep 11 04:09:05 2008 From: jbskaggs at ...1871... (jbskaggs) Date: Wed, 10 Sep 2008 19:09:05 -0700 (PDT) Subject: [Gambas-user] Feature request In-Reply-To: <200809110244.57063.gambas@...1...> References: <19136261.post@...1379...> <200809101554.54057.gambas@...1...> <19425714.post@...1379...> <200809110244.57063.gambas@...1...> Message-ID: <19426571.post@...1379...> Perfect! Thank you. JB Benoit Minisini wrote: > > On jeudi 11 septembre 2008, jbskaggs wrote: >> Sure- >> >> When I make a package release for say ubuntu, mandrake, debian, fedora, >> etc >> and have gambas IDE make all the packages. It places all the make >> packages >> in one single directory. >> >> When I try and make the packages at seperate times it changes the release >> number which really complicates tracking the software. And its a pain to >> manually go back and either change the release number or to try and copy >> out which files go with which packages and cut and move them. (I almost >> always end up losing or missing files) >> >> If there was a way to have the IDE request a directory for each different >> package: >> >> Right now the IDE asks for one destination directory, but if I could have >> it ask for a destination dirctory for each type of linux chosen that >> would >> help alot. >> >> Example: >> >> so for ubuntu I could choose: /home/distro/ubuntu >> >> for fedora I could choose: /home/distro/fedora >> >> etc >> >> does that make sense? >> >> JB >> > > If I add a the sub-directory automatically from the name of the > distribution, > will it be enough? > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the > world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://www.nabble.com/Feature-request-tp19136261p19426571.html Sent from the gambas-user mailing list archive at Nabble.com. From ron at ...1740... Thu Sep 11 16:56:18 2008 From: ron at ...1740... (Ron) Date: Thu, 11 Sep 2008 16:56:18 +0200 Subject: [Gambas-user] Menu disable? In-Reply-To: <48C839DC.8030005@...1237...> References: <48C7FFA2.2020803@...1740...> <48C839DC.8030005@...1237...> Message-ID: <48C93192.7080106@...1740...> Leonardo Miliani schreef: > Ron ha scritto: > >> Hi, >> >> Having build login functionality in my application brings up the next >> challenge ;-) >> >> Can you disable a menu, so you see it (greyed out) but can't select >> anything? >> >> I have tried to uncheck Enabled in menu editor, but I see no change. >> Also setting property like MenuDevices.Enabled = FALSE doesn't change a >> thing, I can still use it. >> >> Hide and Show are working, but enable/disable aren't, any clue(s)? >> >> Thanks. >> >> Gambas 2.8.1, gb.qt >> >> Regards, >> Ron_2nd. >> >> > > Do it by code.... > Let's imagine that you have this menus: > > Menu1 > -First > -Second > Menu2 > -Third > -Fourth > > If you want to deselect a voice, just use i.e. First.Enabled = False, if > you want to hide it just use First.Visible = False. > If you want to hide an entire menu just type in i.e. Menu1.Visible = False. > > Hi, thanks for your reply. The point is that I tried it a few times like you describe and it didn't work, I just tried it again and it worked straight away... I'm stumped.. ;( Regards, Ron_2nd From gambas at ...1938... Fri Sep 12 11:40:36 2008 From: gambas at ...1938... (gambas at ...1938...) Date: Fri, 12 Sep 2008 11:40:36 +0200 Subject: [Gambas-user] Creating a library In-Reply-To: <48BFF30A.7020807@...1909...> References: <200809031056.37408.gambas@...1938...> <200809041557.56508.gambas@...1938...> <48BFF30A.7020807@...1909...> Message-ID: <200809121140.36203.gambas@...1938...> Am Donnerstag, 4. September 2008 16:39:06 schrieb Doriano Blengino: > Make a (dummy?) project with your libray in it; give it a meaningful name. > Edit the library source: put a "EXPORT" alone in a line at the beginning: > > ' Gambas module file > > EXPORT > > PUBLIC SUB printit(st AS String) > > PRINT st > > END > > Run the project, or compile it. > Go to the project properties (General, Options, Components...); in the > "Options" tab set "This project is a component" to YES; further tabs > should appear on the right of the window (Provides and Requires). > Go the tab "Provides", and click on the line starting with your library > name, under the column "Type", and set "Class". > Confirm with "OK". Sorry for bringing up this topic again: I'm using the Gambas development version (snapshot from today). Until this step, all went fine. In the "Provides"-tab, I can see my class, but when I click on it, it isn't marked. Is this my fault or perhaps a bug in the snapshot? Greetz Stevie From gambas at ...1938... Fri Sep 12 12:02:26 2008 From: gambas at ...1938... (gambas at ...1938...) Date: Fri, 12 Sep 2008 12:02:26 +0200 Subject: [Gambas-user] Creating a library In-Reply-To: <200809121140.36203.gambas@...1938...> References: <200809031056.37408.gambas@...1938...> <48BFF30A.7020807@...1909...> <200809121140.36203.gambas@...1938...> Message-ID: <200809121202.27022.gambas@...1938...> Am Freitag, 12. September 2008 11:40:36 schrieb gambas at ...1938...: > Am Donnerstag, 4. September 2008 16:39:06 schrieb Doriano Blengino: > > Make a (dummy?) project with your libray in it; give it a meaningful > > name. Edit the library source: put a "EXPORT" alone in a line at the > > beginning: > > > > ' Gambas module file > > > > EXPORT > > > > PUBLIC SUB printit(st AS String) > > > > PRINT st > > > > END > > > > Run the project, or compile it. > > Go to the project properties (General, Options, Components...); in the > > "Options" tab set "This project is a component" to YES; further tabs > > should appear on the right of the window (Provides and Requires). > > Go the tab "Provides", and click on the line starting with your library > > name, under the column "Type", and set "Class". > > Confirm with "OK". > > Sorry for bringing up this topic again: I'm using the Gambas development > version (snapshot from today). Until this step, all went fine. In > the "Provides"-tab, I can see my class, but when I click on it, it isn't > marked. Is this my fault or perhaps a bug in the snapshot? > > Greetz > Stevie Got it going!!! :-) ...sorry for the noise! Greetz Stevie From kari.laine at ...1400... Fri Sep 12 15:42:38 2008 From: kari.laine at ...1400... (Kari Laine) Date: Fri, 12 Sep 2008 16:42:38 +0300 Subject: [Gambas-user] Control arrays Message-ID: <48CA71CE.7010200@...1400...> Hi, if I use groups of controls how I find out which one was the originating control in events? Best Regards Kari Laine From ron at ...1740... Fri Sep 12 16:11:08 2008 From: ron at ...1740... (Ron) Date: Fri, 12 Sep 2008 16:11:08 +0200 Subject: [Gambas-user] RSSReader fix? Message-ID: <48CA787C.6050609@...1740...> Hi, wanted to build the gambas rss reader from: http://www.beanizer.org/site/index.php/en/Articles/First-steps-with-Gambas-I.html Used is an textview object, is that replaced by an textedit object by any chance? Can't find a textview object even though I have gb.qt.ext enabled. And, when you run it you get this error : "Invalid Object" in the last line below, anybody has got it working? Thanks, have a nice weekend. Regards, Ron_2nd. SUB parseNode(node AS XmlNode) DIM t, t1 AS Integer DIM node1 AS XmlNode DIM buf AS String DIM title, description, item_link AS String FOR t = 0 TO node.Children.Count - 1 node1 = node.Children[t] IF node1.name = "item" THEN From steven at ...1652... Fri Sep 12 17:00:23 2008 From: steven at ...1652... (Steven Lobbezoo) Date: Fri, 12 Sep 2008 17:00:23 +0200 Subject: [Gambas-user] Control arrays In-Reply-To: <48CA71CE.7010200@...1400...> References: <48CA71CE.7010200@...1400...> Message-ID: <1221231623.19462.15.camel@...1973...> .LAST Steven Le vendredi 12 septembre 2008 ? 16:42 +0300, Kari Laine a ?crit : > Hi, > > if I use groups of controls how I find out which one was the originating > control in events? > > Best Regards > Kari Laine > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From klaine8 at ...626... Fri Sep 12 19:10:24 2008 From: klaine8 at ...626... (Kari Laine) Date: Fri, 12 Sep 2008 20:10:24 +0300 Subject: [Gambas-user] Control arrays In-Reply-To: <1221231623.19462.15.camel@...1973...> References: <48CA71CE.7010200@...1400...> <1221231623.19462.15.camel@...1973...> Message-ID: <61452b690809121010m29568dc0tb3e7a26401eefd32@...627...> On Fri, Sep 12, 2008 at 6:00 PM, Steven Lobbezoo wrote: > .LAST > > Steven > > Thanks - got it. Best Regards Kari Laine From ian.roper at ...1974... Sat Sep 13 07:37:22 2008 From: ian.roper at ...1974... (Ian Roper) Date: Sat, 13 Sep 2008 13:37:22 +0800 Subject: [Gambas-user] Select an entry in a combo or list box by keypress - Is there a better way. Message-ID: <1221284243.12055.18.camel@...1975...> Greetings all, I am looking for a better way to locate and select an entry in a combo or list box by pressing a series of keys. I have been able to do this with the following code but there must be a better way. ? It would be nice to have this as a standard method for these sort of controls. :) 'Pressing Esc clears the search string. 'Label_Search displays the current search string. PUBLIC SUB Listbox_KeyPress() DIM Count AS Integer DIM Found AS Boolean DIM SearchLen AS Integer Found = FALSE IF Key.Code = Key.Esc THEN SearchString = "" SearchLen = 0 Label_Search.Text = "No Search" ELSE SearchString = SearchString & UCase(Key.Text) SearchLen = Len(SearchString) Label_Search.text = SearchString ENDIF REPEAT IF UCase(Left(Listbox[Count].Text, SearchLen)) = (SearchString) THEN Found = TRUE END IF INC Count UNTIL Found OR (Count = (Listbox.Count - 1)) IF found THEN Listbox.index = Count - 1 END PUBLIC SUB Listbox_LostFocus() SearchString = "" END Thank you, Ian Roper Western Australia From doriano.blengino at ...1909... Sat Sep 13 09:05:06 2008 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Sat, 13 Sep 2008 09:05:06 +0200 Subject: [Gambas-user] Select an entry in a combo or list box by keypress - Is there a better way. In-Reply-To: <1221284243.12055.18.camel@...1975...> References: <1221284243.12055.18.camel@...1975...> Message-ID: <48CB6622.5020205@...1909...> Ian Roper ha scritto: > Greetings all, > > I am looking for a better way to locate and select an entry in a combo > or list box by pressing a series of keys. > > I have been able to do this with the following code but there must be a > better way. ? > > It would be nice to have this as a standard method for these sort of > controls. :) > > 'Pressing Esc clears the search string. > 'Label_Search displays the current search string. > > PUBLIC SUB Listbox_KeyPress() > DIM Count AS Integer > DIM Found AS Boolean > DIM SearchLen AS Integer > > Found = FALSE > > IF Key.Code = Key.Esc THEN > SearchString = "" > SearchLen = 0 > Label_Search.Text = "No Search" > ELSE > SearchString = SearchString & UCase(Key.Text) > SearchLen = Len(SearchString) > Label_Search.text = SearchString > ENDIF > > REPEAT > IF UCase(Left(Listbox[Count].Text, SearchLen)) = (SearchString) > THEN > Found = TRUE > END IF > INC Count > UNTIL Found OR (Count = (Listbox.Count - 1)) > > IF found THEN Listbox.index = Count - 1 > > END > > PUBLIC SUB Listbox_LostFocus() > > SearchString = "" > > END > It think this method is nice, and I think there is no other way to get the same result. Perhaps I only would add that, if the user presses cursor key movements, then the search string is cleared (what happens if the user presses key down a few times? I think an inconsistency shows up, because the search string shows something, and the combobox shows something else). If you experience some strange behaviour, try to use "STOP EVENT" somewhere before exiting the keypress handler. I have done something similar some time ago, and I had a timer which, after a few seconds (500 ms?) of no typing, cleared automatically the search string - this saves the user to press Esc to clear the string, but it depends a lot on what kind of application you are writing. Then, Benoit said to me that this kind of comparison (if ucase(...) = ....) only works with ascii strings, so more specific string comparison functions should be used. It would be nice to have this search intrinsic in combobox, listbox, treeview and everywhere many strings are present, but it should be excludable, because there can be two problems. First, in some application it could be undesirable, or wanted a little different. For example, in some application, you can press several times the same key, say, "B", and get "Benoit", "Blengino", "Bozo" and so on. The second problem is when the listbox has thousands items inside it - it could get unresponsive, because the search code can take a few (or many) seconds. I don't like long listboxes/comboboxes and I try to manage them in some other way if I suspect they can grow too much, but this is my personal taste. These are just my opinions, many users think differently than me... Best regards, Doriano Blengino From ian.roper at ...1974... Sat Sep 13 09:33:33 2008 From: ian.roper at ...1974... (Ian Roper) Date: Sat, 13 Sep 2008 15:33:33 +0800 Subject: [Gambas-user] Select an entry in a combo or list box by keypress - Is there a better way. In-Reply-To: <48CB6622.5020205@...1909...> References: <1221284243.12055.18.camel@...1975...> <48CB6622.5020205@...1909...> Message-ID: <1221291213.14292.3.camel@...1975...> Doriano, Thank you for your good advice. I like the timer clear idea especially. I will also experiment with cursor controls and see if i can make the code tighter. Cheers mate, Ian On Sat, 2008-09-13 at 09:05 +0200, Doriano Blengino wrote: > Ian Roper ha scritto: > > Greetings all, > > > > I am looking for a better way to locate and select an entry in a combo > > or list box by pressing a series of keys. > > > > I have been able to do this with the following code but there must be a > > better way. ? > > > > It would be nice to have this as a standard method for these sort of > > controls. :) > > > > 'Pressing Esc clears the search string. > > 'Label_Search displays the current search string. > > > > PUBLIC SUB Listbox_KeyPress() > > DIM Count AS Integer > > DIM Found AS Boolean > > DIM SearchLen AS Integer > > > > Found = FALSE > > > > IF Key.Code = Key.Esc THEN > > SearchString = "" > > SearchLen = 0 > > Label_Search.Text = "No Search" > > ELSE > > SearchString = SearchString & UCase(Key.Text) > > SearchLen = Len(SearchString) > > Label_Search.text = SearchString > > ENDIF > > > > REPEAT > > IF UCase(Left(Listbox[Count].Text, SearchLen)) = (SearchString) > > THEN > > Found = TRUE > > END IF > > INC Count > > UNTIL Found OR (Count = (Listbox.Count - 1)) > > > > IF found THEN Listbox.index = Count - 1 > > > > END > > > > PUBLIC SUB Listbox_LostFocus() > > > > SearchString = "" > > > > END > > > It think this method is nice, and I think there is no other way to get > the same result. Perhaps I only would add that, if the user presses > cursor key movements, then the search string is cleared (what happens if > the user presses key down a few times? I think an inconsistency shows > up, because the search string shows something, and the combobox shows > something else). > If you experience some strange behaviour, try to use "STOP EVENT" > somewhere before exiting the keypress handler. > > I have done something similar some time ago, and I had a timer which, > after a few seconds (500 ms?) of no typing, cleared automatically the > search string - this saves the user to press Esc to clear the string, > but it depends a lot on what kind of application you are writing. Then, > Benoit said to me that this kind of comparison (if ucase(...) = ....) > only works with ascii strings, so more specific string comparison > functions should be used. > > It would be nice to have this search intrinsic in combobox, listbox, > treeview and everywhere many strings are present, but it should be > excludable, because there can be two problems. First, in some > application it could be undesirable, or wanted a little different. For > example, in some application, you can press several times the same key, > say, "B", and get "Benoit", "Blengino", "Bozo" and so on. The second > problem is when the listbox has thousands items inside it - it could get > unresponsive, because the search code can take a few (or many) seconds. > I don't like long listboxes/comboboxes and I try to manage them in some > other way if I suspect they can grow too much, but this is my personal > taste. > > These are just my opinions, many users think differently than me... > > Best regards, > Doriano Blengino > > > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Sat Sep 13 15:15:55 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 13 Sep 2008 15:15:55 +0200 Subject: [Gambas-user] =?iso-8859-1?q?Select_an_entry_in_a_combo_or_list_b?= =?iso-8859-1?q?ox_by_keypress_-_Is_there_a=09better_way=2E?= In-Reply-To: <1221284243.12055.18.camel@...1975...> References: <1221284243.12055.18.camel@...1975...> Message-ID: <200809131515.55413.gambas@...1...> On samedi 13 septembre 2008, Ian Roper wrote: > It would be nice to have this as a standard method for these sort of > controls. :) > You can actually do that easily in your own projects by reimplementing these controls. For example, for the ListBox, creates a "ListBox" class in your project, and put that in it: --8<-- ListBox.class ---------------------------------------------- EXPORT PRIVATE $hObserver AS Observer PUBLIC SUB _new() $hObserver = NEW Observer(ME) AS "ListBox" END PUBLIC SUB ListBox_KeyPress() ' Put your code there ... END PUBLIC SUB ListBox_LostFocus() ' Put your code there ... END ------------------------------------------------------------------- Normally (I didn't test!), all ListBox controls will gain your key management automatically. Then you can do that for other controls if you want. If it does not work, it should be a bug in Gambas! And, as Doriano said, UCase() works only with ASCII strings. So you should use String.UCase() instead, which deals with UTF-8 strings. Regards, -- Benoit Minisini From klaine8 at ...626... Sat Sep 13 15:41:25 2008 From: klaine8 at ...626... (Kari Laine) Date: Sat, 13 Sep 2008 16:41:25 +0300 Subject: [Gambas-user] Select an entry in a combo or list box by keypress - Is there a better way. In-Reply-To: <200809131515.55413.gambas@...1...> References: <1221284243.12055.18.camel@...1975...> <200809131515.55413.gambas@...1...> Message-ID: <61452b690809130641r7b8d2142je8f1370efe562e93@...627...> On Sat, Sep 13, 2008 at 4:15 PM, Benoit Minisini < gambas at ...1...> wrote: > On samedi 13 septembre 2008, Ian Roper wrote: > > It would be nice to have this as a standard method for these sort of > > controls. :) > > > Hi Benoit, I am here learning Gambas...I have some questions - don't answer if you too busy with improving Gambas :-) > > You can actually do that easily in your own projects by reimplementing > these > controls. Could you write little more about this reimpiementing controls? I don't understand it at all :-( So if you make a class with a same name as the control it get's instantiated first - how then it is connected to the standard control - by the observer? > > > For example, for the ListBox, creates a "ListBox" class in your project, > and > put that in it: > > --8<-- ListBox.class ---------------------------------------------- > > EXPORT Why is this EXPORT needed? > > > PRIVATE $hObserver AS Observer > > PUBLIC SUB _new() > > $hObserver = NEW Observer(ME) AS "ListBox" > > END Could you explain once and for all this observer-thingy. I know there is something like that in C# and Java but I never understood it properly. Does it have something to do with observer design pattern - which I also don't understand as of yet. How events propagate when you have this own ListBox-class. They first go to your class but how the real thing is connected? Sorry for stupid question which might be obvious... Best Regards Kari Laine > > PUBLIC SUB ListBox_KeyPress() > > ' Put your code there > ... > > END > > PUBLIC SUB ListBox_LostFocus() > > ' Put your code there > ... > > END > > From klaine8 at ...626... Sat Sep 13 17:33:39 2008 From: klaine8 at ...626... (Kari Laine) Date: Sat, 13 Sep 2008 18:33:39 +0300 Subject: [Gambas-user] Select an entry in a combo or list box by keypress - Is there a better way. In-Reply-To: <61452b690809130641r7b8d2142je8f1370efe562e93@...627...> References: <1221284243.12055.18.camel@...1975...> <200809131515.55413.gambas@...1...> <61452b690809130641r7b8d2142je8f1370efe562e93@...627...> Message-ID: <61452b690809130833l5ba4c72yfc9600e70f8f7db0@...627...> Hi, i am trying to understand this observer. I include a little project that I tested with. PUBLIC SUB Form_Open() 'ListBox1.Add("box1row1") 'ListBox1.Add("box1row2") 'ListBox1.Add("box1row3") if these lines are uncommented the observer ceases to work. I cannot get the focus to move so that LostFocus would be triggered. I tried to make observer to react on TextBox events without success. Heading to Gambas-ide to find example .... Best Regards Kari Laine -------------- next part -------------- A non-text attachment was scrubbed... Name: observer1.tar.gz Type: application/x-gzip Size: 649 bytes Desc: not available URL: From gambas at ...1... Sat Sep 13 17:39:28 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 13 Sep 2008 17:39:28 +0200 Subject: [Gambas-user] Select an entry in a combo or list box by keypress - Is there a better way. In-Reply-To: <61452b690809130833l5ba4c72yfc9600e70f8f7db0@...627...> References: <1221284243.12055.18.camel@...1975...> <61452b690809130641r7b8d2142je8f1370efe562e93@...627...> <61452b690809130833l5ba4c72yfc9600e70f8f7db0@...627...> Message-ID: <200809131739.28501.gambas@...1...> On samedi 13 septembre 2008, Kari Laine wrote: > Hi, > > i am trying to understand this observer. I include a little project that I > tested with. > > PUBLIC SUB Form_Open() > 'ListBox1.Add("box1row1") > 'ListBox1.Add("box1row2") > 'ListBox1.Add("box1row3") > > if these lines are uncommented the observer ceases to work. > > I cannot get the focus to move so that LostFocus would be triggered. > > I tried to make observer to react on TextBox events without success. > > Heading to Gambas-ide to find example .... > > Best Regards > Kari Laine I cannot read your attachment: if you want to make an archive of a Gambas project, there is a menu entry for that in the IDE. Regards, -- Benoit Minisini From gambas at ...1... Sat Sep 13 17:44:10 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 13 Sep 2008 17:44:10 +0200 Subject: [Gambas-user] Select an entry in a combo or list box by keypress - Is there a better way. In-Reply-To: <61452b690809130833l5ba4c72yfc9600e70f8f7db0@...627...> References: <1221284243.12055.18.camel@...1975...> <61452b690809130641r7b8d2142je8f1370efe562e93@...627...> <61452b690809130833l5ba4c72yfc9600e70f8f7db0@...627...> Message-ID: <200809131744.10914.gambas@...1...> On samedi 13 septembre 2008, Kari Laine wrote: > Hi, > > i am trying to understand this observer. I include a little project that I > tested with. > > PUBLIC SUB Form_Open() > 'ListBox1.Add("box1row1") > 'ListBox1.Add("box1row2") > 'ListBox1.Add("box1row3") > > if these lines are uncommented the observer ceases to work. > > I cannot get the focus to move so that LostFocus would be triggered. > > I tried to make observer to react on TextBox events without success. > > Heading to Gambas-ide to find example .... > > Best Regards > Kari Laine I finally succeeded in reading your attachment. You didn't do what I told Ian Ropper. The class in your project must be named "ListBox", and be exported, so that you overrides the default ListBox class. You are exporting a form of your project, which is useless. I suggest you read the document on the wiki about the Gambas object model. I will update it to add more explanation about the Observer class, but everything done by this class is explained in its page documentation. Regards, -- Benoit Minisini From pastrano at ...431... Sun Sep 14 15:37:00 2008 From: pastrano at ...431... (Gianni Piccini) Date: Sun, 14 Sep 2008 15:37:00 +0200 Subject: [Gambas-user] Listview (simple?) problem Message-ID: <48CD137C.8090708@...431...> Probably is a stupid question, but I can't resolve without help, due I'm a newbie. I've got a listview, where I add some items: for example, aaa bbb ccc ddd I need to select an item, for example "ccc", and then move with the previous. I think that first thing I need is to get the index number of selected item ccc (in this case, 2), and then get the text, get the text of item 1, bbb, then change the value or delete the previous and readd after. In visual basic, if I don't err, there was the listindex property... What can I do? Tia From sevoir75 at ...626... Mon Sep 15 08:31:41 2008 From: sevoir75 at ...626... (Sevoir) Date: Mon, 15 Sep 2008 08:31:41 +0200 Subject: [Gambas-user] create pdf Message-ID: <1221460301.6511.13.camel@...1964...> Hi All, I tried creating a pdf file but not success :S Can anyone help me with a simple method? Regards, Sevoir From eilert-sprachen at ...221... Mon Sep 15 08:43:12 2008 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Mon, 15 Sep 2008 08:43:12 +0200 Subject: [Gambas-user] create pdf In-Reply-To: <1221460301.6511.13.camel@...1964...> References: <1221460301.6511.13.camel@...1964...> Message-ID: <48CE0400.2080501@...221...> Sevoir schrieb: > Hi All, > > > I tried creating a pdf file but not success :S > Can anyone help me with a simple method? > > Regards, Sevoir > Just an idea: can't you write everything into a file and then call kprinter with an option to make a pdf out of it? I'm using kprinter for printing from Gambas here, so I know it should do at least :-) Rolf From sevoir75 at ...626... Mon Sep 15 08:54:02 2008 From: sevoir75 at ...626... (Sevoir) Date: Mon, 15 Sep 2008 08:54:02 +0200 Subject: [Gambas-user] create pdf In-Reply-To: <48CE0400.2080501@...221...> References: <1221460301.6511.13.camel@...1964...> <48CE0400.2080501@...221...> Message-ID: <1221461642.6511.20.camel@...1964...> I would like: - the user fill out a request form (this okay) - pressing a button (this okay) - generating a pdf file (this is not okay) - storing on server (this okay, if pdf isset) - printing pdf file automatic (this not okay) I tried using a qb.pdf and fpdf but not working... Regards, Sevoir 2008. 09. 15, h?tf? keltez?ssel 08.43-kor Rolf-Werner Eilert ezt ?rta: > Sevoir schrieb: > > Hi All, > > > > > > I tried creating a pdf file but not success :S > > Can anyone help me with a simple method? > > > > Regards, Sevoir > > > > > Just an idea: can't you write everything into a file and then call > kprinter with an option to make a pdf out of it? > > I'm using kprinter for printing from Gambas here, so I know it should do > at least :-) > > Rolf > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From doriano.blengino at ...1909... Mon Sep 15 10:28:00 2008 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Mon, 15 Sep 2008 10:28:00 +0200 Subject: [Gambas-user] Listview (simple?) problem In-Reply-To: <48CD137C.8090708@...431...> References: <48CD137C.8090708@...431...> Message-ID: <48CE1C90.7010809@...1909...> Gianni Piccini ha scritto: > Probably is a stupid question, but I can't resolve without help, due I'm a > newbie. > I've got a listview, where I add some items: for example, > > aaa > bbb > ccc > ddd > > I need to select an item, for example "ccc", and then move with the > previous. I think that first thing I need is to get the index number of > selected item ccc (in this case, 2), and then get the text, get the text of > item 1, bbb, then change the value or delete the previous and readd after. > In visual basic, if I don't err, there was the listindex property... > What can I do? > Tia > Look with great attention at the help page for Listview, inside "gb.qt". In there you will find all the informations you need. Sorry for not being able to be more helpful - I have not the documentation at hand right now but, perhaps, you didn't think to look in there... Cheers, Doriano Blengino From rospolosco at ...152... Mon Sep 15 10:41:28 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Mon, 15 Sep 2008 10:41:28 +0200 Subject: [Gambas-user] create pdf In-Reply-To: <1221460301.6511.13.camel@...1964...> References: <1221460301.6511.13.camel@...1964...> Message-ID: <200809151041.28872.rospolosco@...152...> Il luned? 15 settembre 2008 08:31:41 Sevoir ha scritto: > Hi All, > > > I tried creating a pdf file but not success :S > Can anyone help me with a simple method? > > Regards, Sevoir > A little example is attached. Saluti, Stefano > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge Build the coolest Linux based applications with Moblin SDK & win > great prizes Grand prize is a trip for two to an Open Source event anywhere > in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -------------- next part -------------- A non-text attachment was scrubbed... Name: pdf-generate-0.0.1.tar.gz Type: application/x-tgz Size: 7991 bytes Desc: not available URL: From rterry at ...1946... Fri Sep 12 13:45:27 2008 From: rterry at ...1946... (richard terry) Date: Fri, 12 Sep 2008 21:45:27 +1000 Subject: [Gambas-user] Setting the title of a message box Message-ID: <200809122145.27960.rterry@...1946...> 1) is this possible 2) Could I suggest that I (or someone with permission/telling me how) insert a simple example in the page: file:///usr/share/gambas3/help/help/comp/gb+qt/message.html for dummes like me such as Example: Select Message.Warning("Delete everything?" , "Yes", "No") Case 1 Debug "ok, deleting everything" Case 2 Debug "not deleting anything" End Select Rationale: Dummies like me (and newbies) need concrete examples on the help pages. From rterry at ...1946... Fri Sep 12 15:23:50 2008 From: rterry at ...1946... (richard terry) Date: Fri, 12 Sep 2008 23:23:50 +1000 Subject: [Gambas-user] A Dim syntax question Message-ID: <200809122323.51013.rterry@...1946...> If one types in a subroutine Dim pn As cProgressNote pn = New cProgressNote could one just do it in one hit without consquences? Dim pn as New cProgressNote? Regards Richard From sevoir75 at ...626... Mon Sep 15 12:23:51 2008 From: sevoir75 at ...626... (Sevoir) Date: Mon, 15 Sep 2008 12:23:51 +0200 Subject: [Gambas-user] create pdf In-Reply-To: <200809151041.28872.rospolosco@...152...> References: <1221460301.6511.13.camel@...1964...> <200809151041.28872.rospolosco@...152...> Message-ID: <1221474231.6511.21.camel@...1964...> Thx Stefano, this is very big help me. This work. Regards, Norbert 2008. 09. 15, h?tf? keltez?ssel 10.41-kor Stefano Palmeri ezt ?rta: > Il luned? 15 settembre 2008 08:31:41 Sevoir ha scritto: > > Hi All, > > > > > > I tried creating a pdf file but not success :S > > Can anyone help me with a simple method? > > > > Regards, Sevoir > > > > A little example is attached. > > Saluti, > > Stefano > > > > > ------------------------------------------------------------------------- > > This SF.Net email is sponsored by the Moblin Your Move Developer's > > challenge Build the coolest Linux based applications with Moblin SDK & win > > great prizes Grand prize is a trip for two to an Open Source event anywhere > > in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ > > _______________________________________________ > > 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 the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From eilert-sprachen at ...221... Mon Sep 15 18:00:17 2008 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Mon, 15 Sep 2008 18:00:17 +0200 Subject: [Gambas-user] UTF-8 in ListBox and ComboBox - Gambas1 Message-ID: <48CE8691.6010403@...221...> Hi folks, just a short question on UTF-8: in a Gambas 1 project, I've got a ListBox and a ComboBox, both with the same contents: a short list of names like A 08 or C 07. One of them is "? 08". The Listbox and the ComboBox both show these items correctly on screen. But when I read out the "? 08" from the ComboBox (ComboBox.Current.Text), the text isn't delivered correctly into the internal string. The ListBox however does deliver it correctly, so it's still a "? 08". What would you do to get a correctly made up string from the ComboBox? The problem is that I have to make a path from it like "/this/there" &/ theString & ".ending" where the theString results in some ".. 08" instead of "? 08" when it's read from the ComboBox. Thanks for your help. Rolf From gambas at ...1... Mon Sep 15 18:17:43 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 15 Sep 2008 18:17:43 +0200 Subject: [Gambas-user] UTF-8 in ListBox and ComboBox - Gambas1 In-Reply-To: <48CE8691.6010403@...221...> References: <48CE8691.6010403@...221...> Message-ID: <200809151817.43924.gambas@...1...> On lundi 15 septembre 2008, Rolf-Werner Eilert wrote: > Hi folks, > > just a short question on UTF-8: in a Gambas 1 project, I've got a > ListBox and a ComboBox, both with the same contents: a short list of > names like A 08 or C 07. > > One of them is "? 08". The Listbox and the ComboBox both show these > items correctly on screen. But when I read out the "? 08" from the > ComboBox (ComboBox.Current.Text), the text isn't delivered correctly > into the internal string. The ListBox however does deliver it correctly, > so it's still a "? 08". > > > What would you do to get a correctly made up string from the ComboBox? > The problem is that I have to make a path from it like > > "/this/there" &/ theString & ".ending" > > where the theString results in some ".. 08" instead of "? 08" when it's > read from the ComboBox. > > Thanks for your help. > > Rolf > Well done: you have found a bug there since the beginning! But it will only be fixed in Gambas2... Note that the ComboBox.Text property does not have the bug, so maybe you can use that to find a workaround... Regards, -- Benoit Minisini From eilert-sprachen at ...221... Tue Sep 16 08:18:04 2008 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Tue, 16 Sep 2008 08:18:04 +0200 Subject: [Gambas-user] UTF-8 in ListBox and ComboBox - Gambas1 In-Reply-To: <200809151817.43924.gambas@...1...> References: <48CE8691.6010403@...221...> <200809151817.43924.gambas@...1...> Message-ID: <48CF4F9C.4070500@...221...> Benoit Minisini schrieb: > On lundi 15 septembre 2008, Rolf-Werner Eilert wrote: >> Hi folks, >> >> just a short question on UTF-8: in a Gambas 1 project, I've got a >> ListBox and a ComboBox, both with the same contents: a short list of >> names like A 08 or C 07. >> >> One of them is "? 08". The Listbox and the ComboBox both show these >> items correctly on screen. But when I read out the "? 08" from the >> ComboBox (ComboBox.Current.Text), the text isn't delivered correctly >> into the internal string. The ListBox however does deliver it correctly, >> so it's still a "? 08". >> >> >> What would you do to get a correctly made up string from the ComboBox? >> The problem is that I have to make a path from it like >> >> "/this/there" &/ theString & ".ending" >> >> where the theString results in some ".. 08" instead of "? 08" when it's >> read from the ComboBox. >> >> Thanks for your help. >> >> Rolf >> > > Well done: you have found a bug there since the beginning! > > But it will only be fixed in Gambas2... > > Note that the ComboBox.Text property does not have the bug, so maybe you can > use that to find a workaround... > > Regards, > Cool - found a bug :-) About your note: it's the ComboBox that gives the faulty string; the ListBox gives UTF-8 correctly. So the ComboBox has the bug??? Anyway, thinking it over, I had the idea to use a separate list (array) with correct values and only use the index property of the ComboBox to point to it. So I'll be back at my own philosophy of "never use UI elements for storage" but keep UI and data strictly apart. Regards Rolf From doriano.blengino at ...1909... Tue Sep 16 08:43:06 2008 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Tue, 16 Sep 2008 08:43:06 +0200 Subject: [Gambas-user] UTF-8 in ListBox and ComboBox - Gambas1 In-Reply-To: <48CF4F9C.4070500@...221...> References: <48CE8691.6010403@...221...> <200809151817.43924.gambas@...1...> <48CF4F9C.4070500@...221...> Message-ID: <48CF557A.6010209@...1909...> Rolf-Werner Eilert ha scritto: > Anyway, thinking it over, I had the idea to use a separate list (array) > with correct values and only use the index property of the ComboBox to > point to it. So I'll be back at my own philosophy of "never use UI > elements for storage" but keep UI and data strictly apart. > Could you explain better why you think "never use UI to store data"? I am not sure why, but I always thought the same. Just now I am writing a piece of code which makes heavy use of UI elements to store internal data (which the user can edit, of course), and I have an uneasy feeling... but can't focus on it... Surely, it is not good to involve X server (and the toolkits in the middle) to store data, but how much they are involved? May be everything is cached in "gambas memory". If this is the case, then shadowing everything could be pretty useless, and lead instead to logic errors. I must add that I am working with plain ascii strings. Regards, Doriano Blengino From sevoir75 at ...626... Tue Sep 16 08:59:10 2008 From: sevoir75 at ...626... (Sevoir) Date: Tue, 16 Sep 2008 08:59:10 +0200 Subject: [Gambas-user] UTF-8 in ListBox and ComboBox - Gambas1 In-Reply-To: <48CF557A.6010209@...1909...> References: <48CE8691.6010403@...221...> <200809151817.43924.gambas@...1...> <48CF4F9C.4070500@...221...> <48CF557A.6010209@...1909...> Message-ID: <1221548350.6675.4.camel@...1964...> Hi All, The hungarian language contains very special chars.. We testing programs the following string: "?rv?zt?r? T?K?RF?R?G?P" this string contains all special chars :-) Regards, Norbert 2008. 09. 16, kedd keltez?ssel 08.43-kor Doriano Blengino ezt ?rta: > Rolf-Werner Eilert ha scritto: > > Anyway, thinking it over, I had the idea to use a separate list (array) > > with correct values and only use the index property of the ComboBox to > > point to it. So I'll be back at my own philosophy of "never use UI > > elements for storage" but keep UI and data strictly apart. > > > Could you explain better why you think "never use UI to store data"? > > I am not sure why, but I always thought the same. Just now I am writing > a piece of code which makes heavy use of UI elements to store internal > data (which the user can edit, of course), and I have an uneasy > feeling... but can't focus on it... > > Surely, it is not good to involve X server (and the toolkits in the > middle) to store data, but how much they are involved? May be everything > is cached in "gambas memory". If this is the case, then shadowing > everything could be pretty useless, and lead instead to logic errors. I > must add that I am working with plain ascii strings. > > Regards, > Doriano Blengino > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From sevoir75 at ...626... Tue Sep 16 09:58:43 2008 From: sevoir75 at ...626... (Sevoir) Date: Tue, 16 Sep 2008 09:58:43 +0200 Subject: [Gambas-user] error at making deb package Message-ID: <1221551923.6675.12.camel@...1964...> Hi All, when I would like create ubuntu deb package I got some error: deb, not created.. :S What is problem? Gambas2.5 Ubuntu Hardy Heron 8.04.1 src/xxx/.gambas dh_testdir debian/rules build touch build-stamp /usr/bin/gbc2 -a src/xxx gbc: project file not found: /home/sevoir/xxx/.project make: *** [build-stamp] Error 1 dpkg-buildpackage: failure: debian/rules build gave error exit status 2 Regards, Sevoir From ariefbayu at ...626... Tue Sep 16 10:04:50 2008 From: ariefbayu at ...626... (Arief Bayu Purwanto) Date: Tue, 16 Sep 2008 15:04:50 +0700 Subject: [Gambas-user] Gambas Scripting Problem Message-ID: <976ad9050809160104n162eb82bn8437325975d4a5d8@...627...> Dear All, Currently, I'm trying to connect to a GSM modem on server. This is a headless server, so there's no way for me to access it's GUI. All I have is console:(. For this purpose, I'm trying to test serial port example: -----------------' Gambas module file DIM Sport AS NEW SerialPort Sport.Speed = "115200" Sport.PortName = "/dev/ttyUSB0" Sport.Parity = 0 Sport.DataBits = "8" Sport.StopBits = "1" ' keep DTR on Sport.FlowControl = 0 Sport.Open() PRINT Sport.DSR PRINT Sport.DTR PRINT Sport.CTS PRINT Sport.RTS PRINT Sport.DCD PRINT Sport.RNG ------------ But, when I run it on console, all i've got is this error: silent at ...1976...:~/latihan$ gbs2 gbserial.gbs CComponent.CalcSortKey.175: #13: Null object 0: CComponent.CalcSortKey.175 1: CComponent.SortComponents.205 2: CComponent._init.124 3: MMain.MakeVirtualProject.151 4: MMain.Main.61 Someone has a solution or some heads up to some resource? Any help appreciated, thank you. -- Arief Bayu Purwanto About : http://about.freelancer.web.id/ Blog : http://bayu.freelancer.web.id/ From gambas at ...1... Tue Sep 16 10:16:41 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 16 Sep 2008 10:16:41 +0200 Subject: [Gambas-user] Gambas Scripting Problem In-Reply-To: <976ad9050809160104n162eb82bn8437325975d4a5d8@...627...> References: <976ad9050809160104n162eb82bn8437325975d4a5d8@...627...> Message-ID: <200809161016.41230.gambas@...1...> On mardi 16 septembre 2008, Arief Bayu Purwanto wrote: > Dear All, > > Currently, I'm trying to connect to a GSM modem on server. This is a > headless server, so there's no way for me to access it's GUI. All I have is > console:(. > > For this purpose, I'm trying to test serial port example: > > -----------------' Gambas module file > > DIM Sport AS NEW SerialPort > > Sport.Speed = "115200" > Sport.PortName = "/dev/ttyUSB0" > Sport.Parity = 0 > Sport.DataBits = "8" > Sport.StopBits = "1" > ' keep DTR on > Sport.FlowControl = 0 > Sport.Open() > > > PRINT Sport.DSR > PRINT Sport.DTR > PRINT Sport.CTS > PRINT Sport.RTS > PRINT Sport.DCD > PRINT Sport.RNG > ------------ > But, when I run it on console, all i've got is this error: > > silent at ...1976...:~/latihan$ gbs2 gbserial.gbs > CComponent.CalcSortKey.175: #13: Null object > 0: CComponent.CalcSortKey.175 > 1: CComponent.SortComponents.205 > 2: CComponent._init.124 > 3: MMain.MakeVirtualProject.151 > 4: MMain.Main.61 > > Someone has a solution or some heads up to some resource? > Any help appreciated, > thank you. Please post your script file. Regards, -- Benoit Minisini From ariefbayu at ...626... Tue Sep 16 10:58:08 2008 From: ariefbayu at ...626... (Arief Bayu Purwanto) Date: Tue, 16 Sep 2008 15:58:08 +0700 Subject: [Gambas-user] Gambas Scripting Problem In-Reply-To: <200809161016.41230.gambas@...1...> References: <976ad9050809160104n162eb82bn8437325975d4a5d8@...627...> <200809161016.41230.gambas@...1...> Message-ID: <976ad9050809160158s4d012046x28b0f35f5ac02995@...627...> ----------------- ' Gambas module file DIM Sport AS NEW SerialPort Sport.Speed = "115200" Sport.PortName = "/dev/ttyUSB0" Sport.Parity = 0 Sport.DataBits = "8" Sport.StopBits = "1" ' keep DTR on Sport.FlowControl = 0 Sport.Open() PRINT Sport.DSR PRINT Sport.DTR PRINT Sport.CTS PRINT Sport.RTS PRINT Sport.DCD PRINT Sport.RNG --------------- that's all. Nothing more. I just want to test open the SerialPort before move to actual development. On 9/16/08, Benoit Minisini wrote: > > On mardi 16 septembre 2008, Arief Bayu Purwanto wrote: > > Dear All, > > > > Currently, I'm trying to connect to a GSM modem on server. This is a > > headless server, so there's no way for me to access it's GUI. All I have > is > > console:(. > > > > For this purpose, I'm trying to test serial port example: > > > > -----------------' Gambas module file > > > > DIM Sport AS NEW SerialPort > > > > Sport.Speed = "115200" > > Sport.PortName = "/dev/ttyUSB0" > > Sport.Parity = 0 > > Sport.DataBits = "8" > > Sport.StopBits = "1" > > ' keep DTR on > > Sport.FlowControl = 0 > > Sport.Open() > > > > > > PRINT Sport.DSR > > PRINT Sport.DTR > > PRINT Sport.CTS > > PRINT Sport.RTS > > PRINT Sport.DCD > > PRINT Sport.RNG > > ------------ > > But, when I run it on console, all i've got is this error: > > > > silent at ...1976...:~/latihan$ gbs2 gbserial.gbs > > CComponent.CalcSortKey.175: #13: Null object > > 0: CComponent.CalcSortKey.175 > > 1: CComponent.SortComponents.205 > > 2: CComponent._init.124 > > 3: MMain.MakeVirtualProject.151 > > 4: MMain.Main.61 > > > > Someone has a solution or some heads up to some resource? > > Any help appreciated, > > thank you. > > > Please post your script file. > > Regards, > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Arief Bayu Purwanto About : http://about.freelancer.web.id/ Blog : http://bayu.freelancer.web.id/ -------------- next part -------------- A non-text attachment was scrubbed... Name: gbserial.gbs Type: application/octet-stream Size: 312 bytes Desc: not available URL: From gambas at ...1... Tue Sep 16 11:07:17 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 16 Sep 2008 11:07:17 +0200 Subject: [Gambas-user] Gambas Scripting Problem In-Reply-To: <976ad9050809160158s4d012046x28b0f35f5ac02995@...627...> References: <976ad9050809160104n162eb82bn8437325975d4a5d8@...627...> <200809161016.41230.gambas@...1...> <976ad9050809160158s4d012046x28b0f35f5ac02995@...627...> Message-ID: <200809161107.17860.gambas@...1...> On mardi 16 septembre 2008, Arief Bayu Purwanto wrote: > ----------------- > ' Gambas module file > > DIM Sport AS NEW SerialPort > > Sport.Speed = "115200" > Sport.PortName = "/dev/ttyUSB0" > Sport.Parity = 0 > Sport.DataBits = "8" > Sport.StopBits = "1" > ' keep DTR on > Sport.FlowControl = 0 > Sport.Open() > > > PRINT Sport.DSR > PRINT Sport.DTR > PRINT Sport.CTS > PRINT Sport.RTS > PRINT Sport.DCD > PRINT Sport.RNG > --------------- > that's all. > > Nothing more. I just want to test open the SerialPort before move to actual > development. > Try to put "USE gb.net" at the beginning of the script, to tell the scripter that the gb.net component is needed. Regards, -- Benoit Minisini From ariefbayu at ...626... Tue Sep 16 11:17:09 2008 From: ariefbayu at ...626... (Arief Bayu Purwanto) Date: Tue, 16 Sep 2008 16:17:09 +0700 Subject: [Gambas-user] Gambas Scripting Problem In-Reply-To: <200809161107.17860.gambas@...1...> References: <976ad9050809160104n162eb82bn8437325975d4a5d8@...627...> <200809161016.41230.gambas@...1...> <976ad9050809160158s4d012046x28b0f35f5ac02995@...627...> <200809161107.17860.gambas@...1...> Message-ID: <976ad9050809160217s3dba6597n8e7774ee8c916234@...627...> > > Try to put "USE gb.net" at the beginning of the script, to tell the > scripter > that the gb.net component is needed. Still got this error: CComponent.CalcSortKey.175: #13: Null object 0: CComponent.CalcSortKey.175 1: CComponent.SortComponents.205 2: CComponent._init.124 3: MMain.GenerateFiles.234 4: MMain.MakeVirtualProject.140 5: MMain.Main.61 FYI: I use the source 2.8.2 from gambas download page. with this configure command: ./configure --disable-gtk --disable-qt --disable-kde --disable-sdl --disable-dslsound --disable-opengl --disable-desktop -- Arief Bayu Purwanto About : http://about.freelancer.web.id/ Blog : http://bayu.freelancer.web.id/ From ariefbayu at ...626... Tue Sep 16 11:58:43 2008 From: ariefbayu at ...626... (Arief Bayu Purwanto) Date: Tue, 16 Sep 2008 16:58:43 +0700 Subject: [Gambas-user] Gambas Scripting Problem In-Reply-To: <976ad9050809160217s3dba6597n8e7774ee8c916234@...627...> References: <976ad9050809160104n162eb82bn8437325975d4a5d8@...627...> <200809161016.41230.gambas@...1...> <976ad9050809160158s4d012046x28b0f35f5ac02995@...627...> <200809161107.17860.gambas@...1...> <976ad9050809160217s3dba6597n8e7774ee8c916234@...627...> Message-ID: <976ad9050809160258o5611d26fjf6cfe422d2bf908b@...627...> Just a file with: -------- PRINT "HELLO TEST WORLD!" -------- result the same error message. -- Arief Bayu Purwanto About : http://about.freelancer.web.id/ Blog : http://bayu.freelancer.web.id/ From gambas at ...1... Tue Sep 16 14:20:38 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 16 Sep 2008 14:20:38 +0200 Subject: [Gambas-user] Gambas Scripting Problem In-Reply-To: <976ad9050809160258o5611d26fjf6cfe422d2bf908b@...627...> References: <976ad9050809160104n162eb82bn8437325975d4a5d8@...627...> <976ad9050809160217s3dba6597n8e7774ee8c916234@...627...> <976ad9050809160258o5611d26fjf6cfe422d2bf908b@...627...> Message-ID: <200809161420.38272.gambas@...1...> On mardi 16 septembre 2008, Arief Bayu Purwanto wrote: > Just a file with: > > -------- > PRINT "HELLO TEST WORLD!" > -------- > > result the same error message. Everything works correctly there, that's strange... -- Benoit Minisini From gambas at ...1... Tue Sep 16 14:29:00 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 16 Sep 2008 14:29:00 +0200 Subject: [Gambas-user] Gambas Scripting Problem In-Reply-To: <976ad9050809160258o5611d26fjf6cfe422d2bf908b@...627...> References: <976ad9050809160104n162eb82bn8437325975d4a5d8@...627...> <976ad9050809160217s3dba6597n8e7774ee8c916234@...627...> <976ad9050809160258o5611d26fjf6cfe422d2bf908b@...627...> Message-ID: <200809161429.00201.gambas@...1...> On mardi 16 septembre 2008, Arief Bayu Purwanto wrote: > Just a file with: > > -------- > PRINT "HELLO TEST WORLD!" > -------- > > result the same error message. Can you try the revision #1561? I have made some changes in the scripter, and you should have a warning message instead of an error. Regards, -- Benoit Minisini From gambas.fr at ...626... Tue Sep 16 14:30:49 2008 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 16 Sep 2008 14:30:49 +0200 Subject: [Gambas-user] Gambas Scripting Problem In-Reply-To: <200809161420.38272.gambas@...1...> References: <976ad9050809160104n162eb82bn8437325975d4a5d8@...627...> <976ad9050809160217s3dba6597n8e7774ee8c916234@...627...> <976ad9050809160258o5611d26fjf6cfe422d2bf908b@...627...> <200809161420.38272.gambas@...1...> Message-ID: <6324a42a0809160530o6851c491x4d494126242c5cda@...627...> just a word first exention for gambasscript is .g and not .gbs 2008/9/16 Benoit Minisini : > On mardi 16 septembre 2008, Arief Bayu Purwanto wrote: >> Just a file with: >> >> -------- >> PRINT "HELLO TEST WORLD!" >> -------- >> >> result the same error message. > > Everything works correctly there, that's strange... > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Tue Sep 16 14:34:01 2008 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 16 Sep 2008 14:34:01 +0200 Subject: [Gambas-user] Gambas Scripting Problem In-Reply-To: <200809161429.00201.gambas@...1...> References: <976ad9050809160104n162eb82bn8437325975d4a5d8@...627...> <976ad9050809160217s3dba6597n8e7774ee8c916234@...627...> <976ad9050809160258o5611d26fjf6cfe422d2bf908b@...627...> <200809161429.00201.gambas@...1...> Message-ID: <6324a42a0809160534g3c67081fg23b8dfa9aac52953@...627...> fabien at ...1752...:~/gambas$ gbs3 test.g RESERVED Public RESERVED Sub IDENTIFIER MAIN RESERVED ( RESERVED ) NEWLINE (1) RESERVED Print STRING "toto" NEWLINE (2) NEWLINE (3) NEWLINE (4) RESERVED End NEWLINE (5) NEWLINE (6) NEWLINE (7) NEWLINE (8) NEWLINE (9) NEWLINE (10) END END END END OK fabien at ...1752...:~/gambas$ What is that ???? thame thing during the gambas compilation... you have forgotten to remove something .... From gambas at ...1... Tue Sep 16 14:50:44 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 16 Sep 2008 14:50:44 +0200 Subject: [Gambas-user] Gambas Scripting Problem In-Reply-To: <6324a42a0809160534g3c67081fg23b8dfa9aac52953@...627...> References: <976ad9050809160104n162eb82bn8437325975d4a5d8@...627...> <200809161429.00201.gambas@...1...> <6324a42a0809160534g3c67081fg23b8dfa9aac52953@...627...> Message-ID: <200809161450.44884.gambas@...1...> On mardi 16 septembre 2008, Fabien Bodard wrote: > fabien at ...1752...:~/gambas$ gbs3 test.g > RESERVED Public > RESERVED Sub > IDENTIFIER MAIN > RESERVED ( > RESERVED ) > NEWLINE (1) > RESERVED Print > STRING "toto" > NEWLINE (2) > NEWLINE (3) > NEWLINE (4) > RESERVED End > NEWLINE (5) > NEWLINE (6) > NEWLINE (7) > NEWLINE (8) > NEWLINE (9) > NEWLINE (10) > END > END > END > END > OK > > fabien at ...1752...:~/gambas$ > > > What is that ???? > > thame thing during the gambas compilation... > you have forgotten to remove something .... > Debugging messages. Fixed in last revision! If you want to look at the scripter, use the gambas2 version, which is up to date with my changes. Regards, -- Benoit Minisini From Gambas at ...1950... Tue Sep 16 19:46:32 2008 From: Gambas at ...1950... (Caveat) Date: Tue, 16 Sep 2008 19:46:32 +0200 Subject: [Gambas-user] AllBasic.Info Gambas Help In-Reply-To: <48AF0F2B.2070808@...1740...> References: <20080821101605.4593bcmg2soscokc@...1958...> <1219430969.19415.0.camel@...1951...> <48AF0F2B.2070808@...1740...> Message-ID: <1221587192.7428.3.camel@...1951...> Hi Ron, Sorry for the long delay in replying, have been through a very busy time lately with very limited internet access and a complete lack of time to use it anyway. I'll dig out the source for the xml client-server part and see if I can put together some kind of explanation on allbasic.info (assuming my membership didn't lapse during my long absence from the net!) Regards, Caveat On Fri, 2008-08-22 at 21:10 +0200, Ron wrote: > > Hi Caveat, > > I'm very interested in the way you made the xml client server part for > your bar application in gambas, are you willing to supply me some some > code snippets > as how to code this? > > I'm busy with my home automation program in gambas, but it's still 1 > program, and would like to split in in a client and server module. > > Kind Regards, > Ron > > > Hi John, > > > > I signed up. I also posted an intro. Normally I'd expect to have at > > least one "welcome to the board" response by now. Kinda disappointing, > > but it is a very small site right now. > > > > If you want a Mod for the Gambas area, I don't mind to step up and give > > it a go. As I mentioned in my intro, I'm the author of the > > DragonController (www.dragoncontroller.org), which I developed in VB.Net > > and in Gambas. > > > > If you can give us a mention in your apps list, we can return the favour > > by linking back to allBasic.info for those who want to explore the basic > > language further. > > > > As an aside, it's interesting to see how those 2 basics compare for > > writing essentially 'the same program'. VB.Net feels a lot more > > 'complicated' than Gambas but there's really nothing I've found so far > > that I can do in .Net that I can't do in Gambas (Gambas2 in fact). > > > > I've also used Gambas (as Benoit knows) for a bar management application > > which uses MySQL and is implemented in a client-server manner, with XML > > messages being passed between the client and the server. This > > application hasn't been open-sourced yet, but I may consider releasing > > the code if there's enough interest. > > > > Regards, > > Caveat > > > > On Thu, 2008-08-21 at 10:16 -0700, admin at ...1956... wrote: > > > >>> All your boards are looking pretty bare, because your site has only > >>> existed for a few weeks. > >>> > >>> When the BASIC community starts visiting allbasic.info, I'll > >>> probably be part of it. But with the most active board having 6 > >>> posts on it as I type this, I don't think that has happened yet. > >>> > >> I think we are doing pretty good with the board only being two weeks old. > >> There is a lot of excitement about www.AllBasic.Info in the Basic community. > >> The site dwarfed the www.scriptbasic.org (the open source Basic > >> interpreter project I manage) in activity the second day after it went > >> live. > >> > >> > >> > >>> As far as I know, I'm the only one here who regularly takes part in > >>> web forum support, and I haven't even had time to visit > >>> linuxbasic.net, which has the most active Web forum for Gambas, in a > >>> month or two. I know that a lot of BASIC users prefer the web forum > >>> approach, especially novices, but most developers still seem to > >>> prefer mailing lists. The posts come to us rather than the other > >>> way around. > >>> > >>> > >> Do you think you could post enough information to the All Basic site > >> for Gambas that someone that hasn't heard of it before would take the > >> next step and install it on their system. (no a easy job for most) > >> > >> Thanks Rob for the reply ! > >> > >> > >> John Spikowski > >> > >> > >> ------------------------------------------------------------------------- > >> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > >> Build the coolest Linux based applications with Moblin SDK & win great prizes > >> Grand prize is a trip for two to an Open Source event anywhere in the world > >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ > >> _______________________________________________ > >> 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 the Moblin Your Move Developer's challenge > > Build the coolest Linux based applications with Moblin SDK & win great prizes > > Grand prize is a trip for two to an Open Source event anywhere in the world > > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > From gambas.fr at ...626... Tue Sep 16 21:11:41 2008 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 16 Sep 2008 21:11:41 +0200 Subject: [Gambas-user] Gambas Scripting Problem In-Reply-To: <200809161450.44884.gambas@...1...> References: <976ad9050809160104n162eb82bn8437325975d4a5d8@...627...> <200809161429.00201.gambas@...1...> <6324a42a0809160534g3c67081fg23b8dfa9aac52953@...627...> <200809161450.44884.gambas@...1...> Message-ID: <6324a42a0809161211q3dbe1079q35ce89d8913a0512@...627...> #!/usr/bin/env gbs3 USE gb.net DIM Sport AS NEW SerialPort Sport.Speed = "115200" Sport.PortName = "/dev/ttyUSB0" Sport.Parity = 0 Sport.DataBits = "8" Sport.StopBits = "1" ' keep DTR on Sport.FlowControl = 0 Sport.Open() PRINT Sport.DSR PRINT Sport.DTR PRINT Sport.CTS PRINT Sport.RTS PRINT Sport.DCD PRINT Sport.RNG It work fine ! but the code is bad lol not abke to open serial port ... i've not investigate about this From ron at ...1740... Tue Sep 16 22:30:20 2008 From: ron at ...1740... (Ron) Date: Tue, 16 Sep 2008 22:30:20 +0200 Subject: [Gambas-user] Editor toggle Message-ID: <48D0175C.1050601@...1740...> Hi, I have noticed that the source code of my program is having a lot of extra spaces and tabs etc at the end of the code lines due to copy and pasteing routines from other parts of my code. What about an idea to add a toggle button to make these kind of characters visible in the editor, so one can clean up code without having to click each line to look for trailing spaces and other stuff? (wordperfect alike maybe ;-)) Regards, Ron_2nd. From gambas at ...1... Tue Sep 16 22:37:10 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 16 Sep 2008 22:37:10 +0200 Subject: [Gambas-user] Editor toggle In-Reply-To: <48D0175C.1050601@...1740...> References: <48D0175C.1050601@...1740...> Message-ID: <200809162237.10817.gambas@...1...> On mardi 16 septembre 2008, Ron wrote: > Hi, > > I have noticed that the source code of my program is having a lot of > extra spaces and tabs etc at the end of the code lines due to copy and > pasteing routines from other parts of my code. > What about an idea to add a toggle button to make these kind of > characters visible in the editor, so one can clean up code without > having to click each line to look for trailing spaces and other stuff? > (wordperfect alike maybe ;-)) > > Regards, > Ron_2nd. > In the past, spaces were removed automatically at the end of the line, but that option was removed after a user request. But I don't remember why! Maybe a editor option named "remove trailing white spaces when saving"? -- Benoit Minisini From ron at ...1740... Tue Sep 16 23:16:23 2008 From: ron at ...1740... (Ron) Date: Tue, 16 Sep 2008 23:16:23 +0200 Subject: [Gambas-user] Editor toggle In-Reply-To: <200809162237.10817.gambas@...1...> References: <48D0175C.1050601@...1740...> <200809162237.10817.gambas@...1...> Message-ID: <48D02227.9040602@...1740...> Benoit Minisini schreef: > On mardi 16 septembre 2008, Ron wrote: > >> Hi, >> >> I have noticed that the source code of my program is having a lot of >> extra spaces and tabs etc at the end of the code lines due to copy and >> pasteing routines from other parts of my code. >> What about an idea to add a toggle button to make these kind of >> characters visible in the editor, so one can clean up code without >> having to click each line to look for trailing spaces and other stuff? >> (wordperfect alike maybe ;-)) >> >> Regards, >> Ron_2nd. >> >> > > In the past, spaces were removed automatically at the end of the line, but > that option was removed after a user request. But I don't remember why! > > Maybe a editor option named "remove trailing white spaces when saving"? > > Benoit, Yes thats even better... Regards, Ron_2nd. From gambas at ...1... Wed Sep 17 01:02:28 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 17 Sep 2008 01:02:28 +0200 Subject: [Gambas-user] error at making deb package In-Reply-To: <1221551923.6675.12.camel@...1964...> References: <1221551923.6675.12.camel@...1964...> Message-ID: <200809170102.28198.gambas@...1...> On mardi 16 septembre 2008, Sevoir wrote: > Hi All, > > when I would like create ubuntu deb package I got some error: > deb, not created.. :S > What is problem? > Gambas2.5 > Ubuntu Hardy Heron 8.04.1 > > src/xxx/.gambas > dh_testdir > debian/rules build > touch build-stamp > /usr/bin/gbc2 -a src/xxx > gbc: project file not found: /home/sevoir/xxx/.project > make: *** [build-stamp] Error 1 > dpkg-buildpackage: failure: debian/rules build gave error exit status 2 > > > Regards, Sevoir > Can you send me the full untruncated output of the packaging process? I suggest anyway to try a more recent version of Gambas - Bugs may have been fixed. Regards, -- Benoit Minisini From gambas at ...1... Wed Sep 17 01:03:56 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 17 Sep 2008 01:03:56 +0200 Subject: [Gambas-user] A Dim syntax question In-Reply-To: <200809122323.51013.rterry@...1946...> References: <200809122323.51013.rterry@...1946...> Message-ID: <200809170103.56313.gambas@...1...> On vendredi 12 septembre 2008, richard terry wrote: > If one types in a subroutine > > Dim pn As cProgressNote > pn = New cProgressNote > > could one just do it in one hit without consquences? > > Dim pn as New cProgressNote? > > Regards > > Richard > Yes. The generated bytecode is exactly the same. -- Benoit Minisini From ariefbayu at ...626... Wed Sep 17 01:05:00 2008 From: ariefbayu at ...626... (Arief Bayu Purwanto) Date: Wed, 17 Sep 2008 06:05:00 +0700 Subject: [Gambas-user] Gambas Scripting Problem In-Reply-To: <200809161429.00201.gambas@...1...> References: <976ad9050809160104n162eb82bn8437325975d4a5d8@...627...> <976ad9050809160217s3dba6597n8e7774ee8c916234@...627...> <976ad9050809160258o5611d26fjf6cfe422d2bf908b@...627...> <200809161429.00201.gambas@...1...> Message-ID: <976ad9050809161605u2b7d38ffvbd15d3095d23ac5e@...627...> On 9/16/08, Benoit Minisini wrote: > > > Can you try the revision #1561? I have made some changes in the scripter, > and > you should have a warning message instead of an error. Thank you Benoit, will try it once I'm at office. The server is behind NAT so can't try if from home :(. -- Arief Bayu Purwanto About : http://about.freelancer.web.id/ Blog : http://bayu.freelancer.web.id/ From gambas at ...1... Wed Sep 17 01:05:07 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 17 Sep 2008 01:05:07 +0200 Subject: [Gambas-user] Setting the title of a message box In-Reply-To: <200809122145.27960.rterry@...1946...> References: <200809122145.27960.rterry@...1946...> Message-ID: <200809170105.07770.gambas@...1...> On vendredi 12 septembre 2008, richard terry wrote: > 1) is this possible > No. > 2) Could I suggest that I (or someone with permission/telling me how) > insert a simple example in the page: > > file:///usr/share/gambas3/help/help/comp/gb+qt/message.html > > for dummes like me such as > > Example: > > Select Message.Warning("Delete everything?" , "Yes", "No") > > Case 1 > Debug "ok, deleting everything" > Case 2 > Debug "not deleting anything" > > End Select > > Rationale: Dummies like me (and newbies) need concrete examples on the > help pages. > You can do that yourself if you want: just give me a password and I will give you a write access to the documentation wiki. You will have to read the wiki manual page first to know how to write pages, but it is not too complex. Regards, -- Benoit Minisini From ariefbayu at ...626... Wed Sep 17 01:05:20 2008 From: ariefbayu at ...626... (Arief Bayu Purwanto) Date: Wed, 17 Sep 2008 06:05:20 +0700 Subject: [Gambas-user] Gambas Scripting Problem In-Reply-To: <6324a42a0809160530o6851c491x4d494126242c5cda@...627...> References: <976ad9050809160104n162eb82bn8437325975d4a5d8@...627...> <976ad9050809160217s3dba6597n8e7774ee8c916234@...627...> <976ad9050809160258o5611d26fjf6cfe422d2bf908b@...627...> <200809161420.38272.gambas@...1...> <6324a42a0809160530o6851c491x4d494126242c5cda@...627...> Message-ID: <976ad9050809161605w36126bccjab5b842aee3b68d9@...627...> On 9/16/08, Fabien Bodard wrote: > > just a word first exention for gambasscript is .g and not .gbs Thank you, will note it. -- Arief Bayu Purwanto About : http://about.freelancer.web.id/ Blog : http://bayu.freelancer.web.id/ From gambas at ...1... Wed Sep 17 01:07:46 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 17 Sep 2008 01:07:46 +0200 Subject: [Gambas-user] Suggestion for IDE behaviour In-Reply-To: <200809101524.44748.gambas@...1...> References: <200809081112.10742.rterry@...1946...> <200809101524.44748.gambas@...1...> Message-ID: <200809170107.46826.gambas@...1...> On mercredi 10 septembre 2008, Benoit Minisini wrote: > On lundi 08 septembre 2008, richard terry wrote: > > I keep a directory in my project where I keep a text file for changes I > > want to make to forms > > I note at run-time that like all forms, any file in here is not editable. > > > > I wondered if it would be possible to allow files not used during the > > running of the project to be editable at run-time - as I find I'd like to > > make notes as I watch the behaviour of my program, and am unable to do > > this because of the above behaviour. > > > > Regards > > > > Richard > > How can you know that a file won't be used? In Gambas 3, there is a new project folder named "Project" (!) where you can put any files that don't go in the executable. At the moment they are read-only at runtime, like other data files, but they can be easily writable. Regards, -- Benoit Minisini From doriano.blengino at ...1909... Wed Sep 17 07:27:45 2008 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Wed, 17 Sep 2008 07:27:45 +0200 Subject: [Gambas-user] Editor toggle In-Reply-To: <200809162237.10817.gambas@...1...> References: <48D0175C.1050601@...1740...> <200809162237.10817.gambas@...1...> Message-ID: <48D09551.3000504@...1909...> Benoit Minisini ha scritto: > On mardi 16 septembre 2008, Ron wrote: > >> Hi, >> >> I have noticed that the source code of my program is having a lot of >> extra spaces and tabs etc at the end of the code lines due to copy and >> pasteing routines from other parts of my code. >> What about an idea to add a toggle button to make these kind of >> characters visible in the editor, so one can clean up code without >> having to click each line to look for trailing spaces and other stuff? >> (wordperfect alike maybe ;-)) >> >> Regards, >> Ron_2nd. >> >> > > In the past, spaces were removed automatically at the end of the line, but > that option was removed after a user request. But I don't remember why! > > Maybe a editor option named "remove trailing white spaces when saving"? > > Just for speaking, trailing spaces in a saved file don't disturb me. What I would like would be the editor removing those trailing spaces automatically while editing..., under an option, of course :-> ...and perhaps the possibility to disable those 2 blank lines (or more) when creating new SUBs. Under options too... I don't remember how many empty lines were inserted because I modified the IDE, and then lost the fiddled sources... Regards, Doriano Blengino From maximvonk at ...626... Wed Sep 17 12:32:27 2008 From: maximvonk at ...626... (MaxVK) Date: Wed, 17 Sep 2008 03:32:27 -0700 (PDT) Subject: [Gambas-user] Enumerating values in sqllite3 database tables Message-ID: <19529262.post@...1379...> Hi there. I am making a personal program to catalog a large collection of photographs and rather than install MySQL just for this purpose I would like to use sqlite3. Using the example program I am able to create the database and the tables within it, and I am (apparently) able to add data to the tables. However I have been unable to work out how to list the items that have been added to the tables. For example I have created Table1 with a field called Field1. I have then added several items of data (The path and file names of images) to Field1 using code from the example: $hConn.Begin rTest = $hConn.Create("Table1") rTest!Field1 = tFilename rTest.Update So far, so good, but how can I get a list of the items in Field1 so that they can be displayed in a listbox? Any pointers would be much appreciated. regards Max -- View this message in context: http://www.nabble.com/Enumerating-values-in-sqllite3-database-tables-tp19529262p19529262.html Sent from the gambas-user mailing list archive at Nabble.com. From charles at ...1784... Wed Sep 17 13:26:42 2008 From: charles at ...1784... (charlesg) Date: Wed, 17 Sep 2008 04:26:42 -0700 (PDT) Subject: [Gambas-user] Enumerating values in sqllite3 database tables In-Reply-To: <19529262.post@...1379...> References: <19529262.post@...1379...> Message-ID: <19529650.post@...1379...> Hi, something like: '---------------------- Private res As Result lstSupplier.Clear res = $hConn.Exec("select * from supp order by s_code") For Each res lstSupplier.Add(res!s_code & "," & res!s_name & "," & res!s_closedate & "," & res!s_dayscredit & "," & res!s_datedue) Next '---------------------- rgds -- View this message in context: http://www.nabble.com/Enumerating-values-in-sqllite3-database-tables-tp19529262p19529650.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas.fr at ...626... Wed Sep 17 13:28:52 2008 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 17 Sep 2008 13:28:52 +0200 Subject: [Gambas-user] Enumerating values in sqllite3 database tables In-Reply-To: <19529262.post@...1379...> References: <19529262.post@...1379...> Message-ID: <6324a42a0809170428i68cd72f0we5b05fce2070a74f@...627...> 2008/9/17 MaxVK : > > Hi there. I am making a personal program to catalog a large collection of > photographs and rather than install MySQL just for this purpose I would like > to use sqlite3. > > Using the example program I am able to create the database and the tables > within it, and I am (apparently) able to add data to the tables. However I > have been unable to work out how to list the items that have been added to > the tables. > > For example I have created Table1 with a field called Field1. I have then > added several items of data (The path and file names of images) to Field1 > using code from the example: > > $hConn.Begin > rTest = $hConn.Create("Table1") > rTest!Field1 = tFilename > rTest.Update > > So far, so good, but how can I get a list of the items in Field1 so that > they can be displayed in a listbox? > > Any pointers would be much appreciated. > > regards > > Max > -- dim hresult as result hresult = db.find("Table1", "Field1") For each hresult ListBox.add(hResult!Field1) next Simply like that !! regards, Fabien Bodard From maximvonk at ...626... Wed Sep 17 13:46:00 2008 From: maximvonk at ...626... (MaxVK) Date: Wed, 17 Sep 2008 04:46:00 -0700 (PDT) Subject: [Gambas-user] Enumerating values in sqllite3 database tables In-Reply-To: <19529650.post@...1379...> References: <19529262.post@...1379...> <19529650.post@...1379...> Message-ID: <19529663.post@...1379...> charlesg wrote: > > Hi, > > something like: > '---------------------- > Private res As Result > > lstSupplier.Clear > res = $hConn.Exec("select * from supp order by s_code") > For Each res > lstSupplier.Add(res!s_code & "," & res!s_name & "," & res!s_closedate & > "," & res!s_dayscredit & "," & res!s_datedue) > Next > '---------------------- > > rgds > ah! Very many thanks charlesg - That sorted it out. Am I correct in thinking that "select * from supp order by s_code" is standard SQL? If so would it be appropriate to use other SQL statements to return information in the same way, or is sqlite3 limited to specific SQL commands? All the best Max -- View this message in context: http://www.nabble.com/Enumerating-values-in-sqllite3-database-tables-tp19529262p19529663.html Sent from the gambas-user mailing list archive at Nabble.com. From maximvonk at ...626... Wed Sep 17 13:59:35 2008 From: maximvonk at ...626... (MaxVK) Date: Wed, 17 Sep 2008 04:59:35 -0700 (PDT) Subject: [Gambas-user] Enumerating values in sqllite3 database tables In-Reply-To: <6324a42a0809170428i68cd72f0we5b05fce2070a74f@...627...> References: <19529262.post@...1379...> <6324a42a0809170428i68cd72f0we5b05fce2070a74f@...627...> Message-ID: <19530488.post@...1379...> Fabien Bodard-4 wrote: > > 2008/9/17 MaxVK : >> >> Hi there. I am making a personal program to catalog a large collection of >> photographs and rather than install MySQL just for this purpose I would >> like >> to use sqlite3. >> >> Using the example program I am able to create the database and the tables >> within it, and I am (apparently) able to add data to the tables. However >> I >> have been unable to work out how to list the items that have been added >> to >> the tables. >> >> For example I have created Table1 with a field called Field1. I have then >> added several items of data (The path and file names of images) to Field1 >> using code from the example: >> >> $hConn.Begin >> rTest = $hConn.Create("Table1") > > > > > >> rTest!Field1 = tFilename >> rTest.Update >> >> So far, so good, but how can I get a list of the items in Field1 so that >> they can be displayed in a listbox? >> >> Any pointers would be much appreciated. >> >> regards >> >> Max >> -- > dim hresult as result > > hresult = db.find("Table1", "Field1") > > For each hresult > > ListBox.add(hResult!Field1) > > next > > > Simply like that !! > > regards, > Fabien Bodard > Hmm. Thanks Fabien - That looks simpler but Ill be needing to use the SQL to get my results, which will be based on tags. The objective is to add all my images to one table, but to separate them by associating tags with each image. Regards Max -- View this message in context: http://www.nabble.com/Enumerating-values-in-sqllite3-database-tables-tp19529262p19530488.html Sent from the gambas-user mailing list archive at Nabble.com. From charles at ...1784... Wed Sep 17 16:12:56 2008 From: charles at ...1784... (charlesg) Date: Wed, 17 Sep 2008 07:12:56 -0700 (PDT) Subject: [Gambas-user] Enumerating values in sqllite3 database tables In-Reply-To: <19529663.post@...1379...> References: <19529262.post@...1379...> <19529650.post@...1379...> <19529663.post@...1379...> Message-ID: <19532988.post@...1379...> Hi, I don't know how 'standard' any sql gets:confused: You can certainly use sql update and delete commands the same way. rgds -- View this message in context: http://www.nabble.com/Enumerating-values-in-sqllite3-database-tables-tp19529262p19532988.html Sent from the gambas-user mailing list archive at Nabble.com. From maximvonk at ...626... Wed Sep 17 17:30:04 2008 From: maximvonk at ...626... (MaxVK) Date: Wed, 17 Sep 2008 08:30:04 -0700 (PDT) Subject: [Gambas-user] Enumerating values in sqllite3 database tables In-Reply-To: <19532988.post@...1379...> References: <19529262.post@...1379...> <19529650.post@...1379...> <19529663.post@...1379...> <19532988.post@...1379...> Message-ID: <19534733.post@...1379...> charlesg wrote: > > Hi, > > I don't know how 'standard' any sql gets:confused: > You can certainly use sql update and delete commands the same way. > > rgds > > :-D Yeah, thats pretty much what I meant. I don't know much SQL (yet), so I was only wondering if sqlite3 used the same commands or its own proprietary ones. Regards Max -- View this message in context: http://www.nabble.com/Enumerating-values-in-sqllite3-database-tables-tp19529262p19534733.html Sent from the gambas-user mailing list archive at Nabble.com. From pastrano at ...431... Wed Sep 17 19:22:58 2008 From: pastrano at ...431... (Gianni Piccini) Date: Wed, 17 Sep 2008 19:22:58 +0200 Subject: [Gambas-user] Listview (simple?) problem In-Reply-To: <48CE1C90.7010809@...1909...> References: <48CD137C.8090708@...431...> <48CE1C90.7010809@...1909...> Message-ID: <48D13CF2.2040904@...431...> On 15/09/2008 Doriano Blengino wrote: > Look with great attention at the help page for Listview, inside > "gb.qt". Mmmh, certainly it's not a problem of docs, but a fault of mine trying to understand how Gambas works, I can't find it. I was thinking that this should be a property like listview.name.current.nameofproperty, but probably I'm going in the bad direction. From kari.laine at ...1400... Wed Sep 17 19:40:25 2008 From: kari.laine at ...1400... (Kari Laine) Date: Wed, 17 Sep 2008 20:40:25 +0300 Subject: [Gambas-user] learning gb.report Message-ID: <48D14109.1070607@...1400...> Hi, I am learning gb.report and in it there is following in the report-class. PUBLIC SUB _New() object.Attach(ME, ME, "Report") how come there is ME twice in it? Gambas-help gives following STATIC SUB Attach ( Object AS Object, Parent AS Object, Name AS String ) In my understanding there should be event-handlers called Report_ in the deriving hierarchy...but there is none. So could anyone help me and tell what kind of purpose that line has? Thanks beforehand for any help Best Regards Kari Laine From doriano.blengino at ...1909... Wed Sep 17 22:28:00 2008 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Wed, 17 Sep 2008 22:28:00 +0200 Subject: [Gambas-user] Listview (simple?) problem In-Reply-To: <48D13CF2.2040904@...431...> References: <48CD137C.8090708@...431...> <48CE1C90.7010809@...1909...> <48D13CF2.2040904@...431...> Message-ID: <48D16850.7040903@...1909...> Gianni Piccini ha scritto: > On 15/09/2008 Doriano Blengino wrote: > > >> Look with great attention at the help page for Listview, inside >> "gb.qt". >> > > Mmmh, certainly it's not a problem of docs, but a fault of mine trying to > understand how Gambas works, I can't find it. I was thinking that this > should be a property like listview.name.current.nameofproperty, but probably > I'm going in the bad direction. > I am not really the right person to answer to you; I replied you because I've seen that nobody was doing that. I never used the ListView, anyway: 1) Did you find the help page? If not, tell me. 2) You add items to a listview by doing 'AlistView.add("Akey", "The text associated with the key")'. Note that a ListView have many items, and they are indexed by strings (keys), not numbers. To navigate a listview there are other methods. 3) To address a particular item in the listview, you use its key: "AlistView[aKey]" identifies a single item. I find this syntax a little strange, but so it is. For example, to delete the item added before, issue a "AlistView["Akey"].Delete" 4) You can "select" an item by setting its Selected property. For example, "AlistView["aKey"].Selected=True" could work. 5) "AlistView.Current" tells you which is the current item, so "AlistView.Current.Text" gives you the text of the current item. 6) To navigate a ListView, an internal cursor is provided, totally independent from the user's one. Use "AlistView.MoveFirst" to move this cursor to the first item, and MoveNext or MoveBelow to go down. There are other methods -- see the docs. 7) After moving the internal cursor, you can access the item pointed by the [internal] cursor with "AlistView.Item": AlistView.Movefirst print AlistView.Item.Text should print the text of the first item of AlistView. 8) So, beware of the difference about AlistView.Current and AlistView.Item. The first gives you what the user has activate; the second gives you what you have pointed to with MoveXXXX(). I don't know if this is enough to get you started - experiment with this. If something is not clear, email again. I remember to have seen ax example about ListView somewhere, but forgot where. It seems that docs lack some example but, when you get used to things that may seem strange at first, you will find that documentation is quite complete (even if hermetic...). Best regards, Doriano Blengino From ron at ...1740... Wed Sep 17 22:45:00 2008 From: ron at ...1740... (Ron) Date: Wed, 17 Sep 2008 22:45:00 +0200 Subject: [Gambas-user] Format padding with spaces? Message-ID: <48D16C4C.8010708@...1740...> Hi, I was a bit suprised to find out that Format$ doesn't support space padding like it does with zero's So: PRINT Format$(72.06, " .##") PRINT Format$(2.05, " .##") Prints: 72.06 2.05 Any technical reason for this? Regards, Ron_2nd From pastrano at ...431... Wed Sep 17 22:58:24 2008 From: pastrano at ...431... (Gianni Piccini) Date: Wed, 17 Sep 2008 22:58:24 +0200 Subject: [Gambas-user] Listview (simple?) problem In-Reply-To: <48D16850.7040903@...1909...> References: <48CD137C.8090708@...431...> <48CE1C90.7010809@...1909...> <48D13CF2.2040904@...431...> <48D16850.7040903@...1909...> Message-ID: <48D16F70.4060708@...431...> On 17/09/2008 Doriano Blengino wrote: > I am not really the right person to answer to you; Thanks. My error was to want to use same VB syntax, now I load all items in an array and then I can work with it. From klaine8 at ...626... Wed Sep 17 23:14:51 2008 From: klaine8 at ...626... (Kari Laine) Date: Thu, 18 Sep 2008 00:14:51 +0300 Subject: [Gambas-user] Events Message-ID: <61452b690809171414v3f5f0867y65b3cb8a3ae3b03b@...627...> Hi, could someone please post a little example how these events work? Or refer me to a example in Gambas where their are used. Best Regards Kari Laine From almanova at ...1228... Wed Sep 17 23:31:31 2008 From: almanova at ...1228... (Almanova Sistemi) Date: Wed, 17 Sep 2008 23:31:31 +0200 Subject: [Gambas-user] How to lock a file In-Reply-To: <200805211436.55295.gambas@...1...> References: <48340400.5060302@...1740...> <200805211326.26100.gambas@...1...> <483410FB.3010302@...1740...> <200805211436.55295.gambas@...1...> Message-ID: <48D17733.4050009@...1228...> Hi, is the first time that I write to list, but i have a problem. I am writing an application in gambas (2.7.0-2.1) on opensuse 10.3 - 11.0 and I need to lock a file when I open it. My code: ... hfile = OPEN "/usr/far/alman/NOMEFARM.DAT" FOR INPUT OUTPUT TRY LOCK hfile IF ERROR then ... ENDIF LINE INPUT #hfile, MyVar UNLOCK hfile CLOSE #hfile ... When I execute it I get the following messge: Useless LOCK in line ... Why ? Regards, Massimo. From gambas.fr at ...626... Wed Sep 17 23:35:29 2008 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 17 Sep 2008 23:35:29 +0200 Subject: [Gambas-user] Good news Message-ID: <6324a42a0809171435i30d49f21r75428563b27ec4cc@...627...> Now you can download on the GambasForge site ... it work ! http://www.gambasforge.net Currently i'm working to reimplement users part, the you will be able to connect to the site and add new sources. You have any ideas of what you want to the biggest communautary site ... tell me , or join us, Gambasforge will be able to manage: sources, tutorial, forum, and so on ... and surely more :) Tell us ... the gambasforge code is now on sourceforge, From gambas.fr at ...626... Thu Sep 18 00:08:18 2008 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 18 Sep 2008 00:08:18 +0200 Subject: [Gambas-user] learning gb.report In-Reply-To: <48D14109.1070607@...1400...> References: <48D14109.1070607@...1400...> Message-ID: <6324a42a0809171508x2a719d2dg8148d706a20b52f@...627...> some time there is the need to attach an object to himself (for event handler). form is doing that too. i don'tt remember why i has done that lol i need to look at that better ... what did you manage to do about that component ... i've not finish it yet... i'm waiting for Benoit and the ability of the ide to draw report as it draw form. But your hands are welcome :) ... ok got it it's for after ... like forms, they will be a class named report this class inherit the report and extend it ... like with a form ... and in forms, the envents are contained in the form class file ... so managed by the class itself. The goal ,in fact my goal of gb.report is to give the ability to gambas to generate reports as access do. so gambas will be maybe the better database tool in the linux world... for me better than ooo or kexi. But there is still some work to do. Fabien 2008/9/17 Kari Laine : > Hi, > > I am learning gb.report and in it there is following in the report-class. > > PUBLIC SUB _New() > object.Attach(ME, ME, "Report") > > how come there is ME twice in it? > > Gambas-help gives following > STATIC SUB Attach ( Object AS Object, Parent AS Object, Name AS String ) > > In my understanding there should be event-handlers called > Report_ in the deriving hierarchy...but there is none. So > could anyone help me and tell what kind of purpose that line has? > > Thanks beforehand for any help > > Best Regards > Kari Laine > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Thu Sep 18 00:16:55 2008 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 18 Sep 2008 00:16:55 +0200 Subject: [Gambas-user] Listview (simple?) problem In-Reply-To: <48D16F70.4060708@...431...> References: <48CD137C.8090708@...431...> <48CE1C90.7010809@...1909...> <48D13CF2.2040904@...431...> <48D16850.7040903@...1909...> <48D16F70.4060708@...431...> Message-ID: <6324a42a0809171516h5fbe2136v643703e39bc7ed18@...627...> A little gambas tips Gambas can convert on the fly, integer to string For i = 0 to 255 ListView.add(i, "coucou " & i) next Print "3 = " & ListView[3].Text $ 3 = coucou 3 Gambas is powerfull ... dont forget that ;) Regards, Fabien Bodard From gambas.fr at ...626... Thu Sep 18 00:26:50 2008 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 18 Sep 2008 00:26:50 +0200 Subject: [Gambas-user] Listview (simple?) problem In-Reply-To: <48CD137C.8090708@...431...> References: <48CD137C.8090708@...431...> Message-ID: <6324a42a0809171526xd42fe85y5fe3d5561e36e271@...627...> For delete the current ListView.Remove(ListView.Item.key) ListView.MovePrevious To add after the current selected Listview.add(key, text, picture, ListView.Item.key) Easy no ? but you need to store the value of the deleted row for the move. LOL it's an idea ... a swap function will be great. or a swapto(key after) 2008/9/14 Gianni Piccini : > Probably is a stupid question, but I can't resolve without help, due I'm a > newbie. > I've got a listview, where I add some items: for example, > > aaa > bbb > ccc > ddd > > I need to select an item, for example "ccc", and then move with the > previous. I think that first thing I need is to get the index number of > selected item ccc (in this case, 2), and then get the text, get the text of > item 1, bbb, then change the value or delete the previous and readd after. > In visual basic, if I don't err, there was the listindex property... > What can I do? > Tia > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Thu Sep 18 00:30:49 2008 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 18 Sep 2008 00:30:49 +0200 Subject: [Gambas-user] Enumerating values in sqllite3 database tables In-Reply-To: <19529663.post@...1379...> References: <19529262.post@...1379...> <19529650.post@...1379...> <19529663.post@...1379...> Message-ID: <6324a42a0809171530j3ef66ef5xb7c8ba0898768793@...627...> 2008/9/17 MaxVK : > > > charlesg wrote: >> >> Hi, >> >> something like: >> '---------------------- >> Private res As Result >> >> lstSupplier.Clear >> res = $hConn.Exec("select * from supp order by s_code") >> For Each res >> lstSupplier.Add(res!s_code & "," & res!s_name & "," & res!s_closedate & >> "," & res!s_dayscredit & "," & res!s_datedue) >> Next >> '---------------------- >> >> rgds >> > > ah! Very many thanks charlesg - That sorted it out. > > Am I correct in thinking that "select * from supp order by s_code" is > standard SQL? If so would it be appropriate to use other SQL statements to > return information in the same way, or is sqlite3 limited to specific SQL > commands? no all supported sql by sqlite... it's dependent to sqlite... same thing for specific sql of mysql or else > All the best > > Max > > -- > View this message in context: http://www.nabble.com/Enumerating-values-in-sqllite3-database-tables-tp19529262p19529663.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Thu Sep 18 00:35:39 2008 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 18 Sep 2008 00:35:39 +0200 Subject: [Gambas-user] Events In-Reply-To: <61452b690809171414v3f5f0867y65b3cb8a3ae3b03b@...627...> References: <61452b690809171414v3f5f0867y65b3cb8a3ae3b03b@...627...> Message-ID: <6324a42a0809171535t58d5e1f3n629bfb035274b84d@...627...> in what case ? to write you own class ? 'class MyTest EVENT MyEvent Public test() RAISE MyEvent End 'Main Module Private hTest as Mytest Public sub Main() hTest = New MyTest as "MyTest" htest.Test end Public Sub MyTest_MyEvent() Print "Event Raised" End Fabien 2008/9/17 Kari Laine : > Hi, > > could someone please post a little example how these events work? Or refer > me to a example in Gambas where their are used. > > Best Regards > Kari Laine > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Thu Sep 18 00:41:04 2008 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 18 Sep 2008 00:41:04 +0200 Subject: [Gambas-user] How to lock a file In-Reply-To: <48D17733.4050009@...1228...> References: <48340400.5060302@...1740...> <200805211326.26100.gambas@...1...> <483410FB.3010302@...1740...> <200805211436.55295.gambas@...1...> <48D17733.4050009@...1228...> Message-ID: <6324a42a0809171541v7540efd2n1db17d317bbb88b@...627...> # If the READ or WRITE keyword are specified, then the input-output are not buffered. # If the INPUT or OUTPUT keyword are specified, then the input-output are buffered. Maybe for that ? 2008/9/17 Almanova Sistemi : > Hi, > > is the first time that I write to list, but i have a problem. > > I am writing an application in gambas (2.7.0-2.1) on opensuse 10.3 - > 11.0 and I need to lock a file when I open it. > > My code: > > ... > hfile = OPEN "/usr/far/alman/NOMEFARM.DAT" FOR INPUT OUTPUT > TRY LOCK hfile > IF ERROR then > ... > ENDIF > LINE INPUT #hfile, MyVar > UNLOCK hfile > CLOSE #hfile > ... > > When I execute it I get the following messge: > Useless LOCK in line ... > > Why ? > > Regards, > Massimo. > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Thu Sep 18 01:10:40 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 18 Sep 2008 01:10:40 +0200 Subject: [Gambas-user] Format padding with spaces? In-Reply-To: <48D16C4C.8010708@...1740...> References: <48D16C4C.8010708@...1740...> Message-ID: <200809180110.40948.gambas@...1...> On mercredi 17 septembre 2008, Ron wrote: > Hi, > > I was a bit suprised to find out that Format$ doesn't support space > padding like it does with zero's > > So: > PRINT Format$(72.06, " .##") > PRINT Format$(2.05, " .##") > Prints: > 72.06 > 2.05 > > Any technical reason for this? > > Regards, > Ron_2nd > I think this should be possible with that syntax: PRINT Format$(72.06, "######.##") But no luck... I will implement them if it does not conflict with anything other in the Format$() code. Regards, -- Benoit Minisini From goofybritt at ...626... Thu Sep 18 03:39:52 2008 From: goofybritt at ...626... (Brittany Dunlap) Date: Wed, 17 Sep 2008 21:39:52 -0400 Subject: [Gambas-user] How to write to a file?? Message-ID: <48D1B168.5070108@...626...> Hello, everybody, my name is Brittany. I'm very new to Gambas and coding in general. I need to know how to write to a file. I have created a logging program but need to write the variables and strings to file. EG: text1.text text2.text text3.text opt1, opt2, opt3 (all boolean) check1 (boolean) date/time Thank you for your time. Brittany From almanova at ...1228... Thu Sep 18 09:27:27 2008 From: almanova at ...1228... (Almanova Sistemi) Date: Thu, 18 Sep 2008 09:27:27 +0200 Subject: [Gambas-user] How to lock a file In-Reply-To: <6324a42a0809171541v7540efd2n1db17d317bbb88b@...627...> References: <48340400.5060302@...1740...> <200805211326.26100.gambas@...1...> <483410FB.3010302@...1740...> <200805211436.55295.gambas@...1...> <48D17733.4050009@...1228...> <6324a42a0809171541v7540efd2n1db17d317bbb88b@...627...> Message-ID: <48D202DF.9030801@...1228...> No, because if I change the line where I open the file: hfile = OPEN "/usr/far/alman/NOMEFARM.DAT" FOR read wtite I obtain the same message. Fabien Bodard ha scritto: > # If the READ or WRITE keyword are specified, then the input-output > are not buffered. > > # If the INPUT or OUTPUT keyword are specified, then the input-output > are buffered. > > > Maybe for that ? > > > 2008/9/17 Almanova Sistemi : > >> Hi, >> >> is the first time that I write to list, but i have a problem. >> >> I am writing an application in gambas (2.7.0-2.1) on opensuse 10.3 - >> 11.0 and I need to lock a file when I open it. >> >> My code: >> >> ... >> hfile = OPEN "/usr/far/alman/NOMEFARM.DAT" FOR INPUT OUTPUT >> TRY LOCK hfile >> IF ERROR then >> ... >> ENDIF >> LINE INPUT #hfile, MyVar >> UNLOCK hfile >> CLOSE #hfile >> ... >> >> When I execute it I get the following messge: >> Useless LOCK in line ... >> >> Why ? >> >> Regards, >> Massimo. >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge >> Build the coolest Linux based applications with Moblin SDK & win great prizes >> Grand prize is a trip for two to an Open Source event anywhere in the world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> 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 the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From charles at ...1784... Thu Sep 18 09:50:57 2008 From: charles at ...1784... (charlesg) Date: Thu, 18 Sep 2008 00:50:57 -0700 (PDT) Subject: [Gambas-user] How to write to a file?? In-Reply-To: <48D1B168.5070108@...626...> References: <48D1B168.5070108@...626...> Message-ID: <19547768.post@...1379...> Hi Brittany, You have 2 options: write to a simple text file or write to a database. Writing to a text file is simple. '----------------------------------------- ' Gambas class file PUBLIC hFile AS File PUBLIC SUB form_Activate() 'create the file if it does not exist, otherwise just open it IF Exist(Application.path & "/file.txt") THEN hFile = OPEN Application.path & "/file.txt" FOR WRITE APPEND ELSE hFile = OPEN Application.path & "/file.txt" FOR WRITE CREATE ENDIF TextBox1.SetFocus END PUBLIC SUB btnExit_Click() hFile.Close FMain.Close END PUBLIC SUB btnWrite_Click() 'write the 2 textboxes to the File PRINT #hFile, TextBox1.text & "," & TextBox2.text 'clear the textboxes and put the cursor back in the first TextBox1.text = "" TextBox2.text = "" TextBox1.SetFocus END '------------------------------ You can check the file (file.txt) by loading it in any text processor. Because of the 'application.path', you will find it in the same directory as your program. Writing to a database is more flexible and a little more difficult. You can create a simple SQLite database from Gambas though it is probably easier using a very adequate add-on to Firefox (click Tools,add-ons and search sqlite). You can see how to open and write to sqlite with a small tutorial at www.kalaharix.wordpress.com. rgds -- View this message in context: http://www.nabble.com/How-to-write-to-a-file---tp19544483p19547768.html Sent from the gambas-user mailing list archive at Nabble.com. From sevoir75 at ...626... Thu Sep 18 10:13:10 2008 From: sevoir75 at ...626... (=?ISO-8859-1?Q?Szenogr=E1di?= Norbert =?ISO-8859-1?Q?P=E9ter?=) Date: Thu, 18 Sep 2008 10:13:10 +0200 Subject: [Gambas-user] generating new gambas file [automatic program update] Message-ID: <1221725590.6252.34.camel@...1964...> Hi All, Can I create a simple project with automatic update option? Well, when user starting a program, program will checking a new version from a portal etc. If new version possible change itself and restart a new version. This is possible? Regards, Norbert From eilert-sprachen at ...221... Thu Sep 18 10:21:37 2008 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Thu, 18 Sep 2008 10:21:37 +0200 Subject: [Gambas-user] Frameless window Message-ID: <48D20F91.7030907@...221...> Is it possible to produce a frameless window in Gambas? I'm thinking about something that looks like those small explanations popping up in KDE when you hover over an icon on the control bar. (Not the tooltips, or the ones on the desktop which seem to be more or less tooltips, too.) Thanks for your ideas! Rolf From lordheavym at ...626... Thu Sep 18 10:26:16 2008 From: lordheavym at ...626... (Laurent Carlier) Date: Thu, 18 Sep 2008 10:26:16 +0200 Subject: [Gambas-user] Frameless window In-Reply-To: <48D20F91.7030907@...221...> References: <48D20F91.7030907@...221...> Message-ID: <200809181026.17210.lordheavym@...626...> Le jeudi 18 septembre 2008 10:21:37 Rolf-Werner Eilert, vous avez ?crit : > Is it possible to produce a frameless window in Gambas? I'm thinking > about something that looks like those small explanations popping up in > KDE when you hover over an icon on the control bar. (Not the tooltips, > or the ones on the desktop which seem to be more or less tooltips, too.) > > Thanks for your ideas! > Here is the answer: http://64.128.110.55/help/comp/gb.qt/window/border Regards, From eilert-sprachen at ...221... Thu Sep 18 11:58:35 2008 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Thu, 18 Sep 2008 11:58:35 +0200 Subject: [Gambas-user] Frameless window In-Reply-To: <200809181026.17210.lordheavym@...626...> References: <48D20F91.7030907@...221...> <200809181026.17210.lordheavym@...626...> Message-ID: <48D2264B.6090503@...221...> Laurent Carlier schrieb: > Le jeudi 18 septembre 2008 10:21:37 Rolf-Werner Eilert, vous avez ?crit : >> Is it possible to produce a frameless window in Gambas? I'm thinking >> about something that looks like those small explanations popping up in >> KDE when you hover over an icon on the control bar. (Not the tooltips, >> or the ones on the desktop which seem to be more or less tooltips, too.) >> >> Thanks for your ideas! >> > > Here is the answer: > http://64.128.110.55/help/comp/gb.qt/window/border > > Regards, > Hm. No. Of course, I tried this first. But it doesn't help too much, there is still a border, there is a title-bar, there are gadgets etc. If I want to get rid of all that stuff, what could I do? Rolf From klaine8 at ...626... Thu Sep 18 12:22:40 2008 From: klaine8 at ...626... (Kari Laine) Date: Thu, 18 Sep 2008 13:22:40 +0300 Subject: [Gambas-user] learning gb.report In-Reply-To: <6324a42a0809171508x2a719d2dg8148d706a20b52f@...627...> References: <48D14109.1070607@...1400...> <6324a42a0809171508x2a719d2dg8148d706a20b52f@...627...> Message-ID: <61452b690809180322r28f3feb7k1ed3d91bac8a99a@...627...> Hi Fabien, On Thu, Sep 18, 2008 at 1:08 AM, Fabien Bodard wrote: > i don'tt remember why i has done that lol i need to look at that > better ... what did you manage to do about that component ... i've not > finish it yet... i'm waiting for Benoit and the ability of the ide to > draw report as it draw form. > gb.report is an example to learn object oriented Gambas and how to do a component in Gambas. That it is not finished is not a problem. > > ok got it > > it's for after ... like forms, they will be a class named report this > class inherit the report and extend it ... like with a form ... and in > forms, the envents are contained in the form class file ... so managed > by the class itself. > > > The goal ,in fact my goal of gb.report is to give the ability to > gambas to generate reports as access do. so gambas will be maybe the > better database tool in the linux world... for me better than ooo or > kexi. But there is still some work to do. > > Thanks for explanation Best Regards Kari Laine From klaine8 at ...626... Thu Sep 18 12:37:22 2008 From: klaine8 at ...626... (Kari Laine) Date: Thu, 18 Sep 2008 13:37:22 +0300 Subject: [Gambas-user] Events In-Reply-To: <6324a42a0809171535t58d5e1f3n629bfb035274b84d@...627...> References: <61452b690809171414v3f5f0867y65b3cb8a3ae3b03b@...627...> <6324a42a0809171535t58d5e1f3n629bfb035274b84d@...627...> Message-ID: <61452b690809180337s59e145dcq8ffdfd55d0e24f5d@...627...> Thank You Fabien! this example should be in Gambas documentation. On Thu, Sep 18, 2008 at 1:35 AM, Fabien Bodard wrote: > in what case ? to write you own class ? > > > 'class MyTest > > EVENT MyEvent > > Public test() For others who are beginner with Gambas this should be Public SUB test() Best Regards Kari Laine From eilert-sprachen at ...221... Thu Sep 18 13:09:57 2008 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Thu, 18 Sep 2008 13:09:57 +0200 Subject: [Gambas-user] Frameless window In-Reply-To: <200809181026.17210.lordheavym@...626...> References: <48D20F91.7030907@...221...> <200809181026.17210.lordheavym@...626...> Message-ID: <48D23705.4020106@...221...> Laurent Carlier schrieb: > Le jeudi 18 septembre 2008 10:21:37 Rolf-Werner Eilert, vous avez ?crit : >> Is it possible to produce a frameless window in Gambas? I'm thinking >> about something that looks like those small explanations popping up in >> KDE when you hover over an icon on the control bar. (Not the tooltips, >> or the ones on the desktop which seem to be more or less tooltips, too.) >> >> Thanks for your ideas! >> > > Here is the answer: > http://64.128.110.55/help/comp/gb.qt/window/border > I found a way that is - well, a workaround fitting on my case here: I just abuse a panel which is made visible for some seconds and thus pops up at the coordinates needed. Of course this is only sensible in a case where the notification of the user is needed within the area of the application's window. Regards Rolf From klaine8 at ...626... Thu Sep 18 15:39:23 2008 From: klaine8 at ...626... (Kari Laine) Date: Thu, 18 Sep 2008 16:39:23 +0300 Subject: [Gambas-user] UserControl UserContainer Message-ID: <61452b690809180639u6b04a39fqa406de78aae080ab@...627...> Hi, is there any documentation about UserControl and UserContainer classes? I can't find any... Best Regards Kari From gambas at ...1... Thu Sep 18 15:50:07 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 18 Sep 2008 15:50:07 +0200 Subject: [Gambas-user] UserControl UserContainer In-Reply-To: <61452b690809180639u6b04a39fqa406de78aae080ab@...627...> References: <61452b690809180639u6b04a39fqa406de78aae080ab@...627...> Message-ID: <200809181550.07897.gambas@...1...> On jeudi 18 septembre 2008, Kari Laine wrote: > Hi, > > is there any documentation about UserControl and UserContainer classes? > I can't find any... > > Best Regards > Kari What do you want to know specifically? UserControl is a Container that you use when you want to implement a Control in Gambas that mix several other controls. UserContainer is a Container that you use when you want to implement a Container in Gambas. It has a special property named _Container that you must set with the real container control if you want to create a "MultiContainer" container, like the Wizard container for example. -- Benoit Minisini From klaine8 at ...626... Thu Sep 18 16:28:52 2008 From: klaine8 at ...626... (Kari Laine) Date: Thu, 18 Sep 2008 17:28:52 +0300 Subject: [Gambas-user] UserControl UserContainer In-Reply-To: <200809181550.07897.gambas@...1...> References: <61452b690809180639u6b04a39fqa406de78aae080ab@...627...> <200809181550.07897.gambas@...1...> Message-ID: <61452b690809180728n650e78bfwe3829a2cbc772abb@...627...> On Thu, Sep 18, 2008 at 4:50 PM, Benoit Minisini < gambas at ...1...> wrote: > On jeudi 18 septembre 2008, Kari Laine wrote: > > Hi, > > > > is there any documentation about UserControl and UserContainer classes? > > I can't find any... > > > > Best Regards > > Kari > > What do you want to know specifically? > > UserControl is a Container that you use when you want to implement a > Control > in Gambas that mix several other controls. > > UserContainer is a Container that you use when you want to implement a > Container in Gambas. It has a special property named _Container that you > must > set with the real container control if you want to create a > "MultiContainer" > container, like the Wizard container for example. > > -- > Benoit Minisini > Thanks for definition! I had a look at gb.form and many of it's classes inherit UserControl. I was in search what functions and data UserControl provides. I will postpone this exercise until I can read Gambas source... Best Regards Kari From klaine8 at ...626... Thu Sep 18 20:47:51 2008 From: klaine8 at ...626... (Kari Laine) Date: Thu, 18 Sep 2008 21:47:51 +0300 Subject: [Gambas-user] Observer ? Message-ID: <61452b690809181147n64321d5dk27ef0f1afcafb223@...627...> Hi, would it be too much asked if someone kind enough would post little project, which shows how to use observer to subclass TextBox or whatever normal control? I mean so that the observer gets first peek to events and then passes them on. Benoit posted little nugget about ListBox but can't get it to work. In gb.form source observer is used but little differently and it is still over my head. I have now used three hours to get it to work and no carrot. Best Regards Kari Laine From doriano.blengino at ...1909... Thu Sep 18 21:33:35 2008 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Thu, 18 Sep 2008 21:33:35 +0200 Subject: [Gambas-user] generating new gambas file [automatic program update] In-Reply-To: <1221725590.6252.34.camel@...1964...> References: <1221725590.6252.34.camel@...1964...> Message-ID: <48D2AD0F.6090902@...1909...> Szenogr?di Norbert P?ter ha scritto: > Hi All, > > Can I create a simple project with automatic update option? > Well, when user starting a program, program will checking a new version > from a portal etc. > If new version possible change itself and restart a new version. > > This is possible? > I think it is possible, althought it can be better to do it through a shell script. Not sure about this, but you could do something like that: ' some code to determine if a new version is available shell "cd /tmp; wget http://your.server/updates/your-program.gambas" WAIT shell "mv /tmp/your-program.gambas /usr/local/bin/" ' this rewrite the old executable shell "/usr/local/bin/your-program.gambas &" ' two instances of the same program... quit This snippet relies on a possibility that only *nix has - to [re]write a file while it is still in use (if it is). Don't know if gambas interpreter keeps the file open while executing, but this should be ininfluent. With the "shell ....&" you launch a second instance of the same program, which will be the updated file (bytecode). Then the current application terminates. There is a moment where two instances of the same application run concurrently, so open files, or other system-wide resources, must be closed before doing that. This is an overall idea - but it should work. Regards From pastrano at ...431... Thu Sep 18 23:52:56 2008 From: pastrano at ...431... (Gianni Piccini) Date: Thu, 18 Sep 2008 23:52:56 +0200 Subject: [Gambas-user] Listview (simple?) problem In-Reply-To: <6324a42a0809171526xd42fe85y5fe3d5561e36e271@...627...> References: <48CD137C.8090708@...431...> <6324a42a0809171526xd42fe85y5fe3d5561e36e271@...627...> Message-ID: <48D2CDB8.505@...431...> On 18/09/2008 Fabien Bodard wrote: > Easy no ? but you need to store the value of the deleted row for the > move. That's another way, but I should test if it make difficulties when trying to swap item 0 with the previous :-) I think that (for my use, a small list of different items) the best thing is to build an array when selecting an item and check what position has the selected item text: with this, I can enable or disable appropriate buttons. From gambas at ...1... Fri Sep 19 01:12:35 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 19 Sep 2008 01:12:35 +0200 Subject: [Gambas-user] Observer ? In-Reply-To: <61452b690809181147n64321d5dk27ef0f1afcafb223@...627...> References: <61452b690809181147n64321d5dk27ef0f1afcafb223@...627...> Message-ID: <200809190112.36146.gambas@...1...> On jeudi 18 septembre 2008, Kari Laine wrote: > Hi, > > would it be too much asked if someone kind enough would post little > project, which shows how to use observer to subclass TextBox or whatever > normal control? I mean so that the observer gets first peek to events and > then passes them on. Benoit posted little nugget about ListBox but can't > get it to work. > In gb.form source observer is used but little differently and it is still > over my head. > > I have now used three hours to get it to work and no carrot. > > Best Regards > Kari Laine Here it is. Note that there is a design error in the compiler that force you to use "compile all" when a project class is exported. If you use "compile" only, some needed information files are not generated, and the exported class will not be exported. Regards, -- Benoit Minisini -------------- next part -------------- A non-text attachment was scrubbed... Name: Export-0.0.1.tar.gz Type: application/x-tgz Size: 8116 bytes Desc: not available URL: From rterry at ...1946... Fri Sep 19 06:28:46 2008 From: rterry at ...1946... (richard terry) Date: Fri, 19 Sep 2008 14:28:46 +1000 Subject: [Gambas-user] Build errors version ...67 Message-ID: <200809191428.47082.rterry@...1946...> make[3]: *** [install-exec-local] Error 126 make[3]: Leaving directory `/home/richard/gambas3-devel/src/trunk /help' make[2]: *** [install-am] Error 2 make[2]: Leaving directory `/home/richard/gambas3-devel/src/trunk /help' make[1]: *** [install-recursive] Error 1 make[1]: Leaving directory `/home/richard/gambas3-devel/src/trunk /help' make: *** [install-recursive] Error 1 ==> ERROR: Build Failed. Aborting... Benoit, I've noticed from versions 64-67 the build is failing on my machine - ?a local error. The above is the last error message. Regards Richard From rhinnie at ...626... Fri Sep 19 07:35:24 2008 From: rhinnie at ...626... (Rini Verawati) Date: Fri, 19 Sep 2008 12:35:24 +0700 Subject: [Gambas-user] Gambas-user Digest, Vol 28, Issue 3 In-Reply-To: References: Message-ID: <92cd09800809182235y659b4c60n2b3193015d9b09f@...627...> unsubscribe On Tue, Sep 2, 2008 at 2:55 AM, wrote: > Send Gambas-user mailing list submissions to > gambas-user at lists.sourceforge.net > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/gambas-user > or, via email, send a message with subject or body 'help' to > gambas-user-request at lists.sourceforge.net > > You can reach the person managing the list at > gambas-user-owner at lists.sourceforge.net > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Gambas-user digest..." > > > Today's Topics: > > 1. Re: Nice book of Gambas (Benoit Minisini) > 2. Re: HBox from right to left? (Benoit Minisini) > 3. Re: HBox from right to left? (Ron) > 4. Re: Nice book of Gambas (Kari Laine) > 5. Re: Nice book of Gambas (Benoit Minisini) > 6. Re: Nice book of Gambas (admin at ...1956...) > 7. Re: Nice book of Gambas (Kari Laine) > 8. new user (Szenogr?di Norbert P?ter) > 9. Re: Nice book of Gambas (gambas at ...1938...) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Mon, 1 Sep 2008 14:20:12 +0200 > From: Benoit Minisini > Subject: Re: [Gambas-user] Nice book of Gambas > To: mailing list for gambas users > Message-ID: <200809011420.12971.gambas at ...1...> > Content-Type: text/plain; charset="iso-8859-1" > > On lundi 01 septembre 2008, KI have nari Laine wrote: > > > Kari, > > > > > > I tried as well. > > > > > > Can you take the lead on getting the password or the original source > > > document? > > > > > > John > > > > Hi John, > > > > > > I think there is no password on the file because I commented a test in > > pdftohtml to ignore some kind of protection and out it came. BUT there is > > no layout, no pictures only the text. So it is big job to turn it to a > nice > > document. Anyway the screen capture pictures would probably be old > anyway. > > > > I read the OpenContent license of the book and if I understood right it > > would make difficult to produce derivative work or wiki - quite > impossible > > in fact. > > > > Maybe someone with leverage - Benoit - could contact John W Rittinghouse > > and ask. > > I have no news from him since he sent me its book. I think I have lost its > email in my annual email bleedings. > > > > > Fact is Gambas needs more documentation to lure users. > > I agree. If only I have more time! > > > Also I would be > > prepared to pay for a technical document how Gambas works. I have used > now > > countles hours and I have just scratched the surface. Either I am darn > > stupid or Benoit is about to win obfuscated code contest :-) before this > > day I know very little about compilers and interpreters and I am not very > > good with C - so it is going to take few months... > > Maybe this is the main reason of your problems. I admit I don't document my > code a lot, but I don't obfuscate it at all. > > If you choose good symbol names, and if you do logical things, your code is > usually almost explain itself. > > I will try to comment the interpreter better now I know that somebody tries > to > understand it. And I will answer your questions too. But you should first > really learn the C language and get some information about compilers and > interpreters. > > > > > And Windows version would be nice too :-) > > > > I won't do it. But if there is a volunteer, I will help him. > > > > > Best Regards > > Kari Laine > > Regards, > > -- > Benoit Minisini > > > > ------------------------------ > > Message: 2 > Date: Mon, 1 Sep 2008 14:21:28 +0200 > From: Benoit Minisini > Subject: Re: [Gambas-user] HBox from right to left? > To: mailing list for gambas users > Message-ID: <200809011421.28804.gambas at ...1...> > Content-Type: text/plain; charset="iso-8859-1" > > On lundi 01 septembre 2008, Ron wrote: > > Hi, > > > > I want -for example- align a clock textfield in my status bar on the > > righthand side, and keep it far right after resizing my window. > > > > But there is only a HBox which aligns from left to right, how about one > > pointing the other way, does that makes sense? > > > > Regards, > > Ron_2nd > > > > There is a trick. :-) > > Put a panel with Expand property set at the beginning of the HBox, and > everything will be pushed to the right. > > Regards, > > -- > Benoit Minisini > > > > ------------------------------ > > Message: 3 > Date: Mon, 01 Sep 2008 14:34:09 +0200 > From: Ron > Subject: Re: [Gambas-user] HBox from right to left? > To: mailing list for gambas users > Message-ID: <48BBE141.4020905 at ...1740...> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > Benoit Minisini schreef: > > On lundi 01 septembre 2008, Ron wrote: > > > >> Hi, > >> > >> I want -for example- align a clock textfield in my status bar on the > >> righthand side, and keep it far right after resizing my window. > >> > >> But there is only a HBox which aligns from left to right, how about one > >> pointing the other way, does that makes sense? > >> > >> Regards, > >> Ron_2nd > >> > >> > > > > There is a trick. :-) > > > > Put a panel with Expand property set at the beginning of the HBox, and > > everything will be pushed to the right. > > > > Regards, > > > > > That works, thanks! > > Regards, > Ron_2nd. > > > > > ------------------------------ > > Message: 4 > Date: Mon, 1 Sep 2008 16:19:17 +0300 > From: "Kari Laine" > Subject: Re: [Gambas-user] Nice book of Gambas > To: "mailing list for gambas users" > > Message-ID: > <61452b690809010619g4ed58dcax75357e1466e7c47a at ...627...> > Content-Type: text/plain; charset=ISO-8859-1 > > On Mon, Sep 1, 2008 at 3:20 PM, Benoit Minisini < > gambas at ...1...> wrote: > > > > Also I would be > > > prepared to pay for a technical document how Gambas works. I have used > > now > > > countles hours and I have just scratched the surface. Either I am darn > > > stupid or Benoit is about to win obfuscated code contest :-) before > this > > > day I know very little about compilers and interpreters and I am not > very > > > good with C - so it is going to take few months... > > > > Maybe this is the main reason of your problems. I admit I don't document > my > > code a lot, but I don't obfuscate it at all. > > > > Hi Benoit, > > I hope you understood from the context that this obfuscate bit was meant as > joke... > > > Best Regards > Kari > > > ------------------------------ > > Message: 5 > Date: Mon, 1 Sep 2008 15:25:27 +0200 > From: Benoit Minisini > Subject: Re: [Gambas-user] Nice book of Gambas > To: mailing list for gambas users > Message-ID: <200809011525.27677.gambas at ...1...> > Content-Type: text/plain; charset="iso-8859-1" > > On lundi 01 septembre 2008, Kari Laine wrote: > > On Mon, Sep 1, 2008 at 3:20 PM, Benoit Minisini < > > > > gambas at ...1...> wrote: > > > > Also I would be > > > > prepared to pay for a technical document how Gambas works. I have > used > > > > > > now > > > > > > > countles hours and I have just scratched the surface. Either I am > darn > > > > stupid or Benoit is about to win obfuscated code contest :-) before > > > > this day I know very little about compilers and interpreters and I am > > > > not very good with C - so it is going to take few months... > > > > > > Maybe this is the main reason of your problems. I admit I don't > document > > > my code a lot, but I don't obfuscate it at all. > > > > > > Hi Benoit, > > > > I hope you understood from the context that this obfuscate bit was meant > as > > joke... > > > > Yes, don't worry. :-) > > -- > Benoit Minisini > > > > ------------------------------ > > Message: 6 > Date: Mon, 01 Sep 2008 12:14:43 -0700 > From: admin at ...1956... > Subject: Re: [Gambas-user] Nice book of Gambas > To: gambas-user at lists.sourceforge.net > Message-ID: <20080901121443.wx94pyo9skw4oc44 at ...1958...> > Content-Type: text/plain; charset=ISO-8859-1; DelSp="Yes"; > format="flowed" > > Quoting Kari Laine : > > >> Kari, > >> > >> I tried as well. > >> > >> Can you take the lead on getting the password or the original source > >> document? > >> > >> John > >> > > > > Hi John, > > > > > > I think there is no password on the file because I commented a test in > > pdftohtml to ignore some kind of protection and out it came. BUT there is > no > > layout, no pictures only the text. So it is big job to turn it to a nice > > document. Anyway the screen capture pictures would probably be old > anyway. > > > > I read the OpenContent license of the book and if I understood right it > > would make difficult to produce derivative work or wiki - quite > impossible > > in fact. > > > > Maybe someone with leverage - Benoit - could contact John W Rittinghouse > and > > ask. > > > > Fact is Gambas needs more documentation to lure users. Also I would be > > prepared to pay for a technical document how Gambas works. I have used > now > > countles hours and I have just scratched the surface. Either I am darn > > stupid or Benoit is about to win obfuscated code contest :-) before this > day > > I know very little about compilers and interpreters and I am not very > good > > with C - so it is going to take few months... > > > > And Windows version would be nice too :-) > > > > > > Best Regards > > Kari Laine > > > > Kari, > > I won't install the wiki till you have permission from John R.and the > source to the original content. I will leave the > http://gambas.allbasic.info sub-domain active till no hope is left. > > I'm still counting on you to get to the bottom of this. > > John > > > > ------------------------------ > > Message: 7 > Date: Mon, 1 Sep 2008 22:18:23 +0300 > From: "Kari Laine" > Subject: Re: [Gambas-user] Nice book of Gambas > To: "mailing list for gambas users" > > Message-ID: > <61452b690809011218r361c611fs1eed14a71bd1dbe3 at ...627...> > Content-Type: text/plain; charset=ISO-8859-1 > > On Mon, Sep 1, 2008 at 10:14 PM, wrote: > > > > > I won't install the wiki till you have permission from John R.and the > > source to the original content. I will leave the > > http://gambas.allbasic.info sub-domain active till no hope is left. > > > > I'm still counting on you to get to the bottom of this. > > > > John > > > > Hi, > > I tried to search homepage or something like that for the author. Did not > find. I won't try actively any more. And anyway I am not the right person > to > contact him - Benoit would be. > > Best Regards > Kari > > > ------------------------------ > > Message: 8 > Date: Mon, 01 Sep 2008 21:27:16 +0200 > From: Szenogr?di Norbert P?ter > Subject: [Gambas-user] new user > To: mailing list for gambas users > Message-ID: <1220297236.7347.4.camel at ...1964...> > Content-Type: text/plain > > Hi all. > > Im a new member on gambas-user-list. > > I have some quession: > - How can I send a datas to other form.. > - How can I see any -manual inserted- data in Tableview and/or > Gridview.. > > > Sorry for my newbie quession.. :) > Im hope you can answer it :) > > Sevoir from Hungary ;) > > > > > ------------------------------ > > Message: 9 > Date: Mon, 1 Sep 2008 21:55:38 +0200 > From: gambas at ...1938... > Subject: Re: [Gambas-user] Nice book of Gambas > To: gambas-user at lists.sourceforge.net > Message-ID: <200809012155.38940.gambas at ...1938...> > Content-Type: text/plain; charset="iso-8859-1" > > Am Montag, 1. September 2008 21:14:43 schrieb admin at ...1956...: > > Kari, > > > > I won't install the wiki till you have permission from John R.and the > > source to the original content. I will leave the > > http://gambas.allbasic.info sub-domain active till no hope is left. > > > > I'm still counting on you to get to the bottom of this. > > > > John > Sorry...but what are you trying to do here?? ...you have an "allbasic-site" > and want it to be a central site for "all" basic dialects. ...so go for > it!! ...search for the author of the book and drop him a mail, but stop > pushing other people into fire, which flames cook your meal! > > Greetz > Stevie > > > > > ------------------------------ > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > > ------------------------------ > > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > End of Gambas-user Digest, Vol 28, Issue 3 > ****************************************** > From charles at ...1784... Fri Sep 19 09:28:42 2008 From: charles at ...1784... (charlesg) Date: Fri, 19 Sep 2008 00:28:42 -0700 (PDT) Subject: [Gambas-user] Build errors version ...67 In-Reply-To: <200809191428.47082.rterry@...1946...> References: <200809191428.47082.rterry@...1946...> Message-ID: <19567478.post@...1379...> Hi, Confirmed on Ubuntu 8.04 (as well?) rgds -- View this message in context: http://www.nabble.com/Build-errors-version-...67-tp19566083p19567478.html Sent from the gambas-user mailing list archive at Nabble.com. From sevoir75 at ...626... Fri Sep 19 12:14:17 2008 From: sevoir75 at ...626... (=?ISO-8859-1?Q?Szenogr=E1di?= Norbert =?ISO-8859-1?Q?P=E9ter?=) Date: Fri, 19 Sep 2008 12:14:17 +0200 Subject: [Gambas-user] generating new gambas file [automatic program update] In-Reply-To: <48D2AD0F.6090902@...1909...> References: <1221725590.6252.34.camel@...1964...> <48D2AD0F.6090902@...1909...> Message-ID: <1221819257.6286.27.camel@...1964...> Hi All, This is okay, thanks a lot. Is in gambas2 filetime() ? I not founded... Regards, Norbert 2008. 09. 18, cs?t?rt?k keltez?ssel 21.33-kor Doriano Blengino ezt ?rta: > Szenogr?di Norbert P?ter ha scritto: > > Hi All, > > > > Can I create a simple project with automatic update option? > > Well, when user starting a program, program will checking a new version > > from a portal etc. > > If new version possible change itself and restart a new version. > > > > This is possible? > > > I think it is possible, althought it can be better to do it through a > shell script. > Not sure about this, but you could do something like that: > > ' some code to determine if a new version is available > shell "cd /tmp; wget http://your.server/updates/your-program.gambas" > WAIT > shell "mv /tmp/your-program.gambas /usr/local/bin/" ' this rewrite > the old executable > shell "/usr/local/bin/your-program.gambas &" ' two > instances of the same program... > quit > > > This snippet relies on a possibility that only *nix has - to [re]write a > file while it is still in use (if it is). > Don't know if gambas interpreter keeps the file open while executing, > but this should be ininfluent. > With the "shell ....&" you launch a second instance of the same program, > which will be the updated file (bytecode). > Then the current application terminates. > > There is a moment where two instances of the same application run > concurrently, so > open files, or other system-wide resources, must be closed before doing > that. > > > This is an overall idea - but it should work. > > Regards > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From rterry at ...1946... Sat Sep 20 06:50:40 2008 From: rterry at ...1946... (richard terry) Date: Sat, 20 Sep 2008 14:50:40 +1000 Subject: [Gambas-user] Weird errors using debug Message-ID: <200809201450.40449.rterry@...1946...> I think i need a mini-tutorial on how to user debug. I assumed that the statement could be used in place of PRINT to print out messages in the console, but after 8-10 hours of wondering why my program was suddenly doing bizaare things, I eventually tracked it down to my use of putting in lines line Debug "Starting to save....." .... my code here Debug "Finished saving" What happened was really really bizarre. The program flow became altered, If the code within one suboutine had called on another subroutine, the program flow in the orginal routine continued without waiting for the execution of the subroutine, and even weider, the contents of some variables I'd been using in the calling routine where partially internally overwritten by code statements from within my gambas program itself and in part from some of the console output!, not necessarily from the routine I was in. Almost like memory addresses somehow were getting mixed up. I was doing some complex parsing of html, substituting src= statements contianing temporary file names, for the database pk of the image I was saving in the html.After 10 frustrating hours, I did a global substitution of all my Debug with PRINT, and hey presto - the problem disappeared. I note this from the documentation: Prints expressions to the standard error output, only if your program is compiled with debugging informations. Maybe my program is somehow not containing 'debugging information(s) -wrong spelling by the way, perhaps someone can explain to me how to use debug. Regards Richard From rterry at ...1946... Sat Sep 20 06:51:36 2008 From: rterry at ...1946... (richard terry) Date: Sat, 20 Sep 2008 14:51:36 +1000 Subject: [Gambas-user] Can you clear the console from within gambas code? Message-ID: <200809201451.36637.rterry@...1946...> Can you clear the console from within gambas code? Wondered, as this would be useful for me at the moment whilst I'm tracking bugs. Regards Richard From doriano.blengino at ...1909... Sat Sep 20 08:42:07 2008 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Sat, 20 Sep 2008 08:42:07 +0200 Subject: [Gambas-user] Can you clear the console from within gambas code? In-Reply-To: <200809201451.36637.rterry@...1946...> References: <200809201451.36637.rterry@...1946...> Message-ID: <48D49B3F.2000404@...1909...> richard terry ha scritto: > Can you clear the console from within gambas code? > > Wondered, as this would be useful for me at the moment whilst I'm tracking > bugs. > > Regards > Richard > I don't know if you can clear the gambas console from a program - chances are you can't. But this could be useful to you: there is an "ERROR TO" statement, and you can redirect the standard error elsewhere (a file...); so you can "grep" or whatever the file and examine more easily the things. Benoit: when I start to write complex applications, I first put a log routine which the program calls in relevant points, passing a "topic", a "level", and the debug message (or sometimes only level and message) - this is the same as the linux syslog facility. The log routine then decides whether to discard the message, if its level is lesser than DebugLevel. DebugLevel can be set in code or by command line. May be a more sofisticated DEBUG instruction could be useful in such cases. Just an idea... Regards, Doriano Blengino From gambas at ...1... Sat Sep 20 12:21:03 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 20 Sep 2008 12:21:03 +0200 Subject: [Gambas-user] Weird errors using debug In-Reply-To: <200809201450.40449.rterry@...1946...> References: <200809201450.40449.rterry@...1946...> Message-ID: <200809201221.03543.gambas@...1...> On samedi 20 septembre 2008, richard terry wrote: > I think i need a mini-tutorial on how to user debug. > > I assumed that the statement could be used in place of PRINT to print out > messages in the console, but after 8-10 hours of wondering why my program > was suddenly doing bizaare things, I eventually tracked it down to my use > of putting in lines line > > Debug "Starting to save....." > > .... my code here > > Debug "Finished saving" > > What happened was really really bizarre. The program flow became altered, > If the code within one suboutine had called on another subroutine, the > program flow in the orginal routine continued without waiting for the > execution of the subroutine, and even weider, the contents of some > variables I'd been using in the calling routine where partially internally > overwritten by code statements from within my gambas program itself and in > part from some of the console output!, not necessarily from the routine I > was in. > > Almost like memory addresses somehow were getting mixed up. > > I was doing some complex parsing of html, substituting src= statements > contianing temporary file names, for the database pk of the image I was > saving in the html.After 10 frustrating hours, I did a global substitution > of all my Debug with PRINT, and hey presto - the problem disappeared. > > I note this from the documentation: > > Prints expressions to the standard error output, only if your program is > compiled with debugging informations. > > Maybe my program is somehow not containing 'debugging information(s) -wrong > spelling by the way, perhaps someone can explain to me how to use debug. > > Regards > > Richard > If you run your program in the IDE, debugging information is enabled. DEBUG is like PRINT, except that: - Everything is sent to the standard error output. - The current class, current method and current line is printed before the message. Anyway, your own interpretation of what you see is not really useful. I need a project and a way to reproduce the described behaviour. If you want to see if there was memory corruption (why not?), just use valgrind to run the interpreter: $ cd /my/gambas/project $ valgrind --tool=memcheck --num-callers=50 gbx2 -p ... Regards, -- Benoit Minisini From ron at ...1740... Sat Sep 20 12:31:29 2008 From: ron at ...1740... (Ron) Date: Sat, 20 Sep 2008 12:31:29 +0200 Subject: [Gambas-user] gb.sdl.sound Message-ID: <48D4D101.7000007@...1740...> Hi, I have added the gb.sdl.sound component to my program. My program runs for a short time and then gambas crashes with signal 11, what was the correct way to get useful info out of the core files it dumped? I cannot find it... Music.Load() failes to load _any file_ I supply. Error: "Unable to load WAV file" not very informative... My pulseaudio setup could be the problem maybe, but getting something from the core files would be nice. Thanks. Ron_2nd. From ron at ...1740... Sat Sep 20 13:22:16 2008 From: ron at ...1740... (Ron) Date: Sat, 20 Sep 2008 13:22:16 +0200 Subject: [Gambas-user] gb.sdl.sound In-Reply-To: <48D4D101.7000007@...1740...> References: <48D4D101.7000007@...1740...> Message-ID: <48D4DCE8.7060908@...1740...> Ron schreef: > Hi, > > I have added the gb.sdl.sound component to my program. > > My program runs for a short time and then gambas crashes with signal 11, > what was the correct way to get useful info out of the core files it > dumped? > I cannot find it... > > Music.Load() failes to load _any file_ I supply. > > Error: "Unable to load WAV file" not very informative... > > My pulseaudio setup could be the problem maybe, but getting something > from the core files would be nice. > > Some more info: When pulsaudio cannot reach the default server to play to, because it's not started, you get this when you start a gambas program with the gb.sdl.sound component enabled (even without any sdl sound command in your program) *** PULSEAUDIO: Unable to connect: Connection refused Apperantly gambas is opening the audio device, even without any command to run or sound to play. When you now try to load any file with Music.Load(file) it failes, I find that quite strange, because its only loading an audio file, and not playin yet. Playing fails also, because it couldnt load it earlier ofcourse. When I start my pulseaudio server, I get this error in the console when my program starts: open /dev/sequencer: No such file or directory That device is not on my system. (debian 4.0 with qt) But loading and playing file now works (Music.Load and Music.Play) Lets see if its stable now. Regards, Ron_2nd From garulfounix at ...626... Sat Sep 20 13:22:32 2008 From: garulfounix at ...626... (=?iso-8859-1?q?Fran=E7ois?=) Date: Sat, 20 Sep 2008 13:22:32 +0200 Subject: [Gambas-user] gb.sdl.sound In-Reply-To: <48D4D101.7000007@...1740...> References: <48D4D101.7000007@...1740...> Message-ID: <200809201322.32509.garulfounix@...626...> Le Saturday 20 September 2008 12:31:29 Ron, vous avez ?crit?: > Hi, > > I have added the gb.sdl.sound component to my program. > > My program runs for a short time and then gambas crashes with signal 11, > what was the correct way to get useful info out of the core files it > dumped? > I cannot find it... > > Music.Load() failes to load _any file_ I supply. > > Error: "Unable to load WAV file" not very informative... > > My pulseaudio setup could be the problem maybe, but getting something > from the core files would be nice. > > Thanks. > Ron_2nd. > > > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge Build the coolest Linux based applications with Moblin SDK & win > great prizes Grand prize is a trip for two to an Open Source event anywhere > in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user It's a problem with your linux distribution, not with the gb.sdl.sound component because i use this component for one of my projects (and it runs very good :) ) . Did you have installed the good packages to play .WAV file ? What is your linux distribution ? Maybe the problem come from pulseaudio server... But i find that strange. -- GarulfoUnix - Fran?ois Gallo (fr)Contributeur ? Gambas(Traductions, documentations, rapport de bugs...) (en)Gambas contributor(Translation, documentation, bugs report...and so on) From gambas at ...1... Sat Sep 20 13:35:51 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 20 Sep 2008 13:35:51 +0200 Subject: [Gambas-user] gb.sdl.sound In-Reply-To: <48D4D101.7000007@...1740...> References: <48D4D101.7000007@...1740...> Message-ID: <200809201335.51756.gambas@...1...> On samedi 20 septembre 2008, Ron wrote: > Hi, > > I have added the gb.sdl.sound component to my program. > > My program runs for a short time and then gambas crashes with signal 11, > what was the correct way to get useful info out of the core files it > dumped? > I cannot find it... Follow what is specified on the "reporting a problem" page on the web site. But I'm afraid I won't be able to do many things, as gb.sdl.sound is very simple. It mainly uses the SDL library directly. Regards, -- Benoit Minisini From doriano.blengino at ...1909... Sat Sep 20 14:06:42 2008 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Sat, 20 Sep 2008 14:06:42 +0200 Subject: [Gambas-user] Interactive print designer anybody? Message-ID: <48D4E752.3060508@...1909...> When time came for my accounting application to print an invoice-like document, I first made a print preview. Then I spent a lot of time on writing perhaps 100 lines of code full of draw.xxx(xxx,yyy,....) until, just after the document was almost ok, I decided I wanted an interactive editor for printing, and I did it. The 100 lines of code in the program became perhaps 15, and the preview form became 1700 lines long... but to rebuild the same document took me 1 hour instead of a couple days. While waiting for interactive gb.report, maybe someone could benefit from this fmPrintPreview. It is not complete, but for printing a single page is enough. In the main program just put data paired with a tag, and then edit all the rest interactively. Properties edited visually are save in file. Printed page should be just the same as preview shows. All the thing can be very unusual, from the base concept to the way geometry is managed, but simply try to drag items around and play with the properties and the "..." button. A Readme file inside the project, and many comments in the code, can explain concepts. If sufficient feedback arrives, then I could write some documentation to help others use this facility. If someone finds some bug (surely a lot), or has some enhancement, please let me know. I will not change idea about two fundamental concepts (program-driven and geometry manager), but everything else can be changed. Happy coding to all, Doriano Blengino -------------- next part -------------- A non-text attachment was scrubbed... Name: PrintDesigner-0.0.17.tar.gz Type: application/gzip Size: 72889 bytes Desc: not available URL: From ron at ...1740... Sat Sep 20 13:30:59 2008 From: ron at ...1740... (Ron) Date: Sat, 20 Sep 2008 13:30:59 +0200 Subject: [Gambas-user] gb.sdl.sound In-Reply-To: <200809201322.32509.garulfounix@...626...> References: <48D4D101.7000007@...1740...> <200809201322.32509.garulfounix@...626...> Message-ID: <48D4DEF3.40101@...1740...> Fran?ois schreef: > Le Saturday 20 September 2008 12:31:29 Ron, vous avez ?crit : > >> Hi, >> >> I have added the gb.sdl.sound component to my program. >> >> My program runs for a short time and then gambas crashes with signal 11, >> what was the correct way to get useful info out of the core files it >> dumped? >> I cannot find it... >> >> Music.Load() failes to load _any file_ I supply. >> >> Error: "Unable to load WAV file" not very informative... >> >> My pulseaudio setup could be the problem maybe, but getting something >> from the core files would be nice. >> >> Thanks. >> Ron_2nd. >> >> >> >> >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move Developer's >> challenge Build the coolest Linux based applications with Moblin SDK & win >> great prizes Grand prize is a trip for two to an Open Source event anywhere >> in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > It's a problem with your linux distribution, not with the gb.sdl.sound > component because i use this component for one of my projects (and it runs > very good :) ) . > > Did you have installed the good packages to play .WAV file ? > What is your linux distribution ? > > Maybe the problem come from pulseaudio server... But i find that strange. > > Hi, Look at my last post, if gambas sdl component cannot connect/open the audio device when it inits the sound engine, loading of all audio files failes. (Music.Load) This look like a bug in the component to me. If start my pulseaudio environment correctly before starting gambas program all loading and playing is ok, exept for a /dev/sequencer error not found. Commands like 'play' and 'swift' (cepstral TTS) are loading files normally, but give the error that the cannot connect to pulseaudio (in fact it's pulseaudio client giving this error) This is the only sdl related code I have now: PUBLIC FUNCTION PlaySnd(sFile AS String, OPTIONAL iVol AS Integer) DIM iVolume AS Float DIM sSnd AS String IF NOT Main.bSoundEnabled THEN RETURN ' sound not enabled sSnd = sDefaultSoundDirectory &/ sFile IF ivol THEN ' custom volume iVolume = 1 - iVol / 100 ELSE ' default volume iVolume = 1 - Main.iSoundVolume / 100 ENDIF IF Exist(sSnd) THEN ' load sample Music.Load(sSnd) Music.Volume = iVolume IF Main.bSoundDebug THEN Main.WriteDebugLog("[Sound] Volume is set to " & iVolume) ' play sample Music.Play() ELSE Main.WriteDebugLog("[Sound] The soundfile " & sSnd & " doesn't exist!") ENDIF END Regards, Ron_2nd From david_villalobos_c at ...43... Sat Sep 20 15:49:44 2008 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Sat, 20 Sep 2008 06:49:44 -0700 (PDT) Subject: [Gambas-user] Catching ,messages in gb.db Message-ID: <679706.43533.qm@...1782...> Hi all, If I made DB.Debug = True, then all statements executed by the component will be sent the standard error output, but I need to save those messages into a file, I tried to redirect the error output but I couldn't, any help? Best regards -- David From kari.laine at ...1400... Sat Sep 20 16:21:15 2008 From: kari.laine at ...1400... (Kari Laine) Date: Sat, 20 Sep 2008 17:21:15 +0300 Subject: [Gambas-user] Object.Attach & Object.Detach Message-ID: <48D506DB.5060806@...1400...> Hi, I am trying to learn Object.Attach and Object.Detach. I have following code in a little program Object.Attach($hTextBoxView, ME, "TextBoxView") ' Object.Detach($hTextBoxView) If object.detach is commented out it works as supposed. SUBs in ME handle events. If Object.Attach is also commented out FORM's subs take care of events. But then I tried to see whether Object.Detach returns event-handling to original Form-based - it doesn't. I have some basic misunderstanding in this - could someone comment, please. If someone have time to make little example with explanation - it would be highly appreciated. I tried to send this question to list yesterday with attached project - but it does not show up. Did anybody see it? For me it seems sourceforge list-handling is not the best of brand... Best Regards Kari Laine From gambas at ...1... Sat Sep 20 16:52:36 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 20 Sep 2008 16:52:36 +0200 Subject: [Gambas-user] Object.Attach & Object.Detach In-Reply-To: <48D506DB.5060806@...1400...> References: <48D506DB.5060806@...1400...> Message-ID: <200809201652.36993.gambas@...1...> On samedi 20 septembre 2008, Kari Laine wrote: > Hi, > > I am trying to learn Object.Attach and Object.Detach. I have following > code in a little program > > Object.Attach($hTextBoxView, ME, "TextBoxView") > ' Object.Detach($hTextBoxView) > > If object.detach is commented out it works as supposed. SUBs in ME > handle events. If Object.Attach is also commented out FORM's subs take > care of events. But then I tried to see whether Object.Detach returns > event-handling to original Form-based - it doesn't. I have some basic > misunderstanding in this - could someone comment, please. Objects just do not remember the old objects they were attached to. > > If someone have time to make little example with explanation - it would > be highly appreciated. > > I tried to send this question to list yesterday with attached project - > but it does not show up. Did anybody see it? For me it seems sourceforge > list-handling is not the best of brand... Indeed! Regards, -- Benoit Minisini From gambas at ...1... Sat Sep 20 16:53:14 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 20 Sep 2008 16:53:14 +0200 Subject: [Gambas-user] Catching ,messages in gb.db In-Reply-To: <679706.43533.qm@...1782...> References: <679706.43533.qm@...1782...> Message-ID: <200809201653.15025.gambas@...1...> On samedi 20 septembre 2008, David Villalobos Cambronero wrote: > Hi all, > > If I made DB.Debug = True, then all statements executed by the component > will be sent the standard error output, but I need to save those messages > into a file, I tried to redirect the error output but I couldn't, any help? > > > Best regards > > > -- > David > You should be able to do that with "2>&1" in a shell. What's the problem with that? -- Benoit Minisini From klaine8 at ...626... Sat Sep 20 17:34:04 2008 From: klaine8 at ...626... (Kari Laine) Date: Sat, 20 Sep 2008 18:34:04 +0300 Subject: [Gambas-user] Object.Attach & Object.Detach In-Reply-To: <200809201652.36993.gambas@...1...> References: <48D506DB.5060806@...1400...> <200809201652.36993.gambas@...1...> Message-ID: <61452b690809200834m7f0387exe4c080a04a0d3014@...627...> On Sat, Sep 20, 2008 at 5:52 PM, Benoit Minisini < gambas at ...1...> wrote: > On samedi 20 septembre 2008, Kari Laine wrote: > > Hi, > > > > I am trying to learn Object.Attach and Object.Detach. I have following > > code in a little program > > > > Object.Attach($hTextBoxView, ME, "TextBoxView") > > ' Object.Detach($hTextBoxView) > > > > If object.detach is commented out it works as supposed. SUBs in ME > > handle events. If Object.Attach is also commented out FORM's subs take > > care of events. But then I tried to see whether Object.Detach returns > > event-handling to original Form-based - it doesn't. I have some basic > > misunderstanding in this - could someone comment, please. > > Objects just do not remember the old objects they were attached to. > > Thanks Benoit, Where do events go then? Is there way to do "remembering" myself in code? This is marginal question, so if you busy - don't answer. Best Regards Kari Laine From gambas at ...1... Sat Sep 20 18:29:38 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 20 Sep 2008 18:29:38 +0200 Subject: [Gambas-user] Object.Attach & Object.Detach In-Reply-To: <61452b690809200834m7f0387exe4c080a04a0d3014@...627...> References: <48D506DB.5060806@...1400...> <200809201652.36993.gambas@...1...> <61452b690809200834m7f0387exe4c080a04a0d3014@...627...> Message-ID: <200809201829.38630.gambas@...1...> On samedi 20 septembre 2008, Kari Laine wrote: > On Sat, Sep 20, 2008 at 5:52 PM, Benoit Minisini < > > gambas at ...1...> wrote: > > On samedi 20 septembre 2008, Kari Laine wrote: > > > Hi, > > > > > > I am trying to learn Object.Attach and Object.Detach. I have following > > > code in a little program > > > > > > Object.Attach($hTextBoxView, ME, "TextBoxView") > > > ' Object.Detach($hTextBoxView) > > > > > > If object.detach is commented out it works as supposed. SUBs in ME > > > handle events. If Object.Attach is also commented out FORM's subs take > > > care of events. But then I tried to see whether Object.Detach returns > > > event-handling to original Form-based - it doesn't. I have some basic > > > misunderstanding in this - could someone comment, please. > > > > Objects just do not remember the old objects they were attached to. > > > > Thanks Benoit, > > Where do events go then? They are lost. As if the object was never attached to anything. > Is there way to do "remembering" myself in code? Store the old observers yourself. Regards, -- Benoit Minisini From klaine8 at ...626... Sat Sep 20 18:38:12 2008 From: klaine8 at ...626... (Kari Laine) Date: Sat, 20 Sep 2008 19:38:12 +0300 Subject: [Gambas-user] GambasForge.net Message-ID: <61452b690809200938la970252yb8b33fe732a3b47c@...627...> Hi, I just found GambasForge.net . Contains nice little programs written in Gambas. I read somewhere that GambasForge.net is written in Gambas and that it is released as GPL. It has a SourceForge project page but there is no files released yet - or is just dump me who can't find it... GambasForge.net should contain an option you can enlist to, which sends an email whenever new files are uploaded there. Best Regards Kari Laine From ron at ...1740... Sat Sep 20 18:45:37 2008 From: ron at ...1740... (Ron) Date: Sat, 20 Sep 2008 18:45:37 +0200 Subject: [Gambas-user] GambasForge.net In-Reply-To: <61452b690809200938la970252yb8b33fe732a3b47c@...627...> References: <61452b690809200938la970252yb8b33fe732a3b47c@...627...> Message-ID: <48D528B1.4070505@...1740...> Kari Laine schreef: > Hi, > > I just found GambasForge.net . Contains nice little programs written in > Gambas. I read somewhere that GambasForge.net is written in Gambas and that > it is released as GPL. It has a SourceForge project page but there is no > files released yet - or is just dump me who can't find it... > > GambasForge.net should contain an option you can enlist to, which sends an > email whenever new files are uploaded there. > > > Best Regards > Kari Laine > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > Look on its project page under svn or cvs browse, you can download a gnu tarball on the bottom of the page. At least a few days back this was possible. Havent checked it. Regards, Ron_2nd From klaine8 at ...626... Sat Sep 20 19:37:00 2008 From: klaine8 at ...626... (Kari Laine) Date: Sat, 20 Sep 2008 20:37:00 +0300 Subject: [Gambas-user] Object.Attach & Object.Detach In-Reply-To: <200809201829.38630.gambas@...1...> References: <48D506DB.5060806@...1400...> <200809201652.36993.gambas@...1...> <61452b690809200834m7f0387exe4c080a04a0d3014@...627...> <200809201829.38630.gambas@...1...> Message-ID: <61452b690809201037ma137c2h938d1c89f7cdaad5@...627...> On Sat, Sep 20, 2008 at 7:29 PM, Benoit Minisini < gambas at ...1...> wrote: > On samedi 20 septembre 2008, Kari Laine wrote: > > On Sat, Sep 20, 2008 at 5:52 PM, Benoit Minisini < > > > > > > Where do events go then? > > They are lost. As if the object was never attached to anything. > > > Is there way to do "remembering" myself in code? > > Store the old observers yourself. > > How do I get the observer for defined object? Object.Attach is void. I was able to get the example to do what I wanted by using FMain as event target. But I would very much appreciate a way to find out who is the observer for whatever object - and that I am not able to figure out. This must be trivial... Best Regards Kari Laine From gambas at ...1... Sat Sep 20 19:50:28 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 20 Sep 2008 19:50:28 +0200 Subject: [Gambas-user] Object.Attach & Object.Detach In-Reply-To: <61452b690809201037ma137c2h938d1c89f7cdaad5@...627...> References: <48D506DB.5060806@...1400...> <200809201829.38630.gambas@...1...> <61452b690809201037ma137c2h938d1c89f7cdaad5@...627...> Message-ID: <200809201950.28622.gambas@...1...> On samedi 20 septembre 2008, Kari Laine wrote: > On Sat, Sep 20, 2008 at 7:29 PM, Benoit Minisini < > > gambas at ...1...> wrote: > > On samedi 20 septembre 2008, Kari Laine wrote: > > > On Sat, Sep 20, 2008 at 5:52 PM, Benoit Minisini < > > > > > > > > > Where do events go then? > > > > They are lost. As if the object was never attached to anything. > > > > > Is there way to do "remembering" myself in code? > > > > Store the old observers yourself. > > > > How do I get the observer for defined object? Object.Attach is void. I > > was > > able to get the example to do what I wanted by using FMain as event > target. But I would very much appreciate a way to find out who is the > observer for whatever object - and that I am not able to figure out. This > must be trivial... > > Best Regards > Kari Laine See Object.Parent(). Regards, -- Benoit Minisini From david_villalobos_c at ...43... Sat Sep 20 20:06:14 2008 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Sat, 20 Sep 2008 11:06:14 -0700 (PDT) Subject: [Gambas-user] Catching ,messages in gb.db Message-ID: <955157.92454.qm@...1657...> No, let see, if I set DB.Debug = True, then all messages from gb.db will be sent automatically to the the standard error output, I want to tell Gambas that the standard error output is a file, I read something about ERROR TO Stream, but couldn't get it, any idea? Regards -- David ----- Original Message ---- From: Benoit Minisini To: mailing list for gambas users Sent: Saturday, September 20, 2008 8:53:14 AM Subject: Re: [Gambas-user] Catching ,messages in gb.db On samedi 20 septembre 2008, David Villalobos Cambronero wrote: > Hi all, > > If I made DB.Debug = True, then all statements executed by the component > will be sent the standard error output, but I need to save those messages > into a file, I tried to redirect the error output but I couldn't, any help? > > > Best regards > > > -- > David > You should be able to do that with "2>&1" in a shell. What's the problem with that? -- Benoit Minisini ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From klaine8 at ...626... Sat Sep 20 20:12:27 2008 From: klaine8 at ...626... (Kari Laine) Date: Sat, 20 Sep 2008 21:12:27 +0300 Subject: [Gambas-user] Object.Attach & Object.Detach In-Reply-To: <200809201950.28622.gambas@...1...> References: <48D506DB.5060806@...1400...> <200809201829.38630.gambas@...1...> <61452b690809201037ma137c2h938d1c89f7cdaad5@...627...> <200809201950.28622.gambas@...1...> Message-ID: <61452b690809201112j6eefe7a9xe8d71c4cb5832618@...627...> On Sat, Sep 20, 2008 at 8:50 PM, Benoit Minisini < gambas at ...1...> wrote: > > See Object.Parent(). > > Thanks - feeling stupid... But when Object.Detach is usable. What is it's purpose in Gambas? Because now I just changed event-handlers. I did not have to call Object.Detach there in between. And if Object.Detach does not return the old handler. Do I then leak something? Sorry to take your time. But as always put this to your trash bucket if too busy. Best Regards Kari Laine From Karl.Reinl at ...9... Sat Sep 20 19:44:39 2008 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Sat, 20 Sep 2008 19:44:39 +0200 Subject: [Gambas-user] 'svn update' problems !? Message-ID: <1221932679.7097.13.camel@...40...> Salut, does anybody else get this, when making 'svn update' have this since yesterday. Fehler bei der Validierung des Serverzertifikats f?r ?https://gambas.svn.sourceforge.net:443?: - Das Zertifikat ist nicht von einer vertrauensw?rdigen Instanz ausgestellt ?berpr?fen Sie den Fingerabdruck, um das Zertifikat zu validieren! Zertifikats-Informationen: - Hostname: *.svn.sourceforge.net - G?ltig: von Tue, 09 Oct 2007 14:15:07 GMT bis Mon, 08 Dec 2008 15:15:07 GMT - Aussteller: US, Equifax, Equifax Secure Certificate Authority - Fingerabdruck: fb:75:6c:40:58:ae:21:8c:63:dd:1b:7b:6a:7d:bb:8c:74:36:e7:8a Ve(r)werfen, (t)empor?r akzeptieren oder (p)ermanent akzeptieren? here the translation by GOOGLE: Validation error in the server certificate for "https: / / gambas.svn.sourceforge.net: 443": - The certificate is not from a trusted authority issued Check the fingerprint to validate the certificate! Certificate information: - Host: *. svn.sourceforge.net - Valid: from Tue, 09 Oct 2007 14:15:07 GMT until Thu, 08 Dec 2008 15:15:07 GMT - Exhibitors: U.S., Equifax, Equifax Secure Certificate Authority - Fingerprint: fb:75:6C:40:58:ae:21:8C:63:dd:1b:7b:6a:7d:bb:8c:74:36:e7:8a svn: OPTIONS von https://gambas.svn.sourceforge.net/svnroot/gambas/gambas/branches/2.0?: Server certificate verification failed: issuer is not trusted (https://gambas.svn.sourceforge.net) -- Amicalment Charlie From lordheavym at ...626... Sat Sep 20 20:36:58 2008 From: lordheavym at ...626... (Laurent Carlier) Date: Sat, 20 Sep 2008 20:36:58 +0200 Subject: [Gambas-user] Catching ,messages in gb.db In-Reply-To: <955157.92454.qm@...1657...> References: <955157.92454.qm@...1657...> Message-ID: <200809202036.58421.lordheavym@...626...> Le samedi 20 septembre 2008 20:06:14 David Villalobos Cambronero, vous avez ?crit : > No, let see, if I set DB.Debug = True, then all messages from gb.db will be > sent automatically to the the standard error output, I want to tell Gambas > that the standard error output is a file, I read something about ERROR TO > Stream, but couldn't get it, any idea? > > Regards > DIM dberrs AS Stream ----- dberrs = OPEN "dboutput" AS WRITE ERROR TO dberrs ------ CLOSE "dboutput" ?? From gambas at ...1... Sat Sep 20 21:47:01 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 20 Sep 2008 21:47:01 +0200 Subject: [Gambas-user] Object.Attach & Object.Detach In-Reply-To: <61452b690809201112j6eefe7a9xe8d71c4cb5832618@...627...> References: <48D506DB.5060806@...1400...> <200809201950.28622.gambas@...1...> <61452b690809201112j6eefe7a9xe8d71c4cb5832618@...627...> Message-ID: <200809202147.01976.gambas@...1...> On samedi 20 septembre 2008, Kari Laine wrote: > On Sat, Sep 20, 2008 at 8:50 PM, Benoit Minisini < > > gambas at ...1...> wrote: > > See Object.Parent(). > > > > Thanks - feeling stupid... > > But when Object.Detach is usable. What is it's purpose in Gambas? > Because now I just changed event-handlers. I did not have to call > Object.Detach there in between. Why should you? Object.Detach() is there only for symetrical purpose, and is not really useful. > And if Object.Detach does not return the > old handler. Do I then leak something? If you can leak something in Gambas, then it is a bug. Unless you use extern functions or do circular references of course. Regards, -- Benoit Minisini From david_villalobos_c at ...43... Sat Sep 20 21:51:50 2008 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Sat, 20 Sep 2008 12:51:50 -0700 (PDT) Subject: [Gambas-user] Catching ,messages in gb.db Message-ID: <51643.7301.qm@...1656...> Ok, thanks, I use file, instead of stream... maybe that's why... Regards -- David ----- Original Message ---- From: Laurent Carlier To: mailing list for gambas users Sent: Saturday, September 20, 2008 12:36:58 PM Subject: Re: [Gambas-user] Catching ,messages in gb.db Le samedi 20 septembre 2008 20:06:14 David Villalobos Cambronero, vous avez ?crit : > No, let see, if I set DB.Debug = True, then all messages from gb.db will be > sent automatically to the the standard error output, I want to tell Gambas > that the standard error output is a file, I read something about ERROR TO > Stream, but couldn't get it, any idea? > > Regards > DIM dberrs AS Stream ----- dberrs = OPEN "dboutput" AS WRITE ERROR TO dberrs ------ CLOSE "dboutput" ?? ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Sat Sep 20 22:05:43 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 20 Sep 2008 22:05:43 +0200 Subject: [Gambas-user] Catching ,messages in gb.db In-Reply-To: <51643.7301.qm@...1656...> References: <51643.7301.qm@...1656...> Message-ID: <200809202205.43090.gambas@...1...> On samedi 20 septembre 2008, David Villalobos Cambronero wrote: > Ok, thanks, I use file, instead of stream... maybe that's why... > > Regards > > > -- > David > > ERROR TO and OUTPUT TO only redirects default stream for Gambas instruction. You must run your project directly in a shell and use i/o redirection: $ cd /path/to/my/project $ gbx2 2> stderr.txt Regards, -- Benoit Minisini From gambas at ...1... Sat Sep 20 23:26:55 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 20 Sep 2008 23:26:55 +0200 Subject: [Gambas-user] Can you clear the console from within gambas code? In-Reply-To: <200809201451.36637.rterry@...1946...> References: <200809201451.36637.rterry@...1946...> Message-ID: <200809202326.56012.gambas@...1...> On samedi 20 septembre 2008, richard terry wrote: > Can you clear the console from within gambas code? > > Wondered, as this would be useful for me at the moment whilst I'm tracking > bugs. > > Regards > > Richard > You can't, but I can make the Editor translate CTRL+L characters into "clear text". Look at gb.qt/src/ext/CEditor.cpp line #233, you will see the different control characters that are interpreted by the editor. You must understand C of course. Regards, -- Benoit Minisini From gambas at ...1... Sat Sep 20 23:31:10 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 20 Sep 2008 23:31:10 +0200 Subject: [Gambas-user] =?utf-8?q?generating_new_gambas_file_=5Bautomatic_p?= =?utf-8?q?rogram=09update=5D?= In-Reply-To: <1221819257.6286.27.camel@...1964...> References: <1221725590.6252.34.camel@...1964...> <48D2AD0F.6090902@...1909...> <1221819257.6286.27.camel@...1964...> Message-ID: <200809202331.10805.gambas@...1...> On vendredi 19 septembre 2008, Szenogr?di Norbert P?ter wrote: > Hi All, > > This is okay, thanks a lot. > > Is in gambas2 filetime() ? I not founded... > > Regards, Norbert > Look at the Stat() function. Regards, -- Benoit Minisini From ian.roper at ...1974... Sun Sep 21 07:03:37 2008 From: ian.roper at ...1974... (Ian Roper) Date: Sun, 21 Sep 2008 13:03:37 +0800 Subject: [Gambas-user] Request for GUI featue - Selected object size change Message-ID: <1221973417.11048.12.camel@...1975...> Greetings all, In the development GUI you can select an object on a form and move it by using the arrow keys by grid points or by using the shift key, you can fine tune the move. I would like to request the ability to change the dimensions (Size) of a selected object by pressing the Ctrl key in conjunction with the arrow keys. If you select multiple objects, they all would all change by the desired amount. If there is already a Key combination to do this could you please let me know. Thank you. Ian Roper Western Australia From gambas at ...1... Sun Sep 21 15:48:58 2008 From: gambas at ...1... (Benoit Minisini) Date: Sun, 21 Sep 2008 15:48:58 +0200 Subject: [Gambas-user] Request for GUI featue - Selected object size change In-Reply-To: <1221973417.11048.12.camel@...1975...> References: <1221973417.11048.12.camel@...1975...> Message-ID: <200809211548.58153.gambas@...1...> On dimanche 21 septembre 2008, Ian Roper wrote: > Greetings all, > > In the development GUI you can select an object on a form and move it by > using the arrow keys by grid points or by using the shift key, you can > fine tune the move. > > I would like to request the ability to change the dimensions (Size) of a > selected object by pressing the Ctrl key in conjunction with the arrow > keys. > > If you select multiple objects, they all would all change by the desired > amount. > > If there is already a Key combination to do this could you please let me > know. > > Thank you. > > Ian Roper > Western Australia > Good idea, I will do it for 2.9. Regards, -- Benoit Minisini From maximvonk at ...626... Sun Sep 21 19:11:32 2008 From: maximvonk at ...626... (MaxVK) Date: Sun, 21 Sep 2008 10:11:32 -0700 (PDT) Subject: [Gambas-user] Synchronized Listboxes or a better way Message-ID: <19596329.post@...1379...> I am loading information from a sqlite3 database file using a query. The results have two fields, Filename and Filepath. The Filename information is to be loaded into a list box where sorted=true. Clicking on an item in the filename list will show the Filepath string. At the moment I am loading the filenames into one list and the filepaths into another list, but of course the filename list is sorted, so the connection to the associated filepath in the other list is broken. Is there a way to keep the lists synchronized when one list is sorted or is there an easier way to do this, remembering that the filename list is to be visible at all times, and that there may be duplicate filenames, although the related filepaths will of course be different? Thanks Max -- View this message in context: http://www.nabble.com/Synchronized-Listboxes-or-a-better-way-tp19596329p19596329.html Sent from the gambas-user mailing list archive at Nabble.com. From maximvonk at ...626... Sun Sep 21 19:16:09 2008 From: maximvonk at ...626... (MaxVK) Date: Sun, 21 Sep 2008 10:16:09 -0700 (PDT) Subject: [Gambas-user] How to create Multi-Dimensional string array Message-ID: <19596365.post@...1379...> I am trying to create a multi dimensional array of string, the size of which is not known at design time. Iv spent some time today playing with this, but I cant seem to get it to work at all. I did think that something like: DIM tArray AS String["","",""] would work, but its not right, and I cant work out what to try next. Iv seen some posts about creating a multi dimensional array of integers, but those posts don't seem to help much with strings. Is this possible? Many thanks Max -- View this message in context: http://www.nabble.com/How-to-create-Multi-Dimensional-string-array-tp19596365p19596365.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Sun Sep 21 19:17:53 2008 From: gambas at ...1... (Benoit Minisini) Date: Sun, 21 Sep 2008 19:17:53 +0200 Subject: [Gambas-user] Synchronized Listboxes or a better way In-Reply-To: <19596329.post@...1379...> References: <19596329.post@...1379...> Message-ID: <200809211917.53235.gambas@...1...> On dimanche 21 septembre 2008, MaxVK wrote: > I am loading information from a sqlite3 database file using a query. The > results have two fields, Filename and Filepath. > > The Filename information is to be loaded into a list box where sorted=true. > Clicking on an item in the filename list will show the Filepath string. > > At the moment I am loading the filenames into one list and the filepaths > into another list, but of course the filename list is sorted, so the > connection to the associated filepath in the other list is broken. > > Is there a way to keep the lists synchronized when one list is sorted or is > there an easier way to do this, remembering that the filename list is to be > visible at all times, and that there may be duplicate filenames, although > the related filepaths will of course be different? > > Thanks > > Max You must replace the ListBox controls by ListView controls, and implement the Compare event handler to do the sort yourself. Regards, -- Benoit Minisini From klaine8 at ...626... Sun Sep 21 19:37:14 2008 From: klaine8 at ...626... (Kari Laine) Date: Sun, 21 Sep 2008 20:37:14 +0300 Subject: [Gambas-user] How to create Multi-Dimensional string array In-Reply-To: <19596365.post@...1379...> References: <19596365.post@...1379...> Message-ID: <61452b690809211037hd132348ld22bc65ddc34fcfd@...627...> On Sun, Sep 21, 2008 at 8:16 PM, MaxVK wrote: > > I am trying to create a multi dimensional array of string, the size of > which > is not known at design time. > > Iv spent some time today playing with this, but I cant seem to get it to > work at all. I did think that something like: DIM tArray AS > String["","",""] > would work, but its not right, and I cant work out what to try next. > > Iv seen some posts about creating a multi dimensional array of integers, > but > those posts don't seem to help much with strings. > > Is this possible? > > Many thanks > > Max > > Hi Max, hopefully this example will help. PUBLIC SUB Button1_Click() DIM i AS Integer DIM j AS Integer DIM k AS Integer DIM MyArray[10, 10, 10] AS String FOR i = 0 TO 9 FOR j = 0 TO 9 FOR k = 0 TO 9 MyArray[i, j, k] = Chr$(i + 65) & " " & Chr$(j + 65) & " " & Chr$(k + 65) NEXT NEXT NEXT PRINT MyArray[4, 4, 4] END I am a beginner with Gambas but let me know if you need more help. There is also a book called something like "a beginners book for gambas" try that with Google. It is a PDF about 364 pages. Let me know if you cannot locate it. Best Regards Kari Laine From maximvonk at ...626... Sun Sep 21 19:43:26 2008 From: maximvonk at ...626... (MaxVK) Date: Sun, 21 Sep 2008 10:43:26 -0700 (PDT) Subject: [Gambas-user] Synchronized Listboxes or a better way In-Reply-To: <200809211917.53235.gambas@...1...> References: <19596329.post@...1379...> <200809211917.53235.gambas@...1...> Message-ID: <19596625.post@...1379...> Benoit Minisini wrote: > > On dimanche 21 septembre 2008, MaxVK wrote: >> I am loading information from a sqlite3 database file using a query. The >> results have two fields, Filename and Filepath. >> >> The Filename information is to be loaded into a list box where >> sorted=true. >> Clicking on an item in the filename list will show the Filepath string. >> >> At the moment I am loading the filenames into one list and the filepaths >> into another list, but of course the filename list is sorted, so the >> connection to the associated filepath in the other list is broken. >> >> Is there a way to keep the lists synchronized when one list is sorted or >> is >> there an easier way to do this, remembering that the filename list is to >> be >> visible at all times, and that there may be duplicate filenames, although >> the related filepaths will of course be different? >> >> Thanks >> >> Max > > You must replace the ListBox controls by ListView controls, and implement > the > Compare event handler to do the sort yourself. > > Regards, > > -- > Benoit Minisini > Thanks Benoit. I gave the two items matching keys in the listviews, and then used MoveNext etc to match them up. Regards Max -- View this message in context: http://www.nabble.com/Synchronized-Listboxes-or-a-better-way-tp19596329p19596625.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Sun Sep 21 19:43:53 2008 From: gambas at ...1... (Benoit Minisini) Date: Sun, 21 Sep 2008 19:43:53 +0200 Subject: [Gambas-user] How to create Multi-Dimensional string array In-Reply-To: <61452b690809211037hd132348ld22bc65ddc34fcfd@...627...> References: <19596365.post@...1379...> <61452b690809211037hd132348ld22bc65ddc34fcfd@...627...> Message-ID: <200809211943.53571.gambas@...1...> On dimanche 21 septembre 2008, Kari Laine wrote: > On Sun, Sep 21, 2008 at 8:16 PM, MaxVK wrote: > > I am trying to create a multi dimensional array of string, the size of > > which > > is not known at design time. > > > > Iv spent some time today playing with this, but I cant seem to get it to > > work at all. I did think that something like: DIM tArray AS > > String["","",""] > > would work, but its not right, and I cant work out what to try next. > > > > Iv seen some posts about creating a multi dimensional array of integers, > > but > > those posts don't seem to help much with strings. > > > > Is this possible? > > > > Many thanks > > > > Max > > > > Hi Max, > > hopefully this example will help. > PUBLIC SUB Button1_Click() > DIM i AS Integer > DIM j AS Integer > DIM k AS Integer > > DIM MyArray[10, 10, 10] AS String > This syntax is deprecated: you should use DIM MyArray AS NEW String[X, Y, Z] The number of dimensions is fixed at compile time, but the dimension sizes can be any numeric expressions. Regards, -- Benoit Minisini From maximvonk at ...626... Sun Sep 21 19:51:29 2008 From: maximvonk at ...626... (MaxVK) Date: Sun, 21 Sep 2008 10:51:29 -0700 (PDT) Subject: [Gambas-user] How to create Multi-Dimensional string array In-Reply-To: <61452b690809211037hd132348ld22bc65ddc34fcfd@...627...> References: <19596365.post@...1379...> <61452b690809211037hd132348ld22bc65ddc34fcfd@...627...> Message-ID: <19596723.post@...1379...> Kari Laine-2 wrote: > > On Sun, Sep 21, 2008 at 8:16 PM, MaxVK wrote: > >> >> I am trying to create a multi dimensional array of string, the size of >> which >> is not known at design time. >> >> Iv spent some time today playing with this, but I cant seem to get it to >> work at all. I did think that something like: DIM tArray AS >> String["","",""] >> would work, but its not right, and I cant work out what to try next. >> >> Iv seen some posts about creating a multi dimensional array of integers, >> but >> those posts don't seem to help much with strings. >> >> Is this possible? >> >> Many thanks >> >> Max >> >> Hi Max, > > hopefully this example will help. > PUBLIC SUB Button1_Click() > DIM i AS Integer > DIM j AS Integer > DIM k AS Integer > > DIM MyArray[10, 10, 10] AS String > > FOR i = 0 TO 9 > FOR j = 0 TO 9 > FOR k = 0 TO 9 > > MyArray[i, j, k] = Chr$(i + 65) & " " & Chr$(j + 65) & " " & > Chr$(k > + 65) > > NEXT > NEXT > NEXT > > PRINT MyArray[4, 4, 4] > > END > > > I am a beginner with Gambas but let me know if you need more help. There > is > also a book called something like "a beginners book for gambas" try that > with Google. It is a PDF about 364 pages. Let me know if you cannot locate > it. > > Best Regards > Kari Laine > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the > world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > Thanks Kari, but I still have a problem: DIM MyArray[10, 10, 10] AS String explains where I have been going wrong in my thinking, but at the start of the routine I have no idea what number will be there. So for example, it might be 10 or it might be 450. Is there a way that this can be dynamic, in the same was as DIM MyArray AS String[] Regards Max -- View this message in context: http://www.nabble.com/How-to-create-Multi-Dimensional-string-array-tp19596365p19596723.html Sent from the gambas-user mailing list archive at Nabble.com. From maximvonk at ...626... Sun Sep 21 19:55:04 2008 From: maximvonk at ...626... (MaxVK) Date: Sun, 21 Sep 2008 10:55:04 -0700 (PDT) Subject: [Gambas-user] How to create Multi-Dimensional string array In-Reply-To: <200809211943.53571.gambas@...1...> References: <19596365.post@...1379...> <61452b690809211037hd132348ld22bc65ddc34fcfd@...627...> <200809211943.53571.gambas@...1...> Message-ID: <19596753.post@...1379...> Benoit Minisini wrote: > > On dimanche 21 septembre 2008, Kari Laine wrote: >> On Sun, Sep 21, 2008 at 8:16 PM, MaxVK wrote: >> > I am trying to create a multi dimensional array of string, the size of >> > which >> > is not known at design time. >> > >> > Iv spent some time today playing with this, but I cant seem to get it >> to >> > work at all. I did think that something like: DIM tArray AS >> > String["","",""] >> > would work, but its not right, and I cant work out what to try next. >> > >> > Iv seen some posts about creating a multi dimensional array of >> integers, >> > but >> > those posts don't seem to help much with strings. >> > >> > Is this possible? >> > >> > Many thanks >> > >> > Max >> > >> > Hi Max, >> >> hopefully this example will help. >> PUBLIC SUB Button1_Click() >> DIM i AS Integer >> DIM j AS Integer >> DIM k AS Integer >> >> DIM MyArray[10, 10, 10] AS String >> > > This syntax is deprecated: you should use > > DIM MyArray AS NEW String[X, Y, Z] > > The number of dimensions is fixed at compile time, but the dimension sizes > can > be any numeric expressions. > > Regards, > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the > world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > Ah thats it! Thanks Benoit. The dimension sizes can be passed as arguments to a routine and I have what I needed. regards Max -- View this message in context: http://www.nabble.com/How-to-create-Multi-Dimensional-string-array-tp19596365p19596753.html Sent from the gambas-user mailing list archive at Nabble.com. From klaine8 at ...626... Sun Sep 21 21:06:45 2008 From: klaine8 at ...626... (Kari Laine) Date: Sun, 21 Sep 2008 22:06:45 +0300 Subject: [Gambas-user] Compare event Message-ID: <61452b690809211206g3cbc318fv9c41c242f72a7f1a@...627...> Hi , I tried to figure out this Compare-thing what was mentioned in other thread. ListView.Compare event says in the help "This event is raised when two items must be compared. " I tried (really) and I did not find examples in sources which comes with Gambas. When exactly is the Compare method called? A little example would be nice. Best Regards Kari Laine From gambas.fr at ...626... Sun Sep 21 22:22:55 2008 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 21 Sep 2008 22:22:55 +0200 Subject: [Gambas-user] GambasForge.net In-Reply-To: <48D528B1.4070505@...1740...> References: <61452b690809200938la970252yb8b33fe732a3b47c@...627...> <48D528B1.4070505@...1740...> Message-ID: <6324a42a0809211322g5253f298u203cc3ba24687e0d@...627...> For all info about that .. i'm here :)... We are currently rewritten the site in gambas... and yes this tmie the sources are on sf in the svn So if some people want to help us... just tell us Fabien Bodard 2008/9/20 Ron : > Kari Laine schreef: >> Hi, >> >> I just found GambasForge.net . Contains nice little programs written in >> Gambas. I read somewhere that GambasForge.net is written in Gambas and that >> it is released as GPL. It has a SourceForge project page but there is no >> files released yet - or is just dump me who can't find it... >> >> GambasForge.net should contain an option you can enlist to, which sends an >> email whenever new files are uploaded there. >> >> >> Best Regards >> Kari Laine >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge >> Build the coolest Linux based applications with Moblin SDK & win great prizes >> Grand prize is a trip for two to an Open Source event anywhere in the world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > Look on its project page under svn or cvs browse, you can download a gnu > tarball on the bottom of the page. > At least a few days back this was possible. Havent checked it. > > Regards, > Ron_2nd > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Sun Sep 21 23:24:18 2008 From: gambas at ...1... (Benoit Minisini) Date: Sun, 21 Sep 2008 23:24:18 +0200 Subject: [Gambas-user] Compare event In-Reply-To: <61452b690809211206g3cbc318fv9c41c242f72a7f1a@...627...> References: <61452b690809211206g3cbc318fv9c41c242f72a7f1a@...627...> Message-ID: <200809212324.18274.gambas@...1...> On dimanche 21 septembre 2008, Kari Laine wrote: > Hi , > > I tried to figure out this Compare-thing what was mentioned in other > thread. > > ListView.Compare event says in the help > > "This event is raised when two items must be compared. " > > I tried (really) and I did not find examples in sources which comes with > Gambas. When exactly is the Compare method called? > A little example would be nice. > > Best Regards > Kari Laine Look in the source of the FileView control. It uses this event to sort files according to the selected sorted column. Regards, -- Benoit Minisini From klaine8 at ...626... Sun Sep 21 23:29:32 2008 From: klaine8 at ...626... (Kari Laine) Date: Mon, 22 Sep 2008 00:29:32 +0300 Subject: [Gambas-user] GambasForge.net In-Reply-To: <6324a42a0809211322g5253f298u203cc3ba24687e0d@...627...> References: <61452b690809200938la970252yb8b33fe732a3b47c@...627...> <48D528B1.4070505@...1740...> <6324a42a0809211322g5253f298u203cc3ba24687e0d@...627...> Message-ID: <61452b690809211429x9bc2acbud65f7be8df1ddeef@...627...> On Sun, Sep 21, 2008 at 11:22 PM, Fabien Bodard wrote: > For all info about that .. i'm here :)... > > > We are currently rewritten the site in gambas... and yes this tmie the > sources are on sf in the svn > > So if some people want to help us... just tell us > > Fabien Bodard > > > Hi Fabien, I had one problem. I downloaded yesterday a bunch of examples. Today when I tried to open them they were almost all corrupted. I tried to check today again but site did not answer - service break :-) Anyway I don't know whether they got corrupted on the wire or if they are not uploaded correctly. If you have time could you make sure they are intact on your server. I will try again tomorrow. Best Regards Kari Laine From rterry at ...1946... Sat Sep 20 12:31:31 2008 From: rterry at ...1946... (richard terry) Date: Sat, 20 Sep 2008 20:31:31 +1000 Subject: [Gambas-user] Closing a tab on workspace Message-ID: <200809202031.31779.rterry@...1946...> I wondered if there was any way to intercept the click event on the tab close button when one has added tabs to a workspace. Any help appreciated. Richard From gambas at ...1... Mon Sep 22 00:30:28 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 22 Sep 2008 00:30:28 +0200 Subject: [Gambas-user] Closing a tab on workspace In-Reply-To: <200809202031.31779.rterry@...1946...> References: <200809202031.31779.rterry@...1946...> Message-ID: <200809220030.28502.gambas@...1...> On samedi 20 septembre 2008, richard terry wrote: > I wondered if there was any way to intercept the click event on the tab > close button when one has added tabs to a workspace. > > Any help appreciated. > > Richard > What for? -- Benoit Minisini From rterry at ...1946... Mon Sep 22 02:18:15 2008 From: rterry at ...1946... (richard terry) Date: Mon, 22 Sep 2008 10:18:15 +1000 Subject: [Gambas-user] Still unable to build *version 1575 Message-ID: <200809221018.15696.rterry@...1946...> Wondered Benoit if this was just my setup, or if there is a reason for this. Compiling gambas3... OK Compiling gambas-database-manager... OK Compiling gbs3... OK Installing the scripter... Registering Gambas script mimetype make[2]: Nothing to be done for `install-data-am'. make[2]: Leaving directory `/home/richard/gambas3-devel/src/trunk/app' make[1]: Leaving directory `/home/richard/gambas3-devel/src/trunk/app' Making install in help make[1]: Entering directory `/home/richard/gambas3-devel/src/trunk/help' Making install in help make[2]: Entering directory `/home/richard/gambas3-devel/src/trunk/help/help' make[3]: Entering directory `/home/richard/gambas3-devel/src/trunk/help/help' make[3]: Nothing to be done for `install-exec-am'. make[3]: Nothing to be done for `install-data-am'. make[3]: Leaving directory `/home/richard/gambas3-devel/src/trunk/help/help' make[2]: Leaving directory `/home/richard/gambas3-devel/src/trunk/help/help' make[2]: Entering directory `/home/richard/gambas3-devel/src/trunk/help' make[3]: Entering directory `/home/richard/gambas3-devel/src/trunk/help' Installing the gambas help files... /bin/sh: help/img: is a directory /bin/sh: help/image: is a directory make[3]: *** [install-exec-local] Error 126 make[3]: Leaving directory `/home/richard/gambas3-devel/src/trunk/help' make[2]: *** [install-am] Error 2 make[2]: Leaving directory `/home/richard/gambas3-devel/src/trunk/help' make[1]: *** [install-recursive] Error 1 make[1]: Leaving directory `/home/richard/gambas3-devel/src/trunk/help' make: *** [install-recursive] Error 1 ==> ERROR: Build Failed. Aborting... From gambas at ...1... Mon Sep 22 02:40:56 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 22 Sep 2008 02:40:56 +0200 Subject: [Gambas-user] Still unable to build *version 1575 In-Reply-To: <200809221018.15696.rterry@...1946...> References: <200809221018.15696.rterry@...1946...> Message-ID: <200809220240.56441.gambas@...1...> On lundi 22 septembre 2008, richard terry wrote: > Wondered Benoit if this was just my setup, or if there is a reason for > this. > > Compiling gambas3... > OK > Compiling gambas-database-manager... > OK > Compiling gbs3... > OK > Installing the scripter... > Registering Gambas script mimetype > make[2]: Nothing to be done for `install-data-am'. > make[2]: Leaving directory `/home/richard/gambas3-devel/src/trunk/app' > make[1]: Leaving directory `/home/richard/gambas3-devel/src/trunk/app' > Making install in help > make[1]: Entering directory `/home/richard/gambas3-devel/src/trunk/help' > Making install in help > make[2]: Entering directory > `/home/richard/gambas3-devel/src/trunk/help/help' make[3]: Entering > directory `/home/richard/gambas3-devel/src/trunk/help/help' make[3]: > Nothing to be done for `install-exec-am'. > make[3]: Nothing to be done for `install-data-am'. > make[3]: Leaving directory > `/home/richard/gambas3-devel/src/trunk/help/help' make[2]: Leaving > directory `/home/richard/gambas3-devel/src/trunk/help/help' make[2]: > Entering directory `/home/richard/gambas3-devel/src/trunk/help' make[3]: > Entering directory `/home/richard/gambas3-devel/src/trunk/help' > > Installing the gambas help files... > /bin/sh: help/img: is a directory > /bin/sh: help/image: is a directory > make[3]: *** [install-exec-local] Error 126 > make[3]: Leaving directory `/home/richard/gambas3-devel/src/trunk/help' > make[2]: *** [install-am] Error 2 > make[2]: Leaving directory `/home/richard/gambas3-devel/src/trunk/help' > make[1]: *** [install-recursive] Error 1 > make[1]: Leaving directory `/home/richard/gambas3-devel/src/trunk/help' > make: *** [install-recursive] Error 1 > ==> ERROR: Build Failed. > Aborting... > It should be fixed in revision #1577. Regards, -- Benoit Minisini From lordheavym at ...626... Mon Sep 22 13:28:01 2008 From: lordheavym at ...626... (Laurent Carlier) Date: Mon, 22 Sep 2008 13:28:01 +0200 Subject: [Gambas-user] [reported on irc] Failed to build deb package on linux mint Message-ID: <200809221328.02014.lordheavym@...626...> This case was reported on irc: Linux is an Ubuntu derivative distro. Gambas is 2.8.2 and package creation fail on a letter in upper case. ---8<--- Creating package for Debian. Making build directory. Creating desktop file... Sources are being debianizated. Creating package... dpkg-buildpackage: set CPPFLAGS to default value: dpkg-buildpackage: set CFLAGS to default value: -g -O2 dpkg-buildpackage: set CXXFLAGS to default value: -g -O2 dpkg-buildpackage: set FFLAGS to default value: -g -O2 dpkg-buildpackage: set LDFLAGS to default value: -Wl,-Bsymbolic-functions dpkg-buildpackage: source package buttonlist dpkg-buildpackage: source version 0-0 dpkg-buildpackage: source changed by Brittany Dunlap dpkg-buildpackage: host architecture i386 debian/rules clean dh_testdir dh_testroot rm -Rf `find . -name ".gambas"` rm -Rf `find . -name "*.gambas"` rm -f build-stamp install-stamp dh_clean dh_clean: Compatibility levels before 4 are deprecated. dpkg-source -b buttonlist dpkg-source: error: source package name `ButtonList' contains illegal character `B' dpkg-buildpackage: failure: dpkg-source -b buttonlist gave error exit status 255 The package build has failed. Package.MakeDebPackage.424: 'dpkg-buildpackage' has failed ---8<--- Regards, From gambas at ...1... Mon Sep 22 13:37:58 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 22 Sep 2008 13:37:58 +0200 Subject: [Gambas-user] [reported on irc] Failed to build deb package on linux mint In-Reply-To: <200809221328.02014.lordheavym@...626...> References: <200809221328.02014.lordheavym@...626...> Message-ID: <200809221337.58464.gambas@...1...> On lundi 22 septembre 2008, Laurent Carlier wrote: > This case was reported on irc: > Linux is an Ubuntu derivative distro. Gambas is 2.8.2 and package creation > fail on a letter in upper case. > > ---8<--- > Creating package for Debian. > Making build directory. > Creating desktop file... > Sources are being debianizated. > Creating package... > dpkg-buildpackage: set CPPFLAGS to default value: > dpkg-buildpackage: set CFLAGS to default value: -g -O2 > dpkg-buildpackage: set CXXFLAGS to default value: -g -O2 > dpkg-buildpackage: set FFLAGS to default value: -g -O2 > dpkg-buildpackage: set LDFLAGS to default value: -Wl,-Bsymbolic-functions > dpkg-buildpackage: source package buttonlist > dpkg-buildpackage: source version 0-0 > dpkg-buildpackage: source changed by Brittany Dunlap > dpkg-buildpackage: host architecture i386 > debian/rules clean > dh_testdir > dh_testroot > rm -Rf `find . -name ".gambas"` > rm -Rf `find . -name "*.gambas"` > rm -f build-stamp install-stamp > dh_clean > dh_clean: Compatibility levels before 4 are deprecated. > dpkg-source -b buttonlist > dpkg-source: error: source package name `ButtonList' contains illegal > character `B' > dpkg-buildpackage: failure: dpkg-source -b buttonlist gave error exit > status 255 > The package build has failed. > Package.MakeDebPackage.424: 'dpkg-buildpackage' has failed > ---8<--- > > Regards, > Maybe uppercase characters are forbidden in debian packages? -- Benoit Minisini From klaine8 at ...626... Mon Sep 22 14:40:02 2008 From: klaine8 at ...626... (Kari Laine) Date: Mon, 22 Sep 2008 15:40:02 +0300 Subject: [Gambas-user] Compare event In-Reply-To: <200809212324.18274.gambas@...1...> References: <61452b690809211206g3cbc318fv9c41c242f72a7f1a@...627...> <200809212324.18274.gambas@...1...> Message-ID: <61452b690809220540i1cc98c00ye02e59bc85afb267@...627...> On Mon, Sep 22, 2008 at 12:24 AM, Benoit Minisini < gambas at ...1...> wrote: > > > Look in the source of the FileView control. It uses this event to sort > files > according to the selected sorted column. > > Regards, > Thanks I had a look at it and cannot figure it totally out. I would like to implement a little test program to get hang of it. There are several components that use compare. Is the implementation always named as View_Compare? The line LAST.Compare = iComp in FileView.class stores the value to whoever called the View_Compare in the first place. That whoever must also implement PUBLIC Property Compare - am I right? I would highly appreciate an example how to synchronize two ListViews with Compare. I am sure that kind of example would be useful to others as well. So if you have time and patience... Best Regards Kari Laine From gambas at ...1... Mon Sep 22 15:06:05 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 22 Sep 2008 15:06:05 +0200 Subject: [Gambas-user] Gambas server pages Message-ID: <200809221506.06019.gambas@...1...> Hi, In the last revision of the 2.0 branch, you will find some sort of gambas scripter hack that allows you to write ASP-like files that I named "Gambas server pages". Put that in a text file, make it executable, and run it. Do not forget to run "make install" in the app source directory to recompile and install the new scripter. --8<-------------------------------------------------------------------- #!/usr/bin/env gbw2 <% DIM sEnv AS String %>

CGI script environmental variables

<% FOR EACH sEnv IN Application.Env %> <% NEXT %>
Name Value
<%= sEnv %> <%= Application.Env[sEnv] %> 
--8<-------------------------------------------------------------------- As you can see, the server page is a script, but the script executable is 'gbw2', not 'gbs2'. 'gbw2' is actually a symbolic link to 'gbs2'. When 'gbs2' detects than it is run from the 'gbw2' symbolic link, it knows that it will have to process a server page and not a script. Then 'gbs2' will transform the server page into...a normal script, and will execute it. Except the initial line with the '#!/usr/bin/env gbw2' magic, the syntax is very similar to ASP pages. * <% XXX %> introduces any Gambas code. * <%= XXX %> evaluates a Gambas expression, translates it into HTML, and inserts the HTML inline. Note that the gb.web component is used by default. So you can use the Session object, the Response object, the Request object, and so on. These Gambas server page are CGI scripts, and must be managed as any other CGI script in your preferred web server. I hope I gave enough information so that you can test that quick & dirty hack. :-) Regards, -- Benoit Minisini From garulfounix at ...626... Mon Sep 22 18:59:49 2008 From: garulfounix at ...626... (=?iso-8859-1?q?Fran=E7ois?=) Date: Mon, 22 Sep 2008 18:59:49 +0200 Subject: [Gambas-user] Gambas server pages In-Reply-To: <200809221506.06019.gambas@...1...> References: <200809221506.06019.gambas@...1...> Message-ID: <200809221859.49900.garulfounix@...626...> Le Monday 22 September 2008 15:06:05 Benoit Minisini, vous avez ?crit?: > Hi, > > In the last revision of the 2.0 branch, you will find some sort of gambas > scripter hack that allows you to write ASP-like files that I named "Gambas > server pages". > > Put that in a text file, make it executable, and run it. Do not forget to > run "make install" in the app source directory to recompile and install the > new scripter. > > --8<-------------------------------------------------------------------- > #!/usr/bin/env gbw2 > <% > DIM sEnv AS String > %> > > > > > >

CGI script environmental variables

> > > > > > > > > <% FOR EACH sEnv IN Application.Env %> > > > > > <% NEXT %> > >
NameValue
<%= sEnv %><%= Application.Env[sEnv] %> 
> > > --8<-------------------------------------------------------------------- > > As you can see, the server page is a script, but the script executable > is 'gbw2', not 'gbs2'. > > 'gbw2' is actually a symbolic link to 'gbs2'. When 'gbs2' detects than it > is run from the 'gbw2' symbolic link, it knows that it will have to process > a server page and not a script. Then 'gbs2' will transform the server page > into...a normal script, and will execute it. > > Except the initial line with the '#!/usr/bin/env gbw2' magic, the syntax is > very similar to ASP pages. > > * <% XXX %> introduces any Gambas code. > > * <%= XXX %> evaluates a Gambas expression, translates it into HTML, and > inserts the HTML inline. > > Note that the gb.web component is used by default. So you can use the > Session object, the Response object, the Request object, and so on. > > These Gambas server page are CGI scripts, and must be managed as any other > CGI script in your preferred web server. > > I hope I gave enough information so that you can test that quick & dirty > hack. :-) > > Regards, Ho that's very excellent Benoit ! :) Thank you. This is another way to have dynamic pages by using GSP instead of PHP ! Really nice. I'm testing this immediatly. (I hope my problem is resolved about the install issue in order to try.) -- GarulfoUnix - Fran?ois Gallo (fr)Contributeur ? Gambas(Traductions, documentations, rapport de bugs...) (en)Gambas contributor(Translation, documentation, bugs report...and so on) From ron at ...1740... Mon Sep 22 19:47:46 2008 From: ron at ...1740... (Ron) Date: Mon, 22 Sep 2008 19:47:46 +0200 Subject: [Gambas-user] Gambas server pages In-Reply-To: <200809221506.06019.gambas@...1...> References: <200809221506.06019.gambas@...1...> Message-ID: <48D7DA42.5090501@...1740...> Benoit Minisini schreef: > Hi, > > In the last revision of the 2.0 branch, you will find some sort of gambas > scripter hack that allows you to write ASP-like files that I named "Gambas > server pages". > > Put that in a text file, make it executable, and run it. Do not forget to > run "make install" in the app source directory to recompile and install the > new scripter. > > --8<-------------------------------------------------------------------- > #!/usr/bin/env gbw2 > <% > DIM sEnv AS String > %> > > > > > >

CGI script environmental variables

> > > > > > > > > <% FOR EACH sEnv IN Application.Env %> > > > > > <% NEXT %> > >
NameValue
<%= sEnv %><%= Application.Env[sEnv] %> 
> > > --8<-------------------------------------------------------------------- > > As you can see, the server page is a script, but the script executable > is 'gbw2', not 'gbs2'. > > 'gbw2' is actually a symbolic link to 'gbs2'. When 'gbs2' detects than it is > run from the 'gbw2' symbolic link, it knows that it will have to process a > server page and not a script. Then 'gbs2' will transform the server page > into...a normal script, and will execute it. > > Except the initial line with the '#!/usr/bin/env gbw2' magic, the syntax is > very similar to ASP pages. > > * <% XXX %> introduces any Gambas code. > > * <%= XXX %> evaluates a Gambas expression, translates it into HTML, and > inserts the HTML inline. > > Note that the gb.web component is used by default. So you can use the Session > object, the Response object, the Request object, and so on. > > These Gambas server page are CGI scripts, and must be managed as any other CGI > script in your preferred web server. > > I hope I gave enough information so that you can test that quick & dirty > hack. :-) > > Regards, > > Great work. Some functionality to add to my program! Thanks. Ron_2nd From vitaf at ...1977... Mon Sep 22 19:38:07 2008 From: vitaf at ...1977... (Vitaliy) Date: Mon, 22 Sep 2008 21:38:07 +0400 Subject: [Gambas-user] [Fwd: Welcome to the "Gambas-user" mailing list (Digest mode)] Message-ID: <1222105087.16460.0.camel@...1978...> I need to post! -------------- next part -------------- An embedded message was scrubbed... From: gambas-user-request at lists.sourceforge.net Subject: Welcome to the "Gambas-user" mailing list (Digest mode) Date: Mon, 22 Sep 2008 17:07:23 +0000 Size: 2711 URL: From javuchi at ...626... Mon Sep 22 19:55:17 2008 From: javuchi at ...626... (Javier) Date: Mon, 22 Sep 2008 19:55:17 +0200 Subject: [Gambas-user] Embedded X applications Message-ID: First I'd like to thank all the Gambas developers. You are making and incredible platform for fast applications development! I've been using Gambas for a while, and have a project in mind. I want to create a Jack audio controler, and I need to emmbed or at least, launch and control other X applications. My question is: There is a class named Embedder for this to work, and the documentation says the following: Embedder.Embed (gb.qt) *Syntax* SUB *Embed* ( *Client* AS Pointer *[* , *Prepared* AS Boolean *]* ) Embeds another X11 application. - *Client* is the identifier of the X11 window to embed. - *Prepared* tells if the client follows the XEmbed protocol. It should be TRUE . The problem is: how do I obtain the Client variable? For example, imagine that I want to execute and emmbed an application named qjackctl (it is a qt application), how do I obtain its client identification? Thank you. From m0e.lnx at ...626... Mon Sep 22 20:02:54 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Mon, 22 Sep 2008 13:02:54 -0500 Subject: [Gambas-user] Embedded X applications In-Reply-To: References: Message-ID: <1f1e8c1b0809221102j77cc34cfn10bf4c789d17e4f3@...627...> I've been dealing with the embedder object in gambas for a while.. Look at the embedder example provided in the gambas project itself... That will demonstrate how to get the client variable using the window title of the application you want to embed. There are other ways to get this value, but the window title will work most of the time. On Mon, Sep 22, 2008 at 12:55 PM, Javier wrote: > First I'd like to thank all the Gambas developers. You are making and > incredible platform for fast applications development! > > I've been using Gambas for a while, and have a project in mind. I want to > create a Jack audio controler, and I need to emmbed or at least, launch and > control other X applications. > > My question is: > > There is a class named Embedder for this to work, and the documentation says > the following: > > Embedder.Embed (gb.qt) > *Syntax* > > SUB *Embed* ( *Client* AS Pointer *[* , *Prepared* AS Boolean *]* ) > > Embeds another X11 application. > > > - *Client* is the identifier of the X11 window to embed. > - *Prepared* tells if the client follows the XEmbed protocol. It should > be TRUE . > > > > The problem is: how do I obtain the Client variable? > > For example, imagine that I want to execute and emmbed an application named > qjackctl (it is a qt application), how do I obtain its client > identification? > > Thank you. > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Mon Sep 22 20:03:56 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 22 Sep 2008 20:03:56 +0200 Subject: [Gambas-user] Embedded X applications In-Reply-To: References: Message-ID: <200809222003.56620.gambas@...1...> On lundi 22 septembre 2008, Javier wrote: > First I'd like to thank all the Gambas developers. You are making and > incredible platform for fast applications development! > > I've been using Gambas for a while, and have a project in mind. I want to > create a Jack audio controler, and I need to emmbed or at least, launch and > control other X applications. > > My question is: > > There is a class named Embedder for this to work, and the documentation > says the following: > > Embedder.Embed (gb.qt) > *Syntax* > > SUB *Embed* ( *Client* AS Pointer *[* , *Prepared* AS Boolean *]* ) > > Embeds another X11 application. > > > - *Client* is the identifier of the X11 window to embed. > - *Prepared* tells if the client follows the XEmbed protocol. It should > be TRUE . > > > > The problem is: how do I obtain the Client variable? > > For example, imagine that I want to execute and emmbed an application named > qjackctl (it is a qt application), how do I obtain its client > identification? > > Thank you. See the Desktop.Find method in the gb.desktop component. Regards, -- Benoit Minisini From ihaywood at ...1979... Tue Sep 23 03:02:02 2008 From: ihaywood at ...1979... (ihaywood at ...1979...) Date: Tue, 23 Sep 2008 09:02:02 +0800 Subject: [Gambas-user] Gambas server pages Message-ID: <49819.1222131722@...1979...> On Mon Sep 22 18:59 , Fran?ois sent: >Le Monday 22 September 2008 15:06:05 Benoit Minisini, vous avez ?crit?: >> Hi, >> >> In the last revision of the 2.0 branch, you will find some sort of gambas >> scripter hack that allows you to write ASP-like files that I named "Gambas >> server pages". >> >> Put that in a text file, make it executable, and run it. Do not forget to >> run "make install" in the app source directory to recompile and install the >> new scripter. It would be useful have a similar system for "in-line" HTML: that is, HTML generated within graphical clients for display within HTML widgets, Ian Haywood From gambas at ...1... Tue Sep 23 08:19:03 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 23 Sep 2008 08:19:03 +0200 Subject: [Gambas-user] Gambas server pages In-Reply-To: <49819.1222131722@...1979...> References: <49819.1222131722@...1979...> Message-ID: <200809230819.03796.gambas@...1...> On mardi 23 septembre 2008, ihaywood at ...1979... wrote: > On Mon Sep 22 18:59 , Fran?ois sent: > >Le Monday 22 September 2008 15:06:05 Benoit Minisini, vous avez ?crit?: > >> Hi, > >> > >> In the last revision of the 2.0 branch, you will find some sort of > >> gambas scripter hack that allows you to write ASP-like files that I > >> named "Gambas server pages". > >> > >> Put that in a text file, make it executable, and run it. Do not forget > >> to run "make install" in the app source directory to recompile and > >> install the new scripter. > > It would be useful have a similar system for "in-line" HTML: that > is, HTML generated within graphical clients for display within HTML > widgets, > > Ian Haywood > What do you mean exactly? -- Benoit Minisini From klaine8 at ...626... Tue Sep 23 18:26:28 2008 From: klaine8 at ...626... (Kari Laine) Date: Tue, 23 Sep 2008 19:26:28 +0300 Subject: [Gambas-user] Gambas debugger and RAISE Message-ID: <61452b690809230926m4b164e3eg5f0ed38c77eaa405@...627...> Hi, I am trying to understand gb.form and event-handling is still bit mystery to me. I have a question when single stepping through the source code the debugger doesn't seem to step into raised functions. Is it so or don't I understand something? Now actually trying it some more it seems to step into them sometimes and sometimes not. Could someone explain the logic in it - please ? Best Regards Kari Laine From gambas at ...1... Tue Sep 23 19:44:09 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 23 Sep 2008 19:44:09 +0200 Subject: [Gambas-user] Gambas debugger and RAISE In-Reply-To: <61452b690809230926m4b164e3eg5f0ed38c77eaa405@...627...> References: <61452b690809230926m4b164e3eg5f0ed38c77eaa405@...627...> Message-ID: <200809231944.09649.gambas@...1...> On mardi 23 septembre 2008, Kari Laine wrote: > Hi, > > I am trying to understand gb.form and event-handling is still bit mystery > to me. I have a question when single stepping through the source code the > debugger doesn't seem to step into raised functions. Is it so or don't I > understand something? Now actually trying it some more it seems to step > into them sometimes and sometimes not. Could someone explain the logic in > it - please ? > > Best Regards > Kari Laine Please be less vague, otherwise I can't help! -- Benoit Minisini From m0e.lnx at ...626... Tue Sep 23 19:43:54 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Tue, 23 Sep 2008 12:43:54 -0500 Subject: [Gambas-user] Applying translation to a running application Message-ID: <1f1e8c1b0809231043v127b2e70w19ef11bdfc0fa378@...627...> Can anyone think of a way to apply a translation to an application that's already running? An example would be a wizard that starts out in English, and at the first step offers the user to choose their language. After the user selects his/her language, the rest of the application get translated to the selected language. I'm not talking about creating the translations... I already know how to do that... This is assuming there is a translated version for the listed languages. Anybody? From Karl.Reinl at ...9... Tue Sep 23 21:18:22 2008 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Tue, 23 Sep 2008 21:18:22 +0200 Subject: [Gambas-user] Applying translation to a running application In-Reply-To: <1f1e8c1b0809231043v127b2e70w19ef11bdfc0fa378@...627...> References: <1f1e8c1b0809231043v127b2e70w19ef11bdfc0fa378@...627...> Message-ID: <1222197502.9727.22.camel@...40...> Am Dienstag, den 23.09.2008, 12:43 -0500 schrieb M0E Lnx: > Can anyone think of a way to apply a translation to an application > that's already running? > > An example would be a wizard that starts out in English, and at the > first step offers the user to choose their language. > After the user selects his/her language, the rest of the application > get translated to the selected language. > > I'm not talking about creating the translations... I already know how > to do that... This is assuming there is a translated version for the > listed languages. > > Anybody? > Salut, one way is, all text to show, is stored in a Databasetable, only the text which is used before the DB is connected,is burned in, and in english. Here a simple form of that Table: lang is GB,FR,DE or so token is an unique token-key text is the text in the language, fix by lang So in Form_Open or so you m ake : PUBLIC SUB Form_Open() DIM rTest AS Result rTest = meConn.Handle.Find("tblLang", "token = &1 and lang = &2", "Label1",myLang) Label1.Text = rTest!Text rTest = meConn.Handle.Find("tblLang", "token = &1 and lang = &2", "Label2",myLang) Label2.Text = rTest!Text ...... and so on ..... END Do not forget all other texts use in messages, printouts and so on. -- Amicalment Charlie From doriano.blengino at ...1909... Tue Sep 23 21:39:23 2008 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Tue, 23 Sep 2008 21:39:23 +0200 Subject: [Gambas-user] A few questions Message-ID: <48D945EB.6040304@...1909...> Hi, I am facing a series of little problems (gambas v. 2.0.0). I made a fmPreview which, by raising a "getpage" event, gets data from the main program and displays them, and/or actually prints them on a printer. fmPreview is a form with a few controls in it. fmPreview itself raises a "getpage" event, which is to be catched by the main program in order to send data to print. fmPreview catches events from its own controls (buttons, form events like resize and so on). The main initiates a preview/print operation by doing this: fmPreview.setup("caricopriv", 1350, 2300) ' name of the print and page dimensions fmPreview.obs = NEW Observer(fmPreview) AS "preview" reply = fmPreview.showmodal() ' start operation The observer is needed because, without it, the "instantiating" program can not get the event to send page data. When fmPreview terminates its duty, in its close() methods, it issues these instructions: object.Detach(obs) obs = NULL The previous two instructions should get rid of the observer. This is needed because otherwise every time the main program opens up an fmPreview, a new observer has to be created. My questions are: 1) Is this the correct way to destroy an observer? I did not find another way - both instructions are needed, it seems. I hoped an "Object.destroy(...)" was present... 2) I tried to not to use an observer, but attach/detach seem to catch all events involved in fmPreview - both the ones generated by fmpreview and the ones generated by fmPreview child controls. 3) I tried to instantiate an observer directly from fmPreview, instead of the main program, and then object.attach() it to the main program, but it didn't work. 4) Probably, using "hPreview = NEW fmPreview(...) as "preview" would solve, but I would try to understand better how to use an observer, attach/detach and so on. My goal would be to instantiate fmPreview with only two lines of code (ok, not a so great deal...), or just one line: the event name to be raised could be the same as the title of the print. 5) Does TableView raise keypress events when in edit mode? I see nothing, but I would need it to do certain things. Is there another way to do a controlled editing in a tableview? Thanks in advance, best regards, Doriano Blengino From doriano.blengino at ...1909... Tue Sep 23 21:53:48 2008 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Tue, 23 Sep 2008 21:53:48 +0200 Subject: [Gambas-user] Oops... just another question (short!) Message-ID: <48D9494C.5070809@...1909...> If I set "printer.copies = 2" in code, all the prints get interrupted. If I leave it untouched, or set it to 1, all works perfectly. I am missing something? Re-thanks... From rospolosco at ...152... Tue Sep 23 20:48:25 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Tue, 23 Sep 2008 20:48:25 +0200 Subject: [Gambas-user] Applying translation to a running application In-Reply-To: <1f1e8c1b0809231043v127b2e70w19ef11bdfc0fa378@...627...> References: <1f1e8c1b0809231043v127b2e70w19ef11bdfc0fa378@...627...> Message-ID: <200809232048.26063.rospolosco@...152...> Il marted? 23 settembre 2008 19:43:54 M0E Lnx ha scritto: > Can anyone think of a way to apply a translation to an application > that's already running? > > An example would be a wizard that starts out in English, and at the > first step offers the user to choose their language. > After the user selects his/her language, the rest of the application > get translated to the selected language. > > I'm not talking about creating the translations... I already know how > to do that... This is assuming there is a translated version for the > listed languages. > > Anybody? > A little example (I bet it could be done better!). It works *only* when compiled and only if you have all locales stuff installed. Type ./select-language.gambas You'll see a little form. You can choose English or Italian. Bye, Stefano > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge Build the coolest Linux based applications with Moblin SDK & win > great prizes Grand prize is a trip for two to an Open Source event anywhere > in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -------------- next part -------------- A non-text attachment was scrubbed... Name: select-language-0.0.4.tar.gz Type: application/x-tgz Size: 8738 bytes Desc: not available URL: From gambas at ...1... Tue Sep 23 22:54:45 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 23 Sep 2008 22:54:45 +0200 Subject: [Gambas-user] Applying translation to a running application In-Reply-To: <1222197502.9727.22.camel@...40...> References: <1f1e8c1b0809231043v127b2e70w19ef11bdfc0fa378@...627...> <1222197502.9727.22.camel@...40...> Message-ID: <200809232254.45109.gambas@...1...> On mardi 23 septembre 2008, Charlie Reinl wrote: > Am Dienstag, den 23.09.2008, 12:43 -0500 schrieb M0E Lnx: > > Can anyone think of a way to apply a translation to an application > > that's already running? > > > > An example would be a wizard that starts out in English, and at the > > first step offers the user to choose their language. > > After the user selects his/her language, the rest of the application > > get translated to the selected language. > > > > I'm not talking about creating the translations... I already know how > > to do that... This is assuming there is a translated version for the > > listed languages. > > > > Anybody? > > Salut, > > one way is, all text to show, is stored in a Databasetable, only the > text which is used before the DB is connected,is burned in, and in > english. > > Here a simple form of that Table: > lang is GB,FR,DE or so > token is an unique token-key > text is the text in the language, fix by lang > > So in Form_Open or so you m ake : > > PUBLIC SUB Form_Open() > DIM rTest AS Result > rTest = meConn.Handle.Find("tblLang", "token = &1 and lang = &2", > "Label1",myLang) > Label1.Text = rTest!Text > rTest = meConn.Handle.Find("tblLang", "token = &1 and lang = &2", > "Label2",myLang) > Label2.Text = rTest!Text > ...... and so on ..... > END > > Do not forget all other texts use in messages, printouts and so on. My god... You have a Windows background, don't you? :-) Gambas has an integrated translation system based on the standard GNU tools. No need to reinvent the wheel there. Anyway, here is a little demo of how to change the application language at runtime: PUBLIC SUB Main() DIM sLang AS String DO PRINT "Enter language code (fr, es, en...): "; LINE INPUT sLang System.Language = sLang PRINT ("Hello") LOOP END Of course, you must translate the "Hello" string in the IDE to see it translated! Beware that strings are not translated "on the fly". If a form is opened, you must destroy it and recreate it to see the new translations. In other words, strings are translated when they are used. Regards, -- Benoit Minisini From klaine8 at ...626... Tue Sep 23 23:15:20 2008 From: klaine8 at ...626... (Kari Laine) Date: Wed, 24 Sep 2008 00:15:20 +0300 Subject: [Gambas-user] Gambas debugger and RAISE In-Reply-To: <200809231944.09649.gambas@...1...> References: <61452b690809230926m4b164e3eg5f0ed38c77eaa405@...627...> <200809231944.09649.gambas@...1...> Message-ID: <61452b690809231415x7e4d8f12p3314eee30bc6981d@...627...> On Tue, Sep 23, 2008 at 8:44 PM, Benoit Minisini < gambas at ...1...> wrote: > On mardi 23 septembre 2008, Kari Laine wrote: > > Hi, > > > > I am trying to understand gb.form and event-handling is still bit mystery > > to me. I have a question when single stepping through the source code the > > debugger doesn't seem to step into raised functions. Is it so or don't I > > understand something? Now actually trying it some more it seems to step > > into them sometimes and sometimes not. Could someone explain the logic in > > it - please ? > > > > Best Regards > > Kari Laine > > Please be less vague, otherwise I can't help! > > Thanks Benoit getting back. I try again. As I am not very good with Gambas events yet I find it sometimes difficult to follow where execution of code jumps when event is raised. I was hoping that stepping with Gambas debugger would have revealed that. It seems not to be the case - or quite probably I am doing something wrong. So the idea was to use debugger to see where executions jumps for example when there is RAISE Change . At the moment I am stuck with following code in FileChooser.class in gb.form . PUBLIC SUB frmChooser_Change() RAISE Change END I am not able to figure out what _Change sub is called at that. If you could tell me that I could be those light pulp goes on situations for me. Also I am not totally sure what { } means like {Select}. Is it that you can use reserved word as your own sub/func/var names? Best Regards Kari Laine From gambas at ...1... Tue Sep 23 23:20:36 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 23 Sep 2008 23:20:36 +0200 Subject: [Gambas-user] A few questions In-Reply-To: <48D945EB.6040304@...1909...> References: <48D945EB.6040304@...1909...> Message-ID: <200809232320.36379.gambas@...1...> On mardi 23 septembre 2008, Doriano Blengino wrote: > Hi, > > I am facing a series of little problems (gambas v. 2.0.0). > You should use a more recent version of Gambas, otherwise what I will say may not work. > I made a fmPreview which, by raising a "getpage" event, gets data from > the main program and displays them, and/or actually prints them on a > printer. > fmPreview is a form with a few controls in it. fmPreview itself raises a > "getpage" event, which is to be catched by the main program in order to > send data to print. fmPreview catches events from its own controls > (buttons, form events like resize and so on). > > The main initiates a preview/print operation by doing this: > > fmPreview.setup("caricopriv", 1350, 2300) ' name of the print and page > dimensions > > fmPreview.obs = NEW Observer(fmPreview) AS "preview" > > reply = fmPreview.showmodal() ' start operation > > > The observer is needed because, without it, the "instantiating" program > can not get the event to send page data. > When fmPreview terminates its duty, in its close() methods, it issues > these instructions: > > object.Detach(obs) > obs = NULL > > The previous two instructions should get rid of the observer. This is > needed because otherwise every time the main program opens up an > fmPreview, a new observer has to be created. > > My questions are: > > 1) Is this the correct way to destroy an observer? I did not find > another way - both instructions are needed, it seems. I hoped an > "Object.destroy(...)" was present... You don't decide. Gambas decides. More precisely, an object is destroyed when nothing references it. The only thing you can do in your program is not holding a reference on it, by setting NULL to your 'obs' variable for example. But it does not mean that a reference is not internally store somewhere else. For example, if you do not do the Object.Detach(obs), fmPreview will hold a reference on it (any object hold a reference on its observers). > > 2) I tried to not to use an observer, but attach/detach seem to catch > all events involved in fmPreview - both the ones generated by fmpreview > and the ones generated by fmPreview child controls. No. An observer catches the events sent by one object only. > > 3) I tried to instantiate an observer directly from fmPreview, instead > of the main program, and then object.attach() it to the main program, > but it didn't work. You cannot "Object.Attach() to the main program". A default observer (badly named Parent in Gambas) is not a program, but another object. In the case of a static class (a module), the observer is the class object. > > 4) Probably, using "hPreview = NEW fmPreview(...) as "preview" would > solve, but I would try to understand better how to use an observer, > attach/detach and so on. My goal would be to instantiate fmPreview with > only two lines of code (ok, not a so great deal...), or just one line: > the event name to be raised could be the same as the title of the print. A form is its own event observer. If you want a form to raise other events to other observer, I suggest you think again on how things are encapsulated in your application. > > 5) Does TableView raise keypress events when in edit mode? I see > nothing, but I would need it to do certain things. Is there another way > to do a controlled editing in a tableview? TableView is made in Gambas, so you just have to look at the sources in gb.form to understand how it works. It mainly inherits GridView and uses Observers (and the Watcher class) to do its job. And, no, you won't see the keyboard events while editing, as they are caught by the internal editor widget. In that specific case, we could imagine adding a property to get a reference on the editor widget so that you can put your own event observer on it to catch the keyboard events. Regards, -- Benoit Minisini From m0e.lnx at ...626... Tue Sep 23 23:22:21 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Tue, 23 Sep 2008 16:22:21 -0500 Subject: [Gambas-user] Rendering image for form.Picture when form is embedded Message-ID: <1f1e8c1b0809231422y374ae3c6mc2fcaa4445ce1b69@...627...> Not sure if this is a bug or just another thing missing fromt he gb.gtk component Gambas2-2.8.0 is what I'm running Have a form in which i have specified a picture property If I run this form as a startup class (stand-alone) it shows up ok as it should But I need this form embedded into a panel (using the form.reparent() method) When I do this, it appears the form.picture property gets completely ignored. Any ideas how to fix it? From gambas at ...1... Tue Sep 23 23:47:55 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 23 Sep 2008 23:47:55 +0200 Subject: [Gambas-user] Rendering image for form.Picture when form is embedded In-Reply-To: <1f1e8c1b0809231422y374ae3c6mc2fcaa4445ce1b69@...627...> References: <1f1e8c1b0809231422y374ae3c6mc2fcaa4445ce1b69@...627...> Message-ID: <200809232347.56014.gambas@...1...> On mardi 23 septembre 2008, M0E Lnx wrote: > Not sure if this is a bug or just another thing missing fromt he > gb.gtk component > > Gambas2-2.8.0 is what I'm running > > Have a form in which i have specified a picture property > If I run this form as a startup class (stand-alone) it shows up ok as it > should > > But I need this form embedded into a panel (using the form.reparent() > method) When I do this, it appears the form.picture property gets > completely ignored. > > Any ideas how to fix it? > Fixed in revision #1591. -- Benoit Minisini From gambas at ...1... Tue Sep 23 23:31:12 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 23 Sep 2008 23:31:12 +0200 Subject: [Gambas-user] Rendering image for form.Picture when form is embedded In-Reply-To: <1f1e8c1b0809231422y374ae3c6mc2fcaa4445ce1b69@...627...> References: <1f1e8c1b0809231422y374ae3c6mc2fcaa4445ce1b69@...627...> Message-ID: <200809232331.13014.gambas@...1...> On mardi 23 septembre 2008, M0E Lnx wrote: > Not sure if this is a bug or just another thing missing fromt he > gb.gtk component > > Gambas2-2.8.0 is what I'm running > > Have a form in which i have specified a picture property > If I run this form as a startup class (stand-alone) it shows up ok as it > should > > But I need this form embedded into a panel (using the form.reparent() > method) When I do this, it appears the form.picture property gets > completely ignored. > > Any ideas how to fix it? > Mmm... Maybe it is not implemented at all! I will look at that. -- Benoit Minisini From gambas at ...1... Tue Sep 23 23:30:39 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 23 Sep 2008 23:30:39 +0200 Subject: [Gambas-user] Gambas debugger and RAISE In-Reply-To: <61452b690809231415x7e4d8f12p3314eee30bc6981d@...627...> References: <61452b690809230926m4b164e3eg5f0ed38c77eaa405@...627...> <200809231944.09649.gambas@...1...> <61452b690809231415x7e4d8f12p3314eee30bc6981d@...627...> Message-ID: <200809232330.39568.gambas@...1...> On mardi 23 septembre 2008, Kari Laine wrote: > On Tue, Sep 23, 2008 at 8:44 PM, Benoit Minisini < > > gambas at ...1...> wrote: > > On mardi 23 septembre 2008, Kari Laine wrote: > > > Hi, > > > > > > I am trying to understand gb.form and event-handling is still bit > > > mystery to me. I have a question when single stepping through the > > > source code the debugger doesn't seem to step into raised functions. Is > > > it so or don't I understand something? Now actually trying it some more > > > it seems to step into them sometimes and sometimes not. Could someone > > > explain the logic in it - please ? > > > > > > Best Regards > > > Kari Laine > > > > Please be less vague, otherwise I can't help! > > > > Thanks Benoit getting back. > > I try again. As I am not very good with Gambas events yet I find it > sometimes difficult to follow where execution of code jumps when event is > raised. I was hoping that stepping with Gambas debugger would have revealed > that. It seems not to be the case - or quite probably I am doing something > wrong. > > So the idea was to use debugger to see where executions jumps for example > when there is RAISE Change . > > At the moment I am stuck with following code in FileChooser.class in > gb.form . > > PUBLIC SUB frmChooser_Change() > > RAISE Change > > END > > I am not able to figure out what _Change sub is called at that. If > you could tell me that I could be those light pulp goes on situations for > me. The FileChooser is the event observer of the frmChooser object. When frmChooser raises its "Change" event, it is catched by frmChooser_Change(). Then the "Change" event of FileChooser is raised, and this event will be catched by a possible "xxxx_Change()" event handler in the parent object of FileChooser. > > Also I am not totally sure what { } means like {Select}. Is it that you can > use reserved word as your own sub/func/var names? {...} tells the compiler that a symbol is an identifier, and must not be interpreted as a reserved keyword. It's funny, because I took this syntax from Visual Basic, and that question comes frequently. :-) Regards, -- Benoit Minisini From goofybritt at ...626... Tue Sep 23 23:54:28 2008 From: goofybritt at ...626... (Brittany Dunlap) Date: Tue, 23 Sep 2008 17:54:28 -0400 Subject: [Gambas-user] Unable to create ubuntu/debian packages Message-ID: <48D96594.6010004@...626...> I keep getting errors when I try to create an installation package. It's always the same error. Full creating package info/error: http://dunlap.pastebin.com/f5058380a Specific part of error (end): gpg: skipped "dunlap ": secret key not available gpg: [stdin]: clearsign failed: secret key not available dpkg-genchanges >../test_0-0_i386.changes dpkg-genchanges: error: badly formed line in files list file, line 1 dpkg-buildpackage: failure: dpkg-genchanges gave error exit status 9 The package build has failed. Package.MakeDebPackage.424: 'dpkg-buildpackage' has failed. I use LinuxMint which is a derivative of Ubuntu. Gambas 2.8.2 Linux minty 2.6.24-16-generic #1 SMP Thu Apr 10 13:23:42 UTC 2008 i686 GNU/Linux Thanks, Brittany From rterry at ...1946... Wed Sep 24 01:00:00 2008 From: rterry at ...1946... (richard terry) Date: Wed, 24 Sep 2008 09:00:00 +1000 Subject: [Gambas-user] pdf rendering problems. Message-ID: <200809240900.01098.rterry@...1946...> I wondered if the person who is writing/maintaing ?hopefully someone, the pdf viewer in gambas, would like copies of any pdfs that don't render. What actually is the development status of this. Regards Richard From gambas at ...1... Wed Sep 24 01:10:58 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 24 Sep 2008 01:10:58 +0200 Subject: [Gambas-user] pdf rendering problems. In-Reply-To: <200809240900.01098.rterry@...1946...> References: <200809240900.01098.rterry@...1946...> Message-ID: <200809240110.58601.gambas@...1...> On mercredi 24 septembre 2008, richard terry wrote: > I wondered if the person who is writing/maintaing ?hopefully someone, the > pdf viewer in gambas, would like copies of any pdfs that don't render. > > What actually is the development status of this. > > Regards > > Richard > The pdf component is based on the poppler library. So if something does not render, you must check with the poppler developers! -- Benoit Minisini From gambas at ...1... Wed Sep 24 01:12:31 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 24 Sep 2008 01:12:31 +0200 Subject: [Gambas-user] Oops... just another question (short!) In-Reply-To: <48D9494C.5070809@...1909...> References: <48D9494C.5070809@...1909...> Message-ID: <200809240112.31324.gambas@...1...> On mardi 23 septembre 2008, Doriano Blengino wrote: > If I set "printer.copies = 2" in code, all the prints get interrupted. > If I leave it untouched, or set it to 1, all works perfectly. I am > missing something? > > > Re-thanks... > Maybe it does not work... The printing system of Qt 3 is not very reliable on some place. Maybe you should print multiple copies yourself! -- Benoit Minisini From m0e.lnx at ...626... Wed Sep 24 02:47:34 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Tue, 23 Sep 2008 19:47:34 -0500 Subject: [Gambas-user] Applying translation to a running application In-Reply-To: <200809232254.45109.gambas@...1...> References: <1f1e8c1b0809231043v127b2e70w19ef11bdfc0fa378@...627...> <1222197502.9727.22.camel@...40...> <200809232254.45109.gambas@...1...> Message-ID: <1f1e8c1b0809231747s705bfe1dxa7671f7afb962f9b@...627...> How might one apply this for a form that is already opened? I'm using a host form with a panel to host other forms.. My other forms are translated once the language is selected, but how would I translate the host form? On Tue, Sep 23, 2008 at 3:54 PM, Benoit Minisini wrote: > On mardi 23 septembre 2008, Charlie Reinl wrote: >> Am Dienstag, den 23.09.2008, 12:43 -0500 schrieb M0E Lnx: >> > Can anyone think of a way to apply a translation to an application >> > that's already running? >> > >> > An example would be a wizard that starts out in English, and at the >> > first step offers the user to choose their language. >> > After the user selects his/her language, the rest of the application >> > get translated to the selected language. >> > >> > I'm not talking about creating the translations... I already know how >> > to do that... This is assuming there is a translated version for the >> > listed languages. >> > >> > Anybody? >> >> Salut, >> >> one way is, all text to show, is stored in a Databasetable, only the >> text which is used before the DB is connected,is burned in, and in >> english. >> >> Here a simple form of that Table: >> lang is GB,FR,DE or so >> token is an unique token-key >> text is the text in the language, fix by lang >> >> So in Form_Open or so you m ake : >> >> PUBLIC SUB Form_Open() >> DIM rTest AS Result >> rTest = meConn.Handle.Find("tblLang", "token = &1 and lang = &2", >> "Label1",myLang) >> Label1.Text = rTest!Text >> rTest = meConn.Handle.Find("tblLang", "token = &1 and lang = &2", >> "Label2",myLang) >> Label2.Text = rTest!Text >> ...... and so on ..... >> END >> >> Do not forget all other texts use in messages, printouts and so on. > > My god... You have a Windows background, don't you? :-) > > Gambas has an integrated translation system based on the standard GNU tools. > No need to reinvent the wheel there. > > Anyway, here is a little demo of how to change the application language at > runtime: > > PUBLIC SUB Main() > > DIM sLang AS String > > DO > PRINT "Enter language code (fr, es, en...): "; > LINE INPUT sLang > System.Language = sLang > PRINT ("Hello") > LOOP > > END > > Of course, you must translate the "Hello" string in the IDE to see it > translated! > > Beware that strings are not translated "on the fly". If a form is opened, you > must destroy it and recreate it to see the new translations. In other words, > strings are translated when they are used. > > Regards, > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From klaine8 at ...626... Wed Sep 24 06:36:43 2008 From: klaine8 at ...626... (Kari Laine) Date: Wed, 24 Sep 2008 07:36:43 +0300 Subject: [Gambas-user] Question about gb.form Message-ID: <61452b690809232136u73f73389t343025f9661a499@...627...> Hi, as I have told before I spend my time with gb.form :-) Little progress with the program flow but now I cannot figure out a simple thing. In gb.form there is the test form FMain which is also the startup form for the project - I suppose it is for testing - right? Anyway how this FMain was done? Suppose I would like to make form KLTest1, which would contain that FileChooser-control(class ?) Hopefully this make sence. Best Regards Kari Laine From kari.laine at ...1400... Wed Sep 24 10:08:36 2008 From: kari.laine at ...1400... (Kari Laine) Date: Wed, 24 Sep 2008 11:08:36 +0300 Subject: [Gambas-user] This list Message-ID: <48D9F584.50104@...1400...> Hi, now it seems second of my message went missing on this list. This inside a week. Is it just me or have you others also had problems with messages going /dev/null? I wait till tomorrow and resend then. Best Regards Kari Laine From goofybritt at ...626... Wed Sep 24 10:14:06 2008 From: goofybritt at ...626... (Brittany Dunlap) Date: Wed, 24 Sep 2008 04:14:06 -0400 Subject: [Gambas-user] This list In-Reply-To: <48D9F584.50104@...1400...> References: <48D9F584.50104@...1400...> Message-ID: <48D9F6CE.2010804@...626...> I am wondering if my message went missing also. It was the first time I posted to the group and I have yet to receive a response. Everyone else seems to be getting answers. Good luck, Brittany Kari Laine wrote: > Hi, > > now it seems second of my message went missing on this list. This inside > a week. Is it just me or have you others also had problems with messages > going /dev/null? > > I wait till tomorrow and resend then. > > Best Regards > Kari Laine > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From klaine8 at ...626... Wed Sep 24 10:27:51 2008 From: klaine8 at ...626... (Kari Laine) Date: Wed, 24 Sep 2008 11:27:51 +0300 Subject: [Gambas-user] This list In-Reply-To: <48D9F6CE.2010804@...626...> References: <48D9F584.50104@...1400...> <48D9F6CE.2010804@...626...> Message-ID: <61452b690809240127y22785711wa7a76ea031f9af00@...627...> On Wed, Sep 24, 2008 at 11:14 AM, Brittany Dunlap wrote: > I am wondering if my message went missing also. It was the first time I > posted to the group and I have yet to receive a response. Everyone else > seems to be getting answers. > > Good luck, > > Brittany > > Hi Brittany, I think Gmail have something to do with it. Both of my messages which went missing was sent by my Gmail account. You also seem to use Gmail. So SourceForge might not like Gmail... Also now I gather that I can answer already started threads with Gmail. But if I start discussion with Gmail there is a risk that it goes missing. So if you have another email-account try with that. Let me know if you problem continues. You can reach me at klaine8 at ...626... or kari.laine at ...1400... I try to search Google (or should I use MSSearch :-)) whether there is that kind of problems reported. Best Regards Kari Laine From eilert-sprachen at ...221... Wed Sep 24 10:46:35 2008 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Wed, 24 Sep 2008 10:46:35 +0200 Subject: [Gambas-user] This list In-Reply-To: <61452b690809240127y22785711wa7a76ea031f9af00@...627...> References: <48D9F584.50104@...1400...> <48D9F6CE.2010804@...626...> <61452b690809240127y22785711wa7a76ea031f9af00@...627...> Message-ID: <48D9FE6B.1070909@...221...> Kari Laine schrieb: > On Wed, Sep 24, 2008 at 11:14 AM, Brittany Dunlap wrote: > >> I am wondering if my message went missing also. It was the first time I >> posted to the group and I have yet to receive a response. Everyone else >> seems to be getting answers. >> >> Good luck, >> >> Brittany >> >> Hi Brittany, > > I think Gmail have something to do with it. Both of my messages which went > missing was sent by my Gmail account. You also seem to use Gmail. So > SourceForge might not like Gmail... > > Also now I gather that I can answer already started threads with Gmail. But > if I start discussion with Gmail there is a risk that it goes missing. > > So if you have another email-account try with that. Let me know if you > problem continues. You can reach me at > klaine8 at ...626... or kari.laine at ...1400... > > I try to search Google (or should I use MSSearch :-)) whether there is that > kind of problems reported. > > Best Regards > Kari Laine Kari, Maybe you're sending your emails from one account and request answers to the other one? This would be one reason for a spam filter to sort out your mails. At least I had this here once before I learned how to adjust my Thunderbird to the right "answer to" and "sender" addresses for the mailing lists. Just an idea... Rolf From klaine8 at ...626... Wed Sep 24 10:47:24 2008 From: klaine8 at ...626... (Kari Laine) Date: Wed, 24 Sep 2008 11:47:24 +0300 Subject: [Gambas-user] Tooltips in Console Message-ID: <61452b690809240147u30409bb3ue8a1336e98d175ae@...627...> This is at the same time test whether SourceForge have problems with messages sent from Gmail-account. There is a little error in tooltips in Console window. The search-buttons tooltip is Paste. Also in UnDocked Console the Dock-Button's tooltip is "Undock Console" Those are not nothing big but I thought I report it. Best Regards Kari Laine From klaine8 at ...626... Wed Sep 24 10:54:59 2008 From: klaine8 at ...626... (Kari Laine) Date: Wed, 24 Sep 2008 11:54:59 +0300 Subject: [Gambas-user] This list In-Reply-To: <48D9FE6B.1070909@...221...> References: <48D9F584.50104@...1400...> <48D9F6CE.2010804@...626...> <61452b690809240127y22785711wa7a76ea031f9af00@...627...> <48D9FE6B.1070909@...221...> Message-ID: <61452b690809240154l3f8dd959gfe79c3fed57b8f20@...627...> On Wed, Sep 24, 2008 at 11:46 AM, Rolf-Werner Eilert < eilert-sprachen at ...221...> wrote: > Kari, > > Maybe you're sending your emails from one account and request answers to > the other one? This would be one reason for a spam filter to sort out > your mails. > > At least I had this here once before I learned how to adjust my > Thunderbird to the right "answer to" and "sender" addresses for the > mailing lists. > > Just an idea... > > Rolf > Hi Rolf, I don't totally understand what you mean. I have joined gambas-user list independently from both mentioned mail addresses. This because I want to keep backup of all traffic. The list-archive of SourceForge is so slow that it is practically impossible to read them. I just posted one message from gmail-account. Let's see whether is shows up. Best Regards Kari Laine From doriano.blengino at ...1909... Wed Sep 24 10:40:02 2008 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Wed, 24 Sep 2008 10:40:02 +0200 Subject: [Gambas-user] Gambas debugger and RAISE In-Reply-To: <61452b690809231415x7e4d8f12p3314eee30bc6981d@...627...> References: <61452b690809230926m4b164e3eg5f0ed38c77eaa405@...627...> <200809231944.09649.gambas@...1...> <61452b690809231415x7e4d8f12p3314eee30bc6981d@...627...> Message-ID: <48D9FCE2.6@...1909...> Kari Laine ha scritto: > On Tue, Sep 23, 2008 at 8:44 PM, Benoit Minisini < > gambas at ...1...> wrote: > > >> On mardi 23 septembre 2008, Kari Laine wrote: >> >>> Hi, >>> >>> I am trying to understand gb.form and event-handling is still bit mystery >>> to me. I have a question when single stepping through the source code the >>> debugger doesn't seem to step into raised functions. Is it so or don't I >>> understand something? Now actually trying it some more it seems to step >>> into them sometimes and sometimes not. Could someone explain the logic in >>> it - please ? >>> >>> Best Regards >>> Kari Laine >>> >> Please be less vague, otherwise I can't help! >> I suppose you see, sometimes, that stepping "into" a RAISE statement does not have effect. I think you see that because there is no gambas code devoted to handle that particular event, so the debugger executes gambas internal code, which does not find any handler, and so goes on to the next statement. For example, you have a class "Class1" which at a certain point does RAISE TestEvent If the instantiator of 'Class1 as "testClass"' does not have a testClass_testEvent() method, then stepping through "RAISE testEvent" will lead to nothing - similar to a void statement. From klaine8 at ...626... Wed Sep 24 11:16:28 2008 From: klaine8 at ...626... (Kari Laine) Date: Wed, 24 Sep 2008 12:16:28 +0300 Subject: [Gambas-user] Gambas debugger and RAISE In-Reply-To: <48D9FCE2.6@...1909...> References: <61452b690809230926m4b164e3eg5f0ed38c77eaa405@...627...> <200809231944.09649.gambas@...1...> <61452b690809231415x7e4d8f12p3314eee30bc6981d@...627...> <48D9FCE2.6@...1909...> Message-ID: <61452b690809240216p493c1657v3eeae55473b2171c@...627...> On Wed, Sep 24, 2008 at 11:40 AM, Doriano Blengino < doriano.blengino at ...1909...> wrote: > Kari Laine ha scritto: > > On Tue, Sep 23, 2008 at 8:44 PM, Benoit Minisini < > > gambas at ...1...> wrote: > > > > > >> On mardi 23 septembre 2008, Kari Laine wrote: > >> > >>> Hi, > >>> > >>> I am trying to understand gb.form and event-handling is still bit > mystery > >>> to me. I have a question when single stepping through the source code > the > >>> debugger doesn't seem to step into raised functions. Is it so or don't > I > >>> understand something? Now actually trying it some more it seems to step > >>> into them sometimes and sometimes not. Could someone explain the logic > in > >>> it - please ? > >>> > >>> Best Regards > >>> Kari Laine > >>> > >> Please be less vague, otherwise I can't help! > >> > I suppose you see, sometimes, that stepping "into" a RAISE statement > does not have effect. > I think you see that because there is no gambas code devoted to handle > that particular event, so the debugger executes gambas internal code, > which does not find any handler, and so goes on to the next statement. > > For example, you have a class "Class1" which at a certain point does > > RAISE TestEvent > > If the instantiator of 'Class1 as "testClass"' does not have a > testClass_testEvent() method, then stepping through "RAISE testEvent" > will lead to nothing - similar to a void statement. > > Hi Doriano, THANKS A LOT !! I didn't figure that out by myself - how stupid of me. So basically a target for event does not have to exist. Somehow I had a fixation that Gambas should complain... But I am just a beginner with Gambas. And this object-oriented event raising stuff combined with observers and watchers and object.attach object.detach is a quite bit to learn. Especially when there is not enough examples. I am considering hiring me a tutor ... any idea how much that would cost :-) Thanks again. Best Regards Kari Laine From doriano.blengino at ...1909... Wed Sep 24 11:12:57 2008 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Wed, 24 Sep 2008 11:12:57 +0200 Subject: [Gambas-user] A few questions In-Reply-To: <200809232320.36379.gambas@...1...> References: <48D945EB.6040304@...1909...> <200809232320.36379.gambas@...1...> Message-ID: <48DA0499.20001@...1909...> Benoit Minisini ha scritto: > On mardi 23 septembre 2008, Doriano Blengino wrote: > >> Hi, >> >> I am facing a series of little problems (gambas v. 2.0.0). >> >> > > You should use a more recent version of Gambas, otherwise what I will say may > not work. > Yes, this is true. But I installed the v2.7.xxx (debian repository) on another machine to see if it had many improvements and, as far I could see from a quick tour, there was nothing exiciting. I have to say that my 2.0.0 is very stable... and I am happy with this unless I found a bug. I prefer stability over everything else... ;-) >> object.Detach(obs) >> obs = NULL >> >> 1) Is this the correct way to destroy an observer? I did not find >> another way - both instructions are needed, it seems. I hoped an >> "Object.destroy(...)" was present... >> > > You don't decide. Gambas decides. > > More precisely, an object is destroyed when nothing references it. The only > thing you can do in your program is not holding a reference on it, by setting > NULL to your 'obs' variable for example. > > But it does not mean that a reference is not internally store somewhere else. > For example, if you do not do the Object.Detach(obs), fmPreview will hold a > reference on it (any object hold a reference on its observers). > So it seems that the two instructions are correct, provided that nothing else increments the reference count. >> 2) I tried to not to use an observer, but attach/detach seem to catch >> all events involved in fmPreview - both the ones generated by fmpreview >> and the ones generated by fmPreview child controls. >> > > No. An observer catches the events sent by one object only. > Sorry... I was talking about *not* to use an observer. I tried to "object.attach()" fmPreview, and the result was that fmPreview.form_open() didn't execute anymore. I understand this was because I deviated, by mean of attach(), the events from fmPreview to another place. But I was thinking that events directed *to* fmPreview (such form_keypress, form_open and so on) took a different path than those generated *from* fmPreview. >> 3) I tried to instantiate an observer directly from fmPreview, instead >> of the main program, and then object.attach() it to the main program, >> but it didn't work. >> > > You cannot "Object.Attach() to the main program". A default observer (badly > named Parent in Gambas) is not a program, but another object. > > In the case of a static class (a module), the observer is the class object. > Yes, but... the instruction object.attach() was written inside the code of a form, so it was belonging to a class. I know my english is poor, I say "main program" as a short way to say "another class/form which is executing at the time I call fmPreview"... >> 4) Probably, using "hPreview = NEW fmPreview(...) as "preview" would >> solve, but I would try to understand better how to use an observer, >> attach/detach and so on. My goal would be to instantiate fmPreview with >> only two lines of code (ok, not a so great deal...), or just one line: >> the event name to be raised could be the same as the title of the print. >> > > A form is its own event observer. If you want a form to raise other events to > other observer, I suggest you think again on how things are encapsulated in > your application. > My application is encapsulated pretty well, and it works smoothly. It is encapsulated well because fmPreview does a lot of things, and the only callback is the getpage event. On the other side, the main program (ie, the form which needs to print) only setups() fmPreview to pass the template name of the print, and through "reply = fmPreview.ShowModal()" knows if the user aborted, printed none, some, or all the pages. I cannot see a simpler way to do this, but if someone knows, ...welcome! >> 5) Does TableView raise keypress events when in edit mode? I see >> nothing, but I would need it to do certain things. Is there another way >> to do a controlled editing in a tableview? >> > > TableView is made in Gambas, so you just have to look at the sources in > gb.form to understand how it works. It mainly inherits GridView and uses > Observers (and the Watcher class) to do its job. > > And, no, you won't see the keyboard events while editing, as they are caught > by the internal editor widget. In that specific case, we could imagine adding > a property to get a reference on the editor widget so that you can put your > own event observer on it to catch the keyboard events. > In the meantime I realized that. But I didn't want to replicate all the code to position a textbox in the right place, set the focus on it, implement xxx_data() and friends. But I could reimplement TableView in my application, inherit all, and only add a property which contains the editor widget reference needed to catch its keypress event... could be... Many thanks. In my experiments I tried a code snippet like this: DIM sName as string sName = "test" ... hSomething = new SomethingElse(ME) as sName but the compiler complains about sName being an "unknown identifier". Is this the intended behaviour, ie the AS clause wants a literal, or something else? Regards, Doriano Blengino From doriano.blengino at ...1909... Wed Sep 24 11:26:49 2008 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Wed, 24 Sep 2008 11:26:49 +0200 Subject: [Gambas-user] Oops... just another question (short!) In-Reply-To: <200809240112.31324.gambas@...1...> References: <48D9494C.5070809@...1909...> <200809240112.31324.gambas@...1...> Message-ID: <48DA07D9.1070903@...1909...> Benoit Minisini ha scritto: > On mardi 23 septembre 2008, Doriano Blengino wrote: > >> If I set "printer.copies = 2" in code, all the prints get interrupted. >> If I leave it untouched, or set it to 1, all works perfectly. I am >> missing something? >> >> >> Re-thanks... >> >> > > Maybe it does not work... The printing system of Qt 3 is not very reliable on > some place. Maybe you should print multiple copies yourself! > I already did so. But it is a pity to have a beatiful standard printer.setup() and tell the final user "...but you should not touch the Copies field... use instead the other blah blah because... blah blah blah...". Many users think that linux is in some way an handicapped version of windows, and this thought starts as soon as I say "before buying a printer, tell me what printer is - I must verify it is ok for the application"... Regards. From doriano.blengino at ...1909... Wed Sep 24 11:45:23 2008 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Wed, 24 Sep 2008 11:45:23 +0200 Subject: [Gambas-user] Gambas debugger and RAISE In-Reply-To: <61452b690809240216p493c1657v3eeae55473b2171c@...627...> References: <61452b690809230926m4b164e3eg5f0ed38c77eaa405@...627...> <200809231944.09649.gambas@...1...> <61452b690809231415x7e4d8f12p3314eee30bc6981d@...627...> <48D9FCE2.6@...1909...> <61452b690809240216p493c1657v3eeae55473b2171c@...627...> Message-ID: <48DA0C33.7020605@...1909...> Kari Laine ha scritto: >>>>> I am trying to understand gb.form and event-handling is still bit >>>>> >> mystery >> >>>>> to me. I have a question when single stepping through the source code >>>>> >> the >> >>>>> debugger doesn't seem to step into raised functions. Is it so or don't >>>>> >> I suppose you see, sometimes, that stepping "into" a RAISE statement >> does not have effect. >> I think you see that because there is no gambas code devoted to handle >> that particular event, so the debugger executes gambas internal code, >> >> > Hi Doriano, > You are the quickest email-replier in the world! > And this object-oriented event raising stuff combined with observers and > watchers and object.attach object.detach is a quite bit to learn. Especially > when there is not enough examples. > I think that too. Sometimes you find, well hidden somewhere in the docs, exactly what you need. But more links from a help page to another ("See also..."), and some paper about two or three or four or five things about gambas should be a big improvement. Sometimes I think I should offer myself to do something about docs, but two reasons keep me from doing that. First - I have almost no time; second, I am afraid to write a lot of stupid things, because I don't know gambas so much and I am biased toward other languages... What remains is that gambas is the best RAD for linux, and in certain aspects it is the best in the whole computer area. It is so sad to stay at the window looking at someone else to aid this thing go on... "It doesn't matter if everyday I'm getting fatter, keep on eating lots of pizzas, keep on coding using gambas..." :-)) Have a nice day, Doriano Blengino From eilert-sprachen at ...221... Wed Sep 24 11:51:38 2008 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Wed, 24 Sep 2008 11:51:38 +0200 Subject: [Gambas-user] Oops... just another question (short!) In-Reply-To: <48DA07D9.1070903@...1909...> References: <48D9494C.5070809@...1909...> <200809240112.31324.gambas@...1...> <48DA07D9.1070903@...1909...> Message-ID: <48DA0DAA.9040201@...221...> Doriano Blengino schrieb: > Benoit Minisini ha scritto: >> On mardi 23 septembre 2008, Doriano Blengino wrote: >> >>> If I set "printer.copies = 2" in code, all the prints get interrupted. >>> If I leave it untouched, or set it to 1, all works perfectly. I am >>> missing something? >>> >>> >>> Re-thanks... >>> >>> >> Maybe it does not work... The printing system of Qt 3 is not very reliable on >> some place. Maybe you should print multiple copies yourself! >> > I already did so. But it is a pity to have a beatiful standard > printer.setup() and tell the final user "...but you should not touch the > Copies field... use instead the other blah blah because... blah blah > blah...". Many users think that linux is in some way an handicapped > version of windows, and this thought starts as soon as I say "before > buying a printer, tell me what printer is - I must verify it is ok for > the application"... > > Regards. > Doriano, you can completely forget this problem if you print into files and send them to kprinter. Just read out the number of copies and send the file twice, for instance. I think, Benoit even emphasizes doing it this way. Anyway, since I've been doing it, I never had any trouble printing from my Gambas apps. Regards Rolf From doriano.blengino at ...1909... Wed Sep 24 11:57:51 2008 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Wed, 24 Sep 2008 11:57:51 +0200 Subject: [Gambas-user] Oops... just another question (short!) In-Reply-To: <48DA0DAA.9040201@...221...> References: <48D9494C.5070809@...1909...> <200809240112.31324.gambas@...1...> <48DA07D9.1070903@...1909...> <48DA0DAA.9040201@...221...> Message-ID: <48DA0F1F.1080300@...1909...> Rolf-Werner Eilert ha scritto: > Doriano Blengino schrieb: > >> Benoit Minisini ha scritto: >> >>> On mardi 23 septembre 2008, Doriano Blengino wrote: >>> >>> >>>> If I set "printer.copies = 2" in code, all the prints get interrupted. >>>> If I leave it untouched, or set it to 1, all works perfectly. I am >>>> missing something? >>>> >>>> > Doriano, > > you can completely forget this problem if you print into files and send > them to kprinter. Just read out the number of copies and send the file > twice, for instance. > > I think, Benoit even emphasizes doing it this way. > > Anyway, since I've been doing it, I never had any trouble printing from > my Gambas apps. > What a stupid I am! I didn't event think I could read that field and reset it afterward to 1! Thanks so much - two minds are better than one... Cheers, Doriano Blengino From gambas at ...1... Wed Sep 24 13:09:44 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 24 Sep 2008 13:09:44 +0200 Subject: [Gambas-user] Oops... just another question (short!) In-Reply-To: <48DA0DAA.9040201@...221...> References: <48D9494C.5070809@...1909...> <48DA07D9.1070903@...1909...> <48DA0DAA.9040201@...221...> Message-ID: <200809241309.44818.gambas@...1...> On mercredi 24 septembre 2008, Rolf-Werner Eilert wrote: > Doriano Blengino schrieb: > > Benoit Minisini ha scritto: > >> On mardi 23 septembre 2008, Doriano Blengino wrote: > >>> If I set "printer.copies = 2" in code, all the prints get interrupted. > >>> If I leave it untouched, or set it to 1, all works perfectly. I am > >>> missing something? > >>> > >>> > >>> Re-thanks... > >> > >> Maybe it does not work... The printing system of Qt 3 is not very > >> reliable on some place. Maybe you should print multiple copies yourself! > > > > I already did so. But it is a pity to have a beatiful standard > > printer.setup() and tell the final user "...but you should not touch the > > Copies field... use instead the other blah blah because... blah blah > > blah...". Many users think that linux is in some way an handicapped > > version of windows, and this thought starts as soon as I say "before > > buying a printer, tell me what printer is - I must verify it is ok for > > the application"... > > > > Regards. > > Doriano, > > you can completely forget this problem if you print into files and send > them to kprinter. Just read out the number of copies and send the file > twice, for instance. > > I think, Benoit even emphasizes doing it this way. > > Anyway, since I've been doing it, I never had any trouble printing from > my Gambas apps. > > Regards > Rolf > Yes. And if KDE developed its own printer system, maybe the Qt one was not useful. It seems that the printer system of Qt 4 will be cool enough so that KDE won't have to develop its own one again. Regards, -- Benoit Minisini From Karl.Reinl at ...9... Wed Sep 24 13:23:47 2008 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Wed, 24 Sep 2008 13:23:47 +0200 Subject: [Gambas-user] Applying translation to a running application In-Reply-To: <200809232254.45109.gambas@...1...> References: <1f1e8c1b0809231043v127b2e70w19ef11bdfc0fa378@...627...> <1222197502.9727.22.camel@...40...> <200809232254.45109.gambas@...1...> Message-ID: <1222255427.6378.5.camel@...40...> Am Dienstag, den 23.09.2008, 22:54 +0200 schrieb Benoit Minisini: > On mardi 23 septembre 2008, Charlie Reinl wrote: > > Am Dienstag, den 23.09.2008, 12:43 -0500 schrieb M0E Lnx: > > > Can anyone think of a way to apply a translation to an application > > > that's already running? > > > > > > An example would be a wizard that starts out in English, and at the > > > first step offers the user to choose their language. > > > After the user selects his/her language, the rest of the application > > > get translated to the selected language. > > > > > > I'm not talking about creating the translations... I already know how > > > to do that... This is assuming there is a translated version for the > > > listed languages. > > > > > > Anybody? > > > > Salut, > > > > one way is, all text to show, is stored in a Databasetable, only the > > text which is used before the DB is connected,is burned in, and in > > english. > > > > Here a simple form of that Table: > > lang is GB,FR,DE or so > > token is an unique token-key > > text is the text in the language, fix by lang > > > > So in Form_Open or so you m ake : > > > > PUBLIC SUB Form_Open() > > DIM rTest AS Result > > rTest = meConn.Handle.Find("tblLang", "token = &1 and lang = &2", > > "Label1",myLang) > > Label1.Text = rTest!Text > > rTest = meConn.Handle.Find("tblLang", "token = &1 and lang = &2", > > "Label2",myLang) > > Label2.Text = rTest!Text > > ...... and so on ..... > > END > > > > Do not forget all other texts use in messages, printouts and so on. > > My god... You have a Windows background, don't you? :-) > > Gambas has an integrated translation system based on the standard GNU tools. > No need to reinvent the wheel there. > > Anyway, here is a little demo of how to change the application language at > runtime: > > PUBLIC SUB Main() > > DIM sLang AS String > > DO > PRINT "Enter language code (fr, es, en...): "; > LINE INPUT sLang > System.Language = sLang > PRINT ("Hello") > LOOP > > END > > Of course, you must translate the "Hello" string in the IDE to see it > translated! > > Beware that strings are not translated "on the fly". If a form is opened, you > must destroy it and recreate it to see the new translations. In other words, > strings are translated when they are used. > Yes I know that gambas uses gettext. But I don't like, that we have to recompile after changes made in *.po files. From gambas at ...1... Wed Sep 24 13:28:27 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 24 Sep 2008 13:28:27 +0200 Subject: [Gambas-user] Applying translation to a running application In-Reply-To: <1222255427.6378.5.camel@...40...> References: <1f1e8c1b0809231043v127b2e70w19ef11bdfc0fa378@...627...> <200809232254.45109.gambas@...1...> <1222255427.6378.5.camel@...40...> Message-ID: <200809241328.27118.gambas@...1...> On mercredi 24 septembre 2008, Charlie Reinl wrote: > Am Dienstag, den 23.09.2008, 22:54 +0200 schrieb Benoit Minisini: > > On mardi 23 septembre 2008, Charlie Reinl wrote: > > > Am Dienstag, den 23.09.2008, 12:43 -0500 schrieb M0E Lnx: > > > > Can anyone think of a way to apply a translation to an application > > > > that's already running? > > > > > > > > An example would be a wizard that starts out in English, and at the > > > > first step offers the user to choose their language. > > > > After the user selects his/her language, the rest of the application > > > > get translated to the selected language. > > > > > > > > I'm not talking about creating the translations... I already know how > > > > to do that... This is assuming there is a translated version for the > > > > listed languages. > > > > > > > > Anybody? > > > > > > Salut, > > > > > > one way is, all text to show, is stored in a Databasetable, only the > > > text which is used before the DB is connected,is burned in, and in > > > english. > > > > > > Here a simple form of that Table: > > > lang is GB,FR,DE or so > > > token is an unique token-key > > > text is the text in the language, fix by lang > > > > > > So in Form_Open or so you m ake : > > > > > > PUBLIC SUB Form_Open() > > > DIM rTest AS Result > > > rTest = meConn.Handle.Find("tblLang", "token = &1 and lang = &2", > > > "Label1",myLang) > > > Label1.Text = rTest!Text > > > rTest = meConn.Handle.Find("tblLang", "token = &1 and lang = &2", > > > "Label2",myLang) > > > Label2.Text = rTest!Text > > > ...... and so on ..... > > > END > > > > > > Do not forget all other texts use in messages, printouts and so on. > > > > My god... You have a Windows background, don't you? :-) > > > > Gambas has an integrated translation system based on the standard GNU > > tools. No need to reinvent the wheel there. > > > > Anyway, here is a little demo of how to change the application language > > at runtime: > > > > PUBLIC SUB Main() > > > > DIM sLang AS String > > > > DO > > PRINT "Enter language code (fr, es, en...): "; > > LINE INPUT sLang > > System.Language = sLang > > PRINT ("Hello") > > LOOP > > > > END > > > > Of course, you must translate the "Hello" string in the IDE to see it > > translated! > > > > Beware that strings are not translated "on the fly". If a form is opened, > > you must destroy it and recreate it to see the new translations. In other > > words, strings are translated when they are used. > > Yes I know that gambas uses gettext. > But I don't like, that we have to recompile after changes made > in *.po files. > The IDE does everything for you, you don't see that. -- Benoit Minisini From gambas at ...1... Wed Sep 24 13:51:58 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 24 Sep 2008 13:51:58 +0200 Subject: [Gambas-user] A few questions In-Reply-To: <48DA0499.20001@...1909...> References: <48D945EB.6040304@...1909...> <200809232320.36379.gambas@...1...> <48DA0499.20001@...1909...> Message-ID: <200809241351.58535.gambas@...1...> On mercredi 24 septembre 2008, Doriano Blengino wrote: > Benoit Minisini ha scritto: > > On mardi 23 septembre 2008, Doriano Blengino wrote: > >> Hi, > >> > >> I am facing a series of little problems (gambas v. 2.0.0). > > > > You should use a more recent version of Gambas, otherwise what I will say > > may not work. > > Yes, this is true. But I installed the v2.7.xxx (debian repository) on > another machine to see if it had many improvements and, as far I could > see from a quick tour, there was nothing exiciting. I have to say that > my 2.0.0 is very stable... and I am happy with this unless I found a > bug. I prefer stability over everything else... ;-) > Don't trust only what you see. Look in the ChangeLog too! > > Sorry... I was talking about *not* to use an observer. I tried to > "object.attach()" fmPreview, and the result was that > fmPreview.form_open() didn't execute anymore. I understand this was > because I deviated, by mean of attach(), the events from fmPreview to > another place. But I was thinking that events directed *to* fmPreview > (such form_keypress, form_open and so on) took a different path than > those generated *from* fmPreview. > Alas no! > >> 3) I tried to instantiate an observer directly from fmPreview, instead > >> of the main program, and then object.attach() it to the main program, > >> but it didn't work. > > > > You cannot "Object.Attach() to the main program". A default observer > > (badly named Parent in Gambas) is not a program, but another object. > > > > In the case of a static class (a module), the observer is the class > > object. > > Yes, but... the instruction object.attach() was written inside the code > of a form, so it was belonging to a class. The Object.Attach() method does not depend on its context, contrary to the NEW instruction. > > My application is encapsulated pretty well, and it works smoothly. > It is encapsulated well because fmPreview does a lot of things, and the > only callback is the getpage event. > On the other side, the main program (ie, the form which needs to print) > only setups() fmPreview to pass the template name of the print, and > through "reply = fmPreview.ShowModal()" knows if the user aborted, > printed none, some, or all the pages. I cannot see a simpler way to do > this, but if someone knows, ...welcome! > When I will rework the Gambas printer system, I will make a Printer control that will emit events each time it needs a page to be drawn. This way, everything will be done "in background", and the UI won't be necessary blocked during the process. At the moment, you could make things a bit cleaner like that: * Make frmPreview raise a "GetPage" event. * Add a Register method in your frmPreview that takes an Object as argument. * In that Register method, creates an observer on the form (ME) and attach it to the form (ME) to the argument. This way, the argument will receive the GetPage event (and other form events if it wants, but don't tell him). * You can create a Unregister method too. This is the same method as you did, but it is cleaner to write as you just have to Register/Unregister outside of frmPreview. If you want to use the preview from a module named Module1, the following should work: frmPreview.Register(Module1). Then the register method should receive the Module1 class object, which can be used as any other object for registering. Tell me if it works! > >> 5) Does TableView raise keypress events when in edit mode? I see > >> nothing, but I would need it to do certain things. Is there another way > >> to do a controlled editing in a tableview? > > > > TableView is made in Gambas, so you just have to look at the sources in > > gb.form to understand how it works. It mainly inherits GridView and uses > > Observers (and the Watcher class) to do its job. > > > > And, no, you won't see the keyboard events while editing, as they are > > caught by the internal editor widget. In that specific case, we could > > imagine adding a property to get a reference on the editor widget so that > > you can put your own event observer on it to catch the keyboard events. > > In the meantime I realized that. But I didn't want to replicate all the > code to position a textbox in the right place, set the focus on it, > implement xxx_data() and friends. But I could reimplement TableView in > my application, inherit all, and only add a property which contains the > editor widget reference needed to catch its keypress event... could be... > > Many thanks. In my experiments I tried a code snippet like this: > > DIM sName as string > > sName = "test" > ... > hSomething = new SomethingElse(ME) as sName > > > but the compiler complains about sName being an "unknown identifier". Is > this the intended behaviour, ie the AS clause wants a literal, or > something else? > > Regards, > Doriano Blengino > The Gambas parser is guilty: as soon as it gets an "AS" keyword, it expects a class identifier after. The compiler then complains shortly later, whereas theoritically that syntax could compile without problem. I admit that the message error is not very accurate there, it should be "unknown class identifier". Anyway, for doing special things, you can use Object.Attach()! Regards, -- Benoit Minisini From gambas at ...1... Wed Sep 24 13:53:31 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 24 Sep 2008 13:53:31 +0200 Subject: [Gambas-user] Tooltips in Console In-Reply-To: <61452b690809240147u30409bb3ue8a1336e98d175ae@...627...> References: <61452b690809240147u30409bb3ue8a1336e98d175ae@...627...> Message-ID: <200809241353.32011.gambas@...1...> On mercredi 24 septembre 2008, Kari Laine wrote: > This is at the same time test whether SourceForge have problems with > messages sent from Gmail-account. > > There is a little error in tooltips in Console window. The search-buttons > tooltip is Paste. > Also in UnDocked Console the Dock-Button's tooltip is "Undock Console" > > Those are not nothing big but I thought I report it. > > Best Regards > Kari Laine I fixed the find button tooltip, but the undock button has the right one, it is a toggle. Regards, -- Benoit Minisini From m0e.lnx at ...626... Wed Sep 24 14:30:50 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Wed, 24 Sep 2008 07:30:50 -0500 Subject: [Gambas-user] Applying translation to a running application In-Reply-To: <200809241328.27118.gambas@...1...> References: <1f1e8c1b0809231043v127b2e70w19ef11bdfc0fa378@...627...> <200809232254.45109.gambas@...1...> <1222255427.6378.5.camel@...40...> <200809241328.27118.gambas@...1...> Message-ID: <1f1e8c1b0809240530l378b82f3l59a92c3fbf33ab5e@...627...> What I meant was, since you said the ob jects need to be destroyed and then re-created for the translation to be picked up.. How do I destroy the objects and create them again? I tried closing the form and opening it again, but that comes up with all kinds of errors at runtime. On Wed, Sep 24, 2008 at 6:28 AM, Benoit Minisini wrote: > On mercredi 24 septembre 2008, Charlie Reinl wrote: >> Am Dienstag, den 23.09.2008, 22:54 +0200 schrieb Benoit Minisini: >> > On mardi 23 septembre 2008, Charlie Reinl wrote: >> > > Am Dienstag, den 23.09.2008, 12:43 -0500 schrieb M0E Lnx: >> > > > Can anyone think of a way to apply a translation to an application >> > > > that's already running? >> > > > >> > > > An example would be a wizard that starts out in English, and at the >> > > > first step offers the user to choose their language. >> > > > After the user selects his/her language, the rest of the application >> > > > get translated to the selected language. >> > > > >> > > > I'm not talking about creating the translations... I already know how >> > > > to do that... This is assuming there is a translated version for the >> > > > listed languages. >> > > > >> > > > Anybody? >> > > >> > > Salut, >> > > >> > > one way is, all text to show, is stored in a Databasetable, only the >> > > text which is used before the DB is connected,is burned in, and in >> > > english. >> > > >> > > Here a simple form of that Table: >> > > lang is GB,FR,DE or so >> > > token is an unique token-key >> > > text is the text in the language, fix by lang >> > > >> > > So in Form_Open or so you m ake : >> > > >> > > PUBLIC SUB Form_Open() >> > > DIM rTest AS Result >> > > rTest = meConn.Handle.Find("tblLang", "token = &1 and lang = &2", >> > > "Label1",myLang) >> > > Label1.Text = rTest!Text >> > > rTest = meConn.Handle.Find("tblLang", "token = &1 and lang = &2", >> > > "Label2",myLang) >> > > Label2.Text = rTest!Text >> > > ...... and so on ..... >> > > END >> > > >> > > Do not forget all other texts use in messages, printouts and so on. >> > >> > My god... You have a Windows background, don't you? :-) >> > >> > Gambas has an integrated translation system based on the standard GNU >> > tools. No need to reinvent the wheel there. >> > >> > Anyway, here is a little demo of how to change the application language >> > at runtime: >> > >> > PUBLIC SUB Main() >> > >> > DIM sLang AS String >> > >> > DO >> > PRINT "Enter language code (fr, es, en...): "; >> > LINE INPUT sLang >> > System.Language = sLang >> > PRINT ("Hello") >> > LOOP >> > >> > END >> > >> > Of course, you must translate the "Hello" string in the IDE to see it >> > translated! >> > >> > Beware that strings are not translated "on the fly". If a form is opened, >> > you must destroy it and recreate it to see the new translations. In other >> > words, strings are translated when they are used. >> >> Yes I know that gambas uses gettext. >> But I don't like, that we have to recompile after changes made >> in *.po files. >> > > The IDE does everything for you, you don't see that. > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Wed Sep 24 14:55:25 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 24 Sep 2008 14:55:25 +0200 Subject: [Gambas-user] Applying translation to a running application In-Reply-To: <1f1e8c1b0809240530l378b82f3l59a92c3fbf33ab5e@...627...> References: <1f1e8c1b0809231043v127b2e70w19ef11bdfc0fa378@...627...> <200809241328.27118.gambas@...1...> <1f1e8c1b0809240530l378b82f3l59a92c3fbf33ab5e@...627...> Message-ID: <200809241455.25098.gambas@...1...> On mercredi 24 septembre 2008, M0E Lnx wrote: > What I meant was, since you said the ob jects need to be destroyed and > then re-created for the translation to be picked up.. > > How do I destroy the objects and create them again? I tried closing > the form and opening it again, but that comes up with all kinds of > errors at runtime. > It should not. Check first that your form is not persistent. Anyway, you can use the Delete method to delete the form, then release all references on it. -- Benoit Minisini From m0e.lnx at ...626... Wed Sep 24 15:18:42 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Wed, 24 Sep 2008 08:18:42 -0500 Subject: [Gambas-user] Applying translation to a running application In-Reply-To: <200809241455.25098.gambas@...1...> References: <1f1e8c1b0809231043v127b2e70w19ef11bdfc0fa378@...627...> <200809241328.27118.gambas@...1...> <1f1e8c1b0809240530l378b82f3l59a92c3fbf33ab5e@...627...> <200809241455.25098.gambas@...1...> Message-ID: <1f1e8c1b0809240618v5f98931w90d88e8dfc5a2f1c@...627...> I think I have managed to get it somehow... but not sure it's the correct method Button1_Click() System.Language = Me.ID_LANG(trim(Listbox1.text)) ' This is a function that returns a language code en_US, es_ES, etc me.delete wait 1 FrmLangSel.Showmodal ' only the showmodal method seems to load the form again after the change. END I have tried to use the show method again, but it returns a signal 11 error. Are there any consequences that may come from using the showmodal method instead of the show? On Wed, Sep 24, 2008 at 7:55 AM, Benoit Minisini wrote: > On mercredi 24 septembre 2008, M0E Lnx wrote: >> What I meant was, since you said the ob jects need to be destroyed and >> then re-created for the translation to be picked up.. >> >> How do I destroy the objects and create them again? I tried closing >> the form and opening it again, but that comes up with all kinds of >> errors at runtime. >> > > It should not. Check first that your form is not persistent. Anyway, you can > use the Delete method to delete the form, then release all references on it. > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From almanova at ...1228... Wed Sep 24 15:40:53 2008 From: almanova at ...1228... (Almanova Sistemi) Date: Wed, 24 Sep 2008 15:40:53 +0200 Subject: [Gambas-user] How to lock a file In-Reply-To: <200805211436.55295.gambas@...1...> References: <48340400.5060302@...1740...> <200805211326.26100.gambas@...1...> <483410FB.3010302@...1740...> <200805211436.55295.gambas@...1...> Message-ID: <48DA4365.7020806@...1228...> Hi, I have a problem with LOCK I am writing an application in gambas (2.7.0-2.1) on opensuse 10.3 - 11.0 and I need to lock a file after open it. My code: ... DIM hfile as File DIM sNameFile as String sNameFile = "SomeFile" hfile = OPEN sNameFile FOR INPUT OUTPUT TRY LOCK hfile IF ERROR then ... ENDIF LINE INPUT #hfile, MyVar UNLOCK hfile CLOSE #hfile ... When I execute it I get the following messge: Useless LOCK in line ... I obtain the same result also with: hfile = OPEN sNameFile FOR READ WRITE Why ? Regards, Massimo. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From m0e.lnx at ...626... Wed Sep 24 16:02:24 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Wed, 24 Sep 2008 09:02:24 -0500 Subject: [Gambas-user] Project translation from IDE Message-ID: <1f1e8c1b0809240702r7fcd9018r5491afd2e897a3eb@...627...> So, I'm trying to add support for translations in my application.... the IDE offers the translate window that helps in the translation to generate the .po and .mo files But here is my problem. It seems to not be searching for strings in the classes or modules. It's only picking up the .text property of the objects drawn into forms. THis is a problem when you have objects that get created at runtime from conditional statements, and also for your error/warning/info messages to the user Is there a way to make the IDE pull every string in the project rather than just the .text property of each object? From gambas at ...1... Wed Sep 24 16:09:46 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 24 Sep 2008 16:09:46 +0200 Subject: [Gambas-user] Applying translation to a running application In-Reply-To: <1f1e8c1b0809240618v5f98931w90d88e8dfc5a2f1c@...627...> References: <1f1e8c1b0809231043v127b2e70w19ef11bdfc0fa378@...627...> <200809241455.25098.gambas@...1...> <1f1e8c1b0809240618v5f98931w90d88e8dfc5a2f1c@...627...> Message-ID: <200809241609.46412.gambas@...1...> On mercredi 24 septembre 2008, M0E Lnx wrote: > I think I have managed to get it somehow... but not sure it's the correct > method > > Button1_Click() > System.Language = Me.ID_LANG(trim(Listbox1.text)) ' This is a function > that returns a language code en_US, es_ES, etc > me.delete > wait 1 > FrmLangSel.Showmodal ' only the showmodal method seems to load the > form again after the change. > END > > I have tried to use the show method again, but it returns a signal 11 > error. Are there any consequences that may come from using the showmodal > method instead of the show? > If you get a signal #11, it is a bug in Gambas. So you should send me the code so that I can fix it! -- Benoit Minisini From gambas at ...1... Wed Sep 24 16:10:32 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 24 Sep 2008 16:10:32 +0200 Subject: [Gambas-user] Project translation from IDE In-Reply-To: <1f1e8c1b0809240702r7fcd9018r5491afd2e897a3eb@...627...> References: <1f1e8c1b0809240702r7fcd9018r5491afd2e897a3eb@...627...> Message-ID: <200809241610.32273.gambas@...1...> On mercredi 24 septembre 2008, M0E Lnx wrote: > So, I'm trying to add support for translations in my application.... > the IDE offers the translate window that helps in the translation to > generate the .po and .mo files > > But here is my problem. It seems to not be searching for strings in > the classes or modules. It's only picking up the .text property of the > objects drawn into forms. > > THis is a problem when you have objects that get created at runtime > from conditional statements, and also for your error/warning/info > messages to the user > > Is there a way to make the IDE pull every string in the project rather > than just the .text property of each object? > Strings that must be translated must be put between braces: PRINT "Do not translate me" PRINT ("Translate me") Regards, -- Benoit Minisini From kari.laine at ...1400... Wed Sep 24 17:00:22 2008 From: kari.laine at ...1400... (Kari Laine) Date: Wed, 24 Sep 2008 18:00:22 +0300 Subject: [Gambas-user] Short Question about gb.form Message-ID: <48DA5606.8050809@...1400...> Hi, I am not able to figure out how the FMain-form class have been made in Gambas-editor. FMain contains one control FileChooser. How it has been selected to Form? Suppose I would like to make my own form KLForm1 and have FileChooser component on that - how to make it - please advice? Best Regards Kari Laine From wspinto at ...1405... Wed Sep 24 17:11:14 2008 From: wspinto at ...1405... (Wellington de Souza Pinto) Date: Wed, 24 Sep 2008 12:11:14 -0300 Subject: [Gambas-user] TabStrib Bug (?!?!?!?) In-Reply-To: References: Message-ID: <1222269074.48da5892be312@...1406...> Hi Benoit! I'm using gambas3 from svn. I create form with one checkbox, and this checkbox controled the tabstrib index. My TabStrib (tbsDados.count = 2). My CheckBox (chbJuridica.Value = FALSE) In index 0 put any controls, and in index 1 put anothers controls. When i click in Checkbox the TabStrip not show another intens in [1] only show the [0]. Is easy make this test. Below my Subs. Public Sub Form_Open() tbsDados[0].Visible = Not (chbJuridica.Value) tbsDados[1].Visible = (chbJuridica.Value) End Public Sub chbJuridica_Click() tbsDados[0].Visible = Not (chbJuridica.Value) tbsDados[1].Visible = (chbJuridica.Value) End Reguards, ___________________________________________________________________________________ Para fazer uma liga??o DDD pra perto ou pra longe, faz um 21. A Embratel tem tarifas muito baratas esperando por voc?. Aproveite! From gambas at ...1... Wed Sep 24 17:21:32 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 24 Sep 2008 17:21:32 +0200 Subject: [Gambas-user] TabStrib Bug (?!?!?!?) In-Reply-To: <1222269074.48da5892be312@...1406...> References: <1222269074.48da5892be312@...1406...> Message-ID: <200809241721.32364.gambas@...1...> On mercredi 24 septembre 2008, Wellington de Souza Pinto wrote: > Hi Benoit! > > I'm using gambas3 from svn. > > I create form with one checkbox, and this checkbox controled the tabstrib > index. > > My TabStrib (tbsDados.count = 2). > My CheckBox (chbJuridica.Value = FALSE) > In index 0 put any controls, and in index 1 put anothers controls. > > When i click in Checkbox the TabStrip not show another intens in [1] only > show the [0]. > > Is easy make this test. Below my Subs. > > Public Sub Form_Open() > > tbsDados[0].Visible = Not (chbJuridica.Value) > tbsDados[1].Visible = (chbJuridica.Value) > > End > > Public Sub chbJuridica_Click() > > tbsDados[0].Visible = Not (chbJuridica.Value) > tbsDados[1].Visible = (chbJuridica.Value) > > End > > > Reguards, > I think at least one tab must be visible. Check that you don't hide all tabs at one moment. Regards, -- Benoit Minisini From klaine8 at ...626... Wed Sep 24 19:20:06 2008 From: klaine8 at ...626... (Kari Laine) Date: Wed, 24 Sep 2008 20:20:06 +0300 Subject: [Gambas-user] Short Question about gb.form In-Reply-To: <48DA5606.8050809@...1400...> References: <48DA5606.8050809@...1400...> Message-ID: <61452b690809241020m31829344l732a1a06fe6ef2d5@...627...> On Wed, Sep 24, 2008 at 6:00 PM, Kari Laine wrote: > Hi, > > I am not able to figure out how the FMain-form class have been made in > Gambas-editor. > FMain contains one control FileChooser. How it has been selected to Form? > Suppose I would like to make my own form KLForm1 and have FileChooser > component on that - how to make it - please advice? > > Benoit, if you have time.... It was easy to create it outside Gambas but I don't know how to make it in IDE. Btw Gambas seems not to refresh itself if files are added outside IDE. Best Regards Kari From m0e.lnx at ...626... Wed Sep 24 20:08:28 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Wed, 24 Sep 2008 12:08:28 -0600 Subject: [Gambas-user] Applying translation to a running application In-Reply-To: <200809241609.46412.gambas@...1...> References: <1f1e8c1b0809231043v127b2e70w19ef11bdfc0fa378@...627...> <200809241455.25098.gambas@...1...> <1f1e8c1b0809240618v5f98931w90d88e8dfc5a2f1c@...627...> <200809241609.46412.gambas@...1...> Message-ID: <1f1e8c1b0809241108m43e071e5g1659e02ed8063430@...627...> I'm sorry... but I dont think I'm doing this right. Here is a smaller project that reflects what I need it to do on my bigger project (can't attach that one because it's hughe) Can someone make the changes necessary to make the shown form translate with the click of the button in this form? Thanks On 9/24/08, Benoit Minisini wrote: > On mercredi 24 septembre 2008, M0E Lnx wrote: > > > I think I have managed to get it somehow... but not sure it's the correct > > method > > > > Button1_Click() > > System.Language = Me.ID_LANG(trim(Listbox1.text)) ' This is a function > > that returns a language code en_US, es_ES, etc > > me.delete > > wait 1 > > FrmLangSel.Showmodal ' only the showmodal method seems to load the > > form again after the change. > > END > > > > I have tried to use the show method again, but it returns a signal 11 > > error. Are there any consequences that may come from using the showmodal > > method instead of the show? > > > > > If you get a signal #11, it is a bug in Gambas. So you should send me the code > so that I can fix it! > > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -------------- next part -------------- A non-text attachment was scrubbed... Name: LANG-0.0.1.tar.gz Type: application/x-gzip Size: 8359 bytes Desc: not available URL: From doriano.blengino at ...1909... Wed Sep 24 20:30:18 2008 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Wed, 24 Sep 2008 20:30:18 +0200 Subject: [Gambas-user] A few questions In-Reply-To: <200809241351.58535.gambas@...1...> References: <48D945EB.6040304@...1909...> <200809232320.36379.gambas@...1...> <48DA0499.20001@...1909...> <200809241351.58535.gambas@...1...> Message-ID: <48DA873A.6030006@...1909...> Benoit Minisini ha scritto: > On mercredi 24 septembre 2008, Doriano Blengino wrote: > >> Yes, this is true. But I installed the v2.7.xxx (debian repository) on >> another machine to see if it had many improvements and, as far I could >> see from a quick tour, there was nothing exiciting. I have to say that >> my 2.0.0 is very stable... and I am happy with this unless I found a >> bug. I prefer stability over everything else... ;- > Don't trust only what you see. Look in the ChangeLog too! > I will do it (this is the same thing I continuosly say to my wife...) >> Sorry... I was talking about *not* to use an observer. I tried to >> "object.attach()" fmPreview, and the result was that >> fmPreview.form_open() didn't execute anymore. I understand this was >> because I deviated, by mean of attach(), the events from fmPreview to >> another place. But I was thinking that events directed *to* fmPreview >> (such form_keypress, form_open and so on) took a different path than >> those generated *from* fmPreview. >> > Alas no! > Does "Alas no!" mean "it is not so", or "instead it is not so"? I suppose yes. >>>> 3) I tried to instantiate an observer directly from fmPreview, instead >>>> of the main program, and then object.attach() it to the main program, >>>> but it didn't work. >>>> >>> You cannot "Object.Attach() to the main program". A default observer >>> (badly named Parent in Gambas) is not a program, but another object. >>> >>> In the case of a static class (a module), the observer is the class >>> object. >>> >> Yes, but... the instruction object.attach() was written inside the code >> of a form, so it was belonging to a class. >> > > The Object.Attach() method does not depend on its context, contrary to the NEW > instruction. > I can not catch the point. It seems to me that I can use object.attach() everywhere, because in its parameters: STATIC SUB *Attach* ( _Object_ AS Object, _Parent_ AS Object, _Name_ AS String ) ...I specify the object to steal events from (Object), to which listener/observer send those events to (Parent), and the name the handlers begin with. But I suppose that if Name is "test", the compiler looks for "test_xxx()" methods in the class currently being compiled (or currently being running), otherwise what the heck could it do? So I deduce object.attach() depends on its context, in the sense "it depends in which class the instruction attach() is compiled". Forget the saying "main program"... it was an unhappy way to mean "the rest of the program"... >> My application is encapsulated pretty well, and it works smoothly. >> It is encapsulated well because fmPreview does a lot of things, and the >> only callback is the getpage event. >> On the other side, the main program (ie, the form which needs to print) >> only setups() fmPreview to pass the template name of the print, and >> through "reply = fmPreview.ShowModal()" knows if the user aborted, >> printed none, some, or all the pages. I cannot see a simpler way to do >> this, but if someone knows, ...welcome! >> > > When I will rework the Gambas printer system, I will make a Printer control > that will emit events each time it needs a page to be drawn. This way, > everything will be done "in background", and the UI won't be necessary > blocked during the process. > I did exactly so. The application is not blocked but, because of the ShowModal(), the main program (eh eh eh...) cannot continue. This is by design, because of legal concerns. > At the moment, you could make things a bit cleaner like that: > > * Make frmPreview raise a "GetPage" event. > Already done this way. > * Add a Register method in your frmPreview that takes an Object as argument. > That was exactly what I wanted to do... > * In that Register method, creates an observer on the form (ME) and attach it > to the form (ME) to the argument. This way, the argument will receive the > GetPage event (and other form events if it wants, but don't tell him). > So I should write: obs = new observer(me) AS parameter_of_sub This is a little inconsistent with the syntax '...as "whatever"'. I will see if it works. > * You can create a Unregister method too. > > This is the same method as you did, but it is cleaner to write as you just > have to Register/Unregister outside of frmPreview. > I would do this thing inside fmPreview.Close(), just as now. If it works, this is what I wanted - call all the printing with a single instruction. > If you want to use the preview from a module named Module1, the following > should work: > > frmPreview.Register(Module1). > > Then the register method should receive the Module1 class object, which can be > used as any other object for registering. > > Tell me if it works! > Yes, I will do. > The Gambas parser is guilty: as soon as it gets an "AS" keyword, it > expects a > class identifier after. The compiler then complains shortly later, whereas > theoritically that syntax could compile without problem. > Same as before - does the "var = new .... AS xxxx" expect xxxx to be a literal string, any string expression, or a class name? Anyway I will inspect. Many thanks for the moment, I will send news to you. Best regards, Doriano Blengino From gambas at ...1... Thu Sep 25 01:19:25 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 25 Sep 2008 01:19:25 +0200 Subject: [Gambas-user] Short Question about gb.form In-Reply-To: <61452b690809241020m31829344l732a1a06fe6ef2d5@...627...> References: <48DA5606.8050809@...1400...> <61452b690809241020m31829344l732a1a06fe6ef2d5@...627...> Message-ID: <200809250119.25763.gambas@...1...> On mercredi 24 septembre 2008, Kari Laine wrote: > On Wed, Sep 24, 2008 at 6:00 PM, Kari Laine wrote: > > Hi, > > > > I am not able to figure out how the FMain-form class have been made in > > Gambas-editor. > > FMain contains one control FileChooser. How it has been selected to Form? > > Suppose I would like to make my own form KLForm1 and have FileChooser > > component on that - how to make it - please advice? > > > > Benoit, > > if you have time.... It was easy to create it outside Gambas but I don't > know how to make it in IDE. Btw Gambas seems not to refresh itself if files > are added outside IDE. > > Best Regards > Kari Yep. You must click on the "Refresh" button for that. -- Benoit Minisini From gambas at ...1... Thu Sep 25 01:26:20 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 25 Sep 2008 01:26:20 +0200 Subject: [Gambas-user] A few questions In-Reply-To: <48DA873A.6030006@...1909...> References: <48D945EB.6040304@...1909...> <200809241351.58535.gambas@...1...> <48DA873A.6030006@...1909...> Message-ID: <200809250126.20338.gambas@...1...> On mercredi 24 septembre 2008, Doriano Blengino wrote: > > > > The Object.Attach() method does not depend on its context, contrary to > > the NEW instruction. > > I can not catch the point. It seems to me that I can use object.attach() > everywhere, because in its parameters: > > STATIC SUB *Attach* ( _Object_ AS Object, _Parent_ AS Object, _Name_ AS > String ) > > ...I specify the object to steal events from (Object), to which > listener/observer send those events to (Parent), and the name the > handlers begin with. But I suppose that if Name is "test", the compiler > looks for "test_xxx()" methods in the class currently being compiled (or > currently being running), otherwise what the heck could it do? > So I > deduce object.attach() depends on its context, in the sense "it depends > in which class the instruction attach() is compiled". > Forget the saying "main program"... it was an unhappy way to mean "the > rest of the program"... > No. Object.Attach() will send events raise by 'Object' to 'Parent', by using 'Name' as event handler prefix. So it does not depend on the context. The same Attach() call will always do the same thing whereever it is run. > > * Make frmPreview raise a "GetPage" event. > > Already done this way. > > > * Add a Register method in your frmPreview that takes an Object as > > argument. > > That was exactly what I wanted to do... > > > * In that Register method, creates an observer on the form (ME) and > > attach it to the form (ME) to the argument. This way, the argument will > > receive the GetPage event (and other form events if it wants, but don't > > tell him). > > So I should write: > > obs = new observer(me) AS parameter_of_sub > > This is a little inconsistent with the syntax '...as "whatever"'. I will > see if it works. No. My sentence was incorrect! You will write: PRIVATE $hObs AS Observer PUBLIC SUB Register(hObject AS Object) $hObs = NEW Observer(ME) Object.Attach($hObs, hObject, "whatever") END PUBLIC SUB Unregister(hObject AS Object) Object.Detach($hObs) $hObs = NULL END You can have only one registered object simultaneously, but it should not matter for your use of that. > > Same as before - does the "var = new .... AS xxxx" expect xxxx to be a > literal string, any string expression, or a class name? Anyway I will > inspect. Theoritically, any string expression should be possible. Practically, only use a string litteral! Regards, -- Benoit Minisini From gambas at ...1... Thu Sep 25 01:31:09 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 25 Sep 2008 01:31:09 +0200 Subject: [Gambas-user] Applying translation to a running application In-Reply-To: <1f1e8c1b0809241108m43e071e5g1659e02ed8063430@...627...> References: <1f1e8c1b0809231043v127b2e70w19ef11bdfc0fa378@...627...> <200809241609.46412.gambas@...1...> <1f1e8c1b0809241108m43e071e5g1659e02ed8063430@...627...> Message-ID: <200809250131.09991.gambas@...1...> On mercredi 24 septembre 2008, M0E Lnx wrote: > I'm sorry... but I dont think I'm doing this right. > > Here is a smaller project that reflects what I need it to do on my > bigger project (can't attach that one because it's hughe) > > Can someone make the changes necessary to make the shown form > translate with the click of the button in this form? > > Thanks > Can I use this project to get the crash? What should I do? -- Benoit Minisini From doriano.blengino at ...1909... Thu Sep 25 08:45:20 2008 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Thu, 25 Sep 2008 08:45:20 +0200 Subject: [Gambas-user] A few questions In-Reply-To: <200809250126.20338.gambas@...1...> References: <48D945EB.6040304@...1909...> <200809241351.58535.gambas@...1...> <48DA873A.6030006@...1909...> <200809250126.20338.gambas@...1...> Message-ID: <48DB3380.3010508@...1909...> Benoit Minisini ha scritto: > On mercredi 24 septembre 2008, Doriano Blengino wrote: > >> STATIC SUB *Attach* ( _Object_ AS Object, _Parent_ AS Object, _Name_ AS >> String ) >> >> "it depends >> in which class the instruction attach() is compiled". >> > No. Object.Attach() will send events raise by 'Object' to 'Parent', by > using 'Name' as event handler prefix. So it does not depend on the context. > The same Attach() call will always do the same thing whereever it is run. > You are right. The search about method names is performed on Parent. > PRIVATE $hObs AS Observer > > PUBLIC SUB Register(hObject AS Object) > > $hObs = NEW Observer(ME) > Object.Attach($hObs, hObject, "whatever") > > END > I tried, but the GetPage event does not reach the calling form (but my gambas version is 2.0.0). I have no time now, but this evening I will send you a project to try yourself, if you want. In theory, this is straightforward: by creating an observer, and attaching it somewhere else, that "else" should receive events. It seems instead that this does not work. The problem is, that it is difficult to understand where events go, if they are there. I mean, after doing your suggested modification, and stepping through "raise getPage", I see no handlers are called, but I can no more see the $hObs internal behaviour. May be a "$hObs.debug=true", or the possibility to do "print $hObs.Parent" could help. > You can have only one registered object simultaneously, but it should not > matter for your use of that. > Yes, I want only one object registered (think at having two print processes which print on the same page... ah ah ah...). But if this should be wanted, then a new observer on top on the current observer could work... Best regards, Doriano Blengino From rterry at ...1946... Thu Sep 25 08:54:43 2008 From: rterry at ...1946... (richard terry) Date: Thu, 25 Sep 2008 16:54:43 +1000 Subject: [Gambas-user] IDE bug: Click on text > cursor wrong position Message-ID: <200809251654.43726.rterry@...1946...> Build 1593. Just to let you know this is happening. This has been happening for the last few builds. Its inconsistant but what happens is if one clicks on a line of text the cursor dosn't go to where one clicks, but sometimes up to six or more characters to the left. Affects copy/paste as well, is click over where you want to copy or cut, and do a sweep with mouse > highlights the wrong bit of text Regards Richard From gambas at ...1... Thu Sep 25 11:58:48 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 25 Sep 2008 11:58:48 +0200 Subject: [Gambas-user] IDE bug: Click on text > cursor wrong position In-Reply-To: <200809251654.43726.rterry@...1946...> References: <200809251654.43726.rterry@...1946...> Message-ID: <200809251158.49183.gambas@...1...> On jeudi 25 septembre 2008, richard terry wrote: > Build 1593. > > Just to let you know this is happening. > > This has been happening for the last few builds. Its inconsistant but what > happens is if one clicks on a line of text the cursor dosn't go to where > one clicks, but sometimes up to six or more characters to the left. Affects > copy/paste as well, is click over where you want to copy or cut, and do a > sweep with mouse > highlights the wrong bit of text > > Regards > > Richard > Can you try the latest revision, there is some Editor-related fix in it. Regards, -- Benoit Minisini From m0e.lnx at ...626... Thu Sep 25 14:35:35 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Thu, 25 Sep 2008 07:35:35 -0500 Subject: [Gambas-user] Applying translation to a running application In-Reply-To: <200809250131.09991.gambas@...1...> References: <1f1e8c1b0809231043v127b2e70w19ef11bdfc0fa378@...627...> <200809241609.46412.gambas@...1...> <1f1e8c1b0809241108m43e071e5g1659e02ed8063430@...627...> <200809250131.09991.gambas@...1...> Message-ID: <1f1e8c1b0809250535h64205e67pb80700ecd7529a65@...627...> On the form buttons click() event change the code to this system.Language = trim(listbox1.text) me.close wait 1 FMain.show That will crash it with a signal 11 On Wed, Sep 24, 2008 at 6:31 PM, Benoit Minisini wrote: > On mercredi 24 septembre 2008, M0E Lnx wrote: >> I'm sorry... but I dont think I'm doing this right. >> >> Here is a smaller project that reflects what I need it to do on my >> bigger project (can't attach that one because it's hughe) >> >> Can someone make the changes necessary to make the shown form >> translate with the click of the button in this form? >> >> Thanks >> > > Can I use this project to get the crash? What should I do? > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From kari.laine at ...1400... Thu Sep 25 15:15:37 2008 From: kari.laine at ...1400... (Kari Laine) Date: Thu, 25 Sep 2008 16:15:37 +0300 Subject: [Gambas-user] gb.form Message-ID: <48DB8EF9.9010405@...1400...> I am studying gb.form I can't figure out how the stock.class _get gets called. Could someone tell me please? Best Regards Kari Laine From m0e.lnx at ...626... Thu Sep 25 16:36:28 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Thu, 25 Sep 2008 09:36:28 -0500 Subject: [Gambas-user] destroying and re-creating objects in a form Message-ID: <1f1e8c1b0809250736ya616e8ft5c5ede4d3978beb8@...627...> I have a form with buttons, textlabels, and the like. Is there a way to destroy these objects and then re-create them? I was told on another thread about translations that for translations to take effect this needs to be done.... I have tried the object's delete methods, that indeed destroys the object... but I dont know how to get it back with it's new properties now Please help From klaine8 at ...626... Thu Sep 25 20:03:10 2008 From: klaine8 at ...626... (Kari Laine) Date: Thu, 25 Sep 2008 21:03:10 +0300 Subject: [Gambas-user] gb.form In-Reply-To: <48DB8EF9.9010405@...1400...> References: <48DB8EF9.9010405@...1400...> Message-ID: <61452b690809251103x6d031a4dgebc9a990e6e8e2f2@...627...> On Thu, Sep 25, 2008 at 4:15 PM, Kari Laine wrote: > I am studying gb.form > I can't figure out how the stock.class _get gets called. > > Could someone tell me please? > > I figure out how _put and _get works - I think. If example included with this post is wrong let me know. I post it here cause it might help someone. Best Regards Kari Laine -------------- next part -------------- A non-text attachment was scrubbed... Name: example_put_get.tar.gz Type: application/x-gzip Size: 7850 bytes Desc: not available URL: From kari.laine at ...1400... Thu Sep 25 23:53:18 2008 From: kari.laine at ...1400... (Kari Laine) Date: Fri, 26 Sep 2008 00:53:18 +0300 Subject: [Gambas-user] EXPORT and INHERITANCE Message-ID: <48DC084E.5000204@...1400...> Hi, still learning gb.form What conceptual difference has the following FileView ---------------------------- INHERITS UserControl EXPORT ---------------------------- DirView ---------------------------- EXPORT INHERITS UserControl ---------------------------- I noticed that _new is not called in DirView. But what's the real difference in these two cases? I also cannot still figure out how Stock-classes _get function gets called. Does Gambas call it for some reason? If so how it knows to call it in Stock-class? Best Regards Kari Laine From gambas at ...1... Fri Sep 26 00:09:48 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 26 Sep 2008 00:09:48 +0200 Subject: [Gambas-user] EXPORT and INHERITANCE In-Reply-To: <48DC084E.5000204@...1400...> References: <48DC084E.5000204@...1400...> Message-ID: <200809260009.48279.gambas@...1...> On jeudi 25 septembre 2008, Kari Laine wrote: > Hi, > > still learning gb.form > What conceptual difference has the following > > FileView > ---------------------------- > INHERITS UserControl > EXPORT > ---------------------------- > > DirView > ---------------------------- > EXPORT > INHERITS UserControl > ---------------------------- No difference. > > I noticed that _new is not called in DirView. But what's the real > difference in these two cases? Are you sure? _new() is always called when an object is created. The _new() calls follow an algorithm depicted in the "Gambas object model" wiki page. > > I also cannot still figure out how Stock-classes _get function gets > called. Does Gambas call it for some reason? If so how it knows to call > it in Stock-class? It is called from the C++ code of the GUI component by the Picture class. When you call Picture["icon:/XXX"], the Picture class calls Stock[] in return. There is one step more in gb.gtk, because GTK+ has an internal icon stock, whereas QT does not. Why do you want to know that? -- Benoit Minisini From gambas at ...1... Fri Sep 26 00:32:10 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 26 Sep 2008 00:32:10 +0200 Subject: [Gambas-user] destroying and re-creating objects in a form In-Reply-To: <1f1e8c1b0809250736ya616e8ft5c5ede4d3978beb8@...627...> References: <1f1e8c1b0809250736ya616e8ft5c5ede4d3978beb8@...627...> Message-ID: <200809260032.10792.gambas@...1...> On jeudi 25 septembre 2008, M0E Lnx wrote: > I have a form with buttons, textlabels, and the like. > > Is there a way to destroy these objects and then re-create them? > I was told on another thread about translations that for translations > to take effect this needs to be done.... > > I have tried the object's delete methods, that indeed destroys the > object... but I dont know how to get it back with it's new properties > now > > Please help > Hi, I have committed some changes in revision #1600 that fixes the crash you encountered. Now, during the FMain.Button1_Click event handler, you can do the following safely: System.Language = ... ME.Delete FMain.Show The WAIT is not needed anymore, as now the deleted forms become immediately invalid, and so the call to FMain.Show recreates a new one (with the new translations). Regards, -- Benoit Minisini From Scott.Hayes at ...1981... Fri Sep 26 00:44:21 2008 From: Scott.Hayes at ...1981... (Scott Hayes) Date: Thu, 25 Sep 2008 18:44:21 -0400 Subject: [Gambas-user] Advanced tutorials Message-ID: <48DC1445.3070800@...1981...> Hi everyone, I had used Visual Basic since it came out as version 1. Stopped with version six because I moved to Linux, great move as far as I'm concerned. I have just installed Gambas and I'm in love. I have been doing well so far but I am looking for more advanced tutorials, all I can find is the beginner tuts. Nothing in specific just want to be able to take Gambas to the next level. Also, I trying to come up with a project to do, I'm aving Brain Farts and can't come up with any ideas. Can you help. Scott -- Registered Linux User #440474 ------------------- "The specs said Windows XP or better so I installed Linux" From gambas at ...1... Fri Sep 26 00:51:51 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 26 Sep 2008 00:51:51 +0200 Subject: [Gambas-user] destroying and re-creating objects in a form In-Reply-To: <200809260032.10792.gambas@...1...> References: <1f1e8c1b0809250736ya616e8ft5c5ede4d3978beb8@...627...> <200809260032.10792.gambas@...1...> Message-ID: <200809260051.51896.gambas@...1...> On vendredi 26 septembre 2008, Benoit Minisini wrote: > On jeudi 25 septembre 2008, M0E Lnx wrote: > > I have a form with buttons, textlabels, and the like. > > > > Is there a way to destroy these objects and then re-create them? > > I was told on another thread about translations that for translations > > to take effect this needs to be done.... > > > > I have tried the object's delete methods, that indeed destroys the > > object... but I dont know how to get it back with it's new properties > > now > > > > Please help > > Hi, > > I have committed some changes in revision #1600 that fixes the crash you > encountered. > > Now, during the FMain.Button1_Click event handler, you can do the following > safely: > > System.Language = ... > ME.Delete > FMain.Show > > The WAIT is not needed anymore, as now the deleted forms become immediately > invalid, and so the call to FMain.Show recreates a new one (with the new > translations). > > Regards, Rather use the revision #1601, as it seems that you use gb.gtk. Regards, -- Benoit Minisini From gambas at ...1... Fri Sep 26 01:04:21 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 26 Sep 2008 01:04:21 +0200 Subject: [Gambas-user] Advanced tutorials In-Reply-To: <48DC1445.3070800@...1981...> References: <48DC1445.3070800@...1981...> Message-ID: <200809260104.21419.gambas@...1...> On vendredi 26 septembre 2008, Scott Hayes wrote: > Hi everyone, > > I had used Visual Basic since it came out as version 1. Stopped with > version six because I moved to Linux, great move as far as I'm > concerned. I have just installed Gambas and I'm in love. I have been > doing well so far but I am looking for more advanced tutorials, all I > can find is the beginner tuts. Nothing in specific just want to be able > to take Gambas to the next level. > > Also, I trying to come up with a project to do, I'm aving Brain Farts > and can't come up with any ideas. Can you help. > > Scott Hi, Welcome to Gambas. :-) I can give you many ideas, but it depends on your skills. There is a big thing to do for Gambas, but I don't have the time. I gave some explanation to Robert Rowe, because he started to do itw own toolbar, but I have no news since April. What is needed is an application-global keyboard shortcuts / toolbar management. This is a bunch of code that must do the three following things: 1) Implement an initialisation routine that will browse one or all opened forms of a project (I don't know yet how it should precisely work) and make a list of all defined menu and toolbar actions. A menu entry is an action, a toolbar button is an action, and a same action can be present in a toolbar and in a menu entry. Note that Gambas already implements an Action property that is just a string that allows to uniquely identify an action. There is more than that in this property, but I will give more details if you are interested in the project. 2) Be able to initialize toolbar buttons with a list of actions. We can suppose that the initial toolbar is built of all possible actions, and that it is just a matter of removing them. 3) Be able to assign a shortcut to each action. 4) Present a dialog to the user to configure everything: defining the shortcut of each action, adding an action to a toolbar, removing an action from a toolbar, adding a separator to a toolbar. Using Drag & Drop is the best, but is not necessary at the first time. Tell me if you are interested, talk to me about your skills, and I will give your more details. Use the developer mailing-list for that! Regards, -- Benoit Minisini From Scott.Hayes at ...1981... Fri Sep 26 01:11:03 2008 From: Scott.Hayes at ...1981... (Scott Hayes) Date: Thu, 25 Sep 2008 19:11:03 -0400 Subject: [Gambas-user] Advanced tutorials In-Reply-To: <200809260104.21419.gambas@...1...> References: <48DC1445.3070800@...1981...> <200809260104.21419.gambas@...1...> Message-ID: <48DC1A87.8020600@...1981...> From nando_f at ...951... Fri Sep 26 03:17:31 2008 From: nando_f at ...951... (nando) Date: Thu, 25 Sep 2008 20:17:31 -0500 Subject: [Gambas-user] How to lock a file In-Reply-To: <48DA4365.7020806@...1228...> References: <48340400.5060302@...1740...> <200805211326.26100.gambas@...1...> <483410FB.3010302@...1740...> <200805211436.55295.gambas@...1...> <48DA4365.7020806@...1228...> Message-ID: <20080926011650.M23549@...951...> Can you tell why you have to lock it.. for what reason? ---------- Original Message ----------- From: Almanova Sistemi To: mailing list for gambas users Sent: Wed, 24 Sep 2008 15:40:53 +0200 Subject: [Gambas-user] How to lock a file > Hi, > > I have a problem with LOCK > > I am writing an application in gambas (2.7.0-2.1) on opensuse 10.3 - > 11.0 and I need to lock a file after open it. > > My code: > > ... > DIM hfile as File > DIM sNameFile as String > > sNameFile = "SomeFile" > > hfile = OPEN sNameFile FOR INPUT OUTPUT > TRY LOCK hfile > IF ERROR then > ... > ENDIF > LINE INPUT #hfile, MyVar > UNLOCK hfile > CLOSE #hfile > ... > > When I execute it I get the following messge: > Useless LOCK in line ... > > I obtain the same result also with: > > hfile = OPEN sNameFile FOR READ WRITE > > Why ? > > Regards, > Massimo. > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > 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 the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From rospolosco at ...152... Fri Sep 26 10:36:11 2008 From: rospolosco at ...152... (Stefano Palmeri) Date: Fri, 26 Sep 2008 10:36:11 +0200 Subject: [Gambas-user] mailing test - don't read Message-ID: <200809261036.12155.rospolosco@...152...> From joshiggins at ...1601... Fri Sep 26 21:25:30 2008 From: joshiggins at ...1601... (Joshua Higgins) Date: Fri, 26 Sep 2008 20:25:30 +0100 Subject: [Gambas-user] setting window type Message-ID: <4247f5440809261225u58d6df3v6a38e03e91a1fec3@...627...> Hi, I'm making a replacement panel for my desktop in gambas, and I need to know how to set the window type as a panel, so windows can't cover it and it can't cover windows. any ideas?? -- joshua higgins >>>>>>------ From patrik at ...1982... Fri Sep 26 22:48:38 2008 From: patrik at ...1982... (Patrik Karlsson) Date: Fri, 26 Sep 2008 22:48:38 +0200 Subject: [Gambas-user] Restore fullscreen mode at Form_Open fails Message-ID: <200809262248.38967.patrik@...1982...> When I try this line in Form_Open ME.FullScreen = Settings["Main/FullScreen", FALSE] If the setting is true, the only thing that happens is that the program becomes a normal window in full size. However, if I have a timer that executes (once), after a short delay, the line above, it works just fine. Is there a better way to do this without the extra timer? From almanova at ...1228... Fri Sep 26 23:07:48 2008 From: almanova at ...1228... (Almanova Sistemi) Date: Fri, 26 Sep 2008 23:07:48 +0200 Subject: [Gambas-user] How to lock a file In-Reply-To: <20080926011650.M23549@...951...> References: <48340400.5060302@...1740...> <200805211326.26100.gambas@...1...> <483410FB.3010302@...1740...> <200805211436.55295.gambas@...1...> <48DA4365.7020806@...1228...> <20080926011650.M23549@...951...> Message-ID: <48DD4F24.3040403@...1228...> I need to lock the file to avoid writing by another user in multiuser environment nando ha scritto: > Can you tell why you have to lock it.. > for what reason? > > > ---------- Original Message ----------- > From: Almanova Sistemi > To: mailing list for gambas users > Sent: Wed, 24 Sep 2008 15:40:53 +0200 > Subject: [Gambas-user] How to lock a file > > >> Hi, >> >> I have a problem with LOCK >> >> I am writing an application in gambas (2.7.0-2.1) on opensuse 10.3 - >> 11.0 and I need to lock a file after open it. >> >> My code: >> >> ... >> DIM hfile as File >> DIM sNameFile as String >> >> sNameFile = "SomeFile" >> >> hfile = OPEN sNameFile FOR INPUT OUTPUT >> TRY LOCK hfile >> IF ERROR then >> ... >> ENDIF >> LINE INPUT #hfile, MyVar >> UNLOCK hfile >> CLOSE #hfile >> ... >> >> When I execute it I get the following messge: >> Useless LOCK in line ... >> >> I obtain the same result also with: >> >> hfile = OPEN sNameFile FOR READ WRITE >> >> Why ? >> >> Regards, >> Massimo. >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge >> Build the coolest Linux based applications with Moblin SDK & win great >> prizes >> Grand prize is a trip for two to an Open Source event anywhere in the world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> 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 the Moblin Your Move Developer's challenge >> Build the coolest Linux based applications with Moblin SDK & win great prizes >> Grand prize is a trip for two to an Open Source event anywhere in the world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> 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 the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From gambas at ...1... Fri Sep 26 23:51:57 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 26 Sep 2008 23:51:57 +0200 Subject: [Gambas-user] How to lock a file In-Reply-To: <48DD4F24.3040403@...1228...> References: <48340400.5060302@...1740...> <20080926011650.M23549@...951...> <48DD4F24.3040403@...1228...> Message-ID: <200809262351.57539.gambas@...1...> On vendredi 26 septembre 2008, Almanova Sistemi wrote: > I need to lock the file to avoid writing by another user in multiuser > environment > Sorry for that, the documentation is completely false. But who wrote it? :-) The LOCK instruction does not lock a specific stream not a stream, but instead use a specific path to create a global system lock. You use it this way: DIM hFile AS File TRY hFile = LOCK "~/lock" IF ERROR THEN PRINT "Already locked by something else!" ELSE PRINT "Got locked!" ... UNLOCK hFile ENDIF Do not rely on the lock file contents. It is truncated to zero byte when the lock is acquired. Regards, -- Benoit Minisini From gibsonsphoto at ...247... Fri Sep 26 23:42:24 2008 From: gibsonsphoto at ...247... (Neil Lewis) Date: Fri, 26 Sep 2008 22:42:24 +0100 Subject: [Gambas-user] Gambas2 on OpenSUSE 11.0/x86_64 Message-ID: <48DD5740.8080106@...247...> Hi all, I've recently come back to Gambas after a long spell with php and installed the recommended packages for OpenSUSE 11.0. The IDE starts up fine, but whenever any project is loaded, the IDE crashes after a few seconds with the error message "[6] Type mismatch: wanted integer, got Null instead. FGambas.timAnim_Timer.108". I'm guessing this has been seen before and the fix is simple, but I'd appreciate a pointer. Thanks! Neil From gambas at ...1... Fri Sep 26 23:49:02 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 26 Sep 2008 23:49:02 +0200 Subject: [Gambas-user] setting window type In-Reply-To: <4247f5440809261225u58d6df3v6a38e03e91a1fec3@...627...> References: <4247f5440809261225u58d6df3v6a38e03e91a1fec3@...627...> Message-ID: <200809262349.02908.gambas@...1...> On vendredi 26 septembre 2008, Joshua Higgins wrote: > Hi, I'm making a replacement panel for my desktop in gambas, and I need to > know how to set the window type as a panel, so windows can't cover it and > it can't cover windows. > > any ideas?? You can do that in Gambas 3, not in Gambas 2. If you have more desktop-specific features, tell me. The gb.desktop component of Gambas 3 can watch windows (i.e. you can make a task bar in gambas), virtual desktops... Regards, -- Benoit Minisini From linuxos at ...1896... Fri Sep 26 23:20:14 2008 From: linuxos at ...1896... (Olivier Cruilles) Date: Fri, 26 Sep 2008 23:20:14 +0200 Subject: [Gambas-user] Restore fullscreen mode at Form_Open fails In-Reply-To: <200809262248.38967.patrik@...1982...> References: <200809262248.38967.patrik@...1982...> Message-ID: Hello Patrik, I think it doesn't work because only TEXT was avaible by Settings function. Try somethink like that: if Settings["Main/FullScreen", FALSE] = "TRUE" then Me.FullScreen = TRUE else Me.FullScreen = FALSE end if And the same procedure to store the boolean value by the Settings function. Olivier Cruilles Mail: linuxos at ...1896... Le 26 sept. 08 ? 22:48, Patrik Karlsson a ?crit : > When I try this line in Form_Open > ME.FullScreen = Settings["Main/FullScreen", FALSE] > If the setting is true, the only thing that happens is that the > program > becomes a normal window in full size. > > However, if I have a timer that executes (once), after a short > delay, the line > above, it works just fine. > > Is there a better way to do this without the extra timer? > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win > great prizes > Grand prize is a trip for two to an Open Source event anywhere in > the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From gambas at ...1... Sat Sep 27 00:12:12 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 27 Sep 2008 00:12:12 +0200 Subject: [Gambas-user] Gambas2 on OpenSUSE 11.0/x86_64 In-Reply-To: <48DD5740.8080106@...247...> References: <48DD5740.8080106@...247...> Message-ID: <200809270012.12050.gambas@...1...> On vendredi 26 septembre 2008, Neil Lewis wrote: > Hi all, > > I've recently come back to Gambas after a long spell with php and > installed the recommended packages for OpenSUSE 11.0. The IDE starts up > fine, but whenever any project is loaded, the IDE crashes after a few > seconds with the error message "[6] Type mismatch: wanted integer, got > Null instead. FGambas.timAnim_Timer.108". > > I'm guessing this has been seen before and the fix is simple, but I'd > appreciate a pointer. > > Thanks! > > Neil > Which version of Gambas did you install? When you say "recommended" package, did you mean that you *didn't* install the Gambas packages made by SuSE, but the one made by Guillermo? -- Benoit Minisini From gambas at ...1... Sat Sep 27 00:14:21 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 27 Sep 2008 00:14:21 +0200 Subject: [Gambas-user] Restore fullscreen mode at Form_Open fails In-Reply-To: <200809262248.38967.patrik@...1982...> References: <200809262248.38967.patrik@...1982...> Message-ID: <200809270014.21568.gambas@...1...> On vendredi 26 septembre 2008, Patrik Karlsson wrote: > When I try this line in Form_Open > ME.FullScreen = Settings["Main/FullScreen", FALSE] > If the setting is true, the only thing that happens is that the program > becomes a normal window in full size. > > However, if I have a timer that executes (once), after a short delay, the > line above, it works just fine. > > Is there a better way to do this without the extra timer? > It seems to work with gb.gtk, but not gb.qt. I need to investigate... -- Benoit Minisini From patrik at ...1982... Sat Sep 27 00:27:45 2008 From: patrik at ...1982... (Patrik Karlsson) Date: Sat, 27 Sep 2008 00:27:45 +0200 Subject: [Gambas-user] Restore fullscreen mode at Form_Open fails In-Reply-To: <200809270014.21568.gambas@...1...> References: <200809262248.38967.patrik@...1982...> <200809270014.21568.gambas@...1...> Message-ID: <200809270027.45681.patrik@...1982...> > > When I try this line in Form_Open > > ME.FullScreen = Settings["Main/FullScreen", FALSE] > > If the setting is true, the only thing that happens is that the program > > becomes a normal window in full size. > It seems to work with gb.gtk, but not gb.qt. I need to investigate... Ok, please do :) From joshiggins at ...1601... Sat Sep 27 12:36:12 2008 From: joshiggins at ...1601... (Joshua Higgins) Date: Sat, 27 Sep 2008 11:36:12 +0100 Subject: [Gambas-user] setting window type In-Reply-To: <200809262349.02908.gambas@...1...> References: <4247f5440809261225u58d6df3v6a38e03e91a1fec3@...627...> <200809262349.02908.gambas@...1...> Message-ID: <4247f5440809270336x1106010u1388b831880c9acc@...627...> I am planning to make a desktop environment using gambas and openbox. Probably a stupid question, but how do I install Gambas 3? On Fri, Sep 26, 2008 at 10:49 PM, Benoit Minisini < gambas at ...1...> wrote: > On vendredi 26 septembre 2008, Joshua Higgins wrote: > > Hi, I'm making a replacement panel for my desktop in gambas, and I need > to > > know how to set the window type as a panel, so windows can't cover it and > > it can't cover windows. > > > > any ideas?? > > You can do that in Gambas 3, not in Gambas 2. > > If you have more desktop-specific features, tell me. The gb.desktop > component > of Gambas 3 can watch windows (i.e. you can make a task bar in gambas), > virtual desktops... > > Regards, > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- joshua higgins >>>>>>------ From joshiggins at ...1601... Sat Sep 27 12:38:43 2008 From: joshiggins at ...1601... (Joshua Higgins) Date: Sat, 27 Sep 2008 11:38:43 +0100 Subject: [Gambas-user] setting window type In-Reply-To: <4247f5440809270336x1106010u1388b831880c9acc@...627...> References: <4247f5440809261225u58d6df3v6a38e03e91a1fec3@...627...> <200809262349.02908.gambas@...1...> <4247f5440809270336x1106010u1388b831880c9acc@...627...> Message-ID: <4247f5440809270338u569d3107k4be956f4a4f539e2@...627...> oh wait, silly me I got it now! On Sat, Sep 27, 2008 at 11:36 AM, Joshua Higgins wrote: > I am planning to make a desktop environment using gambas and openbox. > Probably a stupid question, but how do I install Gambas 3? > > > > On Fri, Sep 26, 2008 at 10:49 PM, Benoit Minisini < > gambas at ...1...> wrote: > >> On vendredi 26 septembre 2008, Joshua Higgins wrote: >> > Hi, I'm making a replacement panel for my desktop in gambas, and I need >> to >> > know how to set the window type as a panel, so windows can't cover it >> and >> > it can't cover windows. >> > >> > any ideas?? >> >> You can do that in Gambas 3, not in Gambas 2. >> >> If you have more desktop-specific features, tell me. The gb.desktop >> component >> of Gambas 3 can watch windows (i.e. you can make a task bar in gambas), >> virtual desktops... >> >> Regards, >> >> -- >> Benoit Minisini >> >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move Developer's >> challenge >> Build the coolest Linux based applications with Moblin SDK & win great >> prizes >> Grand prize is a trip for two to an Open Source event anywhere in the >> world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > > -- > joshua higgins > >>>>>>------ > -- joshua higgins >>>>>>------ From gambas at ...1... Sat Sep 27 14:48:45 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 27 Sep 2008 14:48:45 +0200 Subject: [Gambas-user] setting window type In-Reply-To: <4247f5440809270336x1106010u1388b831880c9acc@...627...> References: <4247f5440809261225u58d6df3v6a38e03e91a1fec3@...627...> <200809262349.02908.gambas@...1...> <4247f5440809270336x1106010u1388b831880c9acc@...627...> Message-ID: <200809271448.45564.gambas@...1...> On samedi 27 septembre 2008, Joshua Higgins wrote: > I am planning to make a desktop environment using gambas and openbox. > Probably a stupid question, but how do I install Gambas 3? > This is exactly why I enhanced gb.desktop in Gambas 3. I added the following features: * Desktop.Count = Number of virtual desktops (writable) * Desktop.Current = Current virtual desktop (writable) * Desktop[i] = Returns the virtual desktop #i * Desktop[i].X,Y,Width,Height = Virtual desktop dimension (read-only) * Desktop[i].Name = Virtual desktop name (writable) * Desktop.ActiveWindow = X11 id of the current active window (writable) * Desktop.Showing = Enable/Disable the "Show desktop" button (writable) * Desktop.Windows = All top-level windows * Desktop.Windows.StackingOrder = An array of top-level windows following the stacking order * Desktop.Windows[id] = Returns the top-level window from its X11 id. * Desktop.Windows[id].X,Y,Width,Height = Window dimensions * Desktop.Windows[id].State = Window state * Desktop.Windows[id].ClearState()/SetState()/ToggleState() = Window state management * Atom[Name] = Returns an X11 atom from its name To use the last methods, you must read the freedesktop.org window manager specification, and must know what an X11 atom is, and how it works. Regards, -- Benoit Minisini From doriano.blengino at ...1909... Sat Sep 27 15:31:46 2008 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Sat, 27 Sep 2008 15:31:46 +0200 Subject: [Gambas-user] Getting events from a modal shown form Message-ID: <48DE35C2.3030302@...1909...> Hi, I send the project about raising GetPage event. Look at FMain.class:26; the only way I found to get getPage event is to instantiate fmPreview.obs from Fmain. I tried to create it inside the fmPreview.setup() method, and attach it to blah blah blah; this is why in FMain:21 fmPreview.setup() is called with a parameter "ME". fmPreview.obs is disposed in fmPreview.form_close(). Also, I have some problems with rendering fonts in preview - they are imprecise, and some manipulation comes from practical tries, without a right knowledge. All the things are a little messy, but if you quickly see something wrong, any advice is appreciated. The biggest problem is to calculate the true width of a printed text, when this text is not actually printed on the true printer surface, but on a scaled-down surface (a DrawingArea). Thanks in advance, Best regards, Doriano Blengino -------------- next part -------------- A non-text attachment was scrubbed... Name: PrintDesigner-0.0.19.tar.gz Type: application/x-tgz Size: 75376 bytes Desc: not available URL: From patrik at ...1982... Sat Sep 27 18:44:03 2008 From: patrik at ...1982... (Patrik Karlsson) Date: Sat, 27 Sep 2008 18:44:03 +0200 Subject: [Gambas-user] Request: Remember last directory for 'make source archive' Message-ID: <200809271844.03296.patrik@...1982...> One thing that would be nice was if gambas could for each project remember last directory for 'make source archive'. From gambas at ...1... Sat Sep 27 20:11:24 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 27 Sep 2008 20:11:24 +0200 Subject: [Gambas-user] Request: Remember last directory for 'make source archive' In-Reply-To: <200809271844.03296.patrik@...1982...> References: <200809271844.03296.patrik@...1982...> Message-ID: <200809272011.24594.gambas@...1...> On samedi 27 septembre 2008, Patrik Karlsson wrote: > One thing that would be nice was if gambas could for each project remember > last directory for 'make source archive'. > Good idea. It is done in revision #1613 (for gambas 2). Regards, -- Benoit Minisini From patrik at ...1982... Sat Sep 27 20:19:51 2008 From: patrik at ...1982... (Patrik Karlsson) Date: Sat, 27 Sep 2008 20:19:51 +0200 Subject: [Gambas-user] Request: Remember last directory for 'make source archive' In-Reply-To: <200809272011.24594.gambas@...1...> References: <200809271844.03296.patrik@...1982...> <200809272011.24594.gambas@...1...> Message-ID: <200809272019.51637.patrik@...1982...> Den Saturday 27 September 2008 20:11:24 skrev Benoit Minisini: > On samedi 27 septembre 2008, Patrik Karlsson wrote: > > One thing that would be nice was if gambas could for each project > > remember last directory for 'make source archive'. > > Good idea. It is done in revision #1613 (for gambas 2). > > Regards, Wow, what a great response, thank you! From joshiggins at ...1601... Sat Sep 27 20:49:42 2008 From: joshiggins at ...1601... (Joshua Higgins) Date: Sat, 27 Sep 2008 19:49:42 +0100 Subject: [Gambas-user] gambas3 compile problem Message-ID: <4247f5440809271149u122336den8314a62e1d37125@...627...> hello all, trying to compile gambas3 here, following instructions off website to the letter (running Ubuntu Hardy on 32bit). I type ./reconf-all and get this: root at ...1984...:/home/development/gambas3/trunk# ./reconf-all/usr/bin/m4: configure.ac:6: ERROR: copying inserted file: No space left on device /usr/bin/m4:configure.ac:6: cannot clean temporary file for diversion autom4te: /usr/bin/m4 failed with exit status: 1 aclocal: autom4te failed with exit status: 1 autoreconf: aclocal failed with exit status: 1 root at ...1984...:/home/development/gambas3/trunk# what does this mean and how can i fix it?? thanks . -- joshua higgins >>>>>>------ From lordheavym at ...626... Sat Sep 27 21:10:41 2008 From: lordheavym at ...626... (Laurent Carlier) Date: Sat, 27 Sep 2008 21:10:41 +0200 Subject: [Gambas-user] gambas3 compile problem In-Reply-To: <4247f5440809271149u122336den8314a62e1d37125@...627...> References: <4247f5440809271149u122336den8314a62e1d37125@...627...> Message-ID: <200809272110.41876.lordheavym@...626...> Le samedi 27 septembre 2008 20:49:42 Joshua Higgins, vous avez ?crit : > hello all, > > trying to compile gambas3 here, following instructions off website to the > letter (running Ubuntu Hardy on 32bit). I type ./reconf-all and get this: > > root at ...1984...:/home/development/gambas3/trunk# ./reconf-all/usr/bin/m4: > configure.ac:6: ERROR: copying inserted file: No space left on device > /usr/bin/m4:configure.ac:6: cannot clean temporary file for diversion > autom4te: /usr/bin/m4 failed with exit status: 1 > aclocal: autom4te failed with exit status: 1 > autoreconf: aclocal failed with exit status: 1 > root at ...1984...:/home/development/gambas3/trunk# > > what does this mean and how can i fix it?? > > thanks . root at ...1984... <- root ! it's really a bad usage ! Build gambas as a normal user (./reconf-all && ./configure && make) then install with sudo (sudo make install) in ubuntu like or with su otherwise (su -c 'make install'). "No space left on device" What does the command 'df' give in a terminal ? Regards, From neil at ...233... Sat Sep 27 21:23:39 2008 From: neil at ...233... (Neil Lewis) Date: Sat, 27 Sep 2008 20:23:39 +0100 Subject: [Gambas-user] Gambas2 on OpenSUSE 11.0/x86_64 In-Reply-To: <200809270012.12050.gambas@...1...> References: <48DD5740.8080106@...247...> <200809270012.12050.gambas@...1...> Message-ID: <48DE883B.3080809@...233...> Benoit Minisini wrote: > On vendredi 26 septembre 2008, Neil Lewis wrote: > >> Hi all, >> >> I've recently come back to Gambas after a long spell with php and >> installed the recommended packages for OpenSUSE 11.0. The IDE starts up >> fine, but whenever any project is loaded, the IDE crashes after a few >> seconds with the error message "[6] Type mismatch: wanted integer, got >> Null instead. FGambas.timAnim_Timer.108". >> >> I'm guessing this has been seen before and the fix is simple, but I'd >> appreciate a pointer. >> >> Thanks! >> >> Neil >> >> > > Which version of Gambas did you install? > > When you say "recommended" package, did you mean that you *didn't* install the > Gambas packages made by SuSE, but the one made by Guillermo? > > Hi Benoit. Thanks for taking the time to reply. Yes, I installed Guillermo's current set of packages for OpenSUSE 11.0. regards, Neil From joshiggins at ...1601... Sun Sep 28 01:13:45 2008 From: joshiggins at ...1601... (Joshua Higgins) Date: Sun, 28 Sep 2008 00:13:45 +0100 Subject: [Gambas-user] gambas3 compile problem In-Reply-To: <200809272110.41876.lordheavym@...626...> References: <4247f5440809271149u122336den8314a62e1d37125@...627...> <200809272110.41876.lordheavym@...626...> Message-ID: <4247f5440809271613i31159f0i98517a5abd475e8a@...627...> Hi, df showed that /tmp was not full (only 5% used), but I had another hdd mounted at /mnt which was 99% used, and unmounting that seemed to sort out the problem (god knows why). thanks for the tip about compiling as normal user, I would usually just "sudo su" because i got sick of typing in sudo all the time, but I didn't know you could ./configure and make as normal user. :) On Sat, Sep 27, 2008 at 8:10 PM, Laurent Carlier wrote: > Le samedi 27 septembre 2008 20:49:42 Joshua Higgins, vous avez ?crit : > > hello all, > > > > trying to compile gambas3 here, following instructions off website to the > > letter (running Ubuntu Hardy on 32bit). I type ./reconf-all and get this: > > > > root at ...1984...:/home/development/gambas3/trunk# ./reconf-all/usr/bin/m4: > > configure.ac:6: ERROR: copying inserted file: No space left on device > > /usr/bin/m4:configure.ac:6: cannot clean temporary file for diversion > > autom4te: /usr/bin/m4 failed with exit status: 1 > > aclocal: autom4te failed with exit status: 1 > > autoreconf: aclocal failed with exit status: 1 > > root at ...1984...:/home/development/gambas3/trunk# > > > > what does this mean and how can i fix it?? > > > > thanks . > > root at ...1984... <- root ! it's really a bad usage ! > Build gambas as a normal user (./reconf-all && ./configure && make) > then install with sudo (sudo make install) in ubuntu like or > with su otherwise (su -c 'make install'). > > "No space left on device" > What does the command 'df' give in a terminal ? > > Regards, > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- joshua higgins >>>>>>------ From rterry at ...1946... Sun Sep 28 02:50:34 2008 From: rterry at ...1946... (richard terry) Date: Sun, 28 Sep 2008 10:50:34 +1000 Subject: [Gambas-user] What is the 'Action' e.g when constructing a menu Message-ID: <200809281050.34663.rterry@...1946...> I've often wondered what/how this is used. For example in the menu editor one gives the names, group, tag, and then there is an action textbox ? what for Any info/example appreciated, and thanks in advance. Richard From joshiggins at ...1601... Sun Sep 28 12:12:24 2008 From: joshiggins at ...1601... (Joshua Higgins) Date: Sun, 28 Sep 2008 11:12:24 +0100 Subject: [Gambas-user] question about creating and deleting objects Message-ID: <4247f5440809280312o470f5a9eia1b47bf3a2514023@...627...> Hello. I am making a task bar in gambas3. For each task I have a container panel which has a label and a button in. How can I create one of these for each task and set the options of the label and button? Currently I am up to here: Dim swindows As Array Dim swindow As Integer swindows = Desktop.Windows.StackingOrder For Each swindow In swindows 'make new container panel 'set options of label and button Next -- joshua higgins >>>>>>------ From joshiggins at ...1601... Sun Sep 28 14:54:28 2008 From: joshiggins at ...1601... (Joshua Higgins) Date: Sun, 28 Sep 2008 13:54:28 +0100 Subject: [Gambas-user] destroying all panels Message-ID: <4247f5440809280554m183b87ebp2c6dc1fe6a5d1422@...627...> If I use windowpanel = New Panel(FMain) As "TaskPanel" many times to create loads of panels, how do I destroy all of them? Using windowpanel.delete only destroys the last one created. -- joshua higgins >>>>>>------ From joshiggins at ...1601... Sun Sep 28 17:21:29 2008 From: joshiggins at ...1601... (Joshua Higgins) Date: Sun, 28 Sep 2008 16:21:29 +0100 Subject: [Gambas-user] setting window type In-Reply-To: <200809271448.45564.gambas@...1...> References: <4247f5440809261225u58d6df3v6a38e03e91a1fec3@...627...> <200809262349.02908.gambas@...1...> <4247f5440809270336x1106010u1388b831880c9acc@...627...> <200809271448.45564.gambas@...1...> Message-ID: <4247f5440809280821o11d38431j1703d4cefc5b158b@...627...> Benoit, please can you point me in the right direction for making a task bar (showing all the open programs)? On Sat, Sep 27, 2008 at 1:48 PM, Benoit Minisini < gambas at ...1...> wrote: > On samedi 27 septembre 2008, Joshua Higgins wrote: > > I am planning to make a desktop environment using gambas and openbox. > > Probably a stupid question, but how do I install Gambas 3? > > > > This is exactly why I enhanced gb.desktop in Gambas 3. I added the > following > features: > > * Desktop.Count = Number of virtual desktops (writable) > * Desktop.Current = Current virtual desktop (writable) > * Desktop[i] = Returns the virtual desktop #i > * Desktop[i].X,Y,Width,Height = Virtual desktop dimension (read-only) > * Desktop[i].Name = Virtual desktop name (writable) > * Desktop.ActiveWindow = X11 id of the current active window (writable) > * Desktop.Showing = Enable/Disable the "Show desktop" button (writable) > * Desktop.Windows = All top-level windows > * Desktop.Windows.StackingOrder = An array of top-level windows following > the > stacking order > * Desktop.Windows[id] = Returns the top-level window from its X11 id. > * Desktop.Windows[id].X,Y,Width,Height = Window dimensions > * Desktop.Windows[id].State = Window state > * Desktop.Windows[id].ClearState()/SetState()/ToggleState() = Window state > management > * Atom[Name] = Returns an X11 atom from its name > > To use the last methods, you must read the freedesktop.org window manager > specification, and must know what an X11 atom is, and how it works. > > Regards, > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- joshua higgins >>>>>>------ From doriano.blengino at ...1909... Sun Sep 28 17:38:49 2008 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Sun, 28 Sep 2008 17:38:49 +0200 Subject: [Gambas-user] What is the 'Action' e.g when constructing a menu In-Reply-To: <200809281050.34663.rterry@...1946...> References: <200809281050.34663.rterry@...1946...> Message-ID: <48DFA509.1090102@...1909...> richard terry ha scritto: > I've often wondered what/how this is used. > > For example in the menu editor one gives the names, group, tag, and then there > is an action textbox ? what for > > Any info/example appreciated, and thanks in advance. > > Richard > You can use an "Action" to group together items (like menu items or buttons) which can throw "actions". For example, you can have a button and menu item which both save the file currently edited. You can associate them together by assigning to them the action "SaveFile". Then, you can enable or disable they together by executing: action["SaveFile"].Enabled = FALSE In a complex application, where you can have many items related to a single state, this can help to simplfy the work. It is planned to extend this, and add more functionalities. From gambas at ...1... Sun Sep 28 20:10:40 2008 From: gambas at ...1... (Benoit Minisini) Date: Sun, 28 Sep 2008 20:10:40 +0200 Subject: [Gambas-user] setting window type In-Reply-To: <4247f5440809280821o11d38431j1703d4cefc5b158b@...627...> References: <4247f5440809261225u58d6df3v6a38e03e91a1fec3@...627...> <200809271448.45564.gambas@...1...> <4247f5440809280821o11d38431j1703d4cefc5b158b@...627...> Message-ID: <200809282010.40334.gambas@...1...> On dimanche 28 septembre 2008, Joshua Higgins wrote: > Benoit, please can you point me in the right direction for making a task > bar (showing all the open programs)? > This is actually not yet implemented! What I explained you are functions that allows you to know the list of top-level windows at the moment you read it. But you need a way to be warned when something changed in this list of top-level windows, and this is not yet finished. If you are curious, you can look in the source of the gb.desktop component. Regards, -- Benoit Minisini From gambas at ...1... Sun Sep 28 20:11:46 2008 From: gambas at ...1... (Benoit Minisini) Date: Sun, 28 Sep 2008 20:11:46 +0200 Subject: [Gambas-user] question about creating and deleting objects In-Reply-To: <4247f5440809280312o470f5a9eia1b47bf3a2514023@...627...> References: <4247f5440809280312o470f5a9eia1b47bf3a2514023@...627...> Message-ID: <200809282011.46175.gambas@...1...> On dimanche 28 septembre 2008, Joshua Higgins wrote: > Hello. > > I am making a task bar in gambas3. For each task I have a container panel > which has a label and a button in. How can I create one of these for each > task and set the options of the label and button? > > > Currently I am up to here: > > Dim swindows As Array --> As Integer[] is better > Dim swindow As Integer > > swindows = Desktop.Windows.StackingOrder > For Each swindow In swindows > 'make new container panel > 'set options of label and button > Next What's the problem with your code? -- Benoit Minisini From gambas at ...1... Sun Sep 28 20:12:46 2008 From: gambas at ...1... (Benoit Minisini) Date: Sun, 28 Sep 2008 20:12:46 +0200 Subject: [Gambas-user] destroying all panels In-Reply-To: <4247f5440809280554m183b87ebp2c6dc1fe6a5d1422@...627...> References: <4247f5440809280554m183b87ebp2c6dc1fe6a5d1422@...627...> Message-ID: <200809282012.46511.gambas@...1...> On dimanche 28 septembre 2008, Joshua Higgins wrote: > If I use > > windowpanel = New Panel(FMain) As "TaskPanel" > > many times to create loads of panels, how do I destroy all of them? Using > windowpanel.delete only destroys the last one created. You must store the reference on each newly created task panel somewhere. Are you ok with object-oriented programming? -- Benoit Minisini From m0e.lnx at ...626... Mon Sep 29 17:36:56 2008 From: m0e.lnx at ...626... (M0E Lnx) Date: Mon, 29 Sep 2008 10:36:56 -0500 Subject: [Gambas-user] Cannot save file error on gambas2 svn snapshot Message-ID: <1f1e8c1b0809290836t18d37bfdtce4dbcc2b6468373@...627...> Recently built a snapshot of the gambas2 svn tree (revision 1601) as instructed by beniot to fix a problem with the forms not translating and the IDE crashing as I tried. That got fixed, however, now I have this other problem that didn't happen before I get this error when I try to modify objects on a form. See attached screenshot Please advice... thanks -------------- next part -------------- A non-text attachment was scrubbed... Name: no-save.JPG Type: image/jpeg Size: 10255 bytes Desc: not available URL: From shordi at ...626... Mon Sep 29 18:37:59 2008 From: shordi at ...626... (=?ISO-8859-1?Q?Jorge_Carri=F3n?=) Date: Mon, 29 Sep 2008 18:37:59 +0200 Subject: [Gambas-user] Accesing database events Message-ID: Hi everybody. I'm writing my first Gambas application after a lot of years of VB, and there is on thing I can't foun in help or in the books i have: In a bound control as DataBrowser, how I can access to the database Events? (movenext, eof, etc.)? In detail: I have a recordsource who has a databrowser an a few fields for edit (like the example DataBase of Gambas) but in addition, there are, hanging of same recordsource, another recordsource bounded to another table (who mantains a father-child dependence with MySQL InnoDB ) and another databrowser and his own few fields. when I select a record from first databrowser, the second databrowser is not positionated until I make a .movefirst (or next or last) event in the second databrowser. How can I raise this event automaticaly? Excuse my poor English. I don't know if all this text has any sense... Thanks From shordi at ...626... Mon Sep 29 18:55:21 2008 From: shordi at ...626... (=?ISO-8859-1?Q?Jorge_Carri=F3n?=) Date: Mon, 29 Sep 2008 18:55:21 +0200 Subject: [Gambas-user] Accesing database events In-Reply-To: References: Message-ID: Excuse me, I've read what I've been write and I think is not very clear. What I want is raise the .movefirst (or next) event of the second databrowse when I make a click in the first databrowser. In other words: cath the click event of the first DataBrowser (and the index, etc.)... but there's no such event en the DataBrowser class. I'm been clear enough with this explanation? Or should I cut off my head inmediatly? 2008/9/29 Jorge Carri?n > Hi everybody. > I'm writing my first Gambas application after a lot of years of VB, and > there is on thing I can't foun in help or in the books i have: > In a bound control as DataBrowser, how I can access to the database Events? > (movenext, eof, etc.)? > In detail: > I have a recordsource who has a databrowser an a few fields for edit (like > the example DataBase of Gambas) but in addition, there are, hanging of same > recordsource, another recordsource bounded to another table (who mantains a > father-child dependence with MySQL InnoDB ) and another databrowser and his > own few fields. > when I select a record from first databrowser, the second databrowser is > not positionated until I make a .movefirst (or next or last) event in the > second databrowser. > How can I raise this event automaticaly? > > Excuse my poor English. I don't know if all this text has any sense... > Thanks > > From gambas at ...1... Mon Sep 29 19:30:36 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 29 Sep 2008 19:30:36 +0200 Subject: [Gambas-user] Accesing database events In-Reply-To: References: Message-ID: <200809291930.36754.gambas@...1...> On lundi 29 septembre 2008, Jorge Carri?n wrote: > Excuse me, I've read what I've been write and I think is not very clear. > What I want is raise the .movefirst (or next) event of the second > databrowse when I make a click in the first databrowser. In other words: > cath the click event of the first DataBrowser (and the index, etc.)... but > there's no such event en the DataBrowser class. > I'm been clear enough with this explanation? Or should I cut off my head > inmediatly? > Not very clear... I didn't understand if the two data browsers are independent or if there is a relation between their table. Maybe can you make a picture? -- Benoit Minisini From gambas at ...1... Tue Sep 30 00:37:12 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 30 Sep 2008 00:37:12 +0200 Subject: [Gambas-user] Making a taskbar with Gambas 3 Message-ID: <200809300037.13031.gambas@...1...> This is possible now, thanks to the changes in the gb.desktop component from revision #1617. 1) The DesktopWindow class now allows to change the Minimized, Maximized, FullScreen, Sticky state of a top-level window. 2) The new DesktopWatcher class allows to watch the following things: - Active window change. - Current virtual desktop change. - Virtual desktop name change. - Number of virtual desktops change. - Desktop width/height change. - Window more/resize change. - Window name (title) change. - Window icon change. - Window state change. Not everything is finished and engraved in the marble, but all these features are enough to implement a taskbar, a pager, and to manage virtual desktops. The only thing that is missing is something to make a system tray. With that last thing, you will be able to make a full desktop environment entirely in Gambas, except the window manager. Such a beast is something complex, so at the moment using an already existing and reliable one is a better solution. Enjoy it! -- Benoit Minisini From doriano.blengino at ...1909... Tue Sep 30 08:17:36 2008 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Tue, 30 Sep 2008 08:17:36 +0200 Subject: [Gambas-user] Accesing database events In-Reply-To: <200809291930.36754.gambas@...1...> References: <200809291930.36754.gambas@...1...> Message-ID: <48E1C480.6090406@...1909...> Benoit Minisini ha scritto: > On lundi 29 septembre 2008, Jorge Carri?n wrote: > >> Excuse me, I've read what I've been write and I think is not very clear. >> What I want is raise the .movefirst (or next) event of the second >> databrowse when I make a click in the first databrowser. In other words: >> cath the click event of the first DataBrowser (and the index, etc.)... but >> there's no such event en the DataBrowser class. >> I'm been clear enough with this explanation? Or should I cut off my head >> inmediatly? >> >> > > Not very clear... I didn't understand if the two data browsers are independent > or if there is a relation between their table. > > Maybe can you make a picture? > > I think Jorge has a master-slave relationship between two tables, say, TablePainters and TableWorks. Each painter has a name, date of birth, and so on, while each record in TableWorks describes a painting; its foreign key is in TablePainters. Each time he clicks in Databrowser1 (painters) he wants to load Databrowser2 with all the works from that painter. This is what it seems to me; unfortunately I don't know database controls, so I am not able to help more. Salut, Doriano From doriano.blengino at ...1909... Thu Sep 25 22:30:42 2008 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Thu, 25 Sep 2008 22:30:42 +0200 Subject: [Gambas-user] Getting events from a modal showed modal Message-ID: <48DBF4F2.7030107@...1909...> Hi, I send the project about raising GetPage event. Look at FMain.class:26; the only way I found to get getPage event is to instantiate fmPreview.obs from Fmain. I tried to create it inside the fmPreview.setup() method, and attach it to blah blah blah; this is why in FMain:21 fmPreview.setup() is called with a parameter "ME". fmPreview.obs is disposed in fmPreview.form_close(). Benoit, I have some problems with rendering fonts in preview - they are imprecise, and some manipulation comes from practical tries, without a right knowledge. All the things are a little messy, but if you quickly see something wrong, any advice is appreciated. The biggest problem is to calculate the true width of a printed text, when this text is not actually printed on the true printer surface, but on a scaled-down surface (a DrawingArea). Thanks in advance for your interest, if you care. Best regards, Doriano Blengino -------------- next part -------------- A non-text attachment was scrubbed... Name: PrintDesigner-0.0.19.tar.gz Type: application/x-tgz Size: 75376 bytes Desc: not available URL: From rterry at ...1946... Fri Sep 26 00:01:46 2008 From: rterry at ...1946... (richard terry) Date: Fri, 26 Sep 2008 08:01:46 +1000 Subject: [Gambas-user] svn failed to download Message-ID: <200809260801.46355.rterry@...1946...> Attempted to update to check the cursor problem in the eidtor: A trunk/examples/examples/Video/MyWebCam/Form1.class svn: REPORT request failed on '/svnroot/gambas/!svn/vcc/default' svn: REPORT of '/svnroot/gambas/!svn/vcc/default': Could not read chunk delimiter: Connection reset by peer (https://gambas.svn.so urceforge.net) ==> ERROR: Build Failed. Regards Richard From charles at ...1784... Fri Sep 26 09:51:53 2008 From: charles at ...1784... (charlesg) Date: Fri, 26 Sep 2008 00:51:53 -0700 (PDT) Subject: [Gambas-user] Ubuntu now installs Gambas 2.8.2 Message-ID: <19683990.post@...1379...> Hi, I see that Ubuntu now installs Gambas 2.8.2 by default. This is grand news. I am interested to know whether such a change would have been instigated from Ubuntu itself or from the Gambas community. I do not know how Ubuntu/Debian select packages for inclusion. If the impetus comes from Ubuntu/Debian then I am sure it is good news. 2.8.2 is also on the cover disk of the latest Linux Format (LXF111) magazine though without much editorial comment. They do describe it as "a structured, modular language that's great for quickly hacking together graphical programs". rgds -- View this message in context: http://www.nabble.com/Ubuntu-now-installs-Gambas-2.8.2-tp19683990p19683990.html Sent from the gambas-user mailing list archive at Nabble.com. From charles at ...1784... Fri Sep 26 10:03:46 2008 From: charles at ...1784... (charlesg) Date: Fri, 26 Sep 2008 01:03:46 -0700 (PDT) Subject: [Gambas-user] Ubuntu now installs Gambas 2.8.2 In-Reply-To: <19683990.post@...1379...> References: <19683990.post@...1379...> Message-ID: <19684124.post@...1379...> Oops Not so sure now. I still have azores.linex as a third-party-site so I guess the upgrade could have come from there. :confused: rgds -- View this message in context: http://www.nabble.com/Ubuntu-now-installs-Gambas-2.8.2-tp19683990p19684124.html Sent from the gambas-user mailing list archive at Nabble.com. From garulfounix at ...626... Fri Sep 26 21:44:45 2008 From: garulfounix at ...626... (=?iso-8859-1?q?Fran=E7ois?=) Date: Fri, 26 Sep 2008 21:44:45 +0200 Subject: [Gambas-user] setting window type In-Reply-To: <4247f5440809261225u58d6df3v6a38e03e91a1fec3@...627...> References: <4247f5440809261225u58d6df3v6a38e03e91a1fec3@...627...> Message-ID: <200809262144.46046.garulfounix@...626...> Le Friday 26 September 2008 21:25:30 Joshua Higgins, vous avez ?crit?: > Hi, I'm making a replacement panel for my desktop in gambas, and I need to > know how to set the window type as a panel, so windows can't cover it and > it can't cover windows. > > any ideas?? Hi, To do that, you must set the Type property of your Form to "Panel". Another way it's to let this property to "Normal" and to set the Border property to False. -- GarulfoUnix - Fran?ois Gallo (fr)Contributeur ? Gambas(Traductions, documentations, rapport de bugs...) (en)Gambas contributor(Translation, documentation, bugs report...and so on) From webbox.uk at ...626... Fri Sep 26 22:30:33 2008 From: webbox.uk at ...626... (Kris Douglas) Date: Fri, 26 Sep 2008 21:30:33 +0100 Subject: [Gambas-user] Get specific focus of tab Message-ID: <8d424b9e0809261330q50d6ed4eu1736c8fed483c728@...627...> Hello, i'm new to Gambas, using it for some basic apps. I was wondering how you get the focus of a specific tab on the tab container control. The only focus i can seem to apply is of the control itself, rather than individual tabs. Thanks, Kris Douglas Softdel Limited Hosting Services Web: www.softdel.net Mail: kris at ...1986... Company No. 6135915 Registered in England and Wales From patrik at ...1982... Fri Sep 26 22:03:04 2008 From: patrik at ...1982... (Patrik Karlsson) Date: Fri, 26 Sep 2008 22:03:04 +0200 Subject: [Gambas-user] Shortcuts in hidden menus will not work Message-ID: <200809262203.05058.patrik@...1982...> Hi, Im making a program where I can toggle the menus visibility via CTRL+M. The shortcuts in the menues does not work if the menus are not visible. I have solved this by making a popup menu, but is there nother way? Also, is there a quicker way to toggle the menu bar in one single command? Now I am hiding/showing the top most menues one at a time. From gambas at ...1... Sat Sep 27 00:18:06 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 27 Sep 2008 00:18:06 +0200 Subject: [Gambas-user] Restore fullscreen mode at Form_Open fails In-Reply-To: <200809270014.21568.gambas@...1...> References: <200809262248.38967.patrik@...1982...> <200809270014.21568.gambas@...1...> Message-ID: <200809270018.06553.gambas@...1...> On samedi 27 septembre 2008, Benoit Minisini wrote: > On vendredi 26 septembre 2008, Patrik Karlsson wrote: > > When I try this line in Form_Open > > ME.FullScreen = Settings["Main/FullScreen", FALSE] > > If the setting is true, the only thing that happens is that the program > > becomes a normal window in full size. > > > > However, if I have a timer that executes (once), after a short delay, the > > line above, it works just fine. > > > > Is there a better way to do this without the extra timer? > > It seems to work with gb.gtk, but not gb.qt. I need to investigate... As a workaround, I think you can set it in the constructor (_new) instead of Form_Open. It should work. Regards, -- Benoit Minisini From patrik at ...1982... Sat Sep 27 00:26:03 2008 From: patrik at ...1982... (Patrik Karlsson) Date: Sat, 27 Sep 2008 00:26:03 +0200 Subject: [Gambas-user] Shortcuts in hidden menus will not work Message-ID: <200809270026.03766.patrik@...1982...> Hi, Im making a program where I can toggle the menus visibility via CTRL+M. The shortcuts in the menues does not work if the menus are not visible. I have solved this by making a popup menu, but is there another way? Also, is there a quicker way to toggle the menu bar in one single command? Now I am hiding/showing the top most menues one at a time. From gambas at ...1... Sat Sep 27 00:36:33 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 27 Sep 2008 00:36:33 +0200 Subject: [Gambas-user] Restore fullscreen mode at Form_Open fails In-Reply-To: <200809270027.45681.patrik@...1982...> References: <200809262248.38967.patrik@...1982...> <200809270014.21568.gambas@...1...> <200809270027.45681.patrik@...1982...> Message-ID: <200809270036.33237.gambas@...1...> On samedi 27 septembre 2008, Patrik Karlsson wrote: > > > When I try this line in Form_Open > > > ME.FullScreen = Settings["Main/FullScreen", FALSE] > > > If the setting is true, the only thing that happens is that the program > > > becomes a normal window in full size. > > > > It seems to work with gb.gtk, but not gb.qt. I need to investigate... > > Ok, please do :) > It seems to be some sort of bug in Qt: after the Open event handler has been executed, the Qt library tells that the state of the window is "FullScreen", whereas it is shown normal just after! -- Benoit Minisini From doriano.blengino at ...1909... Sat Sep 27 09:15:03 2008 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Sat, 27 Sep 2008 09:15:03 +0200 Subject: [Gambas-user] Getting events from a modal shown form Message-ID: <48DDDD77.2050802@...1909...> Hi, I send the project about raising GetPage event. Look at FMain.class:26; the only way I found to get getPage event is to instantiate fmPreview.obs from Fmain. I tried to create it inside the fmPreview.setup() method, and attach it to blah blah blah; this is why in FMain:21 fmPreview.setup() is called with a parameter "ME". fmPreview.obs is disposed in fmPreview.form_close(). Also, I have some problems with rendering fonts in preview - they are imprecise, and some manipulation comes from practical tries, without a right knowledge. All the things are a little messy, but if you quickly see something wrong, any advice is appreciated. The biggest problem is to calculate the true width of a printed text, when this text is not actually printed on the true printer surface, but on a scaled-down surface (a DrawingArea). Thanks in advance, Best regards, Doriano Blengino -------------- next part -------------- A non-text attachment was scrubbed... Name: PrintDesigner-0.0.19.tar.gz Type: application/x-tgz Size: 75376 bytes Desc: not available URL: From klaine8 at ...626... Sat Sep 27 20:57:02 2008 From: klaine8 at ...626... (Kari Laine) Date: Sat, 27 Sep 2008 21:57:02 +0300 Subject: [Gambas-user] gambas3 compile problem In-Reply-To: <4247f5440809271149u122336den8314a62e1d37125@...627...> References: <4247f5440809271149u122336den8314a62e1d37125@...627...> Message-ID: <61452b690809271157o62c07bfcu4ac05ebd9a823160@...627...> On Sat, Sep 27, 2008 at 9:49 PM, Joshua Higgins wrote: > hello all, > > trying to compile gambas3 here, following instructions off website to the > letter (running Ubuntu Hardy on 32bit). I type ./reconf-all and get this: > > root at ...1984...:/home/development/gambas3/trunk# ./reconf-all/usr/bin/m4: > > configure.ac:6: ERROR: copying inserted file: No space left on device > It says here NO SPACE LEFT ON DEVICE !! your disk is full :-) Best Regards Kari Laine From rterry at ...1946... Sun Sep 28 02:53:59 2008 From: rterry at ...1946... (richard terry) Date: Sun, 28 Sep 2008 10:53:59 +1000 Subject: [Gambas-user] IDE bug: Click on text > cursor wrong position Message-ID: <200809281053.59243.rterry@...1946...> Version 1603. Much improved, however one problem. ONe cannot click at the start of the line, which can make copy and paste difficult. Regards Richard From doriano.blengino at ...1909... Sun Sep 28 17:33:08 2008 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Sun, 28 Sep 2008 17:33:08 +0200 Subject: [Gambas-user] destroying all panels In-Reply-To: <4247f5440809280554m183b87ebp2c6dc1fe6a5d1422@...627...> References: <4247f5440809280554m183b87ebp2c6dc1fe6a5d1422@...627...> Message-ID: <48DFA3B4.5010300@...1909...> Joshua Higgins ha scritto: > If I use > > windowpanel = New Panel(FMain) As "TaskPanel" > > many times to create loads of panels, how do I destroy all of them? Using > windowpanel.delete only destroys the last one created. > > You have to remember all of them (using an array, for example), or use the "last" in a event handler to kill the one who received the event, or cycle through them using FMain.children(). Every time you execute the above instruciotn, the variable windowpanel looses its previous content, so you "forget" the last panel. From gambas at ...1... Sun Sep 28 20:06:23 2008 From: gambas at ...1... (Benoit Minisini) Date: Sun, 28 Sep 2008 20:06:23 +0200 Subject: [Gambas-user] What is the 'Action' e.g when constructing a menu In-Reply-To: <48DFA509.1090102@...1909...> References: <200809281050.34663.rterry@...1946...> <48DFA509.1090102@...1909...> Message-ID: <200809282006.23040.gambas@...1...> On dimanche 28 septembre 2008, Doriano Blengino wrote: > richard terry ha scritto: > > I've often wondered what/how this is used. > > > > For example in the menu editor one gives the names, group, tag, and then > > there is an action textbox ? what for > > > > Any info/example appreciated, and thanks in advance. > > > > Richard > > You can use an "Action" to group together items (like menu items or > buttons) which can throw "actions". For example, you can have a button > and menu item which both save the file currently edited. You can > associate them together by assigning to them the action "SaveFile". > Then, you can enable or disable they together by executing: > > action["SaveFile"].Enabled = FALSE > > > In a complex application, where you can have many items related to a > single state, this can help to simplfy the work. > It is planned to extend this, and add more functionalities. > Moreover, each time a control related to an action is clicked, or activated, a public procedure named "Action_Activate" is called in the form, with the action name as argument. This way, you can centralize the management of all actions in a same form. Regards, -- Benoit Minisini From eilert-sprachen at ...221... Mon Sep 29 17:29:17 2008 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Mon, 29 Sep 2008 17:29:17 +0200 Subject: [Gambas-user] Bad string conversion Message-ID: <48E0F44D.4070802@...221...> Now I'm trying to convert a project from Gambas1 to Gambas2... There is a string array "listedat[]" which I want to sort. The original code was listedat.Sort(gb.Language) Gambas2 says "Bad string conversion", but I can't detect anything wrong here, the editor proposes to write it this way. So what's wrong? Thanks in advance! Rolf From wig at ...1809... Mon Sep 29 17:06:21 2008 From: wig at ...1809... (wig) Date: Mon, 29 Sep 2008 17:06:21 +0200 (CEST) Subject: [Gambas-user] How to wait until form is closed Message-ID: <36009.81.245.216.72.1222700781.squirrel@...1810...> I made two forms in the IDE. I want the form Test2 only to appear after the form Test1 is closed. Can I let the program wait for the first Form to be closed? PUBLIC SUB Main() FormTest1.Show() ' wait till FormTest1 is closed ? FormTest2.Show() ... From gambas at ...1... Mon Sep 29 17:58:44 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 29 Sep 2008 17:58:44 +0200 Subject: [Gambas-user] Cannot save file error on gambas2 svn snapshot In-Reply-To: <1f1e8c1b0809290836t18d37bfdtce4dbcc2b6468373@...627...> References: <1f1e8c1b0809290836t18d37bfdtce4dbcc2b6468373@...627...> Message-ID: <200809291758.44729.gambas@...1...> On lundi 29 septembre 2008, M0E Lnx wrote: > Recently built a snapshot of the gambas2 svn tree (revision 1601) as > instructed by beniot to fix a problem with the forms not translating > and the IDE crashing as I tried. > > That got fixed, however, now I have this other problem that didn't happen > before > > I get this error when I try to modify objects on a form. See attached > screenshot > > Please advice... thanks Please upgrade to the last revision (1612), the problem should be fixed. Regards, -- Benoit Minisini From rterry at ...1946... Tue Sep 30 23:38:02 2008 From: rterry at ...1946... (richard terry) Date: Wed, 1 Oct 2008 07:38:02 +1000 Subject: [Gambas-user] Need help understanding svn Message-ID: <200810010738.02559.rterry@...1946...> I wondered how to interpret this as my svn won't update. svn: Aborting commit: '/home/richard/coding/gambas2/trunk/.settings' remains in conflict Regards Richard