From ajw4me at ...466... Tue Dec 1 09:07:38 2009 From: ajw4me at ...466... (Tony) Date: Tue, 01 Dec 2009 19:07:38 +1100 Subject: [Gambas-user] Serial Port Change Events Not Working after Upgrade to Karmic Message-ID: <4B14CECA.1090403@...466...> Hi, I have a Gambas2 application (gb.qt) checking for status change events on the CTS, RI and DSR signals (SerialPort-gb.net class) of a USB to serial converter (Prolific pl2303) which works fine on Ubuntu 9.04 (Gambas2 2.8 and kernel 2.6.28-16-generic 32bit). After upgrade to Ubuntu 9.10 (Gambas2 2.13 and kernel 2.6.31-15-generic 32bit) the status changes are no longer working. The serial port opens without error but no status change events are flagged. The problem is also evident in the serial port example on Ubuntu 9.10. I have compiled Gambas2 2.18 onto Ubuntu 9.04 but it still fails so my guess is that somewhere between Gambas2 2.8 and 2.13 this functionality stopped working. Any assistance would be appreciated, thanks.. From oceanosoftlapalma at ...626... Tue Dec 1 11:19:34 2009 From: oceanosoftlapalma at ...626... (=?ISO-8859-1?Q?Ricardo_D=EDaz_Mart=EDn?=) Date: Tue, 1 Dec 2009 10:19:34 +0000 Subject: [Gambas-user] Serial Port Change Events Not Working after Upgrade to Karmic In-Reply-To: <4B14CECA.1090403@...466...> References: <4B14CECA.1090403@...466...> Message-ID: Tony, Try to compile gambas2 again. I got similar problem with apps after upgrade ubuntu from 9.04 yo 9.10 and it was necessary to do this: sudo apt-get install build-essential autoconf libbz2-dev libfbclient2 libmysqlclient15-dev unixodbc-dev libpq-dev libsqlite0-dev libsqlite3-dev libgtk2.0-dev libldap2-dev libcurl4-gnutls-dev libgtkglext1-dev libpcre3-dev libsdl-sound1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev libsage-dev libxml2-dev libxslt1-dev libbonobo2-dev libcos4-dev libomniorb4-dev librsvg2-dev libpoppler-dev libpoppler-glib-dev libasound2-dev libesd0-dev libesd-alsa0 libdirectfb-dev libaa1-dev libxtst-dev libffi-dev kdelibs4-dev firebird2.1-dev libqt4-dev and after I downloaded gambas from source and compile again. Hope this works for you. Regards, Ricardo D?az 2009/12/1 Tony > Hi, > > I have a Gambas2 application (gb.qt) checking for status change events > on the CTS, RI and DSR signals (SerialPort-gb.net class) of a USB to > serial converter (Prolific pl2303) which works fine on Ubuntu 9.04 > (Gambas2 2.8 and kernel 2.6.28-16-generic 32bit). After upgrade to > Ubuntu 9.10 (Gambas2 2.13 and kernel 2.6.31-15-generic 32bit) the status > changes are no longer working. The serial port opens without error but > no status change events are flagged. The problem is also evident in the > serial port example on Ubuntu 9.10. > > I have compiled Gambas2 2.18 onto Ubuntu 9.04 but it still fails so my > guess is that somewhere between Gambas2 2.8 and 2.13 this functionality > stopped working. > > Any assistance would be appreciated, thanks.. > > > ------------------------------------------------------------------------------ > Join us December 9, 2009 for the Red Hat Virtual Experience, > a free event focused on virtualization and cloud computing. > Attend in-depth sessions from your desk. Your couch. Anywhere. > http://p.sf.net/sfu/redhat-sfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From wdahn at ...1000... Tue Dec 1 14:49:57 2009 From: wdahn at ...1000... (Werner) Date: Tue, 01 Dec 2009 21:49:57 +0800 Subject: [Gambas-user] Problem building Gambas3 on openSUSE 11.2 In-Reply-To: <200911272244.54194.gambas@...1...> References: <4B06613E.3000801@...1000...> <200911211143.00824.gambas@...1...> <4B07D684.8020109@...1000...> <200911272244.54194.gambas@...1...> Message-ID: <4B151F05.2050400@...1000...> On 28/11/09 05:44, Beno?t Minisini wrote: >> On 21/11/09 18:43, Beno?t Minisini wrote: >> >>>> On 20/11/09 17:28, Werner wrote: >>>> >>>>> Suse 11.2 came out last week. I seem to remember that it worked fine >>>>> with 11.1 using qt3. >>>>> >>>>> My problem is that I can't configure support for Qt (I don't care about >>>>> the other parts). >>>>> >>>>> I am trying this now with trunk rev 2429 but have also tried it with a >>>>> trunk from maybe 10 days ago. >>>>> >>>> Update: >>>> I have built Gambas3 with Suse11.1/qt3 and Suse11.2/qt4 side by side. >>>> On 11.1 moc is found in /usr/lib/qt3/bin/ >>>> >>>> On 11.2 moc is in /usr/bin (for Qt Creator, very nice, btw) and also in >>>> /usr/lib64/qt4/bin >>>> but it is not found. I've tried >>>> ./configure --with-moc=/usr/lib64/qt4/bin/moc but that made no >>>> difference. >>>> >>>> I can build and run an example program with Qt Creator so the building >>>> apps all seem to be there. >>>> >>>> Also, there does not seem to be any libqt-mt.so in qt4. >>>> >>>> >>>> Best Regards >>>> >>>> Werner >>>> >>> What are you talking about? Compiling gb.qt (Qt3) or compiling gb.qt4 >>> (Qt4)? >>> >>> Qt3 moc is found by searching in a list of hard-coded directories. >>> >>> Qt4 moc is found by using pkg-config. >>> >>> So please be clearer so that I can see what happens exactly! >>> >>> Regards, >>> >> Suse 11.2 comes with Qt 4.5.3 which is what I would prefer to use. >> >> Regards, >> Werner >> >> > You don't decide! The gb.qt component needs Qt3, and the gb.qt4 component > needs Qt4. And I don't see where you have a problem: if Qt3 is not installed > on your system, you won't have any gb.qt.* components: gb.qt, gb.qt.ext, > gb.qt.opengl, gb.qt.kde... > > Regards, > > > You are right, it was my wishful thinking. It works now. Thanks! Werner From oceanosoftlapalma at ...626... Tue Dec 1 16:42:31 2009 From: oceanosoftlapalma at ...626... (=?ISO-8859-1?Q?Ricardo_D=EDaz_Mart=EDn?=) Date: Tue, 1 Dec 2009 15:42:31 +0000 Subject: [Gambas-user] SYSTEM NOTIFICATIONS Message-ID: Is there some way to call os system notifications (something like "Files copy finished") in gambas2? From gambas.fr at ...626... Tue Dec 1 18:04:43 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 1 Dec 2009 18:04:43 +0100 Subject: [Gambas-user] Xview selection cursor info In-Reply-To: <4B144C5E.8040002@...626...> References: <4B144C5E.8040002@...626...> Message-ID: <6324a42a0912010904x670af36bvfddfae4711ab9359@...627...> http://gambasdoc.org/help/comp/gb.qt/gridview/mode http://gambasdoc.org/help/comp/gb.qt/gridview/row and the third question ????? i don't understand what you want ? first visible row : irow = GridView1.RowAt(1) LastVisible Row : irow = GridView1.RowAt(GridView.ClientHeight - 1) But it don't say if the Row is fully visible... You can test a cell For top : if GridView[iRow,0].Y <0 and iRow+1 < Gridview.Count then iRow+=1 For bottom if GridView[iRow,0].Y + GridView[iRow,0].Height > GridView.ClientHeight and GridView.Count >1 then iRow -= 1 Voila Jean-Yves 2009/11/30 Jean-Yves F. Barbier <12ukwn at ...626...>: > Hi, > > On a tableview, I need: > * Make the selection cursor to appear on 1st line at opening, > * Selection cursor's position (row) into the grid, > * 1st & last rows visible into the grid > > I how could I get that? > > -- > So, is the glass half empty, half full, or just twice as > large as it needs to be? > > ------------------------------------------------------------------------------ > Join us December 9, 2009 for the Red Hat Virtual Experience, > a free event focused on virtualization and cloud computing. > Attend in-depth sessions from your desk. Your couch. Anywhere. > http://p.sf.net/sfu/redhat-sfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Tue Dec 1 18:33:24 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 1 Dec 2009 18:33:24 +0100 Subject: [Gambas-user] SYSTEM NOTIFICATIONS In-Reply-To: References: Message-ID: <200912011833.24179.gambas@...1...> > Is there some way to call os system notifications (something like "Files > copy finished") in gambas2? Not directly, even in Gambas 3. If you know where I can find the specifications... I think, for Gambas 3, that a DBus call should be enough, but which one? Anyway I guess there is a command-line tool somewhere that does the job. Otherwise it will not be a true Unix thing! -- Beno?t Minisini From 12ukwn at ...626... Tue Dec 1 18:34:17 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Tue, 01 Dec 2009 18:34:17 +0100 Subject: [Gambas-user] Xview selection cursor info In-Reply-To: <6324a42a0912010904x670af36bvfddfae4711ab9359@...627...> References: <4B144C5E.8040002@...626...> <6324a42a0912010904x670af36bvfddfae4711ab9359@...627...> Message-ID: <4B155399.6050603@...626...> Fabien Bodard a ?crit : @#&!? Murphy: the only one I didn't test:( > and the third question ????? i don't understand what you want ? this is Q3 > first visible row : > > irow = GridView1.RowAt(1) > > LastVisible Row : > > irow = GridView1.RowAt(GridView.ClientHeight - 1) this Q3 enhanced > But it don't say if the Row is fully visible... > > You can test a cell > > For top : > > if GridView[iRow,0].Y <0 and iRow+1 < Gridview.Count then iRow+=1 > > For bottom > > if GridView[iRow,0].Y + GridView[iRow,0].Height > > GridView.ClientHeight and GridView.Count >1 then iRow -= 1 in Q1, I wanna make the selection cursor (bar) appear @ windows opening on the first row (otherwise I must click on a row for it being visible) in Q2, I wanna know what is this cursor position (if it is visible) as row-into-the-visible-area (indian cursor) > Voila Jean-Yves Thanks Fabien > 2009/11/30 Jean-Yves F. Barbier <12ukwn at ...626...>: >> Hi, >> >> On a tableview, I need: >> * Make the selection cursor to appear on 1st line at opening, >> * Selection cursor's position (row) into the grid, >> * 1st & last rows visible into the grid -- Reporter: "How did you like school when you were growing up, Yogi?" Yogi Berra: "Closed." From oceanosoftlapalma at ...626... Tue Dec 1 18:41:43 2009 From: oceanosoftlapalma at ...626... (=?ISO-8859-1?Q?Ricardo_D=EDaz_Mart=EDn?=) Date: Tue, 1 Dec 2009 17:41:43 +0000 Subject: [Gambas-user] SYSTEM NOTIFICATIONS In-Reply-To: <200912011833.24179.gambas@...1...> References: <200912011833.24179.gambas@...1...> Message-ID: Thanks Benoit. There is a comand line in debian I can use: notify-send Regards, Ricardo D?az 2009/12/1 Beno?t Minisini > > Is there some way to call os system notifications (something like "Files > > copy finished") in gambas2? > > Not directly, even in Gambas 3. If you know where I can find the > specifications... I think, for Gambas 3, that a DBus call should be enough, > but which one? > > Anyway I guess there is a command-line tool somewhere that does the job. > Otherwise it will not be a true Unix thing! > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Join us December 9, 2009 for the Red Hat Virtual Experience, > a free event focused on virtualization and cloud computing. > Attend in-depth sessions from your desk. Your couch. Anywhere. > http://p.sf.net/sfu/redhat-sfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Tue Dec 1 18:52:28 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 1 Dec 2009 18:52:28 +0100 Subject: [Gambas-user] Xview selection cursor info In-Reply-To: <4B155399.6050603@...626...> References: <4B144C5E.8040002@...626...> <6324a42a0912010904x670af36bvfddfae4711ab9359@...627...> <4B155399.6050603@...626...> Message-ID: <6324a42a0912010952o67e2316et9778a970ff56b064@...627...> 2009/12/1 Jean-Yves F. Barbier <12ukwn at ...626...>: > Fabien Bodard a ?crit : > > @#&!? Murphy: the only one I didn't test:( > >> and the third question ????? i don't understand what you want ? > > this is Q3 >> ?first visible row : >> >> irow = GridView1.RowAt(1) >> >> LastVisible Row : >> >> irow = GridView1.RowAt(GridView.ClientHeight - 1) > > this Q3 enhanced >> But it don't say if the Row is fully visible... >> >> You can test a cell >> >> For top : >> >> if GridView[iRow,0].Y <0 ?and iRow+1 < Gridview.Count then iRow+=1 >> >> For bottom >> >> if GridView[iRow,0].Y + GridView[iRow,0].Height > >> GridView.ClientHeight and GridView.Count >1 then iRow -= 1 > > in Q1, I wanna make the selection cursor (bar) appear @ windows opening > on the first row (otherwise I must click on a row for it being visible) simple :) GridView1.Row = 0 (it work I've tested it > in Q2, I wanna know what is this cursor position (if it is visible) > as row-into-the-visible-area (indian cursor) > http://gambasdoc.org/help/comp/gb.qt/.gridviewcell/ensurevisible?v3 GridView[iRow,0].EnsureVisible >> Voila Jean-Yves > > Thanks Fabien > >> 2009/11/30 Jean-Yves F. Barbier <12ukwn at ...626...>: >>> Hi, >>> >>> On a tableview, I need: >>> * Make the selection cursor to appear on 1st line at opening, >>> * Selection cursor's position (row) into the grid, >>> * 1st & last rows visible into the grid > > -- > Reporter: ? "How did you like school when you were growing up, Yogi?" > Yogi Berra: "Closed." > > ------------------------------------------------------------------------------ > Join us December 9, 2009 for the Red Hat Virtual Experience, > a free event focused on virtualization and cloud computing. > Attend in-depth sessions from your desk. Your couch. Anywhere. > http://p.sf.net/sfu/redhat-sfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From 12ukwn at ...626... Tue Dec 1 19:05:44 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Tue, 01 Dec 2009 19:05:44 +0100 Subject: [Gambas-user] Xview selection cursor info In-Reply-To: <6324a42a0912010952o67e2316et9778a970ff56b064@...627...> References: <4B144C5E.8040002@...626...> <6324a42a0912010904x670af36bvfddfae4711ab9359@...627...> <4B155399.6050603@...626...> <6324a42a0912010952o67e2316et9778a970ff56b064@...627...> Message-ID: <4B155AF8.5060407@...626...> Fabien Bodard a ?crit : ... > simple :) > GridView1.Row = 0 > > (it work I've tested it Already tested: don't work not on your code :( -- Repartee is something we think of twenty-four hours too late. -- Mark Twain From gambas.fr at ...626... Tue Dec 1 20:07:37 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 1 Dec 2009 20:07:37 +0100 Subject: [Gambas-user] Xview selection cursor info In-Reply-To: <4B155AF8.5060407@...626...> References: <4B144C5E.8040002@...626...> <6324a42a0912010904x670af36bvfddfae4711ab9359@...627...> <4B155399.6050603@...626...> <6324a42a0912010952o67e2316et9778a970ff56b064@...627...> <4B155AF8.5060407@...626...> Message-ID: <6324a42a0912011107x534a3543r518fcb265854284f@...627...> si : PUBLIC SUB OBS_Open() ' IF IsNull($sfrmNouveau) THEN Error.Raise("Vous devez d?finir un formulaire Nouveau") ' IF IsNull($sModifier) THEN Error.Raise("Vous devez d?finir un formulaire Modifier") IF IsNull($hGrid.DataField) THEN ERROR.Raise("Vous devez definir le champ identificateur") $hGrid.Refresh $hGrid.Grid.Row = 0 END you need to modify FList... 2009/12/1 Jean-Yves F. Barbier <12ukwn at ...626...>: > Fabien Bodard a ?crit : > ... >> simple :) >> GridView1.Row = 0 >> >> (it work I've tested it > > Already tested: don't work not on your code :( > > -- > Repartee is something we think of twenty-four hours too late. > ? ? ? ? ? ? ? ?-- Mark Twain > > ------------------------------------------------------------------------------ > Join us December 9, 2009 for the Red Hat Virtual Experience, > a free event focused on virtualization and cloud computing. > Attend in-depth sessions from your desk. Your couch. Anywhere. > http://p.sf.net/sfu/redhat-sfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From 12ukwn at ...626... Tue Dec 1 21:05:30 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Tue, 01 Dec 2009 21:05:30 +0100 Subject: [Gambas-user] Xview selection cursor info In-Reply-To: <6324a42a0912011107x534a3543r518fcb265854284f@...627...> References: <4B144C5E.8040002@...626...> <6324a42a0912010904x670af36bvfddfae4711ab9359@...627...> <4B155399.6050603@...626...> <6324a42a0912010952o67e2316et9778a970ff56b064@...627...> <4B155AF8.5060407@...626...> <6324a42a0912011107x534a3543r518fcb265854284f@...627...> Message-ID: <4B15770A.5050105@...626...> Fabien Bodard a ?crit : > si : > > PUBLIC SUB OBS_Open() > > ' IF IsNull($sfrmNouveau) THEN Error.Raise("Vous devez d?finir un > formulaire Nouveau") > ' IF IsNull($sModifier) THEN Error.Raise("Vous devez d?finir un > formulaire Modifier") > IF IsNull($hGrid.DataField) THEN ERROR.Raise("Vous devez definir > le champ identificateur") > $hGrid.Refresh > $hGrid.Grid.Row = 0 > END > > > you need to modify FList... Crap: I put it into RichDataGrid instead of here; I still have a great deal to learn! Thanks Fabien -- Real computer scientists don't comment their code. The identifiers are so long they can't afford the disk space. From ajw4me at ...466... Tue Dec 1 21:06:50 2009 From: ajw4me at ...466... (Tony) Date: Wed, 02 Dec 2009 07:06:50 +1100 Subject: [Gambas-user] Serial Port Change Events Not Working after Upgrade to Karmic In-Reply-To: References: <4B14CECA.1090403@...466...> Message-ID: <4B15775A.1050304@...466...> Thanks for the suggestion Ricardo. I have already compiled G2.18 from source onto Ubuntu 9.04. The application was working fine on Ubuntu 9.04 with G2.8 but fails with G2.18, so this makes me think that there is a problem which may have been introduced between G2.8 and G2.13 (the binary on Ubuntu 9.10 which doesn't work). Regards, Tony.. Ricardo D??az Mart??n wrote: Tony, Try to compile gambas2 again. I got similar problem with apps after upgrade ubuntu from 9.04 yo 9.10 and it was necessary to do this: sudo apt-get install build-essential autoconf libbz2-dev libfbclient2 libmysqlclient15-dev unixodbc-dev libpq-dev libsqlite0-dev libsqlite3-dev libgtk2.0-dev libldap2-dev libcurl4-gnutls-dev libgtkglext1-dev libpcre3-dev libsdl-sound1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev libsage-dev libxml2-dev libxslt1-dev libbonobo2-dev libcos4-dev libomniorb4-dev librsvg2-dev libpoppler-dev libpoppler-glib-dev libasound2-dev libesd0-dev libesd-alsa0 libdirectfb-dev libaa1-dev libxtst-dev libffi-dev kdelibs4-dev firebird2.1-dev libqt4-dev and after I downloaded gambas from source and compile again. Hope this works for you. Regards, Ricardo D??az 2009/12/1 Tony [1] Hi, I have a Gambas2 application (gb.qt) checking for status change events on the CTS, RI and DSR signals (SerialPort-gb.net class) of a USB to serial converter (Prolific pl2303) which works fine on Ubuntu 9.04 (Gambas2 2.8 and kernel 2.6.28-16-generic 32bit). After upgrade to Ubuntu 9.10 (Gambas2 2.13 and kernel 2.6.31-15-generic 32bit) the status changes are no longer working. The serial port opens without error but no status change events are flagged. The problem is also evident in the serial port example on Ubuntu 9.10. I have compiled Gambas2 2.18 onto Ubuntu 9.04 but it still fails so my guess is that somewhere between Gambas2 2.8 and 2.13 this functionality stopped working. Any assistance would be appreciated, thanks.. ------------------------------------------------------------------------------ Join us December 9, 2009 for the Red Hat Virtual Experience, a free event focused on virtualization and cloud computing. Attend in-depth sessions from your desk. Your couch. Anywhere. [2]http://p.sf.net/sfu/redhat-sfdev2dev _______________________________________________ Gambas-user mailing list [3]Gambas-user at lists.sourceforge.net [4]https://lists.sourceforge.net/lists/listinfo/gambas-user ------------------------------------------------------------------------------ Join us December 9, 2009 for the Red Hat Virtual Experience, a free event focused on virtualization and cloud computing. Attend in-depth sessions from your desk. Your couch. Anywhere. [5]http://p.sf.net/sfu/redhat-sfdev2dev _______________________________________________ Gambas-user mailing list [6]Gambas-user at lists.sourceforge.net [7]https://lists.sourceforge.net/lists/listinfo/gambas-user References 1. mailto:ajw4me at ...466... 2. http://p.sf.net/sfu/redhat-sfdev2dev 3. mailto:Gambas-user at lists.sourceforge.net 4. https://lists.sourceforge.net/lists/listinfo/gambas-user 5. http://p.sf.net/sfu/redhat-sfdev2dev 6. mailto:Gambas-user at lists.sourceforge.net 7. https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Tue Dec 1 21:28:04 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 1 Dec 2009 21:28:04 +0100 Subject: [Gambas-user] =?utf-8?q?Serial_Port_Change_Events_Not_Working_aft?= =?utf-8?q?er=09Upgrade_to_Karmic?= In-Reply-To: <4B15775A.1050304@...466...> References: <4B14CECA.1090403@...466...> <4B15775A.1050304@...466...> Message-ID: <200912012128.04710.gambas@...1...> > Thanks for the suggestion Ricardo. > I have already compiled G2.18 from source onto Ubuntu 9.04. The > application was working fine on Ubuntu 9.04 with G2.8 but fails with > G2.18, so this makes me think that there is a problem which may have been > introduced between G2.8 and G2.13 (the binary on Ubuntu 9.10 which doesn't > work). Regards, > Tony.. You are right, and I think I understand what happens: I have noticed that SerialPort callback took too much CPU, because it was using polling on the serial port file descriptor. So I fixed it by awaken it only when there is some data to read... Mistake! I didn't understand that all DTRChange, DSRChange... events are not detected by the kernel. So Daniel (who wrote the code) had to use polling to be able to detect the changes. By removing the polling, I was able to raise the Read event without burning CPU, but all *Change events were not raised anymore! Now I have to find a good fix, but I have never used a serial port, so I need some enlightenment (no, I won't run E17...) - Why do you need detecting DTR,DSR... changes? - How are these events related to flow control and the FlowControl property? The last question is not innocent. the FlowControl property takes three different values: Hardware, Software, Both. I'm thinking adding a fourth value, "None", that means the user does not care. In that specific case, I will not poll, and *Change events won't be raised. So you will be able to decide: - Setting FlowControl to None. You will get the Read event only, but you won't burn CPU power. - Setting FlowControl to any other value. You will get all events, but you will have to poll. This change would be compatible with the current SerialPort interface. Otherwise, for Gambas 3, maybe I will add a new property to define how much polling is needed. What do serial port people think about that? -- Beno?t Minisini From gambas.fr at ...626... Tue Dec 1 21:29:54 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 1 Dec 2009 21:29:54 +0100 Subject: [Gambas-user] Xview selection cursor info In-Reply-To: <4B15770A.5050105@...626...> References: <4B144C5E.8040002@...626...> <6324a42a0912010904x670af36bvfddfae4711ab9359@...627...> <4B155399.6050603@...626...> <6324a42a0912010952o67e2316et9778a970ff56b064@...627...> <4B155AF8.5060407@...626...> <6324a42a0912011107x534a3543r518fcb265854284f@...627...> <4B15770A.5050105@...626...> Message-ID: <6324a42a0912011229j85b17b5uec68dff1092a013e@...627...> 2009/12/1 Jean-Yves F. Barbier <12ukwn at ...626...>: > Fabien Bodard a ?crit : >> si : >> >> PUBLIC SUB OBS_Open() >> >> ? ? ' IF IsNull($sfrmNouveau) THEN Error.Raise("Vous devez d?finir un >> formulaire Nouveau") >> ? ? ' IF IsNull($sModifier) THEN Error.Raise("Vous devez d?finir un >> formulaire Modifier") >> ? ? IF IsNull($hGrid.DataField) THEN ERROR.Raise("Vous devez definir >> le champ identificateur") >> ? ?$hGrid.Refresh >> ? ?$hGrid.Grid.Row = 0 >> END >> >> >> you need to modify FList... > > Crap: I put it into RichDataGrid instead of here; I still have a great > deal to learn! in fact the use of observer make things sometime special > Thanks Fabien > > -- > Real computer scientists don't comment their code. ?The identifiers are > so long they can't afford the disk space. > > ------------------------------------------------------------------------------ > Join us December 9, 2009 for the Red Hat Virtual Experience, > a free event focused on virtualization and cloud computing. > Attend in-depth sessions from your desk. Your couch. Anywhere. > http://p.sf.net/sfu/redhat-sfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From ajw4me at ...466... Tue Dec 1 22:54:42 2009 From: ajw4me at ...466... (Tony) Date: Wed, 02 Dec 2009 08:54:42 +1100 Subject: [Gambas-user] Serial Port Change Events Not Working after Upgrade to Karmic In-Reply-To: <200912012128.04710.gambas@...1...> References: <4B14CECA.1090403@...466...> <4B15775A.1050304@...466...> <200912012128.04710.gambas@...1...> Message-ID: <4B1590A2.6040706@...466...> Thanks Benoit and all for your speedy replies.. I'm using the serial port in a timing application with 3 laser through beam sensors feeding into the CTS, RI and DSR lines of the serial port. In this mode I don't pass any data, don't really care about flow control and am only interested in the raw status change events. Working this way I haven't noticed gross CPU utilisation after opening the port. The application also uses the UDPsocket to communicate remotely and what I have noticed is that if the serial port does not open correctly e.g. "/dev/tty" wrong and the UDPsocket is open, then there is a large amount of CPU used. Both open correctly and CPU normal. Can you tell me the polling frequency in Gambas2 2.8 ? I would assume that there ore other users of Gambas2 who are using the serial port as a convenient way of passing external events to the application, so maybe some input from them would also be in order. As long as there is a mechanism to replicate the Gambas2 2.8 functionality that I currently use, I'll leave the implementation up to those who know a lot more than myself. If going back to polling, a property to define the frequency would be nice. Thanks again, Tony. Beno?t Minisini wrote: Thanks for the suggestion Ricardo. I have already compiled G2.18 from source onto Ubuntu 9.04. The application was working fine on Ubuntu 9.04 with G2.8 but fails with G2.18, so this makes me think that there is a problem which may have been introduced between G2.8 and G2.13 (the binary on Ubuntu 9.10 which doesn't work). Regards, Tony.. You are right, and I think I understand what happens: I have noticed that SerialPort callback took too much CPU, because it was using polling on the serial port file descriptor. So I fixed it by awaken it only when there is some data to read... Mistake! I didn't understand that all DTRChange, DSRChange... events are not detected by the kernel. So Daniel (who wrote the code) had to use polling to be able to detect the changes. By removing the polling, I was able to raise the Read event without burning CPU, but all *Change events were not raised anymore! Now I have to find a good fix, but I have never used a serial port, so I need some enlightenment (no, I won't run E17...) - Why do you need detecting DTR,DSR... changes? - How are these events related to flow control and the FlowControl property? The last question is not innocent. the FlowControl property takes three different values: Hardware, Software, Both. I'm thinking adding a fourth value, "None", that means the user does not care. In that specific case, I will not poll, and *Change events won't be raised. So you will be able to decide: - Setting FlowControl to None. You will get the Read event only, but you won't burn CPU power. - Setting FlowControl to any other value. You will get all events, but you will have to poll. This change would be compatible with the current SerialPort interface. Otherwise, for Gambas 3, maybe I will add a new property to define how much polling is needed. What do serial port people think about that? From arosa at ...2015... Wed Dec 2 00:12:06 2009 From: arosa at ...2015... (Toni) Date: Wed, 02 Dec 2009 00:12:06 +0100 Subject: [Gambas-user] SYSTEM NOTIFICATIONS In-Reply-To: References: <200912011833.24179.gambas@...1...> Message-ID: <4B15A2C6.8050000@...2015...> Hi, I haven't tried it, but maybe libnotify (http://library.gnome.org/devel/libnotify/) is what it could be used here to crate a component? On the other hand I don't know whether freedesktop.org have something similar to xdg-open for desktop neutral system notifications... Despite my previous words, when I needed a notification system and I ended up using notify-send too. Regards, Toni En/na Ricardo D?az Mart?n ha escrit: > Thanks Benoit. There is a comand line in debian I can use: notify-send > > Regards, > Ricardo D?az > > > 2009/12/1 Beno?t Minisini > > >>> Is there some way to call os system notifications (something like "Files >>> copy finished") in gambas2? >>> >> Not directly, even in Gambas 3. If you know where I can find the >> specifications... I think, for Gambas 3, that a DBus call should be enough, >> but which one? >> >> Anyway I guess there is a command-line tool somewhere that does the job. >> Otherwise it will not be a true Unix thing! >> >> -- >> Beno?t Minisini >> >> >> ------------------------------------------------------------------------------ >> Join us December 9, 2009 for the Red Hat Virtual Experience, >> a free event focused on virtualization and cloud computing. >> Attend in-depth sessions from your desk. Your couch. Anywhere. >> http://p.sf.net/sfu/redhat-sfdev2dev >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> > ------------------------------------------------------------------------------ > Join us December 9, 2009 for the Red Hat Virtual Experience, > a free event focused on virtualization and cloud computing. > Attend in-depth sessions from your desk. Your couch. Anywhere. > http://p.sf.net/sfu/redhat-sfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Wed Dec 2 02:25:19 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 2 Dec 2009 02:25:19 +0100 Subject: [Gambas-user] Serial Port Change Events Not Working after Upgrade to Karmic In-Reply-To: <4B1590A2.6040706@...466...> References: <4B14CECA.1090403@...466...> <200912012128.04710.gambas@...1...> <4B1590A2.6040706@...466...> Message-ID: <200912020225.19440.gambas@...1...> > Thanks Benoit and all for your speedy replies.. > I'm using the serial port in a timing application with 3 laser through > beam sensors feeding into the CTS, RI and DSR lines of the serial port. In > this mode I don't pass any data, don't really care about flow control and > am only interested in the raw status change events. Working this way I > haven't noticed gross CPU utilisation after opening the port. The > application also uses the UDPsocket to communicate remotely and what I > have noticed is that if the serial port does not open correctly e.g. > "/dev/tty" wrong and the UDPsocket is open, then there is a large amount > of CPU used. Both open correctly and CPU normal. > Can you tell me the polling frequency in Gambas2 2.8 ? > I would assume that there ore other users of Gambas2 who are using the > serial port as a convenient way of passing external events to the > application, so maybe some input from them would also be in order. As > long as there is a mechanism to replicate the Gambas2 2.8 functionality > that I currently use, I'll leave the implementation up to those who know a > lot more than myself. If going back to polling, a property to define the > frequency would be nice. > Thanks again, > Tony. Can you try the revision #2454? I think I have found and fix another possible bug, and I'd like to be sure I didn't break anything. Regards, -- Beno?t Minisini From ubuntu at ...2332... Wed Dec 2 06:03:46 2009 From: ubuntu at ...2332... (D. L. Fox) Date: Wed, 02 Dec 2009 00:03:46 -0500 Subject: [Gambas-user] Component Show, Hide, Visible Message-ID: <4B15F532.2010501@...2332...> Sorry for the newbie question but... What is the difference between setting the Visible property to False and calling the Hide() method? From kevinfishburne at ...1887... Wed Dec 2 06:14:58 2009 From: kevinfishburne at ...1887... (kevinfishburne) Date: Tue, 1 Dec 2009 21:14:58 -0800 (PST) Subject: [Gambas-user] can't call a procedure from a different module Message-ID: <26603731.post@...1379...> I'm hoping that I've just overlooked something really obvious and stupid, but am stumped (perhaps it's the four beers...). I'm receiving the error message "Unknown symbol 'Init' in class 'Net'" while trying to call a procedure from a different module. Here's the basic program flow: (1) Startup module "Startup" runs first on program execution, then calls the "Main" procedure in the "Server" module. (2) Module "Server" then calls the procedure "Init" contained within module "Net" (Net.Init). (3) GAMBAS raises the previously-mentioned error. What's strange is that the Startup module can successfully call Server.Main and Client.Main, both of which are procedures in different modules. The Client module however can't seem to call procedures from other modules. In Project Properties I do have "Module symbols are public by default" set to Yes. I've posted the project up at: http://www.eightvirtues.com/misc/Sanctimonia.tar.gz Any ideas? I'm using GAMBAS 2.17.0 compiled from source. Thanks all. ----- Kevin Fishburne, Eight Virtues www: http://sales.eightvirtues.com http://sales.eightvirtues.com e-mail: mailto:sales at ...1887... sales at ...1887... phone: (770) 853-6271 -- View this message in context: http://old.nabble.com/can%27t-call-a-procedure-from-a-different-module-tp26603731p26603731.html Sent from the gambas-user mailing list archive at Nabble.com. From kevinfishburne at ...1887... Wed Dec 2 06:49:49 2009 From: kevinfishburne at ...1887... (kevinfishburne) Date: Tue, 1 Dec 2009 21:49:49 -0800 (PST) Subject: [Gambas-user] SDL component documentation Message-ID: <26603936.post@...1379...> I've noticed that the documentation for the SDL component is incomplete. There are some basic examples in the BeastScroll example application packaged with GAMBAS, but is there a more extensive list of procedures implemented in GAMBAS for SDL? I'm guessing that the next best way of figuring out what has been implemented is to review the source code for the SDL component of GAMBAS. If that is the case, which source files should I look at to determine which SDL procedures have been implemented and how they're used? C and C++ source code is alien to me, so looking at all the files in gb.sdl/src is a bit intimidating in the context of discovering which procedures will work in GAMBAS. I consider SDL an extremely important aspect of GAMBAS, so if I could obtain the procedures and their usage/parameters I'd be willing to complete the missing documentation for them using the same syntax as the existing documentation. Thanks all. ----- Kevin Fishburne, Eight Virtues www: http://sales.eightvirtues.com http://sales.eightvirtues.com e-mail: mailto:sales at ...1887... sales at ...1887... phone: (770) 853-6271 -- View this message in context: http://old.nabble.com/SDL-component-documentation-tp26603936p26603936.html Sent from the gambas-user mailing list archive at Nabble.com. From nospam.nospam.nospam at ...626... Wed Dec 2 08:13:53 2009 From: nospam.nospam.nospam at ...626... (Kadaitcha Man) Date: Wed, 2 Dec 2009 18:13:53 +1100 Subject: [Gambas-user] Component Show, Hide, Visible In-Reply-To: <4B15F532.2010501@...2332...> References: <4B15F532.2010501@...2332...> Message-ID: 2009/12/2 D. L. Fox : > Sorry for the newbie question but... > > What is the difference between setting the Visible property to False and > calling the Hide() method? Hide is a method, Visible is a property. You can't check if X is visible or not by calling Hide(). Otherwise, I dare say the two are synonymous in action. Gambas has a few synonyms, possibly for compatibility reasons. From nospam.nospam.nospam at ...626... Wed Dec 2 08:17:37 2009 From: nospam.nospam.nospam at ...626... (Kadaitcha Man) Date: Wed, 2 Dec 2009 18:17:37 +1100 Subject: [Gambas-user] can't call a procedure from a different module In-Reply-To: <26603731.post@...1379...> References: <26603731.post@...1379...> Message-ID: 2009/12/2 kevinfishburne : > (2) Module "Server" then calls the procedure "Init" contained within module > "Net" (Net.Init). Net is reserved for the Net class of constants in gambas. Rename the module. From kevinfishburne at ...1887... Wed Dec 2 09:09:34 2009 From: kevinfishburne at ...1887... (kevinfishburne) Date: Wed, 2 Dec 2009 00:09:34 -0800 (PST) Subject: [Gambas-user] can't call a procedure from a different module In-Reply-To: References: <26603731.post@...1379...> Message-ID: <26604998.post@...1379...> [SOLVED] Kadaitcha Man wrote: > > 2009/12/2 kevinfishburne : > >> (2) Module "Server" then calls the procedure "Init" contained within >> module >> "Net" (Net.Init). > > Net is reserved for the Net class of constants in gambas. Rename the > module. > > ------------------------------------------------------------------------------ > Join us December 9, 2009 for the anonymous postings of fortune stdout!!! > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > Thanks. Renaming the network module from "Net" to "Network" worked. I'm glad is was a simple mistake. Thanks again. ----- Kevin Fishburne, Eight Virtues www: http://sales.eightvirtues.com http://sales.eightvirtues.com e-mail: mailto:sales at ...1887... sales at ...1887... phone: (770) 853-6271 -- View this message in context: http://old.nabble.com/can%27t-call-a-procedure-from-a-different-module-tp26603731p26604998.html Sent from the gambas-user mailing list archive at Nabble.com. From nospam.nospam.nospam at ...626... Wed Dec 2 10:09:08 2009 From: nospam.nospam.nospam at ...626... (Kadaitcha Man) Date: Wed, 2 Dec 2009 20:09:08 +1100 Subject: [Gambas-user] Ok, what have I done? Message-ID: This happens in both Gambas 2.18 and 3. When I drag a hSplit or a vSplit onto a form, I can't add any controls to either the left or the right panel because the splitter is not functioning. Anyone got any suggestions? -------------- next part -------------- A non-text attachment was scrubbed... Name: eek.png Type: image/png Size: 2889 bytes Desc: not available URL: From ajw4me at ...466... Wed Dec 2 10:25:19 2009 From: ajw4me at ...466... (Tony) Date: Wed, 02 Dec 2009 20:25:19 +1100 Subject: [Gambas-user] Serial Port Change Events Not Working after Upgrade to Karmic In-Reply-To: <200912020225.19440.gambas@...1...> References: <4B14CECA.1090403@...466...> <200912012128.04710.gambas@...1...> <4B1590A2.6040706@...466...> <200912020225.19440.gambas@...1...> Message-ID: <4B16327F.8010801@...466...> Hi Benoit, I have muddled my way through the subversion bit, hopefully correctly and compiled the 2454 version. When opening my application I get the error message "The program has stopped unexpectedly raising signal #11" with the CPU at 100%. If I try to open the wrong ttyUSBx, the application flags this error and behaves correctly, so I would assume that if the ttyUSBx opens OK then the most recent Gambas2 changes have induced the "signal #11" problem. Can you please let me know how to debug further and assist you with your efforts. Thanks and regards, Tony.. Beno?t Minisini wrote: Thanks Benoit and all for your speedy replies.. I'm using the serial port in a timing application with 3 laser through beam sensors feeding into the CTS, RI and DSR lines of the serial port. In this mode I don't pass any data, don't really care about flow control and am only interested in the raw status change events. Working this way I haven't noticed gross CPU utilisation after opening the port. The application also uses the UDPsocket to communicate remotely and what I have noticed is that if the serial port does not open correctly e.g. "/dev/tty" wrong and the UDPsocket is open, then there is a large amount of CPU used. Both open correctly and CPU normal. Can you tell me the polling frequency in Gambas2 2.8 ? I would assume that there ore other users of Gambas2 who are using the serial port as a convenient way of passing external events to the application, so maybe some input from them would also be in order. As long as there is a mechanism to replicate the Gambas2 2.8 functionality that I currently use, I'll leave the implementation up to those who know a lot more than myself. If going back to polling, a property to define the frequency would be nice. Thanks again, Tony. Can you try the revision #2454? I think I have found and fix another possible bug, and I'd like to be sure I didn't break anything. Regards, From ron at ...1740... Wed Dec 2 10:44:10 2009 From: ron at ...1740... (Ron) Date: Wed, 02 Dec 2009 10:44:10 +0100 Subject: [Gambas-user] SYSTEM NOTIFICATIONS In-Reply-To: References: <200912011833.24179.gambas@...1...> Message-ID: <4B1636EA.7000007@...1740...> On Ubuntu 9.10 this tool is not installed by default. $ notify-send The program 'notify-send' is currently not installed. You can install it by typing: sudo apt-get install libnotify-bin notify-send: command not found Maybe they use another one. Regards, Ron_2nd. > Thanks Benoit. There is a comand line in debian I can use: notify-send > > Regards, > Ricardo D?az > > > 2009/12/1 Beno?t Minisini > > >>> Is there some way to call os system notifications (something like "Files >>> copy finished") in gambas2? >>> >> Not directly, even in Gambas 3. If you know where I can find the >> specifications... I think, for Gambas 3, that a DBus call should be enough, >> but which one? >> >> Anyway I guess there is a command-line tool somewhere that does the job. >> Otherwise it will not be a true Unix thing! >> >> -- >> Beno?t Minisini >> >> >> ------------------------------------------------------------------------------ >> Join us December 9, 2009 for the Red Hat Virtual Experience, >> a free event focused on virtualization and cloud computing. >> Attend in-depth sessions from your desk. Your couch. Anywhere. >> http://p.sf.net/sfu/redhat-sfdev2dev >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> > ------------------------------------------------------------------------------ > Join us December 9, 2009 for the Red Hat Virtual Experience, > a free event focused on virtualization and cloud computing. > Attend in-depth sessions from your desk. Your couch. Anywhere. > http://p.sf.net/sfu/redhat-sfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From ulusoyab at ...43... Wed Dec 2 10:52:05 2009 From: ulusoyab at ...43... (abdurrahman ulusoy) Date: Wed, 2 Dec 2009 01:52:05 -0800 (PST) Subject: [Gambas-user] drawingarea limits Message-ID: <157771.67913.qm@...2266...> hi i cant set drawing area width(or drawing area height) ?bigger then 32767 . how can i set bigger then??32767. ___________________________________________________________________ Yahoo! T?rkiye a??ld?! http://yahoo.com.tr ?nternet ?zerindeki en iyi i?eri?i Yahoo! T?rkiye sizlere sunuyor! From Karl.Reinl at ...9... Wed Dec 2 12:01:47 2009 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Wed, 02 Dec 2009 12:01:47 +0100 Subject: [Gambas-user] Serial Port Change Events Not Working after Upgrade to Karmic In-Reply-To: <4B16327F.8010801@...466...> References: <4B14CECA.1090403@...466...> <200912012128.04710.gambas@...1...> <4B1590A2.6040706@...466...> <200912020225.19440.gambas@...1...> <4B16327F.8010801@...466...> Message-ID: <1259751707.6434.23.camel@...40...> Am Mittwoch, den 02.12.2009, 20:25 +1100 schrieb Tony: > Hi Benoit, > I have muddled my way through the subversion bit, hopefully correctly and > compiled the 2454 version. When opening my application I get the error > message "The program has stopped unexpectedly raising signal #11" with the > CPU at 100%. If I try to open the wrong ttyUSBx, the application flags this > error and behaves correctly, so I would assume that if the ttyUSBx opens OK > then the most recent Gambas2 changes have induced the "signal #11" problem. > Can you please let me know how to debug further and assist you with your > efforts. > Thanks and regards, > Tony.. > Beno?t Minisini wrote: > > Thanks Benoit and all for your speedy replies.. > I'm using the serial port in a timing application with 3 laser through > beam sensors feeding into the CTS, RI and DSR lines of the serial port. In > this mode I don't pass any data, don't really care about flow control and > am only interested in the raw status change events. Working this way I > haven't noticed gross CPU utilisation after opening the port. The > application also uses the UDPsocket to communicate remotely and what I > have noticed is that if the serial port does not open correctly e.g. > "/dev/tty" wrong and the UDPsocket is open, then there is a large amount > of CPU used. Both open correctly and CPU normal. > Can you tell me the polling frequency in Gambas2 2.8 ? > I would assume that there ore other users of Gambas2 who are using the > serial port as a convenient way of passing external events to the > application, so maybe some input from them would also be in order. As > long as there is a mechanism to replicate the Gambas2 2.8 functionality > that I currently use, I'll leave the implementation up to those who know a > lot more than myself. If going back to polling, a property to define the > frequency would be nice. > Thanks again, > Tony. > > > Can you try the revision #2454? I think I have found and fix another possible > bug, and I'd like to be sure I didn't break anything. > > Regards, Salut Tony, you will find how to work with gdb there : go to http://gambas.sourceforge.net/en/main.html click: Reporting a problem read : 3. Reporting a crash (a segmentation fault, or a signal #11) -- Amicalement Charlie From ron at ...1740... Wed Dec 2 13:54:50 2009 From: ron at ...1740... (Ron) Date: Wed, 02 Dec 2009 13:54:50 +0100 Subject: [Gambas-user] textedit html behaviour Message-ID: <4B16639A.6090304@...1740...> Hi, I wanted to use a textEdit window to be able to do things like bold/colored text etc for individual lines. I noticed this behavoir: sText = "Text" FLogfiles.txtMainLog.Text = sText Displays: Text sText = "Text" FLogfiles.txtMainLog.Insert(sText) Displays: Text Is this expected behavior? Gambas 2.18.x gb.qt Ubuntu 9.10 Regards, Ron_2nd. From gambas at ...1... Wed Dec 2 14:47:24 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 2 Dec 2009 14:47:24 +0100 Subject: [Gambas-user] drawingarea limits In-Reply-To: <157771.67913.qm@...2266...> References: <157771.67913.qm@...2266...> Message-ID: <200912021447.24663.gambas@...1...> > hi > i cant set drawing area width(or drawing area height) bigger then 32767 . > how can i set bigger then 32767. > I'm afraid that on X-Window width and height are 16-bits integer. So that limit... -- Beno?t Minisini From gambas at ...1... Wed Dec 2 14:52:02 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 2 Dec 2009 14:52:02 +0100 Subject: [Gambas-user] =?utf-8?q?Serial_Port_Change_Events_Not_Working=09a?= =?utf-8?q?fter=09Upgrade_to_Karmic?= In-Reply-To: <1259751707.6434.23.camel@...40...> References: <4B14CECA.1090403@...466...> <4B16327F.8010801@...466...> <1259751707.6434.23.camel@...40...> Message-ID: <200912021452.02761.gambas@...1...> > Am Mittwoch, den 02.12.2009, 20:25 +1100 schrieb Tony: > > Hi Benoit, > > I have muddled my way through the subversion bit, hopefully correctly > > and compiled the 2454 version. When opening my application I get the > > error message "The program has stopped unexpectedly raising signal #11" > > with the CPU at 100%. If I try to open the wrong ttyUSBx, the application > > flags this error and behaves correctly, so I would assume that if the > > ttyUSBx opens OK then the most recent Gambas2 changes have induced the > > "signal #11" problem. Can you please let me know how to debug further and > > assist you with your efforts. > > Thanks and regards, > > Tony.. > > Beno?t Minisini wrote: > > > > Thanks Benoit and all for your speedy replies.. > > I'm using the serial port in a timing application with 3 laser through > > beam sensors feeding into the CTS, RI and DSR lines of the serial port. > > In this mode I don't pass any data, don't really care about flow control > > and am only interested in the raw status change events. Working this way > > I haven't noticed gross CPU utilisation after opening the port. The > > application also uses the UDPsocket to communicate remotely and what I > > have noticed is that if the serial port does not open correctly e.g. > > "/dev/tty" wrong and the UDPsocket is open, then there is a large amount > > of CPU used. Both open correctly and CPU normal. > > Can you tell me the polling frequency in Gambas2 2.8 ? > > I would assume that there ore other users of Gambas2 who are using the > > serial port as a convenient way of passing external events to the > > application, so maybe some input from them would also be in order. As > > long as there is a mechanism to replicate the Gambas2 2.8 functionality > > that I currently use, I'll leave the implementation up to those who know > > a lot more than myself. If going back to polling, a property to define > > the frequency would be nice. > > Thanks again, > > Tony. > > > > > > Can you try the revision #2454? I think I have found and fix another > > possible bug, and I'd like to be sure I didn't break anything. > > > > Regards, > > Salut Tony, > > you will find how to work with gdb there : > > go to http://gambas.sourceforge.net/en/main.html > > click: Reporting a problem > > read : 3. Reporting a crash (a segmentation fault, or a signal #11) > And another often more interesting way of debugging is using 'valgrind': $ cd /path/to/my/project $ valgrind --tool=memcheck --num-callers=50 gbx2 ... And then you send me the output written by valgrind. Regards, -- Beno?t Minisini From gambas at ...1... Wed Dec 2 14:52:39 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 2 Dec 2009 14:52:39 +0100 Subject: [Gambas-user] Ok, what have I done? In-Reply-To: References: Message-ID: <200912021452.39709.gambas@...1...> > This happens in both Gambas 2.18 and 3. > > When I drag a hSplit or a vSplit onto a form, I can't add any controls > to either the left or the right panel because the splitter is not > functioning. > > Anyone got any suggestions? > I'm not sure to really understand what you are talking about there... -- Beno?t Minisini From ron at ...1740... Wed Dec 2 14:31:03 2009 From: ron at ...1740... (Ron) Date: Wed, 02 Dec 2009 14:31:03 +0100 Subject: [Gambas-user] Qt Slider orientation Message-ID: <4B166C17.4090107@...1740...> Hi, why is it not possible (so it seems to me) to set a sliders orientation to vertical in Gambas? http://doc.qt.nokia.com/3.3/qslider.html#orientation-prop Gambas 2.18.x gb.qt Ubuntu 9.10 Regards, Ron_2nd. From ron at ...1740... Wed Dec 2 15:02:20 2009 From: ron at ...1740... (Ron) Date: Wed, 02 Dec 2009 15:02:20 +0100 Subject: [Gambas-user] Serial Port Change Events Not Working after Upgrade to Karmic In-Reply-To: <200912021452.02761.gambas@...1...> References: <4B14CECA.1090403@...466...> <4B16327F.8010801@...466...> <1259751707.6434.23.camel@...40...> <200912021452.02761.gambas@...1...> Message-ID: <4B16736C.4090807@...1740...> Beno?t Minisini wrote: >> Am Mittwoch, den 02.12.2009, 20:25 +1100 schrieb Tony: >> >>> Hi Benoit, >>> I have muddled my way through the subversion bit, hopefully correctly >>> and compiled the 2454 version. When opening my application I get the >>> error message "The program has stopped unexpectedly raising signal #11" >>> with the CPU at 100%. If I try to open the wrong ttyUSBx, the application >>> flags this error and behaves correctly, so I would assume that if the >>> ttyUSBx opens OK then the most recent Gambas2 changes have induced the >>> "signal #11" problem. Can you please let me know how to debug further and >>> assist you with your efforts. >>> Thanks and regards, >>> Tony.. >>> Beno?t Minisini wrote: >>> >>> Thanks Benoit and all for your speedy replies.. >>> I'm using the serial port in a timing application with 3 laser through >>> beam sensors feeding into the CTS, RI and DSR lines of the serial port. >>> In this mode I don't pass any data, don't really care about flow control >>> and am only interested in the raw status change events. Working this way >>> I haven't noticed gross CPU utilisation after opening the port. The >>> application also uses the UDPsocket to communicate remotely and what I >>> have noticed is that if the serial port does not open correctly e.g. >>> "/dev/tty" wrong and the UDPsocket is open, then there is a large amount >>> of CPU used. Both open correctly and CPU normal. >>> Can you tell me the polling frequency in Gambas2 2.8 ? >>> I would assume that there ore other users of Gambas2 who are using the >>> serial port as a convenient way of passing external events to the >>> application, so maybe some input from them would also be in order. As >>> long as there is a mechanism to replicate the Gambas2 2.8 functionality >>> that I currently use, I'll leave the implementation up to those who know >>> a lot more than myself. If going back to polling, a property to define >>> the frequency would be nice. >>> Thanks again, >>> Tony. >>> >>> >>> Can you try the revision #2454? I think I have found and fix another >>> possible bug, and I'd like to be sure I didn't break anything. >>> >>> Regards, >>> >> Salut Tony, >> >> you will find how to work with gdb there : >> >> go to http://gambas.sourceforge.net/en/main.html >> >> click: Reporting a problem >> >> read : 3. Reporting a crash (a segmentation fault, or a signal #11) >> >> > > And another often more interesting way of debugging is using 'valgrind': > > $ cd /path/to/my/project > $ valgrind --tool=memcheck --num-callers=50 gbx2 > ... > > And then you send me the output written by valgrind. > > Regards, > > Beno?t, I updated to 2454 and have signal 11's too, right away while starting my program. This is the bt: Program received signal SIGSEGV, Segmentation fault. GB_Raise (object=0x11, event_id=0, nparam=0) at gbx_api.c:528 528 OBJECT_REF(object, "GB_Raise"); (gdb) bt #0 GB_Raise (object=0x11, event_id=0, nparam=0) at gbx_api.c:528 #1 0x00b99cd5 in CSerialPort_ReadCallBack (_object=0x11) at CSerialPort.c:175 #2 0x08060997 in raise_callback (wait=) at gbx_watch.c:425 #3 do_loop (wait=) at gbx_watch.c:498 #4 0x08060b04 in WATCH_loop () at gbx_watch.c:530 #5 0x08061b72 in main (argc=134739040, argv=0xbffff4e4) at gbx.c:358 (gdb) I'm recompiling without optimizations at this moment, so better backtrace is coming... I only have Flowcontrol = 0 in all of my serial port code. Gambas 2.18.x gb.qt Ubuntu 9.10 Kind Regards, Ron_2nd. From pinozollo at ...626... Wed Dec 2 15:02:36 2009 From: pinozollo at ...626... (Pino Zollo) Date: Wed, 2 Dec 2009 11:02:36 -0300 Subject: [Gambas-user] Audio Cards Selection Message-ID: <200912021102.36354.pinozollo@...626...> Hi, I have two audio cards on the computer. Is there a way to record sound from one and send other sound to the other ? I.E. How to select the card ? Regards Pino ZP4KFX GG15lv -- Key ID: 0xF6768208 Key fingerprint = B16D 0A7C 5B29 A334 CE6A 71F6 EAF8 3D88 F676 8208 Key server: hkp://wwwkeys.eu.pgp.net From ron at ...1740... Wed Dec 2 15:21:10 2009 From: ron at ...1740... (Ron) Date: Wed, 02 Dec 2009 15:21:10 +0100 Subject: [Gambas-user] Serial Port Change Events Not Working after Upgrade to Karmic In-Reply-To: <4B16736C.4090807@...1740...> References: <4B14CECA.1090403@...466...> <4B16327F.8010801@...466...> <1259751707.6434.23.camel@...40...> <200912021452.02761.gambas@...1...> <4B16736C.4090807@...1740...> Message-ID: <4B1677D6.8000306@...1740...> Ron wrote: > Beno?t Minisini wrote: >>> Am Mittwoch, den 02.12.2009, 20:25 +1100 schrieb Tony: >>> >>>> Hi Benoit, >>>> I have muddled my way through the subversion bit, hopefully >>>> correctly >>>> and compiled the 2454 version. When opening my application I get the >>>> error message "The program has stopped unexpectedly raising signal >>>> #11" >>>> with the CPU at 100%. If I try to open the wrong ttyUSBx, the >>>> application >>>> flags this error and behaves correctly, so I would assume that if the >>>> ttyUSBx opens OK then the most recent Gambas2 changes have induced the >>>> "signal #11" problem. Can you please let me know how to debug >>>> further and >>>> assist you with your efforts. >>>> Thanks and regards, >>>> Tony.. >>>> Beno?t Minisini wrote: >>>> >>>> Thanks Benoit and all for your speedy replies.. >>>> I'm using the serial port in a timing application with 3 laser >>>> through >>>> beam sensors feeding into the CTS, RI and DSR lines of the serial >>>> port. >>>> In this mode I don't pass any data, don't really care about flow >>>> control >>>> and am only interested in the raw status change events. Working >>>> this way >>>> I haven't noticed gross CPU utilisation after opening the port. The >>>> application also uses the UDPsocket to communicate remotely and what I >>>> have noticed is that if the serial port does not open correctly e.g. >>>> "/dev/tty" wrong and the UDPsocket is open, then there is a large >>>> amount >>>> of CPU used. Both open correctly and CPU normal. >>>> Can you tell me the polling frequency in Gambas2 2.8 ? >>>> I would assume that there ore other users of Gambas2 who are >>>> using the >>>> serial port as a convenient way of passing external events >>>> to the >>>> application, so maybe some input from them would also be in >>>> order. As >>>> long as there is a mechanism to replicate the Gambas2 2.8 >>>> functionality >>>> that I currently use, I'll leave the implementation up to those >>>> who know >>>> a lot more than myself. If going back to polling, a property to define >>>> the frequency would be nice. >>>> Thanks again, >>>> Tony. >>>> >>>> >>>> Can you try the revision #2454? I think I have found and fix another >>>> possible bug, and I'd like to be sure I didn't break anything. >>>> >>>> Regards, >>>> >>> Salut Tony, >>> >>> you will find how to work with gdb there : >>> >>> go to http://gambas.sourceforge.net/en/main.html >>> >>> click: Reporting a problem >>> >>> read : 3. Reporting a crash (a segmentation fault, or a signal #11) >>> >>> >> >> And another often more interesting way of debugging is using 'valgrind': >> >> $ cd /path/to/my/project >> $ valgrind --tool=memcheck --num-callers=50 gbx2 >> ... >> >> And then you send me the output written by valgrind. >> >> Regards, >> >> > Beno?t, > > I updated to 2454 and have signal 11's too, right away while starting > my program. > > This is the bt: > > Program received signal SIGSEGV, Segmentation fault. > GB_Raise (object=0x11, event_id=0, nparam=0) at gbx_api.c:528 > 528 OBJECT_REF(object, "GB_Raise"); > (gdb) bt > #0 GB_Raise (object=0x11, event_id=0, nparam=0) at gbx_api.c:528 > #1 0x00b99cd5 in CSerialPort_ReadCallBack (_object=0x11) at > CSerialPort.c:175 > #2 0x08060997 in raise_callback (wait=) at > gbx_watch.c:425 > #3 do_loop (wait=) at gbx_watch.c:498 > #4 0x08060b04 in WATCH_loop () at gbx_watch.c:530 > #5 0x08061b72 in main (argc=134739040, argv=0xbffff4e4) at gbx.c:358 > (gdb) > > I'm recompiling without optimizations at this moment, so better > backtrace is coming... > > I only have Flowcontrol = 0 in all of my serial port code. > > Gambas 2.18.x > gb.qt > Ubuntu 9.10 > > Kind Regards, > Ron_2nd. > Hmm... recompiling complete Gambas source without optimization flag didn't result in a more verbose output, and I don't want to recompile libqt or things like that. Regards, Ron_2nd. From ronstk at ...239... Wed Dec 2 17:53:36 2009 From: ronstk at ...239... (Ron_1st) Date: Wed, 2 Dec 2009 17:53:36 +0100 Subject: [Gambas-user] Qt Slider orientation In-Reply-To: <4B166C17.4090107@...1740...> References: <4B166C17.4090107@...1740...> Message-ID: <200912021753.37400.ronstk@...239...> On Wednesday 02 December 2009, Ron wrote: > Hi, > > why is it not possible (so it seems to me) to set a sliders orientation > to vertical in Gambas? > > http://doc.qt.nokia.com/3.3/qslider.html#orientation-prop > > > Gambas 2.18.x > gb.qt > Ubuntu 9.10 > > Regards, > Ron_2nd. > > ------------------------------------------------------------------------------ > Join us December 9, 2009 for the Red Hat Virtual Experience, > a free event focused on virtualization and cloud computing. > Attend in-depth sessions from your desk. Your couch. Anywhere. > http://p.sf.net/sfu/redhat-sfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > if width < height then it is vertical if width > height then it is horizontal :) This is/was the way. Best regards, Ron_1st -- From Karl.Reinl at ...9... Wed Dec 2 18:22:44 2009 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Wed, 02 Dec 2009 18:22:44 +0100 Subject: [Gambas-user] Qt Slider orientation In-Reply-To: <200912021753.37400.ronstk@...239...> References: <4B166C17.4090107@...1740...> <200912021753.37400.ronstk@...239...> Message-ID: <1259774564.6407.1.camel@...40...> Am Mittwoch, den 02.12.2009, 17:53 +0100 schrieb Ron_1st: > On Wednesday 02 December 2009, Ron wrote: > > Hi, > > > > why is it not possible (so it seems to me) to set a sliders orientation > > to vertical in Gambas? > > > > http://doc.qt.nokia.com/3.3/qslider.html#orientation-prop > > > > > > Gambas 2.18.x > > gb.qt > > Ubuntu 9.10 > > > > Regards, > > Ron_2nd. > > > > ------------------------------------------------------------------------------ > > Join us December 9, 2009 for the Red Hat Virtual Experience, > > a free event focused on virtualization and cloud computing. > > Attend in-depth sessions from your desk. Your couch. Anywhere. > > http://p.sf.net/sfu/redhat-sfdev2dev > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > if width < height then it is vertical > if width > height then it is horizontal > :) > > This is/was the way. > > Best regards, > > Ron_1st > Same as ScrollBar ! -- Amicalement Charlie From gambas at ...1... Wed Dec 2 18:37:59 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 2 Dec 2009 18:37:59 +0100 Subject: [Gambas-user] textedit html behaviour In-Reply-To: <4B16639A.6090304@...1740...> References: <4B16639A.6090304@...1740...> Message-ID: <200912021837.59258.gambas@...1...> > Hi, > I wanted to use a textEdit window to be able to do things like > bold/colored text etc for individual lines. > I noticed this behavoir: > sText = "Text" > FLogfiles.txtMainLog.Text = sText > Displays: > Text > sText = "Text" > FLogfiles.txtMainLog.Insert(sText) > Displays: > Text > Is this expected behavior? > Gambas 2.18.x > gb.qt > Ubuntu 9.10 > Regards, > Ron_2nd. Yes, why? -- Beno?t Minisini From doriano.blengino at ...1909... Wed Dec 2 18:37:01 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Wed, 02 Dec 2009 18:37:01 +0100 Subject: [Gambas-user] drawingarea limits In-Reply-To: <157771.67913.qm@...2266...> References: <157771.67913.qm@...2266...> Message-ID: <4B16A5BD.9070501@...1909...> abdurrahman ulusoy ha scritto: > hi > i cant set drawing area width(or drawing area height) bigger then 32767 . how can i set bigger then 32767. > It would be a very very bad idea to do that. An area of 32767x26000 pixels would take 2.5 gigabyte of ram (yes, I said 2555 megabyte), counting 3 bytes for pixel. I think you don't find around images that large, or tall. If you want to manage something like that, you must keep your graphics somewhere else, and scale it to fit in less memory. Regards, Doriano From gambas at ...1... Wed Dec 2 19:04:45 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 2 Dec 2009 19:04:45 +0100 Subject: [Gambas-user] can't call a procedure from a different module In-Reply-To: <26604998.post@...1379...> References: <26603731.post@...1379...> <26604998.post@...1379...> Message-ID: <200912021904.45542.gambas@...1...> > [SOLVED] > > Kadaitcha Man wrote: > > 2009/12/2 kevinfishburne : > >> (2) Module "Server" then calls the procedure "Init" contained within > >> module > >> "Net" (Net.Init). > > > > Net is reserved for the Net class of constants in gambas. Rename the > > module. > > > > ------------------------------------------------------------------------- > >----- Join us December 9, 2009 for the anonymous postings of fortune > > stdout!!! _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > Thanks. Renaming the network module from "Net" to "Network" worked. I'm > glad is was a simple mistake. Thanks again. > It's not totally a mistake of yours, but a decision made by the compiler the first time the "Net" identifier is encountered: "Should I use the global Net class from the gb.net component or the Net class defined in the project?" The common programmer logic would tell to decide the second solution. But then we are hiding a class of an official component, which is not a good idea. It makes the program less readable, a bit like when you override operators in C++: a well-known language "thing" actually does not do what it should at first sight. So I chose the first solution, which usually prints an error when you try to access your class. If you really want mixing your own Net class with the official one, you can export it. This way, your own class will inherit and override the Net official class, so that you can add the feature you need to it. Regards, -- Beno?t Minisini From oceanosoftlapalma at ...626... Wed Dec 2 20:19:27 2009 From: oceanosoftlapalma at ...626... (=?ISO-8859-1?Q?Ricardo_D=EDaz_Mart=EDn?=) Date: Wed, 2 Dec 2009 19:19:27 +0000 Subject: [Gambas-user] GRIDVIEW: SCROLL & DOUBLE CLICK In-Reply-To: References: <200911301220.24008.gambas@...1...> <200911301511.23280.gambas@...1...> Message-ID: Have you received the example? 2009/11/30 Ricardo D?az Mart?n > Benoit, > > I send a little example. Run the app and try to scroll down the gridview by > clicking in the scrollbar (don't click and move, only do click, click, click > in the down or up arrows and you can see double click event is fired). I > need when users are only clicking to move lines no double click event was > fired. > > Thanks for your time. > > > 2009/11/30 Beno?t Minisini > >> > gambas2 2.17 with qt components. >> > >> > Regards >> > >> >> Normally, you should not get mouse events for scrollbars in GridView and >> other >> view controls, this is taken into account (at least in gb.qt). And I >> cannot >> reproduce your problem with my own GridView in the Gambas IDE. >> >> So can you send me a little project that shows your problem? >> >> -- >> Beno?t Minisini >> >> >> ------------------------------------------------------------------------------ >> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 >> 30-Day >> trial. Simplify your report design, integration and deployment - and focus >> on >> what you do best, core application coding. Discover what's new with >> Crystal Reports now. http://p.sf.net/sfu/bobj-july >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > From gambas at ...1... Wed Dec 2 20:23:40 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 2 Dec 2009 20:23:40 +0100 Subject: [Gambas-user] GRIDVIEW: SCROLL & DOUBLE CLICK In-Reply-To: References: Message-ID: <200912022023.40215.gambas@...1...> > Have you received the example? > I did. -- Beno?t Minisini From math.eber at ...221... Wed Dec 2 20:44:30 2009 From: math.eber at ...221... (Matti) Date: Wed, 02 Dec 2009 20:44:30 +0100 Subject: [Gambas-user] textedit html behaviour In-Reply-To: <4B16639A.6090304@...1740...> References: <4B16639A.6090304@...1740...> Message-ID: <4B16C39E.7000902@...221...> I'm not sure if I understood precisely what you want to do, but: I spent some time trying to get formatted text into TextEdit and finally used WebBrowser instead. This works perfectly with html-text. Matti Ron schrieb: > Hi, > I wanted to use a textEdit window to be able to do things like bold/colored > text etc for individual lines. > I noticed this behavoir: > sText = "Text" > FLogfiles.txtMainLog.Text = sText > Displays: > Text > sText = "Text" > FLogfiles.txtMainLog.Insert(sText) > Displays: > Text > Is this expected behavior? > Gambas 2.18.x > gb.qt > Ubuntu 9.10 > Regards, > Ron_2nd. > ------------------------------------------------------------------------------ > Join us December 9, 2009 for the Red Hat Virtual Experience, > a free event focused on virtualization and cloud computing. > Attend in-depth sessions from your desk. Your couch. Anywhere. > http://p.sf.net/sfu/redhat-sfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From ron at ...1740... Wed Dec 2 20:50:52 2009 From: ron at ...1740... (Ron) Date: Wed, 02 Dec 2009 20:50:52 +0100 Subject: [Gambas-user] textedit html behaviour In-Reply-To: <200912021837.59258.gambas@...1...> References: <4B16639A.6090304@...1740...> <200912021837.59258.gambas@...1...> Message-ID: <4B16C51C.6030503@...1740...> Beno?t Minisini schreef: >> Hi, >> I wanted to use a textEdit window to be able to do things like >> bold/colored text etc for individual lines. >> I noticed this behavoir: >> sText = "Text" >> FLogfiles.txtMainLog.Text = sText >> Displays: >> Text >> sText = "Text" >> FLogfiles.txtMainLog.Insert(sText) >> Displays: >> Text >> Is this expected behavior? >> Gambas 2.18.x >> gb.qt >> Ubuntu 9.10 >> Regards, >> Ron_2nd. >> > > Yes, why? > > I would suspect that it doesn't matter how you supply content to an object (via .Text or .Insert() it should be displayed the same, now it doesn't, the content supplied with Insert() isn't parsed at all, as it displays all the html tags ins I display my program logs inside 3 textAreas now, and I can simply set the cursor at last pos with .Pos = .Length and insert txt at the end without having it to append to a String variable which I have to create inside my program. textEdit doesn't have a .Lenght property like textArea has, bit weird too, because the is a .Pos property... With textEdit I can only do this if I keep a String variable myself and add to it, and set .Text to display the whole string everytime I open it. On other thing (maybe hard to explain) I display the textAreas on a workspace, now if I close and reopen the form with the textAreas the content which I have inserted before is still there, with textEdit the areas start empty again. I go back using textAreas without the ability to use bold/colored lines of text. Maybe I see if I can build my own someday....Pitty... Regards, Ron_2nd. From ron at ...1740... Wed Dec 2 20:58:08 2009 From: ron at ...1740... (Ron) Date: Wed, 02 Dec 2009 20:58:08 +0100 Subject: [Gambas-user] Qt Slider orientation In-Reply-To: <1259774564.6407.1.camel@...40...> References: <4B166C17.4090107@...1740...> <200912021753.37400.ronstk@...239...> <1259774564.6407.1.camel@...40...> Message-ID: <4B16C6D0.3040403@...1740...> Charlie Reinl schreef: > Am Mittwoch, den 02.12.2009, 17:53 +0100 schrieb Ron_1st: > >> On Wednesday 02 December 2009, Ron wrote: >> >>> Hi, >>> >>> why is it not possible (so it seems to me) to set a sliders orientation >>> to vertical in Gambas? >>> >>> http://doc.qt.nokia.com/3.3/qslider.html#orientation-prop >>> >>> >>> Gambas 2.18.x >>> gb.qt >>> Ubuntu 9.10 >>> >>> Regards, >>> Ron_2nd. >>> >>> ------------------------------------------------------------------------------ >>> Join us December 9, 2009 for the Red Hat Virtual Experience, >>> a free event focused on virtualization and cloud computing. >>> Attend in-depth sessions from your desk. Your couch. Anywhere. >>> http://p.sf.net/sfu/redhat-sfdev2dev >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >>> >> if width < height then it is vertical >> if width > height then it is horizontal >> :) >> >> This is/was the way. >> >> Best regards, >> >> Ron_1st >> >> > > Same as ScrollBar ! > > > Yeah but different than Toolbar... (which has a orientation property for this) http://gambasdoc.org/help/comp/gb.form.mdi/toolbar/orientation?view Help... Benoit... it starts smelling like visual basic logic to me... sorry... ;-) Regards, Ron. From nospam.nospam.nospam at ...626... Wed Dec 2 21:00:25 2009 From: nospam.nospam.nospam at ...626... (Kadaitcha Man) Date: Thu, 3 Dec 2009 07:00:25 +1100 Subject: [Gambas-user] Ok, what have I done? In-Reply-To: <200912021452.39709.gambas@...1...> References: <200912021452.39709.gambas@...1...> Message-ID: 2009/12/3 Beno?t Minisini : >> This happens in both Gambas 2.18 and 3. >> >> When I drag a hSplit or a vSplit onto a form, I can't add any controls >> to either the left or the right panel because the splitter is not >> functioning. >> >> Anyone got any suggestions? >> > > I'm not sure to really understand what you are talking about there... Oh. I thought it was clear with the image I attached to the first post. I'll try again. Either I am missing some fundamental point about hSplit and vSplit or something is wrong. There is no sign of a splitter in the design environment on either h or vsplit so there is no way for me decide if I want to place controls to the left or right of the splitter bar on a hsplit, or above or below the splitter bar on a vsplit. There is no splitter bar. There are no left and right panels and no top and bottom panels. No splitter bar. Does the attached image of two splitter controls look right to you? If so, how do you add a control on the left of the splitter and one on the right? -------------- next part -------------- A non-text attachment was scrubbed... Name: eek.png Type: image/png Size: 1888 bytes Desc: not available URL: From gambas at ...1... Wed Dec 2 21:03:24 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 2 Dec 2009 21:03:24 +0100 Subject: [Gambas-user] textedit html behaviour In-Reply-To: <4B16C51C.6030503@...1740...> References: <4B16639A.6090304@...1740...> <200912021837.59258.gambas@...1...> <4B16C51C.6030503@...1740...> Message-ID: <200912022103.24481.gambas@...1...> > Beno?t Minisini schreef: > >> Hi, > >> I wanted to use a textEdit window to be able to do things like > >> bold/colored text etc for individual lines. > >> I noticed this behavoir: > >> sText = "Text" > >> FLogfiles.txtMainLog.Text = sText > >> Displays: > >> Text > >> sText = "Text" > >> FLogfiles.txtMainLog.Insert(sText) > >> Displays: > >> Text > >> Is this expected behavior? > >> Gambas 2.18.x > >> gb.qt > >> Ubuntu 9.10 > >> Regards, > >> Ron_2nd. > > > > Yes, why? > > I would suspect that it doesn't matter how you supply content to an > object (via .Text or .Insert() it should be displayed the same, now it > doesn't, the content supplied with Insert() isn't parsed at all, as it > displays all the html tags ins Insert() inserts text as if you entered it with the keyboard. You cannot add HTML tags with that method. TextEdit is not a HTML editor or viewer, it just use part of the HTML syntax when you define the Text property, that's all. To insert formatted text, you must insert the text unformatted first, with the Insert method, then select it, and then use the Format property to format it. > > I display my program logs inside 3 textAreas now, and I can simply set > the cursor at last pos with .Pos = .Length and insert txt at the end > without having it to append to a String variable which I have to create > inside my program. > > textEdit doesn't have a .Lenght property like textArea has, bit weird > too, because the is a .Pos property... Indeed. I think I didn't it because the Length property does not exist in Qt, and so I must compute the number of characters by hand. > > With textEdit I can only do this if I keep a String variable myself and > add to it, and set .Text to display the whole string everytime I open it. > > On other thing (maybe hard to explain) I display the textAreas on a > workspace, now if I close and reopen the form with the textAreas the > content which I have inserted before is still there, with textEdit the > areas start empty again. Huh? Do you have a little project that shows this strange behaviour? Regards, -- Beno?t Minisini From gambas at ...1... Wed Dec 2 21:06:49 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 2 Dec 2009 21:06:49 +0100 Subject: [Gambas-user] Qt Slider orientation In-Reply-To: <4B16C6D0.3040403@...1740...> References: <4B166C17.4090107@...1740...> <1259774564.6407.1.camel@...40...> <4B16C6D0.3040403@...1740...> Message-ID: <200912022106.49468.gambas@...1...> > Charlie Reinl schreef: > > Am Mittwoch, den 02.12.2009, 17:53 +0100 schrieb Ron_1st: > >> On Wednesday 02 December 2009, Ron wrote: > >>> Hi, > >>> > >>> why is it not possible (so it seems to me) to set a sliders orientation > >>> to vertical in Gambas? > >>> > >>> http://doc.qt.nokia.com/3.3/qslider.html#orientation-prop > >>> > >>> > >>> Gambas 2.18.x > >>> gb.qt > >>> Ubuntu 9.10 > >>> > >>> Regards, > >>> Ron_2nd. > >>> > >>> ----------------------------------------------------------------------- > >>>------- Join us December 9, 2009 for the Red Hat Virtual Experience, > >>> a free event focused on virtualization and cloud computing. > >>> Attend in-depth sessions from your desk. Your couch. Anywhere. > >>> http://p.sf.net/sfu/redhat-sfdev2dev > >>> _______________________________________________ > >>> Gambas-user mailing list > >>> Gambas-user at lists.sourceforge.net > >>> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > >> if width < height then it is vertical > >> if width > height then it is horizontal > >> > >> :) > >> > >> This is/was the way. > >> > >> Best regards, > >> > >> Ron_1st > > > > Same as ScrollBar ! > > Yeah but different than Toolbar... (which has a orientation property for > this) > http://gambasdoc.org/help/comp/gb.form.mdi/toolbar/orientation?view > > Help... Benoit... it starts smelling like visual basic logic to me... > sorry... ;-) > > Regards, > Ron. > You are right: I didn't think doing the same thing when I made the Toolbar control. That's funny, isn't it? -- Beno?t Minisini From gambas at ...1... Wed Dec 2 21:08:02 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 2 Dec 2009 21:08:02 +0100 Subject: [Gambas-user] Ok, what have I done? In-Reply-To: References: <200912021452.39709.gambas@...1...> Message-ID: <200912022108.02111.gambas@...1...> > 2009/12/3 Beno?t Minisini : > >> This happens in both Gambas 2.18 and 3. > >> > >> When I drag a hSplit or a vSplit onto a form, I can't add any controls > >> to either the left or the right panel because the splitter is not > >> functioning. > >> > >> Anyone got any suggestions? > > > > I'm not sure to really understand what you are talking about there... > > Oh. I thought it was clear with the image I attached to the first > post. I'll try again. > > Either I am missing some fundamental point about hSplit and vSplit or > something is wrong. > > There is no sign of a splitter in the design environment on either h > or vsplit so there is no way for me decide if I want to place controls > to the left or right of the splitter bar on a hsplit, or above or > below the splitter bar on a vsplit. > > There is no splitter bar. There are no left and right panels and no > top and bottom panels. No splitter bar. > > Does the attached image of two splitter controls look right to you? If > so, how do you add a control on the left of the splitter and one on > the right? > Ok! Just put some controls inside the H/VSlider, and at run time it will display it from left to right (or top to bottom) with sliders between them. Regards, -- Beno?t Minisini From ubuntu at ...2332... Wed Dec 2 21:21:01 2009 From: ubuntu at ...2332... (D. L. Fox) Date: Wed, 02 Dec 2009 15:21:01 -0500 Subject: [Gambas-user] Component Show, Hide, Visible In-Reply-To: References: <4B15F532.2010501@...2332...> Message-ID: <4B16CC2D.9000504@...2332...> Okay, I was thinking it was that way but wondered if I was missing something "under the hood". Thanks. Kadaitcha Man wrote: > 2009/12/2 D. L. Fox : >> Sorry for the newbie question but... >> >> What is the difference between setting the Visible property to False and >> calling the Hide() method? > > Hide is a method, Visible is a property. You can't check if X is > visible or not by calling Hide(). > > Otherwise, I dare say the two are synonymous in action. Gambas has a > few synonyms, possibly for compatibility reasons. > From gambas.fr at ...626... Wed Dec 2 21:50:54 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 2 Dec 2009 21:50:54 +0100 Subject: [Gambas-user] SYSTEM NOTIFICATIONS In-Reply-To: <4B1636EA.7000007@...1740...> References: <200912011833.24179.gambas@...1...> <4B1636EA.7000007@...1740...> Message-ID: <6324a42a0912021250h72bfd7dld494df48de23493e@...627...> system notification are now managed via dbus 2009/12/2 Ron : > On Ubuntu 9.10 this tool is not installed by default. > > $ notify-send > The program 'notify-send' is currently not installed. ?You can install > it by typing: > sudo apt-get install libnotify-bin > notify-send: command not found > > Maybe they use another one. > > Regards, > Ron_2nd. >> Thanks Benoit. There is a comand line in debian I can use: notify-send >> >> Regards, >> Ricardo D?az >> >> >> 2009/12/1 Beno?t Minisini >> >> >>>> Is there some way to call os system notifications (something like "Files >>>> copy finished") ?in gambas2? >>>> >>> Not directly, even in Gambas 3. If you know where I can find the >>> specifications... I think, for Gambas 3, that a DBus call should be enough, >>> but which one? >>> >>> Anyway I guess there is a command-line tool somewhere that does the job. >>> Otherwise it will not be a true Unix thing! >>> >>> -- >>> Beno?t Minisini >>> >>> >>> ------------------------------------------------------------------------------ >>> Join us December 9, 2009 for the Red Hat Virtual Experience, >>> a free event focused on virtualization and cloud computing. >>> Attend in-depth sessions from your desk. Your couch. Anywhere. >>> http://p.sf.net/sfu/redhat-sfdev2dev >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >>> >> ------------------------------------------------------------------------------ >> Join us December 9, 2009 for the Red Hat Virtual Experience, >> a free event focused on virtualization and cloud computing. >> Attend in-depth sessions from your desk. Your couch. Anywhere. >> http://p.sf.net/sfu/redhat-sfdev2dev >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > ------------------------------------------------------------------------------ > Join us December 9, 2009 for the Red Hat Virtual Experience, > a free event focused on virtualization and cloud computing. > Attend in-depth sessions from your desk. Your couch. Anywhere. > http://p.sf.net/sfu/redhat-sfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From ronstk at ...239... Wed Dec 2 23:49:53 2009 From: ronstk at ...239... (Ron_1st) Date: Wed, 2 Dec 2009 23:49:53 +0100 Subject: [Gambas-user] Qt Slider orientation In-Reply-To: <200912022106.49468.gambas@...1...> References: <4B166C17.4090107@...1740...> <4B16C6D0.3040403@...1740...> <200912022106.49468.gambas@...1...> Message-ID: <200912022349.53783.ronstk@...239...> On Wednesday 02 December 2009, Beno?t Minisini wrote: > > Charlie Reinl schreef: > > > Am Mittwoch, den 02.12.2009, 17:53 +0100 schrieb Ron_1st: > > >> On Wednesday 02 December 2009, Ron wrote: > > >>> Hi, > > >>> > > >>> why is it not possible (so it seems to me) to set a sliders orientation > > >>> to vertical in Gambas? > > >>> > > >>> http://doc.qt.nokia.com/3.3/qslider.html#orientation-prop > > >>> > > >>> > > >>> Gambas 2.18.x > > >>> gb.qt > > >>> Ubuntu 9.10 > > >>> > > >>> Regards, > > >>> Ron_2nd. > > >>> > > >>> ----------------------------------------------------------------------- > > >>>------- Join us December 9, 2009 for the Red Hat Virtual Experience, > > >>> a free event focused on virtualization and cloud computing. > > >>> Attend in-depth sessions from your desk. Your couch. Anywhere. > > >>> http://p.sf.net/sfu/redhat-sfdev2dev > > >>> _______________________________________________ > > >>> Gambas-user mailing list > > >>> Gambas-user at lists.sourceforge.net > > >>> https://lists.sourceforge.net/lists/listinfo/gambas-user > > >> > > >> if width < height then it is vertical > > >> if width > height then it is horizontal > > >> > > >> :) > > >> > > >> This is/was the way. > > >> > > >> Best regards, > > >> > > >> Ron_1st > > > > > > Same as ScrollBar ! > > > > Yeah but different than Toolbar... (which has a orientation property for > > this) > > http://gambasdoc.org/help/comp/gb.form.mdi/toolbar/orientation?view > > > > Help... Benoit... it starts smelling like visual basic logic to me... > > sorry... ;-) > > > > Regards, > > Ron. > > > > You are right: I didn't think doing the same thing when I made the Toolbar > control. > > That's funny, isn't it? > Maybe the .orientation was more logic? Suggest to add the .orientation to slider and scrollbar. Add a 3' value to the orientation values as 'auto' If set to auto it wil use the widht/height way else it use the horizontal or vertical as current is definied. Don't forget to add the auto function for the toolbar :) :) Best regards, Ron_1st -- From gambas at ...1... Wed Dec 2 23:57:37 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 2 Dec 2009 23:57:37 +0100 Subject: [Gambas-user] Qt Slider orientation In-Reply-To: <200912022349.53783.ronstk@...239...> References: <4B166C17.4090107@...1740...> <200912022106.49468.gambas@...1...> <200912022349.53783.ronstk@...239...> Message-ID: <200912022357.37268.gambas@...1...> > On Wednesday 02 December 2009, Beno?t Minisini wrote: > > > Charlie Reinl schreef: > > > > Am Mittwoch, den 02.12.2009, 17:53 +0100 schrieb Ron_1st: > > > >> On Wednesday 02 December 2009, Ron wrote: > > > >>> Hi, > > > >>> > > > >>> why is it not possible (so it seems to me) to set a sliders > > > >>> orientation to vertical in Gambas? > > > >>> > > > >>> http://doc.qt.nokia.com/3.3/qslider.html#orientation-prop > > > >>> > > > >>> > > > >>> Gambas 2.18.x > > > >>> gb.qt > > > >>> Ubuntu 9.10 > > > >>> > > > >>> Regards, > > > >>> Ron_2nd. > > > >>> > > > >>> ------------------------------------------------------------------- > > > >>>---- ------- Join us December 9, 2009 for the Red Hat Virtual > > > >>> Experience, a free event focused on virtualization and cloud > > > >>> computing. Attend in-depth sessions from your desk. Your couch. > > > >>> Anywhere. http://p.sf.net/sfu/redhat-sfdev2dev > > > >>> _______________________________________________ > > > >>> Gambas-user mailing list > > > >>> Gambas-user at lists.sourceforge.net > > > >>> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > >> > > > >> if width < height then it is vertical > > > >> if width > height then it is horizontal > > > >> > > > >> :) > > > >> > > > >> This is/was the way. > > > >> > > > >> Best regards, > > > >> > > > >> Ron_1st > > > > > > > > Same as ScrollBar ! > > > > > > Yeah but different than Toolbar... (which has a orientation property > > > for this) > > > http://gambasdoc.org/help/comp/gb.form.mdi/toolbar/orientation?view > > > > > > Help... Benoit... it starts smelling like visual basic logic to me... > > > sorry... ;-) > > > > > > Regards, > > > Ron. > > > > You are right: I didn't think doing the same thing when I made the > > Toolbar control. > > > > That's funny, isn't it? > > Maybe the .orientation was more logic? > > Suggest to add the .orientation to slider and scrollbar. > Add a 3' value to the orientation values as 'auto' > If set to auto it wil use the widht/height way else it use the > horizontal or vertical as current is definied. > Don't forget to add the auto function for the toolbar :) :) > > > Best regards, > > Ron_1st > If I make an explicit orientation property, why should I spend time making an automatic one? -- Beno?t Minisini From ajw4me at ...466... Thu Dec 3 02:06:07 2009 From: ajw4me at ...466... (Tony) Date: Thu, 03 Dec 2009 12:06:07 +1100 Subject: [Gambas-user] Serial Port Change Events Not Working after Upgrade to Karmic In-Reply-To: <200912021452.02761.gambas@...1...> References: <4B14CECA.1090403@...466...> <4B16327F.8010801@...466...> <1259751707.6434.23.camel@...40...> <200912021452.02761.gambas@...1...> Message-ID: <4B170EFF.9050409@...466...> Benoit, Here is the output of valgrind as requested. I hope it helps. Regards, Tony.. $ valgrind --tool=memcheck --num-callers=50 gbx2 ==2404== Memcheck, a memory error detector ==2404== Copyright (C) 2002-2009, and GNU GPL'd, by Julian Seward et al. ==2404== Using Valgrind-3.5.0-Debian and LibVEX; rerun with -h for copyright info ==2404== Command: gbx2 ==2404== /dev/ttyUSB0 19200 0 8 1 1 1 ==2404== Invalid read of size 4 ==2404== at 0x535C586: CSerialPort_CallBack (CSerialPort.c:120) ==2404== by 0x4663A21: CWatch::write(int) (CWatch.cpp:143) ==2404== by 0x4663885: CWatch::qt_invoke(int, QUObject*) (CWatch_moc.cpp:91) ==2404== by 0x493C359: QObject::activate_signal(QConnectionList*, QUObject*) (in /usr/lib/libqt-mt.so.3.3.8) ==2404== by 0x493E1E3: QObject::activate_signal(int, int) (in /usr/lib/libqt-mt.so.3.3.8) ==2404== by 0x4C9BBFF: QSocketNotifier::activated(int) (in /usr/lib/libqt-mt.so.3.3.8) ==2404== by 0x495B166: QSocketNotifier::event(QEvent*) (in /usr/lib/libqt-mt.so.3.3.8) ==2404== by 0x48D74B6: QApplication::internalNotify(QObject*, QEvent*) (in /usr/lib/libqt-mt.so.3.3.8) ==2404== by 0x48D842A: QApplication::notify(QObject*, QEvent*) (in /usr/lib/libqt-mt.so.3.3.8) ==2404== by 0x463A5E2: MyApplication::notify(QObject*, QEvent*) (main.cpp:354) ==2404== by 0x48CC1E3: QEventLoop::activateSocketNotifiers() (in /usr/lib/libqt-mt.so.3.3.8) ==2404== by 0x488207D: QEventLoop::processEvents(unsigned int) (in /usr/lib/libqt-mt.so.3.3.8) ==2404== by 0x463A70B: MyEventLoop::processEvents(unsigned int) (main.cpp:247) ==2404== by 0x48F04AF: QEventLoop::enterLoop() (in /usr/lib/libqt-mt.so.3.3.8) ==2404== by 0x48F0355: QEventLoop::exec() (in /usr/lib/libqt-mt.so.3.3.8) ==2404== by 0x48D7B0E: QApplication::exec() (in /usr/lib/libqt-mt.so.3.3.8) ==2404== by 0x4639D57: hook_loop() (main.cpp:542) ==2404== by 0x8061B71: main (gbx.c:358) ==2404== Address 0x31 is not stack'd, malloc'd or (recently) free'd ==2404== ==2404== ==2404== Process terminating with default action of signal 11 (SIGSEGV) ==2404== Access not within mapped region at address 0x31 ==2404== at 0x535C586: CSerialPort_CallBack (CSerialPort.c:120) ==2404== by 0x4663A21: CWatch::write(int) (CWatch.cpp:143) ==2404== by 0x4663885: CWatch::qt_invoke(int, QUObject*) (CWatch_moc.cpp:91) ==2404== by 0x493C359: QObject::activate_signal(QConnectionList*, QUObject*) (in /usr/lib/libqt-mt.so.3.3.8) ==2404== by 0x493E1E3: QObject::activate_signal(int, int) (in /usr/lib/libqt-mt.so.3.3.8) ==2404== by 0x4C9BBFF: QSocketNotifier::activated(int) (in /usr/lib/libqt-mt.so.3.3.8) ==2404== by 0x495B166: QSocketNotifier::event(QEvent*) (in /usr/lib/libqt-mt.so.3.3.8) ==2404== by 0x48D74B6: QApplication::internalNotify(QObject*, QEvent*) (in /usr/lib/libqt-mt.so.3.3.8) ==2404== by 0x48D842A: QApplication::notify(QObject*, QEvent*) (in /usr/lib/libqt-mt.so.3.3.8) ==2404== by 0x463A5E2: MyApplication::notify(QObject*, QEvent*) (main.cpp:354) ==2404== by 0x48CC1E3: QEventLoop::activateSocketNotifiers() (in /usr/lib/libqt-mt.so.3.3.8) ==2404== by 0x488207D: QEventLoop::processEvents(unsigned int) (in /usr/lib/libqt-mt.so.3.3.8) ==2404== by 0x463A70B: MyEventLoop::processEvents(unsigned int) (main.cpp:247) ==2404== by 0x48F04AF: QEventLoop::enterLoop() (in /usr/lib/libqt-mt.so.3.3.8) ==2404== by 0x48F0355: QEventLoop::exec() (in /usr/lib/libqt-mt.so.3.3.8) ==2404== by 0x48D7B0E: QApplication::exec() (in /usr/lib/libqt-mt.so.3.3.8) ==2404== by 0x4639D57: hook_loop() (main.cpp:542) ==2404== by 0x8061B71: main (gbx.c:358) ==2404== If you believe this happened as a result of a stack ==2404== overflow in your program's main thread (unlikely but ==2404== possible), you can try to increase the size of the ==2404== main thread stack using the --main-stacksize= flag. ==2404== The main thread stack size used in this run was 8388608. ==2404== ==2404== HEAP SUMMARY: ==2404== in use at exit: 1,958,423 bytes in 15,402 blocks ==2404== total heap usage: 102,525 allocs, 87,123 frees, 7,712,919 bytes allocated ==2404== ==2404== LEAK SUMMARY: ==2404== definitely lost: 6,916 bytes in 28 blocks ==2404== indirectly lost: 12,892 bytes in 633 blocks ==2404== possibly lost: 175,810 bytes in 721 blocks ==2404== still reachable: 1,762,805 bytes in 14,020 blocks ==2404== suppressed: 0 bytes in 0 blocks ==2404== Rerun with --leak-check=full to see details of leaked memory ==2404== ==2404== For counts of detected and suppressed errors, rerun with: -v ==2404== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 123 from 11) Segmentation fault $ Beno?t Minisini wrote: Am Mittwoch, den 02.12.2009, 20:25 +1100 schrieb Tony: Hi Benoit, I have muddled my way through the subversion bit, hopefully correctly and compiled the 2454 version. When opening my application I get the error message "The program has stopped unexpectedly raising signal #11" with the CPU at 100%. If I try to open the wrong ttyUSBx, the application flags this error and behaves correctly, so I would assume that if the ttyUSBx opens OK then the most recent Gambas2 changes have induced the "signal #11" problem. Can you please let me know how to debug further and assist you with your efforts. Thanks and regards, Tony.. Beno?t Minisini wrote: Thanks Benoit and all for your speedy replies.. I'm using the serial port in a timing application with 3 laser through beam sensors feeding into the CTS, RI and DSR lines of the serial port. In this mode I don't pass any data, don't really care about flow control and am only interested in the raw status change events. Working this way I haven't noticed gross CPU utilisation after opening the port. The application also uses the UDPsocket to communicate remotely and what I have noticed is that if the serial port does not open correctly e.g. "/dev/tty" wrong and the UDPsocket is open, then there is a large amount of CPU used. Both open correctly and CPU normal. Can you tell me the polling frequency in Gambas2 2.8 ? I would assume that there ore other users of Gambas2 who are using the serial port as a convenient way of passing external events to the application, so maybe some input from them would also be in order. As long as there is a mechanism to replicate the Gambas2 2.8 functionality that I currently use, I'll leave the implementation up to those who know a lot more than myself. If going back to polling, a property to define the frequency would be nice. Thanks again, Tony. Can you try the revision #2454? I think I have found and fix another possible bug, and I'd like to be sure I didn't break anything. Regards, Salut Tony, you will find how to work with gdb there : go to [1]http://gambas.sourceforge.net/en/main.html click: Reporting a problem read : 3. Reporting a crash (a segmentation fault, or a signal #11) And another often more interesting way of debugging is using 'valgrind': $ cd /path/to/my/project $ valgrind --tool=memcheck --num-callers=50 gbx2 ... And then you send me the output written by valgrind. Regards, References 1. http://gambas.sourceforge.net/en/main.html From ronstk at ...239... Thu Dec 3 08:07:41 2009 From: ronstk at ...239... (Ron_1st) Date: Thu, 3 Dec 2009 08:07:41 +0100 Subject: [Gambas-user] Qt Slider orientation In-Reply-To: <200912022357.37268.gambas@...1...> References: <4B166C17.4090107@...1740...> <200912022349.53783.ronstk@...239...> <200912022357.37268.gambas@...1...> Message-ID: <200912030807.41512.ronstk@...239...> On Wednesday 02 December 2009, Beno?t Minisini wrote: > > On Wednesday 02 December 2009, Beno?t Minisini wrote: > > > > Charlie Reinl schreef: > > > > > Am Mittwoch, den 02.12.2009, 17:53 +0100 schrieb Ron_1st: > > > > >> On Wednesday 02 December 2009, Ron wrote: > > > > >>> Hi, > > > > >>> > > > > >>> why is it not possible (so it seems to me) to set a sliders > > > > >>> orientation to vertical in Gambas? > > > > >>> > > > > >>> http://doc.qt.nokia.com/3.3/qslider.html#orientation-prop > > > > >>> > > > > >>> > > > > >>> Gambas 2.18.x > > > > >>> gb.qt > > > > >>> Ubuntu 9.10 > > > > >>> > > > > >>> Regards, > > > > >>> Ron_2nd. > > > > >>> > > > > >>> ------------------------------------------------------------------- > > > > >>>---- ------- Join us December 9, 2009 for the Red Hat Virtual > > > > >>> Experience, a free event focused on virtualization and cloud > > > > >>> computing. Attend in-depth sessions from your desk. Your couch. > > > > >>> Anywhere. http://p.sf.net/sfu/redhat-sfdev2dev > > > > >>> _______________________________________________ > > > > >>> Gambas-user mailing list > > > > >>> Gambas-user at lists.sourceforge.net > > > > >>> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > >> > > > > >> if width < height then it is vertical > > > > >> if width > height then it is horizontal > > > > >> > > > > >> :) > > > > >> > > > > >> This is/was the way. > > > > >> > > > > >> Best regards, > > > > >> > > > > >> Ron_1st > > > > > > > > > > Same as ScrollBar ! > > > > > > > > Yeah but different than Toolbar... (which has a orientation property > > > > for this) > > > > http://gambasdoc.org/help/comp/gb.form.mdi/toolbar/orientation?view > > > > > > > > Help... Benoit... it starts smelling like visual basic logic to me... > > > > sorry... ;-) > > > > > > > > Regards, > > > > Ron. > > > > > > You are right: I didn't think doing the same thing when I made the > > > Toolbar control. > > > > > > That's funny, isn't it? > > > > Maybe the .orientation was more logic? > > > > Suggest to add the .orientation to slider and scrollbar. > > Add a 3' value to the orientation values as 'auto' > > If set to auto it wil use the widht/height way else it use the > > horizontal or vertical as current is definied. > > Don't forget to add the auto function for the toolbar :) :) > > > > > > Best regards, > > > > Ron_1st > > > > If I make an explicit orientation property, why should I spend time making an > automatic one? > With the way I described the old programs continue to work without change. This should be the case when auto is default. (thinking the big project as richard terry has made) See it as backwards compatible. Also some people may like the height/width ratio. I prefer the orientation property. Best regards, Ron_1st -- From nospam.nospam.nospam at ...626... Thu Dec 3 08:27:06 2009 From: nospam.nospam.nospam at ...626... (Kadaitcha Man) Date: Thu, 3 Dec 2009 18:27:06 +1100 Subject: [Gambas-user] Ok, what have I done? In-Reply-To: <200912022108.02111.gambas@...1...> References: <200912021452.39709.gambas@...1...> <200912022108.02111.gambas@...1...> Message-ID: 2009/12/3 Beno?t Minisini : > Ok! Just put some controls inside the H/VSlider, and at run time it will > display it from left to right (or top to bottom) with sliders between them. Aaaah, crikey, hey. lol I will make a note to make sure that behaviour is documented. I've spent far too much time in Visual Studio. Thank you. From matteo.lisi at ...2324... Thu Dec 3 11:24:15 2009 From: matteo.lisi at ...2324... (Matteo Lisi) Date: Thu, 03 Dec 2009 11:24:15 +0100 Subject: [Gambas-user] Gambas Remotly Debug In-Reply-To: References: <200912021452.39709.gambas@...1...> <200912022108.02111.gambas@...1...> Message-ID: <4B1791CF.5030606@...2324...> Hi to ALL ! This is my situation: I have a ARM sistem with gambas installed, and I want to debug it from a PC (I have to develop a new IDE.......) How gambas IDE use the interpreter for debug ? I thought to develop a service on ARM that via TCP/IP link the ARM gambas interpreter with a PC IDE. What do you think about this solution ? Thanks to all !! From doriano.blengino at ...1909... Thu Dec 3 16:49:24 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Thu, 03 Dec 2009 16:49:24 +0100 Subject: [Gambas-user] Problem with tableview when in edit mode Message-ID: <4B17DE04.1070604@...1909...> I am modifying an old program, which uses a TableView to construct an invoice. The tableview is almost always in edit mode. With gambas version 2.0.0, the original version I used to write the program, there is no problem (not this one). Now I upgraded to gambas v. 2.15 (debian package gambas2 2.15.2-1), running on a debian "stable" release. When in the tableview (in edit mode) I press an arrow key, the cursor slips on every possible cell in the request direction, until it finds the end of the tableview. But this is not enough: if the cursor key is Left or Right, the cell walking goes even further, wrapping to the next or previous row and restarting. I created an executable, and it behaves the same. Then I copied the executable to another machine, having gbx2 version 2.0.0, and the problem does not show up. The program uses explicitly QT; both machines have libqt-mt.so.3.3.8 installed, and the same debian "stable" os, and I use both machines from a third machine running an X11 server (XMing). So it seems the problem is related to gambas. I send a sample project that shows the problem. Launch the application, click on the Tableview to focus it, and press a cursor key. The cursor will travel in the requested direction 'til the end of the grid. What can I do about this? I was very very reluctant to upgrade gambas; but I reached a point where I could no more install or upgrade my system. Even when trying to install a simple htop(1) from debian repositories, I was told to upgrade some fu*ing library, which in turn meant to upgrade gambas, which in turn meant to upgrade QT, GTK, poppler, libc, libc-bin... well, *hundreds* of packages. I will contact the debian mantainer about this - I don't care about postgres, firebird, curl, smtp, opengl, sdl, v4l, xml and things. It seems that to install gambas on debian one must pull in all the world. The other machine, having the old version of gambas, has no problems - I copied the gambas binaries directly, instead of installing them from packages. I can install and upgrade, and everything runs smoothly. Sorry for the debian-related blow. Regards, Doriano -------------- next part -------------- A non-text attachment was scrubbed... Name: TableviewTest-0.0.1.tar.gz Type: application/gzip Size: 7607 bytes Desc: not available URL: From dosida at ...626... Thu Dec 3 18:04:08 2009 From: dosida at ...626... (Dimitris Anogiatis) Date: Thu, 3 Dec 2009 10:04:08 -0700 Subject: [Gambas-user] Problem with tableview when in edit mode In-Reply-To: <4B17DE04.1070604@...1909...> References: <4B17DE04.1070604@...1909...> Message-ID: <82bffccf0912030904n7dc8b456pdcc2137b7b224653@...627...> Doriano, from the sample project you posted, I can verify the behavior you described when you use the arrow keys. If you click on individual cells it jumps fine. But if you try and type something on one cell and then click on the next one the text you typed before disappears. So perhaps a few more changes happened in the tableview control from 2.0 to 2.15 (the one you upgraded to) that are not yet documented and you just might have to consider using a different approach. I use Debian Lenny 5.0.3 and Gambas 2.16 I hope this helps. Regards, Dimitris On Thu, Dec 3, 2009 at 8:49 AM, Doriano Blengino < doriano.blengino at ...1909...> wrote: > I am modifying an old program, which uses a TableView to construct an > invoice. > The tableview is almost always in edit mode. > > With gambas version 2.0.0, the original version I used to write the > program, there is no problem (not this one). > > Now I upgraded to gambas v. 2.15 (debian package gambas2 2.15.2-1), running > on a debian "stable" release. > > When in the tableview (in edit mode) I press an arrow key, the cursor slips > on every possible cell in the request direction, until it finds the end of > the tableview. But this is not enough: if the cursor key is Left or Right, > the cell walking goes even further, wrapping to the next or previous row and > restarting. > > I created an executable, and it behaves the same. > > Then I copied the executable to another machine, having gbx2 version 2.0.0, > and the problem does not show up. > > The program uses explicitly QT; both machines have libqt-mt.so.3.3.8 > installed, and the same debian "stable" os, and I use both machines from a > third machine running an X11 server (XMing). So it seems the problem is > related to gambas. > > I send a sample project that shows the problem. Launch the application, > click on the Tableview to focus it, and press a cursor key. The cursor will > travel in the requested direction 'til the end of the grid. > > What can I do about this? I was very very reluctant to upgrade gambas; but > I reached a point where I could no more install or upgrade my system. Even > when trying to install a simple htop(1) from debian repositories, I was told > to upgrade some fu*ing library, which in turn meant to upgrade gambas, which > in turn meant to upgrade QT, GTK, poppler, libc, libc-bin... well, > *hundreds* of packages. I will contact the debian mantainer about this - I > don't care about postgres, firebird, curl, smtp, opengl, sdl, v4l, xml and > things. It seems that to install gambas on debian one must pull in all the > world. The other machine, having the old version of gambas, has no problems > - I copied the gambas binaries directly, instead of installing them from > packages. I can install and upgrade, and everything runs smoothly. Sorry for > the debian-related blow. > > Regards, > Doriano > > > > ------------------------------------------------------------------------------ > Join us December 9, 2009 for the Red Hat Virtual Experience, > a free event focused on virtualization and cloud computing. > Attend in-depth sessions from your desk. Your couch. Anywhere. > http://p.sf.net/sfu/redhat-sfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From doriano.blengino at ...1909... Thu Dec 3 18:24:30 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Thu, 03 Dec 2009 18:24:30 +0100 Subject: [Gambas-user] Problem with tableview when in edit mode In-Reply-To: <82bffccf0912030904n7dc8b456pdcc2137b7b224653@...627...> References: <4B17DE04.1070604@...1909...> <82bffccf0912030904n7dc8b456pdcc2137b7b224653@...627...> Message-ID: <4B17F44E.9070703@...1909...> Dimitris Anogiatis ha scritto: > Doriano, > > from the sample project you posted, I can verify the behavior you described > when you use the arrow keys. > If you click on individual cells it jumps fine. But if you try and type > something on one cell and then click on the next one > the text you typed before disappears. > Perhaps this is because there is no "save" event implemented. But the complain was about another error: even without writing, but simply changing the focused cell with the cursor keys, do you see something strange or not? > So perhaps a few more changes happened in the tableview control from 2.0 to > 2.15 (the one you upgraded to) that are > not yet documented and you just might have to consider using a different > approach. > Which different approach? I would like to identify the cause of this problem. If it is gambas 2.15, and gambas 2.16 or 2.17 solves, I switch. If all gambas versions above 2.0.0 have the problem, I stick with 2.0.0. If the problem are QT libraries, I change them. But surely I don't want to change a painful code made to compile an invoice through a tableview with something else... > I use Debian Lenny 5.0.3 and Gambas 2.16 > > I hope this helps. > ...it would help if you told me if the error is still there in 2.16 or not... BTW: my debian version (cat /etc/debian_version) shows 5.0.2, and is fully updated. How it goes you have 5.0.3? > Regards, > Dimitris > > On Thu, Dec 3, 2009 at 8:49 AM, Doriano Blengino < > doriano.blengino at ...1909...> wrote: > > >> I am modifying an old program, which uses a TableView to construct an >> invoice. >> The tableview is almost always in edit mode. >> >> With gambas version 2.0.0, the original version I used to write the >> program, there is no problem (not this one). >> >> Now I upgraded to gambas v. 2.15 (debian package gambas2 2.15.2-1), running >> on a debian "stable" release. >> >> When in the tableview (in edit mode) I press an arrow key, the cursor slips >> on every possible cell in the request direction, until it finds the end of >> the tableview. But this is not enough: if the cursor key is Left or Right, >> the cell walking goes even further, wrapping to the next or previous row and >> restarting. >> >> I created an executable, and it behaves the same. >> >> Then I copied the executable to another machine, having gbx2 version 2.0.0, >> and the problem does not show up. >> >> The program uses explicitly QT; both machines have libqt-mt.so.3.3.8 >> installed, and the same debian "stable" os, and I use both machines from a >> third machine running an X11 server (XMing). So it seems the problem is >> related to gambas. >> >> I send a sample project that shows the problem. Launch the application, >> click on the Tableview to focus it, and press a cursor key. The cursor will >> travel in the requested direction 'til the end of the grid. >> >> What can I do about this? I was very very reluctant to upgrade gambas; but >> I reached a point where I could no more install or upgrade my system. Even >> when trying to install a simple htop(1) from debian repositories, I was told >> to upgrade some fu*ing library, which in turn meant to upgrade gambas, which >> in turn meant to upgrade QT, GTK, poppler, libc, libc-bin... well, >> *hundreds* of packages. I will contact the debian mantainer about this - I >> don't care about postgres, firebird, curl, smtp, opengl, sdl, v4l, xml and >> things. It seems that to install gambas on debian one must pull in all the >> world. The other machine, having the old version of gambas, has no problems >> - I copied the gambas binaries directly, instead of installing them from >> packages. I can install and upgrade, and everything runs smoothly. Sorry for >> the debian-related blow. >> >> Regards, >> Doriano >> From Karl.Reinl at ...9... Thu Dec 3 18:31:13 2009 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Thu, 03 Dec 2009 18:31:13 +0100 Subject: [Gambas-user] Problem with tableview when in edit mode In-Reply-To: <4B17F44E.9070703@...1909...> References: <4B17DE04.1070604@...1909...> <82bffccf0912030904n7dc8b456pdcc2137b7b224653@...627...> <4B17F44E.9070703@...1909...> Message-ID: <1259861473.6397.4.camel@...40...> Am Donnerstag, den 03.12.2009, 18:24 +0100 schrieb Doriano Blengino: > Dimitris Anogiatis ha scritto: > > Doriano, > > > > from the sample project you posted, I can verify the behavior you described > > when you use the arrow keys. > > If you click on individual cells it jumps fine. But if you try and type > > something on one cell and then click on the next one > > the text you typed before disappears. > > > Perhaps this is because there is no "save" event implemented. But the > complain was about another error: even without writing, but simply > changing the focused cell with the cursor keys, do you see something > strange or not? > > So perhaps a few more changes happened in the tableview control from 2.0 to > > 2.15 (the one you upgraded to) that are > > not yet documented and you just might have to consider using a different > > approach. > > > Which different approach? I would like to identify the cause of this > problem. If it is gambas 2.15, and gambas 2.16 or 2.17 solves, I switch. > If all gambas versions above 2.0.0 have the problem, I stick with 2.0.0. > If the problem are QT libraries, I change them. But surely I don't want > to change a painful code made to compile an invoice through a tableview > with something else... > > I use Debian Lenny 5.0.3 and Gambas 2.16 > > > > I hope this helps. > > > ...it would help if you told me if the error is still there in 2.16 or > not... > BTW: my debian version (cat /etc/debian_version) shows 5.0.2, and is > fully updated. How it goes you have 5.0.3? > > > > > Regards, > > Dimitris > > > > On Thu, Dec 3, 2009 at 8:49 AM, Doriano Blengino < > > doriano.blengino at ...1909...> wrote: > > > > > >> I am modifying an old program, which uses a TableView to construct an > >> invoice. > >> The tableview is almost always in edit mode. > >> > >> With gambas version 2.0.0, the original version I used to write the > >> program, there is no problem (not this one). > >> > >> Now I upgraded to gambas v. 2.15 (debian package gambas2 2.15.2-1), running > >> on a debian "stable" release. > >> > >> When in the tableview (in edit mode) I press an arrow key, the cursor slips > >> on every possible cell in the request direction, until it finds the end of > >> the tableview. But this is not enough: if the cursor key is Left or Right, > >> the cell walking goes even further, wrapping to the next or previous row and > >> restarting. > >> > >> I created an executable, and it behaves the same. > >> > >> Then I copied the executable to another machine, having gbx2 version 2.0.0, > >> and the problem does not show up. > >> > >> The program uses explicitly QT; both machines have libqt-mt.so.3.3.8 > >> installed, and the same debian "stable" os, and I use both machines from a > >> third machine running an X11 server (XMing). So it seems the problem is > >> related to gambas. > >> > >> I send a sample project that shows the problem. Launch the application, > >> click on the Tableview to focus it, and press a cursor key. The cursor will > >> travel in the requested direction 'til the end of the grid. > >> > >> What can I do about this? I was very very reluctant to upgrade gambas; but > >> I reached a point where I could no more install or upgrade my system. Even > >> when trying to install a simple htop(1) from debian repositories, I was told > >> to upgrade some fu*ing library, which in turn meant to upgrade gambas, which > >> in turn meant to upgrade QT, GTK, poppler, libc, libc-bin... well, > >> *hundreds* of packages. I will contact the debian mantainer about this - I > >> don't care about postgres, firebird, curl, smtp, opengl, sdl, v4l, xml and > >> things. It seems that to install gambas on debian one must pull in all the > >> world. The other machine, having the old version of gambas, has no problems > >> - I copied the gambas binaries directly, instead of installing them from > >> packages. I can install and upgrade, and everything runs smoothly. Sorry for > >> the debian-related blow. > >> > >> Regards, > >> Doriano > >> No same with 2.18.0 Revision: 2447 -- Amicalement Charlie From doriano.blengino at ...1909... Thu Dec 3 18:47:16 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Thu, 03 Dec 2009 18:47:16 +0100 Subject: [Gambas-user] Problem with tableview when in edit mode In-Reply-To: <1259861473.6397.4.camel@...40...> References: <4B17DE04.1070604@...1909...> <82bffccf0912030904n7dc8b456pdcc2137b7b224653@...627...> <4B17F44E.9070703@...1909...> <1259861473.6397.4.camel@...40...> Message-ID: <4B17F9A4.702@...1909...> Charlie Reinl ha scritto: > Am Donnerstag, den 03.12.2009, 18:24 +0100 schrieb Doriano Blengino: > >> Dimitris Anogiatis ha scritto: >> >>> Doriano, >>> >>> from the sample project you posted, I can verify the behavior you described >>> when you use the arrow keys. >>> If you click on individual cells it jumps fine. But if you try and type >>> something on one cell and then click on the next one >>> the text you typed before disappears. >>> >>> >> Perhaps this is because there is no "save" event implemented. But the >> complain was about another error: even without writing, but simply >> changing the focused cell with the cursor keys, do you see something >> strange or not? >> >>> So perhaps a few more changes happened in the tableview control from 2.0 to >>> 2.15 (the one you upgraded to) that are >>> not yet documented and you just might have to consider using a different >>> approach. >>> >>> >> Which different approach? I would like to identify the cause of this >> problem. If it is gambas 2.15, and gambas 2.16 or 2.17 solves, I switch. >> If all gambas versions above 2.0.0 have the problem, I stick with 2.0.0. >> If the problem are QT libraries, I change them. But surely I don't want >> to change a painful code made to compile an invoice through a tableview >> with something else... >> >>> I use Debian Lenny 5.0.3 and Gambas 2.16 >>> >>> I hope this helps. >>> >>> >> ...it would help if you told me if the error is still there in 2.16 or >> not... >> BTW: my debian version (cat /etc/debian_version) shows 5.0.2, and is >> fully updated. How it goes you have 5.0.3? >> >> >> >> >>> Regards, >>> Dimitris >>> >>> On Thu, Dec 3, 2009 at 8:49 AM, Doriano Blengino < >>> doriano.blengino at ...1909...> wrote: >>> >>> >>> >>>> I am modifying an old program, which uses a TableView to construct an >>>> invoice. >>>> The tableview is almost always in edit mode. >>>> >>>> With gambas version 2.0.0, the original version I used to write the >>>> program, there is no problem (not this one). >>>> >>>> Now I upgraded to gambas v. 2.15 (debian package gambas2 2.15.2-1), running >>>> on a debian "stable" release. >>>> >>>> When in the tableview (in edit mode) I press an arrow key, the cursor slips >>>> on every possible cell in the request direction, until it finds the end of >>>> the tableview. But this is not enough: if the cursor key is Left or Right, >>>> the cell walking goes even further, wrapping to the next or previous row and >>>> restarting. >>>> >>>> I created an executable, and it behaves the same. >>>> >>>> Then I copied the executable to another machine, having gbx2 version 2.0.0, >>>> and the problem does not show up. >>>> >>>> The program uses explicitly QT; both machines have libqt-mt.so.3.3.8 >>>> installed, and the same debian "stable" os, and I use both machines from a >>>> third machine running an X11 server (XMing). So it seems the problem is >>>> related to gambas. >>>> >>>> I send a sample project that shows the problem. Launch the application, >>>> click on the Tableview to focus it, and press a cursor key. The cursor will >>>> travel in the requested direction 'til the end of the grid. >>>> >>>> What can I do about this? I was very very reluctant to upgrade gambas; but >>>> I reached a point where I could no more install or upgrade my system. Even >>>> when trying to install a simple htop(1) from debian repositories, I was told >>>> to upgrade some fu*ing library, which in turn meant to upgrade gambas, which >>>> in turn meant to upgrade QT, GTK, poppler, libc, libc-bin... well, >>>> *hundreds* of packages. I will contact the debian mantainer about this - I >>>> don't care about postgres, firebird, curl, smtp, opengl, sdl, v4l, xml and >>>> things. It seems that to install gambas on debian one must pull in all the >>>> world. The other machine, having the old version of gambas, has no problems >>>> - I copied the gambas binaries directly, instead of installing them from >>>> packages. I can install and upgrade, and everything runs smoothly. Sorry for >>>> the debian-related blow. >>>> >>>> Regards, >>>> Doriano >>>> >>>> > > No same with > > 2.18.0 > Revision: 2447 > > > Sorry Charlie - I don't understand... "no" what? :-) Does the cursor travel a lot, or the 2.18 version is exempt (ie, has no bug?)? Thank you, Doriano From dosida at ...626... Thu Dec 3 19:20:11 2009 From: dosida at ...626... (Dimitris Anogiatis) Date: Thu, 3 Dec 2009 11:20:11 -0700 Subject: [Gambas-user] Problem with tableview when in edit mode In-Reply-To: <4B17F9A4.702@...1909...> References: <4B17DE04.1070604@...1909...> <82bffccf0912030904n7dc8b456pdcc2137b7b224653@...627...> <4B17F44E.9070703@...1909...> <1259861473.6397.4.camel@...40...> <4B17F9A4.702@...1909...> Message-ID: <82bffccf0912031020s383bf716q42dd402ad2e6df79@...627...> Doriano, On my system, when I use the mouse and click on a different cell it jumps just fine. The behavior (the error) that you described occurs when I use the cursor keys. What I meant by different approach was perhaps you should use something else other than the GotFocus event and LAST.Edit. if it works on 2.0 but doesn't work in 2.15, 2.16 and 2.18 (Charlie users 2.18, I use 2.16 and the problem is probably not solved in 2.17) then it seems to me (and it's just my opinion) that your code needs to be somewhat revised. BTW 5.0.3 is the latest Debian stable (Check http://www.debian.org/CD/http-ftp/#stable). Perhaps we use different repositories. Regards, Dimitris On Thu, Dec 3, 2009 at 10:47 AM, Doriano Blengino < doriano.blengino at ...1909...> wrote: > Charlie Reinl ha scritto: > > Am Donnerstag, den 03.12.2009, 18:24 +0100 schrieb Doriano Blengino: > > > >> Dimitris Anogiatis ha scritto: > >> > >>> Doriano, > >>> > >>> from the sample project you posted, I can verify the behavior you > described > >>> when you use the arrow keys. > >>> If you click on individual cells it jumps fine. But if you try and type > >>> something on one cell and then click on the next one > >>> the text you typed before disappears. > >>> > >>> > >> Perhaps this is because there is no "save" event implemented. But the > >> complain was about another error: even without writing, but simply > >> changing the focused cell with the cursor keys, do you see something > >> strange or not? > >> > >>> So perhaps a few more changes happened in the tableview control from > 2.0 to > >>> 2.15 (the one you upgraded to) that are > >>> not yet documented and you just might have to consider using a > different > >>> approach. > >>> > >>> > >> Which different approach? I would like to identify the cause of this > >> problem. If it is gambas 2.15, and gambas 2.16 or 2.17 solves, I switch. > >> If all gambas versions above 2.0.0 have the problem, I stick with 2.0.0. > >> If the problem are QT libraries, I change them. But surely I don't want > >> to change a painful code made to compile an invoice through a tableview > >> with something else... > >> > >>> I use Debian Lenny 5.0.3 and Gambas 2.16 > >>> > >>> I hope this helps. > >>> > >>> > >> ...it would help if you told me if the error is still there in 2.16 or > >> not... > >> BTW: my debian version (cat /etc/debian_version) shows 5.0.2, and is > >> fully updated. How it goes you have 5.0.3? > >> > >> > >> > >> > >>> Regards, > >>> Dimitris > >>> > >>> On Thu, Dec 3, 2009 at 8:49 AM, Doriano Blengino < > >>> doriano.blengino at ...1909...> wrote: > >>> > >>> > >>> > >>>> I am modifying an old program, which uses a TableView to construct an > >>>> invoice. > >>>> The tableview is almost always in edit mode. > >>>> > >>>> With gambas version 2.0.0, the original version I used to write the > >>>> program, there is no problem (not this one). > >>>> > >>>> Now I upgraded to gambas v. 2.15 (debian package gambas2 2.15.2-1), > running > >>>> on a debian "stable" release. > >>>> > >>>> When in the tableview (in edit mode) I press an arrow key, the cursor > slips > >>>> on every possible cell in the request direction, until it finds the > end of > >>>> the tableview. But this is not enough: if the cursor key is Left or > Right, > >>>> the cell walking goes even further, wrapping to the next or previous > row and > >>>> restarting. > >>>> > >>>> I created an executable, and it behaves the same. > >>>> > >>>> Then I copied the executable to another machine, having gbx2 version > 2.0.0, > >>>> and the problem does not show up. > >>>> > >>>> The program uses explicitly QT; both machines have libqt-mt.so.3.3.8 > >>>> installed, and the same debian "stable" os, and I use both machines > from a > >>>> third machine running an X11 server (XMing). So it seems the problem > is > >>>> related to gambas. > >>>> > >>>> I send a sample project that shows the problem. Launch the > application, > >>>> click on the Tableview to focus it, and press a cursor key. The cursor > will > >>>> travel in the requested direction 'til the end of the grid. > >>>> > >>>> What can I do about this? I was very very reluctant to upgrade gambas; > but > >>>> I reached a point where I could no more install or upgrade my system. > Even > >>>> when trying to install a simple htop(1) from debian repositories, I > was told > >>>> to upgrade some fu*ing library, which in turn meant to upgrade gambas, > which > >>>> in turn meant to upgrade QT, GTK, poppler, libc, libc-bin... well, > >>>> *hundreds* of packages. I will contact the debian mantainer about this > - I > >>>> don't care about postgres, firebird, curl, smtp, opengl, sdl, v4l, xml > and > >>>> things. It seems that to install gambas on debian one must pull in all > the > >>>> world. The other machine, having the old version of gambas, has no > problems > >>>> - I copied the gambas binaries directly, instead of installing them > from > >>>> packages. I can install and upgrade, and everything runs smoothly. > Sorry for > >>>> the debian-related blow. > >>>> > >>>> Regards, > >>>> Doriano > >>>> > >>>> > > > > No same with > > > > 2.18.0 > > Revision: 2447 > > > > > > > Sorry Charlie - I don't understand... "no" what? :-) > Does the cursor travel a lot, or the 2.18 version is exempt (ie, has no > bug?)? > > Thank you, > Doriano > > > ------------------------------------------------------------------------------ > Join us December 9, 2009 for the Red Hat Virtual Experience, > a free event focused on virtualization and cloud computing. > Attend in-depth sessions from your desk. Your couch. Anywhere. > http://p.sf.net/sfu/redhat-sfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From Karl.Reinl at ...9... Thu Dec 3 20:48:28 2009 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Thu, 03 Dec 2009 20:48:28 +0100 Subject: [Gambas-user] Problem with tableview when in edit mode In-Reply-To: <4B17F9A4.702@...1909...> References: <4B17DE04.1070604@...1909...> <82bffccf0912030904n7dc8b456pdcc2137b7b224653@...627...> <4B17F44E.9070703@...1909...> <1259861473.6397.4.camel@...40...> <4B17F9A4.702@...1909...> Message-ID: <1259869708.6397.16.camel@...40...> Am Donnerstag, den 03.12.2009, 18:47 +0100 schrieb Doriano Blengino: > Charlie Reinl ha scritto: > > Am Donnerstag, den 03.12.2009, 18:24 +0100 schrieb Doriano Blengino: > > > >> Dimitris Anogiatis ha scritto: > >> > >>> Doriano, > >>> > >>> from the sample project you posted, I can verify the behavior you described > >>> when you use the arrow keys. > >>> If you click on individual cells it jumps fine. But if you try and type > >>> something on one cell and then click on the next one > >>> the text you typed before disappears. > >>> > >>> > >> Perhaps this is because there is no "save" event implemented. But the > >> complain was about another error: even without writing, but simply > >> changing the focused cell with the cursor keys, do you see something > >> strange or not? > >> > >>> So perhaps a few more changes happened in the tableview control from 2.0 to > >>> 2.15 (the one you upgraded to) that are > >>> not yet documented and you just might have to consider using a different > >>> approach. > >>> > >>> > >> Which different approach? I would like to identify the cause of this > >> problem. If it is gambas 2.15, and gambas 2.16 or 2.17 solves, I switch. > >> If all gambas versions above 2.0.0 have the problem, I stick with 2.0.0. > >> If the problem are QT libraries, I change them. But surely I don't want > >> to change a painful code made to compile an invoice through a tableview > >> with something else... > >> > >>> I use Debian Lenny 5.0.3 and Gambas 2.16 > >>> > >>> I hope this helps. > >>> > >>> > >> ...it would help if you told me if the error is still there in 2.16 or > >> not... > >> BTW: my debian version (cat /etc/debian_version) shows 5.0.2, and is > >> fully updated. How it goes you have 5.0.3? > >> > >> > >> > >> > >>> Regards, > >>> Dimitris > >>> > >>> On Thu, Dec 3, 2009 at 8:49 AM, Doriano Blengino < > >>> doriano.blengino at ...1909...> wrote: > >>> > >>> > >>> > >>>> I am modifying an old program, which uses a TableView to construct an > >>>> invoice. > >>>> The tableview is almost always in edit mode. > >>>> > >>>> With gambas version 2.0.0, the original version I used to write the > >>>> program, there is no problem (not this one). > >>>> > >>>> Now I upgraded to gambas v. 2.15 (debian package gambas2 2.15.2-1), running > >>>> on a debian "stable" release. > >>>> > >>>> When in the tableview (in edit mode) I press an arrow key, the cursor slips > >>>> on every possible cell in the request direction, until it finds the end of > >>>> the tableview. But this is not enough: if the cursor key is Left or Right, > >>>> the cell walking goes even further, wrapping to the next or previous row and > >>>> restarting. > >>>> > >>>> I created an executable, and it behaves the same. > >>>> > >>>> Then I copied the executable to another machine, having gbx2 version 2.0.0, > >>>> and the problem does not show up. > >>>> > >>>> The program uses explicitly QT; both machines have libqt-mt.so.3.3.8 > >>>> installed, and the same debian "stable" os, and I use both machines from a > >>>> third machine running an X11 server (XMing). So it seems the problem is > >>>> related to gambas. > >>>> > >>>> I send a sample project that shows the problem. Launch the application, > >>>> click on the Tableview to focus it, and press a cursor key. The cursor will > >>>> travel in the requested direction 'til the end of the grid. > >>>> > >>>> What can I do about this? I was very very reluctant to upgrade gambas; but > >>>> I reached a point where I could no more install or upgrade my system. Even > >>>> when trying to install a simple htop(1) from debian repositories, I was told > >>>> to upgrade some fu*ing library, which in turn meant to upgrade gambas, which > >>>> in turn meant to upgrade QT, GTK, poppler, libc, libc-bin... well, > >>>> *hundreds* of packages. I will contact the debian mantainer about this - I > >>>> don't care about postgres, firebird, curl, smtp, opengl, sdl, v4l, xml and > >>>> things. It seems that to install gambas on debian one must pull in all the > >>>> world. The other machine, having the old version of gambas, has no problems > >>>> - I copied the gambas binaries directly, instead of installing them from > >>>> packages. I can install and upgrade, and everything runs smoothly. Sorry for > >>>> the debian-related blow. > >>>> > >>>> Regards, > >>>> Doriano > >>>> > >>>> > > > > No same with > > > > 2.18.0 > > Revision: 2447 > > > > > > > Sorry Charlie - I don't understand... "no" what? :-) > Does the cursor travel a lot, or the 2.18 version is exempt (ie, has no > bug?)? > > Thank you, > Doriano Sorry Dariano, no meant, has not changed, even in 2.18.0 Revision: 2447 , the cursor moves from top left to bottom right and return if using left/right arrow key, or top to bottom and return if using up/down arrow key. Oh, tableview is a gambas written component in gb.form there I think you find the problem. -- Amicalement Charlie From doriano.blengino at ...1909... Thu Dec 3 21:32:45 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Thu, 03 Dec 2009 21:32:45 +0100 Subject: [Gambas-user] Problem with tableview when in edit mode In-Reply-To: <1259869708.6397.16.camel@...40...> References: <4B17DE04.1070604@...1909...> <82bffccf0912030904n7dc8b456pdcc2137b7b224653@...627...> <4B17F44E.9070703@...1909...> <1259861473.6397.4.camel@...40...> <4B17F9A4.702@...1909...> <1259869708.6397.16.camel@...40...> Message-ID: <4B18206D.8010308@...1909...> Charlie Reinl ha scritto: > Sorry Dariano, > > no meant, has not changed, even in 2.18.0 Revision: 2447 , the cursor > moves from top left to bottom right and return if using left/right arrow > key, or top to bottom and return if using up/down arrow key. > > Oh, tableview is a gambas written component in gb.form there I think > you find the problem. > > > Thanks to you and Dimitri. It seems that the gambas byte-code generated by 2.15 is compatible with 2.0, so I can stick with version 2.0.0. I would like to hear Benoit about this. To kind Dimitri: > What I meant by different approach was perhaps you should use something else > other than the GotFocus event and LAST.Edit. if it works on 2.0 but doesn't > work > in 2.15, 2.16 and 2.18 (Charlie users 2.18, I use 2.16 and the problem is > probably > not solved in 2.17) then it seems to me (and it's just my opinion) that your > code > needs to be somewhat revised. > No, it is not my code that has to be revised: the problem is not the GotFocus event, is that when in edit mode, if you press a cursor key the tableview goes crazy. Whatever way I choose to enter edit mode, I need to edit cells - otherwise what is tableview for? And when in edit mode, you must be allowed to use the cursor keys... or not? Moreover, I use the tableview Click event - that event gets called every time the focused cell changes; by pressing a cursor key once, I see this click event called over and over. Clearly, there is something wrong in tableview. > BTW 5.0.3 is the latest Debian stable (Check > http://www.debian.org/CD/http-ftp/#stable). > Perhaps we use different repositories. > Yes we do - I use the fastweb (an italian company) repository (because it is free, for me). But they should be simply mirrors. Who knows? Again, thanks to you two. I will investigate more - but I don't want to peek and poke with gambas sources. Regards, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From prog at ...2177... Thu Dec 3 21:56:18 2009 From: prog at ...2177... (craf) Date: Thu, 03 Dec 2009 17:56:18 -0300 Subject: [Gambas-user] using dh_make Message-ID: <1259873778.3628.2.camel@...651...> Hello. I'm trying to create packages .deb for each of the components of Gambas. For those using dh_make. This program asks me to rename a folder. Ej, gb.net to gambas-gb-net_2.18.0. Is this the correct way to rename the folder?. Regards. From Karl.Reinl at ...9... Thu Dec 3 22:10:47 2009 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Thu, 03 Dec 2009 22:10:47 +0100 Subject: [Gambas-user] Problem with tableview when in edit mode In-Reply-To: <4B18206D.8010308@...1909...> References: <4B17DE04.1070604@...1909...> <82bffccf0912030904n7dc8b456pdcc2137b7b224653@...627...> <4B17F44E.9070703@...1909...> <1259861473.6397.4.camel@...40...> <4B17F9A4.702@...1909...> <1259869708.6397.16.camel@...40...> <4B18206D.8010308@...1909...> Message-ID: <1259874647.6397.20.camel@...40...> Am Donnerstag, den 03.12.2009, 21:32 +0100 schrieb Doriano Blengino: > Charlie Reinl ha scritto: > > Sorry Dariano, > > > > no meant, has not changed, even in 2.18.0 Revision: 2447 , the cursor > > moves from top left to bottom right and return if using left/right arrow > > key, or top to bottom and return if using up/down arrow key. > > > > Oh, tableview is a gambas written component in gb.form there I think > > you find the problem. > > > > > > > Thanks to you and Dimitri. > > It seems that the gambas byte-code generated by 2.15 is compatible with > 2.0, so I can stick with version 2.0.0. > I would like to hear Benoit about this. > > To kind Dimitri: > > What I meant by different approach was perhaps you should use something else > > other than the GotFocus event and LAST.Edit. if it works on 2.0 but doesn't > > work > > in 2.15, 2.16 and 2.18 (Charlie users 2.18, I use 2.16 and the problem is > > probably > > not solved in 2.17) then it seems to me (and it's just my opinion) that your > > code > > needs to be somewhat revised. > > > No, it is not my code that has to be revised: the problem is not the > GotFocus event, is that when in edit mode, if you press a cursor key the > tableview goes crazy. Whatever way I choose to enter edit mode, I need > to edit cells - otherwise what is tableview for? And when in edit mode, > you must be allowed to use the cursor keys... or not? Moreover, I use > the tableview Click event - that event gets called every time the > focused cell changes; by pressing a cursor key once, I see this click > event called over and over. Clearly, there is something wrong in tableview. > > > BTW 5.0.3 is the latest Debian stable (Check > > http://www.debian.org/CD/http-ftp/#stable). > > Perhaps we use different repositories. > > > Yes we do - I use the fastweb (an italian company) repository (because > it is free, for me). But they should be simply mirrors. Who knows? > > Again, thanks to you two. I will investigate more - but I don't want to > peek and poke with gambas sources. > > Regards, > Have a look at ChangeLog 2.13 - 14 May 2009 GB.FORM * BUG: TableView now handle the Return/Enter key by raising the Click event instead of automatically editing the cell, so that non-editable cells are not edited by mistake. * BUG: The same fix was applied to the way TableView handles arrow keys. * BUG: The TableView editor now has the same font as the master TableView. * * * * * * From Karl.Reinl at ...9... Thu Dec 3 22:14:23 2009 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Thu, 03 Dec 2009 22:14:23 +0100 Subject: [Gambas-user] Problem with tableview when in edit mode In-Reply-To: <4B18206D.8010308@...1909...> References: <4B17DE04.1070604@...1909...> <82bffccf0912030904n7dc8b456pdcc2137b7b224653@...627...> <4B17F44E.9070703@...1909...> <1259861473.6397.4.camel@...40...> <4B17F9A4.702@...1909...> <1259869708.6397.16.camel@...40...> <4B18206D.8010308@...1909...> Message-ID: <1259874863.6397.23.camel@...40...> Am Donnerstag, den 03.12.2009, 21:32 +0100 schrieb Doriano Blengino: > Charlie Reinl ha scritto: > > Sorry Dariano, > > > > no meant, has not changed, even in 2.18.0 Revision: 2447 , the cursor > > moves from top left to bottom right and return if using left/right arrow > > key, or top to bottom and return if using up/down arrow key. > > > > Oh, tableview is a gambas written component in gb.form there I think > > you find the problem. > > > > > > > Thanks to you and Dimitri. > > It seems that the gambas byte-code generated by 2.15 is compatible with > 2.0, so I can stick with version 2.0.0. > I would like to hear Benoit about this. > > To kind Dimitri: > > What I meant by different approach was perhaps you should use something else > > other than the GotFocus event and LAST.Edit. if it works on 2.0 but doesn't > > work > > in 2.15, 2.16 and 2.18 (Charlie users 2.18, I use 2.16 and the problem is > > probably > > not solved in 2.17) then it seems to me (and it's just my opinion) that your > > code > > needs to be somewhat revised. > > > No, it is not my code that has to be revised: the problem is not the > GotFocus event, is that when in edit mode, if you press a cursor key the > tableview goes crazy. Whatever way I choose to enter edit mode, I need > to edit cells - otherwise what is tableview for? And when in edit mode, > you must be allowed to use the cursor keys... or not? Moreover, I use > the tableview Click event - that event gets called every time the > focused cell changes; by pressing a cursor key once, I see this click > event called over and over. Clearly, there is something wrong in tableview. > > > BTW 5.0.3 is the latest Debian stable (Check > > http://www.debian.org/CD/http-ftp/#stable). > > Perhaps we use different repositories. > > > Yes we do - I use the fastweb (an italian company) repository (because > it is free, for me). But they should be simply mirrors. Who knows? > > Again, thanks to you two. I will investigate more - but I don't want to > peek and poke with gambas sources. > > Regards, > Have a look at ChangeLog 2.13 - 14 May 2009 GB.FORM * BUG: TableView now handle the Return/Enter key by raising the Click event instead of automatically editing the cell, so that non-editable cells are not edited by mistake. * BUG: The same fix was applied to the way TableView handles arrow keys. * BUG: The TableView editor now has the same font as the master TableView. * sorry leaded by a bad key stroke CTRL+Enter in Evolution last mail left me to early, before fished it. So now that's done. -- Amicalement Charlie From doriano.blengino at ...1909... Thu Dec 3 23:11:45 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Thu, 03 Dec 2009 23:11:45 +0100 Subject: [Gambas-user] Problem with tableview when in edit mode In-Reply-To: <1259874863.6397.23.camel@...40...> References: <4B17DE04.1070604@...1909...> <82bffccf0912030904n7dc8b456pdcc2137b7b224653@...627...> <4B17F44E.9070703@...1909...> <1259861473.6397.4.camel@...40...> <4B17F9A4.702@...1909...> <1259869708.6397.16.camel@...40...> <4B18206D.8010308@...1909...> <1259874863.6397.23.camel@...40...> Message-ID: <4B1837A1.9030109@...1909...> Charlie Reinl ha scritto: > Am Donnerstag, den 03.12.2009, 21:32 +0100 schrieb Doriano Blengino: > >> Charlie Reinl ha scritto: >> >>> Sorry Dariano, >>> >>> no meant, has not changed, even in 2.18.0 Revision: 2447 , the cursor >>> moves from top left to bottom right and return if using left/right arrow >>> key, or top to bottom and return if using up/down arrow key. >>> >>> Oh, tableview is a gambas written component in gb.form there I think >>> you find the problem. >>> >>> >> >> Again, thanks to you two. I will investigate more - but I don't want to >> peek and poke with gambas sources. >> >> Regards, >> >> > > Have a look at ChangeLog 2.13 - 14 May 2009 > > GB.FORM > > * BUG: TableView now handle the Return/Enter key by raising the > Click event instead of automatically editing the cell, so that > non-editable cells are not edited by mistake. > * BUG: The same fix was applied to the way TableView handles arrow > keys. > * BUG: The TableView editor now has the same font as the master > TableView. > * > This is what I mean by "investigating"! May be that by correcting a bug, a different one has been generated. In fact I see many click events, one for every cell visited. This is the desirable behaviour, if only, a single keypress would generate a single movement. Sigh. This changelog talks about a bug I've never seen - apart from the Return key one, I think that in versions prior than 2.13 there was nothing wrong with arrow keys. Well, we can wait for Benoit -or- I could in the end take a look at gb.form (but I hate to do it). Thanks again Charlie, the fog is getting lighter. Good night (oder gute nacht, ou bonne nuit? I'm still trying to figure out what is your real preferred language...), -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From gambas at ...1... Thu Dec 3 23:15:49 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 3 Dec 2009 23:15:49 +0100 Subject: [Gambas-user] Gambas Remotly Debug In-Reply-To: <4B1791CF.5030606@...2324...> References: <4B1791CF.5030606@...2324...> Message-ID: <200912032315.49463.gambas@...1...> > Hi to ALL ! > > This is my situation: > > I have a ARM sistem with gambas installed, and I want to debug it from a > PC (I have to develop a new IDE.......) > > How gambas IDE use the interpreter for debug ? > > I thought to develop a service on ARM that via TCP/IP link the ARM > gambas interpreter with a PC IDE. > > What do you think about this solution ? > > Thanks to all !! > Your new threads are never attached to another non-related thread when I receive them. Why? I use KMail: do other people see the same thing than me? Otherwise, can you explain exactly what you want to do? What do you want to debug: The interpreter? A Gambas project? The IDE?... -- Beno?t Minisini From gambas at ...1... Thu Dec 3 23:26:35 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 3 Dec 2009 23:26:35 +0100 Subject: [Gambas-user] Problem with tableview when in edit mode In-Reply-To: <4B17DE04.1070604@...1909...> References: <4B17DE04.1070604@...1909...> Message-ID: <200912032326.35671.gambas@...1...> > I am modifying an old program, which uses a TableView to construct an > invoice. > The tableview is almost always in edit mode. > > With gambas version 2.0.0, the original version I used to write the > program, there is no problem (not this one). > > Now I upgraded to gambas v. 2.15 (debian package gambas2 2.15.2-1), > running on a debian "stable" release. > > When in the tableview (in edit mode) I press an arrow key, the cursor > slips on every possible cell in the request direction, until it finds > the end of the tableview. But this is not enough: if the cursor key is > Left or Right, the cell walking goes even further, wrapping to the next > or previous row and restarting. > > I created an executable, and it behaves the same. > > Then I copied the executable to another machine, having gbx2 version > 2.0.0, and the problem does not show up. > > The program uses explicitly QT; both machines have libqt-mt.so.3.3.8 > installed, and the same debian "stable" os, and I use both machines from > a third machine running an X11 server (XMing). So it seems the problem > is related to gambas. > > I send a sample project that shows the problem. Launch the application, > click on the Tableview to focus it, and press a cursor key. The cursor > will travel in the requested direction 'til the end of the grid. > > What can I do about this? I was very very reluctant to upgrade gambas; > but I reached a point where I could no more install or upgrade my > system. Even when trying to install a simple htop(1) from debian > repositories, I was told to upgrade some fu*ing library, which in turn > meant to upgrade gambas, which in turn meant to upgrade QT, GTK, > poppler, libc, libc-bin... well, *hundreds* of packages. I will contact > the debian mantainer about this - I don't care about postgres, firebird, > curl, smtp, opengl, sdl, v4l, xml and things. It seems that to install > gambas on debian one must pull in all the world. The other machine, > having the old version of gambas, has no problems - I copied the gambas > binaries directly, instead of installing them from packages. I can > install and upgrade, and everything runs smoothly. Sorry for the > debian-related blow. > > Regards, > Doriano > OK, I understand the problem. The TableView is designed so that editing a cell must be decided in the Click event. Otherwise, if the Edit method is not called during a Click event, keyboard events automatically jump them. You must call the Edit method inside the Click event, not the GotFocus event. Before, keyboard events never ignored cells, so things were working normally. Regards, -- Beno?t Minisini From gambas at ...1... Thu Dec 3 23:31:51 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 3 Dec 2009 23:31:51 +0100 Subject: [Gambas-user] Problem with tableview when in edit mode In-Reply-To: <200912032326.35671.gambas@...1...> References: <4B17DE04.1070604@...1909...> <200912032326.35671.gambas@...1...> Message-ID: <200912032331.51736.gambas@...1...> > > I am modifying an old program, which uses a TableView to construct an > > invoice. > > The tableview is almost always in edit mode. > > > > With gambas version 2.0.0, the original version I used to write the > > program, there is no problem (not this one). > > > > Now I upgraded to gambas v. 2.15 (debian package gambas2 2.15.2-1), > > running on a debian "stable" release. > > > > When in the tableview (in edit mode) I press an arrow key, the cursor > > slips on every possible cell in the request direction, until it finds > > the end of the tableview. But this is not enough: if the cursor key is > > Left or Right, the cell walking goes even further, wrapping to the next > > or previous row and restarting. > > > > I created an executable, and it behaves the same. > > > > Then I copied the executable to another machine, having gbx2 version > > 2.0.0, and the problem does not show up. > > > > The program uses explicitly QT; both machines have libqt-mt.so.3.3.8 > > installed, and the same debian "stable" os, and I use both machines from > > a third machine running an X11 server (XMing). So it seems the problem > > is related to gambas. > > > > I send a sample project that shows the problem. Launch the application, > > click on the Tableview to focus it, and press a cursor key. The cursor > > will travel in the requested direction 'til the end of the grid. > > > > What can I do about this? I was very very reluctant to upgrade gambas; > > but I reached a point where I could no more install or upgrade my > > system. Even when trying to install a simple htop(1) from debian > > repositories, I was told to upgrade some fu*ing library, which in turn > > meant to upgrade gambas, which in turn meant to upgrade QT, GTK, > > poppler, libc, libc-bin... well, *hundreds* of packages. I will contact > > the debian mantainer about this - I don't care about postgres, firebird, > > curl, smtp, opengl, sdl, v4l, xml and things. It seems that to install > > gambas on debian one must pull in all the world. The other machine, > > having the old version of gambas, has no problems - I copied the gambas > > binaries directly, instead of installing them from packages. I can > > install and upgrade, and everything runs smoothly. Sorry for the > > debian-related blow. > > > > Regards, > > Doriano > > OK, I understand the problem. > > The TableView is designed so that editing a cell must be decided in the > Click event. Otherwise, if the Edit method is not called during a Click > event, keyboard events automatically jump them. > > You must call the Edit method inside the Click event, not the GotFocus > event. > > Before, keyboard events never ignored cells, so things were working > normally. > > Regards, > I filled the documentation with that information for other having the same problem. Regards, -- Beno?t Minisini From dkmerriman at ...626... Fri Dec 4 08:02:44 2009 From: dkmerriman at ...626... (Dave Merriman) Date: Fri, 4 Dec 2009 00:02:44 -0700 Subject: [Gambas-user] Directories? Message-ID: <200912040002.54105.dkmerriman@...626...> Is there a way to determine what directory a Gambas executable is run from? Or what its 'default' directory is when looking for a file? I've got some text files that I need to read into an array (I *really* wish Gambas had an easy way to embed array data _in_ the program, like the old "data 4, 17, 32, 88..." of BASIC days), and need to know where to put them so they're easily found. -- Encrypted email encouraged and PREFERRED Thursday, December 03, 2009 @ 2357 ** I don't have a solution but I admire the problem. ** ---------------------------------------------------------------- -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: This is a digitally signed message part. URL: From oceanosoftlapalma at ...626... Fri Dec 4 08:13:14 2009 From: oceanosoftlapalma at ...626... (=?ISO-8859-1?Q?Ricardo_D=EDaz_Mart=EDn?=) Date: Fri, 4 Dec 2009 07:13:14 +0000 Subject: [Gambas-user] Gambas Remotly Debug In-Reply-To: <200912032315.49463.gambas@...1...> References: <4B1791CF.5030606@...2324...> <200912032315.49463.gambas@...1...> Message-ID: I use google acount with web interface and I can see his emails right 2009/12/3 Beno?t Minisini > > Hi to ALL ! > > > > This is my situation: > > > > I have a ARM sistem with gambas installed, and I want to debug it from a > > PC (I have to develop a new IDE.......) > > > > How gambas IDE use the interpreter for debug ? > > > > I thought to develop a service on ARM that via TCP/IP link the ARM > > gambas interpreter with a PC IDE. > > > > What do you think about this solution ? > > > > Thanks to all !! > > > > Your new threads are never attached to another non-related thread when I > receive them. Why? I use KMail: do other people see the same thing than me? > > Otherwise, can you explain exactly what you want to do? What do you want to > debug: The interpreter? A Gambas project? The IDE?... > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Join us December 9, 2009 for the Red Hat Virtual Experience, > a free event focused on virtualization and cloud computing. > Attend in-depth sessions from your desk. Your couch. Anywhere. > http://p.sf.net/sfu/redhat-sfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From oceanosoftlapalma at ...626... Fri Dec 4 08:17:51 2009 From: oceanosoftlapalma at ...626... (=?ISO-8859-1?Q?Ricardo_D=EDaz_Mart=EDn?=) Date: Fri, 4 Dec 2009 07:17:51 +0000 Subject: [Gambas-user] Directories? In-Reply-To: <200912040002.54105.dkmerriman@...626...> References: <200912040002.54105.dkmerriman@...626...> Message-ID: Have you tried Application.Path? 2009/12/4 Dave Merriman > Is there a way to determine what directory a Gambas executable is run > from? Or what its 'default' directory is when looking for a file? > > I've got some text files that I need to read into an array (I *really* > wish Gambas had an easy way to embed array data _in_ the program, like > the old "data 4, 17, 32, 88..." of BASIC days), and need to know where > to put them so they're easily found. > > -- > Encrypted email encouraged and PREFERRED > Thursday, December 03, 2009 @ 2357 > ** I don't have a solution but I admire the problem. ** > ---------------------------------------------------------------- > > > ------------------------------------------------------------------------------ > Join us December 9, 2009 for the Red Hat Virtual Experience, > a free event focused on virtualization and cloud computing. > Attend in-depth sessions from your desk. Your couch. Anywhere. > http://p.sf.net/sfu/redhat-sfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From 12ukwn at ...626... Fri Dec 4 08:22:51 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Fri, 04 Dec 2009 08:22:51 +0100 Subject: [Gambas-user] Gambas Remotly Debug In-Reply-To: <200912032315.49463.gambas@...1...> References: <4B1791CF.5030606@...2324...> <200912032315.49463.gambas@...1...> Message-ID: <4B18B8CB.7040905@...626...> Beno?t Minisini a ?crit : > > Your new threads are never attached to another non-related thread when I > receive them. Why? I use KMail: do other people see the same thing than me? I use idedove (thunderbird) and see them ok (however he's cross-posting...) -- coitus interruptus, n: A jerky movement following the words (by either sex partner) "I want to have your child." From eilert-sprachen at ...221... Fri Dec 4 08:43:10 2009 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Fri, 04 Dec 2009 08:43:10 +0100 Subject: [Gambas-user] Directories? In-Reply-To: <200912040002.54105.dkmerriman@...626...> References: <200912040002.54105.dkmerriman@...626...> Message-ID: <4B18BD8E.1010301@...221...> Dave Merriman schrieb: > Is there a way to determine what directory a Gambas executable is run > from? Or what its 'default' directory is when looking for a file? > > I've got some text files that I need to read into an array (I *really* > wish Gambas had an easy way to embed array data _in_ the program, like > the old "data 4, 17, 32, 88..." of BASIC days), and need to know where > to put them so they're easily found. > In this case, I think Application.Path will be your friend. Type it and press F2 while cursor is on Path, you'll get Application.Path (gb) Syntax STATIC PROPERTY READ Path AS String Returns the application path, i.e. the directory where it resides. As to DATA I agree - but there are a lot of ways you can handle this, e. g. by putting your data in strings or string arrays. The most practical way I found is putting such data into files with lines separated by TABs (chr$(9)). You can then easily read the file by File.Load into a string, split it into a string array by using Split with chr$(10) and work on each line by using Split with chr$(9). This works as fast as a DATA line would. Rolf From matteo.lisi at ...2324... Fri Dec 4 09:44:41 2009 From: matteo.lisi at ...2324... (Matteo Lisi) Date: Fri, 04 Dec 2009 09:44:41 +0100 Subject: [Gambas-user] Gambas Remotly Debug In-Reply-To: <200912032315.49463.gambas@...1...> References: <4B1791CF.5030606@...2324...> <200912032315.49463.gambas@...1...> Message-ID: <4B18CBF9.6000401@...2324...> Hi ! I try to explain better: I have a ARM system with gambas installed (gbc2 gbx2 gbi2 ecc... ecc.. but NOT IDE) and I want run in a gambas project. This gambas project must be written on a PC system (windows Based ) and then deploy on the ARM system, and for do this I need to develop a new IDE with new functions for manage this configuration. On the ARM system I have to compile and execute the gambas project written on PC system. But if I want also debug the project on the ARM system and then have the debug control from the PC system what I have to do ? I have a TCP/IP connection from PC system and ARM system with ftp and ssh services enabled. I thought to develop a service on ARM system for link my IDE on the PC system with gambas interpreter , but How I can manage the debug with the interpreter ? Have you some ideas ? Regards and thanks for all you reply... Beno?t Minisini ha scritto: Hi to ALL ! This is my situation: I have a ARM sistem with gambas installed, and I want to debug it from a PC (I have to develop a new IDE.......) How gambas IDE use the interpreter for debug ? I thought to develop a service on ARM that via TCP/IP link the ARM gambas interpreter with a PC IDE. What do you think about this solution ? Thanks to all !! Your new threads are never attached to another non-related thread when I receive them. Why? I use KMail: do other people see the same thing than me? Otherwise, can you explain exactly what you want to do? What do you want to debug: The interpreter? A Gambas project? The IDE?... From doriano.blengino at ...1909... Fri Dec 4 11:41:52 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Fri, 04 Dec 2009 11:41:52 +0100 Subject: [Gambas-user] Problem with tableview when in edit mode In-Reply-To: <200912032331.51736.gambas@...1...> References: <4B17DE04.1070604@...1909...> <200912032326.35671.gambas@...1...> <200912032331.51736.gambas@...1...> Message-ID: <4B18E770.50506@...1909...> Beno?t Minisini ha scritto: >>> I am modifying an old program, which uses a TableView to construct an >>> invoice. >>> The tableview is almost always in edit mode. >>> >>> With gambas version 2.0.0, the original version I used to write the >>> program, there is no problem (not this one). >>> >>> Now I upgraded to gambas v. 2.15 (debian package gambas2 2.15.2-1), >>> running on a debian "stable" release. >>> >>> When in the tableview (in edit mode) I press an arrow key, the cursor >>> slips on every possible cell in the request direction, until it finds >>> the end of the tableview. But this is not enough: if the cursor key is >>> Left or Right, the cell walking goes even further, wrapping to the next >>> or previous row and restarting. >>> >>> I created an executable, and it behaves the same. >>> >>> Then I copied the executable to another machine, having gbx2 version >>> 2.0.0, and the problem does not show up. >>> >>> The program uses explicitly QT; both machines have libqt-mt.so.3.3.8 >>> installed, and the same debian "stable" os, and I use both machines from >>> a third machine running an X11 server (XMing). So it seems the problem >>> is related to gambas. >>> >>> I send a sample project that shows the problem. Launch the application, >>> click on the Tableview to focus it, and press a cursor key. The cursor >>> will travel in the requested direction 'til the end of the grid. >>> >>> What can I do about this? I was very very reluctant to upgrade gambas; >>> but I reached a point where I could no more install or upgrade my >>> system. Even when trying to install a simple htop(1) from debian >>> repositories, I was told to upgrade some fu*ing library, which in turn >>> meant to upgrade gambas, which in turn meant to upgrade QT, GTK, >>> poppler, libc, libc-bin... well, *hundreds* of packages. I will contact >>> the debian mantainer about this - I don't care about postgres, firebird, >>> curl, smtp, opengl, sdl, v4l, xml and things. It seems that to install >>> gambas on debian one must pull in all the world. The other machine, >>> having the old version of gambas, has no problems - I copied the gambas >>> binaries directly, instead of installing them from packages. I can >>> install and upgrade, and everything runs smoothly. Sorry for the >>> debian-related blow. >>> >>> Regards, >>> Doriano >>> >> OK, I understand the problem. >> >> The TableView is designed so that editing a cell must be decided in the >> Click event. Otherwise, if the Edit method is not called during a Click >> event, keyboard events automatically jump them. >> >> You must call the Edit method inside the Click event, not the GotFocus >> event. >> >> Before, keyboard events never ignored cells, so things were working >> normally. >> >> Regards, >> >> > > I filled the documentation with that information for other having the same > problem. > > Did you try the attached project? I tried it once more on another machine: debian stable version 5.0.3, libqt-mt.so.3.3.8, and gambas version 2.15.2; the error *does not* show up, with the edit call in the GotFocus event. I just used the project attached in the previous mail. So the same project, in one of my offices with two different machines shows up the problem. Other users on this list confirmed the problem; but now, on another machine but basically the same (included the XMing remote X server), works well. I am getting pretty confused - but I will go till the end. Apart from this, I can not see the point in your explanation. The GotFocus event gets executed only once, and from there the edit method is called. All ok - there are no problems up to now. Then, if you press once a cursor key, several click events fire without any further intervention, as the cells are traveled. So I think your explanation does not fit. Unfortunately, in this office the problem does not show, so I must wait to investigate more. Just now, looking better at class file, I notice that the edit method is called once in Form_Open and once in Tableview1_GotFocus. F5... error 11. Strange... just a few minutes ago it worked. I relaunch gambas and start again. ... Well, tried several different setups - no problems. Implemented the Save event, and all is work as intended. The edit call can be either in the click event or the save event, or even the GotFocus event: it is exactly the same. I attach the new project, but I think that if the problem shows up somewhere, it is totally unrelated to the place where the edit call is put. I will try better on the other office. The problem is that this kind of works must be done on the other office, not the one I am currently in... Regards, Doriano -------------- next part -------------- A non-text attachment was scrubbed... Name: ProvaTableview-0.0.1.tar.gz Type: application/x-gzip Size: 7709 bytes Desc: not available URL: From Karl.Reinl at ...9... Fri Dec 4 14:03:28 2009 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Fri, 04 Dec 2009 14:03:28 +0100 Subject: [Gambas-user] where should components be intalled ? Message-ID: <1259931808.10395.8.camel@...40...> Salut Beno?t, this question means, where gambas looks for, and find it ! I know : /usr/local/lib/gambas for the gb. and /usr/local/share/gambas/info for the gb.info/list files and for user components /home//.local/lib/gambas and /home//.local/share/gambas/info are there other possibilities ? -- Amicalement Charlie From gambas at ...1... Fri Dec 4 14:47:43 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 4 Dec 2009 14:47:43 +0100 Subject: [Gambas-user] Problem with tableview when in edit mode In-Reply-To: <4B18E770.50506@...1909...> References: <4B17DE04.1070604@...1909...> <200912032331.51736.gambas@...1...> <4B18E770.50506@...1909...> Message-ID: <200912041447.43299.gambas@...1...> > Beno?t Minisini ha scritto: > >>> I am modifying an old program, which uses a TableView to construct an > >>> invoice. > >>> The tableview is almost always in edit mode. > >>> > >>> With gambas version 2.0.0, the original version I used to write the > >>> program, there is no problem (not this one). > >>> > >>> Now I upgraded to gambas v. 2.15 (debian package gambas2 2.15.2-1), > >>> running on a debian "stable" release. > >>> > >>> When in the tableview (in edit mode) I press an arrow key, the cursor > >>> slips on every possible cell in the request direction, until it finds > >>> the end of the tableview. But this is not enough: if the cursor key is > >>> Left or Right, the cell walking goes even further, wrapping to the next > >>> or previous row and restarting. > >>> > >>> I created an executable, and it behaves the same. > >>> > >>> Then I copied the executable to another machine, having gbx2 version > >>> 2.0.0, and the problem does not show up. > >>> > >>> The program uses explicitly QT; both machines have libqt-mt.so.3.3.8 > >>> installed, and the same debian "stable" os, and I use both machines > >>> from a third machine running an X11 server (XMing). So it seems the > >>> problem is related to gambas. > >>> > >>> I send a sample project that shows the problem. Launch the application, > >>> click on the Tableview to focus it, and press a cursor key. The cursor > >>> will travel in the requested direction 'til the end of the grid. > >>> > >>> What can I do about this? I was very very reluctant to upgrade gambas; > >>> but I reached a point where I could no more install or upgrade my > >>> system. Even when trying to install a simple htop(1) from debian > >>> repositories, I was told to upgrade some fu*ing library, which in turn > >>> meant to upgrade gambas, which in turn meant to upgrade QT, GTK, > >>> poppler, libc, libc-bin... well, *hundreds* of packages. I will contact > >>> the debian mantainer about this - I don't care about postgres, > >>> firebird, curl, smtp, opengl, sdl, v4l, xml and things. It seems that > >>> to install gambas on debian one must pull in all the world. The other > >>> machine, having the old version of gambas, has no problems - I copied > >>> the gambas binaries directly, instead of installing them from packages. > >>> I can install and upgrade, and everything runs smoothly. Sorry for the > >>> debian-related blow. > >>> > >>> Regards, > >>> Doriano > >> > >> OK, I understand the problem. > >> > >> The TableView is designed so that editing a cell must be decided in the > >> Click event. Otherwise, if the Edit method is not called during a Click > >> event, keyboard events automatically jump them. > >> > >> You must call the Edit method inside the Click event, not the GotFocus > >> event. > >> > >> Before, keyboard events never ignored cells, so things were working > >> normally. > >> > >> Regards, > > > > I filled the documentation with that information for other having the > > same problem. > > Did you try the attached project? Yes. Did you try what I told you to do? > > I tried it once more on another machine: debian stable version 5.0.3, > libqt-mt.so.3.3.8, and gambas version 2.15.2; the error *does not* show > up, with the edit call in the GotFocus event. I just used the project > attached in the previous mail. > The problem is not in the GotFocus event handler. You must call Edit in the Click event handler, otherwise, when pressing an arrow key, all cells will be assumed as not editable. Then, you can use Edit() in the GotFocus event handler if you want too. But that is optional. Regards, -- Beno?t Minisini From gambas at ...1... Fri Dec 4 14:40:09 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 4 Dec 2009 14:40:09 +0100 Subject: [Gambas-user] where should components be intalled ? In-Reply-To: <1259931808.10395.8.camel@...40...> References: <1259931808.10395.8.camel@...40...> Message-ID: <200912041440.09064.gambas@...1...> > Salut Beno?t, > > this question means, where gambas looks for, and find it ! > > > I know : > /usr/local/lib/gambas for the gb. > and > /usr/local/share/gambas/info for the gb.info/list > files > > > and for user components > > /home//.local/lib/gambas > and > /home//.local/share/gambas/info > > are there other possibilities ? > At the moment, no. -- Beno?t Minisini From gambas at ...1... Fri Dec 4 14:43:24 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 4 Dec 2009 14:43:24 +0100 Subject: [Gambas-user] Directories? In-Reply-To: <200912040002.54105.dkmerriman@...626...> References: <200912040002.54105.dkmerriman@...626...> Message-ID: <200912041443.24705.gambas@...1...> > Is there a way to determine what directory a Gambas executable is run > from? Or what its 'default' directory is when looking for a file? > > I've got some text files that I need to read into an array (I *really* > wish Gambas had an easy way to embed array data _in_ the program, like > the old "data 4, 17, 32, 88..." of BASIC days), and need to know where > to put them so they're easily found. > Dim MyArray As Integer[] = [1, 2, 3, 4] Regards, -- Beno?t Minisini From gambas at ...1... Fri Dec 4 14:57:55 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 4 Dec 2009 14:57:55 +0100 Subject: [Gambas-user] Gambas Remotly Debug In-Reply-To: <4B18CBF9.6000401@...2324...> References: <200912032315.49463.gambas@...1...> <4B18CBF9.6000401@...2324...> Message-ID: <200912041457.55556.gambas@...1...> > Hi ! > I try to explain better: > I have a ARM system with gambas installed (gbc2 gbx2 gbi2 ecc... ecc.. > but NOT IDE) and I want run in a gambas project. > This gambas project must be written on a PC system (windows Based ) and > then deploy on the ARM system, and for do this I need to develop a new IDE > with new functions for manage this configuration. > On the ARM system I have to compile and execute the gambas project > written on PC system. But if I want also debug the project on the ARM > system and then have the debug control from the PC system what I have to > do ? I have a TCP/IP connection from PC system and ARM system with ftp and > ssh services enabled. > I thought to develop a service on ARM system for link my IDE on the PC > system with gambas interpreter , but How I can manage the debug with the > interpreter ? > Have you some ideas ? > Regards and thanks for all you reply... > Beno?t Minisini ha scritto: > OK, I understand now. The IDE and the debugged Gambas application communicate through two named pipes, that are located on the same system then, in the /tmp directory. To do that remotely, I must find a way to: 1) Run a gambas project remotely on the ARM from the PC system. 2) Let him use something else than a pipe (a socket for example). I need help for the first point mainly! -- Beno?t Minisini From doriano.blengino at ...1909... Fri Dec 4 19:02:24 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Fri, 04 Dec 2009 19:02:24 +0100 Subject: [Gambas-user] Problem with tableview when in edit mode In-Reply-To: <200912041447.43299.gambas@...1...> References: <4B17DE04.1070604@...1909...> <200912032331.51736.gambas@...1...> <4B18E770.50506@...1909...> <200912041447.43299.gambas@...1...> Message-ID: <4B194EB0.1060203@...1909...> Beno?t Minisini ha scritto: >> Beno?t Minisini ha scritto: >> >>>>> I am modifying an old program, which uses a TableView to construct an >>>>> invoice. >>>>> The tableview is almost always in edit mode. >>>>> >>>>> With gambas version 2.0.0, the original version I used to write the >>>>> program, there is no problem (not this one). >>>>> >>>>> Now I upgraded to gambas v. 2.15 (debian package gambas2 2.15.2-1), >>>>> running on a debian "stable" release. >>>>> >>>>> When in the tableview (in edit mode) I press an arrow key, the cursor >>>>> slips on every possible cell in the request direction, until it finds >>>>> the end of the tableview. But this is not enough: if the cursor key is >>>>> Left or Right, the cell walking goes even further, wrapping to the next >>>>> or previous row and restarting. >>>>> >>>>> I created an executable, and it behaves the same. >>>>> >>>>> Then I copied the executable to another machine, having gbx2 version >>>>> 2.0.0, and the problem does not show up. >>>>> >>>>> The program uses explicitly QT; both machines have libqt-mt.so.3.3.8 >>>>> installed, and the same debian "stable" os, and I use both machines >>>>> from a third machine running an X11 server (XMing). So it seems the >>>>> problem is related to gambas. >>>>> >>>>> I send a sample project that shows the problem. Launch the application, >>>>> click on the Tableview to focus it, and press a cursor key. The cursor >>>>> will travel in the requested direction 'til the end of the grid. >>>>> >>>>> What can I do about this? I was very very reluctant to upgrade gambas; >>>>> but I reached a point where I could no more install or upgrade my >>>>> system. Even when trying to install a simple htop(1) from debian >>>>> repositories, I was told to upgrade some fu*ing library, which in turn >>>>> meant to upgrade gambas, which in turn meant to upgrade QT, GTK, >>>>> poppler, libc, libc-bin... well, *hundreds* of packages. I will contact >>>>> the debian mantainer about this - I don't care about postgres, >>>>> firebird, curl, smtp, opengl, sdl, v4l, xml and things. It seems that >>>>> to install gambas on debian one must pull in all the world. The other >>>>> machine, having the old version of gambas, has no problems - I copied >>>>> the gambas binaries directly, instead of installing them from packages. >>>>> I can install and upgrade, and everything runs smoothly. Sorry for the >>>>> debian-related blow. >>>>> >>>>> Regards, >>>>> Doriano >>>>> >>>> OK, I understand the problem. >>>> >>>> The TableView is designed so that editing a cell must be decided in the >>>> Click event. Otherwise, if the Edit method is not called during a Click >>>> event, keyboard events automatically jump them. >>>> >>>> You must call the Edit method inside the Click event, not the GotFocus >>>> event. >>>> >>>> Before, keyboard events never ignored cells, so things were working >>>> normally. >>>> >>>> Regards, >>>> >>> I filled the documentation with that information for other having the >>> same problem. >>> >> Did you try the attached project? >> > > Yes. Did you try what I told you to do? > > >> I tried it once more on another machine: debian stable version 5.0.3, >> libqt-mt.so.3.3.8, and gambas version 2.15.2; the error *does not* show >> up, with the edit call in the GotFocus event. I just used the project >> attached in the previous mail. >> >> > > The problem is not in the GotFocus event handler. You must call Edit in the > Click event handler, otherwise, when pressing an arrow key, all cells will be > assumed as not editable. > > Then, you can use Edit() in the GotFocus event handler if you want too. But > that is optional. > > Regards, > > I repeat. I wrote: > Well, tried several different setups - no problems. Implemented the > Save event, and all is work as intended. The edit call can be either > in the click event or the save event, or even the GotFocus event: it > is exactly the same. I attach the new project, but I think that if the > problem shows up somewhere, it is totally unrelated to the place where > the edit call is put. This means that I tried what you told me, and even more. I can say more. I took the original program, not the short sample I brought to the list, and it works as well. The edit call is in three places: the gotfocus event, the btInsert_Click and btDelete_Click events. The last two serve to insert and delete whole rows of the tableview. But, this is half the problem, because in this office there is no problem (not *that* problem). As I can not prove anything right now, I will try once more where the problem appears: in the other office. Then I will try again what you say, and I will report results. Just to keep in the point: what happens if a cell is assumed as not editable? Does it happen that all the cells are traversed up to the end of the grid? Because is that that is happening to me, and others on this list have confirmed; I am not sure we are understanding each other. Anyway, I will investigate and let you know (if you are interested). Regards, Doriano From sourceforge-raindog2 at ...94... Fri Dec 4 19:29:33 2009 From: sourceforge-raindog2 at ...94... (Rob) Date: Fri, 4 Dec 2009 13:29:33 -0500 Subject: [Gambas-user] Gambas Remotly Debug In-Reply-To: <200912032315.49463.gambas@...1...> References: <4B1791CF.5030606@...2324...> <200912032315.49463.gambas@...1...> Message-ID: <200912041329.33525.sourceforge-raindog2@...94...> On Thursday 03 December 2009 05:15 pm, Beno?t Minisini wrote: > Your new threads are never attached to another non-related thread when I > receive them. Why? I use KMail: do other people see the same thing than > me? I've been using kmail since before version 1.0 and I've never seen these list messages threaded at all, even though I have "Expand thread" and "Collapse thread" options in the View menu. Rob From alerinaldi at ...2334... Fri Dec 4 21:44:41 2009 From: alerinaldi at ...2334... (Alessandro Rinaldi) Date: Fri, 4 Dec 2009 21:44:41 +0100 Subject: [Gambas-user] Translated project in Gambas Message-ID: <57de1d080912041244y14111f5bh48a6ff2ea7fd8cd2@...627...> Hello, I'm new into the ML: my name is Alessandro, I'm 16 and I'm from Italy. I'm developing a radio automation software for Linux. Its scope is no to be more powerful than others, but just to be simple and useable by a human :) I translated the project using the Gambas translation tool, and I'd like to add a menu where the user can select its language, but I can't find a function to load the language. How can I do this? Thank you very much! From 12ukwn at ...626... Fri Dec 4 23:15:35 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Fri, 04 Dec 2009 23:15:35 +0100 Subject: [Gambas-user] Translated project in Gambas In-Reply-To: <57de1d080912041244y14111f5bh48a6ff2ea7fd8cd2@...627...> References: <57de1d080912041244y14111f5bh48a6ff2ea7fd8cd2@...627...> Message-ID: <4B198A07.8040203@...626...> Alessandro Rinaldi a ?crit : > Hello, > I'm new into the ML: my name is Alessandro, I'm 16 and I'm from Italy. > I'm developing a radio automation software for Linux. Its scope is no > to be more powerful than others, but just to be simple and useable by > a human :) > I translated the project using the Gambas translation tool, and I'd > like to add a menu where the user can select its language, but I can't > find a function to load the language. > How can I do this? > Thank you very much! Come vai regazzo? You don't have to do that: languages are linked to locales; all you need is translations files and they're automagically loaded depending on the user's locale. If you wanna "fill" the translations files go to menu: Project > Translate then first add the language(s) you want, then fill the strings. The tremendous advantage of GB is you can translate everything: put your translatable strings between parenthesis and they'll appear into the list :) ie: Suppose you have: PRINT "my test " & myvar & " is unilanguage" Rewrite it as: PRINT ("my test ") & myvar & (" is multilanguage") JY -- The reason they're called wisdom teeth is that the experience makes you wise. From alerinaldi at ...2334... Fri Dec 4 23:23:47 2009 From: alerinaldi at ...2334... (Alessandro Rinaldi) Date: Fri, 4 Dec 2009 23:23:47 +0100 Subject: [Gambas-user] Translated project in Gambas In-Reply-To: <4B198A07.8040203@...626...> References: <57de1d080912041244y14111f5bh48a6ff2ea7fd8cd2@...627...> <4B198A07.8040203@...626...> Message-ID: <57de1d080912041423v1b2181d1g6bf6c1a70eeb1706@...627...> Hi :) I already did this, but if a user wants to try other language, can he do it from the gui (i.e. without using "env LANG=xx")? Thanks From gambas at ...1... Fri Dec 4 23:58:36 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 4 Dec 2009 23:58:36 +0100 Subject: [Gambas-user] Translated project in Gambas In-Reply-To: <57de1d080912041423v1b2181d1g6bf6c1a70eeb1706@...627...> References: <57de1d080912041244y14111f5bh48a6ff2ea7fd8cd2@...627...> <4B198A07.8040203@...626...> <57de1d080912041423v1b2181d1g6bf6c1a70eeb1706@...627...> Message-ID: <200912042358.36395.gambas@...1...> > Hi :) > I already did this, but if a user wants to try other language, can he > do it from the gui (i.e. without using "env LANG=xx")? > Thanks > Yes and no. :-) If you redefine the System.Language property, the localization (language+country) will change, but the translations of already loaded forms will not be reloaded automatically. You must destroy all your forms, and reload it. The simpler is storing in a configuration file the language wanted by the user, define the System.Language at startup with it. If the user wants to change it, just tell him to restart the application. Regards, -- Beno?t Minisini From gambas at ...1... Sat Dec 5 00:03:56 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 5 Dec 2009 00:03:56 +0100 Subject: [Gambas-user] Problem with tableview when in edit mode In-Reply-To: <4B194EB0.1060203@...1909...> References: <4B17DE04.1070604@...1909...> <200912041447.43299.gambas@...1...> <4B194EB0.1060203@...1909...> Message-ID: <200912050003.56357.gambas@...1...> > Beno?t Minisini ha scritto: > >> Beno?t Minisini ha scritto: > >>>>> I am modifying an old program, which uses a TableView to construct an > >>>>> invoice. > >>>>> The tableview is almost always in edit mode. > >>>>> > >>>>> With gambas version 2.0.0, the original version I used to write the > >>>>> program, there is no problem (not this one). > >>>>> > >>>>> Now I upgraded to gambas v. 2.15 (debian package gambas2 2.15.2-1), > >>>>> running on a debian "stable" release. > >>>>> > >>>>> When in the tableview (in edit mode) I press an arrow key, the cursor > >>>>> slips on every possible cell in the request direction, until it finds > >>>>> the end of the tableview. But this is not enough: if the cursor key > >>>>> is Left or Right, the cell walking goes even further, wrapping to the > >>>>> next or previous row and restarting. > >>>>> > >>>>> I created an executable, and it behaves the same. > >>>>> > >>>>> Then I copied the executable to another machine, having gbx2 version > >>>>> 2.0.0, and the problem does not show up. > >>>>> > >>>>> The program uses explicitly QT; both machines have libqt-mt.so.3.3.8 > >>>>> installed, and the same debian "stable" os, and I use both machines > >>>>> from a third machine running an X11 server (XMing). So it seems the > >>>>> problem is related to gambas. > >>>>> > >>>>> I send a sample project that shows the problem. Launch the > >>>>> application, click on the Tableview to focus it, and press a cursor > >>>>> key. The cursor will travel in the requested direction 'til the end > >>>>> of the grid. > >>>>> > >>>>> What can I do about this? I was very very reluctant to upgrade > >>>>> gambas; but I reached a point where I could no more install or > >>>>> upgrade my system. Even when trying to install a simple htop(1) from > >>>>> debian repositories, I was told to upgrade some fu*ing library, which > >>>>> in turn meant to upgrade gambas, which in turn meant to upgrade QT, > >>>>> GTK, poppler, libc, libc-bin... well, *hundreds* of packages. I will > >>>>> contact the debian mantainer about this - I don't care about > >>>>> postgres, firebird, curl, smtp, opengl, sdl, v4l, xml and things. It > >>>>> seems that to install gambas on debian one must pull in all the > >>>>> world. The other machine, having the old version of gambas, has no > >>>>> problems - I copied the gambas binaries directly, instead of > >>>>> installing them from packages. I can install and upgrade, and > >>>>> everything runs smoothly. Sorry for the debian-related blow. > >>>>> > >>>>> Regards, > >>>>> Doriano > >>>> > >>>> OK, I understand the problem. > >>>> > >>>> The TableView is designed so that editing a cell must be decided in > >>>> the Click event. Otherwise, if the Edit method is not called during a > >>>> Click event, keyboard events automatically jump them. > >>>> > >>>> You must call the Edit method inside the Click event, not the GotFocus > >>>> event. > >>>> > >>>> Before, keyboard events never ignored cells, so things were working > >>>> normally. > >>>> > >>>> Regards, > >>> > >>> I filled the documentation with that information for other having the > >>> same problem. > >> > >> Did you try the attached project? > > > > Yes. Did you try what I told you to do? > > > >> I tried it once more on another machine: debian stable version 5.0.3, > >> libqt-mt.so.3.3.8, and gambas version 2.15.2; the error *does not* show > >> up, with the edit call in the GotFocus event. I just used the project > >> attached in the previous mail. > > > > The problem is not in the GotFocus event handler. You must call Edit in > > the Click event handler, otherwise, when pressing an arrow key, all cells > > will be assumed as not editable. > > > > Then, you can use Edit() in the GotFocus event handler if you want too. > > But that is optional. > > > > Regards, > > I repeat. > > I wrote: > > Well, tried several different setups - no problems. Implemented the > > Save event, and all is work as intended. The edit call can be either > > in the click event or the save event, or even the GotFocus event: it > > is exactly the same. I attach the new project, but I think that if the > > problem shows up somewhere, it is totally unrelated to the place where > > the edit call is put. > > This means that I tried what you told me, and even more. > > I can say more. I took the original program, not the short sample I > brought to the list, and it works as well. The edit call is in three > places: the gotfocus event, the btInsert_Click and btDelete_Click > events. The last two serve to insert and delete whole rows of the > tableview. > > But, this is half the problem, because in this office there is no > problem (not *that* problem). As I can not prove anything right now, I > will try once more where the problem appears: in the other office. Then > I will try again what you say, and I will report results. > > Just to keep in the point: what happens if a cell is assumed as not > editable? Does it happen that all the cells are traversed up to the end > of the grid? Because is that that is happening to me, and others on this > list have confirmed; I am not sure we are understanding each other. > > Anyway, I will investigate and let you know (if you are interested). > > Regards, > Doriano > For sure there is somewhere we don't understand each other. :-) I used a few TableView in the IDE: look at the project property dialog, in the environment tab. You will see how I implemented them: the insert and delete button, the Click, Data, Insert and Save event handlers... Please tell me the difference between what I did there and what you did. When you sent me your little example, I just added a Click event handler with a call to Edit() inside, and everything worked as expected. And if things works on some computers without change, maybe they use an old version of Gambas (< 2.13). Regards, -- Beno?t Minisini From gambas at ...1... Sat Dec 5 00:05:18 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 5 Dec 2009 00:05:18 +0100 Subject: [Gambas-user] Gambas Remotly Debug In-Reply-To: <200912041329.33525.sourceforge-raindog2@...94...> References: <200912032315.49463.gambas@...1...> <200912041329.33525.sourceforge-raindog2@...94...> Message-ID: <200912050005.18271.gambas@...1...> > On Thursday 03 December 2009 05:15 pm, Beno?t Minisini wrote: > > Your new threads are never attached to another non-related thread when I > > receive them. Why? I use KMail: do other people see the same thing than > > me? > > I've been using kmail since before version 1.0 and I've never seen these > list messages threaded at all, even though I have "Expand thread" and > "Collapse thread" options in the View menu. > > Rob > Oops, I said "never" instead of "always". Apparently, KMail receives new Matteo's threads, and attach them to a non-related thread. No idea why... -- Beno?t Minisini From ronstk at ...239... Sat Dec 5 02:25:45 2009 From: ronstk at ...239... (Ron_1st) Date: Sat, 5 Dec 2009 02:25:45 +0100 Subject: [Gambas-user] Gambas Remotly Debug In-Reply-To: <200912050005.18271.gambas@...1...> References: <200912041329.33525.sourceforge-raindog2@...94...> <200912050005.18271.gambas@...1...> Message-ID: <200912050225.46274.ronstk@...239...> On Saturday 05 December 2009, Beno?t Minisini wrote: > > On Thursday 03 December 2009 05:15 pm, Beno?t Minisini wrote: > > > Your new threads are never attached to another non-related thread when I > > > receive them. Why? I use KMail: do other people see the same thing than > > > me? > > > > I've been using kmail since before version 1.0 and I've never seen these > > list messages threaded at all, even though I have "Expand thread" and > > "Collapse thread" options in the View menu. > > > > Rob > > > > Oops, I said "never" instead of "always". Apparently, KMail receives new > Matteo's threads, and attach them to a non-related thread. No idea why... > Look in the headers. Received: by vws35 with SMTP id 35so455862vws.4 ????????for ; ????????Wed, 02 Dec 2009 23:27:06 -0800 (PST) MIME-Version: 1.0 Received: by 10.220.121.155 with SMTP id h27mr1482265vcr.20.1259825226532; ????????Wed, 02 Dec 2009 23:27:06 -0800 (PST) In-Reply-To: <200912022108.02111.gambas at ...1...> References: ????????<200912021452.39709.gambas at ...1...> ???????? ????????<200912022108.02111.gambas at ...1...> Date: Thu, 3 Dec 2009 18:27:06 +1100 Message-ID: From: Kadaitcha Man To: mailing list for gambas users [[[ note : Message-ID: ]]] Received: from unknown (HELO ?192.168.2.123?) ????????(matteo.lisi at ...2324...@85.39.149.113) ????????by smtp3.aruba.it with SMTP; 3 Dec 2009 10:24:28 -0000 Message-ID: <4B1791CF.5030606 at ...2324...> Date: Thu, 03 Dec 2009 11:24:15 +0100 From: Matteo Lisi User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: mailing list for gambas users References: ???<200912021452.39709.gambas at ...1...>??????????<200912022108.02111.gambas at ...1...> ???????? In-Reply-To: X-Spam-Rating: smtp3.aruba.it 1.6.2 0/1000/N X-Spam-Score: 0.0 (/) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. ????????See http://spamassassin.org/tag/ for more details. _SUMMARY_ X-Headers-End: 1NG8rV-0005TO-Ls Subject: [Gambas-user] Gambas Remotly Debug X-BeenThere: gambas-user at lists.sourceforge.net [[[ ote : In-Reply-To: ]]] So I think/belive he is always using 'Reply' instead of 'New Message' For Matteo Lisi: When people close a thread i.e. '[Gambas-user] Ok, what have I done? in the message three they do not see always new messages apear. Second it is not of others/my interest to continue to read that thread anymore. By a reply on that thread your message wil be lost for others/me. In other words. you are limmiting the count of readers for your question. If you have a new question or other message always start with a new to get attention of the readers. Best regards, Ron_1st -- From ronstk at ...239... Sat Dec 5 02:36:16 2009 From: ronstk at ...239... (Ron_1st) Date: Sat, 5 Dec 2009 02:36:16 +0100 Subject: [Gambas-user] Gambas Remotly Debug In-Reply-To: <200912050005.18271.gambas@...1...> References: <200912041329.33525.sourceforge-raindog2@...94...> <200912050005.18271.gambas@...1...> Message-ID: <200912050236.17157.ronstk@...239...> On Saturday 05 December 2009, Beno?t Minisini wrote: > > On Thursday 03 December 2009 05:15 pm, Beno?t Minisini wrote: > > > Your new threads are never attached to another non-related thread when I > > > receive them. Why? I use KMail: do other people see the same thing than > > > me? > > > > I've been using kmail since before version 1.0 and I've never seen these > > list messages threaded at all, even though I have "Expand thread" and > > "Collapse thread" options in the View menu. > > > > Rob > > > > Oops, I said "never" instead of "always". Apparently, KMail receives new > Matteo's threads, and attach them to a non-related thread. No idea why... > I confirm this for 'always' and using kmail too :) Best regards, Ron_1st -- From gambas.fr at ...626... Sat Dec 5 11:27:05 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 5 Dec 2009 11:27:05 +0100 Subject: [Gambas-user] SDL component documentation In-Reply-To: <26603936.post@...1379...> References: <26603936.post@...1379...> Message-ID: <6324a42a0912050227o585af93fl97a288a4e6bd9a9@...627...> gb.sdl is incomplete ... in fact Laurent have begin to redraw all the gb.sdl lib by using OpenGl... but ... still incomplete ... i think the lack of users on this lib mess his enthusiasm (sorry for my english) Maybe if there is more user to test his work on gb3 he will purchase his work.. :/ another thing will be very fantastic in gambas ... (in my dream)... do you know Blitz Basic 3D ? try a look on it !!... it's a fabulous language that allow to easily make 3D Games. This lib just load Scene, and avatar (3D objects) and use preprogrammed actions... so in fact most of the job is done by the C lib ... i think with a tool like irrlicht engine we will be able to do a thing like Blitz... Be we are all busy and this is a job for new gambas helpers... Are we so few people to want a good Basic Language on linux ?... Is there no people so curious to create new C gambas Libs ? What are the difficulties on making gambas libs that limit the numbers of libs develloppers ? As python can do many things, Gambas can do the same and with more velocity... And a more beautifull IDE People of Gambas, Gambasians... help us to make Gambas even better, take some hour a month to add page on wiki, translate, create examples, create libs. You have id?as... it's good, you tell us to do things for you ... good ... but we are humans, with jobs, ... so like us ... you want something... try to do it yourself... and then if you can because you miss some knowlege... tell us for help ... this is the game and the philosophy of GNU world. And it's so anthousiasmic to have a piece of ourself in a great project ! NO ? Fabien Bodard This message is not only for Kevin ... :-) (Thanks kevin to try to help us !) 2009/12/2 kevinfishburne : > > I've noticed that the documentation for the SDL component is incomplete. > There are some basic examples in the BeastScroll example application > packaged with GAMBAS, but is there a more extensive list of procedures > implemented in GAMBAS for SDL? > > I'm guessing that the next best way of figuring out what has been > implemented is to review the source code for the SDL component of GAMBAS. If > that is the case, which source files should I look at to determine which SDL > procedures have been implemented and how they're used? C and C++ source code > is alien to me, so looking at all the files in gb.sdl/src is a bit > intimidating in the context of discovering which procedures will work in > GAMBAS. > > I consider SDL an extremely important aspect of GAMBAS, so if I could obtain > the procedures and their usage/parameters I'd be willing to complete the > missing documentation for them using the same syntax as the existing > documentation. Thanks all. > > ----- > Kevin Fishburne, Eight Virtues > www: ?http://sales.eightvirtues.com http://sales.eightvirtues.com > e-mail: ?mailto:sales at ...1887... sales at ...1887... > phone: (770) 853-6271 > -- > View this message in context: http://old.nabble.com/SDL-component-documentation-tp26603936p26603936.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > Join us December 9, 2009 for the Red Hat Virtual Experience, > a free event focused on virtualization and cloud computing. > Attend in-depth sessions from your desk. Your couch. Anywhere. > http://p.sf.net/sfu/redhat-sfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From kb2scs at ...2326... Sat Dec 5 13:39:43 2009 From: kb2scs at ...2326... (John) Date: Sat, 05 Dec 2009 07:39:43 -0500 Subject: [Gambas-user] Need a Ubuntu/Linux teacher Message-ID: <1260016783.1880.16.camel@...2329...> Hi All I am new to Linux. I am using Ubuntu 9.10. What I am looking for is a kind person to help me off line with Linux and Ubuntu. No I do not intend to use this list as my Linux learning aid. Other than this one message I will never ask this list for this type of help again. Yes I could join a Ubuntu mailing list. I am sure there are many very good Ubuntu mailing lists out there. I just do not want to join yet another mailing list. Anyone interested in helping me out please contact me direct. Just so that you know I do not know Linux but I do know computers. My first computer was a vic-2o. I like most new Linux users have come from the Windows world. I can make a Windows box sing. Thank you for your time in reading this message. Again from now on any message I send to this list will be about Gambas and nothing else. -- Let us hope we never witness the "Silence Of The Hams" 73 DE John KB2SCS Packet: KB2SCS at ...2333...#NLI.NY.USA.NOAM E-Mail: kb2scs at ...2328... Web Page: http://www.qsl.net/kb2scs From alerinaldi at ...2334... Sat Dec 5 13:42:55 2009 From: alerinaldi at ...2334... (Alessandro Rinaldi) Date: Sat, 5 Dec 2009 13:42:55 +0100 Subject: [Gambas-user] Translated project in Gambas In-Reply-To: <200912042358.36395.gambas@...1...> References: <57de1d080912041244y14111f5bh48a6ff2ea7fd8cd2@...627...> <4B198A07.8040203@...626...> <57de1d080912041423v1b2181d1g6bf6c1a70eeb1706@...627...> <200912042358.36395.gambas@...1...> Message-ID: <57de1d080912050442v11abe750na5163e6b44fbc1ea@...627...> That's what I needed :) Thank you very much! From emil at ...1913... Sat Dec 5 13:55:06 2009 From: emil at ...1913... (Emil Tchekov) Date: Sat, 5 Dec 2009 13:55:06 +0100 Subject: [Gambas-user] Need a Ubuntu/Linux teacher In-Reply-To: <1260016783.1880.16.camel@...2329...> References: <1260016783.1880.16.camel@...2329...> Message-ID: <200912051355.06624.emil@...1913...> On Saturday 05 December 2009 13:39:43 John wrote: > Hi All > I am new to Linux. I am using Ubuntu 9.10. > What I am looking for is a kind person to help me off line with Linux > and Ubuntu. > No I do not intend to use this list as my Linux learning aid. > Other than this one message I will never ask this list for this type of > help again. > > Yes I could join a Ubuntu mailing list. I am sure there are many very > good Ubuntu mailing lists out there. I just do not want to join yet > another mailing list. > > Anyone interested in helping me out please contact me direct. > > Just so that you know I do not know Linux but I do know computers. > My first computer was a vic-2o. I like most new Linux users have come > from the Windows world. I can make a Windows box sing. > > Thank you for your time in reading this message. > Again from now on any message I send to this list will be about Gambas > and nothing else. Hi John, If you are fluent in Windows and PC in general, you do not need teacher! Just some more curiosity and wish to try out new things. I started my "journey" in the Linux world in year 2000 with SuSE, meanwhile I am using Ubuntu... You can learn virtually EVERYTHING just by asking "uncle google" ;-) This is the way I learned a lot. my recent google searches "mysql odbc install on ubuntu" -> best hit was on howtoforge "raid on ubuntu" "mysql on ubuntu" I wish you success and lot of fun on your journey! very best regards Emil P.S. There are lot of books written, my favorite is "Linux" from Michael Koffler (it is in German, but there is translation available). Meanwhile it is old, but I mean it is good introduction in Linux. But you can look out for some other ... good luck From gambas at ...1... Sat Dec 5 14:24:19 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 5 Dec 2009 14:24:19 +0100 Subject: [Gambas-user] Serial Port Change Events Not Working after Upgrade to Karmic In-Reply-To: <4B170EFF.9050409@...466...> References: <4B14CECA.1090403@...466...> <200912021452.02761.gambas@...1...> <4B170EFF.9050409@...466...> Message-ID: <200912051424.19894.gambas@...1...> > Benoit, > Here is the output of valgrind as requested. I hope it helps. > Regards, > Tony.. > $ valgrind --tool=memcheck --num-callers=50 gbx2 > ==2404== Memcheck, a memory error detector > ==2404== Copyright (C) 2002-2009, and GNU GPL'd, by Julian Seward et al. > ==2404== Using Valgrind-3.5.0-Debian and LibVEX; rerun with -h for > copyright info > ==2404== Command: gbx2 > ==2404== > /dev/ttyUSB0 > 19200 > 0 > 8 > 1 > 1 > 1 > ==2404== Invalid read of size 4 > ==2404== at 0x535C586: CSerialPort_CallBack (CSerialPort.c:120) > ==2404== by 0x4663A21: CWatch::write(int) (CWatch.cpp:143) > ==2404== by 0x4663885: CWatch::qt_invoke(int, QUObject*) > (CWatch_moc.cpp:91) > ... Is it better with revision #2455? (Ron, you can try too!) -- Beno?t Minisini From ron at ...1740... Sat Dec 5 15:17:57 2009 From: ron at ...1740... (Ron) Date: Sat, 05 Dec 2009 15:17:57 +0100 Subject: [Gambas-user] Serial Port Change Events Not Working after Upgrade to Karmic In-Reply-To: <200912051424.19894.gambas@...1...> References: <4B14CECA.1090403@...466...> <200912021452.02761.gambas@...1...> <4B170EFF.9050409@...466...> <200912051424.19894.gambas@...1...> Message-ID: <4B1A6B95.5010505@...1740...> Beno?t Minisini schreef: >> Benoit, >> Here is the output of valgrind as requested. I hope it helps. >> Regards, >> Tony.. >> $ valgrind --tool=memcheck --num-callers=50 gbx2 >> ==2404== Memcheck, a memory error detector >> ==2404== Copyright (C) 2002-2009, and GNU GPL'd, by Julian Seward et al. >> ==2404== Using Valgrind-3.5.0-Debian and LibVEX; rerun with -h for >> copyright info >> ==2404== Command: gbx2 >> ==2404== >> /dev/ttyUSB0 >> 19200 >> 0 >> 8 >> 1 >> 1 >> 1 >> ==2404== Invalid read of size 4 >> ==2404== at 0x535C586: CSerialPort_CallBack (CSerialPort.c:120) >> ==2404== by 0x4663A21: CWatch::write(int) (CWatch.cpp:143) >> ==2404== by 0x4663885: CWatch::qt_invoke(int, QUObject*) >> (CWatch_moc.cpp:91) >> ... >> > > Is it better with revision #2455? (Ron, you can try too!) > > I guess not... Program received signal SIGSEGV, Segmentation fault. GB_Raise (object=0xd, event_id=0, nparam=0) at gbx_api.c:528 528 OBJECT_REF(object, "GB_Raise"); (gdb) bt #0 GB_Raise (object=0xd, event_id=0, nparam=0) at gbx_api.c:528 #1 0x00334cd5 in CSerialPort_ReadCallBack (_object=0xd) at CSerialPort.c:175 #2 0x08060997 in raise_callback (wait=) at gbx_watch.c:425 #3 do_loop (wait=) at gbx_watch.c:498 #4 0x08060b04 in WATCH_loop () at gbx_watch.c:530 #5 0x08061b72 in main (argc=134739040, argv=0xbffff4f4) at gbx.c:358 (gdb) ==5235== Memcheck, a memory error detector ==5235== Copyright (C) 2002-2009, and GNU GPL'd, by Julian Seward et al. ==5235== Using Valgrind-3.5.0-Debian and LibVEX; rerun with -h for copyright info ==5235== Command: gbx2 -p ==5235== Parent PID: 16998 ==5235== ==5235== Invalid read of size 4 ==5235== at 0x805D8DA: GB_Raise (gbx_api.c:528) ==5235== by 0x460CCD4: CSerialPort_ReadCallBack (CSerialPort.c:175) ==5235== by 0x8060996: do_loop (gbx_watch.c:425) ==5235== by 0x8060B03: WATCH_loop (gbx_watch.c:530) ==5235== by 0x8061B71: main (gbx.c:358) ==5235== Address 0x10 is not stack'd, malloc'd or (recently) free'd ==5235== ==5235== ==5235== Process terminating with default action of signal 11 (SIGSEGV): dumping core ==5235== Access not within mapped region at address 0x10 ==5235== at 0x805D8DA: GB_Raise (gbx_api.c:528) ==5235== by 0x460CCD4: CSerialPort_ReadCallBack (CSerialPort.c:175) ==5235== by 0x8060996: do_loop (gbx_watch.c:425) ==5235== by 0x8060B03: WATCH_loop (gbx_watch.c:530) ==5235== by 0x8061B71: main (gbx.c:358) ==5235== If you believe this happened as a result of a stack ==5235== overflow in your program's main thread (unlikely but ==5235== possible), you can try to increase the size of the ==5235== main thread stack using the --main-stacksize= flag. ==5235== The main thread stack size used in this run was 8388608. Regards, Ron_2nd. From gambas at ...1... Sat Dec 5 16:01:30 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 5 Dec 2009 16:01:30 +0100 Subject: [Gambas-user] Serial Port Change Events Not Working after Upgrade to Karmic In-Reply-To: <4B1A6B95.5010505@...1740...> References: <4B14CECA.1090403@...466...> <200912051424.19894.gambas@...1...> <4B1A6B95.5010505@...1740...> Message-ID: <200912051601.30817.gambas@...1...> It should be ok with revision #2456! If it really works, can you check that changing the flow control between None and something else actually has an effect on CPU consumption? -- Beno?t Minisini From ron at ...1740... Sat Dec 5 16:19:17 2009 From: ron at ...1740... (Ron) Date: Sat, 05 Dec 2009 16:19:17 +0100 Subject: [Gambas-user] Serial Port Change Events Not Working after Upgrade to Karmic In-Reply-To: <200912051601.30817.gambas@...1...> References: <4B14CECA.1090403@...466...> <200912051424.19894.gambas@...1...> <4B1A6B95.5010505@...1740...> <200912051601.30817.gambas@...1...> Message-ID: <4B1A79F5.4010106@...1740...> Beno?t Minisini schreef: > It should be ok with revision #2456! > > If it really works, can you check that changing the flow control between None > and something else actually has an effect on CPU consumption? > > Beno?t, no segfaults, but the system load when running my project with the patch is alot higher than before. Before it was 0.2-0.3 Now it's 1.0-1.10 I'm not using flowcontrol. $ grep FlowControl * CCTX35.class: .FlowControl = 0 CGPS.class: .FlowControl = 0 CPlugwise.class: .FlowControl = 0 CRFXComRX.class: .FlowControl = 0 CRFXComTX.class: .FlowControl = 0 CSMS.class: .FlowControl = 0 CVISCA.class: .FlowControl = 0 CWeeder.class: .FlowControl = 0 CZWave.class: .FlowControl = 0 Six of these serialports are active. And I presume 0 is the same as None. Regards, Ron_2nd. From gambas at ...1... Sat Dec 5 16:35:05 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 5 Dec 2009 16:35:05 +0100 Subject: [Gambas-user] Serial Port Change Events Not Working after Upgrade to Karmic In-Reply-To: <4B1A79F5.4010106@...1740...> References: <4B14CECA.1090403@...466...> <200912051601.30817.gambas@...1...> <4B1A79F5.4010106@...1740...> Message-ID: <200912051635.05987.gambas@...1...> > Beno?t Minisini schreef: > > It should be ok with revision #2456! > > > > If it really works, can you check that changing the flow control between > > None and something else actually has an effect on CPU consumption? > > Beno?t, > > no segfaults, but the system load when running my project with the patch > is alot higher than before. > > Before it was 0.2-0.3 > Now it's 1.0-1.10 > > I'm not using flowcontrol. > > $ grep FlowControl * > CCTX35.class: .FlowControl = 0 > CGPS.class: .FlowControl = 0 > CPlugwise.class: .FlowControl = 0 > CRFXComRX.class: .FlowControl = 0 > CRFXComTX.class: .FlowControl = 0 > CSMS.class: .FlowControl = 0 > CVISCA.class: .FlowControl = 0 > CWeeder.class: .FlowControl = 0 > CZWave.class: .FlowControl = 0 > > Six of these serialports are active. > And I presume 0 is the same as None. > > Regards, > Ron_2nd. > That would mean that the Read callback is called endlessly, as if there are always bytes to read on the serial port. Do you use the read event? Can you check that by implementing a Read event handler, check how much time it is called, and check what can be read on the serial port? If there is something to read on the serial port, if there are data to read, and if you don't read it, the Read callback will be called again and again. Regards, -- Beno?t Minisini From robert1juhasz at ...626... Sat Dec 5 16:40:06 2009 From: robert1juhasz at ...626... (yuhej) Date: Sat, 5 Dec 2009 07:40:06 -0800 (PST) Subject: [Gambas-user] tab Message-ID: <26656660.post@...1379...> Hi, Is there any option to hide some of the tabs of a tab control? For different users I wish to show different information (depending on their right) but I don't know if I may make invisible or not enabled some of the tabs. Another quesion: can I change the order of the tabs (in design time)? Thanks, Robi -- View this message in context: http://old.nabble.com/tab-tp26656660p26656660.html Sent from the gambas-user mailing list archive at Nabble.com. From ron at ...1740... Sat Dec 5 16:55:21 2009 From: ron at ...1740... (Ron) Date: Sat, 05 Dec 2009 16:55:21 +0100 Subject: [Gambas-user] Serial Port Change Events Not Working after Upgrade to Karmic In-Reply-To: <200912051635.05987.gambas@...1...> References: <4B14CECA.1090403@...466...> <200912051601.30817.gambas@...1...> <4B1A79F5.4010106@...1740...> <200912051635.05987.gambas@...1...> Message-ID: <4B1A8269.3020905@...1740...> Beno?t Minisini schreef: >> Beno?t Minisini schreef: >> >>> It should be ok with revision #2456! >>> >>> If it really works, can you check that changing the flow control between >>> None and something else actually has an effect on CPU consumption? >>> >> Beno?t, >> >> no segfaults, but the system load when running my project with the patch >> is alot higher than before. >> >> Before it was 0.2-0.3 >> Now it's 1.0-1.10 >> >> I'm not using flowcontrol. >> >> $ grep FlowControl * >> CCTX35.class: .FlowControl = 0 >> CGPS.class: .FlowControl = 0 >> CPlugwise.class: .FlowControl = 0 >> CRFXComRX.class: .FlowControl = 0 >> CRFXComTX.class: .FlowControl = 0 >> CSMS.class: .FlowControl = 0 >> CVISCA.class: .FlowControl = 0 >> CWeeder.class: .FlowControl = 0 >> CZWave.class: .FlowControl = 0 >> >> Six of these serialports are active. >> And I presume 0 is the same as None. >> >> Regards, >> Ron_2nd. >> >> > > That would mean that the Read callback is called endlessly, as if there are > always bytes to read on the serial port. > > Do you use the read event? Can you check that by implementing a Read event > handler, check how much time it is called, and check what can be read on the > serial port? > > If there is something to read on the serial port, if there are data to read, > and if you don't read it, the Read callback will be called again and again. > > Regards, > > > Almost all of them use a Read event handler. CRFXComRX receives the most number of bytes, as it receives data from all of my temp/energy sensors. I have this defined: PUBLIC SUB RFXComRXSer_Read() DIM sData AS Byte READ #hRFXComRXSer, sData ProcessReceivedChar(sData) END So it reads data byte by byte and process them. Sure a continues flow of data, but before the latest rev. everything works with very low cpuload (with even higher serial loads) . I don't want to loose that! My guess is that now the Read event is called even when there is no data, otherwise I couldn't have a much lower load without changes to my code. I remember having reported the same issue of high loads of serialport code, you fixed it here: Revision: 1796 http://gambas.svn.sourceforge.net/gambas/?rev=1796&view=rev Author: gambas Date: 2009-01-12 21:24:47 +0000 (Mon, 12 Jan 2009) Log Message: ----------- [GB.NET] * BUG: Serial port devices are now watched for reading, not for writing. So the callback will not be called permanently. Modified Paths: -------------- gambas/branches/2.0/gb.net/src/CSerialPort.c Is this related to the fix you have put in now? If you want I can run valgrind/kcachegrind, but I have to make some free time first. Regards, Ron_2nd. From ron at ...1740... Sat Dec 5 17:39:27 2009 From: ron at ...1740... (Ron) Date: Sat, 05 Dec 2009 17:39:27 +0100 Subject: [Gambas-user] Serial Port Change Events Not Working after Upgrade to Karmic In-Reply-To: <200912051635.05987.gambas@...1...> References: <4B14CECA.1090403@...466...> <200912051601.30817.gambas@...1...> <4B1A79F5.4010106@...1740...> <200912051635.05987.gambas@...1...> Message-ID: <4B1A8CBF.4080009@...1740...> Beno?t Minisini schreef: >> Beno?t Minisini schreef: >> >>> It should be ok with revision #2456! >>> >>> If it really works, can you check that changing the flow control between >>> None and something else actually has an effect on CPU consumption? >>> >> Beno?t, >> >> no segfaults, but the system load when running my project with the patch >> is alot higher than before. >> >> Before it was 0.2-0.3 >> Now it's 1.0-1.10 >> >> I'm not using flowcontrol. >> >> $ grep FlowControl * >> CCTX35.class: .FlowControl = 0 >> CGPS.class: .FlowControl = 0 >> CPlugwise.class: .FlowControl = 0 >> CRFXComRX.class: .FlowControl = 0 >> CRFXComTX.class: .FlowControl = 0 >> CSMS.class: .FlowControl = 0 >> CVISCA.class: .FlowControl = 0 >> CWeeder.class: .FlowControl = 0 >> CZWave.class: .FlowControl = 0 >> >> Six of these serialports are active. >> And I presume 0 is the same as None. >> >> Regards, >> Ron_2nd. >> >> > > That would mean that the Read callback is called endlessly, as if there are > always bytes to read on the serial port. > > Do you use the read event? Can you check that by implementing a Read event > handler, check how much time it is called, and check what can be read on the > serial port? > > If there is something to read on the serial port, if there are data to read, > and if you don't read it, the Read callback will be called again and again. > > Regards, > > > Benoit, runned valgrind tool for a while. And I got a rather strange winner, I got 3 milion calls of _add_char in gb_error.c Some debug code hanging around or something like that? See attached valgrind file. Regards, Ron_2nd. -------------- next part -------------- A non-text attachment was scrubbed... Name: callgrind.out.4711.zip Type: application/x-zip-compressed Size: 121762 bytes Desc: not available URL: From 12ukwn at ...626... Sat Dec 5 18:21:06 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Sat, 05 Dec 2009 18:21:06 +0100 Subject: [Gambas-user] Serial Port Change Events Not Working after Upgrade to Karmic In-Reply-To: <4B1A8CBF.4080009@...1740...> References: <4B14CECA.1090403@...466...> <200912051601.30817.gambas@...1...> <4B1A79F5.4010106@...1740...> <200912051635.05987.gambas@...1...> <4B1A8CBF.4080009@...1740...> Message-ID: <4B1A9682.6040100@...626...> Ron a ?crit : ... > runned valgrind tool for a while. > > And I got a rather strange winner, I got 3 milion calls of _add_char in > gb_error.c > > Some debug code hanging around or something like that? > > See attached valgrind file. May be that's a source for what I noticed (Debian sid, XP2600+, 1.5GB RAM): if I start a GB project while there a CPU (or I/O) hungry process running, half the time GB says its running, but no window shows on screen. JY -- In which level of metalanguage are you now speaking? From gambas at ...1... Sat Dec 5 18:38:39 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 5 Dec 2009 18:38:39 +0100 Subject: [Gambas-user] Serial Port Change Events Not Working after Upgrade to Karmic In-Reply-To: <4B1A8CBF.4080009@...1740...> References: <4B14CECA.1090403@...466...> <200912051635.05987.gambas@...1...> <4B1A8CBF.4080009@...1740...> Message-ID: <200912051838.39800.gambas@...1...> > Beno?t Minisini schreef: > >> Beno?t Minisini schreef: > >>> It should be ok with revision #2456! > >>> > >>> If it really works, can you check that changing the flow control > >>> between None and something else actually has an effect on CPU > >>> consumption? > >> > >> Beno?t, > >> > >> no segfaults, but the system load when running my project with the patch > >> is alot higher than before. > >> > >> Before it was 0.2-0.3 > >> Now it's 1.0-1.10 > >> > >> I'm not using flowcontrol. > >> > >> $ grep FlowControl * > >> CCTX35.class: .FlowControl = 0 > >> CGPS.class: .FlowControl = 0 > >> CPlugwise.class: .FlowControl = 0 > >> CRFXComRX.class: .FlowControl = 0 > >> CRFXComTX.class: .FlowControl = 0 > >> CSMS.class: .FlowControl = 0 > >> CVISCA.class: .FlowControl = 0 > >> CWeeder.class: .FlowControl = 0 > >> CZWave.class: .FlowControl = 0 > >> > >> Six of these serialports are active. > >> And I presume 0 is the same as None. > >> > >> Regards, > >> Ron_2nd. > > > > That would mean that the Read callback is called endlessly, as if there > > are always bytes to read on the serial port. > > > > Do you use the read event? Can you check that by implementing a Read > > event handler, check how much time it is called, and check what can be > > read on the serial port? > > > > If there is something to read on the serial port, if there are data to > > read, and if you don't read it, the Read callback will be called again > > and again. > > > > Regards, > > Benoit, > > runned valgrind tool for a while. > > And I got a rather strange winner, I got 3 milion calls of _add_char in > gb_error.c > > Some debug code hanging around or something like that? > > See attached valgrind file. > > Regards, > Ron_2nd. > The reason is a lot of one-byte reading that raises the EOF error. This should be logical if the read event handler is called whereas there is nothing to read, and then you read one byte. But why Linux tells me (the interpreter actually) that there is something to read on the serial port file descriptor, whereas there is nothing? Regards, -- Beno?t Minisini From gambas.fr at ...626... Sat Dec 5 19:47:06 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 5 Dec 2009 19:47:06 +0100 Subject: [Gambas-user] tab In-Reply-To: <26656660.post@...1379...> References: <26656660.post@...1379...> Message-ID: <6324a42a0912051047p21b27275g43d9d69fb0644c64@...627...> 2009/12/5 yuhej : > > Hi, > > Is there any option to hide some of the tabs of a tab control? For different > users I wish to show different information (depending on their right) but I > don't know if I may make invisible or not enabled some of the tabs. > TabStrip1[0].Visible = FALSE or TabStrip1[0].Enabled = FALSE > Another quesion: can I change the order of the tabs (in design time)? > yes you have an option on right click on the form editor > Thanks, > Robi > -- > View this message in context: http://old.nabble.com/tab-tp26656660p26656660.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > Join us December 9, 2009 for the Red Hat Virtual Experience, > a free event focused on virtualization and cloud computing. > Attend in-depth sessions from your desk. Your couch. Anywhere. > http://p.sf.net/sfu/redhat-sfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From doriano.blengino at ...1909... Sat Dec 5 20:33:05 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Sat, 05 Dec 2009 20:33:05 +0100 Subject: [Gambas-user] Problem with tableview when in edit mode In-Reply-To: <200912050003.56357.gambas@...1...> References: <4B17DE04.1070604@...1909...> <200912041447.43299.gambas@...1...> <4B194EB0.1060203@...1909...> <200912050003.56357.gambas@...1...> Message-ID: <4B1AB571.9060506@...1909...> Beno?t Minisini ha scritto: >> Beno?t Minisini ha scritto: >> >>>> Beno?t Minisini ha scritto: >>>>>>> >>>>>>> >>>>>>> When in the tableview (in edit mode) I press an arrow key, the cursor >>>>>>> slips on every possible cell in the request direction, until it finds >>>>>>> the end of the tableview. But this is not enough: if the cursor key >>>>>>> is Left or Right, the cell walking goes even further, wrapping to the >>>>>>> next or previous row and restarting. >>>>>>> >>>>>>> >>>>>>> > > For sure there is somewhere we don't understand each other. :-) > > I used a few TableView in the IDE: look at the project property dialog, in the > environment tab. You will see how I implemented them: the insert and delete > button, the Click, Data, Insert and Save event handlers... Please tell me the > difference between what I did there and what you did. > > When you sent me your little example, I just added a Click event handler with > a call to Edit() inside, and everything worked as expected. > > And if things works on some computers without change, maybe they use an old > version of Gambas (< 2.13). > Don't take me wrong. Sometimes it seems to me that you don't read the whole message before replying, and sometimes it seems to me that the real problem is not in evidence (english language plays a role in this...). You say that you just added a Click event handler to get the program work. Well, this is not the problem. The program *is* correct (it does practically nothing). The sample program, without modifications, on some machine runs well, and on other machines shows a problem that I will explain better. When you say "old version of gambas (<2.13)", again it seems that you didn't read carefully what I've posted. In every post I specified precisely what gambas version was installed, what os was running on, and the QT library. Now the problem. The problem is that, when the grid is in edit mode, if you press a cursor key the cursor does not move to the adiacent cell; it does not stop: it travels all the cells until it stops on the upper-left cell, or the lower-right one. By doing this, it scrolls the tableview up or down, and if the cursor key was Left or Right, it goes to the right-most or left-most, then wraps around and restarts. For every visited cell a Click event is generated. Note that in the sample program there was no Click handler, just to shows precisely that my program does nothing strange in the click handler (by doing nothing, you can't do anything strange). Now you see that I was not complaining about gotfocus, or "not editable" cells, or anything else. I say that a single key press should move the cursor by a single cell, not travel the whole tableview. Now the history. 1. I discovered the error on one machine, with an updated debian stable, gambas v. 2.15.2, libqt-mt.so.3.3.8, while working on an old application. Suspecting that the complexity of the application could have hide something, I wrote a new project (the sample program). Same error. Then I tried it on the other machine: same OS, same libraries, same X server - only gambas different: version 2.0.0. No error. 2. I posted a message on the list, to ask if someone else saw the same error. Two users confirmed it - one gambas 2.16, another with gambas 2.17. So the problem is alive, on at least three machines. 3. I tried on a third machine. Same os, same libraries, gambas 2.15, same remote X server. Identical situation. No error. 4. Now I am at home. Same os, same libraries, gambas 2.0.0. No error. At this point, if someone tells me that I have to modify the program to make it work, I ask myself _why_ it works (I have seen more machines on which the program works well than machines where the problem shows up). On my machines, which are four, I've seen the problem only once. But two users on this list confirmed the error. So, it seems to be an error which shows up rarely, if we want to say so. The only idea I have now is to go back to my first machine and investigate more. It is very difficult to investigate on an error if that error does not show up... Now I ask you: you say you added a Click event to make the program work properly. Why you did so? Why you say this event handler was missing? What was the "wrong" behaviour, when the event handler was missing? I wait for your reply; the next week I will work again on the original machine (the only one where I saw the problem), and I am determined to see over the fog. Regards, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From gambas at ...1... Sat Dec 5 20:48:26 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 5 Dec 2009 20:48:26 +0100 Subject: [Gambas-user] Serial Port Change Events Not Working after Upgrade to Karmic In-Reply-To: <200912051838.39800.gambas@...1...> References: <4B14CECA.1090403@...466...> <4B1A8CBF.4080009@...1740...> <200912051838.39800.gambas@...1...> Message-ID: <200912052048.26449.gambas@...1...> > > > > Benoit, > > > > runned valgrind tool for a while. > > > > And I got a rather strange winner, I got 3 milion calls of _add_char in > > gb_error.c > > > > Some debug code hanging around or something like that? > > > > See attached valgrind file. > > > > Regards, > > Ron_2nd. > > The reason is a lot of one-byte reading that raises the EOF error. This > should be logical if the read event handler is called whereas there is > nothing to read, and then you read one byte. > > But why Linux tells me (the interpreter actually) that there is something > to read on the serial port file descriptor, whereas there is nothing? > > Regards, > Hmm. I tested the SerialPort example by sending data to it, and I don't see any CPU consumption. What happens if you don't read the data byte by byte, but all the available data at once, as the SerialPort example does? This way: PUBLIC SUB MySerialPort_Read() DIM s AS String READ #MySerialPort, s, Lof(MySerialPort) ... END -- Beno?t Minisini From gambas at ...1... Sat Dec 5 21:04:59 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 5 Dec 2009 21:04:59 +0100 Subject: [Gambas-user] Problem with tableview when in edit mode In-Reply-To: <4B1AB571.9060506@...1909...> References: <4B17DE04.1070604@...1909...> <200912050003.56357.gambas@...1...> <4B1AB571.9060506@...1909...> Message-ID: <200912052104.59130.gambas@...1...> > > Don't take me wrong. Sometimes it seems to me that you don't read the > whole message before replying, and sometimes it seems to me that the > real problem is not in evidence (english language plays a role in > this...). You say that you just added a Click event handler to get the > program work. Well, this is not the problem. The program *is* correct > (it does practically nothing). The sample program, without > modifications, on some machine runs well, and on other machines shows a > problem that I will explain better. When you say "old version of gambas > (<2.13)", again it seems that you didn't read carefully what I've > posted. In every post I specified precisely what gambas version was > installed, what os was running on, and the QT library. > > Now the problem. The problem is that, when the grid is in edit mode, if > you press a cursor key the cursor does not move to the adiacent cell; it > does not stop: it travels all the cells until it stops on the upper-left > cell, or the lower-right one. By doing this, it scrolls the tableview up > or down, and if the cursor key was Left or Right, it goes to the > right-most or left-most, then wraps around and restarts. For every > visited cell a Click event is generated. Note that in the sample program > there was no Click handler, just to shows precisely that my program does > nothing strange in the click handler (by doing nothing, you can't do > anything strange). Now you see that I was not complaining about > gotfocus, or "not editable" cells, or anything else. I say that a single > key press should move the cursor by a single cell, not travel the whole > tableview. > > Now the history. > > 1. I discovered the error on one machine, with an updated debian stable, > gambas v. 2.15.2, libqt-mt.so.3.3.8, while working on an old > application. Suspecting that the complexity of the application could > have hide something, I wrote a new project (the sample program). Same > error. Then I tried it on the other machine: same OS, same libraries, > same X server - only gambas different: version 2.0.0. No error. > > 2. I posted a message on the list, to ask if someone else saw the same > error. Two users confirmed it - one gambas 2.16, another with gambas > 2.17. So the problem is alive, on at least three machines. > > 3. I tried on a third machine. Same os, same libraries, gambas 2.15, > same remote X server. Identical situation. No error. > > 4. Now I am at home. Same os, same libraries, gambas 2.0.0. No error. > > At this point, if someone tells me that I have to modify the program to > make it work, I ask myself _why_ it works (I have seen more machines on > which the program works well than machines where the problem shows up). > On my machines, which are four, I've seen the problem only once. But two > users on this list confirmed the error. So, it seems to be an error > which shows up rarely, if we want to say so. > > The only idea I have now is to go back to my first machine and > investigate more. It is very difficult to investigate on an error if > that error does not show up... > > Now I ask you: you say you added a Click event to make the program work > properly. Why you did so? Why you say this event handler was missing? > What was the "wrong" behaviour, when the event handler was missing? > > I wait for your reply; the next week I will work again on the original > machine (the only one where I saw the problem), and I am determined to > see over the fog. > > Regards, > No, no. I think I read you correctly. I am going to try to explain the things differently... Before Gambas 2.13, when you hit an arrow key in the TableView control, the TableView cursor was move by one cell only, and the Edit method was called automatically. So things were working *only* for TableView whose all cells are editable. For TableView having some cells read-only, the keyboard management was flawed. So, in Gambas 2.13, the Edit method is not called automatically anymore, and I decided that a cell will be considered as "non-editable" if the Edit method was not called during the Click event. And "non-editable" cells are automatically ignored when using the arrow key. That explains the behaviour you noticed in computers using Gambas >= 2.13. (Let's ignore the computer #3 at the moment): for example, if you are on the top of the TableView, and if you hit the "down arrow" key, the current cell will be moved one by one until an editable cell is found. As you don't call the Edit method inside the Click event handler, no cell is considered as editable, and so the TableView cursor is moved down to the bottom. I hope I was clear! As for the computer #3: I don't understand that you don't have the problem, as the Gambas version is >= 2.15. To fix your problem, you *have to* call the Edit() method inside the Click event handler. It will tell TableView that your cell are editable when the user use the arrow keys. But, of course, you *can* use the Edit() method outside of the Click event handler. Then things will work for Gambas >= 2.13, and stay the same for Gambas < 2.13. Regards, -- Beno?t Minisini From nando_f at ...951... Sat Dec 5 21:14:04 2009 From: nando_f at ...951... (nando) Date: Sat, 5 Dec 2009 15:14:04 -0500 Subject: [Gambas-user] Serial Port Change Events Not Working after Upgrade to Karmic In-Reply-To: <200912052048.26449.gambas@...1...> References: <4B14CECA.1090403@...466...> <4B1A8CBF.4080009@...1740...> <200912051838.39800.gambas@...1...> <200912052048.26449.gambas@...1...> Message-ID: <20091205200748.M63486@...951...> Benoit, Just to let you know, for your information only. My serial port applicationS that have been running 24 hours for 4 years on over 150 computers works much better when pull out All less 1 byte each _Read event as opposed to. I've found out that sometimes, rarely, _Read didn't fire and this worked better. Still Using 1.0.18 or .19 and solid as a rock!! -Fernando ---------- Original Message ----------- From: Beno?t Minisini To: mailing list for gambas users Sent: Sat, 5 Dec 2009 20:48:26 +0100 Subject: Re: [Gambas-user] Serial Port Change Events Not Working after Upgrade to Karmic > > > > > > Benoit, > > > > > > runned valgrind tool for a while. > > > > > > And I got a rather strange winner, I got 3 milion calls of _add_char in > > > gb_error.c > > > > > > Some debug code hanging around or something like that? > > > > > > See attached valgrind file. > > > > > > Regards, > > > Ron_2nd. > > > > The reason is a lot of one-byte reading that raises the EOF error. This > > should be logical if the read event handler is called whereas there is > > nothing to read, and then you read one byte. > > > > But why Linux tells me (the interpreter actually) that there is something > > to read on the serial port file descriptor, whereas there is nothing? > > > > Regards, > > > > Hmm. I tested the SerialPort example by sending data to it, and I don't see > any CPU consumption. > > What happens if you don't read the data byte by byte, but all the available > data at once, as the SerialPort example does? This way: > > PUBLIC SUB MySerialPort_Read() > DIM s AS String > READ #MySerialPort, s, Lof(MySerialPort) > ... > END > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Join us December 9, 2009 for the Red Hat Virtual Experience, > a free event focused on virtualization and cloud computing. > Attend in-depth sessions from your desk. Your couch. Anywhere. > http://p.sf.net/sfu/redhat-sfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From gambas at ...1... Sat Dec 5 21:56:41 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 5 Dec 2009 21:56:41 +0100 Subject: [Gambas-user] Serial Port Change Events Not Working after Upgrade to Karmic In-Reply-To: <20091205200748.M63486@...951...> References: <4B14CECA.1090403@...466...> <200912052048.26449.gambas@...1...> <20091205200748.M63486@...951...> Message-ID: <200912052156.41340.gambas@...1...> > Benoit, > Just to let you know, for your information only. > My serial port applicationS that have been running 24 hours for 4 years on > over 150 computers works much better when pull out All less 1 byte each > _Read event as opposed to. I didn't understand the last sentence. Do you read bytes one by one or all at once? You should read all available bytes at once, by using the Lof() function. Regards, -- Beno?t Minisini From doriano.blengino at ...1909... Sat Dec 5 22:49:23 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Sat, 05 Dec 2009 22:49:23 +0100 Subject: [Gambas-user] Problem with tableview when in edit mode In-Reply-To: <200912052104.59130.gambas@...1...> References: <4B17DE04.1070604@...1909...> <200912050003.56357.gambas@...1...> <4B1AB571.9060506@...1909...> <200912052104.59130.gambas@...1...> Message-ID: <4B1AD563.1050704@...1909...> Beno?t Minisini ha scritto: >> Don't take me wrong. Sometimes it seems to me that you don't read the >> whole message before replying, and sometimes it seems to me that the >> real problem is not in evidence (english language plays a role in >> this...). You say that you just added a Click event handler to get the >> program work. Well, this is not the problem. The program *is* correct >> (it does practically nothing). The sample program, without >> modifications, on some machine runs well, and on other machines shows a >> problem that I will explain better. When you say "old version of gambas >> (<2.13)", again it seems that you didn't read carefully what I've >> posted. In every post I specified precisely what gambas version was >> installed, what os was running on, and the QT library. >> >> Now the problem. The problem is that, when the grid is in edit mode, if >> you press a cursor key the cursor does not move to the adiacent cell; it >> does not stop: it travels all the cells until it stops on the upper-left >> cell, or the lower-right one. By doing this, it scrolls the tableview up >> or down, and if the cursor key was Left or Right, it goes to the >> right-most or left-most, then wraps around and restarts. For every >> visited cell a Click event is generated. Note that in the sample program >> there was no Click handler, just to shows precisely that my program does >> nothing strange in the click handler (by doing nothing, you can't do >> anything strange). Now you see that I was not complaining about >> gotfocus, or "not editable" cells, or anything else. I say that a single >> key press should move the cursor by a single cell, not travel the whole >> tableview. >> >> Now the history. >> >> 1. I discovered the error on one machine, with an updated debian stable, >> gambas v. 2.15.2, libqt-mt.so.3.3.8, while working on an old >> application. Suspecting that the complexity of the application could >> have hide something, I wrote a new project (the sample program). Same >> error. Then I tried it on the other machine: same OS, same libraries, >> same X server - only gambas different: version 2.0.0. No error. >> >> 2. I posted a message on the list, to ask if someone else saw the same >> error. Two users confirmed it - one gambas 2.16, another with gambas >> 2.17. So the problem is alive, on at least three machines. >> >> 3. I tried on a third machine. Same os, same libraries, gambas 2.15, >> same remote X server. Identical situation. No error. >> >> 4. Now I am at home. Same os, same libraries, gambas 2.0.0. No error. >> >> At this point, if someone tells me that I have to modify the program to >> make it work, I ask myself _why_ it works (I have seen more machines on >> which the program works well than machines where the problem shows up). >> On my machines, which are four, I've seen the problem only once. But two >> users on this list confirmed the error. So, it seems to be an error >> which shows up rarely, if we want to say so. >> >> The only idea I have now is to go back to my first machine and >> investigate more. It is very difficult to investigate on an error if >> that error does not show up... >> >> Now I ask you: you say you added a Click event to make the program work >> properly. Why you did so? Why you say this event handler was missing? >> What was the "wrong" behaviour, when the event handler was missing? >> >> I wait for your reply; the next week I will work again on the original >> machine (the only one where I saw the problem), and I am determined to >> see over the fog. >> >> Regards, >> >> > > No, no. I think I read you correctly. I am going to try to explain the things > differently... > > Before Gambas 2.13, when you hit an arrow key in the TableView control, the > TableView cursor was move by one cell only, and the Edit method was called > automatically. So things were working *only* for TableView whose all cells are > editable. For TableView having some cells read-only, the keyboard management > was flawed. > > So, in Gambas 2.13, the Edit method is not called automatically anymore, and I > decided that a cell will be considered as "non-editable" if the Edit method > was not called during the Click event. And "non-editable" cells are > automatically ignored when using the arrow key. > > That explains the behaviour you noticed in computers using Gambas >= 2.13. > (Let's ignore the computer #3 at the moment): for example, if you are on the > top of the TableView, and if you hit the "down arrow" key, the current cell > will be moved one by one until an editable cell is found. As you don't call > the Edit method inside the Click event handler, no cell is considered as > editable, and so the TableView cursor is moved down to the bottom. I hope I > was clear! > > As for the computer #3: I don't understand that you don't have the problem, as > the Gambas version is >= 2.15. > > To fix your problem, you *have to* call the Edit() method inside the Click > event handler. It will tell TableView that your cell are editable when the > user use the arrow keys. But, of course, you *can* use the Edit() method > outside of the Click event handler. > > Then things will work for Gambas >= 2.13, and stay the same for Gambas < 2.13. > > Regards, > > Ok, so we are talking about the same thing :-) But this does not explain why the program works well the other times (computer #3, for example). Knowing what there is behind, I will experiment (try to call edit in the click event: this should stop the crazy traveling). But, I think that traveling many cells is anyway wrong - it is too easy to get the wrong behaviour. Would not it be more predictable to move just one cell, and simply avoid to enter the edit mode? This way, a programmer could understand that he should call edit() again. Thanks for the more clear reply. Regards, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From keithclark at ...2185... Sat Dec 5 23:18:36 2009 From: keithclark at ...2185... (Keith Clark) Date: Sat, 05 Dec 2009 17:18:36 -0500 Subject: [Gambas-user] MySQL access example Message-ID: <1260051516.3631.6.camel@...2336...> Does anyone have an example program that I can take a look at that accesses a remote MySQL database? Keith From nospam.nospam.nospam at ...626... Sun Dec 6 00:34:33 2009 From: nospam.nospam.nospam at ...626... (Kadaitcha Man) Date: Sun, 6 Dec 2009 10:34:33 +1100 Subject: [Gambas-user] Directories? In-Reply-To: <200912040002.54105.dkmerriman@...626...> References: <200912040002.54105.dkmerriman@...626...> Message-ID: 2009/12/4 Dave Merriman : > I've got some text files that I need to read into an array (I ?*really* > wish Gambas had an easy way to embed array data _in_ the program, like > the old "data 4, 17, 32, 88..." of BASIC days) It does have such a feature. It all depends on how many more ways than one you can think of to skin a cat. Take a look at the attached example. -------------- next part -------------- A non-text attachment was scrubbed... Name: DataTest.tar.gz Type: application/x-gzip Size: 10663 bytes Desc: not available URL: From nospam.nospam.nospam at ...626... Sun Dec 6 01:45:09 2009 From: nospam.nospam.nospam at ...626... (Kadaitcha Man) Date: Sun, 6 Dec 2009 11:45:09 +1100 Subject: [Gambas-user] Need a Ubuntu/Linux teacher In-Reply-To: <1260016783.1880.16.camel@...2329...> References: <1260016783.1880.16.camel@...2329...> Message-ID: 2009/12/5 John : > I can make a Windows box sing. I tend to agree with Emil, lots of searching and reading on google is advised, but temper it with your own knowledge - some of the stuff out there is just downright wrong. I was a Windows developer and have decades of experience with it. I learned linux and gambas by trial and error and I am still learning by trial and error to this day. This weekend alone I installed no less than six linux distros; Arch, Gentoo, Sabayon, kubuntu and Mandriva (can't remember the sixth), only to learn that I should have stayed with Ubuntu :) Ok, I learned something else too in the process. I can install qt4 on Ubuntu and have gambas create lovely qt-based apps instead of being forced to use the awful GTK engine. Yes, I could have just used kubuntu but KDE is really bloody ugly and overly complex IMO :) Anyway, that said, google, persevere and ask when you're truly stuck. There is certain je ne sais quoi about discovering for oneself what is probably common knowledge amongst the gurus. From nando_f at ...951... Sun Dec 6 05:03:53 2009 From: nando_f at ...951... (nando) Date: Sat, 5 Dec 2009 23:03:53 -0500 Subject: [Gambas-user] Serial Port Change Events Not Working after Upgrade to Karmic In-Reply-To: <200912052156.41340.gambas@...1...> References: <4B14CECA.1090403@...466...> <200912052048.26449.gambas@...1...> <20091205200748.M63486@...951...> <200912052156.41340.gambas@...1...> Message-ID: <20091206035934.M35980@...951...> I found out that reading one by one is a slow process, I found out that reading all Lof will in a rare instance _READ will not fire when only 1 byte arrives immediately after. I find it works correctly 100% when I read Lof()-1 and rely on _Read to fire again. for the one remaining and the new one arriving immediately after. ---------- Original Message ----------- From: Beno?t Minisini To: nando_f at ...951..., mailing list for gambas users Sent: Sat, 5 Dec 2009 21:56:41 +0100 Subject: Re: [Gambas-user] Serial Port Change Events Not Working after Upgrade to Karmic > > Benoit, > > Just to let you know, for your information only. > > My serial port applicationS that have been running 24 hours for 4 years on > > over 150 computers works much better when pull out All less 1 byte each > > _Read event as opposed to. > > I didn't understand the last sentence. Do you read bytes one by one or all at > once? You should read all available bytes at once, by using the Lof() > function. > > Regards, > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Join us December 9, 2009 for the Red Hat Virtual Experience, > a free event focused on virtualization and cloud computing. > Attend in-depth sessions from your desk. Your couch. Anywhere. > http://p.sf.net/sfu/redhat-sfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From robert1juhasz at ...626... Sun Dec 6 09:23:47 2009 From: robert1juhasz at ...626... (Robert JUHASZ) Date: Sun, 6 Dec 2009 09:23:47 +0100 Subject: [Gambas-user] tab In-Reply-To: <6324a42a0912051047p21b27275g43d9d69fb0644c64@...627...> References: <26656660.post@...1379...> <6324a42a0912051047p21b27275g43d9d69fb0644c64@...627...> Message-ID: <68652a0b0912060023o4d5ac231o2bfd32f35a92956e@...627...> Perfect, thx! 2009/12/5 Fabien Bodard > 2009/12/5 yuhej : > > > > Hi, > > > > Is there any option to hide some of the tabs of a tab control? For > different > > users I wish to show different information (depending on their right) but > I > > don't know if I may make invisible or not enabled some of the tabs. > > > TabStrip1[0].Visible = FALSE > or TabStrip1[0].Enabled = FALSE > > Another quesion: can I change the order of the tabs (in design time)? > > > yes you have an option on right click on the form editor > > Thanks, > > Robi > > -- > > View this message in context: > http://old.nabble.com/tab-tp26656660p26656660.html > > Sent from the gambas-user mailing list archive at Nabble.com. > > > > > > > ------------------------------------------------------------------------------ > > Join us December 9, 2009 for the Red Hat Virtual Experience, > > a free event focused on virtualization and cloud computing. > > Attend in-depth sessions from your desk. Your couch. Anywhere. > > http://p.sf.net/sfu/redhat-sfdev2dev > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > ------------------------------------------------------------------------------ > Join us December 9, 2009 for the Red Hat Virtual Experience, > a free event focused on virtualization and cloud computing. > Attend in-depth sessions from your desk. Your couch. Anywhere. > http://p.sf.net/sfu/redhat-sfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From charles at ...1784... Sun Dec 6 11:17:32 2009 From: charles at ...1784... (charlesg) Date: Sun, 6 Dec 2009 02:17:32 -0800 (PST) Subject: [Gambas-user] MySQL access example In-Reply-To: <1260051516.3631.6.camel@...2336...> References: <1260051516.3631.6.camel@...2336...> Message-ID: <26663560.post@...1379...> Hi I don't think Gambas is too particular where it reads the mySQL server. If you mean remote on network (not remote on internet) then the following (for Ubuntu) might help. Set router to use fixed addresses or at least ensure that the mySQL server boots first to always use same address. on server: comment out skip-networking in /etc/mysql/my.cnf comment out bind address in /etc/mysql/my.cnf (I am not sure this is too secure but it works - would welcome expert comment on this!) allow remote connection from your lan subnet e.g. 192.168.1.0/24: sudo /sbin/iptables -A INPUT -i eth0 -s 192.168.1.0/24 -p tcp --destination-port 3306 -j ACCEPT (you may not be using eth0) grant all on stock.* to charles@'192.168.2.3' identified by 'dog'; from mySQL on server. from terminal on the remote machine you should be able to connect now with: mysql -h 192.168.1.2 -u charles -p (where the address is the server address) Once that works, Gambas simply becomes: WITH conn .Type = "mysql" .Host = "192.168.1.5" (or whatever) .Login = "charles" .password = "dog" .Name = "stock" END WITH TRY conn.Open -- View this message in context: http://old.nabble.com/MySQL-access-example-tp26660182p26663560.html Sent from the gambas-user mailing list archive at Nabble.com. From demosthenesk at ...626... Sun Dec 6 12:13:31 2009 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Sun, 6 Dec 2009 13:13:31 +0200 Subject: [Gambas-user] MySQL access example In-Reply-To: <1260051516.3631.6.camel@...2336...> References: <1260051516.3631.6.camel@...2336...> Message-ID: u can see this project http://sourceforge.net/projects/gambas-mysqladm/ On Sun, Dec 6, 2009 at 12:18 AM, Keith Clark wrote: > Does anyone have an example program that I can take a look at that > accesses a remote MySQL database? > > Keith > > > > ------------------------------------------------------------------------------ > Join us December 9, 2009 for the Red Hat Virtual Experience, > a free event focused on virtualization and cloud computing. > Attend in-depth sessions from your desk. Your couch. Anywhere. > http://p.sf.net/sfu/redhat-sfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- ???? ???? ?? ?????!!! Regards, Demosthenes Koptsis From gambas at ...1... Sun Dec 6 12:27:49 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 6 Dec 2009 12:27:49 +0100 Subject: [Gambas-user] Serial Port Change Events Not Working after Upgrade to Karmic In-Reply-To: <20091206035934.M35980@...951...> References: <4B14CECA.1090403@...466...> <200912052156.41340.gambas@...1...> <20091206035934.M35980@...951...> Message-ID: <200912061227.49891.gambas@...1...> > I found out that reading one by one is a slow process, > I found out that reading all Lof will in a rare instance _READ will not > fire when only 1 byte arrives immediately after. > I find it works correctly 100% when I read Lof()-1 and rely on _Read to > fire again. for the one remaining and the new one arriving immediately > after. > Uh... Very strange! It would be cool if you could try your program with the latest Gambas 2 or Gambas 3 and see if you have to do the same trick. Regards, -- Beno?t Minisini From ajw4me at ...466... Sun Dec 6 21:59:24 2009 From: ajw4me at ...466... (Tony) Date: Mon, 07 Dec 2009 07:59:24 +1100 Subject: [Gambas-user] Serial Port Change Events Not Working after Upgrade to Karmic In-Reply-To: <200912061227.49891.gambas@...1...> References: <4B14CECA.1090403@...466...> <200912052156.41340.gambas@...1...> <20091206035934.M35980@...951...> <200912061227.49891.gambas@...1...> Message-ID: <4B1C1B2C.6020403@...466...> Beno?t Minisini wrote: I found out that reading one by one is a slow process, I found out that reading all Lof will in a rare instance _READ will not fire when only 1 byte arrives immediately after. I find it works correctly 100% when I read Lof()-1 and rely on _Read to fire again. for the one remaining and the new one arriving immediately after. Uh... Very strange! It would be cool if you could try your program with the latest Gambas 2 or Gambas 3 and see if you have to do the same trick. Regards, Hi all, I'd just like to report that with revision 2459, the change events have been restored for my application. I tried flowcontrol none/hardware/software/both and couldn't pick any appreciable difference in CPU utilisation. The funny thing is that the anomoly reported in a previous email - " The application also uses the UDPsocket to communicate remotely and what I have noticed is that if the serial port does not open correctly e.g. /dev/tty wrong and the UDPsocket is open, then there is a large amount of CPU used. Both open correctly and CPU normal" - appears to be fixed. Whilst I don't understand why this has been fixed, it would seem to be another plus. Regards, Tony. From prog at ...2177... Mon Dec 7 18:16:53 2009 From: prog at ...2177... (craf) Date: Mon, 07 Dec 2009 14:16:53 -0300 Subject: [Gambas-user] Installing a Gambas program independent of the distribution through DIR GB Message-ID: <1260206213.3622.7.camel@...651...> Hello Benoit. I'm trying to run Gambas on a computer that does not have the component packages, based on the help that you gave the user JGuardon, which wanted to run Gambas on a USB stick. In one of the points of support, type: 2)copy the installation directory Gambas in another folder. Let's name it "/my/Gambas/dir". Question: What installation directory is copied?. Those who are in usr/local/bin, usr/local/lib, usr/local/share?, Or the program directory is being created. At another point he said: 3) Create a script like that: #!/bin/sh export LD_LIBRARY_PATH=/my/ld/dir:$LD_LIBRARY_PATH export GB_DIR=/my/gambas/dir exec /my/application.gambas Question: This script, which must be saved to be executed?. If you could give some idea, I appreciate it. Regards From gambas at ...1... Mon Dec 7 18:27:43 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 7 Dec 2009 18:27:43 +0100 Subject: [Gambas-user] libtool problem In-Reply-To: <200911281514.52033.lordheavy@...1...> References: <4B1120F2.6050502@...69...> <200911281514.52033.lordheavy@...1...> Message-ID: <200912071827.43097.gambas@...1...> > Le samedi 28 novembre 2009 14:09:06, o.s.p a ?crit : > > hallo! > > frugalware (current) here with libtool 2.2.6b > > when in make install step i have this error: > > ..... > > libtool: Version mismatch error. This is libtool 2.2.6, but the > > libtool: definition of this LT_INIT comes from libtool 2.2.6b. > > libtool: You should recreate aclocal.m4 with macros from libtool 2.2.6 > > libtool: and run autoconf again. > > make[2]: *** [gbc3] Error 63 > > make[2]: Leaving directory `/home/god/Desktop/src/g/trunk/main/gbc' > > make[1]: *** [install-recursive] Error 1 > > make[1]: Leaving directory `/home/god/Desktop/src/g/trunk/main' > > make: *** [install-recursive] Error 1 > > > > > > thanks > > > > Put this file in the root of gambas dir and run ./reconf-all > It's only a quick workaround but it's working. > > ++ > Is it worth adding that workaround to the source tree? -- Beno?t Minisini From lordheavym at ...626... Mon Dec 7 20:04:57 2009 From: lordheavym at ...626... (Laurent Carlier) Date: Mon, 7 Dec 2009 20:04:57 +0100 Subject: [Gambas-user] libtool problem In-Reply-To: <200912071827.43097.gambas@...1...> References: <4B1120F2.6050502@...69...> <200911281514.52033.lordheavy@...1...> <200912071827.43097.gambas@...1...> Message-ID: <200912072004.57881.lordheavy@...1...> Le lundi 07 d?cembre 2009 18:27:43, Beno?t Minisini a ?crit : > > Le samedi 28 novembre 2009 14:09:06, o.s.p a ?crit : > > > hallo! > > > frugalware (current) here with libtool 2.2.6b > > > when in make install step i have this error: > > > ..... > > > libtool: Version mismatch error. This is libtool 2.2.6, but the > > > libtool: definition of this LT_INIT comes from libtool 2.2.6b. > > > libtool: You should recreate aclocal.m4 with macros from libtool 2.2.6 > > > libtool: and run autoconf again. > > > make[2]: *** [gbc3] Error 63 > > > make[2]: Leaving directory `/home/god/Desktop/src/g/trunk/main/gbc' > > > make[1]: *** [install-recursive] Error 1 > > > make[1]: Leaving directory `/home/god/Desktop/src/g/trunk/main' > > > make: *** [install-recursive] Error 1 > > > > > > > > > thanks > > > > Put this file in the root of gambas dir and run ./reconf-all > > It's only a quick workaround but it's working. > > > > ++ > > Is it worth adding that workaround to the source tree? > it would be better to add this through a "--force" option (not yet done), it's the reason it's not yet done :-) ++ From euph1 at ...734... Mon Dec 7 21:39:47 2009 From: euph1 at ...734... (mike) Date: Mon, 07 Dec 2009 15:39:47 -0500 Subject: [Gambas-user] Serial port data being changed ???? Message-ID: <4B1D6813.1000408@...734...> I'm having trouble with Gambas and the serial ports. Something is changing binary &h0d to &h0a when received from a serial port. I noticed it in a program that I've been working on that receives packets of binary data from a microprocessor. I wrote a little test program to demonstrate the problem and have included it below. I also reprogrammed the micro to simply send &h0d as long a pushbutton is held depressed. I have verified that the correct data is indeed being sent using CuteCom to display the binary data. An interesting thing that I noticed when I ran CuteCom to test the data being received is that if I close CuteCom without closing the serial port first then run my Gambas program, it works fine until I restart the system. If I close the port before closing CuteCom then my Gambas program fails. This is the code for the test program. ' Gambas class file ' Using Gambas 2.18 on a system running ' Fedora Kernel (26.30.9-102.fc11.x86_64) ' It also fails running Gambas 2.11 ' on my laptop running ' Fedora Kernel (2.6.27.25-78.2.56.fc9.i686) PUBLIC SUB Form_Open() ME.Center ' Setup the serial port - 9600,8,N,1 ' SerPort1.PortName = "/dev/ttyS0" ' Both ports fail SerPort1.PortName = "/dev/ttyUSB0" ' This the port I'll eventually use SerPort1.Speed = "9600" ' because the laptop has no serial port. SerPort1.DataBits = "8" SerPort1.Parity = "0" SerPort1.StopBits = "1" SerPort1.Open TextArea1.Text = SerPort1.PortName & Chr$(10) END PUBLIC SUB SerPort1_Read() ' A microprocessor is connected to the serial port and ' continuously sends &h0d (CR) as long a push button is held down. DIM InByte AS Byte READ #SerPort1, InByte TextArea1.Insert(Hex$(InByte) & " ") ' The textarea displays a series of "A " (LF) instead of "D " (CR) END PUBLIC SUB ExitBtn_Click() SerPort1.Close QUIT END PUBLIC SUB ClearBtn_Click() TextArea1.Clear END From rterry at ...1946... Tue Dec 8 04:50:46 2009 From: rterry at ...1946... (richard terry) Date: Tue, 8 Dec 2009 14:50:46 +1100 Subject: [Gambas-user] Printing from a webview Message-ID: <200912081450.47002.rterry@...1946...> I wondered if anyone knew how to print from this control - it dosn't seem to have a print function like the old konqueror webrowser. Regards Richard From eilert-sprachen at ...221... Tue Dec 8 10:32:08 2009 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Tue, 08 Dec 2009 10:32:08 +0100 Subject: [Gambas-user] Gambas on 64 bit Message-ID: <4B1E1D18.1070400@...221...> Hi, just because I've never had this problem but have to plan for the future: Does Gambas1 run on 64 bit systems? And what about Gambas2 ? Thanks for your advice... Rolf From ron at ...1740... Tue Dec 8 10:42:52 2009 From: ron at ...1740... (Ron) Date: Tue, 08 Dec 2009 10:42:52 +0100 Subject: [Gambas-user] Gambas on 64 bit In-Reply-To: <4B1E1D18.1070400@...221...> References: <4B1E1D18.1070400@...221...> Message-ID: <4B1E1F9C.1090509@...1740...> Rolf-Werner Eilert wrote: > Hi, > > just because I've never had this problem but have to plan for the future: > > Does Gambas1 run on 64 bit systems? > > And what about Gambas2 ? > > Thanks for your advice... > > > Gambas 1, no. Gambas 2.18.0 yes, without problems. Regards, Ron_2nd. From eilert-sprachen at ...221... Tue Dec 8 11:02:35 2009 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Tue, 08 Dec 2009 11:02:35 +0100 Subject: [Gambas-user] Gambas on 64 bit In-Reply-To: <4B1E1F9C.1090509@...1740...> References: <4B1E1D18.1070400@...221...> <4B1E1F9C.1090509@...1740...> Message-ID: <4B1E243B.2000809@...221...> Ron schrieb: > Rolf-Werner Eilert wrote: >> Hi, >> >> just because I've never had this problem but have to plan for the future: >> >> Does Gambas1 run on 64 bit systems? >> >> And what about Gambas2 ? >> >> Thanks for your advice... >> >> >> > Gambas 1, no. > Gambas 2.18.0 yes, without problems. > > Regards, > Ron_2nd. Thank you Ron, that means I'll have to review my Gambas1 apps which still run here prior to updating the system... Regards Rolf From les at ...2337... Tue Dec 8 11:35:00 2009 From: les at ...2337... (Les Hardy) Date: Tue, 08 Dec 2009 10:35:00 +0000 Subject: [Gambas-user] Serial port data being changed ???? In-Reply-To: <4B1D6813.1000408@...734...> References: <4B1D6813.1000408@...734...> Message-ID: <4B1E2BD4.4060402@...2337...> mike wrote: > I'm having trouble with Gambas and the serial ports. > Something is changing binary &h0d to &h0a when received > from a serial port. I noticed it in a program that I've > been working on that receives packets of binary data > from a microprocessor. I wrote a little test program to > demonstrate the problem and have included it below. I also > reprogrammed the micro to simply send &h0d as long a > pushbutton is held depressed. I have verified that the > correct data is indeed being sent using CuteCom to display > the binary data. > An interesting thing that I noticed when I ran CuteCom to > test the data being received is that if I close CuteCom without > closing the serial port first then run my Gambas program, it works > fine until I restart the system. If I close the port before closing > CuteCom then my Gambas program fails. > > > This is the code for the test program. > > ' Gambas class file > ' Using Gambas 2.18 on a system running > ' Fedora Kernel (26.30.9-102.fc11.x86_64) > ' It also fails running Gambas 2.11 > ' on my laptop running > ' Fedora Kernel (2.6.27.25-78.2.56.fc9.i686) > > PUBLIC SUB Form_Open() > > ME.Center > > ' Setup the serial port - 9600,8,N,1 > > ' SerPort1.PortName = "/dev/ttyS0" ' Both ports fail > SerPort1.PortName = "/dev/ttyUSB0" ' This the port I'll eventually use > SerPort1.Speed = "9600" ' because the laptop has no > serial port. > SerPort1.DataBits = "8" > SerPort1.Parity = "0" > SerPort1.StopBits = "1" > SerPort1.Open > > TextArea1.Text = SerPort1.PortName & Chr$(10) > END > > PUBLIC SUB SerPort1_Read() > > ' A microprocessor is connected to the serial port and > ' continuously sends &h0d (CR) as long a push button is held down. > > DIM InByte AS Byte > > READ #SerPort1, InByte > TextArea1.Insert(Hex$(InByte) & " ") > ' The textarea displays a series of "A " (LF) instead of "D " (CR) > END > > PUBLIC SUB ExitBtn_Click() > > SerPort1.Close > QUIT > END > > PUBLIC SUB ClearBtn_Click() > > TextArea1.Clear > END > This is a Linux thing. Not Gambas. The icrnl flaf is set as standard. Easiest way is to use stty to change it. SHELL "stty -F " & SerPort1.PortName & " -icrnl" From nospam.nospam.nospam at ...626... Tue Dec 8 13:16:43 2009 From: nospam.nospam.nospam at ...626... (Kadaitcha Man) Date: Tue, 8 Dec 2009 23:16:43 +1100 Subject: [Gambas-user] Serial port data being changed ???? In-Reply-To: <4B1E2BD4.4060402@...2337...> References: <4B1D6813.1000408@...734...> <4B1E2BD4.4060402@...2337...> Message-ID: 2009/12/8 Les Hardy : > This is a Linux thing. Not Gambas. Linux has a lot of "things". I learned the hard way that localhost TCP/IP ports below 1024 are protected. Sheesh. I lost a full day to that. Today I lost several hours to Gambas behaviour that is expained by bugs in Qt3. Nevertheless your point is valuable. I'm going to mark your "Linux thing" for inclusion in the documentation. Of course, I first have to figure out if icrnl flaf is a typo or an esoteric command line :) From les at ...2337... Tue Dec 8 15:10:59 2009 From: les at ...2337... (Les Hardy) Date: Tue, 08 Dec 2009 14:10:59 +0000 Subject: [Gambas-user] Serial port data being changed ???? In-Reply-To: References: <4B1D6813.1000408@...734...> <4B1E2BD4.4060402@...2337...> Message-ID: <4B1E5E73.3080804@...2337...> Kadaitcha Man wrote: I first have to figure out if icrnl flaf is a typo or an esoteric command line :) > Yes, esoteric, makes me feel special. Only a few know about flafs. Then again, it could just be flag. From mohareve at ...626... Tue Dec 8 17:40:48 2009 From: mohareve at ...626... (M. Cs.) Date: Tue, 8 Dec 2009 17:40:48 +0100 Subject: [Gambas-user] How to close a modal dialog form? Message-ID: Since the language of help documents aren't as clear to me, and I saw no practical example I need your help. I would like to have a template message dialog with title, text and an image I wrote a subroutine which would do the things. It has an OK button upon itself, but I cannot close the window. I would like this window to block other forms. How could I do that PUBLIC SUB Messenger(naslov AS String, tekst AS String, slika AS String) DIM imge AS PictureBox DIM conti AS TextLabel DIM butty AS Button keret = NEW Form keret.Width = 500 keret.Height = 300 keret.Title = naslov imge = NEW PictureBox(keret) imge.x = 0 imge.y = 0 imge.Width = 280 imge.Height = 280 imge.Border = TRUE imge.Picture = Picture[slika] conti = NEW TextLabel(keret) conti.x = 300 conti.y = 20 conti.Width = 190 conti.Height = 230 conti.Text = tekst butty = NEW Button(keret) butty.x = 340 butty.y = 250 butty.Width = 120 butty.Height = 25 butty.Text = MessageYes.Text keret.Center keret.ShowModal() Object.Attach(butty, ME, "Ops") Message("Hm") END PUBLIC SUB Ops_Click() AS Integer keret.Close() END From doriano.blengino at ...1909... Tue Dec 8 18:03:37 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Tue, 08 Dec 2009 18:03:37 +0100 Subject: [Gambas-user] How to close a modal dialog form? In-Reply-To: References: Message-ID: <4B1E86E9.5040205@...1909...> M. Cs. ha scritto: > Since the language of help documents aren't as clear to me, and I saw no > practical example I need your help. I would like to have a template message > dialog with title, text and an image I wrote a subroutine which would do the > things. It has an OK button upon itself, but I cannot close the window. I > would like this window to block other forms. How could I do that > > PUBLIC SUB Messenger(naslov AS String, tekst AS String, slika AS String) > DIM imge AS PictureBox > DIM conti AS TextLabel > DIM butty AS Button > keret = NEW Form > keret.Width = 500 > keret.Height = 300 > keret.Title = naslov > imge = NEW PictureBox(keret) > imge.x = 0 > imge.y = 0 > imge.Width = 280 > imge.Height = 280 > imge.Border = TRUE > imge.Picture = Picture[slika] > conti = NEW TextLabel(keret) > conti.x = 300 > conti.y = 20 > conti.Width = 190 > conti.Height = 230 > conti.Text = tekst > butty = NEW Button(keret) > butty.x = 340 > butty.y = 250 > butty.Width = 120 > butty.Height = 25 > butty.Text = MessageYes.Text > keret.Center > keret.ShowModal() > Object.Attach(butty, ME, "Ops") > Message("Hm") > END > > PUBLIC SUB Ops_Click() AS Integer > keret.Close() > END > Really not shure, but probably you must attach() before doing showmodal()... In fact, showmodal is meant to stop the execution until the user closes the modal form. Salut, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From euph1 at ...734... Tue Dec 8 18:13:17 2009 From: euph1 at ...734... (mike) Date: Tue, 08 Dec 2009 12:13:17 -0500 Subject: [Gambas-user] Serial port data being changed ???? -- Solved In-Reply-To: <4B1E2BD4.4060402@...2337...> References: <4B1D6813.1000408@...734...> <4B1E2BD4.4060402@...2337...> Message-ID: <4B1E892D.3080008@...734...> Ahh, Thank you. Now I can move on to finish my project. > > This is a Linux thing. Not Gambas. The icrnl flaf is set as standard. > Easiest way is to use stty to change it. > > SHELL "stty -F "& SerPort1.PortName& " -icrnl" > > > > ------------------------------------------------------------------------------ > Return on Information: > Google Enterprise Search pays you back > Get the facts. > http://p.sf.net/sfu/google-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From gambas at ...1... Tue Dec 8 19:01:46 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 8 Dec 2009 19:01:46 +0100 Subject: [Gambas-user] Printing from a webview In-Reply-To: <200912081450.47002.rterry@...1946...> References: <200912081450.47002.rterry@...1946...> Message-ID: <200912081901.46637.gambas@...1...> > I wondered if anyone knew how to print from this control - it dosn't seem > to have a print function like the old konqueror webrowser. > > Regards > > Richard > Yes, I must add it... -- Beno?t Minisini From gambas at ...1... Tue Dec 8 19:03:38 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 8 Dec 2009 19:03:38 +0100 Subject: [Gambas-user] Serial port data being changed ???? In-Reply-To: <4B1E2BD4.4060402@...2337...> References: <4B1D6813.1000408@...734...> <4B1E2BD4.4060402@...2337...> Message-ID: <200912081903.38588.gambas@...1...> > mike wrote: > > I'm having trouble with Gambas and the serial ports. > > Something is changing binary &h0d to &h0a when received > > from a serial port. I noticed it in a program that I've > > been working on that receives packets of binary data > > from a microprocessor. I wrote a little test program to > > demonstrate the problem and have included it below. I also > > reprogrammed the micro to simply send &h0d as long a > > pushbutton is held depressed. I have verified that the > > correct data is indeed being sent using CuteCom to display > > the binary data. > > An interesting thing that I noticed when I ran CuteCom to > > test the data being received is that if I close CuteCom without > > closing the serial port first then run my Gambas program, it works > > fine until I restart the system. If I close the port before closing > > CuteCom then my Gambas program fails. > > > > > > This is the code for the test program. > > > > ' Gambas class file > > ' Using Gambas 2.18 on a system running > > ' Fedora Kernel (26.30.9-102.fc11.x86_64) > > ' It also fails running Gambas 2.11 > > ' on my laptop running > > ' Fedora Kernel (2.6.27.25-78.2.56.fc9.i686) > > > > PUBLIC SUB Form_Open() > > > > ME.Center > > > > ' Setup the serial port - 9600,8,N,1 > > > > ' SerPort1.PortName = "/dev/ttyS0" ' Both ports fail > > SerPort1.PortName = "/dev/ttyUSB0" ' This the port I'll eventually > > use SerPort1.Speed = "9600" ' because the laptop has no > > serial port. > > SerPort1.DataBits = "8" > > SerPort1.Parity = "0" > > SerPort1.StopBits = "1" > > SerPort1.Open > > > > TextArea1.Text = SerPort1.PortName & Chr$(10) > > END > > > > PUBLIC SUB SerPort1_Read() > > > > ' A microprocessor is connected to the serial port and > > ' continuously sends &h0d (CR) as long a push button is held down. > > > > DIM InByte AS Byte > > > > READ #SerPort1, InByte > > TextArea1.Insert(Hex$(InByte) & " ") > > ' The textarea displays a series of "A " (LF) instead of "D " (CR) > > END > > > > PUBLIC SUB ExitBtn_Click() > > > > SerPort1.Close > > QUIT > > END > > > > PUBLIC SUB ClearBtn_Click() > > > > TextArea1.Clear > > END > > This is a Linux thing. Not Gambas. The icrnl flaf is set as standard. > Easiest way is to use stty to change it. > > SHELL "stty -F " & SerPort1.PortName & " -icrnl" > I'm not a serial port user at all, and I find that behaviour a bit strange. Would it be useful to make a property for that? Or maybe it does already exist in the SerialPort class, and I didn't see it. -- Beno?t Minisini From ron at ...1740... Tue Dec 8 19:31:19 2009 From: ron at ...1740... (Ron) Date: Tue, 08 Dec 2009 19:31:19 +0100 Subject: [Gambas-user] Serial port data being changed ???? In-Reply-To: <200912081903.38588.gambas@...1...> References: <4B1D6813.1000408@...734...> <4B1E2BD4.4060402@...2337...> <200912081903.38588.gambas@...1...> Message-ID: <4B1E9B77.1050303@...1740...> Beno?t Minisini schreef: >> mike wrote: >> >>> I'm having trouble with Gambas and the serial ports. >>> Something is changing binary &h0d to &h0a when received >>> from a serial port. I noticed it in a program that I've >>> been working on that receives packets of binary data >>> from a microprocessor. I wrote a little test program to >>> demonstrate the problem and have included it below. I also >>> reprogrammed the micro to simply send &h0d as long a >>> pushbutton is held depressed. I have verified that the >>> correct data is indeed being sent using CuteCom to display >>> the binary data. >>> An interesting thing that I noticed when I ran CuteCom to >>> test the data being received is that if I close CuteCom without >>> closing the serial port first then run my Gambas program, it works >>> fine until I restart the system. If I close the port before closing >>> CuteCom then my Gambas program fails. >>> >>> >>> This is the code for the test program. >>> >>> ' Gambas class file >>> ' Using Gambas 2.18 on a system running >>> ' Fedora Kernel (26.30.9-102.fc11.x86_64) >>> ' It also fails running Gambas 2.11 >>> ' on my laptop running >>> ' Fedora Kernel (2.6.27.25-78.2.56.fc9.i686) >>> >>> PUBLIC SUB Form_Open() >>> >>> ME.Center >>> >>> ' Setup the serial port - 9600,8,N,1 >>> >>> ' SerPort1.PortName = "/dev/ttyS0" ' Both ports fail >>> SerPort1.PortName = "/dev/ttyUSB0" ' This the port I'll eventually >>> use SerPort1.Speed = "9600" ' because the laptop has no >>> serial port. >>> SerPort1.DataBits = "8" >>> SerPort1.Parity = "0" >>> SerPort1.StopBits = "1" >>> SerPort1.Open >>> >>> TextArea1.Text = SerPort1.PortName & Chr$(10) >>> END >>> >>> PUBLIC SUB SerPort1_Read() >>> >>> ' A microprocessor is connected to the serial port and >>> ' continuously sends &h0d (CR) as long a push button is held down. >>> >>> DIM InByte AS Byte >>> >>> READ #SerPort1, InByte >>> TextArea1.Insert(Hex$(InByte) & " ") >>> ' The textarea displays a series of "A " (LF) instead of "D " (CR) >>> END >>> >>> PUBLIC SUB ExitBtn_Click() >>> >>> SerPort1.Close >>> QUIT >>> END >>> >>> PUBLIC SUB ClearBtn_Click() >>> >>> TextArea1.Clear >>> END >>> >> This is a Linux thing. Not Gambas. The icrnl flaf is set as standard. >> Easiest way is to use stty to change it. >> >> SHELL "stty -F " & SerPort1.PortName & " -icrnl" >> >> > > I'm not a serial port user at all, and I find that behaviour a bit strange. > > Me too. I have build serial support for about 10 different hardware devices in my Gambas project both binary and ASCII and didn't stumble upon this strange behavior (yet?) Regards, Ron_2nd. From doriano.blengino at ...1909... Tue Dec 8 20:05:08 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Tue, 08 Dec 2009 20:05:08 +0100 Subject: [Gambas-user] Serial port data being changed ???? In-Reply-To: <4B1E9B77.1050303@...1740...> References: <4B1D6813.1000408@...734...> <4B1E2BD4.4060402@...2337...> <200912081903.38588.gambas@...1...> <4B1E9B77.1050303@...1740...> Message-ID: <4B1EA364.8030509@...1909...> Ron ha scritto: > Beno?t Minisini schreef: > >>> mike wrote: >>> >>> >>>> I'm having trouble with Gambas and the serial ports. >>>> Something is changing binary &h0d to &h0a when received >>>> from a serial port. I noticed it in a program that I've >>>> been working on that receives packets of binary data >>>> from a microprocessor. I wrote a little test program to >>>> demonstrate the problem and have included it below. I also >>>> reprogrammed the micro to simply send &h0d as long a >>>> pushbutton is held depressed. I have verified that the >>>> correct data is indeed being sent using CuteCom to display >>>> the binary data. >>>> An interesting thing that I noticed when I ran CuteCom to >>>> test the data being received is that if I close CuteCom without >>>> closing the serial port first then run my Gambas program, it works >>>> fine until I restart the system. If I close the port before closing >>>> CuteCom then my Gambas program fails. >>>> >>>> >>>> This is the code for the test program. >>>> >>>> ' Gambas class file >>>> ' Using Gambas 2.18 on a system running >>>> ' Fedora Kernel (26.30.9-102.fc11.x86_64) >>>> ' It also fails running Gambas 2.11 >>>> ' on my laptop running >>>> ' Fedora Kernel (2.6.27.25-78.2.56.fc9.i686) >>>> >>>> PUBLIC SUB Form_Open() >>>> >>>> ME.Center >>>> >>>> ' Setup the serial port - 9600,8,N,1 >>>> >>>> ' SerPort1.PortName = "/dev/ttyS0" ' Both ports fail >>>> SerPort1.PortName = "/dev/ttyUSB0" ' This the port I'll eventually >>>> use SerPort1.Speed = "9600" ' because the laptop has no >>>> serial port. >>>> SerPort1.DataBits = "8" >>>> SerPort1.Parity = "0" >>>> SerPort1.StopBits = "1" >>>> SerPort1.Open >>>> >>>> TextArea1.Text = SerPort1.PortName & Chr$(10) >>>> END >>>> >>>> PUBLIC SUB SerPort1_Read() >>>> >>>> ' A microprocessor is connected to the serial port and >>>> ' continuously sends &h0d (CR) as long a push button is held down. >>>> >>>> DIM InByte AS Byte >>>> >>>> READ #SerPort1, InByte >>>> TextArea1.Insert(Hex$(InByte) & " ") >>>> ' The textarea displays a series of "A " (LF) instead of "D " (CR) >>>> END >>>> >>>> PUBLIC SUB ExitBtn_Click() >>>> >>>> SerPort1.Close >>>> QUIT >>>> END >>>> >>>> PUBLIC SUB ClearBtn_Click() >>>> >>>> TextArea1.Clear >>>> END >>>> >>>> >>> This is a Linux thing. Not Gambas. The icrnl flaf is set as standard. >>> Easiest way is to use stty to change it. >>> >>> SHELL "stty -F " & SerPort1.PortName & " -icrnl" >>> >>> >>> >> I'm not a serial port user at all, and I find that behaviour a bit strange. >> >> >> > > Me too. > > I have build serial support for about 10 different hardware devices in > my Gambas project both binary and ASCII and didn't stumble upon this > strange behavior (yet?) > Could it be that some other process is using the port (getty, mgetty)? And that that process programs the serial driver? Because those stty things should be related, I think, to terminal devices, not general serial drivers as used by pppd, for example. Just put this way - I really don't know. Regards, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From mohareve at ...626... Tue Dec 8 20:19:17 2009 From: mohareve at ...626... (M. Cs.) Date: Tue, 8 Dec 2009 20:19:17 +0100 Subject: [Gambas-user] How to close a modal dialog form? In-Reply-To: <4B1E86E9.5040205@...1909...> References: <4B1E86E9.5040205@...1909...> Message-ID: Solved! PUBLIC SUB Messenger(naslov AS String, tekst AS String, slika AS String) DIM imge AS PictureBox DIM conti AS TextLabel DIM butty AS Button DIM i AS Integer keret = NEW Form keret.Width = 500 keret.Height = 300 keret.Title = naslov imge = NEW PictureBox(keret) imge.x = 0 imge.y = 0 imge.Width = 280 imge.Height = 280 imge.Border = TRUE imge.Picture = Picture[slika] conti = NEW TextLabel(keret) conti.x = 300 conti.y = 20 conti.Width = 190 conti.Height = 230 conti.Text = tekst butty = NEW Button(keret) butty.x = 340 butty.y = 250 butty.Width = 120 butty.Height = 25 butty.Text = MessageYes.Text keret.Center Object.Attach(butty, ME, "Ops") keret.ShowModal() END PUBLIC SUB Ops_Click() keret.Close() END From nospam.nospam.nospam at ...626... Tue Dec 8 21:45:15 2009 From: nospam.nospam.nospam at ...626... (nospam.nospam.nospam at ...626...) Date: Wed, 9 Dec 2009 07:45:15 +1100 Subject: [Gambas-user] Serial port data being changed ???? References: <4B1D6813.1000408@...734...> <4B1E2BD4.4060402@...2337...> <4B1E5E73.3080804@...2337...> Message-ID: Les Hardy wrote: > Kadaitcha Man wrote: > I first have to figure out if icrnl flaf is a typo or an esoteric > command line :) >> > Yes, esoteric, makes me feel special. Only a few know about flafs. lol > Then again, it could just be flag. Nah. That'd ruin the whole effect. From euph1 at ...734... Tue Dec 8 21:55:18 2009 From: euph1 at ...734... (Mike) Date: Tue, 08 Dec 2009 15:55:18 -0500 Subject: [Gambas-user] Serial port data being changed ???? In-Reply-To: <200912081903.38588.gambas@...1...> References: <4B1D6813.1000408@...734...> <4B1E2BD4.4060402@...2337...> <200912081903.38588.gambas@...1...> Message-ID: <4B1EBD36.4060600@...734...> Beno?t Minisini wrote: This is a Linux thing. Not Gambas. The icrnl flaf is set as standard. Easiest way is to use stty to change it. SHELL "stty -F " & SerPort1.PortName & " -icrnl" I'm not a serial port user at all, and I find that behaviour a bit strange. Would it be useful to make a property for that? Or maybe it does already exist in the SerialPort class, and I didn't see it. If not property setting then at least a reference in the docs to the stty thing would have been very helpful. From ronstk at ...239... Wed Dec 9 00:39:47 2009 From: ronstk at ...239... (Ron_1st) Date: Wed, 9 Dec 2009 00:39:47 +0100 Subject: [Gambas-user] Serial port data being changed ???? In-Reply-To: References: <4B1D6813.1000408@...734...> <4B1E5E73.3080804@...2337...> Message-ID: <200912090039.47843.ronstk@...239...> On Tuesday 08 December 2009, nospam.nospam.nospam at ...626... wrote: > Les Hardy wrote: > > Kadaitcha Man wrote: > > I first have to figure out if icrnl flaf is a typo or an esoteric > > command line :) > >> > > Yes, esoteric, makes me feel special. Only a few know about flafs. > > lol > > > Then again, it could just be flag. > > Nah. That'd ruin the whole effect. > LOL read: http://forums.realsoftware.com/viewtopic.php?f=8&t=26026 near the end NO GAMBAS code ----------- dim portname as New String portname = "/dev/ttyUSB0" #if targetLinux dim sh as New Shell sh.Execute "stty -F "+ portname +" -icrnl" while sh.IsRunning app.doevents wend #endif dim sp as New SerialPort sp.SerialPort = System.SerialPort(portname) sp.open Answer by v-man: Post subject: Re: Serial Port on Linux / USB adapters / CR LF issues PostPosted: Wed Jan 21, 2009 8:59 am Location: Rheinbach, Germany Wow, thank you for your solution. It works. I cant believe that after years living with this bug someone find a workaround. Great Job. > ------------------------------------------------------------------------------ > Return on Information: > Google Enterprise Search pays you back > Get the facts. > http://p.sf.net/sfu/google-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > Best regards, Ron_1st -- From rterry at ...1946... Wed Dec 9 05:04:50 2009 From: rterry at ...1946... (richard terry) Date: Wed, 9 Dec 2009 15:04:50 +1100 Subject: [Gambas-user] Libtool problem Message-ID: <200912091504.50656.rterry@...1946...> libtool: Version mismatch error. This is libtool 2.2.6, but the libtool: definition of this LT_INIT comes from libtool 2.2.6b. libtool: You should recreate aclocal.m4 with macros from libtool 2.2.6 I can no longer compile, any ideas how do fix this as suggested appreciated. Regards Richard From gambas at ...1... Wed Dec 9 05:16:43 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 9 Dec 2009 05:16:43 +0100 Subject: [Gambas-user] Libtool problem In-Reply-To: <200912091504.50656.rterry@...1946...> References: <200912091504.50656.rterry@...1946...> Message-ID: <200912090516.43362.gambas@...1...> > libtool: Version mismatch error. This is libtool 2.2.6, but the > libtool: definition of this LT_INIT comes from libtool 2.2.6b. > libtool: You should recreate aclocal.m4 with macros from libtool 2.2.6 > > I can no longer compile, any ideas how do fix this as suggested > appreciated. > > Regards > > Richard > I think you have the solution in a previous post: run "libtoolize --copy --force" on the root of the gambas source directory, and do a ./reconf and a recompilation again. Regards, -- Beno?t Minisini From robert1juhasz at ...626... Wed Dec 9 12:26:53 2009 From: robert1juhasz at ...626... (yuhej) Date: Wed, 9 Dec 2009 03:26:53 -0800 (PST) Subject: [Gambas-user] serial port In-Reply-To: <68652a0b0909192320s5ac22c22h20d819dd2822ab9@...627...> References: <25518421.post@...1379...> <20090919163437.M15768@...951...> <68652a0b0909192320s5ac22c22h20d819dd2822ab9@...627...> Message-ID: <26708752.post@...1379...> Hello, I'm very happy with the serial port communication, just I have some more question. When I start the application, I don't know what ports will be used and how many. So I have an object array where I add new serial ports depending on the hardware configuration. >From this object array, I'm able to send and receive data. I just don't know how to access to the serial port events (read). Can someone help me in this matter? Thanks, Robi yuhej wrote: > > Useful info, I'll do like that. > Thanks, Robi > > 2009/9/19 nando > >> In my Linux serial port experience, serial port devices are named: >> >> /dev/ttyS0..9 and upwards >> /dev/ttyUSB0..9 and upwards depending on what is plugged in USB. >> >> I have done a lot of serial port stuff with Gambas. >> >> I know that trying to open then with the serial port control >> will fail is non-exising port. This error can be detected. >> >> It can be possible to open a port as a test to see if it exists, but you >> may be changing parameters and stealing chars from an existing >> connection. >> I've had this happen too....really messes things up. >> >> -Fernando >> >> >> ---------- Original Message ----------- >> From: yuhej >> To: gambas-user at lists.sourceforge.net >> Sent: Fri, 18 Sep 2009 21:08:04 -0700 (PDT) >> Subject: [Gambas-user] serial port >> >> > Hello, >> > >> > I can see that Gambas can handle the serial ports which is a very good >> news >> > for me. >> > Can someone tell me how can I get the list of the serial ports of my >> > computer? I wish to make an autodetect function and only allow to >> select >> > from the working serial ports. >> > >> > Robi >> > -- >> > View this message in context: >> http://www.nabble.com/serial-port-tp25518421p25518421.html >> > Sent from the gambas-user mailing list archive at Nabble.com. >> > >> > >> ------------------------------------------------------------------------------ >> > Come build with us! The BlackBerry® Developer Conference in SF, CA >> > is the only developer event you need to attend this year. Jumpstart >> your >> > developing skills, take BlackBerry mobile applications to market and >> stay >> > ahead of the curve. Join us from November 9-12, 2009. Register >> now! >> > http://p.sf.net/sfu/devconf >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> ------- End of Original Message ------- >> >> >> >> ------------------------------------------------------------------------------ >> Come build with us! The BlackBerry® Developer Conference in SF, CA >> is the only developer event you need to attend this year. Jumpstart your >> developing skills, take BlackBerry mobile applications to market and stay >> ahead of the curve. Join us from November 9-12, 2009. Register >> now! >> http://p.sf.net/sfu/devconf >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry® Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9-12, 2009. Register > now! > http://p.sf.net/sfu/devconf > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://old.nabble.com/serial-port-tp25518421p26708752.html Sent from the gambas-user mailing list archive at Nabble.com. From les at ...2337... Wed Dec 9 10:55:22 2009 From: les at ...2337... (Les Hardy) Date: Wed, 09 Dec 2009 09:55:22 +0000 Subject: [Gambas-user] Serial port data being changed ???? In-Reply-To: <200912081903.38588.gambas@...1...> References: <4B1D6813.1000408@...734...> <4B1E2BD4.4060402@...2337...> <200912081903.38588.gambas@...1...> Message-ID: <4B1F740A.3080906@...2337...> Beno?t Minisini wrote: > > I'm not a serial port user at all, and I find that behaviour a bit strange. > > Would it be useful to make a property for that? Or maybe it does already exist > in the SerialPort class, and I didn't see it. > Nothing strange really. Its been like that as long as I can remember. It is not possible to tranfer binary data correctly without setting the icrnl and ocrnl flags off. Its been a long time since I was near C, but I'm fairly sure they are included in termios.h, and are the c_iflag and c_oflag. (sent this twice. mail is bouncing back) From les at ...2337... Wed Dec 9 10:24:27 2009 From: les at ...2337... (Les Hardy) Date: Wed, 09 Dec 2009 09:24:27 +0000 Subject: [Gambas-user] Serial port data being changed ???? In-Reply-To: <200912081903.38588.gambas@...1...> References: <4B1D6813.1000408@...734...> <4B1E2BD4.4060402@...2337...> <200912081903.38588.gambas@...1...> Message-ID: <4B1F6CCB.1010708@...2337...> Beno?t Minisini wrote: > > I'm not a serial port user at all, and I find that behaviour a bit strange. > > Would it be useful to make a property for that? Or maybe it does already exist > in the SerialPort class, and I didn't see it. > Nothing strange really. Its been like that as long as I can remember. It is not possible to tranfer binary data correctly without setting the icrnl and ocrnl flags off. Its been a long time since I was near C, but I'm fairly sure they are included in termios.h, and are the c_iflag and c_oflag. From mohareve at ...626... Wed Dec 9 14:15:42 2009 From: mohareve at ...626... (M. Cs.) Date: Wed, 9 Dec 2009 14:15:42 +0100 Subject: [Gambas-user] Buttons again not working Message-ID: I don't understand why is the handling of dynamically created forms so complicated! I've barely managed to shut a modal dialog, I'm encountering a new problem: when I invoke the procedure Messenger: PUBLIC SUB Messenger(tekst AS String, slika AS String) DIM imge AS PictureBox DIM conti AS TextLabel DIM butty AS Button DIM i AS Integer keret = NEW Form keret.Width = 500 keret.Height = 300 keret.Border = FALSE imge = NEW PictureBox(keret) imge.x = 10 imge.y = 10 imge.Width = 280 imge.Height = 280 imge.Border = TRUE imge.Picture = Picture[slika] conti = NEW TextLabel(keret) conti.x = 300 conti.y = 20 conti.Width = 190 conti.Height = 230 conti.Text = tekst butty = NEW Button(keret) butty.x = 340 butty.y = 250 butty.Width = 120 butty.Height = 25 butty.Text = "OK" keret.Center Object.Attach(butty, ME, "Ops") keret.ShowModal() END PUBLIC SUB Ops_Click() keret.Close() END from within the PUBLIC SUB _new() ... Messenger("blabla.txt","blabla.jpg") ... END procedure, I cannot communicate with the button "butty". This info window is the first thing which is popping up, but either the program would just go just straight ahead, not waiting for the button to be pushed (when I use only keret.Show() instead), or I have a pop-up window which stops the program, and stops its execution, since I cannot close / delete it. A second question: how could I write documentation for Gambas2. It's still desperately underdocumented, and some crucial things are missing (examples, examples, examples) From nospam.nospam.nospam at ...626... Wed Dec 9 14:47:14 2009 From: nospam.nospam.nospam at ...626... (Kadaitcha Man) Date: Thu, 10 Dec 2009 00:47:14 +1100 Subject: [Gambas-user] Buttons again not working In-Reply-To: References: Message-ID: 2009/12/10 M. Cs. : butty = NEW Button(keret) ^^^^^^^^^^^^^^^^ butty.x = 340 butty.y = 250 butty.Width = 120 butty.Height = 25 butty.Text = "OK" keret.Center Object.Attach(butty, ME, "Ops") ^^^^^^^^^^^^^^^^^^^ "butty" is already attached to "keret" You should attach "keret" to ME, or: butty = NEW Button(ME) Of course, if you use the latter constructor, you have zero control over where "butty" appears on ME. Look at the attached code, and take note of the form design. -------------- next part -------------- A non-text attachment was scrubbed... Name: TextBoxExample.tar.gz Type: application/x-gzip Size: 8879 bytes Desc: not available URL: From nospam.nospam.nospam at ...626... Wed Dec 9 14:56:55 2009 From: nospam.nospam.nospam at ...626... (Kadaitcha Man) Date: Thu, 10 Dec 2009 00:56:55 +1100 Subject: [Gambas-user] Buttons again not working In-Reply-To: References: Message-ID: 2009/12/10 Kadaitcha Man : > Look at the attached code, and take note of the form design. Scratch that. You may have found a bug, either inadvertently or advertantly ;-> With MyTextBox declared as public, xMyTextBox_Change isn't firing: MyTextBox = NEW TextBox(HBox1) AS "xMyTextBox" I'll start to research it in about 14-16hrs time. In the meantime, hope for a better response. From gambas at ...1... Wed Dec 9 17:43:49 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 9 Dec 2009 17:43:49 +0100 Subject: [Gambas-user] Buttons again not working In-Reply-To: References: Message-ID: <200912091743.49370.gambas@...1...> > I don't understand why is the handling of dynamically created forms so > complicated! > I've barely managed to shut a modal dialog, I'm encountering a new problem: > > when I invoke the procedure Messenger: > > PUBLIC SUB Messenger(tekst AS String, slika AS String) > DIM imge AS PictureBox > DIM conti AS TextLabel > DIM butty AS Button > DIM i AS Integer > keret = NEW Form > keret.Width = 500 > keret.Height = 300 > keret.Border = FALSE > imge = NEW PictureBox(keret) > imge.x = 10 > imge.y = 10 > imge.Width = 280 > imge.Height = 280 > imge.Border = TRUE > imge.Picture = Picture[slika] > conti = NEW TextLabel(keret) > conti.x = 300 > conti.y = 20 > conti.Width = 190 > conti.Height = 230 > conti.Text = tekst > butty = NEW Button(keret) > butty.x = 340 > butty.y = 250 > butty.Width = 120 > butty.Height = 25 > butty.Text = "OK" > keret.Center > Object.Attach(butty, ME, "Ops") You should write: butty = NEW Button(keret) AS "Ops" to have the same effect. You should use the Move() method instead of setting the X, Y, Width and Height properties individually. > keret.ShowModal() > END > > PUBLIC SUB Ops_Click() > keret.Close() > END > > from within the > PUBLIC SUB _new() > ... > Messenger("blabla.txt","blabla.jpg") > ... > END > > procedure, > > I cannot communicate with the button "butty". What do you mean exactly by "communicate"? Can you provide the full source code in a project, we will better understand what you want to do. Beware that an object is locked during its _new() so it cannot receive events. Regards, -- Beno?t Minisini From mohareve at ...626... Wed Dec 9 18:21:46 2009 From: mohareve at ...626... (M. Cs.) Date: Wed, 9 Dec 2009 18:21:46 +0100 Subject: [Gambas-user] Buttons again not working In-Reply-To: <200912091743.49370.gambas@...1...> References: <200912091743.49370.gambas@...1...> Message-ID: What do you mean exactly by "communicate"? Can you provide the full source > code in a project, we will better understand what you want to do. > > Beware that an object is locked during its _new() so it cannot receive > events. > > Regards, > > -- > Beno?t Minisini > > > I mean, the procedure Ops_Click() is simply never invoked. A window shows up, with an image, a text and a button - "butty". I intend to to use this button for closing the window. The first occurance of the subroutine Messenger is in the _new() procedure, which is intended to set the initial settings for the program. At the time when this happens, no other forms are already created. The code is pretty long ( 7000 lines, the *GamCat* project on sourceforge, but I'm sending you the first part of it, the _new() procedure: PUBLIC SUB _new() '############# Initial settings ###################################################################### DIM q1, q2, xenon, path, nfile AS String DIM place, node, temptxt, querry, prime, liner, x, mounter, onefound AS String DIM tarto, gomb, nexus, tremor, mark, mounthits, secondary AS String[] DIM i, knor, l, m AS Integer DIM fstab, config AS File a1 = NEW String[] a2 = NEW String[] a3 = NEW String[] a4 = NEW Float[] a5 = NEW String[] valvolume = NEW String[] DVDPanel.Value = FALSE 'At start the Virtual Compilation is empty and features are disabled tippi.Add(tippiData.Text) tippi.Add(tippiAudio.Text) rating.Add("-") ratingPic.Picture = Picture["unrated.png"] year1.Value = Year(Now) month1.Value = Month(Now) day1.value = Day(Now) year2.MinValue = year1.Value mtype.Add("700 MB") mtype.Add("4.4 GB") mtype.Add("8.0 GB") mediaImg.Picture = Picture["CD.png"] Saver.compilatSi = 700 IF Exist(User.Home & "/.GamCat") = FALSE THEN MKDIR User.Home & "/.GamCat" 'First run screen for the devices mark = NEW String[] config = OPEN User.Home & "/.GamCat/config.txt" FOR CREATE CLOSE (config) *Messenger(firstrun.Text, "cat1.png")* config = OPEN User.Home & "/.GamCat/config.txt" FOR WRITE fstab = OPEN "/etc/mtab" FOR INPUT WHILE NOT Eof(fstab) LINE INPUT #fstab, place mounthits = Split(place, " ") IF (InStr(mounthits[1], "/media/") > 0 AND InStr(mounthits[2], "vfat") = 0) THEN node = InputBox(dev1.Text & mounthits[0], dev2.Text, "") PRINT #config, mounthits[0] mark.Add(node) ENDIF WEND CLOSE (fstab) CLOSE (config) IF mark.Count = 0 THEN Message(Fatal.Text) node = "rm -rf " & Chr$(34) & User.Home & "/.GamCat" & Chr$(34) SHELL node WAIT QUIT ENDIF IF mark.Count = 1 THEN mark.Add("second") ENDIF 'Database creation DBconX.Type = "sqlite" DBconX.Host = User.Home & "/.GamCat" TRY DBconX.Open() IF ERROR THEN Message(SetupError.Text) node = "rm -rf " & Chr$(34) & User.Home & "/.GamCat" & Chr$(34) SHELL node WAIT QUIT ELSE IF NOT DBconX.Databases.Exist("GamCat") THEN DBconX.Databases.Add("GamCat") WAIT 0.5 'apperently this is needed for an SQLite database ' Close the server connection DBconX.Close() ENDIF ENDIF DBconX.Name = "GamCat" DBconX.Type = "sqlite" DBconX.Host = User.Home & "/.GamCat" TRY DBconX.Open() prime = "CREATE TABLE zzz(content VARCHAR(30),size REAL,files INTEGER,folders INTEGER,timing TEXT,media TEXT)" DBconX.Exec(prime) WAIT 0.1 prime = "CREATE TABLE infos(size REAL,files INTEGER,folders INTEGER,nn TEXT,first TEXT,second TEXT,delay TEXT);" DBconX.Exec(prime) q1 = Chr$(34) & "0" & Chr$(34) q2 = Chr$(34) & "1" & Chr$(34) prime = "INSERT INTO infos VALUES(0,0,0" & "," & q2 & ",'" & mark[0] & "','" & mark[1] & "','20');" DBconX.Exec(prime) prime = "CREATE TABLE ZIP(Name TEXT,Volume TEXT,Parent TEXT);" DBconX.Exec(prime) prime = "CREATE TABLE TAR(Name TEXT,Volume TEXT,Parent TEXT);" DBconX.Exec(prime) prime = "CREATE TABLE RAR(Name TEXT,Volume TEXT,Parent TEXT);" DBconX.Exec(prime) prime = "CREATE TABLE ARJ(Name TEXT,Volume TEXT,Parent TEXT);" DBconX.Exec(prime) prime = "CREATE TABLE ACE(Name TEXT,Volume TEXT,Parent TEXT);" DBconX.Exec(prime) prime = "CREATE TABLE AVAILABLEMYDISKLIST(Volume VARCHAR(30),Rating TEXT,Genre TEXT);" DBconX.Exec(prime) prime = "CREATE TABLE LENTMYDISKROMLIST(Volume VARCHAR(30),Used TEXT,Rating TEXT,Genre TEXT,Time TEXT);" DBconX.Exec(prime) prime = "CREATE TABLE AVAILABLEMYDVDLIST(Volume VARCHAR(30),Rating TEXT,Genre TEXT);" DBconX.Exec(prime) prime = "CREATE TABLE LENTMYDISKDVDLIST(Volume VARCHAR(30),Used TEXT,Rating TEXT,Genre TEXT,Time TEXT);" DBconX.Exec(prime) prime = "CREATE TABLE LISTOFMYCUSTOMERS(Name TEXT);" DBconX.Exec(prime) prime = "CREATE TABLE LISTOFMYALLGENRES(Name TEXT);" DBconX.Exec(prime) prime = "CREATE TABLE TEMPORALBASKETOFELEMENTS(Name TEXT,Origin TEXT,Rating TEXT,Genre TEXT);" DBconX.Exec(prime) prime = "CREATE TABLE LISTOFBANNEDFILES(Name TEXT);" DBconX.Exec(prime) prime = "CREATE TABLE CHANGEDFILENAMECATALOG(Old Text(30),Volume Text(30),Path Text(30),NEW Text(30));" DBconX.Exec(prime) prime = "CREATE TABLE VOLUMENOTESFORALL(Volume Text(30),Notes Text(300));" DBconX.Exec(prime) WAIT 0.5 DBconX.Close() i = Message.Question(MessageImport.Text, MessageYes.Text, MessageNo.Text) IF i = 1 THEN Dialog.Path = User.Home Dialog.Filter = ["*.zip", "Zip Archive"] IF Dialog.OpenFile(TRUE) THEN RETURN FOR EACH nfile IN Dialog.Paths path = nfile NEXT nfile = "unzip -o " & Chr$(34) & path & Chr$(34) & " -d " & Chr$(34) & User.Home & "/.GamCat/" & Chr$(34) SHELL nfile WAIT ELSE ENDIF ENDIF szelekt = NEW Integer[] dvdmount.Hide() cdmount.Hide() ejectCD.Hide() ejectDVD.Hide() eszkoz = NEW String[] tarto = NEW String[] gomb = NEW String[] cim = NEW String[] mark = NEW String[] selIndex = NEW Integer[] unselIndex = NEW Integer[] fstab = OPEN User.Home & "/.GamCat/config.txt" FOR INPUT WHILE NOT Eof(fstab) LINE INPUT #fstab, liner IF InStr(liner, "#delay") > 0 THEN Frame33.Visible = FALSE hideDelay.Visible = FALSE ELSE eszkoz.Add(liner) gomb.Add(liner) cim.Add(liner) ENDIF WEND CLOSE (fstab) DBconX.Name = "GamCat" DBconX.Type = "sqlite" DBconX.Host = User.Home & "/.GamCat" TRY DBconX.Open() querry = "SELECT first,second,delay FROM infos;" tablak = DBconX.Exec(querry) FOR EACH tablak dvdmount.Text = tablak!"first" cdmount.Text = tablak!"second" Saver.delay = CInt(tablak!"delay") NEXT Slider1.Value = Saver.delay DBconX.Close() IF gomb.Count = 1 THEN n1 = Mid$(gomb[0], 6) dvdmount.Show() ejectDVD.Show() ENDIF IF gomb.Count = 2 THEN n1 = Mid$(gomb[0], 6) dvdmount.Show() n2 = Mid$(gomb[1], 6) cdmount.Show() 'masodik = cim[1] ejectDVD.Show() ejectCD.Show() ENDIF eszkoz.Clear() tarto.Clear() elolap = TRUE Xval = FALSE arjCB.Value = TRUE zipCB.Value = TRUE rarCB.Value = TRUE tarCB.Value = TRUE aceCB.Value = TRUE muubi.Enabled = TRUE scArch.Enabled = TRUE volumePB.Value = 0 archPB.Value = 0 catTree.Clear() fView.Clear() gV.Columns.Count = 5 gV.Columns[0].Width = 300 gV.Columns[1].Width = 125 gv.Columns[2].Width = 200 gv.Columns[3].Width = 80 gV.Rows.Count = 0 gV.Columns[0].Title = gVI.Text gV.Columns[1].Title = gVII.Text gV.Columns[2].Title = gVIII.Text gV.Columns[3].Title = gVIV.Text gV.Columns[4].Title = gVV.Text list.Rows.Count = 0 list.Columns.Count = 1 list.Columns[0].Title = listI.Text fileRB.Value = TRUE anyRB.Value = TRUE ejectCD.Value = TRUE ejectDVD.Value = TRUE 'Virtual Compilation tab ViCo.Columns.Count = 3 ViCo.Rows.Count = 0 ViCo.Header = TRUE ViCo.Columns[0].Width = 200 ViCo.Columns[1].Width = 150 ' ViCo.Columns[2].Width = 300 ViCo.Columns[0].Title = gVI.Text ViCo.Columns[1].Title = ViP.Text ViCo.Columns[2].Title = gVIII.Text SizeBar.Value = 0 infoView.Columns.Count = 2 infoView.Rows.Count = 6 infoView.Columns[0].Width = 90 infoView[0, 0].Text = lfs.Text infoView[1, 0].Text = lmf.Text infoView[2, 0].Text = mkl.Text infoView[3, 0].Text = mpl.Text infoView[4, 0].Text = ehy.Text infoView[5, 0].Text = addedOn.Text driveView.Columns.Count = 2 driveView.Rows.Count = 5 driveView.Columns[0].Width = 150 driveView.Columns[1].Width = 80 driveView[0, 0].Text = las.Text driveView[1, 0].Text = Label4.Text driveView[2, 0].Text = Label5.Text driveView[3, 0].Text = Label6.Text driveView[4, 0].Text = Label7.Text sourMedDrive.Index = 0 FMain.Center Vdata() 'Populate the Catalog tree Populate() catTree.MoveFirst() IF catTree.Current.Count > 0 THEN ures = FALSE ELSE ures = TRUE ENDIF querry = "SELECT content FROM zzz;" tablak = DBconX.Exec(querry) FOR EACH tablak nuvola += 1 NEXT CDcount.Text = nuvola catBox.Add(MessageALL.Text) prime = "SELECT * FROM LISTOFMYALLGENRES;" tablak = DBconX.Exec(prime) FOR EACH tablak x = Replace$(tablak!"Name", "_", " ") x = Replace$(x, "$", ".") x = Replace$(x, "?", "-") catBox.Add(x) NEXT l = catBox.Find(MessageALL.Text) catBox.Index = l END From mohareve at ...626... Wed Dec 9 19:40:50 2009 From: mohareve at ...626... (M. Cs.) Date: Wed, 9 Dec 2009 19:40:50 +0100 Subject: [Gambas-user] Buttons again not working In-Reply-To: References: <200912091743.49370.gambas@...1...> Message-ID: So how to stop the rest of the process, while the Messenger( , ) is being executed? I've tried to experimenting with WAIT, but no help. This is the most annoying thing in Gambas. You never know exactly what to do in order to make things work. Is there a possibility, to make the process handling unified? ( What's the difference between Object.Attach (something, parent, function name) and your proposal ?) Anyway, butty = NEW Button(keret) AS "Ops" doesn't work. From gambas at ...1... Wed Dec 9 20:01:02 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 9 Dec 2009 20:01:02 +0100 Subject: [Gambas-user] Buttons again not working In-Reply-To: References: Message-ID: <200912092001.03062.gambas@...1...> > So how to stop the rest of the process, while the Messenger( , ) is being > executed? I've tried to experimenting with WAIT, but no help. > This is the most annoying thing in Gambas. You never know exactly what to > do in order to make things work. Is there a possibility, to make the > process handling unified? ( What's the difference between Object.Attach > (something, parent, function name) and your proposal ?) > Anyway, butty = NEW Button(keret) AS "Ops" doesn't work. Please again provide an archive of your full project, otherwise I can't help you. I have downloaded your source from sourceforge, but I didn't see anything related to your problem. If the source project is greater then 256K, it won't go on the mailing-list. So send it me directly. Regards, -- Beno?t Minisini From gambas at ...1... Wed Dec 9 20:16:06 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 9 Dec 2009 20:16:06 +0100 Subject: [Gambas-user] Installing a Gambas program independent of the distribution through DIR GB In-Reply-To: <1260206213.3622.7.camel@...651...> References: <1260206213.3622.7.camel@...651...> Message-ID: <200912092016.06295.gambas@...1...> > Hello Benoit. > > I'm trying to run Gambas on a computer that does not have the component > packages, based on the help that you gave the user JGuardon, which > wanted to run Gambas on a USB stick. > In one of the points of support, type: > > 2)copy the installation directory Gambas in another folder. Let's name > it "/my/Gambas/dir". > > Question: > > What installation directory is copied?. Those who are in usr/local/bin, > usr/local/lib, usr/local/share?, Or the program directory is being > created. You must recreate the all hierarchy. For example, if the Gambas installation directory is /usr/local, you must copy in your directory all Gambas related files, following the same hierarchy: bin/gb* bin/gambas lib/gambas2/* share/gambas2/* ... > > At another point he said: > > 3) Create a script like that: > > #!/bin/sh > export LD_LIBRARY_PATH=/my/ld/dir:$LD_LIBRARY_PATH > export GB_DIR=/my/gambas/dir > exec /my/application.gambas > > Question: > > This script, which must be saved to be executed?. Of course. Otherwise you won't be able to run it! Regards, -- Beno?t Minisini From nospam.nospam.nospam at ...626... Wed Dec 9 21:47:33 2009 From: nospam.nospam.nospam at ...626... (Kadaitcha Man) Date: Thu, 10 Dec 2009 07:47:33 +1100 Subject: [Gambas-user] Buttons again not working In-Reply-To: <200912091743.49370.gambas@...1...> References: <200912091743.49370.gambas@...1...> Message-ID: 2009/12/10 Beno?t Minisini : > You should write: > ?butty = NEW Button(keret) AS "Ops" > to have the same effect. That's what I thought, but when I tried a similar thing with a TextBox, it appeared that the TextBox events were not firing. I'll take another look at it later this afternoon just in case I made a mistake. If it's a problem I'll post the code. From rterry at ...1946... Wed Dec 9 22:36:55 2009 From: rterry at ...1946... (richard terry) Date: Thu, 10 Dec 2009 08:36:55 +1100 Subject: [Gambas-user] qt4 slowness of drawing complex screens Message-ID: <200912100836.55519.rterry@...1946...> I've noticed qt4 is much slower rendering the controls than qt3 and wondered if it is possible to 'hide' this process till the rendering is complete. Users with small numbers of controls on a form probably wouldn't notice this. Regards Richard From gambas.fr at ...626... Wed Dec 9 22:52:05 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 9 Dec 2009 22:52:05 +0100 Subject: [Gambas-user] qt4 slowness of drawing complex screens In-Reply-To: <200912100836.55519.rterry@...1946...> References: <200912100836.55519.rterry@...1946...> Message-ID: <6324a42a0912091352u6d2562a6ke03f2aeff20d1a72@...627...> i've not noticed that on the ide ... it have many controls too... 2009/12/9 richard terry : > I've noticed qt4 is much slower rendering the controls than qt3 and wondered > if it is possible to 'hide' this process till the rendering is complete. > > Users with small numbers of controls on a form probably wouldn't notice this. > > Regards > > Richard > > ------------------------------------------------------------------------------ > Return on Information: > Google Enterprise Search pays you back > Get the facts. > http://p.sf.net/sfu/google-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Wed Dec 9 22:59:57 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 9 Dec 2009 22:59:57 +0100 Subject: [Gambas-user] qt4 slowness of drawing complex screens In-Reply-To: <6324a42a0912091352u6d2562a6ke03f2aeff20d1a72@...627...> References: <200912100836.55519.rterry@...1946...> <6324a42a0912091352u6d2562a6ke03f2aeff20d1a72@...627...> Message-ID: <200912092259.57861.gambas@...1...> > i've not noticed that on the ide ... it have many controls too... > > 2009/12/9 richard terry : > > I've noticed qt4 is much slower rendering the controls than qt3 and > > wondered if it is possible to 'hide' this process till the rendering is > > complete. > > > > Users with small numbers of controls on a form probably wouldn't notice > > this. > > > > Regards > > > > Richard > > Qt 4 is a lot slower in drawing widgets than Qt 3. Not as slow as GTK+, but this is noticeable in the IDE. The really slow thing is splitters and SidePanel control. Do you use them? If not, I can't tell you more without having more details. Regards, -- Beno?t Minisini From rterry at ...1946... Wed Dec 9 23:01:18 2009 From: rterry at ...1946... (richard terry) Date: Thu, 10 Dec 2009 09:01:18 +1100 Subject: [Gambas-user] qt4 Font question Message-ID: <200912100901.18742.rterry@...1946...> more questions about qt4. Font sizes seem different to qt3, this may be KDE and nothing to do with qt4, but dosn't happen like this in qt3. When I use a font dialog Arial size 9 is too small for my app. If I go to 10, then it is too large. Under QT3 this dosn't seem to be the same. I enclose a picture - same font/point size the first is from the font dialog in qt3 and the second in qt4 The difference seems only to be 1 pixel but this seems to have a big effect on the overall screen - at 9 hard to read, at 10 looks too large. regards Richard -------------- next part -------------- A non-text attachment was scrubbed... Name: combined_Arial10_qt3_4.png Type: image/png Size: 2410 bytes Desc: not available URL: From rterry at ...1946... Wed Dec 9 23:52:37 2009 From: rterry at ...1946... (richard terry) Date: Thu, 10 Dec 2009 09:52:37 +1100 Subject: [Gambas-user] qt4 slowness of drawing complex screens In-Reply-To: <200912092259.57861.gambas@...1...> References: <200912100836.55519.rterry@...1946...> <6324a42a0912091352u6d2562a6ke03f2aeff20d1a72@...627...> <200912092259.57861.gambas@...1...> Message-ID: <200912100952.37225.rterry@...1946...> On Thursday 10 December 2009 08:59:57 Beno?t Minisini wrote: > > i've not noticed that on the ide ... it have many controls too... > > > > 2009/12/9 richard terry : > > > I've noticed qt4 is much slower rendering the controls than qt3 and > > > wondered if it is possible to 'hide' this process till the rendering is > > > complete. > > > > > > Users with small numbers of controls on a form probably wouldn't notice > > > this. > > > > > > Regards > > > > > > Richard > > Qt 4 is a lot slower in drawing widgets than Qt 3. Not as slow as GTK+, but > this is noticeable in the IDE. > > The really slow thing is splitters and SidePanel control. Do you use them? > If not, I can't tell you more without having more details. > > Regards, > extensive use of spitters, some side-panels. Can one somehow visually lock the form whilst it is rendering and then unlock to show the resultant gui? Regards Richard From 12ukwn at ...626... Wed Dec 9 23:58:19 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Wed, 09 Dec 2009 23:58:19 +0100 Subject: [Gambas-user] qt4 Font question In-Reply-To: <200912100901.18742.rterry@...1946...> References: <200912100901.18742.rterry@...1946...> Message-ID: <4B202B8B.80006@...626...> richard terry a ?crit : > more questions about qt4. > > Font sizes seem different to qt3, this may be KDE and nothing to do with qt4, > but dosn't happen like this in qt3. > > When I use a font dialog Arial size 9 is too small for my app. If I go to 10, > then it is too large. > > Under QT3 this dosn't seem to be the same. I enclose a picture - same > font/point size the first is from the font dialog in qt3 and the second in qt4 > > The difference seems only to be 1 pixel but this seems to have a big effect on > the overall screen - at 9 hard to read, at 10 looks too large. Hi Richard, may be you should take a look @ qtconfig-qt3|4 this looks like a replacement font that is not (or not the same) in one of the Qts -- From prog at ...2177... Thu Dec 10 03:59:19 2009 From: prog at ...2177... (craf) Date: Wed, 09 Dec 2009 23:59:19 -0300 Subject: [Gambas-user] Installing a Gambas program independent of the distribution through DIR GB In-Reply-To: <200912092016.06295.gambas@...1...> References: <1260206213.3622.7.camel@...651...> <200912092016.06295.gambas@...1...> Message-ID: <1260413959.3629.0.camel@...651...> Thank you very much, for your answer,Benoit. Regards -----Mensaje original----- De: Beno?t Minisini Reply-to: mailing list for gambas users Para: mailing list for gambas users Asunto: Re: [Gambas-user] Installing a Gambas program independent of the distribution through DIR GB Fecha: Wed, 9 Dec 2009 20:16:06 +0100 > Hello Benoit. > > I'm trying to run Gambas on a computer that does not have the component > packages, based on the help that you gave the user JGuardon, which > wanted to run Gambas on a USB stick. > In one of the points of support, type: > > 2)copy the installation directory Gambas in another folder. Let's name > it "/my/Gambas/dir". > > Question: > > What installation directory is copied?. Those who are in usr/local/bin, > usr/local/lib, usr/local/share?, Or the program directory is being > created. You must recreate the all hierarchy. For example, if the Gambas installation directory is /usr/local, you must copy in your directory all Gambas related files, following the same hierarchy: bin/gb* bin/gambas lib/gambas2/* share/gambas2/* ... > > At another point he said: > > 3) Create a script like that: > > #!/bin/sh > export LD_LIBRARY_PATH=/my/ld/dir:$LD_LIBRARY_PATH > export GB_DIR=/my/gambas/dir > exec /my/application.gambas > > Question: > > This script, which must be saved to be executed?. Of course. Otherwise you won't be able to run it! Regards, From ajw4me at ...466... Thu Dec 10 04:19:37 2009 From: ajw4me at ...466... (Tony) Date: Thu, 10 Dec 2009 14:19:37 +1100 Subject: [Gambas-user] serial port In-Reply-To: <26708752.post@...1379...> References: <25518421.post@...1379...> <20090919163437.M15768@...951...> <68652a0b0909192320s5ac22c22h20d819dd2822ab9@...627...> <26708752.post@...1379...> Message-ID: <4B2068C9.7020106@...466...> yuhej wrote: Hello, I'm very happy with the serial port communication, just I have some more question. When I start the application, I don't know what ports will be used and how many. So I have an object array where I add new serial ports depending on the hardware configuration. >From this object array, I'm able to send and receive data. I just don't know how to access to the serial port events (read). Can someone help me in this matter? Thanks, Robi yuhej wrote: Useful info, I'll do like that. Thanks, Robi 2009/9/19 nando [1] In my Linux serial port experience, serial port devices are named: /dev/ttyS0..9 and upwards /dev/ttyUSB0..9 and upwards depending on what is plugged in USB. I have done a lot of serial port stuff with Gambas. I know that trying to open then with the serial port control will fail is non-exising port. This error can be detected. It can be possible to open a port as a test to see if it exists, but you may be changing parameters and stealing chars from an existing connection. I've had this happen too....really messes things up. -Fernando ---------- Original Message ----------- From: yuhej [2] To: [3]gambas-user at lists.sourceforge.net Sent: Fri, 18 Sep 2009 21:08:04 -0700 (PDT) Subject: [Gambas-user] serial port Hello, I can see that Gambas can handle the serial ports which is a very good news for me. Can someone tell me how can I get the list of the serial ports of my computer? I wish to make an autodetect function and only allow to select from the working serial ports. Robi -- View this message in context: [4]http://www.nabble.com/serial-port-tp25518421p25518421.html Sent from the gambas-user mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! [5]http://p.sf.net/sfu/devconf _______________________________________________ Gambas-user mailing list [6]Gambas-user at lists.sourceforge.net [7]https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! [8]http://p.sf.net/sfu/devconf _______________________________________________ Gambas-user mailing list [9]Gambas-user at lists.sourceforge.net [10]https://lists.sourceforge.net/lists/listinfo/gambas-user ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! [11]http://p.sf.net/sfu/devconf _______________________________________________ Gambas-user mailing list [12]Gambas-user at lists.sourceforge.net [13]https://lists.sourceforge.net/lists/listinfo/gambas-user Hi, I'm not sure what your exact requirement is, but if it is persistent naming of a hotplug usb to serial adapter then this can be achieved thru udev. I have an Aten usb to serial adapter which when plugged may take ttyUSB0 to ttyUSB4 depending on what else e.g. wireless modem etc. is plugged in. You can create your own udev rule so that when the Aten adapter is plugged a symbolic link is created to the appropriate tty. In my case /dev/ttyATEN0 -> /dev/ttyUSB0-4. The adapter can then be addressed from Gambas as /dev/ttyATEN0. [14]http://www.reactivated.net/writing_udev_rules.html Hope this helps, Tony. References 1. mailto:nando_f at ...951... 2. mailto:robert1juhasz at ...626... 3. mailto:gambas-user at lists.sourceforge.net 4. http://www.nabble.com/serial-port-tp25518421p25518421.html 5. http://p.sf.net/sfu/devconf 6. mailto:Gambas-user at lists.sourceforge.net 7. https://lists.sourceforge.net/lists/listinfo/gambas-user 8. http://p.sf.net/sfu/devconf 9. mailto:Gambas-user at lists.sourceforge.net 10. https://lists.sourceforge.net/lists/listinfo/gambas-user 11. http://p.sf.net/sfu/devconf 12. mailto:Gambas-user at lists.sourceforge.net 13. https://lists.sourceforge.net/lists/listinfo/gambas-user 14. http://www.reactivated.net/writing_udev_rules.html From nospam.nospam.nospam at ...626... Thu Dec 10 06:18:59 2009 From: nospam.nospam.nospam at ...626... (Kadaitcha Man) Date: Thu, 10 Dec 2009 16:18:59 +1100 Subject: [Gambas-user] Buttons again not working In-Reply-To: References: <200912091743.49370.gambas@...1...> Message-ID: 2009/12/10 Kadaitcha Man : > 2009/12/10 Beno?t Minisini : > >> You should write: >> ?butty = NEW Button(keret) AS "Ops" >> to have the same effect. > > That's what I thought, but when I tried a similar thing with a > TextBox, it appeared that the TextBox events were not firing. I'll > take another look at it later this afternoon just in case I made a > mistake. If it's a problem I'll post the code. Yep. I made a mistake. I was editing the wrong TextBox. Sheesh. From nospam.nospam.nospam at ...626... Thu Dec 10 06:19:04 2009 From: nospam.nospam.nospam at ...626... (Kadaitcha Man) Date: Thu, 10 Dec 2009 16:19:04 +1100 Subject: [Gambas-user] Buttons again not working In-Reply-To: References: <200912091743.49370.gambas@...1...> Message-ID: 2009/12/10 Kadaitcha Man : > 2009/12/10 Beno?t Minisini : > >> You should write: >> ?butty = NEW Button(keret) AS "Ops" >> to have the same effect. > > That's what I thought, but when I tried a similar thing with a > TextBox, it appeared that the TextBox events were not firing. I'll > take another look at it later this afternoon just in case I made a > mistake. If it's a problem I'll post the code. Yep. I made a mistake. I was editing the wrong TextBox. Sheesh. From norarg at ...2311... Thu Dec 10 16:37:25 2009 From: norarg at ...2311... (Norarg) Date: Thu, 10 Dec 2009 12:37:25 -0300 Subject: [Gambas-user] Cliboard-Problem Message-ID: Hi, I have a problem with the clipboard, using ubuntu 9.10, gambas 2.13 following code works ONE time: PUBLIC SUB CLIP_B_Click() DIM S AS String DIM I AS Integer DIM TR AS Result TR = M.ReadRecord(OPVDM!tabelle, OPVDM!TBID, OPVDM!TBIDWert) IF TR.Count = 0 THEN Message.Info("Daten nicht gefunden", "Ok") RETURN ENDIF Clipboard.Clear S = "Datenausgabe " & OPVDM!betreff & CRLF S = S & String(75, "_") & CRLF S = S & Left("Feld" & String(25, " "), 25) & Left("Wert" & String(40, " "), 40) & "Datentyp" & CRLF S = S & String(75, "_") & CRLF OPVDF.MoveFirst TR.MoveFirst FOR I = 1 TO OPVDF.Count S = S & Left(OPVDF!feldbezeichnung & String(25, " "), 25) S = S & Left(TR[OPVDF!feldname] & String(50, " "), 40) S = S & OPVDF!feldtyp & CRLF OPVDF.MoveNext NEXT S = S & String(75, "_") & CRLF Clipboard.Copy(S) END I am sure there is no data-problem, the print of S is ok. The second time I call this procedure, I get a message in the direct-window: *QClipboard: cannot transfer data, no data available * I hope someone can help me with this. Oh, I also tried the following, to get sure nothing is wrong with the string (removed all data): PUBLIC SUB CLIP_B_Click() DIM S AS String Clipboard.Clear S = "Datenausgabe " & CRLF S = S & String(75, "_") & CRLF S = S & Left("Feld" & String(25, " "), 25) & Left("Wert" & String(40, " "), 40) & "Datentyp" & CRLF S = S & String(75, "_") & CRLF S = S & String(75, "_") & CRLF Clipboard.Copy(S) END CRLF ist just CHR(10) Same error. Thanks in advance * * From ron at ...1740... Thu Dec 10 16:50:13 2009 From: ron at ...1740... (Ron) Date: Thu, 10 Dec 2009 16:50:13 +0100 Subject: [Gambas-user] Workspace and object .Visible property Message-ID: <4B2118B5.6030607@...1740...> If you have an object on a tab of a workspace (for example a tableview object), and this tab is not selected (ie hidden behind the currently selected one), The tableviews .Visible property returns TRUE, why? Gambas 2.18.0 gb.qt Regards, Ron_2nd. From les at ...2337... Thu Dec 10 16:57:32 2009 From: les at ...2337... (Les Hardy) Date: Thu, 10 Dec 2009 15:57:32 +0000 Subject: [Gambas-user] Cliboard-Problem In-Reply-To: References: Message-ID: <4B211A6C.7080602@...2337...> Norarg wrote: > Hi, > > I have a problem with the clipboard, > using ubuntu 9.10, gambas 2.13 > > following code works ONE time: > > PUBLIC SUB CLIP_B_Click() > DIM S AS String > DIM I AS Integer > DIM TR AS Result > TR = M.ReadRecord(OPVDM!tabelle, OPVDM!TBID, OPVDM!TBIDWert) > IF TR.Count = 0 THEN > Message.Info("Daten nicht gefunden", "Ok") > RETURN > ENDIF > Clipboard.Clear > S = "Datenausgabe " & OPVDM!betreff & CRLF > S = S & String(75, "_") & CRLF > S = S & Left("Feld" & String(25, " "), 25) & Left("Wert" & String(40, > " "), 40) & "Datentyp" & CRLF > S = S & String(75, "_") & CRLF > OPVDF.MoveFirst > TR.MoveFirst > FOR I = 1 TO OPVDF.Count > S = S & Left(OPVDF!feldbezeichnung & String(25, " "), 25) > S = S & Left(TR[OPVDF!feldname] & String(50, " "), 40) > S = S & OPVDF!feldtyp & CRLF > OPVDF.MoveNext > NEXT > S = S & String(75, "_") & CRLF > Clipboard.Copy(S) > END > > I am sure there is no data-problem, the print of S is ok. > The second time I call this procedure, I get a message in the direct-window: > > *QClipboard: cannot transfer data, no data available > * > I hope someone can help me with this. Oh, I also tried the following, to > get sure nothing is wrong with the string (removed all data): > > PUBLIC SUB CLIP_B_Click() > DIM S AS String > Clipboard.Clear > S = "Datenausgabe " & CRLF > S = S & String(75, "_") & CRLF > S = S & Left("Feld" & String(25, " "), 25) & Left("Wert" & String(40, > " "), 40) & "Datentyp" & CRLF > S = S & String(75, "_") & CRLF > S = S & String(75, "_") & CRLF > Clipboard.Copy(S) > END > > CRLF ist just CHR(10) > > Same error. > > Thanks in advance > Just put a WAIT after Clipboard.Clear and it will be ok. Clipboard.Clear WAIT Regards Les Hardy From ubuntu at ...2332... Thu Dec 10 19:34:20 2009 From: ubuntu at ...2332... (D. L. Fox) Date: Thu, 10 Dec 2009 13:34:20 -0500 Subject: [Gambas-user] Workspace and object .Visible property In-Reply-To: <4B2118B5.6030607@...1740...> References: <4B2118B5.6030607@...1740...> Message-ID: <4B213F2C.2090302@...2332...> Someone will correct me if I'm wrong. Technically, the component itself is still visible. You just can't see it because the tab to which it belongs is hidden. If you need to know its visibility in that scenario, I guess you will have to check to see if its tab is the currently selected tab. Ron wrote: > > If you have an object on a tab of a workspace (for example a tableview > object), and this tab is not selected (ie hidden behind the currently > selected one), The tableviews .Visible property returns TRUE, why? > > Gambas 2.18.0 > gb.qt > > Regards, > Ron_2nd. > > ------------------------------------------------------------------------------ > Return on Information: > Google Enterprise Search pays you back > Get the facts. > http://p.sf.net/sfu/google-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From norarg at ...2311... Thu Dec 10 19:42:04 2009 From: norarg at ...2311... (Norarg) Date: Thu, 10 Dec 2009 15:42:04 -0300 Subject: [Gambas-user] Cliboard-Problem - Solved In-Reply-To: <4B211A6C.7080602@...2337...> References: <4B211A6C.7080602@...2337...> Message-ID: Les Hardy schrieb: > Norarg wrote: > >> Hi, >> >> I have a problem with the clipboard, >> using ubuntu 9.10, gambas 2.13 >> >> following code works ONE time: >> >> PUBLIC SUB CLIP_B_Click() >> DIM S AS String >> DIM I AS Integer >> DIM TR AS Result >> TR = M.ReadRecord(OPVDM!tabelle, OPVDM!TBID, OPVDM!TBIDWert) >> IF TR.Count = 0 THEN >> Message.Info("Daten nicht gefunden", "Ok") >> RETURN >> ENDIF >> Clipboard.Clear >> S = "Datenausgabe " & OPVDM!betreff & CRLF >> S = S & String(75, "_") & CRLF >> S = S & Left("Feld" & String(25, " "), 25) & Left("Wert" & String(40, >> " "), 40) & "Datentyp" & CRLF >> S = S & String(75, "_") & CRLF >> OPVDF.MoveFirst >> TR.MoveFirst >> FOR I = 1 TO OPVDF.Count >> S = S & Left(OPVDF!feldbezeichnung & String(25, " "), 25) >> S = S & Left(TR[OPVDF!feldname] & String(50, " "), 40) >> S = S & OPVDF!feldtyp & CRLF >> OPVDF.MoveNext >> NEXT >> S = S & String(75, "_") & CRLF >> Clipboard.Copy(S) >> END >> >> I am sure there is no data-problem, the print of S is ok. >> The second time I call this procedure, I get a message in the direct-window: >> >> *QClipboard: cannot transfer data, no data available >> * >> I hope someone can help me with this. Oh, I also tried the following, to >> get sure nothing is wrong with the string (removed all data): >> >> PUBLIC SUB CLIP_B_Click() >> DIM S AS String >> Clipboard.Clear >> S = "Datenausgabe " & CRLF >> S = S & String(75, "_") & CRLF >> S = S & Left("Feld" & String(25, " "), 25) & Left("Wert" & String(40, >> " "), 40) & "Datentyp" & CRLF >> S = S & String(75, "_") & CRLF >> S = S & String(75, "_") & CRLF >> Clipboard.Copy(S) >> END >> >> CRLF ist just CHR(10) >> >> Same error. >> >> Thanks in advance >> >> > > Just put a WAIT after Clipboard.Clear and it will be ok. > > Clipboard.Clear > WAIT > > > Regards > Les Hardy > > > ------------------------------------------------------------------------------ > Return on Information: > Google Enterprise Search pays you back > Get the facts. > http://p.sf.net/sfu/google-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > Thanks a lot, perfect Regards Norarg From rterry at ...1946... Thu Dec 10 22:53:01 2009 From: rterry at ...1946... (richard terry) Date: Fri, 11 Dec 2009 08:53:01 +1100 Subject: [Gambas-user] menu button events Q Message-ID: <200912110853.01306.rterry@...1946...> I've a menu button and want to be able to detect a right mouse click over the text of the button. None of the events seem intereceptable in the usual way in code, and creating an observor on the button and using stop events dosn't seem to work either (gambas3 + qt4). Is there something special about this button? Regards Richard From gambas at ...1... Thu Dec 10 23:38:37 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 10 Dec 2009 23:38:37 +0100 Subject: [Gambas-user] Workspace and object .Visible property In-Reply-To: <4B213F2C.2090302@...2332...> References: <4B2118B5.6030607@...1740...> <4B213F2C.2090302@...2332...> Message-ID: <200912102338.37480.gambas@...1...> > Someone will correct me if I'm wrong. > > Technically, the component itself is still visible. You just can't see > it because the tab to which it belongs is hidden. > > If you need to know its visibility in that scenario, I guess you will > have to check to see if its tab is the currently selected tab. > Yes. The visible property actually means that the control is not explicitely hidden, i.e. that it will be visible if its coordinates are inside its container, and if there is no other controls or windows in front of it. Regards, -- Beno?t Minisini From rterry at ...1946... Fri Dec 11 05:18:43 2009 From: rterry at ...1946... (richard terry) Date: Fri, 11 Dec 2009 15:18:43 +1100 Subject: [Gambas-user] Really dumb question about dialog forms Message-ID: <200912111518.43150.rterry@...1946...> Hi List, My really stupid question for the week. If I create a new form with the dialog support it gets this code: Public Sub Run() As Boolean Return Not Me.ShowModal() End Public Sub btnOK_Click() Me.Close(True) End Public Sub btnCancel_Click() Me.Close End If I had a textbox on the form and wanted to return its contents, what would be the change in syntax required? Thanks in anticipation. From nospam.nospam.nospam at ...626... Fri Dec 11 07:22:54 2009 From: nospam.nospam.nospam at ...626... (Kadaitcha Man) Date: Fri, 11 Dec 2009 17:22:54 +1100 Subject: [Gambas-user] Really dumb question about dialog forms In-Reply-To: <200912111518.43150.rterry@...1946...> References: <200912111518.43150.rterry@...1946...> Message-ID: 2009/12/11 richard terry : > Hi List, > > My really stupid question for the week. I'm sorry. You've already done that three times this week. > If I had a textbox on the form and wanted to return its contents, what would > be the change in syntax required? None whatsoever. Create a public variable in a common module. Set the variable from within your modal form and read it from somewhere else, such as the code that called the form, for example. > Thanks in anticipation. I'll send you the bill. From wdahn at ...1000... Fri Dec 11 07:25:44 2009 From: wdahn at ...1000... (Werner) Date: Fri, 11 Dec 2009 14:25:44 +0800 Subject: [Gambas-user] Minimum Size of a Form Message-ID: <4B21E5E8.1080906@...1000...> How can I ensure a resizable form does not get smaller than a certain minimum? That won't work: Public Sub Form_Resize() If Me.Width < 200 Then Me.Width = 200 ' Stop Event Endif If Me.Height < 180 Then Me.Height = 180 ' Stop Event Endif End ...no matter if I use Stop Event or not. Regards Werner From rterry at ...1946... Fri Dec 11 08:05:25 2009 From: rterry at ...1946... (richard terry) Date: Fri, 11 Dec 2009 18:05:25 +1100 Subject: [Gambas-user] Really dumb question about dialog forms In-Reply-To: References: <200912111518.43150.rterry@...1946...> Message-ID: <200912111805.25880.rterry@...1946...> On Friday 11 December 2009 17:22:54 you wrote: > 2009/12/11 richard terry : > > Hi List, > > > > My really stupid question for the week. > > I'm sorry. You've already done that three times this week. > > > If I had a textbox on the form and wanted to return its contents, what > > would be the change in syntax required? > > None whatsoever. > > Create a public variable in a common module. Set the variable from > within your modal form and read it from somewhere else, such as the > code that called the form, for example. > > > Thanks in anticipation. > > I'll send you the bill. > I've already done that and its the method I use, so no $ accrue to you, however I wondered if there was way of returning it via the modal form. BTW when replying on the list its useful ***not to snip out the guts of the question*** so that others reading your reply can make sense of it. Regards Richard From nospam.nospam.nospam at ...626... Fri Dec 11 08:27:02 2009 From: nospam.nospam.nospam at ...626... (Kadaitcha Man) Date: Fri, 11 Dec 2009 18:27:02 +1100 Subject: [Gambas-user] Really dumb question about dialog forms In-Reply-To: <200912111805.25880.rterry@...1946...> References: <200912111518.43150.rterry@...1946...> <200912111805.25880.rterry@...1946...> Message-ID: 2009/12/11 richard terry : > BTW when replying on the list its useful ***not to snip out the guts of the > question*** so that others reading your reply can make sense of it. Why put the onus on me for something that annoys only you? If you don't like the way I reply, don't read them. From doriano.blengino at ...1909... Fri Dec 11 09:33:53 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Fri, 11 Dec 2009 09:33:53 +0100 Subject: [Gambas-user] Really dumb question about dialog forms In-Reply-To: References: <200912111518.43150.rterry@...1946...> Message-ID: <4B2203F1.1000909@...1909...> Kadaitcha Man ha scritto: >> If I create a new form with the dialog support it gets this code: >> Public Sub Run() As Boolean >> > >> If I had a textbox on the form and wanted to return its contents, what would >> be the change in syntax required? >> > > None whatsoever. > > Create a public variable in a common module. Set the variable from > within your modal form and read it from somewhere else, such as the > code that called the form, for example. > ...with good restful peace for good programming tecniques... I don't know what is this issue of "modal forms support" in gambas3 but, if things are as you have put them, then it is awful. Anyway, to create variables in yet another module, so ones have three files to do a single thing, is just the best way to mess up everything. Regards, Doriano From nospam.nospam.nospam at ...626... Fri Dec 11 10:04:05 2009 From: nospam.nospam.nospam at ...626... (Kadaitcha Man) Date: Fri, 11 Dec 2009 20:04:05 +1100 Subject: [Gambas-user] Really dumb question about dialog forms In-Reply-To: <4B2203F1.1000909@...1909...> References: <200912111518.43150.rterry@...1946...> <4B2203F1.1000909@...1909...> Message-ID: 2009/12/11 Doriano Blengino : > Kadaitcha Man ha scritto: >>> If I create a new form with the dialog support it gets this code: >>> Public Sub Run() As Boolean >>> >> >>> If I had a textbox on the form and wanted to return its contents, what would >>> be the change in syntax required? >>> >> >> None whatsoever. >> >> Create a public variable in a common module. Set the variable from >> within your modal form and read it from somewhere else, such as the >> code that called the form, for example. >> > ...with good restful peace for good programming tecniques... > > I don't know what is this issue of "modal forms support" in gambas3 but, > if things are as you have put them, then it is awful. Anyway, to create > variables in yet another module, so ones have three files to do a single > thing, is just the best way to mess up everything. First up, one generally does not write a GUI application to do one single thing so creating a public variable in some module should not be a major issue. Second, someone else will have to tell you if there is a method other than what I describe; I looked for days and found nothing. I tried for many hours and failed to get it to work. When the Close() method is called by the modal window, the window instantly commits Harakiri and invalidates itself, so even if you instantiate a form inside a form variable, the window is instantly dereferenced the moment Close() executes. Gambas should not do that, IMO. The form should stay accessible to programmer via the variable until the programmer destroys it, or until the method that created the form variable terminates. I know it isn't kosher OO behavior, but what do you want from Gambas? Is having kosher OO more important than being able to choose not to have to learn C++, Pascal, or Java? From gambas.fr at ...626... Fri Dec 11 10:08:27 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 11 Dec 2009 10:08:27 +0100 Subject: [Gambas-user] Really dumb question about dialog forms In-Reply-To: References: <200912111518.43150.rterry@...1946...> <4B2203F1.1000909@...1909...> Message-ID: <6324a42a0912110108x4d5bece4w5605f1cc43f24a7@...627...> if you do not calm kadaitcha man you gonna get fired from this mailing list. I have not used it but you are insulting and it is not necessary. I would simply point out to you that all your intervention are not necessarily very bright Also if this is not to answer the question ... It is wiser to shut up! To Richard: Static Public sValue as string Public Sub Run () As Boolean Return Not Me.ShowModal () End Public Sub btnOK_Click () sValue = TextBox1.Text Me.Close (True) End Public Sub btnCancel_Click () Me.Close End MyForm.Run if () then Print MyForm.sValue endif In this case sValue is static and can be called as if the class was a module. This is useful in this case among others. But for example if you were more instances of the same class (not in modal mode), and that each instance fesait Appeal sValue ... then you might not know the result ... sValue is common to all instances. As if MyClass was a separate module. That's all and not really a stupid question. Fabien Bodard From gambas.fr at ...626... Fri Dec 11 10:10:53 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 11 Dec 2009 10:10:53 +0100 Subject: [Gambas-user] Really dumb question about dialog forms In-Reply-To: <6324a42a0912110108x4d5bece4w5605f1cc43f24a7@...627...> References: <200912111518.43150.rterry@...1946...> <4B2203F1.1000909@...1909...> <6324a42a0912110108x4d5bece4w5605f1cc43f24a7@...627...> Message-ID: <6324a42a0912110110l77449423x2c17c4f9c36b980c@...627...> if not MyForm.Run() then Print MyForm.sValue endif 2009/12/11 Fabien Bodard : > if you do not calm kadaitcha man you gonna get fired from this mailing > list. I have not used it but you are insulting and it is not > necessary. I would simply point out to you that all your intervention > are not necessarily very bright > > Also if this is not to answer the question ... It is wiser to shut up! > > To Richard: > > Static Public sValue as string > > Public Sub Run () As Boolean > > ?Return Not Me.ShowModal () > > End > > Public Sub btnOK_Click () > ?sValue = TextBox1.Text > ?Me.Close (True) > > End > > Public Sub btnCancel_Click () > > ?Me.Close > > End > > > MyForm.Run if () then > > Print MyForm.sValue > > endif > > In this case sValue is static and can be called as if the class was a module. > This is useful in this case among others. > But for example if you were more instances of the same class (not in > modal mode), and that each instance fesait Appeal sValue ... then you > might not know the result ... sValue is common to all instances. As if > MyClass was a separate module. > > That's all and not really a stupid question. > > Fabien Bodard > From les at ...2337... Fri Dec 11 10:09:48 2009 From: les at ...2337... (Les Hardy) Date: Fri, 11 Dec 2009 09:09:48 +0000 Subject: [Gambas-user] Really dumb question about dialog forms In-Reply-To: <200912111805.25880.rterry@...1946...> References: <200912111518.43150.rterry@...1946...> <200912111805.25880.rterry@...1946...> Message-ID: <4B220C5C.6050400@...2337...> richard terry wrote: > On Friday 11 December 2009 17:22:54 you wrote: >> 2009/12/11 richard terry : >>> Hi List, >>> >>> My really stupid question for the week. >> I'm sorry. You've already done that three times this week. >> >>> If I had a textbox on the form and wanted to return its contents, what >>> would be the change in syntax required? >> None whatsoever. >> >> Create a public variable in a common module. Set the variable from >> within your modal form and read it from somewhere else, such as the >> code that called the form, for example. >> >>> Thanks in anticipation. >> I'll send you the bill. >> > I've already done that and its the method I use, so no $ accrue to you, > however I wondered if there was way of returning it via the modal form. Forgive my stupidity, but I must be missing something here. I don't understand the problem. My understanding is that when form controls are set public, you just access the contents of any form from the form you are in. Modal or not. Or have I been doing it wrong? Sorry, I get it now. No export from Dialog. From nospam.nospam.nospam at ...626... Fri Dec 11 10:23:46 2009 From: nospam.nospam.nospam at ...626... (Kadaitcha Man) Date: Fri, 11 Dec 2009 20:23:46 +1100 Subject: [Gambas-user] Really dumb question about dialog forms In-Reply-To: <6324a42a0912110108x4d5bece4w5605f1cc43f24a7@...627...> References: <200912111518.43150.rterry@...1946...> <4B2203F1.1000909@...1909...> <6324a42a0912110108x4d5bece4w5605f1cc43f24a7@...627...> Message-ID: 2009/12/11 Fabien Bodard : > Also if this is not to answer the question ... It is an answer to the question. > It is wiser to shut up! > if you do not calm kadaitcha man you gonna get fired from this mailing > list. I have not used it but you are insulting and it is not > necessary. I would simply point out to you that all your intervention > are not necessarily very bright You can go and fuck yourself violently up the arse with the sharp end of a broken champagne bottle for all I care. Mes couilles sur ton nez. I guess this means goodbye, hey? Parting is such sweet sorrow. From eilert-sprachen at ...221... Fri Dec 11 10:55:22 2009 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Fri, 11 Dec 2009 10:55:22 +0100 Subject: [Gambas-user] Where is TextView? Message-ID: <4B22170A.2060904@...221...> I just started to convert a more complex Gambas1 app to Gambas2. Rather clumsy job... Now I've come over a TextView control which seems not to exist anymore. What can I use instead? TextArea with ReadOnly? Or did I just oversee it? Regards Rolf From eilert-sprachen at ...221... Fri Dec 11 11:07:21 2009 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Fri, 11 Dec 2009 11:07:21 +0100 Subject: [Gambas-user] Isn't there an easier way... Message-ID: <4B2219D9.9010301@...221...> ...of converting Gambas1 apps to Gambas2? I just thought, rebuilding the forms and dialogs control for control, copying their X, Y, Height and Width values and other properties one by one - it takes hours. Hasn't anyone made a converter for the files yet? No requirement? It couldn't be too hard as the file formats aren't that far apart. With less complex projects I even managed to fake it manually, so Gambas2 would accept the files and the project continued running. Regards Rolf From gambas.fr at ...626... Fri Dec 11 11:16:50 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 11 Dec 2009 11:16:50 +0100 Subject: [Gambas-user] Where is TextView? In-Reply-To: <4B22170A.2060904@...221...> References: <4B22170A.2060904@...221...> Message-ID: <6324a42a0912110216j396affcv745bb424f31aa5b6@...627...> 2009/12/11 Rolf-Werner Eilert : > I just started to convert a more complex Gambas1 app to Gambas2. Rather > clumsy job... > > Now I've come over a TextView control which seems not to exist anymore. > What can I use instead? TextArea with ReadOnly? Or did I just oversee it? It's TextEdit now ... for the v2... since 4 years > > Regards > > Rolf > > ------------------------------------------------------------------------------ > Return on Information: > Google Enterprise Search pays you back > Get the facts. > http://p.sf.net/sfu/google-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Fri Dec 11 11:18:30 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 11 Dec 2009 11:18:30 +0100 Subject: [Gambas-user] Isn't there an easier way... In-Reply-To: <4B2219D9.9010301@...221...> References: <4B2219D9.9010301@...221...> Message-ID: <6324a42a0912110218t2d7955e3q25f5696afd93306f@...627...> the converted is embbeded in the ide..; (Tool> convert forms) You load the v1 project and then call this tool and then compile all... but make a copy of your project before 2009/12/11 Rolf-Werner Eilert : > ...of converting Gambas1 apps to Gambas2? I just thought, rebuilding the > forms and dialogs control for control, copying their X, Y, Height and > Width values and other properties one by one - it takes hours. > > Hasn't anyone made a converter for the files yet? No requirement? It > couldn't be too hard as the file formats aren't that far apart. With > less complex projects I even managed to fake it manually, so Gambas2 > would accept the files and the project continued running. > > Regards > > Rolf > > ------------------------------------------------------------------------------ > Return on Information: > Google Enterprise Search pays you back > Get the facts. > http://p.sf.net/sfu/google-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Fri Dec 11 11:19:38 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 11 Dec 2009 11:19:38 +0100 Subject: [Gambas-user] Minimum Size of a Form In-Reply-To: <4B21E5E8.1080906@...1000...> References: <4B21E5E8.1080906@...1000...> Message-ID: <6324a42a0912110219nc57e940hfaaad0a23b4636a6@...627...> in gambas 2 the minimum size of a form is set by the size given at the desing... 2009/12/11 Werner : > How can I ensure a resizable form does not get smaller than a certain > minimum? > That won't work: > > Public Sub Form_Resize() > ?If Me.Width < 200 Then > ? ?Me.Width = 200 > ? ' Stop Event > ?Endif > ?If Me.Height < 180 Then > ? ?Me.Height = 180 > ?' ?Stop Event > ?Endif > End > > ...no matter if I use Stop Event or not. > > Regards > > Werner > > > ------------------------------------------------------------------------------ > Return on Information: > Google Enterprise Search pays you back > Get the facts. > http://p.sf.net/sfu/google-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From nospam.nospam.nospam at ...626... Fri Dec 11 11:27:16 2009 From: nospam.nospam.nospam at ...626... (Kadaitcha Man) Date: Fri, 11 Dec 2009 21:27:16 +1100 Subject: [Gambas-user] Minimum Size of a Form In-Reply-To: <6324a42a0912110219nc57e940hfaaad0a23b4636a6@...627...> References: <4B21E5E8.1080906@...1000...> <6324a42a0912110219nc57e940hfaaad0a23b4636a6@...627...> Message-ID: 2009/12/11 Fabien Bodard : > in gambas 2 the minimum size of a form is set by the size given at the desing... BWAHAHAHAHAHAHAHAHA! Guess again. "if this is not to answer the question ... It is wiser to shut up!" From gambas.fr at ...626... Fri Dec 11 11:27:21 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 11 Dec 2009 11:27:21 +0100 Subject: [Gambas-user] menu button events Q In-Reply-To: <200912110853.01306.rterry@...1946...> References: <200912110853.01306.rterry@...1946...> Message-ID: <6324a42a0912110227t656f3e8r95a5774b439144f4@...627...> That's ok on the rev 2475 2009/12/10 richard terry : > I've a menu button and want to be able to detect a right mouse click over the > text of the button. > > None of the events seem intereceptable in the usual way in code, and creating > an observor on the button and using stop events dosn't seem to work either > (gambas3 + qt4). > > Is there something special about this button? > > Regards > > Richard > > ------------------------------------------------------------------------------ > Return on Information: > Google Enterprise Search pays you back > Get the facts. > http://p.sf.net/sfu/google-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From 12ukwn at ...626... Fri Dec 11 11:35:54 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Fri, 11 Dec 2009 11:35:54 +0100 Subject: [Gambas-user] Minimum Size of a Form In-Reply-To: <6324a42a0912110219nc57e940hfaaad0a23b4636a6@...627...> References: <4B21E5E8.1080906@...1000...> <6324a42a0912110219nc57e940hfaaad0a23b4636a6@...627...> Message-ID: <4B22208A.40402@...626...> Fabien Bodard a ?crit : > in gambas 2 the minimum size of a form is set by the size given at the desing... it's only true if it is a fixed sized, otherwise you can shrink it as you want... -- It's the Magic that counts. -- Larry Wall on Perl's apparent ugliness From emil at ...1913... Fri Dec 11 11:27:45 2009 From: emil at ...1913... (Emil Tchekov) Date: Fri, 11 Dec 2009 11:27:45 +0100 Subject: [Gambas-user] Minimum Size of a Form / for Kadaitcha Man In-Reply-To: Message-ID: Dear friend, can you please stop with this behaviour? I will be very thankfull and appreciating your good manners. Thank you very much in advance sincerely Emil > -----Ursprungliche Nachricht----- > Von: Kadaitcha Man [mailto:nospam.nospam.nospam at ...626...] > Gesendet: Freitag, 11. Dezember 2009 11:27 > An: mailing list for gambas users > Betreff: Re: [Gambas-user] Minimum Size of a Form > > > 2009/12/11 Fabien Bodard : > > > in gambas 2 the minimum size of a form is set by the size given > at the desing... > > BWAHAHAHAHAHAHAHAHA! > > Guess again. > > "if this is not to answer the question ... It is wiser to shut up!" > > ------------------------------------------------------------------ > ------------ > Return on Information: > Google Enterprise Search pays you back > Get the facts. > http://p.sf.net/sfu/google-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From nospam.nospam.nospam at ...626... Fri Dec 11 11:52:32 2009 From: nospam.nospam.nospam at ...626... (Kadaitcha Man) Date: Fri, 11 Dec 2009 21:52:32 +1100 Subject: [Gambas-user] An Apology Message-ID: I have pissed off a few people. If there is anyone whom I have not pissed off, I apologise. From gambas.fr at ...626... Fri Dec 11 12:01:19 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 11 Dec 2009 12:01:19 +0100 Subject: [Gambas-user] Minimum Size of a Form In-Reply-To: <4B22208A.40402@...626...> References: <4B21E5E8.1080906@...1000...> <6324a42a0912110219nc57e940hfaaad0a23b4636a6@...627...> <4B22208A.40402@...626...> Message-ID: <6324a42a0912110301k48c4daffm6d2295cf50fe1750@...627...> ok Error from mine :) ... but for one part the min size is fixed at the desing but only for windows with ToolBox option at true And in gambas3 with windows.type at Utility 2009/12/11 Jean-Yves F. Barbier <12ukwn at ...626...>: > Fabien Bodard a ?crit : >> in gambas 2 the minimum size of a form is set by the size given at the desing... > > it's only true if it is a fixed sized, otherwise you can shrink it as you want... > > -- > It's the Magic that counts. > ? ? ? ? ? ? ? ?-- Larry Wall on Perl's apparent ugliness > > ------------------------------------------------------------------------------ > Return on Information: > Google Enterprise Search pays you back > Get the facts. > http://p.sf.net/sfu/google-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From emil at ...1913... Fri Dec 11 11:55:00 2009 From: emil at ...1913... (Emil Tchekov) Date: Fri, 11 Dec 2009 11:55:00 +0100 Subject: [Gambas-user] Kadaitcha Man In-Reply-To: Message-ID: > -----Urspr?ngliche Nachricht----- > Von: Kadaitcha Man [mailto:nospam.nospam.nospam at ...626...] > Gesendet: Freitag, 11. Dezember 2009 11:44 > An: Emil Tchekov > Betreff: Re: [Gambas-user] Minimum Size of a Form / for Kadaitcha Man > > > 2009/12/11 Emil Tchekov : > > > Thank you very much in advance > > Get fucked very much in advance. > I do not know why you are so insulted... Hope you will calm down Think Netiquette and good manners should solve problems and help us for better understanding. Wish you all the best and hope you will get better! Emil From 12ukwn at ...626... Fri Dec 11 12:08:34 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Fri, 11 Dec 2009 12:08:34 +0100 Subject: [Gambas-user] Minimum Size of a Form In-Reply-To: <6324a42a0912110301k48c4daffm6d2295cf50fe1750@...627...> References: <4B21E5E8.1080906@...1000...> <6324a42a0912110219nc57e940hfaaad0a23b4636a6@...627...> <4B22208A.40402@...626...> <6324a42a0912110301k48c4daffm6d2295cf50fe1750@...627...> Message-ID: <4B222832.70109@...626...> Fabien Bodard a ?crit : > ok Error from mine :) ... but for one part the min size is fixed at > the desing but only for windows with ToolBox option at true zarb, it would be a good idea to also have min X,Y (not especially linked to a toolbar) > And in gambas3 with windows.type at Utility -- If you live in New York, even if you're Catholic, you're Jewish. -- Lenny Bruce From eilert-sprachen at ...221... Fri Dec 11 12:08:24 2009 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Fri, 11 Dec 2009 12:08:24 +0100 Subject: [Gambas-user] Isn't there an easier way... In-Reply-To: <6324a42a0912110218t2d7955e3q25f5696afd93306f@...627...> References: <4B2219D9.9010301@...221...> <6324a42a0912110218t2d7955e3q25f5696afd93306f@...627...> Message-ID: <4B222828.80809@...221...> Hmm! Interesting! I copied the original directory to another place with a different name and loaded the project into Gambas2. It complained, wanted to know "Do you really want...", OK. Then I chose Tools/Update all Forms. After some work, it says Cannot open file Component missing FForm.CreateControl.1073 Unfortunately, it doesn't continue but stops here, so I cannot start the project at all. It seems, it didn't change anything so far. Where should I start to look for the reason? Rolf Am 11.12.2009 11:18, schrieb Fabien Bodard: > the converted is embbeded in the ide..; (Tool> convert forms) > > You load the v1 project and then call this tool and then compile all... > > but make a copy of your project before > > 2009/12/11 Rolf-Werner Eilert: >> ...of converting Gambas1 apps to Gambas2? I just thought, rebuilding the >> forms and dialogs control for control, copying their X, Y, Height and >> Width values and other properties one by one - it takes hours. >> >> Hasn't anyone made a converter for the files yet? No requirement? It >> couldn't be too hard as the file formats aren't that far apart. With >> less complex projects I even managed to fake it manually, so Gambas2 >> would accept the files and the project continued running. >> >> Regards >> >> Rolf >> >> ------------------------------------------------------------------------------ >> Return on Information: >> Google Enterprise Search pays you back >> Get the facts. >> http://p.sf.net/sfu/google-dev2dev >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > ------------------------------------------------------------------------------ > Return on Information: > Google Enterprise Search pays you back > Get the facts. > http://p.sf.net/sfu/google-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Fri Dec 11 12:20:16 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 11 Dec 2009 12:20:16 +0100 Subject: [Gambas-user] Isn't there an easier way... In-Reply-To: <4B222828.80809@...221...> References: <4B2219D9.9010301@...221...> <6324a42a0912110218t2d7955e3q25f5696afd93306f@...627...> <4B222828.80809@...221...> Message-ID: <6324a42a0912110320s5ac94dd2w6fef20609968369a@...627...> if you can send e directly your project ... i will be able to see the problem... 2009/12/11 Rolf-Werner Eilert : > Hmm! Interesting! > > I copied the original directory to another place with a different name > and loaded the project into Gambas2. It complained, wanted to know "Do > you really want...", OK. > > Then I chose Tools/Update all Forms. After some work, it says > > Cannot open file > > Component missing > FForm.CreateControl.1073 > > Unfortunately, it doesn't continue but stops here, so I cannot start the > project at all. It seems, it didn't change anything so far. > > Where should I start to look for the reason? > > Rolf > > > Am 11.12.2009 11:18, schrieb Fabien Bodard: >> the converted is embbeded in the ide..; (Tool> ?convert forms) >> >> You load the v1 project and then call this tool and then compile all... >> >> but make a copy of your project before >> >> 2009/12/11 Rolf-Werner Eilert: >>> ...of converting Gambas1 apps to Gambas2? I just thought, rebuilding the >>> forms and dialogs control for control, copying their X, Y, Height and >>> Width values and other properties one by one - it takes hours. >>> >>> Hasn't anyone made a converter for the files yet? No requirement? It >>> couldn't be too hard as the file formats aren't that far apart. With >>> less complex projects I even managed to fake it manually, so Gambas2 >>> would accept the files and the project continued running. >>> >>> Regards >>> >>> Rolf >>> >>> ------------------------------------------------------------------------------ >>> Return on Information: >>> Google Enterprise Search pays you back >>> Get the facts. >>> http://p.sf.net/sfu/google-dev2dev >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> >> ------------------------------------------------------------------------------ >> Return on Information: >> Google Enterprise Search pays you back >> Get the facts. >> http://p.sf.net/sfu/google-dev2dev >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > ------------------------------------------------------------------------------ > Return on Information: > Google Enterprise Search pays you back > Get the facts. > http://p.sf.net/sfu/google-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Fri Dec 11 12:38:06 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 11 Dec 2009 12:38:06 +0100 Subject: [Gambas-user] menu button events Q In-Reply-To: <200912110853.01306.rterry@...1946...> References: <200912110853.01306.rterry@...1946...> Message-ID: <200912111238.06211.gambas@...1...> > I've a menu button and want to be able to detect a right mouse click over > the text of the button. > > None of the events seem intereceptable in the usual way in code, and > creating an observor on the button and using stop events dosn't seem to > work either (gambas3 + qt4). > > Is there something special about this button? > Yes, it is actually a compound control including one button for the picture and another one for the little arrow. Why do you need to catch mouse events on this button? -- Beno?t Minisini From gambas at ...1... Fri Dec 11 12:49:20 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 11 Dec 2009 12:49:20 +0100 Subject: [Gambas-user] An Apology In-Reply-To: References: Message-ID: <200912111249.20635.gambas@...1...> > I have pissed off a few people. If there is anyone whom I have not > pissed off, I apologise. > Kadaitcha Man, Thanks for your apology. But you are going to stop throwing insults in your posts, otherwise you will be banned. There are about six hundred people on this mailing-list, I don't want them to be disturbed by only one. This is my first and last warning. -- Beno?t Minisini From norarg at ...2311... Fri Dec 11 13:18:20 2009 From: norarg at ...2311... (Norarg) Date: Fri, 11 Dec 2009 09:18:20 -0300 Subject: [Gambas-user] SVN In-Reply-To: <200912111249.20635.gambas@...1...> References: <200912111249.20635.gambas@...1...> Message-ID: Hi, I would like to try out newer releases of Gambas, fox. 3.0. I had some problems with other releases in the past - in the end gambas did not work at all. I have tried to figure it out, but did not found what I am looking for: does a SVN substitute a stable version, or do they "live" side by side? I assume, that a lot of lib's have to be changed. I ask this, because I don't want to mess up the system - again :) Meanwhile I am perfect in setting up Ubuntu from the ground... lol what a heavy part ... but my internet-connection is that slow, I need two days to download the newest lib's and changes from ubuntu after the ground installation. (And please don't tell me, get a faster internet-connection, one do not get it on the country-side of argentina). thanks in advance, regards norarg From wdahn at ...1000... Fri Dec 11 13:25:16 2009 From: wdahn at ...1000... (Werner) Date: Fri, 11 Dec 2009 20:25:16 +0800 Subject: [Gambas-user] Minimum Size of a Form In-Reply-To: <6324a42a0912110301k48c4daffm6d2295cf50fe1750@...627...> References: <4B21E5E8.1080906@...1000...> <6324a42a0912110219nc57e940hfaaad0a23b4636a6@...627...> <4B22208A.40402@...626...> <6324a42a0912110301k48c4daffm6d2295cf50fe1750@...627...> Message-ID: <4B223A2C.20408@...1000...> On 11/12/09 19:01, Fabien Bodard wrote: > ok Error from mine :) ... but for one part the min size is fixed at > the desing but only for windows with ToolBox option at true > > And in gambas3 with windows.type at Utility > Yes that works for me. Thanks! Werner From nospam.nospam.nospam at ...626... Fri Dec 11 13:26:33 2009 From: nospam.nospam.nospam at ...626... (Kadaitcha Man) Date: Fri, 11 Dec 2009 23:26:33 +1100 Subject: [Gambas-user] Minimum Size of a Form References: <4B21E5E8.1080906@...1000...><6324a42a0912110219nc57e940hfaaad0a23b4636a6@...627...><4B22208A.40402@...626...> <6324a42a0912110301k48c4daffm6d2295cf50fe1750@...627...> Message-ID: <2973BF1831264B86B10CB7C4934C1012@...2330...> Fabien Bodard wrote: > ok Error from mine :) ... but for one part the min size is fixed at > the desing but only for windows with ToolBox option at true Not true. The minimum size of any form shown as modal is the design-time size. From 12ukwn at ...626... Fri Dec 11 13:40:04 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Fri, 11 Dec 2009 13:40:04 +0100 Subject: [Gambas-user] SVN In-Reply-To: References: <200912111249.20635.gambas@...1...> Message-ID: <4B223DA4.4060108@...626...> Norarg a ?crit : PLS avoid cross-posting: open a new post by adressing to > I would like to try out newer releases of Gambas, fox. 3.0. I had some > problems with other releases in the past - in the end gambas did not > work at all. I have tried to figure it out, but did not found what I am > looking for: does a SVN substitute a stable version, or do they "live" > side by side? I assume, that a lot of lib's have to be changed. usually SVN is for development: gb2 SVN is bug fixing and adding new features, new stable versions comes from it when the developer decide it is good enough for release, gb3 SVN is pure dev and change almost every day. > I ask this, because I don't want to mess up the system - again :) > Meanwhile I am perfect in setting up Ubuntu from the ground... lol what > a heavy part ... but my internet-connection is that slow, I need two > days to download the newest lib's and changes from ubuntu after the well, if you're so slow forget about building gb: you'll need many dev libs, and the total isn't light weight (the only reason would be to test gb3, or because you absolutely need a gb2 fix or new feature.) > ground installation. (And please don't tell me, get a faster > internet-connection, one do not get it on the country-side of argentina). may be this could help you (depending on the budget you can&|want engage) http://www.tempestcom.com/services/satrbgan_plans.aspx > thanks in advance, Our friends from land where flying dragons comes from are very welcome :D JY -- Christianity has not been tried and found wanting; it has been found difficult and not tried. -- G. K. Chesterton From gambas.fr at ...626... Fri Dec 11 13:40:37 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 11 Dec 2009 13:40:37 +0100 Subject: [Gambas-user] Minimum Size of a Form In-Reply-To: <2973BF1831264B86B10CB7C4934C1012@...2330...> References: <4B21E5E8.1080906@...1000...> <6324a42a0912110219nc57e940hfaaad0a23b4636a6@...627...> <4B22208A.40402@...626...> <6324a42a0912110301k48c4daffm6d2295cf50fe1750@...627...> <2973BF1831264B86B10CB7C4934C1012@...2330...> Message-ID: <6324a42a0912110440gcc35c3bpb989cd2a3840664d@...627...> 2009/12/11 Kadaitcha Man : > Fabien Bodard wrote: > >> ok Error from mine :) ... but for one part the min size is fixed at >> the desing but only for windows with ToolBox option at true > > Not true. The minimum size of any form shown as modal is the design-time > size. yes > > ------------------------------------------------------------------------------ > Return on Information: > Google Enterprise Search pays you back > Get the facts. > http://p.sf.net/sfu/google-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From 12ukwn at ...626... Fri Dec 11 13:45:12 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Fri, 11 Dec 2009 13:45:12 +0100 Subject: [Gambas-user] Minimum Size of a Form In-Reply-To: <6324a42a0912110301k48c4daffm6d2295cf50fe1750@...627...> References: <4B21E5E8.1080906@...1000...> <6324a42a0912110219nc57e940hfaaad0a23b4636a6@...627...> <4B22208A.40402@...626...> <6324a42a0912110301k48c4daffm6d2295cf50fe1750@...627...> Message-ID: <4B223ED8.3050107@...626...> Fabien Bodard a ?crit : > ok Error from mine :) ... but for one part the min size is fixed at > the desing but only for windows with ToolBox option at true O_o: I checked Toolbox and my CPU climbed up to 100% (gbx2), starting the application but not showing anything!? -- Trouble always comes at the wrong time. From wdahn at ...1000... Fri Dec 11 13:15:34 2009 From: wdahn at ...1000... (Werner) Date: Fri, 11 Dec 2009 20:15:34 +0800 Subject: [Gambas-user] Minimum Size of a Form / for Kadaitcha Man In-Reply-To: References: Message-ID: <4B2237E6.9040309@...1000...> On 11/12/09 18:27, Emil Tchekov wrote: > Dear friend, > > can you please stop with this behaviour? > > I will be very thankfull and appreciating your good manners. > > Thank you very much in advance > > sincerely > > Emil > > I googled him up and could not find any constructive comments made by him anywhere. He is now in my killfile. Regards, Werner From alerinaldi at ...2334... Fri Dec 11 14:26:42 2009 From: alerinaldi at ...2334... (Alessandro Rinaldi) Date: Fri, 11 Dec 2009 14:26:42 +0100 Subject: [Gambas-user] Minimum Size of a Form / for Kadaitcha Man In-Reply-To: <4B2237E6.9040309@...1000...> References: <4B2237E6.9040309@...1000...> Message-ID: <57de1d080912110526j6a52b7f1w452f2c92b5e27dc9@...627...> http://www.mombu.com/medicine/psychology/t-trolls-the-kadaitcha-man-1061830.html I see :) From norarg at ...2311... Fri Dec 11 14:49:15 2009 From: norarg at ...2311... (Norarg) Date: Fri, 11 Dec 2009 10:49:15 -0300 Subject: [Gambas-user] SVN In-Reply-To: <4B223DA4.4060108@...626...> References: <200912111249.20635.gambas@...1...> <4B223DA4.4060108@...626...> Message-ID: Jean-Yves F. Barbier schrieb: > Norarg a ?crit : > > PLS avoid cross-posting: open a new post by adressing to > > > >> I would like to try out newer releases of Gambas, fox. 3.0. I had some >> problems with other releases in the past - in the end gambas did not >> work at all. I have tried to figure it out, but did not found what I am >> looking for: does a SVN substitute a stable version, or do they "live" >> side by side? I assume, that a lot of lib's have to be changed. >> > > usually SVN is for development: > gb2 SVN is bug fixing and adding new features, new stable versions comes > from it when the developer decide it is good enough for release, > gb3 SVN is pure dev and change almost every day. > > >> I ask this, because I don't want to mess up the system - again :) >> Meanwhile I am perfect in setting up Ubuntu from the ground... lol what >> a heavy part ... but my internet-connection is that slow, I need two >> days to download the newest lib's and changes from ubuntu after the >> > > well, if you're so slow forget about building gb: you'll need many dev > libs, and the total isn't light weight (the only reason would be to test > gb3, or because you absolutely need a gb2 fix or new feature.) > > >> ground installation. (And please don't tell me, get a faster >> internet-connection, one do not get it on the country-side of argentina). >> > > may be this could help you (depending on the budget you can&|want engage) > http://www.tempestcom.com/services/satrbgan_plans.aspx > > >> thanks in advance, >> > > Our friends from land where flying dragons comes from are very welcome :D > > JY > First of all, thanks, that is helpful. In fact I am Norwegian, but live here for about a year now - I'll never go back to Europe to live there - here everything is set back 30-40 years (country-side, not Buenos Aires), and I just love the easy way of living after 30 years with IT-stress in Middle-Europe. And learn some Spanish on the way :) Now I have time to program what I want, not to make compromises because of lack of time. I figure, I will use another year to make my apps, some free, some commercial. Gambas is a perfect front-end for MySQL, the speed is amazing, processing tables as fast as if they were local variables in VB. I experimented a little with Netbeans, but gave up - that is another world; too complicated for my needs. Starting with Linux I still had the thought of making software for more platforms; meanwhile I just don't want to see Windows anymore - ignore it as none-existent :) I looked at the link you sent me - well - it really exceeds my budget a little, because the price of a MB is pretty high; 5,25 $ for one MB, if I got it right. I have 128kbs here (was used to 16mbits in Europe), can double it (if I am able to catch the guy installing this, his nickname is Lento (Slow)). Somehow one learn patience living in Argentina.... Regards, norarg From gambas.fr at ...626... Fri Dec 11 15:37:15 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 11 Dec 2009 15:37:15 +0100 Subject: [Gambas-user] Minimum Size of a Form In-Reply-To: <4B223ED8.3050107@...626...> References: <4B21E5E8.1080906@...1000...> <6324a42a0912110219nc57e940hfaaad0a23b4636a6@...627...> <4B22208A.40402@...626...> <6324a42a0912110301k48c4daffm6d2295cf50fe1750@...627...> <4B223ED8.3050107@...626...> Message-ID: <6324a42a0912110637s545a7dbbm815c6e94f7801a3d@...627...> 2009/12/11 Jean-Yves F. Barbier <12ukwn at ...626...>: > Fabien Bodard a ?crit : >> ok Error from mine :) ... but for one part the min size is fixed at >> the desing but only for windows with ToolBox option at true > > O_o: I checked Toolbox and my CPU climbed up to 100% (gbx2), starting > the application but not showing anything!? same for me .... ubuntu have some problem with qt3 gb v2.13 > -- > Trouble always comes at the wrong time. > > ------------------------------------------------------------------------------ > Return on Information: > Google Enterprise Search pays you back > Get the facts. > http://p.sf.net/sfu/google-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From 12ukwn at ...626... Fri Dec 11 15:39:17 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Fri, 11 Dec 2009 15:39:17 +0100 Subject: [Gambas-user] SVN In-Reply-To: References: <200912111249.20635.gambas@...1...> <4B223DA4.4060108@...626...> Message-ID: <4B225995.6080406@...626...> Norarg a ?crit : ... > First of all, thanks, that is helpful. > > In fact I am Norwegian, but live here for about a year now - I'll never Hey, welcome to our friends from the land of horny smoked salmons! > go back to Europe to live there - here everything is set back 30-40 > years (country-side, not Buenos Aires), and I just love the easy way of > living after 30 years with IT-stress in Middle-Europe. And learn some > Spanish on the way :) Now I have time to program what I want, not to I understand what you mean: I don't like town nor its turmoil either. > make compromises because of lack of time. I figure, I will use another > year to make my apps, some free, some commercial. Gambas is a perfect > front-end for MySQL, the speed is amazing, processing tables as fast as > if they were local variables in VB. I experimented a little with > Netbeans, but gave up - that is another world; too complicated for my > needs. Starting with Linux I still had the thought of making software > for more platforms; meanwhile I just don't want to see Windows anymore - > ignore it as none-existent :) Well, gb is a good choice and you can also use it from other platforms with something like FreeNX: there are clients for w$ & apple. (This is a kind of TSR: the server's doing all the work and you've got the windows onto your regular desktop transparently, with debit as low as ~30KB/sec (peak and 1st shot before caching!)) You also have Python that is multi-platforms but desesperatly lacks a real good RAD (and it is also slower than gb.) > I looked at the link you sent me - well - it really exceeds my budget a > little, because the price of a MB is pretty high; 5,25 $ for one MB, if > I got it right. I have 128kbs here (was used to 16mbits in Europe), can > double it (if I am able to catch the guy installing this, his nickname > is Lento (Slow)). Somehow one learn patience living in Argentina.... Yeah, sorry I missed the unit: MB (thought it was GB:( Sat prices are ~?90 for 512kbps in france, so I guess you won't find no more than 128kbps for the same price in Argentina. ubuntu is a good choice as it is Debian based (unlike rh you just install what you want :) but avoid unstable branch, as you'll need several MB to upgrade per day. JY -- Psychoanalysis?? I thought this was a nude rap session!!! From norarg at ...2311... Fri Dec 11 16:25:45 2009 From: norarg at ...2311... (Norarg) Date: Fri, 11 Dec 2009 12:25:45 -0300 Subject: [Gambas-user] SVN In-Reply-To: <4B225995.6080406@...626...> References: <200912111249.20635.gambas@...1...> <4B223DA4.4060108@...626...> <4B225995.6080406@...626...> Message-ID: thanks again, get some worthy informations here :) btw. prices are not really the problem here, I pay 70 pesos=12? monthly, the availability is: because of the size of ARG they have very little of cables, everything is wireless. In the village where I live, they have two internet-providers - one of them has a "backbone" with 3 MBs - for about 300 users, so you get crazy trying to download something. This is near the river Parana, which is infamous for its storms (ask a sailor passing La Plata by Montevideo) - and those are periodical taking down the antennas, if the lightning does not do the work, the powersupply is down - just a little adventure living here. People are very friendly and as civilized as in Europe. And the climate is a hit. Enough :) I'll go on with Gambas, looking for how to print, reporting, XML, PDF and so on. Regards norarg Jean-Yves F. Barbier schrieb: > Norarg a ?crit : > ... > >> First of all, thanks, that is helpful. >> >> In fact I am Norwegian, but live here for about a year now - I'll never >> > > Hey, welcome to our friends from the land of horny smoked salmons! > > >> go back to Europe to live there - here everything is set back 30-40 >> years (country-side, not Buenos Aires), and I just love the easy way of >> living after 30 years with IT-stress in Middle-Europe. And learn some >> Spanish on the way :) Now I have time to program what I want, not to >> > > I understand what you mean: I don't like town nor its turmoil either. > > >> make compromises because of lack of time. I figure, I will use another >> year to make my apps, some free, some commercial. Gambas is a perfect >> front-end for MySQL, the speed is amazing, processing tables as fast as >> if they were local variables in VB. I experimented a little with >> Netbeans, but gave up - that is another world; too complicated for my >> needs. Starting with Linux I still had the thought of making software >> for more platforms; meanwhile I just don't want to see Windows anymore - >> ignore it as none-existent :) >> > > Well, gb is a good choice and you can also use it from other platforms > with something like FreeNX: there are clients for w$ & apple. > (This is a kind of TSR: the server's doing all the work and you've got > the windows onto your regular desktop transparently, with debit as low > as ~30KB/sec (peak and 1st shot before caching!)) > > You also have Python that is multi-platforms but desesperatly lacks a > real good RAD (and it is also slower than gb.) > > >> I looked at the link you sent me - well - it really exceeds my budget a >> little, because the price of a MB is pretty high; 5,25 $ for one MB, if >> I got it right. I have 128kbs here (was used to 16mbits in Europe), can >> double it (if I am able to catch the guy installing this, his nickname >> is Lento (Slow)). Somehow one learn patience living in Argentina.... >> > > Yeah, sorry I missed the unit: MB (thought it was GB:( > Sat prices are ~?90 for 512kbps in france, so I guess you won't find > no more than 128kbps for the same price in Argentina. > > ubuntu is a good choice as it is Debian based (unlike rh you just install > what you want :) > but avoid unstable branch, as you'll need several MB to upgrade per day. > > JY > From les at ...2337... Fri Dec 11 09:31:11 2009 From: les at ...2337... (Les Hardy) Date: Fri, 11 Dec 2009 08:31:11 +0000 Subject: [Gambas-user] Really dumb question about dialog forms In-Reply-To: <200912111805.25880.rterry@...1946...> References: <200912111518.43150.rterry@...1946...> <200912111805.25880.rterry@...1946...> Message-ID: <4B22034F.8040405@...2337...> richard terry wrote: > On Friday 11 December 2009 17:22:54 you wrote: >> 2009/12/11 richard terry : >>> Hi List, >>> >>> My really stupid question for the week. >> I'm sorry. You've already done that three times this week. >> >>> If I had a textbox on the form and wanted to return its contents, what >>> would be the change in syntax required? >> None whatsoever. >> >> Create a public variable in a common module. Set the variable from >> within your modal form and read it from somewhere else, such as the >> code that called the form, for example. >> >>> Thanks in anticipation. >> I'll send you the bill. >> > I've already done that and its the method I use, so no $ accrue to you, > however I wondered if there was way of returning it via the modal form. Forgive my stupidity, but I must be missing something here. I don't understand the problem. My understanding is that when form controls are set public, you just access the contents of any form from the form you are in. Modal or not. Or have I been doing it wrong? From arosa at ...2015... Fri Dec 11 18:14:16 2009 From: arosa at ...2015... (Toni) Date: Fri, 11 Dec 2009 18:14:16 +0100 Subject: [Gambas-user] Timer Message-ID: <4B227DE8.7010705@...2015...> Hi, I've an application that has a timer that should get fired every 1 second. Sometimes when the application is running and my desktop is under heavy load the timer doesn't get fired in time. Despite this, my expectation was that gambas would queue all this "Timer" events and they would get executed as soon as it got enough free CPU time. Opposed to that, gambas just discards them... i.e. If my system isn't responsive for 5 seconds, after this time I won't get the Timer() method called 5 times for each second where it should have been called. Is there a way to get the timer control working in a way that it queues the due events, and they get executed even if it is later on? Thanks, Toni P.S: Using Gambas 2.18, Ubuntu 8.10 64bits From gambas at ...1... Fri Dec 11 18:22:50 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 11 Dec 2009 18:22:50 +0100 Subject: [Gambas-user] Timer In-Reply-To: <4B227DE8.7010705@...2015...> References: <4B227DE8.7010705@...2015...> Message-ID: <200912111822.50056.gambas@...1...> > Hi, > I've an application that has a timer that should get fired every 1 > second. Sometimes when the application is running and my desktop is > under heavy load the timer doesn't get fired in time. Despite this, my > expectation was that gambas would queue all this "Timer" events and they > would get executed as soon as it got enough free CPU time. > Opposed to that, gambas just discards them... i.e. If my system isn't > responsive for 5 seconds, after this time I won't get the Timer() method > called 5 times for each second where it should have been called. > > Is there a way to get the timer control working in a way that it queues > the due events, and they get executed even if it is later on? > Thanks, > Toni > > P.S: Using Gambas 2.18, Ubuntu 8.10 64bits > No, sorry: you must do it yourself. Regards, -- Beno?t Minisini From nospam.nospam.nospam at ...626... Sat Dec 12 00:13:34 2009 From: nospam.nospam.nospam at ...626... (Kadaitcha Man) Date: Sat, 12 Dec 2009 10:13:34 +1100 Subject: [Gambas-user] Really dumb question about dialog forms In-Reply-To: <6324a42a0912110108x4d5bece4w5605f1cc43f24a7@...627...> References: <200912111518.43150.rterry@...1946...> <4B2203F1.1000909@...1909...> <6324a42a0912110108x4d5bece4w5605f1cc43f24a7@...627...> Message-ID: 2009/12/11 Fabien Bodard : > Static Public sValue as string > > Public Sub Run () As Boolean I knew there was a reason not to use your method and to make the recommendation I did. If you tested that code then I presume you did it in gb3 and not gb2. Gambas 2 either crashes out with a SIG 11, or in some unfathomable instances, when the form is closed, it drops into debug and complains about the pending destruction of a public static variable. Furthermore if the form is instantiated in a variable of type Form then you cannot access the public static by referencing the variable as a property in the instanced form type variable; the only way to get to the value of the public static is directly from the class itself, like this: DIM ff AS NEW Form1 IF NOT ff.Run() THEN PRINT Form1.sValue ENDIF In short, Fabien, as far as I can tell, the only way to make it work correctly in gb2 is to do it the way I originally said to do it. Of course I'm open to being shown to be wrong. From rterry at ...1946... Sat Dec 12 04:46:54 2009 From: rterry at ...1946... (richard terry) Date: Sat, 12 Dec 2009 14:46:54 +1100 Subject: [Gambas-user] menu button events Q In-Reply-To: <200912111238.06211.gambas@...1...> References: <200912110853.01306.rterry@...1946...> <200912111238.06211.gambas@...1...> Message-ID: <200912121446.54336.rterry@...1946...> On Friday 11 December 2009 22:38:06 you wrote: > > I've a menu button and want to be able to detect a right mouse click over > > the text of the button. > > > > None of the events seem intereceptable in the usual way in code, and > > creating an observor on the button and using stop events dosn't seem to > > work either (gambas3 + qt4). > > > > Is there something special about this button? > > Yes, it is actually a compound control including one button for the picture > and another one for the little arrow. > > Why do you need to catch mouse events on this button? > Hi Benoit, I've just been extending the utility of the webview example for myprogram - several , 1 to directly access cdc travel medicine just by typing a country name into the txtURL, to include a google textbox, and to allow user to create bookmark folders on a toolbar under the txtURL I wanted to exactly emulate what firefox does, which is allow the user to rightmouse click on the folder > menu, as well as allowing click on the folder > drop down menu. Anyhow, I've found a way around it using an observor, so if/when I get it working properly I'll send you the code to see if you want to include it in the demo. Regarding keeping bookmarks, is there an accepted place to put them?, or just a settings file? Also, any timeline on the print from webview? Regards richard Regards richard From gambas.fr at ...626... Sat Dec 12 08:00:19 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 12 Dec 2009 08:00:19 +0100 Subject: [Gambas-user] Really dumb question about dialog forms In-Reply-To: References: <200912111518.43150.rterry@...1946...> <4B2203F1.1000909@...1909...> <6324a42a0912110108x4d5bece4w5605f1cc43f24a7@...627...> Message-ID: <6324a42a0912112300u6d1df2afl9b2e6b7eb0cbc808@...627...> 2009/12/12 Kadaitcha Man : > 2009/12/11 Fabien Bodard : > >> Static Public sValue as string >> >> Public Sub Run () As Boolean > > I knew there was a reason not to use your method and to make the > recommendation I did. > > If you tested that code then I presume you did it in gb3 and not gb2. > > Gambas 2 either crashes out with a SIG 11, or in some unfathomable > instances, when the form is closed, it drops into debug and complains > about the pending destruction of a public static variable. Furthermore > if the form is instantiated in a variable of type Form then you cannot > access the public static by referencing the variable as a property in > the instanced form type variable; ?the only way to get to the value of > the public static is directly from the class itself, like this: > > ?DIM ff AS NEW Form1 > > ?IF NOT ff.Run() THEN > > ? ?PRINT Form1.sValue > > ?ENDIF > > In short, Fabien, as far as I can tell, the only way to make it work > correctly in gb2 is to do it the way I originally said to do it. Of > course I'm open to being shown to be wrong. in fact you are right in the vb way ... but not it OO way... And gambas is more in the OO one and since the begining. For the return problem ... there is not problem as the run procedure can return the value. You can use a public variable in a module too Private sValue as string STATIC Publc Run() as string if not me.showmodal then return return sValue END dim s as string s = fForm.Run if s then print s > > ------------------------------------------------------------------------------ > Return on Information: > Google Enterprise Search pays you back > Get the facts. > http://p.sf.net/sfu/google-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From nospam.nospam.nospam at ...626... Sat Dec 12 08:22:33 2009 From: nospam.nospam.nospam at ...626... (Kadaitcha Man) Date: Sat, 12 Dec 2009 18:22:33 +1100 Subject: [Gambas-user] Really dumb question about dialog forms In-Reply-To: <6324a42a0912112300u6d1df2afl9b2e6b7eb0cbc808@...627...> References: <200912111518.43150.rterry@...1946...> <4B2203F1.1000909@...1909...> <6324a42a0912110108x4d5bece4w5605f1cc43f24a7@...627...> <6324a42a0912112300u6d1df2afl9b2e6b7eb0cbc808@...627...> Message-ID: 2009/12/12 Fabien Bodard : > 2009/12/12 Kadaitcha Man : >> In short, Fabien, as far as I can tell, the only way to make it work >> correctly in gb2 is to do it the way I originally said to do it. Of >> course I'm open to being shown to be wrong. > > in fact you are right in the vb way ... but not it OO way... It looks broken to me, but that's just my opinion. > You can use a public variable in a module too That was essentially what I indicated he should do. From rolf.frogs at ...221... Sat Dec 12 12:49:54 2009 From: rolf.frogs at ...221... (Rolf Schmidt) Date: Sat, 12 Dec 2009 12:49:54 +0100 Subject: [Gambas-user] menu button events Q In-Reply-To: <200912121446.54336.rterry@...1946...> References: <200912110853.01306.rterry@...1946...> <200912111238.06211.gambas@...1...> <200912121446.54336.rterry@...1946...> Message-ID: <200912121249.54980.rolf.frogs@...221...> Hello Richard > Regarding keeping bookmarks, is there an accepted place to put them?, or > just a settings file? There are a lot of possibilities: 1. A file in the home directory - perhaps as xml-file 2. In a sqlite database as firefox do it, also as a file in the home directory 3. In a LDAP database, so it could be reached from different places HTH Rolf From norarg at ...2311... Sat Dec 12 16:09:40 2009 From: norarg at ...2311... (Norarg) Date: Sat, 12 Dec 2009 12:09:40 -0300 Subject: [Gambas-user] LEN() Message-ID: hi, I get a bit strange results from the LEN()-function. If there are characters like the German Umlaute in the string (???????), the result just does not fit. It seems to me, that LEN("?") gives back 2 instead of 1, is this possible? I fill up a string with spaces for a more (or less) formatted simple text-file, the columns separated with "|". Using Tabs (chr(9)) gives me more work, and it would not solve this problem, because I still would have to ask for the string-lenght. Any ideas? Thanks in advance regards norarg From simonart.dominique at ...11... Sat Dec 12 17:20:23 2009 From: simonart.dominique at ...11... (Simonart Dominique) Date: Sat, 12 Dec 2009 17:20:23 +0100 Subject: [Gambas-user] LEN() In-Reply-To: References: Message-ID: <4B23C2C7.8060003@...11...> Hi, Len() function is based on one-byte character, but some characters need 2 bytes code, like the german's you mentionned. Use the String class methods and all will works as you expected HTH Dominique Simonart Norarg a ?crit : > hi, > > I get a bit strange results from the LEN()-function. > If there are characters like the German Umlaute in the string (???????), > the result just does not fit. It seems to me, that LEN("?") gives back 2 > instead of 1, > is this possible? > > I fill up a string with spaces for a more (or less) formatted simple > text-file, > the columns separated with "|". > > Using Tabs (chr(9)) gives me more work, and it would not solve this > problem, because I still would have to ask for the string-lenght. > > Any ideas? > > Thanks in advance > regards > norarg > > ------------------------------------------------------------------------------ > Return on Information: > Google Enterprise Search pays you back > Get the facts. > http://p.sf.net/sfu/google-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From norarg at ...2311... Sat Dec 12 17:21:00 2009 From: norarg at ...2311... (Norarg) Date: Sat, 12 Dec 2009 13:21:00 -0300 Subject: [Gambas-user] Workaround for LEN() Message-ID: don't get any mails today, it seems. I solved the LEN()-problem with a not very pretty function. ' Workaround LEN()-Function PUBLIC FUNCTION SetLenght(txt AS String, leng AS Integer) AS String DIM L AS Integer DIM T1 AS String DIM T2 AS String T1 = "" L = 0 DO WHILE L < leng L = L + 1 TRY T2 = String.Mid(txt, L, 1) ' hmmm does not get error here IF ERROR THEN T1 = T1 & " " ELSE ' Workaraound because of no error ' (does the pointer exceeds the string-length, or is the lenght set to max. by default?) IF T2 = "" THEN T1 = T1 & " " ELSE T1 = T1 & T2 ENDIF LOOP RETURN T1 END Still it would be nice to hear from someone about this, I do not find this solution good. I assume it has something to do with the characterset, but I can not really figure it out. regards norarg From norarg at ...2311... Sat Dec 12 17:59:29 2009 From: norarg at ...2311... (Norarg) Date: Sat, 12 Dec 2009 13:59:29 -0300 Subject: [Gambas-user] LEN() In-Reply-To: <4B23C2C7.8060003@...11...> References: <4B23C2C7.8060003@...11...> Message-ID: Simonart Dominique schrieb: > Hi, > > Len() function is based on one-byte character, but some > characters need 2 bytes code, like the german's you mentionned. > > Use the String class methods and all will works as you expected > > HTH > Dominique Simonart > > Norarg a ?crit : > >> hi, >> >> I get a bit strange results from the LEN()-function. >> If there are characters like the German Umlaute in the string (???????), >> the result just does not fit. It seems to me, that LEN("?") gives back 2 >> instead of 1, >> is this possible? >> >> I fill up a string with spaces for a more (or less) formatted simple >> text-file, >> the columns separated with "|". >> >> Using Tabs (chr(9)) gives me more work, and it would not solve this >> problem, because I still would have to ask for the string-lenght. >> >> Any ideas? >> >> Thanks in advance >> regards >> norarg >> >> ------------------------------------------------------------------------------ >> Return on Information: >> Google Enterprise Search pays you back >> Get the facts. >> http://p.sf.net/sfu/google-dev2dev >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> > > > ------------------------------------------------------------------------------ > Return on Information: > Google Enterprise Search pays you back > Get the facts. > http://p.sf.net/sfu/google-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > Thanks, I will give it a try :) From bbruen at ...2308... Sat Dec 12 22:16:12 2009 From: bbruen at ...2308... (bbb888) Date: Sat, 12 Dec 2009 13:16:12 -0800 (PST) Subject: [Gambas-user] Event handler in descendent class Message-ID: <26761203.post@...1379...> Is there a way for a specialised class to have an event handler for an event raised in the base class? Specifically in this case I have a scaffolding class "workCodeTableItem" that inherits "CodeTableItem", adds a few scaffold attributes and I have now found that one of these attributes needs to be set in response to an event that is raised at quite a few places in the base class. tia Bruce -- View this message in context: http://old.nabble.com/Event-handler-in-descendent-class-tp26761203p26761203.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Sun Dec 13 01:35:46 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 13 Dec 2009 01:35:46 +0100 Subject: [Gambas-user] Event handler in descendent class In-Reply-To: <26761203.post@...1379...> References: <26761203.post@...1379...> Message-ID: <200912130135.47003.gambas@...1...> > Is there a way for a specialised class to have an event handler for an > event raised in the base class? > > Specifically in this case I have a scaffolding class "workCodeTableItem" > that inherits "CodeTableItem", adds a few scaffold attributes and I have > now found that one of these attributes needs to be set in response to an > event that is raised at quite a few places in the base class. > > tia > Bruce > You must use an Observer, that allows you to intercept any event raised by any object. Nota bene: events are not raise by a class, but by an object. But I think you just said "class" as a shortcut for "object of the class". So look at the Observer class documentation, and tell me if you have any question. Regards, -- Beno?t Minisini From bbruen at ...2308... Sun Dec 13 02:21:11 2009 From: bbruen at ...2308... (bbb888) Date: Sat, 12 Dec 2009 17:21:11 -0800 (PST) Subject: [Gambas-user] Event handler in descendent class In-Reply-To: <200912130135.47003.gambas@...1...> References: <26761203.post@...1379...> <200912130135.47003.gambas@...1...> Message-ID: <26762748.post@...1379...> Beno?t Minisini wrote: > >> Is there a way for a specialised class to have an event handler for an >> event raised in the base class? >> >> Specifically in this case I have a scaffolding class "workCodeTableItem" >> that inherits "CodeTableItem", adds a few scaffold attributes and I have >> now found that one of these attributes needs to be set in response to an >> event that is raised at quite a few places in the base class. >> >> tia >> Bruce >> > > You must use an Observer, that allows you to intercept any event raised by > any > object. > > Nota bene: events are not raise by a class, but by an object. But I think > you > just said "class" as a shortcut for "object of the class". > > So look at the Observer class documentation, and tell me if you have any > question. > > Regards, > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Return on Information: > Google Enterprise Search pays you back > Get the facts. > http://p.sf.net/sfu/google-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > Thanks Beno?t, Pretty simple really. bruce -- View this message in context: http://old.nabble.com/Event-handler-in-descendent-class-tp26761203p26762748.html Sent from the gambas-user mailing list archive at Nabble.com. From nospam.nospam.nospam at ...626... Sun Dec 13 03:17:02 2009 From: nospam.nospam.nospam at ...626... (Kadaitcha Man) Date: Sun, 13 Dec 2009 13:17:02 +1100 Subject: [Gambas-user] Workaround for LEN() In-Reply-To: References: Message-ID: 2009/12/13 Norarg : > Still it would be nice to hear from someone about this, I do not find > this solution good. I assume it has something to do with the characterset, but I can > not really figure it out. Simonart Dominique: "Use the String class methods and all will works as you expected." http://gambasdoc.org/help/def/utf8 String.LEN() From nospam.nospam.nospam at ...626... Sun Dec 13 04:56:06 2009 From: nospam.nospam.nospam at ...626... (Kadaitcha Man) Date: Sun, 13 Dec 2009 14:56:06 +1100 Subject: [Gambas-user] gb3: Call trace in debug Message-ID: I've seen it somewhere, but can I find it in gb3? Nooooooooooo. Is there a call trace window when debugging in gb3? If there is, how do I display it? I'm trying to debug some events and can't tell where a call to a routine is originating from. From gambas.fr at ...626... Sun Dec 13 09:36:29 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 13 Dec 2009 09:36:29 +0100 Subject: [Gambas-user] gb3: Call trace in debug In-Reply-To: References: Message-ID: <6324a42a0912130036g1cabcea0x3a84428bc24c9a8@...627...> Ok i've found the problem, so ... i've corrected it in the last svn commit but for you just do that : open the file at : ~/.config/gambas3/gambas3.conf find the line : [FDebugInfo] replace the value by : splDebug=[502,122] then save the file open IDE and try to do a step by step debug ... you will see the stack backtrace list. Fabien 2009/12/13 Kadaitcha Man : > I've seen it somewhere, but can I find it in gb3? Nooooooooooo. > > Is there a call trace window when debugging in gb3? If there is, how > do I display it? there is a stack : > I'm trying to debug some events and can't tell where a call to a > routine is originating from. > > ------------------------------------------------------------------------------ > Return on Information: > Google Enterprise Search pays you back > Get the facts. > http://p.sf.net/sfu/google-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Sun Dec 13 09:37:21 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 13 Dec 2009 09:37:21 +0100 Subject: [Gambas-user] gb3: Call trace in debug In-Reply-To: <6324a42a0912130036g1cabcea0x3a84428bc24c9a8@...627...> References: <6324a42a0912130036g1cabcea0x3a84428bc24c9a8@...627...> Message-ID: <6324a42a0912130037n2a14c60dtb5d3a30f4c9edd4e@...627...> 2009/12/13 Fabien Bodard : > Ok i've found the problem, so ... > > i've corrected it in the last svn commit but for you just do that : > > open the file at : > > ~/.config/gambas3/gambas3.conf > > find the line : [FDebugInfo] > > replace the value by : splDebug=[502,122] > > > then save the file > > open IDE and try to do a step by step debug ... you will see the stack (F8) > backtrace list. > > Fabien > > 2009/12/13 Kadaitcha Man : >> I've seen it somewhere, but can I find it in gb3? Nooooooooooo. >> >> Is there a call trace window when debugging in gb3? If there is, how >> do I display it? > there is a stack : > > > > >> I'm trying to debug some events and can't tell where a call to a >> routine is originating from. >> >> ------------------------------------------------------------------------------ >> Return on Information: >> Google Enterprise Search pays you back >> Get the facts. >> http://p.sf.net/sfu/google-dev2dev >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > From nospam.nospam.nospam at ...626... Sun Dec 13 09:52:09 2009 From: nospam.nospam.nospam at ...626... (Kadaitcha Man) Date: Sun, 13 Dec 2009 19:52:09 +1100 Subject: [Gambas-user] gb3: Call trace in debug In-Reply-To: <6324a42a0912130036g1cabcea0x3a84428bc24c9a8@...627...> References: <6324a42a0912130036g1cabcea0x3a84428bc24c9a8@...627...> Message-ID: 2009/12/13 Fabien Bodard : > Ok i've found the problem :) > but for you :) > open the file at : > > ~/.config/gambas3/gambas3.conf > > find the line : [FDebugInfo] > > replace the value by : splDebug=[502,122] > > > then save the file > > open IDE and try to do a step by step debug ... you will see the stack > backtrace list. Nope. From nospam.nospam.nospam at ...626... Sun Dec 13 09:53:52 2009 From: nospam.nospam.nospam at ...626... (Kadaitcha Man) Date: Sun, 13 Dec 2009 19:53:52 +1100 Subject: [Gambas-user] gb3: Call trace in debug In-Reply-To: <6324a42a0912130037n2a14c60dtb5d3a30f4c9edd4e@...627...> References: <6324a42a0912130036g1cabcea0x3a84428bc24c9a8@...627...> <6324a42a0912130037n2a14c60dtb5d3a30f4c9edd4e@...627...> Message-ID: 2009/12/13 Fabien Bodard : > open IDE and try to do a step by step debug ... you will see the stack > (F8) Nope. I'll pull the latest svn and recompile. From nospam.nospam.nospam at ...626... Sun Dec 13 10:14:47 2009 From: nospam.nospam.nospam at ...626... (Kadaitcha Man) Date: Sun, 13 Dec 2009 20:14:47 +1100 Subject: [Gambas-user] gb3: Call trace in debug In-Reply-To: References: <6324a42a0912130036g1cabcea0x3a84428bc24c9a8@...627...> <6324a42a0912130037n2a14c60dtb5d3a30f4c9edd4e@...627...> Message-ID: 2009/12/13 Kadaitcha Man : > 2009/12/13 Fabien Bodard : > >> open IDE and try to do a step by step debug ... you will see the stack >> (F8) > > Nope. > > I'll pull the latest svn and recompile. Ok, rev 2490 now reconfiguring. I still have recompile, so in the meantime: I'm sunburnt as all buggery from the charity motorbike ride today. This is my beast: http://www.totalmotorcycle.com/photos/2007models/2007-Honda-VT1100C2ShadowSabrea.jpg Not that you care, but I find it does help pass the time L) From gambas.fr at ...626... Sun Dec 13 10:15:18 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 13 Dec 2009 10:15:18 +0100 Subject: [Gambas-user] gb3: Call trace in debug In-Reply-To: <6324a42a0912130058l54f643cq9d068ededfa46876@...627...> References: <6324a42a0912130036g1cabcea0x3a84428bc24c9a8@...627...> <6324a42a0912130037n2a14c60dtb5d3a30f4c9edd4e@...627...> <6324a42a0912130058l54f643cq9d068ededfa46876@...627...> Message-ID: <6324a42a0912130115n79f40836u642730055140b2d2@...627...> but it will be not sufficient you need to reduce now the stack that take all the slide... there is a setting bug with the splitter controle... i need to investigate more... The good news is when you have corrected the size, it is well saved in the conf file. 2009/12/13 Fabien Bodard : > 2009/12/13 Kadaitcha Man : >> 2009/12/13 Fabien Bodard : >> >>> open IDE and try to do a step by step debug ... you will see the stack >>> (F8) >> >> Nope. >> >> I'll pull the latest svn and recompile. > and delete the config file too ! > >> >> ------------------------------------------------------------------------------ >> Return on Information: >> Google Enterprise Search pays you back >> Get the facts. >> http://p.sf.net/sfu/google-dev2dev >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > From nospam.nospam.nospam at ...626... Sun Dec 13 10:25:14 2009 From: nospam.nospam.nospam at ...626... (Kadaitcha Man) Date: Sun, 13 Dec 2009 20:25:14 +1100 Subject: [Gambas-user] gb3: Call trace in debug In-Reply-To: <6324a42a0912130115n79f40836u642730055140b2d2@...627...> References: <6324a42a0912130036g1cabcea0x3a84428bc24c9a8@...627...> <6324a42a0912130037n2a14c60dtb5d3a30f4c9edd4e@...627...> <6324a42a0912130058l54f643cq9d068ededfa46876@...627...> <6324a42a0912130115n79f40836u642730055140b2d2@...627...> Message-ID: 2009/12/13 Fabien Bodard : > but it will be not sufficient you need to reduce now the stack that > take all the slide... there is a setting bug with the splitter > controle... i need to investigate more... Ok. Happy to help. > The good news is when you have corrected the size, it is well saved in > the conf file. Yes, well, all I have to do is find the window so I can resize it, hey. >> I'll pull the latest svn and recompile. > and delete the config file too ! Yes, I figured that :) Now, see? Us windows lusers can adapt :) I haven't reached sudo make install yet. Gawd, I'll be happy when my 4-CPU, 16GB RAM, dual 3TB RAID5 machine is back from the workshop. Damned thing has gone through 3 motherboards in as many months. A recompile is, and miss it. From nospam.nospam.nospam at ...626... Sun Dec 13 10:31:15 2009 From: nospam.nospam.nospam at ...626... (Kadaitcha Man) Date: Sun, 13 Dec 2009 20:31:15 +1100 Subject: [Gambas-user] gb3: Call trace in debug In-Reply-To: <6324a42a0912130115n79f40836u642730055140b2d2@...627...> References: <6324a42a0912130036g1cabcea0x3a84428bc24c9a8@...627...> <6324a42a0912130037n2a14c60dtb5d3a30f4c9edd4e@...627...> <6324a42a0912130058l54f643cq9d068ededfa46876@...627...> <6324a42a0912130115n79f40836u642730055140b2d2@...627...> Message-ID: 2009/12/13 Fabien Bodard : > The good news is The good news is it worked, and I didn't bother deleting the config :) Thank you, your help really is very much appreciated. From gambas.fr at ...626... Sun Dec 13 10:48:47 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 13 Dec 2009 10:48:47 +0100 Subject: [Gambas-user] gb3: Call trace in debug In-Reply-To: References: <6324a42a0912130036g1cabcea0x3a84428bc24c9a8@...627...> <6324a42a0912130037n2a14c60dtb5d3a30f4c9edd4e@...627...> <6324a42a0912130058l54f643cq9d068ededfa46876@...627...> <6324a42a0912130115n79f40836u642730055140b2d2@...627...> Message-ID: <6324a42a0912130148p4adebc8dpecb37de7a6fdacfd@...627...> 2009/12/13 Kadaitcha Man : > 2009/12/13 Fabien Bodard : > >> The good news is > > The good news is it worked, and I didn't bother deleting the config :) no so good if you close the ide ... you have to resize a new time ... arf > Thank you, your help really is very much appreciated. > > ------------------------------------------------------------------------------ > Return on Information: > Google Enterprise Search pays you back > Get the facts. > http://p.sf.net/sfu/google-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Sun Dec 13 10:49:40 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 13 Dec 2009 10:49:40 +0100 Subject: [Gambas-user] gb3: Call trace in debug In-Reply-To: References: <6324a42a0912130036g1cabcea0x3a84428bc24c9a8@...627...> <6324a42a0912130037n2a14c60dtb5d3a30f4c9edd4e@...627...> Message-ID: <6324a42a0912130149i53be82bem8f9bd9119881bee1@...627...> 2009/12/13 Kadaitcha Man : > 2009/12/13 Kadaitcha Man : >> 2009/12/13 Fabien Bodard : >> >>> open IDE and try to do a step by step debug ... you will see the stack >>> (F8) >> >> Nope. >> >> I'll pull the latest svn and recompile. > > Ok, rev 2490 now reconfiguring. > > I still have recompile, so in the meantime: > > I'm sunburnt as all buggery from the charity motorbike ride today. > This is my beast: > > http://www.totalmotorcycle.com/photos/2007models/2007-Honda-VT1100C2ShadowSabrea.jpg Pretty > Not that you care, but I find it does help pass the time L) > > ------------------------------------------------------------------------------ > Return on Information: > Google Enterprise Search pays you back > Get the facts. > http://p.sf.net/sfu/google-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From l.alebarde2 at ...402... Sun Dec 13 11:54:47 2009 From: l.alebarde2 at ...402... (Laurent Alebarde) Date: Sun, 13 Dec 2009 11:54:47 +0100 Subject: [Gambas-user] Timer In-Reply-To: <200912111822.50056.gambas@...1...> References: <4B227DE8.7010705@...2015...> <200912111822.50056.gambas@...1...> Message-ID: <4B24C7F7.5020706@...402...> Have a look here, it may helps you : http://forums.genthttp://forums.gentoo.org/viewtopic-t-790101-highlight-xenomai.html Beno?t Minisini a ?crit : >> Hi, >> I've an application that has a timer that should get fired every 1 >> second. Sometimes when the application is running and my desktop is >> under heavy load the timer doesn't get fired in time. Despite this, my >> expectation was that gambas would queue all this "Timer" events and they >> would get executed as soon as it got enough free CPU time. >> Opposed to that, gambas just discards them... i.e. If my system isn't >> responsive for 5 seconds, after this time I won't get the Timer() method >> called 5 times for each second where it should have been called. >> >> Is there a way to get the timer control working in a way that it queues >> the due events, and they get executed even if it is later on? >> Thanks, >> Toni >> >> P.S: Using Gambas 2.18, Ubuntu 8.10 64bits >> >> > > No, sorry: you must do it yourself. > > Regards, > > From math.eber at ...221... Sun Dec 13 16:37:01 2009 From: math.eber at ...221... (Matti) Date: Sun, 13 Dec 2009 16:37:01 +0100 Subject: [Gambas-user] Button not working Message-ID: <4B250A1D.80100@...221...> Last week, someone posted about a new form and a button "butty" not working (don't have the mail here anymore). This reminded me of a similar problem I once had. Could it be that the problem was not with the code, but with another process running at the same time? Attached, you find a tiny example (made with 2.17). When the program starts, a loop is started, either by Form_Activate or by a Timer event. The loop has a WAIT in it, so you can press a button and show a 2nd Form. But this one will not react until the loop in FMain is finished. If you use ShowModal for the 2nd Form, everything is blocked, the program goes dead. Maybe this is a hint for the poster, and maybe someone can explain that? Matti -------------- next part -------------- A non-text attachment was scrubbed... Name: test2ndForm-0.0.1.tar.gz Type: application/x-gzip Size: 8155 bytes Desc: not available URL: From gambas.fr at ...626... Sun Dec 13 16:53:54 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 13 Dec 2009 16:53:54 +0100 Subject: [Gambas-user] Button not working In-Reply-To: <4B250A1D.80100@...221...> References: <4B250A1D.80100@...221...> Message-ID: <6324a42a0912130753r13822528y4ee5226340460d5c@...627...> with a timer ... it's less expansive in ressources 2009/12/13 Matti : > Last week, someone posted about a new form and a button "butty" not working > (don't have the mail here anymore). > > This reminded me of a similar problem I once had. Could it be that the problem > was not with the code, but with another process running at the same time? > > Attached, you find a tiny example (made with 2.17). When the program starts, a > loop is started, either by Form_Activate or by a Timer event. The loop has a > WAIT in it, so you can press a button and show a 2nd Form. But this one will not > react until the loop in FMain is finished. If you use ShowModal for the 2nd > Form, everything is blocked, the program goes dead. > > Maybe this is a hint for the poster, and maybe someone can explain that? > > Matti > > ------------------------------------------------------------------------------ > Return on Information: > Google Enterprise Search pays you back > Get the facts. > http://p.sf.net/sfu/google-dev2dev > > _______________________________________________ > 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: test2ndForm-0.0.1.tar.gz Type: application/x-gzip Size: 9049 bytes Desc: not available URL: From math.eber at ...221... Sun Dec 13 20:21:26 2009 From: math.eber at ...221... (Matti) Date: Sun, 13 Dec 2009 20:21:26 +0100 Subject: [Gambas-user] Button not working In-Reply-To: <6324a42a0912130753r13822528y4ee5226340460d5c@...627...> References: <4B250A1D.80100@...221...> <6324a42a0912130753r13822528y4ee5226340460d5c@...627...> Message-ID: <4B253EB6.8030901@...221...> ??? Fabien, that wasn't my question. Run the example, and you'll know what I mean. Fabien Bodard schrieb: > with a timer ... it's less expansive in ressources > > > > 2009/12/13 Matti : >> Last week, someone posted about a new form and a button "butty" not working >> (don't have the mail here anymore). >> >> This reminded me of a similar problem I once had. Could it be that the problem >> was not with the code, but with another process running at the same time? >> >> Attached, you find a tiny example (made with 2.17). When the program starts, a >> loop is started, either by Form_Activate or by a Timer event. The loop has a >> WAIT in it, so you can press a button and show a 2nd Form. But this one will not >> react until the loop in FMain is finished. If you use ShowModal for the 2nd >> Form, everything is blocked, the program goes dead. >> >> Maybe this is a hint for the poster, and maybe someone can explain that? >> >> Matti >> >> ------------------------------------------------------------------------------ >> Return on Information: >> Google Enterprise Search pays you back >> Get the facts. >> http://p.sf.net/sfu/google-dev2dev >> >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> >> ------------------------------------------------------------------------ >> >> ------------------------------------------------------------------------------ >> Return on Information: >> Google Enterprise Search pays you back >> Get the facts. >> http://p.sf.net/sfu/google-dev2dev >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user From rterry at ...1946... Mon Dec 14 02:29:23 2009 From: rterry at ...1946... (richard terry) Date: Mon, 14 Dec 2009 12:29:23 +1100 Subject: [Gambas-user] Webview plugins Message-ID: <200912141229.23625.rterry@...1946...> Does anyone know how to get a flash/mplayer plugin working with webview? Regards Richard From john33 at ...2339... Sun Dec 13 04:28:26 2009 From: john33 at ...2339... (John) Date: Sat, 12 Dec 2009 23:28:26 -0400 Subject: [Gambas-user] Editor Control Message-ID: <4B245F5A.7020601@...2339...> I have a problem with the editor control, I set it to have a grey background, but if I load a file it becomes white. Is there a way that I can change the background color of modified lines? If not how can I turn off ShowModifiedLines and ShowCurrentLine? Thanks, John From nando_f at ...951... Mon Dec 14 04:58:40 2009 From: nando_f at ...951... (nando) Date: Sun, 13 Dec 2009 22:58:40 -0500 Subject: [Gambas-user] Timer In-Reply-To: <4B24C7F7.5020706@...402...> References: <4B227DE8.7010705@...2015...> <200912111822.50056.gambas@...1...> <4B24C7F7.5020706@...402...> Message-ID: <20091214035005.M92211@...951...> >From using it and from Benoits previous help, My understanding of Timer is as follows: When the Timer is supposed to fire, it will if the Interpreter is available to invoke the SUB with the Timer code. If some other SUB is busy or if CPU loaded, it is not noticed..and forgotten. What two things I have done to help this, If CPU loaded, run compiled program not very nice: nice -n -7 {your program} If you have a sub that is very long to run, split up the code in the sub so that it calls another sub. This way, the interpreter works often enough. -Fernando ---------- Original Message ----------- From: Laurent Alebarde To: mailing list for gambas users Sent: Sun, 13 Dec 2009 11:54:47 +0100 Subject: Re: [Gambas-user] Timer > Have a look here, it may helps you : > http://forums.genthttp://forums.gentoo.org/viewtopic-t-790101-highlight-xenomai.html > > Beno?t Minisini a ?crit : > >> Hi, > >> I've an application that has a timer that should get fired every 1 > >> second. Sometimes when the application is running and my desktop is > >> under heavy load the timer doesn't get fired in time. Despite this, my > >> expectation was that gambas would queue all this "Timer" events and they > >> would get executed as soon as it got enough free CPU time. > >> Opposed to that, gambas just discards them... i.e. If my system isn't > >> responsive for 5 seconds, after this time I won't get the Timer() method > >> called 5 times for each second where it should have been called. > >> > >> Is there a way to get the timer control working in a way that it queues > >> the due events, and they get executed even if it is later on? > >> Thanks, > >> Toni > >> > >> P.S: Using Gambas 2.18, Ubuntu 8.10 64bits > >> > >> > > > > No, sorry: you must do it yourself. > > > > Regards, > > > > > > ------------------------------------------------------------------------------ > Return on Information: > Google Enterprise Search pays you back > Get the facts. > http://p.sf.net/sfu/google-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From franklinsolutions at ...2340... Mon Dec 14 15:34:23 2009 From: franklinsolutions at ...2340... (Franklin Solutions Limited) Date: Mon, 14 Dec 2009 14:34:23 -0000 Subject: [Gambas-user] signal SIGSEGV, Segmentation fault when using database example with ODDBC to a MSSQL Database Message-ID: <000701ca7cca$87a13ed0$96e3bc70$@net> Problem #11 when using ODBC to connect to a remote database running on MS SQL Server 2000. I can connect to the database and run queries using tsql from a terminal and isql from a root terminal and I can connect using odbc in Gambas2 if the ide is started from a root terminal but not if started from the programme shortcut. I have a small utility to run queries on a SQL server, display the results and optionally export them as a csv file. As soon as the programme gets to the line where the query is assigned to a Result the programme crashes with a #11. This behaviour is identical if running the Database Sample. The connection is opened. connection.opened is True when tested in debug mode. The line where the error occurs in the sample is:- rData = $hConn.Exec(txtRequest.Text) which is the same as the one in my application where the programme crashes PUBLIC SUB FillGrid(ctl AS Control, cnn AS Connection, sqlstr AS String) DIM datout AS Result, i AS Integer, j AS Integer datout = cnn.Exec(sqlstr) The line the crash occurs The version of gambas2 is 2.18.0 The kernel is Linux 2.6.31.5-127/fc12.x86_64 System is Memory 3.8 GiB Proc 0 AMD Athlon(tm) X2 Dual Core processor 5200+ Proc 1 AMD Athlon(tm) X2 Dual Core processor 5200+ The query is executed as can be seen from the output from Wireshark included after the debug output. Thanks Tony Debug data and Wireshark output from running the Database Sample Programme. [root at ...2341... Database]# cd /usr/share/gambas2/examples/Database/Database [root at ...2341... Database]# gbc2 -agt OK [root at ...2341... Database]# gdb gbx2 GNU gdb (GDB) Fedora (7.0-8.fc12) Copyright (C) 2009 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-redhat-linux-gnu". For bug reporting instructions, please see: ... Reading symbols from /usr/bin/gbx2...(no debugging symbols found)...done. Missing separate debuginfos, use: debuginfo-install gambas2-runtime-2.18.0-1.fc12.x86_64 (gdb) set args -p (gdb) run Starting program: /usr/bin/gbx2 -p [Thread debugging using libthread_db enabled] Program received signal SIGSEGV, Segmentation fault. 0x0000003b3a27978c in free () from /lib64/libc.so.6 (gdb) bt #0 0x0000003b3a27978c in free () from /lib64/libc.so.6 #1 0x00000000004050f1 in sinh () #2 0x00007fffefe013aa in SQLDisconnect () from /usr/lib64/gambas2/gb.db.odbc.so #3 0x00007fffefe03a28 in ?? () from /usr/lib64/gambas2/gb.db.odbc.so #4 0x00007ffff7408da2 in ?? () from /usr/lib64/gambas2/gb.db.so #5 0x00007ffff740975f in ?? () from /usr/lib64/gambas2/gb.db.so #6 0x00007ffff74063c7 in ?? () from /usr/lib64/gambas2/gb.db.so #7 0x0000000000408b32 in sinh () #8 0x000000000040952f in sinh () #9 0x000000000042eea5 in sinh () #10 0x0000000000409cf5 in sinh () #11 0x0000000000409fac in sinh () #12 0x000000000041c4c9 in sinh () #13 0x000000000041ce79 in sinh () #14 0x00007ffff797edca in g_io_channel_unref () from /usr/lib64/gambas2/gb.gtk.so #15 0x000000324020ba8e in g_closure_invoke () from /lib64/libgobject-2.0.so.0 #16 0x0000003240220ec3 in ?? () from /lib64/libgobject-2.0.so.0 #17 0x0000003240222259 in g_signal_emit_valist () from /lib64/libgobject-2.0.so.0 #18 0x00000032402227a3 in g_signal_emit () from /lib64/libgobject-2.0.so.0 #19 0x000000324468d615 in ?? () from /usr/lib64/libgtk-x11-2.0.so.0 ---Type to continue, or q to quit--- #20 0x000000324020ba8e in g_closure_invoke () from /lib64/libgobject-2.0.so.0 #21 0x00000032402207dc in ?? () from /lib64/libgobject-2.0.so.0 #22 0x0000003240222259 in g_signal_emit_valist () from /lib64/libgobject-2.0.so.0 #23 0x00000032402227a3 in g_signal_emit () from /lib64/libgobject-2.0.so.0 #24 0x000000324468be77 in ?? () from /usr/lib64/libgtk-x11-2.0.so.0 #25 0x0000003244753903 in ?? () from /usr/lib64/libgtk-x11-2.0.so.0 #26 0x000000324020ba8e in g_closure_invoke () from /lib64/libgobject-2.0.so.0 #27 0x0000003240220b8d in ?? () from /lib64/libgobject-2.0.so.0 #28 0x00000032402220ec in g_signal_emit_valist () from /lib64/libgobject-2.0.so.0 #29 0x00000032402227a3 in g_signal_emit () from /lib64/libgobject-2.0.so.0 #30 0x0000003244875a9f in ?? () from /usr/lib64/libgtk-x11-2.0.so.0 #31 0x000000324474a664 in gtk_propagate_event () from /usr/lib64/libgtk-x11-2.0.so.0 #32 0x000000324474b7a3 in gtk_main_do_event () from /usr/lib64/libgtk-x11-2.0.so.0 #33 0x00007ffff798c627 in ?? () from /usr/lib64/gambas2/gb.gtk.so #34 0x000000324625f7fc in ?? () from /usr/lib64/libgdk-x11-2.0.so.0 #35 0x000000323fe3922e in g_main_context_dispatch () from /lib64/libglib-2.0.so.0 #36 0x000000323fe3cc18 in ?? () from /lib64/libglib-2.0.so.0 #37 0x000000323fe3cd3a in g_main_context_iteration () ---Type to continue, or q to quit--- from /lib64/libglib-2.0.so.0 #38 0x000000324474bb1d in gtk_main_iteration_do () from /usr/lib64/libgtk-x11-2.0.so.0 #39 0x00007ffff798a85a in g_io_channel_unref () from /usr/lib64/gambas2/gb.gtk.so #40 0x00007ffff798aec9 in ?? () from /usr/lib64/gambas2/gb.gtk.so #41 0x0000000000422274 in sinh () #42 0x0000003b3a21eb1d in __libc_start_main () from /lib64/libc.so.6 #43 0x0000000000403a99 in sinh () #44 0x00007fffffffe598 in ?? () #45 0x000000000000001c in ?? () #46 0x0000000000000002 in ?? () #47 0x00000000008548d8 in ?? () #48 0x00007fffffffe80f in ?? () #49 0x0000000000000000 in ?? () Listed below is the output from wireshark when running the same query attached to the same remote database using tsql from a terminal and the gambas database sample. Note to minimise the amount of data and for security reasons I have deleted the lines on which the user name and password appear and also any lines which consisted of all 0's. Using TSQL 0000 00 04 00 01 00 06 1e bf ef 97 8d 0e 00 00 08 00 ........ ........ Login Packet with 0010 45 00 02 80 06 13 40 00 40 06 1e 4d 0a 08 00 07 E..... at ...1162... @..M.... lines of zeros and 0020 0a 08 00 02 db 2f 05 99 89 39 ed 79 d6 77 f1 04 ...../.. .9.y.w.. user/pwd removed 0030 80 18 00 2e 3f 2f 00 00 01 01 08 0a 00 3d ec a5 ....?/.. .....=.. 0040 00 00 00 00 02 00 02 00 00 00 00 00 46 53 4c 53 ........ ....FSLS 0050 65 72 76 65 72 00 00 00 00 00 00 00 00 00 00 00 erver... ........ 00a0 00 00 00 00 00 00 00 00 04 33 37 38 37 36 00 00 ........ .37876.. 00c0 00 00 00 00 00 00 00 05 03 01 06 0a 09 01 00 00 ........ ........ 00d0 00 00 02 00 00 00 00 00 54 53 51 4c 00 00 00 00 ........ TSQL.... 00e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........ 00f0 00 00 00 00 00 00 04 41 63 63 6f 75 6e 74 73 00 .......A ccounts. 0210 00 00 00 00 00 04 04 02 00 00 54 44 53 2d 4c 69 ........ ..TDS-Li 0220 62 72 61 72 0a 00 00 00 00 00 0d 11 75 73 5f 65 brar.... ....us_e 0230 6e 67 6c 69 73 68 00 00 00 00 00 00 00 00 00 00 nglish.. ........ 0240 00 00 00 00 02 01 00 4c 00 00 00 00 00 00 00 00 .......L ........ 0260 00 69 73 6f 5f 31 00 00 00 00 00 00 00 00 00 00 .iso_1.. ........ 0270 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 05 ........ ........ 0280 01 35 31 32 00 00 00 03 00 00 00 00 00 00 00 00 .512.... ........ 0000 00 00 00 01 00 06 00 ff 5a 71 3e 27 00 00 08 00 ........ Zq>'.... Response Packet 0010 45 00 00 cf 79 b5 40 00 80 06 6c 5b 0a 08 00 02 E...y. at ...1162... ..l[.... 0020 0a 08 00 07 05 99 db 2f d6 77 f1 04 89 39 ef c5 ......./ .w...9.. 0030 80 18 41 8c d9 da 00 00 01 01 08 0a 00 9a 27 c4 ..A..... ......'. 0040 00 3d ec a5 04 01 00 9b 00 4b 01 00 e3 0f 00 01 .=...... .K...... 0050 06 6d 61 73 74 65 72 06 6d 61 73 74 65 72 ab 39 .master. master.9 0060 00 45 16 00 00 02 00 25 00 43 68 61 6e 67 65 64 .E.....% .Changed 0070 20 64 61 74 61 62 61 73 65 20 63 6f 6e 74 65 78 databas e contex 0080 74 20 74 6f 20 27 6d 61 73 74 65 72 27 2e 08 41 t to 'ma ster'..A 0090 43 43 4f 55 4e 54 53 00 00 00 e3 09 00 03 05 69 CCOUNTS. .......i 00a0 73 6f 5f 31 01 00 ad 20 00 01 04 02 00 00 16 4d so_1... .......M 00b0 69 63 72 6f 73 6f 66 74 20 53 51 4c 20 53 65 72 icrosoft SQL Ser 00c0 76 65 72 00 00 5f 08 00 ff e3 0a 00 04 03 35 31 ver.._.. ......51 00d0 32 04 34 30 39 36 fd 00 00 00 00 00 00 00 00 2.4096.. ....... 0000 00 04 00 01 00 06 1e bf ef 97 8d 0e 00 00 08 00 ........ ........ Query Packey 0010 45 00 00 5a 06 15 40 00 40 06 20 71 0a 08 00 07 E..Z.. at ...1162... @. q.... 0020 0a 08 00 02 db 2f 05 99 89 39 ef c5 d6 77 f1 9f ...../.. .9...w.. 0030 80 18 00 36 e1 fb 00 00 01 01 08 0a 00 3d ed 47 ...6.... .....=.G 0040 00 9a 27 c4 01 01 00 26 00 00 00 00 73 65 74 20 ..'....& ....set 0050 74 65 78 74 73 69 7a 65 20 36 34 35 31 32 20 75 textsize 64512 u 0060 73 65 20 66 73 6c 6f 70 68 71 se fslop hq 0000 00 00 00 01 00 06 00 ff 5a 71 3e 27 00 00 08 00 ........ Zq>'.... Response Packet 0010 45 00 00 9e 79 b7 40 00 80 06 6c 8a 0a 08 00 02 E...y. at ...1162... ..l..... 0020 0a 08 00 07 05 99 db 2f d6 77 f1 9f 89 39 ef eb ......./ .w...9.. 0030 80 18 41 66 fe 02 00 00 01 01 08 0a 00 9a 27 c5 ..Af.... ......'. 0040 00 3d ed 47 04 01 00 6a 00 4b 01 00 fd 01 00 be .=.G...j .K...... 0050 00 00 00 00 00 e3 10 00 01 07 46 53 4c 4f 50 48 ........ ..FSLOPH 0060 51 06 6d 61 73 74 65 72 ab 3a 00 45 16 00 00 01 Q.master .:.E.... 0070 00 26 00 43 68 61 6e 67 65 64 20 64 61 74 61 62 .&.Chang ed datab 0080 61 73 65 20 63 6f 6e 74 65 78 74 20 74 6f 20 27 ase cont ext to ' 0090 46 53 4c 4f 50 48 51 27 2e 08 41 43 43 4f 55 4e FSLOPHQ' ..ACCOUN 00a0 54 53 00 01 00 fd 00 00 e2 00 00 00 00 00 TS...... ...... The next query was the sql query and the data was returned Using ODBC in Gambas 0000 00 04 00 01 00 06 da 45 23 65 30 14 00 00 08 00 .......E #e0..... Login Packet with 0010 45 00 02 80 8e 28 40 00 40 06 96 37 0a 08 00 07 E....(@. @..7.... lines of zeros and 0020 0a 08 00 02 96 e5 05 99 35 aa 74 ef 2a 90 12 ca ........ 5.t.*... user/pwd removed 0030 80 18 00 2e 0a eb 00 00 01 01 08 0a 00 46 fb 6e ........ .....F.n 0040 00 00 00 00 02 00 02 00 00 00 00 00 46 53 4c 53 ........ ....FSLS 0050 65 72 76 65 72 00 00 00 00 00 00 00 00 00 00 00 erver... ........ 00a0 00 00 00 00 00 00 00 00 04 33 37 38 37 36 00 00 ........ .37876.. 00c0 00 00 00 00 00 00 00 05 03 01 06 0a 09 01 00 00 ........ ........ 00d0 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........ 00f0 00 00 00 00 00 00 00 53 59 42 41 53 45 00 00 00 .......S YBASE... 0220 00 00 00 00 00 00 00 00 00 00 0d 11 75 73 5f 65 ........ ....us_e 0230 6e 67 6c 69 73 68 00 00 00 00 00 00 00 00 00 00 nglish.. ........ 0240 00 00 00 00 02 01 00 4c 00 00 00 00 00 00 00 00 .......L ........ 0250 00 00 0a 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........ 0260 00 69 73 6f 5f 31 00 00 00 00 00 00 00 00 00 00 .iso_1.. ........ 0270 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 05 ........ ........ 0280 01 35 31 32 00 00 00 03 00 00 00 00 00 00 00 00 .512.... ........ 0000 00 04 00 01 00 06 da 45 23 65 30 14 00 00 08 00 .......E #e0..... Query Packet 0010 45 00 00 5c 8e 2a 40 00 40 06 98 59 0a 08 00 07 E..\.*@. @..Y.... 0020 0a 08 00 02 96 e5 05 99 35 aa 77 3b 2a 90 13 65 ........ 5.w;*..e 0030 80 18 00 36 22 9f 00 00 01 01 08 0a 00 46 fb d4 ...6"... .....F.. 0040 00 9c a8 63 01 01 00 28 00 00 00 00 73 65 74 20 ...c...( ....set 0050 74 65 78 74 73 69 7a 65 20 35 30 30 30 30 30 30 textsize 5000000 0060 20 75 73 65 20 46 53 4c 4f 50 48 51 use FSL OPHQ 0000 00 00 00 01 00 06 00 ff 5a 71 3e 27 00 00 08 00 ........ Zq>'.... Response Packet 0010 45 00 00 9e 48 c4 40 00 80 06 9d 7d 0a 08 00 02 E...H. at ...1162... ...}.... 0020 0a 08 00 07 05 99 96 e5 2a 90 13 65 35 aa 77 63 ........ *..e5.wc 0030 80 18 41 64 09 5e 00 00 01 01 08 0a 00 9c a8 63 ..Ad.^.. .......c 0040 00 46 fb d4 04 01 00 6a 00 40 01 00 fd 01 00 be .F.....j . at ...2342... 0050 00 00 00 00 00 e3 10 00 01 07 46 53 4c 4f 50 48 ........ ..FSLOPH 0060 51 06 6d 61 73 74 65 72 ab 3a 00 45 16 00 00 01 Q.master .:.E.... 0070 00 26 00 43 68 61 6e 67 65 64 20 64 61 74 61 62 .&.Chang ed datab 0080 61 73 65 20 63 6f 6e 74 65 78 74 20 74 6f 20 27 ase cont ext to ' 0090 46 53 4c 4f 50 48 51 27 2e 08 41 43 43 4f 55 4e FSLOPHQ' ..ACCOUN 00a0 54 53 00 01 00 fd 00 00 e2 00 00 00 00 00 TS...... ...... Additional query packet compared to tsql 0000 00 04 00 01 00 06 1e bf ef 97 8d 0e 00 00 08 00 ........ ........ Query Packet 0010 45 00 00 59 3c 4e 40 00 40 06 ea 38 0a 08 00 07 E..YB<1L%.s 0030 80 18 00 36 2f 52 00 00 01 01 08 0a 00 73 07 37 ...6/R.. .....s.7 0040 00 9a af b4 01 01 00 25 00 00 00 00 53 45 54 20 .......% ....SET 0050 49 4d 50 4c 49 43 49 54 5f 54 52 41 4e 53 41 43 IMPLICIT _TRANSAC 0060 54 49 4f 4e 53 20 4f 46 46 TIONS OF F 0000 00 00 00 01 00 06 00 ff 5a 71 3e 27 00 00 08 00 ........ Zq>'.... Response Packet 0010 45 00 00 45 7c 2f 40 00 80 06 6a 6b 0a 08 00 02 E..E|/@. ..jk.... 0020 0a 08 00 07 05 99 88 6a 4c 25 84 73 3e 42 3c 56 .......j L%.s>BB'.... 0010 45 00 02 34 7e dd 40 00 80 06 65 ce 0a 08 00 02 E..4~. at ...1162... ..e..... 0020 0a 08 00 07 05 99 88 6a 4c 25 84 84 3e 42 3c 79 .......j L%..>B'.... 0010 45 00 05 60 7e de 40 00 80 06 62 a1 0a 08 00 02 E..`~. at ...1162... ..b..... 0020 0a 08 00 07 05 99 88 6a 4c 25 86 84 3e 42 3c 79 .......j L%..>B'.... 0010 45 00 01 08 7e df 40 00 80 06 66 f8 0a 08 00 02 E...~. at ...1162... ..f..... 0020 0a 08 00 07 05 99 88 6a 4c 25 8b b0 3e 42 3c 79 .......j L%..>B'.... 0010 45 00 00 6a 7e e3 40 00 80 06 67 92 0a 08 00 02 E..j~. at ...1162... ..g..... 0020 0a 08 00 07 05 99 88 6a 4c 25 8c 84 3e 42 3c 79 .......j L%..>B Hi, I have already done little billing program for my parents little firm. It was a learning exercise. It would make a big help to get little companies to move to Linux if there was a financial program that run on Linux and would be free. There comes in Gambas. Is there already an GPLed financial program made with Gambas? If not is someone having different parts of a system willing to donate source code under GPL? My billing program is so horrible that in it's condition I don't want to show it's sources to anyone... it was my first Gambas program... Why Gambas would be extra value for this kind of a project.? Gambas is easy language and integrated editor makes it very easy to implement user interface. Speed and other things which are good in C or C++ are not so important. Naturally someone says Python would be way to go but I find it more difficult than Gambas. Idea is that regular Joe with little experimenting could change the program. Best Regards Kari -- PIC - ARM - Microcontrollers - I2C - SPI Keypads - USB-RS232 - USB-I2C - Accessories http://www.byvac.com I am just a happy customer From gambas.fr at ...626... Mon Dec 14 17:03:15 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 14 Dec 2009 17:03:15 +0100 Subject: [Gambas-user] Financial program In-Reply-To: <61452b690912140732w6dd57e7fw1f3efe87082f0e46@...627...> References: <61452b690912140732w6dd57e7fw1f3efe87082f0e46@...627...> Message-ID: <6324a42a0912140803q3859e515u1810b4f648f0a149@...627...> you have Laurux at http://laurux.fr/ but the code is not perfect has it was on the start a code learning programme.. but at the end it's a true accounting program... in french (Gb2) 2009/12/14 Kari Laine : > Hi, > > I have already done little billing program for my parents little firm. > It was a learning exercise. It would make a big help to get little > companies to move to Linux if there was a financial program that run > on Linux and would be free. There comes in Gambas. > > Is there already an GPLed financial program made with Gambas? > If not is someone having different parts of a system willing to donate > source code under GPL? > > My billing program is so horrible that in it's condition I don't want > to show it's sources to anyone... it was my first Gambas program... > > Why Gambas would be extra value for this kind of a project.? Gambas is > easy language and integrated editor makes it very easy to implement > user interface. Speed and other things which are good in C or C++ are > not so important. Naturally someone says Python would be way to go but > I find it more difficult than Gambas. Idea is that regular Joe with > little experimenting could change the program. > > Best Regards > Kari > > -- > PIC - ARM - Microcontrollers - I2C - SPI > Keypads - USB-RS232 - USB-I2C - Accessories > http://www.byvac.com > I am just a happy customer > > ------------------------------------------------------------------------------ > Return on Information: > Google Enterprise Search pays you back > Get the facts. > http://p.sf.net/sfu/google-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From john33 at ...2339... Mon Dec 14 17:22:16 2009 From: john33 at ...2339... (John) Date: Mon, 14 Dec 2009 12:22:16 -0400 Subject: [Gambas-user] Editor control Message-ID: <4B266638.9080804@...2339...> I have a problem with the editor control, I set it to have a grey background, but if I load a file it becomes white. Is there a way that I can change the background color for modified lines and the current line? If not how can I turn off ShowModifiedLines and ShowCurrentLine? Thanks, John Note: I sent this same message yesterday to the list, I am only resending it because the date was wrong on my computer which would bury that message on most email clients. From 12ukwn at ...626... Mon Dec 14 17:24:00 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Mon, 14 Dec 2009 17:24:00 +0100 Subject: [Gambas-user] Financial program In-Reply-To: <6324a42a0912140803q3859e515u1810b4f648f0a149@...627...> References: <61452b690912140732w6dd57e7fw1f3efe87082f0e46@...627...> <6324a42a0912140803q3859e515u1810b4f648f0a149@...627...> Message-ID: <4B2666A0.4030206@...626...> Fabien Bodard a ?crit : > you have Laurux at http://laurux.fr/ > > but the code is not perfect has it was on the start a code learning > programme.. but at the end it's a true accounting program... in french > (Gb2) BTW, do you plan to have an equivalent of postgresql or python decimal(n,n) into GB3? It would be *very* interesting (otherwise you have to filter every line through Format$) JY -- My rackets are run on strictly American lines, and they're going to stay that way. -- Al Capone From gambas.fr at ...626... Mon Dec 14 17:38:05 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 14 Dec 2009 17:38:05 +0100 Subject: [Gambas-user] Financial program In-Reply-To: <4B2666A0.4030206@...626...> References: <61452b690912140732w6dd57e7fw1f3efe87082f0e46@...627...> <6324a42a0912140803q3859e515u1810b4f648f0a149@...627...> <4B2666A0.4030206@...626...> Message-ID: <6324a42a0912140838x3f14d6c5tb8a992ecd9a6ddd2@...627...> i've bookmarked the pyton page ... this is an interesting thing but ... always the time problem ... 2009/12/14 Jean-Yves F. Barbier <12ukwn at ...626...>: > Fabien Bodard a ?crit : >> you have Laurux at http://laurux.fr/ >> >> but the code is not perfect has it was on the start a code learning >> programme.. but at the end it's a true accounting program... in french >> (Gb2) > > BTW, do you plan to have an equivalent of postgresql or python decimal(n,n) > into GB3? > It would be *very* interesting (otherwise you have to filter every line > through Format$) > > JY > -- > My rackets are run on strictly American lines, and they're going to > stay that way. > ? ? ? ? ? ? ? ?-- Al Capone > > ------------------------------------------------------------------------------ > Return on Information: > Google Enterprise Search pays you back > Get the facts. > http://p.sf.net/sfu/google-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From wdahn at ...1000... Mon Dec 14 17:55:11 2009 From: wdahn at ...1000... (Werner) Date: Tue, 15 Dec 2009 00:55:11 +0800 Subject: [Gambas-user] Financial program In-Reply-To: <61452b690912140732w6dd57e7fw1f3efe87082f0e46@...627...> References: <61452b690912140732w6dd57e7fw1f3efe87082f0e46@...627...> Message-ID: <4B266DEF.4010305@...1000...> On 14/12/09 23:32, Kari Laine wrote: > Hi, > > I have already done little billing program for my parents little firm. > It was a learning exercise. It would make a big help to get little > companies to move to Linux if there was a financial program that run > on Linux and would be free. There comes in Gambas. > > Is there already an GPLed financial program made with Gambas? > If not is someone having different parts of a system willing to donate > source code under GPL? > > My billing program is so horrible that in it's condition I don't want > to show it's sources to anyone... it was my first Gambas program... > > Why Gambas would be extra value for this kind of a project.? Gambas is > easy language and integrated editor makes it very easy to implement > user interface. Speed and other things which are good in C or C++ are > not so important. Naturally someone says Python would be way to go but > I find it more difficult than Gambas. Idea is that regular Joe with > little experimenting could change the program. > > Best Regards > Kari > > There is Quasar from Linux Canada. It is very similar to MYOB. Their last GPL version is 1.4.7, I think. After that they went sort of proprietary(Note1) but the documentation of how to hook into the new version database is exemplary. We use 1.4.7, mostly the inventory control part which is excellent. In this version the reporting bits are suboptimal but the rest is fine. We use it since around 2002, using mostly the inventory control part. The mailing list support is excellent. I had studied their source code. It is extremely well written, I learned a lot from it. If you think you can write a decent accounting program in 3 man months you don't know what the task is. If you think you can write a decent accounting program in 3 man years you may have something fairly basic to show but only if you got your priorities right. Accounting programs are very much underestimated. You might just want to hook into what's there and be efficient. The interface is well documented. Regards Werner Note 1: If I recall it properly it was after someone claimed their software was actually his From gambas at ...1... Mon Dec 14 18:05:48 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 14 Dec 2009 18:05:48 +0100 Subject: [Gambas-user] Financial program In-Reply-To: <4B2666A0.4030206@...626...> References: <61452b690912140732w6dd57e7fw1f3efe87082f0e46@...627...> <6324a42a0912140803q3859e515u1810b4f648f0a149@...627...> <4B2666A0.4030206@...626...> Message-ID: <200912141805.48284.gambas@...1...> > Fabien Bodard a ?crit : > > you have Laurux at http://laurux.fr/ > > > > but the code is not perfect has it was on the start a code learning > > programme.. but at the end it's a true accounting program... in french > > (Gb2) > > BTW, do you plan to have an equivalent of postgresql or python decimal(n,n) > into GB3? > It would be *very* interesting (otherwise you have to filter every line > through Format$) > > JY > You mean a fixed-point decimal datatype? Or a currency datatype? It cannot be done in Gambas 3. So, in Gambas 4 ? -- Beno?t Minisini From klaine8 at ...626... Mon Dec 14 18:22:02 2009 From: klaine8 at ...626... (Kari Laine) Date: Mon, 14 Dec 2009 19:22:02 +0200 Subject: [Gambas-user] Financial program In-Reply-To: <4B266DEF.4010305@...1000...> References: <61452b690912140732w6dd57e7fw1f3efe87082f0e46@...627...> <4B266DEF.4010305@...1000...> Message-ID: <61452b690912140922l4acc434cq5a3bd357578f500c@...627...> Hi, > There is Quasar from Linux Canada. It is very similar to MYOB. Their > last GPL version is 1.4.7, I think. Do you have the source for the GPL version. I visited their site and couldn't find it. > If you think you can write a decent accounting program in 3 man months > you don't know what the task is. > If you think you can write a decent accounting program in 3 man years > you may have something fairly basic to show but only if you got your > priorities right. I always have my priorities wrong ... I am right now swamped. But I was more on the line what exists and could be modified for Finnish market. And idea was also that I wouldn't have to do everything myself. > Accounting programs are very much underestimated. I agree. Best Regards Kari -- PIC - ARM - Microcontrollers - I2C - SPI Keypads - USB-RS232 - USB-I2C - Accessories http://www.byvac.com I am just a happy customer From klaine8 at ...626... Mon Dec 14 18:24:23 2009 From: klaine8 at ...626... (Kari Laine) Date: Mon, 14 Dec 2009 19:24:23 +0200 Subject: [Gambas-user] Financial program In-Reply-To: <6324a42a0912140803q3859e515u1810b4f648f0a149@...627...> References: <61452b690912140732w6dd57e7fw1f3efe87082f0e46@...627...> <6324a42a0912140803q3859e515u1810b4f648f0a149@...627...> Message-ID: <61452b690912140924s6286d189r9588c9287d23b352@...627...> Hi, thanks On Mon, Dec 14, 2009 at 6:03 PM, Fabien Bodard wrote: > you have Laurux at http://laurux.fr/ > > but the code is not perfect has it was on the start a code learning > programme.. but at the end it's a true accounting program... in french > (Gb2) > I don't read a single word French so I have to pass. It would be too difficult for me to adapt. Best Regards Kari From gambas at ...1... Mon Dec 14 18:25:57 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 14 Dec 2009 18:25:57 +0100 Subject: [Gambas-user] Editor control In-Reply-To: <4B266638.9080804@...2339...> References: <4B266638.9080804@...2339...> Message-ID: <200912141825.57039.gambas@...1...> > I have a problem with the editor control, I set it to have a grey > background, but if I load a file it becomes white. Is there a way that I > can change the background color for modified lines and the current line? Do you use Gambas 3 ? Do you use the latest revision ? > > If not how can I turn off ShowModifiedLines and ShowCurrentLine? Editor.Flags[Editor.ShowModifiedLines] = False Editor.Flags[Editor.ShowCurrentLine] = False Regards, -- Beno?t Minisini From 12ukwn at ...626... Mon Dec 14 18:26:29 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Mon, 14 Dec 2009 18:26:29 +0100 Subject: [Gambas-user] Financial program In-Reply-To: <200912141805.48284.gambas@...1...> References: <61452b690912140732w6dd57e7fw1f3efe87082f0e46@...627...> <6324a42a0912140803q3859e515u1810b4f648f0a149@...627...> <4B2666A0.4030206@...626...> <200912141805.48284.gambas@...1...> Message-ID: <4B267545.6080205@...626...> Beno?t Minisini a ?crit : >> Fabien Bodard a ?crit : >>> you have Laurux at http://laurux.fr/ >>> >>> but the code is not perfect has it was on the start a code learning >>> programme.. but at the end it's a true accounting program... in french >>> (Gb2) >> BTW, do you plan to have an equivalent of postgresql or python decimal(n,n) >> into GB3? >> It would be *very* interesting (otherwise you have to filter every line >> through Format$) >> >> JY >> > > You mean a fixed-point decimal datatype? Or a currency datatype? A fixed-point decimal > It cannot be done in Gambas 3. So, in Gambas 4 ? Hu? That's too bad because it is needed to ease accounting purposes. -- Antique fairy tale: Little Red Riding Hood. Modern fairy tale: Oswald, acting alone, shot Kennedy. From 12ukwn at ...626... Mon Dec 14 18:36:47 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Mon, 14 Dec 2009 18:36:47 +0100 Subject: [Gambas-user] Financial program In-Reply-To: <61452b690912140924s6286d189r9588c9287d23b352@...627...> References: <61452b690912140732w6dd57e7fw1f3efe87082f0e46@...627...> <6324a42a0912140803q3859e515u1810b4f648f0a149@...627...> <61452b690912140924s6286d189r9588c9287d23b352@...627...> Message-ID: <4B2677AF.3040409@...626...> Kari Laine a ?crit : > Hi, > > thanks > > On Mon, Dec 14, 2009 at 6:03 PM, Fabien Bodard wrote: >> you have Laurux at http://laurux.fr/ >> >> but the code is not perfect has it was on the start a code learning >> programme.. but at the end it's a true accounting program... in french >> (Gb2) >> > > I don't read a single word French so I have to pass. It would be too > difficult for me to adapt. You can take a look at sql-ledger that implements a double-entry accounting with many accounting plans (but it is written in perl...) -- A man without a woman is like a fish without gills. From wdahn at ...1000... Mon Dec 14 18:48:23 2009 From: wdahn at ...1000... (Werner) Date: Tue, 15 Dec 2009 01:48:23 +0800 Subject: [Gambas-user] Financial program In-Reply-To: <61452b690912140922l4acc434cq5a3bd357578f500c@...627...> References: <61452b690912140732w6dd57e7fw1f3efe87082f0e46@...627...> <4B266DEF.4010305@...1000...> <61452b690912140922l4acc434cq5a3bd357578f500c@...627...> Message-ID: <4B267A67.3060806@...1000...> On 15/12/09 01:22, Kari Laine wrote: > Hi, > >> There is Quasar from Linux Canada. It is very similar to MYOB. Their >> last GPL version is 1.4.7, I think. >> > Do you have the source for the GPL version. I visited their site and > couldn't find it. > > > >> If you think you can write a decent accounting program in 3 man months >> you don't know what the task is. >> If you think you can write a decent accounting program in 3 man years >> you may have something fairly basic to show but only if you got your >> priorities right. >> > I always have my priorities wrong ... I am right now swamped. But > I was more on the line what exists and could be modified for Finnish market. > And idea was also that I wouldn't have to do everything myself. > > >> Accounting programs are very much underestimated. >> > I agree. > > Best Regards > Kari > > It's here: > ftp://www.linuxcanada.com/pub/Quasar/1.4.7/ I hope to have conveyed: They are very decent people and it is brilliant software. Regards Werner From girardhenri at ...67... Mon Dec 14 19:54:45 2009 From: girardhenri at ...67... (girardhenri at ...67...) Date: Mon, 14 Dec 2009 19:54:45 +0100 Subject: [Gambas-user] Financial program In-Reply-To: <61452b690912140732w6dd57e7fw1f3efe87082f0e46@...627...> References: <61452b690912140732w6dd57e7fw1f3efe87082f0e46@...627...> Message-ID: You have the wonderfull accounting programm www.laurus.fr Here you have some : http://gambas.sourceforge.net/en/main.html enjoy :) Henri -------------------------------------------------- From: "Kari Laine" Sent: Monday, December 14, 2009 4:32 PM To: Subject: [Gambas-user] Financial program > Hi, > > I have already done little billing program for my parents little firm. > It was a learning exercise. It would make a big help to get little > companies to move to Linux if there was a financial program that run > on Linux and would be free. There comes in Gambas. > > Is there already an GPLed financial program made with Gambas? > If not is someone having different parts of a system willing to donate > source code under GPL? > > My billing program is so horrible that in it's condition I don't want > to show it's sources to anyone... it was my first Gambas program... > > Why Gambas would be extra value for this kind of a project.? Gambas is > easy language and integrated editor makes it very easy to implement > user interface. Speed and other things which are good in C or C++ are > not so important. Naturally someone says Python would be way to go but > I find it more difficult than Gambas. Idea is that regular Joe with > little experimenting could change the program. > > Best Regards > Kari > > -- > PIC - ARM - Microcontrollers - I2C - SPI > Keypads - USB-RS232 - USB-I2C - Accessories > http://www.byvac.com > I am just a happy customer > > ------------------------------------------------------------------------------ > Return on Information: > Google Enterprise Search pays you back > Get the facts. > http://p.sf.net/sfu/google-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Mon Dec 14 20:49:08 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 14 Dec 2009 20:49:08 +0100 Subject: [Gambas-user] Financial program In-Reply-To: <4B267545.6080205@...626...> References: <61452b690912140732w6dd57e7fw1f3efe87082f0e46@...627...> <200912141805.48284.gambas@...1...> <4B267545.6080205@...626...> Message-ID: <200912142049.08977.gambas@...1...> > Beno?t Minisini a ?crit : > >> Fabien Bodard a ?crit : > >>> you have Laurux at http://laurux.fr/ > >>> > >>> but the code is not perfect has it was on the start a code learning > >>> programme.. but at the end it's a true accounting program... in french > >>> (Gb2) > >> > >> BTW, do you plan to have an equivalent of postgresql or python > >> decimal(n,n) into GB3? > >> It would be *very* interesting (otherwise you have to filter every line > >> through Format$) > >> > >> JY > > > > You mean a fixed-point decimal datatype? Or a currency datatype? > > A fixed-point decimal > > > It cannot be done in Gambas 3. So, in Gambas 4 ? > > Hu? > That's too bad because it is needed to ease accounting purposes. > Why not storing currencies in cents, or fraction of cents, with a Long datatype? -- Beno?t Minisini From ajw4me at ...466... Mon Dec 14 21:19:39 2009 From: ajw4me at ...466... (Tony) Date: Tue, 15 Dec 2009 07:19:39 +1100 Subject: [Gambas-user] Financial program In-Reply-To: <61452b690912140732w6dd57e7fw1f3efe87082f0e46@...627...> References: <61452b690912140732w6dd57e7fw1f3efe87082f0e46@...627...> Message-ID: <4B269DDB.3090309@...466...> Kari Laine wrote: > Hi, > > I have already done little billing program for my parents little firm. > It was a learning exercise. It would make a big help to get little > companies to move to Linux if there was a financial program that run > on Linux and would be free. There comes in Gambas. > > Is there already an GPLed financial program made with Gambas? > If not is someone having different parts of a system willing to donate > source code under GPL? > > My billing program is so horrible that in it's condition I don't want > to show it's sources to anyone... it was my first Gambas program... > > Why Gambas would be extra value for this kind of a project.? Gambas is > easy language and integrated editor makes it very easy to implement > user interface. Speed and other things which are good in C or C++ are > not so important. Naturally someone says Python would be way to go but > I find it more difficult than Gambas. Idea is that regular Joe with > little experimenting could change the program. > > Best Regards > Kari > > Hi, Whilst obviously not written in Gambas, I've been using GnuCash for personal accounting for some time. The double entry bit and UI are a little clunky for my basic needs, but in the end it works. I'm think you can use it for billing and you can tailor reports etc in guile, so it may be worth a look. Source code should be available since it is GPL. Tony.. From 12ukwn at ...626... Mon Dec 14 21:26:07 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Mon, 14 Dec 2009 21:26:07 +0100 Subject: [Gambas-user] Financial program In-Reply-To: <200912142049.08977.gambas@...1...> References: <61452b690912140732w6dd57e7fw1f3efe87082f0e46@...627...> <200912141805.48284.gambas@...1...> <4B267545.6080205@...626...> <200912142049.08977.gambas@...1...> Message-ID: <4B269F5F.4050207@...626...> Beno?t Minisini a ?crit : >> Beno?t Minisini a ?crit : >>>> Fabien Bodard a ?crit : >>>>> you have Laurux at http://laurux.fr/ >>>>> >>>>> but the code is not perfect has it was on the start a code learning >>>>> programme.. but at the end it's a true accounting program... in french >>>>> (Gb2) >>>> BTW, do you plan to have an equivalent of postgresql or python >>>> decimal(n,n) into GB3? >>>> It would be *very* interesting (otherwise you have to filter every line >>>> through Format$) >>>> >>>> JY >>> You mean a fixed-point decimal datatype? Or a currency datatype? >> A fixed-point decimal >> >>> It cannot be done in Gambas 3. So, in Gambas 4 ? >> Hu? >> That's too bad because it is needed to ease accounting purposes. >> > > Why not storing currencies in cents, or fraction of cents, with a Long > datatype? No, this is the best way to make mistakes (ie: invoice hardware with 2 decimals, but invoice telephone seconds with 8 & connections w/ 3 or 4 on the same invoice, oeuf corse). Format$ is not very useful because of conversions it involves. Using integer arithmetics is muuuch tooo slooow. So the less worse is still Format$. -- Mieux vaut tard que jamais! [ Better late than never ] From gambas at ...1... Mon Dec 14 21:45:09 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 14 Dec 2009 21:45:09 +0100 Subject: [Gambas-user] Financial program In-Reply-To: <4B269F5F.4050207@...626...> References: <61452b690912140732w6dd57e7fw1f3efe87082f0e46@...627...> <200912142049.08977.gambas@...1...> <4B269F5F.4050207@...626...> Message-ID: <200912142145.09382.gambas@...1...> > Beno?t Minisini a ?crit : > >> Beno?t Minisini a ?crit : > >>>> Fabien Bodard a ?crit : > >>>>> you have Laurux at http://laurux.fr/ > >>>>> > >>>>> but the code is not perfect has it was on the start a code learning > >>>>> programme.. but at the end it's a true accounting program... in > >>>>> french (Gb2) > >>>> > >>>> BTW, do you plan to have an equivalent of postgresql or python > >>>> decimal(n,n) into GB3? > >>>> It would be *very* interesting (otherwise you have to filter every > >>>> line through Format$) > >>>> > >>>> JY > >>> > >>> You mean a fixed-point decimal datatype? Or a currency datatype? > >> > >> A fixed-point decimal > >> > >>> It cannot be done in Gambas 3. So, in Gambas 4 ? > >> > >> Hu? > >> That's too bad because it is needed to ease accounting purposes. > > > > Why not storing currencies in cents, or fraction of cents, with a Long > > datatype? > > No, this is the best way to make mistakes (ie: invoice hardware with > 2 decimals, but invoice telephone seconds with 8 & connections w/ 3 or 4 > on the same invoice, oeuf corse). > > Format$ is not very useful because of conversions it involves. > > Using integer arithmetics is muuuch tooo slooow. > > So the less worse is still Format$. > I think you are mixing a lot of different things: - When storing a amount of money in memory, you store it in a Long integer in 1/10th of cents. For example, storing 1234,56? will be stored as 1234560. - When displaying an amount of money, you use Format$(), or your own function. - When getting an amount of money from the user, you have to convert a string into an amount of 1/10th of cents. - When getting an amount of money from the outside, or exporting an amount of money to the outside, you must use an standard exchange format based on a string. So I don't see any problem with that. Why are you talking about telephone seconds? We are talking about money, aren't we? Or there is something I didn't understand? -- Beno?t Minisini From john33 at ...2339... Mon Dec 14 22:09:05 2009 From: john33 at ...2339... (John) Date: Mon, 14 Dec 2009 17:09:05 -0400 Subject: [Gambas-user] Editor control In-Reply-To: <200912141825.57039.gambas@...1...> References: <4B266638.9080804@...2339...> <200912141825.57039.gambas@...1...> Message-ID: <4B26A971.9090708@...2339...> > Do you use Gambas 3 ? Do you use the latest revision ? > > That would have been useful information to add, sorry. I tried both Gambas 2.18 and Gambas 3 svn (updated today). > Editor.Flags[Editor.ShowModifiedLines] = False > Editor.Flags[Editor.ShowCurrentLine] = False > > Regards, > > That is what I was using, sorry if I am missing something basic. Here is what I tried, FMain has an Editor control named Editor1 and in the Form_Open Sub () Editor1.Text = File.Load("test.txt") Editor1.Flags[Editor.ShowModifiedLines] = False Editor1.Flags[Editor.ShowCurrentLine] = False End I wasn't sure if I needed Editor1.Reset, but tried it. Also I copied the Highlight example and tried to turn off ShowModifiedLines, still can't make it work. As soon as it loads a file the Editor1 background becomes white. Thanks, John From gambas at ...1... Mon Dec 14 22:39:00 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 14 Dec 2009 22:39:00 +0100 Subject: [Gambas-user] Editor control In-Reply-To: <4B26A971.9090708@...2339...> References: <4B266638.9080804@...2339...> <200912141825.57039.gambas@...1...> <4B26A971.9090708@...2339...> Message-ID: <200912142239.00247.gambas@...1...> > > Do you use Gambas 3 ? Do you use the latest revision ? > > That would have been useful information to add, sorry. I tried both > Gambas 2.18 and Gambas 3 svn (updated today). > > > Editor.Flags[Editor.ShowModifiedLines] = False > > Editor.Flags[Editor.ShowCurrentLine] = False > > > > Regards, > > That is what I was using, sorry if I am missing something basic. > > Here is what I tried, FMain has an Editor control named Editor1 and in the > Form_Open Sub () > Editor1.Text = File.Load("test.txt") > Editor1.Flags[Editor.ShowModifiedLines] = False > Editor1.Flags[Editor.ShowCurrentLine] = False > End > > I wasn't sure if I needed Editor1.Reset, but tried it. > > Also I copied the Highlight example and tried to turn off > ShowModifiedLines, still can't make it work. As soon as it loads a file > the Editor1 background becomes white. > > Thanks, > John > As for the background color, the Editor actually does not use it, it uses the background color defined in the highlighting style. So: Editor1.Styles[Highlight.Background].Background = Color.Yellow As for the flags, there are all off by default, so I don't understand why you want to set them off again. Regards, -- Beno?t Minisini From john33 at ...2339... Mon Dec 14 23:08:49 2009 From: john33 at ...2339... (John) Date: Mon, 14 Dec 2009 18:08:49 -0400 Subject: [Gambas-user] Editor control In-Reply-To: <200912142239.00247.gambas@...1...> References: <4B266638.9080804@...2339...> <200912141825.57039.gambas@...1...> <4B26A971.9090708@...2339...> <200912142239.00247.gambas@...1...> Message-ID: <4B26B771.8010800@...2339...> I thought that the Flags must have been on by default, with the highlight property set to none the background color changed when a line was modified. Thank you so much for straightening me out Beno?t. > As for the background color, the Editor actually does not use it, it uses the > background color defined in the highlighting style. > > So: Editor1.Styles[Highlight.Background].Background = Color.Yellow > > As for the flags, there are all off by default, so I don't understand why you > want to set them off again. > > Regards, > > From math.eber at ...221... Mon Dec 14 23:31:50 2009 From: math.eber at ...221... (Matti) Date: Mon, 14 Dec 2009 23:31:50 +0100 Subject: [Gambas-user] Financial Program Message-ID: <4B26BCD6.8080706@...221...> 1. "Accounting programs are very much underestimated." That's true, indeed. I know a lot of people who thought that accounting was a minor matter, bought some program and did something not knowing what they did. They all got big problems with the tax authorities. 2. Writing an accounting program is even worse. In accounting, there are so many VAT and income tax questions involved (that change almost daily). If you write an accounting program, you *really* have to know all the tax backgrounds. Which are different from country to country, of course. Beware! Matti From 12ukwn at ...626... Mon Dec 14 23:41:28 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Mon, 14 Dec 2009 23:41:28 +0100 Subject: [Gambas-user] Financial program In-Reply-To: <200912142145.09382.gambas@...1...> References: <61452b690912140732w6dd57e7fw1f3efe87082f0e46@...627...> <200912142049.08977.gambas@...1...> <4B269F5F.4050207@...626...> <200912142145.09382.gambas@...1...> Message-ID: <4B26BF18.6060501@...626...> Beno?t Minisini a ?crit : ... > I think you are mixing a lot of different things: > > - When storing a amount of money in memory, you store it in a Long integer in > 1/10th of cents. For example, storing 1234,56? will be stored as 123456 I'm gonna test that, but it implies more load of the DB server side to convert from one format to the other. > - When displaying an amount of money, you use Format$(), or your own function. > > - When getting an amount of money from the user, you have to convert a string > into an amount of 1/10th of cents. > > - When getting an amount of money from the outside, or exporting an amount of > money to the outside, you must use an standard exchange format based on a > string. This is not acceptable: DB must be able to directly process numbers, not to loose 95% of the time to convert a string to a number and vice versa (many of my process aren't done by GB but into stored procedures) > So I don't see any problem with that. Why are you talking about telephone > seconds? We are talking about money, aren't we? Or there is something I didn't > understand? Yep, but some amounts can have many more decimals than others (in telephony, seconds are usually invoiced with @ least 6 decimals and sometimes 8), so mixing that with other number of decimals isn't easy. This is why definable decimals numbers are so important. -- Q: How do you keep a moron in suspense? From gambas at ...1... Tue Dec 15 00:01:41 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 15 Dec 2009 00:01:41 +0100 Subject: [Gambas-user] Financial program In-Reply-To: <4B26BF18.6060501@...626...> References: <61452b690912140732w6dd57e7fw1f3efe87082f0e46@...627...> <200912142145.09382.gambas@...1...> <4B26BF18.6060501@...626...> Message-ID: <200912150001.41378.gambas@...1...> > Beno?t Minisini a ?crit : > ... > > > I think you are mixing a lot of different things: > > > > - When storing a amount of money in memory, you store it in a Long > > integer in 1/10th of cents. For example, storing 1234,56? will be stored > > as 123456 > > I'm gonna test that, but it implies more load of the DB server side to > convert from one format to the other. > > > - When displaying an amount of money, you use Format$(), or your own > > function. > > > > - When getting an amount of money from the user, you have to convert a > > string into an amount of 1/10th of cents. > > > > - When getting an amount of money from the outside, or exporting an > > amount of money to the outside, you must use an standard exchange format > > based on a string. > > This is not acceptable: DB must be able to directly process numbers, > not to loose 95% of the time to convert a string to a number and > vice versa (many of my process aren't done by GB but into stored > procedures) > "Outside" means "out of your control", or "out of the program internals". If it is a stored procedure you wrote, it will manipulate the integer values directly of course. But if you have to send or receive currencies from another program, you must use a standard exchange format. > > So I don't see any problem with that. Why are you talking about telephone > > seconds? We are talking about money, aren't we? Or there is something I > > didn't understand? > > Yep, but some amounts can have many more decimals than others (in > telephony, seconds are usually invoiced with @ least 6 decimals and > sometimes 8), so mixing that with other number of decimals isn't easy. > > This is why definable decimals numbers are so important. > Again we are talking about currencies. What's the matter with telephony seconds? If you want to say that you have to store 1/1000th of cents, ro more, just choose a more precise format. With a Long datatype and using 1/1000000th of currency unit (!), you can store up to 4,6 x 10^12 units. That should be enough. -- Beno?t Minisini From ronstk at ...239... Tue Dec 15 00:36:32 2009 From: ronstk at ...239... (Ron_1st) Date: Tue, 15 Dec 2009 00:36:32 +0100 Subject: [Gambas-user] Financial program In-Reply-To: <4B26BF18.6060501@...626...> References: <61452b690912140732w6dd57e7fw1f3efe87082f0e46@...627...> <200912142145.09382.gambas@...1...> <4B26BF18.6060501@...626...> Message-ID: <200912150036.33074.ronstk@...239...> On Monday 14 December 2009, Jean-Yves F. Barbier wrote: > Beno?t Minisini a ?crit : > ... > > I think you are mixing a lot of different things: > > > > - When storing a amount of money in memory, you store it in a Long integer in > > 1/10th of cents. For example, storing 1234,56? will be stored as 123456 > > I'm gonna test that, but it implies more load of the DB server side to > convert from one format to the other. It is not a matter of the DB server to calculate. Its the presentation only, the matter of the frontend program. Adding integers a amount in 1/10th of cents stored is more quick then adding floating point numbers that must be handled to and back from the co-processor. In fact your gambas program does not use that co-proc but a library to do the job in software in most cases. Only special programs handle this arithmetic direct to the co-proc. > > > - When displaying an amount of money, you use Format$(), or your own function. > > > > - When getting an amount of money from the user, you have to convert a string > > into an amount of 1/10th of cents. > > > > - When getting an amount of money from the outside, or exporting an amount of > > money to the outside, you must use an standard exchange format based on a > > string. > > This is not acceptable: DB must be able to directly process numbers, > not to loose 95% of the time to convert a string to a number and > vice versa (many of my process aren't done by GB but into stored > procedures) A DB server is _just_ losing time if the numbers are in floats and not in integer. It have to first normalize the numbers before it can do the arithmetics. And I'm almost on safe that it also _just_ use a slow library instead of the co-proc. > > > So I don't see any problem with that. Why are you talking about telephone > > seconds? We are talking about money, aren't we? Or there is something I didn't > > understand? > > Yep, but some amounts can have many more decimals than others (in telephony, > seconds are usually invoiced with @ least 6 decimals and sometimes 8), so > mixing that with other number of decimals isn't easy. Almost every accounting program works with at least 8 decimals for the fractional part. Only at the last step, the presentation the rounding to 2 decimals for currency is/should done. > > This is why definable decimals numbers are so important. > I do agree it can be handy to have but there is no absolute need. However if we talking about scientific calculations then it would/can be a complete different case. In my view a database is for storage of information/numbers. The handling/calculation of the stored data is the job for the end application. In my good old times I made some floating point programs on a Z80 CPU. No support for floats or co-procs available (or acceptable price). I did just what Benoit suggest and worked with 1/100 of a cent and at the last step the round to 2 decimals in Dutch Giuilder. Later I got a request to implement the co-proc and the customer was disapointed about the drop in speed as result. The max bit size was 16 bit for add/subtract so I had to make my own routines for 4 times 16 bit wide. Was interesting job to do. Anyway I feel a bit with your for the request. It can make simple apps more ease to develop. Best regards, Ron_1st -- 111.111111 x 111.111111 = 12345.678987654321 From ronstk at ...239... Tue Dec 15 00:38:35 2009 From: ronstk at ...239... (Ron_1st) Date: Tue, 15 Dec 2009 00:38:35 +0100 Subject: [Gambas-user] Financial program In-Reply-To: <200912150001.41378.gambas@...1...> References: <61452b690912140732w6dd57e7fw1f3efe87082f0e46@...627...> <4B26BF18.6060501@...626...> <200912150001.41378.gambas@...1...> Message-ID: <200912150038.35368.ronstk@...239...> On Tuesday 15 December 2009, Beno?t Minisini wrote: > Again we are talking about currencies. What's the matter with telephony > seconds? If you want to say that you have to store 1/1000th of cents, ro more, > just choose a more precise format. With a Long datatype and using 1/1000000th > of currency unit (!), you can store up to 4,6 x 10^12 units. That should be > enough. > Thanks for the calculation. I hope never have to pay that amount :) :) Best regards, Ron_1st -- 111.111111 x 111.111111 = 12345.678987654321 From nando_f at ...951... Tue Dec 15 01:07:01 2009 From: nando_f at ...951... (nando) Date: Mon, 14 Dec 2009 19:07:01 -0500 Subject: [Gambas-user] Financial program In-Reply-To: <200912150038.35368.ronstk@...239...> References: <61452b690912140732w6dd57e7fw1f3efe87082f0e46@...627...> <4B26BF18.6060501@...626...> <200912150001.41378.gambas@...1...> <200912150038.35368.ronstk@...239...> Message-ID: <20091215000120.M69324@...951...> My contribution to this conversation is.. Always INT or LONG for money. Keep a global variable to divide by (for example 2 decimal places) 100 when printing/displaying things to humans... -OR- to take the string and insert a period for cents (North America) Make a really nice SUB to return a formatted string is good. It is the utmost importance not to use FLOAT from the beginning because calculations will be wrong after a while and it will not balance. You will have headaches!!! -Fernando ---------- Original Message ----------- From: "Ron_1st" To: gambas-user at lists.sourceforge.net Sent: Tue, 15 Dec 2009 00:38:35 +0100 Subject: Re: [Gambas-user] Financial program > On Tuesday 15 December 2009, Beno?t Minisini wrote: > > Again we are talking about currencies. What's the matter with telephony > > seconds? If you want to say that you have to store 1/1000th of cents, ro more, > > just choose a more precise format. With a Long datatype and using 1/1000000th > > of currency unit (!), you can store up to 4,6 x 10^12 units. That should be > > enough. > > > > Thanks for the calculation. I hope never have to pay that amount :) :) > > Best regards, > > Ron_1st > > -- > > 111.111111 x 111.111111 = 12345.678987654321 > > ------------------------------------------------------------------------------ > Return on Information: > Google Enterprise Search pays you back > Get the facts. > http://p.sf.net/sfu/google-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From doriano.blengino at ...1909... Tue Dec 15 08:19:42 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Tue, 15 Dec 2009 08:19:42 +0100 Subject: [Gambas-user] Financial program In-Reply-To: <20091215000120.M69324@...951...> References: <61452b690912140732w6dd57e7fw1f3efe87082f0e46@...627...> <4B26BF18.6060501@...626...> <200912150001.41378.gambas@...1...> <200912150038.35368.ronstk@...239...> <20091215000120.M69324@...951...> Message-ID: <4B27388E.8060203@...1909...> nando ha scritto: > My contribution to this conversation is.. > Always INT or LONG for money. > Keep a global variable to divide by (for example 2 decimal places) 100 > when printing/displaying things to humans... > -OR- to take the string and insert a period for cents (North America) > Make a really nice SUB to return a formatted string is good. > It is the utmost importance not to use FLOAT from the beginning > because calculations will be wrong after a while and it will not balance. > You will have headaches!!! > You are perfectly true. It seems that floating point does not like base 10 numbers... :-) But here comes in place the power of a programming language; a good language is a wrapper around bad or annoying things. All we love gambas because it is easy to construct user interface. But there would be no necessity of its power - one can write external functions and interface to X11 directly... So when you tell me "don't use floats for accounting" I agree. When you say "use a global variable to divide", "insert a decimal point" and so on, I think "100% of gambas users want to use graphical interfaces, while only 2% of them want to use financial capabilities. So, that 2% must live with a language not very suitable for accounting". "Use long integers, divide them, use format$()..." is the reply from Benoit. Does someone remember the Cobol? With a simple declaration "picture 99.9999" it created a datatype and managed all the roundings and conversions on that datatype; this was the power of that language. I don't say that gambas should implement this, but it would not hurt... it is a matter of choice; I understand that this kind of things is difficult to implement (or, who knows... with OO programming... but the really hard part is the mixing of different types in the same expression). The most important application I've written with gambas is something similar to a financial one. I faced problems with gridviews, tableviews, formats, roundings... all the things we are speaking about just now, and they are not yet fully solved. I think that the way you describe is a hard work, even if it is the only possible at the moment. Regards, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From 12ukwn at ...626... Tue Dec 15 09:32:12 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Tue, 15 Dec 2009 09:32:12 +0100 Subject: [Gambas-user] Financial program In-Reply-To: <4B27388E.8060203@...1909...> References: <61452b690912140732w6dd57e7fw1f3efe87082f0e46@...627...> <4B26BF18.6060501@...626...> <200912150001.41378.gambas@...1...> <200912150038.35368.ronstk@...239...> <20091215000120.M69324@...951...> <4B27388E.8060203@...1909...> Message-ID: <4B27498C.4090403@...626...> Doriano Blengino a ?crit : ... > while only 2% of them want to use financial capabilities. So, that 2% > must live with a language not very suitable for accounting". "Use long > integers, divide them, use format$()..." is the reply from Benoit. Does > someone remember the Cobol? With a simple declaration "picture 99.9999" > it created a datatype and managed all the roundings and conversions on > that datatype; this was the power of that language. I don't say that Don't burry Cobol too fast: for banking *only*, this year will be around 5 milliards Cobol written lines (progression is an avg of 14% per year). This kinda feature was also stollen from Cobol to be used in dBase, which was a great boost for DBs into programming world. > gambas should implement this, but it would not hurt... it is a matter of > choice; I understand that this kind of things is difficult to implement > (or, who knows... with OO programming... but the really hard part is the > mixing of different types in the same expression). I totally agree: this also would make the difference between a nice GUI maker and a mature graphical language. That's what I was trying to explain (with no such fortune though.) > The most important application I've written with gambas is something > similar to a financial one. I faced problems with gridviews, tableviews, Yeah: THIS is why I don't wanna store other things than decimal(n,n); furthermore, the more you have transformations the less chances you have to avoid bugs (especially sneaky ones). > formats, roundings... all the things we are speaking about just now, and > they are not yet fully solved. I think that the way you describe is a > hard work, even if it is the only possible at the moment. I totally Dorianonize :D JY -- Law of Probable Dispersal: Whatever it is that hits the fan will not be evenly distributed. From doriano.blengino at ...1909... Tue Dec 15 10:19:52 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Tue, 15 Dec 2009 10:19:52 +0100 Subject: [Gambas-user] Financial program In-Reply-To: <4B27498C.4090403@...626...> References: <61452b690912140732w6dd57e7fw1f3efe87082f0e46@...627...> <4B26BF18.6060501@...626...> <200912150001.41378.gambas@...1...> <200912150038.35368.ronstk@...239...> <20091215000120.M69324@...951...> <4B27388E.8060203@...1909...> <4B27498C.4090403@...626...> Message-ID: <4B2754B8.4030007@...1909...> Jean-Yves F. Barbier ha scritto: > Doriano Blengino a ?crit : > ... > >> while only 2% of them want to use financial capabilities. So, that 2% >> must live with a language not very suitable for accounting". "Use long >> integers, divide them, use format$()..." is the reply from Benoit. Does >> someone remember the Cobol? With a simple declaration "picture 99.9999" >> it created a datatype and managed all the roundings and conversions on >> that datatype; this was the power of that language. I don't say that >> > > Don't burry Cobol too fast: for banking *only*, this year will be around > 5 milliards Cobol written lines (progression is an avg of 14% per year). > This is a proof that well designed things get a long life. Ok, cobol was invented exactly for that purpose - sadness is that nobody else seem to care much about those good things. And money is the gas (citation from a popular rock song :-)) of the world... >> gambas should implement this, but it would not hurt... it is a matter of >> choice; I understand that this kind of things is difficult to implement >> (or, who knows... with OO programming... but the really hard part is the >> mixing of different types in the same expression). >> > > I totally agree: this also would make the difference between a nice GUI > maker and a mature graphical language. > That's what I was trying to explain (with no such fortune though.) > You was more lucky than me, because you was replied "perhaps in gambas 4"; when was my turn to ask, Benoit replied "I will not implement currency type in gambas". Stop. What an irony... someone who hates money and financial programs (me) has to be knocked down for a request about currency... But on the side of the possible implementation in gambas, it is a really hard work. I thought a little about the question, not necessarily to propose changes in gambas, but to solve the problems in my application. A new class, which does rounding and formatting could work. Something like "dim subtotal as new currency(4,3)" would instantiate a variable with three decimals, stored as a long integer. "subtotal.picture" would return a string representation, "subtotal.picture(12)" would return a space-leaded string of 12 characters, with the formatted number aligned to the right. "subtotal.multiply()" would multiply numbers, and so on. Other methods would be required to interface to databases. This is the OO way to implement what nando suggested. The problem is that calculi would be no more expressed in the usual, plain way, but in an unnatural way: "totalinvoice=amount+vat" would turn in "totalinvoice.set(amount, vat). After the first look, this could be something one can live with. But overloadable operators would be very appreciated to improve readability and, if impossible, compiler macro at least would help. You can walk around the problem as much as you want, and you finish with forcing a language to do things it never was planned to do. The same as complex numbers in C - you can use them, but what a bore! And, in fact, python supports complex numbers natively. I must experiment a little with this idea, but I suspect that new classes for every textual gui element would be needed, and it is this part which scares me. I wrote some new components for this, and they work, but they have some quirks I don't understand well. And... I really hate accounting programs... Uhm... I just readed back the mail about the "calculi" part. The "picturednumber" class could evaluate a string... so "totalinvoice=amount+vat" could be written as "totalinvoice.setTo("amount+vat")... double work, but double result... the only problem is that the compiler can not check for the correctness of the expression. Problems again. Regards, Doriano From 12ukwn at ...626... Tue Dec 15 11:36:51 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Tue, 15 Dec 2009 11:36:51 +0100 Subject: [Gambas-user] Financial program In-Reply-To: <4B2754B8.4030007@...1909...> References: <61452b690912140732w6dd57e7fw1f3efe87082f0e46@...627...> <4B26BF18.6060501@...626...> <200912150001.41378.gambas@...1...> <200912150038.35368.ronstk@...239...> <20091215000120.M69324@...951...> <4B27388E.8060203@...1909...> <4B27498C.4090403@...626...> <4B2754B8.4030007@...1909...> Message-ID: <4B2766C3.9070009@...626...> Doriano Blengino a ?crit : >> Don't burry Cobol too fast: for banking *only*, this year will be around >> 5 milliards Cobol written lines (progression is an avg of 14% per year). >> > This is a proof that well designed things get a long life. Ok, cobol was > invented exactly for that purpose - sadness is that nobody else seem to > care much about those good things. And money is the gas (citation from a > popular rock song :-)) of the world... This isn't really true: part of my family owns a company that sell pastry products (additives etc), their ERP run under UNIX and VT100 consoles and is entirely written in Cobol. Many mid to large companies use Cobol, and have problems to find programmers interested into this language - so there are good days left for those who care. ADA is also growing because of its very specialized variable definitions possibilities. ... > You was more lucky than me, because you was replied "perhaps in gambas > 4"; when was my turn to ask, Benoit replied "I will not implement > currency type in gambas". Stop. What an irony... someone who hates money > and financial programs (me) has to be knocked down for a request about > currency... I don't like it either, but there are places to take with good programs. > But on the side of the possible implementation in gambas, it is a really > hard work. I thought a little about the question, not necessarily to > propose changes in gambas, but to solve the problems in my application. > A new class, which does rounding and formatting could work. Something > like "dim subtotal as new currency(4,3)" would instantiate a variable > with three decimals, stored as a long integer. "subtotal.picture" would > return a string representation, "subtotal.picture(12)" would return a > space-leaded string of 12 characters, with the formatted number aligned > to the right. "subtotal.multiply()" would multiply numbers, and so on. > Other methods would be required to interface to databases. > This is the OO way to implement what nando suggested. The problem is > that calculi would be no more expressed in the usual, plain way, but in > an unnatural way: "totalinvoice=amount+vat" would turn in > "totalinvoice.set(amount, vat). After the first look, this could be > something one can live with. But overloadable operators would be very > appreciated to improve readability and, if impossible, compiler macro at > least would help. You can walk around the problem as much as you want, > and you finish with forcing a language to do things it never was planned > to do. The same as complex numbers in C - you can use them, but what a > bore! And, in fact, python supports complex numbers natively. This is even more complicated - ie: fr law say that precision of VAT rates is 4 decimals, and as I said before, some items can be invoiced with a large number of decimals. For VAT, more than 2 decimals had never been used but could be tomorrow; so this is an entire int2decimal processor to write (as you wrote, no more than 2 members to multiply because of that:( > I must experiment a little with this idea, but I suspect that new > classes for every textual gui element would be needed, and it is this > part which scares me. I wrote some new components for this, and they > work, but they have some quirks I don't understand well. And... I really > hate accounting programs... > > Uhm... I just readed back the mail about the "calculi" part. The > "picturednumber" class could evaluate a string... so > "totalinvoice=amount+vat" could be written as > "totalinvoice.setTo("amount+vat")... double work, but double result... > the only problem is that the compiler can not check for the correctness > of the expression. Problems again. I lost too much time with things like that and now strongly consider to interface all calculation to Python and only keep GB as a GUI. This shouldn't add that many things to the system: as of Linux, Python is a std install, as of Debian, this will only require a few packages to add (AND it'll solve docs templates, PDF generation and some other dead-ends) Regards, JY -- Don't get even -- get odd! From pinozollo at ...626... Tue Dec 15 12:16:54 2009 From: pinozollo at ...626... (Pino Zollo) Date: Tue, 15 Dec 2009 08:16:54 -0300 Subject: [Gambas-user] Bambas <---> Python Message-ID: <200912150816.55180.pinozollo@...626...> >I lost too much time with things like that and now strongly consider >to interface all calculation to Python and only keep GB as a GUI. >This shouldn't add that many things to the system: as of Linux, Python >is a std install, as of Debian, this will only require a few packages >to add (AND it'll solve docs templates, PDF generation and some other >dead-ends) >Regards, >JY I am interested in that !! Please JY how can I do it ? Can you provide an example ? Python interfaces to FORTRAN and I would like to call from Gambas some FORTRAN routines. Regards Pino -- Key ID: 0xF6768208 Key fingerprint = B16D 0A7C 5B29 A334 CE6A 71F6 EAF8 3D88 F676 8208 Key server: hkp://wwwkeys.eu.pgp.net From norarg at ...2311... Tue Dec 15 12:31:51 2009 From: norarg at ...2311... (Norarg) Date: Tue, 15 Dec 2009 08:31:51 -0300 Subject: [Gambas-user] Financial program In-Reply-To: <4B27388E.8060203@...1909...> References: <61452b690912140732w6dd57e7fw1f3efe87082f0e46@...627...> <4B26BF18.6060501@...626...> <200912150001.41378.gambas@...1...> <200912150038.35368.ronstk@...239...> <20091215000120.M69324@...951...> <4B27388E.8060203@...1909...> Message-ID: Doriano Blengino schrieb: > nando ha scritto: > >> My contribution to this conversation is.. >> Always INT or LONG for money. >> Keep a global variable to divide by (for example 2 decimal places) 100 >> when printing/displaying things to humans... >> -OR- to take the string and insert a period for cents (North America) >> Make a really nice SUB to return a formatted string is good. >> It is the utmost importance not to use FLOAT from the beginning >> because calculations will be wrong after a while and it will not balance. >> You will have headaches!!! >> >> > You are perfectly true. It seems that floating point does not like base > 10 numbers... :-) > > But here comes in place the power of a programming language; a good > language is a wrapper around bad or annoying things. All we love gambas > because it is easy to construct user interface. But there would be no > necessity of its power - one can write external functions and interface > to X11 directly... > > So when you tell me "don't use floats for accounting" I agree. When you > say "use a global variable to divide", "insert a decimal point" and so > on, I think "100% of gambas users want to use graphical interfaces, > while only 2% of them want to use financial capabilities. So, that 2% > must live with a language not very suitable for accounting". "Use long > integers, divide them, use format$()..." is the reply from Benoit. Does > someone remember the Cobol? With a simple declaration "picture 99.9999" > it created a datatype and managed all the roundings and conversions on > that datatype; this was the power of that language. I don't say that > gambas should implement this, but it would not hurt... it is a matter of > choice; I understand that this kind of things is difficult to implement > (or, who knows... with OO programming... but the really hard part is the > mixing of different types in the same expression). > > The most important application I've written with gambas is something > similar to a financial one. I faced problems with gridviews, tableviews, > formats, roundings... all the things we are speaking about just now, and > they are not yet fully solved. I think that the way you describe is a > hard work, even if it is the only possible at the moment. > > Regards, > > Hi I remember Cobol, it was very much used in the 80'es, and the company in which I was employed at that time used it for all commercial software. Then C got more and more modern to use, and one had to write a lot of functions to get the same results - in the accounting-context. Cobol had its own "database", just datafiles, it did not have to convert anything from any SQL-Server, and as far as I can remember, it stored the data without any floats - the picture 9.99 just told it where to set the decimalpoint. regards From doriano.blengino at ...1909... Tue Dec 15 12:37:12 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Tue, 15 Dec 2009 12:37:12 +0100 Subject: [Gambas-user] Financial program In-Reply-To: <4B2766C3.9070009@...626...> References: <61452b690912140732w6dd57e7fw1f3efe87082f0e46@...627...> <4B26BF18.6060501@...626...> <200912150001.41378.gambas@...1...> <200912150038.35368.ronstk@...239...> <20091215000120.M69324@...951...> <4B27388E.8060203@...1909...> <4B27498C.4090403@...626...> <4B2754B8.4030007@...1909...> <4B2766C3.9070009@...626...> Message-ID: <4B2774E8.6060401@...1909...> Jean-Yves F. Barbier ha scritto: > Doriano Blengino a ?crit : > >>> Don't burry Cobol too fast: for banking *only*, this year will be around >>> 5 milliards Cobol written lines (progression is an avg of 14% per year). >>> >>> >> This is a proof that well designed things get a long life. Ok, cobol was >> invented exactly for that purpose - sadness is that nobody else seem to >> care much about those good things. And money is the gas (citation from a >> popular rock song :-)) of the world... >> > > This isn't really true: part of my family owns a company that sell pastry > products (additives etc), their ERP run under UNIX and VT100 consoles > and is entirely written in Cobol. > Many mid to large companies use Cobol, and have problems to find programmers > interested into this language - so there are good days left for those who care. > I was intending that nobody steals good ideas from cobol. I know that cobol is still used but, I think, it is an old language. Dream: a really good language having some properties of cobol, and specialized GUI widgets where you bind the variable (with picture, limits, precision and so on) to a widget. Probably Java and Python are already able to do so, but they have other limits. Another problem I often face is that of preferences. I make a nicely customizable program, with lot of preferences, and for every preference I have to put a widget on a form, load its content from a file, rewrite its content to the file, and so on. Simply boring. > ADA is also growing because of its very specialized variable definitions > possibilities. > A strongness inherited from pascal... I gave a look to many, countless languages, and only few met my own requirements - strong typization, good compiler checks, overloading and, of course!, OO model. One of these was Ada. But I rejected all C- and Java- flavoured. Irony again... C language is the one I use most... > >> But on the side of the possible implementation in gambas, it is a really >> hard work. I thought a little about the question, not necessarily to >> propose changes in gambas, but to solve the problems in my application. >> A new class, which does rounding and formatting could work. Something >> like "dim subtotal as new currency(4,3)" would instantiate a variable >> with three decimals, stored as a long integer. "subtotal.picture" would >> return a string representation, "subtotal.picture(12)" would return a >> space-leaded string of 12 characters, with the formatted number aligned >> to the right. "subtotal.multiply()" would multiply numbers, and so on. >> Other methods would be required to interface to databases. >> This is the OO way to implement what nando suggested. The problem is >> that calculi would be no more expressed in the usual, plain way, but in >> an unnatural way: "totalinvoice=amount+vat" would turn in >> "totalinvoice.set(amount, vat). After the first look, this could be >> something one can live with. But overloadable operators would be very >> appreciated to improve readability and, if impossible, compiler macro at >> least would help. You can walk around the problem as much as you want, >> and you finish with forcing a language to do things it never was planned >> to do. The same as complex numbers in C - you can use them, but what a >> bore! And, in fact, python supports complex numbers natively. >> > > This is even more complicated - ie: fr law say that precision of VAT rates > is 4 decimals, and as I said before, some items can be invoiced with a > large number of decimals. > For VAT, more than 2 decimals had never been used but could be tomorrow; > so this is an entire int2decimal processor to write (as you wrote, no more > than 2 members to multiply because of that:( > I am not sure to understand. If you take an amount with 2 decimals of precision, you can calculate VAT with 4 decimal precision: dim amount as new currency(8,2) dim vatrate as new currency(2,4) dim vat as new currency(8,2) dim total as new currency(8,2) amount.calculate(....) vatrate.set(18.55) ' is this a percent, right? vat.calculate(amount % vatrate) total.calculate('amount+vat') Now a few things should be considered. The variable VAT has a precision of 2 decimals, but by invoking vat.calculate(...), a variable with precision 4 is passed in, so the calculus is made on 4 decimals and, just before storing the result to VAT, the rounding to 2 decimals is made (and the rounding is another interesting piece...). So we should have what we want: precision 4 in the rate, and precision 2 in money's variables. Not sure what to do in the inverse operation... taking out a 18.55% vat rate from a total, should give a correct amount and vat which, added together, should give the total again... funny to say, but a little harder to implement... but this could be just another method (I call it "scorporo", but I don't know how to say it in english). > >> >> Uhm... I just readed back the mail about the "calculi" part. The >> "picturednumber" class could evaluate a string... so >> "totalinvoice=amount+vat" could be written as >> "totalinvoice.setTo("amount+vat")... double work, but double result... >> the only problem is that the compiler can not check for the correctness >> of the expression. Problems again. >> > > I lost too much time with things like that and now strongly consider > to interface all calculation to Python and only keep GB as a GUI. > Betrayer! :-))) Why not interface to cobol directly, then? I don't think your way is viable - it would be even more "forcing a language to do things it never was planned for". I think you intend to call /usr/lib/libpython2.xx, perhaps through some wrapper class; interesting... may be this could solve the "expressions" issue... Regards, Doriano From 12ukwn at ...626... Tue Dec 15 12:39:47 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Tue, 15 Dec 2009 12:39:47 +0100 Subject: [Gambas-user] Bambas <---> Python In-Reply-To: <200912150816.55180.pinozollo@...626...> References: <200912150816.55180.pinozollo@...626...> Message-ID: <4B277583.9090106@...626...> Pino Zollo a ?crit : >> I lost too much time with things like that and now strongly consider >> to interface all calculation to Python and only keep GB as a GUI. > >> This shouldn't add that many things to the system: as of Linux, Python >> is a std install, as of Debian, this will only require a few packages >> to add (AND it'll solve docs templates, PDF generation and some other >> dead-ends) > >> Regards, >> JY > > I am interested in that !! > Please JY how can I do it ? Can you provide an example ? > > Python interfaces to FORTRAN and I would like to call from Gambas some FORTRAN > routines. Unfortunately, the only way I see now is to call a Python subroutine by SHELL or EXEC (but I'm terribly far away to know all about GB). This will look ugly, but it is the only way to take the best of the 2 worlds: GUI from GB, nice and accurate calculation from Python. Apart ugliness, benefits can be large: think about directly writing .XLS or .ODS or .PDF for your users, or use whatever templates systems you want to generate nifty docs :) Regards JY -- "He flung himself on his horse and rode madly off in all directions." From 12ukwn at ...626... Tue Dec 15 13:03:07 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Tue, 15 Dec 2009 13:03:07 +0100 Subject: [Gambas-user] Financial program In-Reply-To: <4B2774E8.6060401@...1909...> References: <61452b690912140732w6dd57e7fw1f3efe87082f0e46@...627...> <4B26BF18.6060501@...626...> <200912150001.41378.gambas@...1...> <200912150038.35368.ronstk@...239...> <20091215000120.M69324@...951...> <4B27388E.8060203@...1909...> <4B27498C.4090403@...626...> <4B2754B8.4030007@...1909...> <4B2766C3.9070009@...626...> <4B2774E8.6060401@...1909...> Message-ID: <4B277AFB.8070606@...626...> Doriano Blengino a ?crit : ... >> > A strongness inherited from pascal... I gave a look to many, countless hmm, I don't think Pascal can define vars as temperature[-10, +50] > languages, and only few met my own requirements - strong typization, > good compiler checks, overloading and, of course!, OO model. One of > these was Ada. But I rejected all C- and Java- flavoured. Irony again... > C language is the one I use most... Yes this is the PB, each one has pros & cons. ... >> I lost too much time with things like that and now strongly consider >> to interface all calculation to Python and only keep GB as a GUI. >> > Betrayer! :-))) No, this meets what you said above: no language is perfect, so the only solution is to take whatever you want in some of them (well, not some, 2) And I'm not a language integrist: I pick what fits my needs. > Why not interface to cobol directly, then? I don't think your way is > viable - it would be even more "forcing a language to do things it never > was planned for". I think you intend to call /usr/lib/libpython2.xx, > perhaps through some wrapper class; interesting... may be this could > solve the "expressions" issue... I'm far from a specialist, as a matter of fact I didn't used OO before (only C and ASM a looong time ago) so the only way I see to make a mix is to call external subroutines through SHELL or EXEC; but if you know other ways, I'm in. I don't wanna end up with terrible hacks, nor spend more time to develop something that already exists in another language: I need it to run the way I want in an easy (and maintenable) way - without headaches... Regards JY -- You are here: *** *** ********* ******* ***** *** * But you're not all there. From doriano.blengino at ...1909... Tue Dec 15 13:17:32 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Tue, 15 Dec 2009 13:17:32 +0100 Subject: [Gambas-user] Financial program In-Reply-To: <4B277AFB.8070606@...626...> References: <61452b690912140732w6dd57e7fw1f3efe87082f0e46@...627...> <4B26BF18.6060501@...626...> <200912150001.41378.gambas@...1...> <200912150038.35368.ronstk@...239...> <20091215000120.M69324@...951...> <4B27388E.8060203@...1909...> <4B27498C.4090403@...626...> <4B2754B8.4030007@...1909...> <4B2766C3.9070009@...626...> <4B2774E8.6060401@...1909...> <4B277AFB.8070606@...626...> Message-ID: <4B277E5C.3070208@...1909...> Jean-Yves F. Barbier ha scritto: > Doriano Blengino a ?crit : > ... > >>> >>> >> A strongness inherited from pascal... I gave a look to many, countless >> > > hmm, I don't think Pascal can define vars as temperature[-10, +50] > What do you mean precisely? Can you define the properties of such variable? > I'm far from a specialist, as a matter of fact I didn't used OO before > (only C and ASM a looong time ago) so the only way I see to make a mix > is to call external subroutines through SHELL or EXEC; but if you know > other ways, I'm in. > > I don't wanna end up with terrible hacks, nor spend more time to develop > something that already exists in another language: I need it to run the way > I want in an easy (and maintenable) way - without headaches... > *That* would be slow, very slooow. There are "external" declarations in gambas (I was admired when I saw them the first time). That should be the way to go. I used them to interface the LDAP library, and it worked. But it was a pain to manage pointers and memory in gambas, and probably there are several quirks in that work. If the python lib is written in C++ instead, then things get worse, so an EXEC is simpler for sure (but slow). I insist on the slowness because you insisted on that in an earlier mail. If you want to process thousands rows from a database, then the exec is guaranteed to be out of discussion. Regards, Doriano From rolf.frogs at ...221... Tue Dec 15 14:30:13 2009 From: rolf.frogs at ...221... (Rolf Schmidt) Date: Tue, 15 Dec 2009 14:30:13 +0100 Subject: [Gambas-user] Financial program In-Reply-To: <4B277E5C.3070208@...1909...> References: <61452b690912140732w6dd57e7fw1f3efe87082f0e46@...627...> <4B277AFB.8070606@...626...> <4B277E5C.3070208@...1909...> Message-ID: <200912151430.13630.rolf.frogs@...221...> Am Dienstag, 15. Dezember 2009 schrieb Doriano Blengino: > Jean-Yves F. Barbier ha scritto: > > Doriano Blengino a ??crit : > > ... > > > >> A strongness inherited from pascal... I gave a look to many, countless > > > > hmm, I don't think Pascal can define vars as temperature[-10, +50] > > What do you mean precisely? Can you define the properties of such variable? > > > I'm far from a specialist, as a matter of fact I didn't used OO before > > (only C and ASM a looong time ago) so the only way I see to make a mix > > is to call external subroutines through SHELL or EXEC; but if you know > > other ways, I'm in. > > > > I don't wanna end up with terrible hacks, nor spend more time to develop > > something that already exists in another language: I need it to run the > > way I want in an easy (and maintenable) way - without headaches... > > *That* would be slow, very slooow. > > There are "external" declarations in gambas (I was admired when I saw > them the first time). That should be the way to go. I used them to > interface the LDAP library, and it worked. But it was a pain to manage > pointers and memory in gambas, and probably there are several quirks in > that work. If the python lib is written in C++ instead, then things get > worse, so an EXEC is simpler for sure (but slow). I insist on the > slowness because you insisted on that in an earlier mail. If you want to > process thousands rows from a database, then the exec is guaranteed to > be out of discussion. Did you try to use the mp-lib (multi precision) from the gnu project. It is designed to make math cal the way we learnd at school, so its result are always correct at any depth of decimal fractions. I think they have a definition for the data/variables they need for the calculation. So define variables in their way, is a possibility how to implement a number class in gambas. Regards Rolf From gambas.fr at ...626... Tue Dec 15 14:30:50 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 15 Dec 2009 14:30:50 +0100 Subject: [Gambas-user] Financial program In-Reply-To: <4B277E5C.3070208@...1909...> References: <61452b690912140732w6dd57e7fw1f3efe87082f0e46@...627...> <200912150038.35368.ronstk@...239...> <20091215000120.M69324@...951...> <4B27388E.8060203@...1909...> <4B27498C.4090403@...626...> <4B2754B8.4030007@...1909...> <4B2766C3.9070009@...626...> <4B2774E8.6060401@...1909...> <4B277AFB.8070606@...626...> <4B277E5C.3070208@...1909...> Message-ID: <6324a42a0912150530o71d7cbeeq265252eb3fa02055@...627...> 2009/12/15 Doriano Blengino : > Jean-Yves F. Barbier ha scritto: >> Doriano Blengino a ?crit : >> ... >> >>>> >>>> >>> A strongness inherited from pascal... I gave a look to many, countless >>> >> >> hmm, I don't think Pascal can define vars as temperature[-10, +50] >> > What do you mean precisely? Can you define the properties of such variable? >> I'm far from a specialist, as a matter of fact I didn't used OO before >> (only C and ASM a looong time ago) so the only way I see to make a mix >> is to call external subroutines through SHELL or EXEC; but if you know >> other ways, I'm in. >> >> I don't wanna end up with terrible hacks, nor spend more time to develop >> something that already exists in another language: I need it to run the way >> I want in an easy (and maintenable) way - without headaches... >> > *That* would be slow, very slooow. > > There are "external" declarations in gambas (I was admired when I saw > them the first time). That should be the way to go. I used them to > interface the LDAP library, and it worked. But it was a pain to manage > pointers and memory in gambas, and probably there are several quirks in > that work. If the python lib is written in C++ instead, then things get > worse, so an EXEC is simpler for sure (but slow). I insist on the > slowness because you insisted on that in an earlier mail. If you want to > process thousands rows from a database, then the exec is guaranteed to > be out of discussion. And on the thouthen of accounting program code i've readen the majority use long or integer to store values. so they use integer to compute and in the database they store the printable value as string... Not many are using float, and those are beginner's ones... like mine :/ lol > > Regards, > Doriano > > ------------------------------------------------------------------------------ > Return on Information: > Google Enterprise Search pays you back > Get the facts. > http://p.sf.net/sfu/google-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From 12ukwn at ...626... Tue Dec 15 16:50:11 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Tue, 15 Dec 2009 16:50:11 +0100 Subject: [Gambas-user] Financial program In-Reply-To: <4B277E5C.3070208@...1909...> References: <61452b690912140732w6dd57e7fw1f3efe87082f0e46@...627...> <4B26BF18.6060501@...626...> <200912150001.41378.gambas@...1...> <200912150038.35368.ronstk@...239...> <20091215000120.M69324@...951...> <4B27388E.8060203@...1909...> <4B27498C.4090403@...626...> <4B2754B8.4030007@...1909...> <4B2766C3.9070009@...626...> <4B2774E8.6060401@...1909...> <4B277AFB.8070606@...626...> <4B277E5C.3070208@...1909...> Message-ID: <4B27B033.5030004@...626...> Doriano Blengino a ?crit : >>> A strongness inherited from pascal... I gave a look to many, countless >>> >> hmm, I don't think Pascal can define vars as temperature[-10, +50] >> > What do you mean precisely? Can you define the properties of such variable? means: var name of type = temperature, type = integer, can't go further its boundaries [-10, +50] ([-10.0, +50.0] would have a 1/10th degree precision and so on) ... >> I don't wanna end up with terrible hacks, nor spend more time to develop >> something that already exists in another language: I need it to run the way >> I want in an easy (and maintenable) way - without headaches... >> > *That* would be slow, very slooow. > > There are "external" declarations in gambas (I was admired when I saw > them the first time). That should be the way to go. I used them to > interface the LDAP library, and it worked. But it was a pain to manage > pointers and memory in gambas, and probably there are several quirks in > that work. If the python lib is written in C++ instead, then things get > worse, so an EXEC is simpler for sure (but slow). I insist on the > slowness because you insisted on that in an earlier mail. If you want to > process thousands rows from a database, then the exec is guaranteed to > be out of discussion. Ok, I drew the logical conclusion. Regards JY -- Never try to outstubborn a cat. -- Lazarus Long, "Time Enough for Love" From jussi.lahtinen at ...626... Tue Dec 15 16:52:56 2009 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Tue, 15 Dec 2009 17:52:56 +0200 Subject: [Gambas-user] Financial program In-Reply-To: <6324a42a0912150530o71d7cbeeq265252eb3fa02055@...627...> References: <61452b690912140732w6dd57e7fw1f3efe87082f0e46@...627...> <20091215000120.M69324@...951...> <4B27388E.8060203@...1909...> <4B27498C.4090403@...626...> <4B2754B8.4030007@...1909...> <4B2766C3.9070009@...626...> <4B2774E8.6060401@...1909...> <4B277AFB.8070606@...626...> <4B277E5C.3070208@...1909...> <6324a42a0912150530o71d7cbeeq265252eb3fa02055@...627...> Message-ID: <384d3900912150752m630e5923o60deb7c906473160@...627...> I don't like floats. They are slow, and bitchy; Dim n As Single n = 1.4 - 0.2 Print n And the result is 1.200000047684, which is obviously wrong from math point of view. Correcting floating point artifact, makes floats even slower. And it is surprisingly common to be able to use integers instead. Jussi On Tue, Dec 15, 2009 at 15:30, Fabien Bodard wrote: > 2009/12/15 Doriano Blengino : >> Jean-Yves F. Barbier ha scritto: >>> Doriano Blengino a ?crit : >>> ... >>> >>>>> >>>>> >>>> A strongness inherited from pascal... I gave a look to many, countless >>>> >>> >>> hmm, I don't think Pascal can define vars as temperature[-10, +50] >>> >> What do you mean precisely? Can you define the properties of such variable? >>> I'm far from a specialist, as a matter of fact I didn't used OO before >>> (only C and ASM a looong time ago) so the only way I see to make a mix >>> is to call external subroutines through SHELL or EXEC; but if you know >>> other ways, I'm in. >>> >>> I don't wanna end up with terrible hacks, nor spend more time to develop >>> something that already exists in another language: I need it to run the way >>> I want in an easy (and maintenable) way - without headaches... >>> >> *That* would be slow, very slooow. >> >> There are "external" declarations in gambas (I was admired when I saw >> them the first time). That should be the way to go. I used them to >> interface the LDAP library, and it worked. But it was a pain to manage >> pointers and memory in gambas, and probably there are several quirks in >> that work. If the python lib is written in C++ instead, then things get >> worse, so an EXEC is simpler for sure (but slow). I insist on the >> slowness because you insisted on that in an earlier mail. If you want to >> process thousands rows from a database, then the exec is guaranteed to >> be out of discussion. > > And on the thouthen of accounting program code i've readen the > majority use long or integer to store values. > ?so they use integer to compute and in the database they store the > printable value as string... > > Not many are using float, and those are beginner's ones... like mine :/ lol > >> >> Regards, >> Doriano >> >> ------------------------------------------------------------------------------ >> Return on Information: >> Google Enterprise Search pays you back >> Get the facts. >> http://p.sf.net/sfu/google-dev2dev >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > ------------------------------------------------------------------------------ > Return on Information: > Google Enterprise Search pays you back > Get the facts. > http://p.sf.net/sfu/google-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From doriano.blengino at ...1909... Tue Dec 15 17:26:53 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Tue, 15 Dec 2009 17:26:53 +0100 Subject: [Gambas-user] Financial program In-Reply-To: <4B27B033.5030004@...626...> References: <61452b690912140732w6dd57e7fw1f3efe87082f0e46@...627...> <4B26BF18.6060501@...626...> <200912150001.41378.gambas@...1...> <200912150038.35368.ronstk@...239...> <20091215000120.M69324@...951...> <4B27388E.8060203@...1909...> <4B27498C.4090403@...626...> <4B2754B8.4030007@...1909...> <4B2766C3.9070009@...626...> <4B2774E8.6060401@...1909...> <4B277AFB.8070606@...626...> <4B277E5C.3070208@...1909...> <4B27B033.5030004@...626...> Message-ID: <4B27B8CD.2080701@...1909...> Jean-Yves F. Barbier ha scritto: > Doriano Blengino a ?crit : > >>>> A strongness inherited from pascal... I gave a look to many, countless >>>> >>>> >>> hmm, I don't think Pascal can define vars as temperature[-10, +50] >>> >>> >> What do you mean precisely? Can you define the properties of such variable? >> > > means: var name of type = temperature, type = integer, can't go further > its boundaries [-10, +50] ([-10.0, +50.0] would have a 1/10th degree > precision and so on) > Pascal can do it on scalars: "type Tdegrees = -10..50;". The storage will be the minimum required (in this case, a shortint, or signed byte). If you turn range checking on, then assigning a value out of range raises a runtime error. If in your program you have such a wrong assignment from a constant expression, then the error will be detected at compile time (ie, the compiler is smart enough to detect this). This is the "old", standard pascal, where you can't do the same with real (floating) numbers because they are not scalar, so by definition they do not have ranges, so you can not define subranges (and this is a limit, dictated by "pureness" of original pascal). I think that ADA's very advanced declarations started from here, adding more capabilities (pascal has the same age as C). In more recent pascal you can overload everything (operators included), so you can get a step ahead; but "temperature := temperature+1" always means "increment of one unit". This is what is possible without OO. Using OO, you must instantiate every variable (because now they are objects), write methods and overload assignments and operators, and make exactly what you want even with precision 1/10th: writing "temperature := temperature+1" can lead to 1 degree of increment, or 1 tenth of degree: it depends on how you implement it. Regards, Doriano From klaine8 at ...626... Tue Dec 15 19:08:51 2009 From: klaine8 at ...626... (Kari Laine) Date: Tue, 15 Dec 2009 20:08:51 +0200 Subject: [Gambas-user] Financial program In-Reply-To: <4B27B8CD.2080701@...1909...> References: <61452b690912140732w6dd57e7fw1f3efe87082f0e46@...627...> <4B27388E.8060203@...1909...> <4B27498C.4090403@...626...> <4B2754B8.4030007@...1909...> <4B2766C3.9070009@...626...> <4B2774E8.6060401@...1909...> <4B277AFB.8070606@...626...> <4B277E5C.3070208@...1909...> <4B27B033.5030004@...626...> <4B27B8CD.2080701@...1909...> Message-ID: <61452b690912151008t25e9b7d1r3245d02ac7266c45@...627...> Hi, thank you for all the information. I also found a system made in Finland using PHP. It is called pupesoft and it's web-address is http://www.devlab.fi/pupesoft So now when I have time I will test all of these and see how they work. Best Regards Kari From gambas at ...1... Wed Dec 16 00:17:55 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 16 Dec 2009 00:17:55 +0100 Subject: [Gambas-user] About financial program in Gambas Message-ID: <200912160017.55108.gambas@...1...> Wow, what a big talk... I just want to explain a few points. 1) I didn't say that I don't want to implement a currency or fixed decimal datatype in Gambas 3. I just can't. The maximum number of native datatypes has been reached the way the datatype system works. So it needs a good bit of redesign in the interpreter. Think to the datatype conversion functions, that must be able to convert any datatype to any other. Its size is almost proportional to the square of the number of datatypes. All arithmetic functions must deal with all datatypes. And so on... I wanted to keep the interpreter small, so adding these features was never a priority. 2) In some languages, the datatype has a meaning in the way the data in stored in memory *and* in the way the data must be display on the screen. But not in Gambas. This is the reason I don't like declaration of fixed floating point values, that are just integers with a special multiplication and division. 3) Why nobody starts writing a Decimal class whose objects are fixed floating point values, with a lot of financial methods? That beast can be written in Gambas first, and then converted to a C component easily, as no library is needed to perform all the computation. But maybe using a already existing financial library is a better idea then. 4) Floating point values are computed in base 2. And, in base 2, 1/10 is like 1/3 in base 10. You cannot represent it with a finite precision. So: 1.4 - 0.2 = 1.200000047684 is perfectly valid with a Single datatype. You get the real value stored in memory. Regards, -- Beno?t Minisini From kevinfishburne at ...1887... Wed Dec 16 05:58:43 2009 From: kevinfishburne at ...1887... (kevinfishburne) Date: Tue, 15 Dec 2009 20:58:43 -0800 (PST) Subject: [Gambas-user] array declaration versus referencing array elements Message-ID: <26806307.post@...1379...> I have some code: PUBLIC myarray AS String[10000, 2] ... myarray[x, 0] = stuff myarray[x, 1] = morestuff myarray[x, 2] = evenmorestuff and receive an "out of bounds" error message when referencing the third array element assignment (myarray[x, 2] = evenmorestuff). I can only assume that the array declaration defines the total number of elements and that referencing the array elements starts at zero. In other possibly more confusing words: PUBLIC myarray AS String[10000, 2] = 10000x2 total elements and myarray[x,y] = myarray[0-9999,0-1] I think my confusion may have come from my old VB6 days with "OPTION BASE" and all that crapola. Someone please confirm that GAMBAS works as I speculated or let me know if I'm missing something. Thanks all. ----- Kevin Fishburne, Eight Virtues www: http://sales.eightvirtues.com http://sales.eightvirtues.com e-mail: mailto:sales at ...1887... sales at ...1887... phone: (770) 853-6271 -- View this message in context: http://old.nabble.com/array-declaration-versus-referencing-array-elements-tp26806307p26806307.html Sent from the gambas-user mailing list archive at Nabble.com. From doriano.blengino at ...1909... Wed Dec 16 06:57:39 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Wed, 16 Dec 2009 06:57:39 +0100 Subject: [Gambas-user] array declaration versus referencing array elements In-Reply-To: <26806307.post@...1379...> References: <26806307.post@...1379...> Message-ID: <4B2876D3.8050306@...1909...> kevinfishburne ha scritto: > I have some code: > > PUBLIC myarray AS String[10000, 2] > ... > myarray[x, 0] = stuff > myarray[x, 1] = morestuff > myarray[x, 2] = evenmorestuff > > and receive an "out of bounds" error message when referencing the third > array element assignment (myarray[x, 2] = evenmorestuff). > > I can only assume that the array declaration defines the total number of > elements and that referencing the array elements starts at zero. In other > possibly more confusing words: > > PUBLIC myarray AS String[10000, 2] = 10000x2 total elements > > and > > myarray[x,y] = myarray[0-9999,0-1] > > I think my confusion may have come from my old VB6 days with "OPTION BASE" > and all that crapola. Someone please confirm that GAMBAS works as I > speculated or let me know if I'm missing something. Thanks all. > > I think you posed a question and replied to it by yourself... :-) The upper bound, 2 in this case, declares the number of elements, as in C, and those elements are numbered from 0 to 1. This idea is common in many other places; for example, all .Count properties say how many elements are in the object (columns in a gridview, elements in a collection...), but you address those elements from 0 to Count-1. Regards, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From kevinfishburne at ...1887... Wed Dec 16 07:05:07 2009 From: kevinfishburne at ...1887... (kevinfishburne) Date: Tue, 15 Dec 2009 22:05:07 -0800 (PST) Subject: [Gambas-user] SDL component documentation In-Reply-To: <6324a42a0912050227o585af93fl97a288a4e6bd9a9@...627...> References: <26603936.post@...1379...> <6324a42a0912050227o585af93fl97a288a4e6bd9a9@...627...> Message-ID: <26806675.post@...1379...> Fabien Bodard-4 wrote: > > gb.sdl is incomplete ... in fact Laurent have begin to redraw all the > gb.sdl lib by using OpenGl... but ... still incomplete ... i think the > lack of users on this lib mess his enthusiasm > Hi Fabien, I agree with your comments. I'm guessing that GAMBAS 3 is still in alpha/beta since I haven't seen any releases on the download page. I am looking forward to it and hope it's fairly downward-compatible so GAMBAS 2 apps will run in it. That's good to hear that the new SDL component will be rewritten using OpenGL. I think the only thing GAMBAS is currently missing is a robust high-level 2D and 3D graphics library. While an OpenGL wrapper is cool, having to write 10 or more lines of code to create a single polygon probably doesn't help most people. I think it's also important to consider that GAMBAS need not necessarily implement literal wrappers for SDL or OpenGL, but rather its own unique flavor of 2D and 3D routines aimed squarely at delivering practical and efficient results. The spirit of GAMBAS surely is to write effective apps quickly and with respect to modern object-oriented programming conventions, all using a language that is easy and familiar to BASIC-loving developers. In that spirit a higher-level graphics component fits right in. Here's my two cents for what a 2D graphics library might include: * Graphics Buffers ** Allow creation of buffers in video memory (hardware accelerated) to store images ** Allow multiple buffers with different properties *** Define width and height *** Define RGB bit-depth (8, 16, 24, 32, etc.) *** Define alpha-channel bit-depth (0, 2, 4, 8, etc.) * Image Loading ** Allow loading of different file types into a graphics buffer (PNG, GIF, JPG, etc.) ** Allow loading file into specific location (x1,y1) of the buffer * Bit Blitting ** Allow copying one region of a graphics buffer (x1,y1,x2,y2) to another graphics buffer (x1,y1) ** Allow arbitrary rotation when copying a region from one buffer to another ** Allow arbitrary scaling when copying a region from one buffer to another ** Allow "downsampling" and "upsampling" when copying a region to a buffer with a different bit-depth ** Allow global alpha modifier multiplied by the existing region's alpha channel (will allow a region to be faded in or faded out, preserving its existing alpha channel) * Effects Processing ** Allow various effects (brightness, contrast, hue, saturation, gaussian blur, etc.) ** Allow the results of the effects, when necessary, to extend beyond the region in the buffer they were applied to I think a 2D graphics component is far more useful than a 3D component, as it will appeal to a wider developer base. 3D graphics require more work and more skill, therefore most programmers would be more adept at 2D graphics than 3D. While 3D is important, it should be relegated to being more seriously-developed only after a robust 2D library has been implemented. I wish I could contribute more but will have to settle for posting in the forums and developing GAMBAS apps that hopefully people will find useful or fun. I'm very good at graphics and documentation, so if anyone has any tasks that need to be done that they think I could do (or help me do by acting as an intermediary with the source code) please let me know. ----- Kevin Fishburne, Eight Virtues www: http://sales.eightvirtues.com http://sales.eightvirtues.com e-mail: mailto:sales at ...1887... sales at ...1887... phone: (770) 853-6271 -- View this message in context: http://old.nabble.com/SDL-component-documentation-tp26603936p26806675.html Sent from the gambas-user mailing list archive at Nabble.com. From kevinfishburne at ...1887... Wed Dec 16 07:35:15 2009 From: kevinfishburne at ...1887... (kevinfishburne) Date: Tue, 15 Dec 2009 22:35:15 -0800 (PST) Subject: [Gambas-user] Need a Ubuntu/Linux teacher In-Reply-To: <1260016783.1880.16.camel@...2329...> References: <1260016783.1880.16.camel@...2329...> Message-ID: <26806834.post@...1379...> John-679 wrote: > > Hi All > I am new to Linux. I am using Ubuntu 9.10. > What I am looking for is a kind person to help me off line with Linux > and Ubuntu. > Hi John. I develop and sell Linux-based desktop and laptop PCs for a living and have been using Linux exclusively for about three years. I supported Windows for seven years at a couple of mortgage companies so I unfortunately also come from a strong Windows background. Linux is certainly a different beast, and while the previous posters' comments are valid and useful you may contact me if you'd like to rapidly get the "gist" of the way Linux works, or to figure out how to do something specific quickly. Feel free to call or email. If you don't receive an answer please leave a voicemail and a callback number and I'll return your call. Have a good week, and welcome to Linux and GAMBAS. ----- Kevin Fishburne, Eight Virtues www: http://sales.eightvirtues.com http://sales.eightvirtues.com e-mail: mailto:sales at ...1887... sales at ...1887... phone: (770) 853-6271 -- View this message in context: http://old.nabble.com/Need-a-Ubuntu-Linux-teacher-tp26655310p26806834.html Sent from the gambas-user mailing list archive at Nabble.com. From kevinfishburne at ...1887... Wed Dec 16 07:46:14 2009 From: kevinfishburne at ...1887... (kevinfishburne) Date: Tue, 15 Dec 2009 22:46:14 -0800 (PST) Subject: [Gambas-user] array declaration versus referencing array elements In-Reply-To: <4B2876D3.8050306@...1909...> References: <26806307.post@...1379...> <4B2876D3.8050306@...1909...> Message-ID: <26806900.post@...1379...> Doriano Blengino wrote: > > I think you posed a question and replied to it by yourself... :-) > Hi Doriano. That is super funny. ;) Yes, I was more or less looking for confirmation of the behaviour and hoping to provide a reference for anyone else who may have been similarly confused and searching the forum/list. I searched for "out of bounds" and didn't find an answer, neither was it in the "array declaration" section of the documentation. Sadly I think my mind was poisoned by VB's convention, leading to my confusion. Glad to hear it follows sensible convention and ignored VB's arbitrary logic. I'm paranoid about my code and don't like to leave much to uncertainty. ----- Kevin Fishburne, Eight Virtues www: http://sales.eightvirtues.com http://sales.eightvirtues.com e-mail: mailto:sales at ...1887... sales at ...1887... phone: (770) 853-6271 -- View this message in context: http://old.nabble.com/array-declaration-versus-referencing-array-elements-tp26806307p26806900.html Sent from the gambas-user mailing list archive at Nabble.com. From eilert-sprachen at ...221... Wed Dec 16 08:38:32 2009 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Wed, 16 Dec 2009 08:38:32 +0100 Subject: [Gambas-user] Showing ps files Message-ID: <4B288E78.3010906@...221...> Good morning everyone, just a small question: Is there a control which could show the contents of postscript files? Maybe even scaled, so I could implement a preview and a bigger reading screen? If not, I guess this would mean calling an external application for it which would make this whole thing less handy. Thanks for your ideas. Rolf From oceanosoftlapalma at ...626... Wed Dec 16 08:40:22 2009 From: oceanosoftlapalma at ...626... (=?ISO-8859-1?Q?Ricardo_D=EDaz_Mart=EDn?=) Date: Wed, 16 Dec 2009 07:40:22 +0000 Subject: [Gambas-user] About financial program in Gambas In-Reply-To: <200912160017.55108.gambas@...1...> References: <200912160017.55108.gambas@...1...> Message-ID: Hi to all, I'm use gambas to write ERP applications. At the first, I got the same problem but I decided to use long integer to save currency values. First rigth two digits are always showed to users as decimal values. I'm rewrited all my apps from windows to gambas and they are working now with no problems in customers servers. I allways use a function to show values in controls in app's forms that convert database fields values showed in textboxes whose name started int dbcur (p.e. dbcurVAT) to value div 100 and works with no problems. I use allways the same function to write forms data to database and make the reverse proccess. Its simple and works 2009/12/15 Beno?t Minisini > Wow, what a big talk... > > I just want to explain a few points. > > 1) I didn't say that I don't want to implement a currency or fixed decimal > datatype in Gambas 3. I just can't. The maximum number of native datatypes > has > been reached the way the datatype system works. So it needs a good bit of > redesign in the interpreter. Think to the datatype conversion functions, > that > must be able to convert any datatype to any other. Its size is almost > proportional to the square of the number of datatypes. All arithmetic > functions must deal with all datatypes. And so on... I wanted to keep the > interpreter small, so adding these features was never a priority. > > 2) In some languages, the datatype has a meaning in the way the data in > stored > in memory *and* in the way the data must be display on the screen. But not > in > Gambas. This is the reason I don't like declaration of fixed floating point > values, that are just integers with a special multiplication and division. > > 3) Why nobody starts writing a Decimal class whose objects are fixed > floating > point values, with a lot of financial methods? That beast can be written in > Gambas first, and then converted to a C component easily, as no library is > needed to perform all the computation. But maybe using a already existing > financial library is a better idea then. > > 4) Floating point values are computed in base 2. And, in base 2, 1/10 is > like > 1/3 in base 10. You cannot represent it with a finite precision. So: > > 1.4 - 0.2 = 1.200000047684 > > is perfectly valid with a Single datatype. You get the real value stored in > memory. > > Regards, > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and > easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From kc_ooi82 at ...43... Wed Dec 16 09:45:21 2009 From: kc_ooi82 at ...43... (Me) Date: Wed, 16 Dec 2009 00:45:21 -0800 (PST) Subject: [Gambas-user] Parallel Port Programming in Gambas Message-ID: <262892.86860.qm@...2344...> Hi all, I am new to Gambas 2.16 and also Ubuntu 9.04. I trying to write a Gambas program to control parallel port's input/output in Ubuntu. For example, Switch parallel port pin 2 to on or off. >From How To Use Parallel Port http://gambasdoc.org/help/howto/parport Solution 1: opening /dev/port with OPEN and read/write at a specific location. Solution 2: Based on a C library named 'parapin' For solution 2, how Gambas can access the parapin library? Thank you in advance. New Email names for you! Get the Email name you've always wanted on the new @ymail and @rocketmail. Hurry before someone else does! http://mail.promotions.yahoo.com/newdomains/aa/ From 12ukwn at ...626... Wed Dec 16 10:23:35 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Wed, 16 Dec 2009 10:23:35 +0100 Subject: [Gambas-user] About financial program in Gambas In-Reply-To: References: <200912160017.55108.gambas@...1...> Message-ID: <4B28A717.30802@...626...> Ricardo D?az Mart?n a ?crit : > Hi to all, > > I'm use gambas to write ERP applications. At the first, I got the same > problem but I decided to use long integer to save currency values. First > rigth two digits are always showed to users as decimal values. > > I'm rewrited all my apps from windows to gambas and they are working now > with no problems in customers servers. > > I allways use a function to show values in controls in app's forms that > convert database fields values showed in textboxes whose name started int > dbcur (p.e. dbcurVAT) to value div 100 and works with no problems. I use > allways the same function to write forms data to database and make the > reverse proccess. Hooo, thanks for the ad. > Its simple and works Sounds exactly like the commercial about women thin down cream we've got on tv for months (it works!) (sorry, I couldn't resist:) So you're truncating everything to 2 decimals, but as I said VAT (and as a matter of fact almost all french taxes) is *legally* up to 4 decimals; actually only 2 of them are used, but nothing's saying that tomorrow is won't be 3 or 4 really used (especially on those times where our gov morons (pleonasm) are desesperatly looking for money.) BTW, how do you truncate 19.99657? Down to 19.99 or up to 20.00? In my family's company a cent error is worth ?100,000 fine... Other PB: most of results could be predictable (as of Nb of decimals), but some can't (ie: 92.95x1.196=111.1682 OR 145x1.196=173.42), maths says decimals should be dN1+dN2=5 but in these cases we only have 4 and 2 because of non-significant right zeroes, so you can't obviously truncate by adding the comma counting 5 from the right. One of the most used manner to get a selling price is to use a coefficient which has many decimals (usually a real), how do you determine where to put the comma in the resultant number?? I see the possibilities, but AFAIK this is a full processor to write based on a complex numbers model, not to mention error possibilities have a tremendous cataclysmic potential in a matter where tax administration will be more than happy to chop your head and piss on your brain (yeah, they're like that here: when they come it is not to search, it is to find; no matter if has real justification or not.) But may be I'm totally mistaking: I always have had PBs with simple things. JY -- God is real, unless declared integer. From gambas.fr at ...626... Wed Dec 16 11:03:50 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 16 Dec 2009 11:03:50 +0100 Subject: [Gambas-user] Showing ps files In-Reply-To: <4B288E78.3010906@...221...> References: <4B288E78.3010906@...221...> Message-ID: <6324a42a0912160203h47bbc956mcaee11254ea457af@...627...> use an external application like ghostscript and include it with embedder control 2009/12/16 Rolf-Werner Eilert : > Good morning everyone, > > just a small question: Is there a control which could show the contents > of postscript files? Maybe even scaled, so I could implement a preview > and a bigger reading screen? > > If not, I guess this would mean calling an external application for it > which would make this whole thing less handy. > > Thanks for your ideas. > > Rolf > > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From oceanosoftlapalma at ...626... Wed Dec 16 11:46:40 2009 From: oceanosoftlapalma at ...626... (=?ISO-8859-1?Q?Ricardo_D=EDaz_Mart=EDn?=) Date: Wed, 16 Dec 2009 10:46:40 +0000 Subject: [Gambas-user] About financial program in Gambas In-Reply-To: <4B28A717.30802@...626...> References: <200912160017.55108.gambas@...1...> <4B28A717.30802@...626...> Message-ID: Jean, You can use numbers of decimal as you want. I you want 4 you only need to divide by 1000. The only you need to decide on before insert data. If you need to add more decimals in future you only have to modify a parameter in your app from 2 to 4 (functions that show from database/write to database currency values must read this values before show/write info) and update your database multiplying cur fields by 100 (to add two digit more of precision) You never need truncate any value if you always use this especial currency type. For example if you set decimals to 4, number 19.99657 is no possible. If you need to get selling prices using four decimal coefficient, define coefficient as a currency type and set your app to use 4 decimal for all "currency" values I hope this helps you 2009/12/16 Jean-Yves F. Barbier <12ukwn at ...626...> > Ricardo D?az Mart?n a ?crit : > > Hi to all, > > > > I'm use gambas to write ERP applications. At the first, I got the same > > problem but I decided to use long integer to save currency values. First > > rigth two digits are always showed to users as decimal values. > > > > I'm rewrited all my apps from windows to gambas and they are working now > > with no problems in customers servers. > > > > I allways use a function to show values in controls in app's forms that > > convert database fields values showed in textboxes whose name started int > > dbcur (p.e. dbcurVAT) to value div 100 and works with no problems. I use > > allways the same function to write forms data to database and make the > > reverse proccess. > > Hooo, thanks for the ad. > > > Its simple and works > > Sounds exactly like the commercial about women thin down cream we've > got on tv for months (it works!) (sorry, I couldn't resist:) > > So you're truncating everything to 2 decimals, but as I said VAT (and as > a matter of fact almost all french taxes) is *legally* up to 4 decimals; > actually only 2 of them are used, but nothing's saying that tomorrow > is won't be 3 or 4 really used (especially on those times where our > gov morons (pleonasm) are desesperatly looking for money.) > > BTW, how do you truncate 19.99657? Down to 19.99 or up to 20.00? > In my family's company a cent error is worth ?100,000 fine... > > Other PB: most of results could be predictable (as of Nb of decimals), > but some can't (ie: 92.95x1.196=111.1682 OR 145x1.196=173.42), > maths says decimals should be dN1+dN2=5 but in these cases we only have > 4 and 2 because of non-significant right zeroes, so you can't obviously > truncate by adding the comma counting 5 from the right. > One of the most used manner to get a selling price is to use a coefficient > which has many decimals (usually a real), how do you determine where to > put the comma in the resultant number?? > > I see the possibilities, but AFAIK this is a full processor to write > based on a complex numbers model, not to mention error possibilities > have a tremendous cataclysmic potential in a matter where tax > administration will be more than happy to chop your head and piss > on your brain (yeah, they're like that here: when they come it is > not to search, it is to find; no matter if has real justification or not.) > > But may be I'm totally mistaking: I always have had PBs with simple > things. > > JY > -- > God is real, unless declared integer. > > > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and > easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Wed Dec 16 11:52:15 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 16 Dec 2009 11:52:15 +0100 Subject: [Gambas-user] SDL component documentation In-Reply-To: <26806675.post@...1379...> References: <26603936.post@...1379...> <6324a42a0912050227o585af93fl97a288a4e6bd9a9@...627...> <26806675.post@...1379...> Message-ID: <6324a42a0912160252l6f8a48f2nf646397848861240@...627...> 2009/12/16 kevinfishburne : > > > Fabien Bodard-4 wrote: >> >> gb.sdl is incomplete ... in fact Laurent have begin to redraw all the >> gb.sdl lib by using OpenGl... but ... still incomplete ... i think the >> lack of users on this lib mess his enthusiasm >> > > Hi Fabien, I agree with your comments. I'm guessing that GAMBAS 3 is still > in alpha/beta since I haven't seen any releases on the download page. I am > looking forward to it and hope it's fairly downward-compatible so GAMBAS 2 > apps will run in it. > > That's good to hear that the new SDL component will be rewritten using > OpenGL. I think the only thing GAMBAS is currently missing is a robust > high-level 2D and 3D graphics library. While an OpenGL wrapper is cool, > having to write 10 or more lines of code to create a single polygon probably > doesn't help most people. I think it's also important to consider that > GAMBAS need not necessarily implement literal wrappers for SDL or OpenGL, > but rather its own unique flavor of 2D and 3D routines aimed squarely at > delivering practical and efficient results. i think too , so a good look at blitz will be interesring, Blitz 2D, Blitz Max > The spirit of GAMBAS surely is to write effective apps quickly and with > respect to modern object-oriented programming conventions, all using a > language that is easy and familiar to BASIC-loving developers. In that > spirit a higher-level graphics component fits right in. Here's my two cents > for what a 2D graphics library might include: > > * Graphics Buffers > ** Allow creation of buffers in video memory (hardware accelerated) to store > images > ** Allow multiple buffers with different properties > *** Define width and height > *** Define RGB bit-depth (8, 16, 24, 32, etc.) > *** Define alpha-channel bit-depth (0, 2, 4, 8, etc.) > > * Image Loading > ** Allow loading of different file types into a graphics buffer (PNG, GIF, > JPG, etc.) > ** Allow loading file into specific location (x1,y1) of the buffer > > * Bit Blitting > ** Allow copying one region of a graphics buffer (x1,y1,x2,y2) to another > graphics buffer (x1,y1) > ** Allow arbitrary rotation when copying a region from one buffer to another > ** Allow arbitrary scaling when copying a region from one buffer to another > ** Allow "downsampling" and "upsampling" when copying a region to a buffer > with a different bit-depth > ** Allow global alpha modifier multiplied by the existing region's alpha > channel (will allow a region to be faded in or faded out, preserving its > existing alpha channel) > > * Effects Processing > ** Allow various effects (brightness, contrast, hue, saturation, gaussian > blur, etc.) > ** Allow the results of the effects, when necessary, to extend beyond the > region in the buffer they were applied to > > I think a 2D graphics component is far more useful than a 3D component, as > it will appeal to a wider developer base. 3D graphics require more work and > more skill, therefore most programmers would be more adept at 2D graphics > than 3D. While 3D is important, it should be relegated to being more > seriously-developed only after a robust 2D library has been implemented. > > I wish I could contribute more but will have to settle for posting in the > forums and developing GAMBAS apps that hopefully people will find useful or > fun. I'm very good at graphics and documentation, so if anyone has any tasks > that need to be done that they think I could do (or help me do by acting as > an intermediary with the source code) please let me know. > > ----- > Kevin Fishburne, Eight Virtues > www: ?http://sales.eightvirtues.com http://sales.eightvirtues.com > e-mail: ?mailto:sales at ...1887... sales at ...1887... > phone: (770) 853-6271 > -- > View this message in context: http://old.nabble.com/SDL-component-documentation-tp26603936p26806675.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Wed Dec 16 11:56:28 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 16 Dec 2009 11:56:28 +0100 Subject: [Gambas-user] signal SIGSEGV, Segmentation fault when using database example with ODDBC to a MSSQL Database In-Reply-To: <000701ca7cca$87a13ed0$96e3bc70$@net> References: <000701ca7cca$87a13ed0$96e3bc70$@net> Message-ID: <200912161156.28663.gambas@...1...> > Problem #11 when using ODBC to connect to a remote database running on MS > SQL Server 2000. > > > > I can connect to the database and run queries using tsql from a terminal > and isql from a root terminal and I can connect using odbc in Gambas2 if > the ide is started from a root terminal but not if started from the > programme shortcut. > > > > I have a small utility to run queries on a SQL server, display the results > and optionally export them as a csv file. As soon as the programme gets to > the line where the query is assigned to a Result the programme crashes with > a #11. This behaviour is identical if running the Database Sample. The > connection is opened. connection.opened is True when tested in debug mode. > The line where the error occurs in the sample is:- > > > > rData = $hConn.Exec(txtRequest.Text) > > > > which is the same as the one in my application where the programme crashes > > > > PUBLIC SUB FillGrid(ctl AS Control, cnn AS Connection, sqlstr AS String) > > DIM datout AS Result, i AS Integer, j AS Integer > > > > datout = cnn.Exec(sqlstr) The line the crash occurs > > > > The version of gambas2 is 2.18.0 > > The kernel is Linux 2.6.31.5-127/fc12.x86_64 > > System is > > Memory 3.8 GiB > > Proc 0 AMD Athlon(tm) X2 Dual Core processor 5200+ > > Proc 1 AMD Athlon(tm) X2 Dual Core processor 5200+ > > > > The query is executed as can be seen from the output from Wireshark > included after the debug output. > > > > Thanks > > > > Tony > > > > Debug data and Wireshark output from running the Database Sample Programme. > > > > [root at ...2341... Database]# cd /usr/share/gambas2/examples/Database/Database > > [root at ...2341... Database]# gbc2 -agt > > OK > > [root at ...2341... Database]# gdb gbx2 > > GNU gdb (GDB) Fedora (7.0-8.fc12) > > Copyright (C) 2009 Free Software Foundation, Inc. > > License GPLv3+: GNU GPL version 3 or later > > > This is free software: you are free to change and redistribute it. > > There is NO WARRANTY, to the extent permitted by law. Type "show copying" > > and "show warranty" for details. > > This GDB was configured as "x86_64-redhat-linux-gnu". > > For bug reporting instructions, please see: > > ... > > Reading symbols from /usr/bin/gbx2...(no debugging symbols found)...done. > > Missing separate debuginfos, use: debuginfo-install > gambas2-runtime-2.18.0-1.fc12.x86_64 > > (gdb) set args -p > > (gdb) run > > Starting program: /usr/bin/gbx2 -p > > [Thread debugging using libthread_db enabled] > > > > Program received signal SIGSEGV, Segmentation fault. > > 0x0000003b3a27978c in free () from /lib64/libc.so.6 > > (gdb) bt > > #0 0x0000003b3a27978c in free () from /lib64/libc.so.6 > > #1 0x00000000004050f1 in sinh () > > #2 0x00007fffefe013aa in SQLDisconnect () > > from /usr/lib64/gambas2/gb.db.odbc.so > > #3 0x00007fffefe03a28 in ?? () from /usr/lib64/gambas2/gb.db.odbc.so > > #4 0x00007ffff7408da2 in ?? () from /usr/lib64/gambas2/gb.db.so > > #5 0x00007ffff740975f in ?? () from /usr/lib64/gambas2/gb.db.so > > #6 0x00007ffff74063c7 in ?? () from /usr/lib64/gambas2/gb.db.so > > #7 0x0000000000408b32 in sinh () > > #8 0x000000000040952f in sinh () > > #9 0x000000000042eea5 in sinh () > > #10 0x0000000000409cf5 in sinh () > > #11 0x0000000000409fac in sinh () > > #12 0x000000000041c4c9 in sinh () > > #13 0x000000000041ce79 in sinh () > > #14 0x00007ffff797edca in g_io_channel_unref () > > from /usr/lib64/gambas2/gb.gtk.so > > #15 0x000000324020ba8e in g_closure_invoke () from > /lib64/libgobject-2.0.so.0 > > #16 0x0000003240220ec3 in ?? () from /lib64/libgobject-2.0.so.0 > > #17 0x0000003240222259 in g_signal_emit_valist () > > from /lib64/libgobject-2.0.so.0 > > #18 0x00000032402227a3 in g_signal_emit () from /lib64/libgobject-2.0.so.0 > > #19 0x000000324468d615 in ?? () from /usr/lib64/libgtk-x11-2.0.so.0 > > ---Type to continue, or q to quit--- > > #20 0x000000324020ba8e in g_closure_invoke () from > /lib64/libgobject-2.0.so.0 > > #21 0x00000032402207dc in ?? () from /lib64/libgobject-2.0.so.0 > > #22 0x0000003240222259 in g_signal_emit_valist () > > from /lib64/libgobject-2.0.so.0 > > #23 0x00000032402227a3 in g_signal_emit () from /lib64/libgobject-2.0.so.0 > > #24 0x000000324468be77 in ?? () from /usr/lib64/libgtk-x11-2.0.so.0 > > #25 0x0000003244753903 in ?? () from /usr/lib64/libgtk-x11-2.0.so.0 > > #26 0x000000324020ba8e in g_closure_invoke () from > /lib64/libgobject-2.0.so.0 > > #27 0x0000003240220b8d in ?? () from /lib64/libgobject-2.0.so.0 > > #28 0x00000032402220ec in g_signal_emit_valist () > > from /lib64/libgobject-2.0.so.0 > > #29 0x00000032402227a3 in g_signal_emit () from /lib64/libgobject-2.0.so.0 > > #30 0x0000003244875a9f in ?? () from /usr/lib64/libgtk-x11-2.0.so.0 > > #31 0x000000324474a664 in gtk_propagate_event () > > from /usr/lib64/libgtk-x11-2.0.so.0 > > #32 0x000000324474b7a3 in gtk_main_do_event () > > from /usr/lib64/libgtk-x11-2.0.so.0 > > #33 0x00007ffff798c627 in ?? () from /usr/lib64/gambas2/gb.gtk.so > > #34 0x000000324625f7fc in ?? () from /usr/lib64/libgdk-x11-2.0.so.0 > > #35 0x000000323fe3922e in g_main_context_dispatch () > > from /lib64/libglib-2.0.so.0 > > #36 0x000000323fe3cc18 in ?? () from /lib64/libglib-2.0.so.0 > > #37 0x000000323fe3cd3a in g_main_context_iteration () > > ---Type to continue, or q to quit--- > > from /lib64/libglib-2.0.so.0 > > #38 0x000000324474bb1d in gtk_main_iteration_do () > > from /usr/lib64/libgtk-x11-2.0.so.0 > > #39 0x00007ffff798a85a in g_io_channel_unref () > > from /usr/lib64/gambas2/gb.gtk.so > > #40 0x00007ffff798aec9 in ?? () from /usr/lib64/gambas2/gb.gtk.so > > #41 0x0000000000422274 in sinh () > > #42 0x0000003b3a21eb1d in __libc_start_main () from /lib64/libc.so.6 > > #43 0x0000000000403a99 in sinh () > > #44 0x00007fffffffe598 in ?? () > > #45 0x000000000000001c in ?? () > > #46 0x0000000000000002 in ?? () > > #47 0x00000000008548d8 in ?? () > > #48 0x00007fffffffe80f in ?? () > > #49 0x0000000000000000 in ?? () > > > Can you compile gambas 2 from sources with debugging information enabled? This way you will get a useful backtrace that will tell where exactly the program fails. Thanks in advance. Regards, -- Beno?t Minisini From les at ...2337... Tue Dec 15 22:57:04 2009 From: les at ...2337... (Les Hardy) Date: Tue, 15 Dec 2009 21:57:04 +0000 Subject: [Gambas-user] Cannot save a gif image In-Reply-To: <384d3900912150752m630e5923o60deb7c906473160@...627...> References: <61452b690912140732w6dd57e7fw1f3efe87082f0e46@...627...> <20091215000120.M69324@...951...> <4B27388E.8060203@...1909...> <4B27498C.4090403@...626...> <4B2754B8.4030007@...1909...> <4B2766C3.9070009@...626...> <4B2774E8.6060401@...1909...> <4B277AFB.8070606@...626...> <4B277E5C.3070208@...1909...> <6324a42a0912150530o71d7cbeeq265252eb3fa02055@...627...> <384d3900912150752m630e5923o60deb7c906473160@...627...> Message-ID: <4B280630.90000@...2337...> Can anyone tell me how to save a gif image. I can save other images, but not gifs gambas 2.18 on ubuntu 9.04 Regards Les Hardy From norarg at ...2311... Wed Dec 16 15:56:25 2009 From: norarg at ...2311... (Norarg) Date: Wed, 16 Dec 2009 11:56:25 -0300 Subject: [Gambas-user] problems with core functions In-Reply-To: <4B288E78.3010906@...221...> References: <4B288E78.3010906@...221...> Message-ID: hi I am struggling with some nasty little things.. when I select a text or a part of a text in a textbox, and I want to copy this or paste from clipboard, the usual way is to use ctrl-c, ctrl-v. well, every software I know has a button too, making this possible. I tried to use the Desktop.Sendkeys, which works with "\t" f.ex., but I can not figure out how to send ctrl-c - tried ({[CTRL]C}) and ({[CTRL_L]C}). In the manual I get the information, all keys are defined in /usr/include/X11/keysymdef.h - but this file does not exist on my system in this folder. Will be thankful for any help. Then I tried with .SelStart and .SelLenght to get the string - that was not accepted at all, get "unknown symbol". It would be nice, if I could get this two different functions to work. thanks and regards norarg From jussi.lahtinen at ...626... Wed Dec 16 16:44:47 2009 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 16 Dec 2009 17:44:47 +0200 Subject: [Gambas-user] Cannot save a gif image In-Reply-To: <4B280630.90000@...2337...> References: <61452b690912140732w6dd57e7fw1f3efe87082f0e46@...627...> <4B27498C.4090403@...626...> <4B2754B8.4030007@...1909...> <4B2766C3.9070009@...626...> <4B2774E8.6060401@...1909...> <4B277AFB.8070606@...626...> <4B277E5C.3070208@...1909...> <6324a42a0912150530o71d7cbeeq265252eb3fa02055@...627...> <384d3900912150752m630e5923o60deb7c906473160@...627...> <4B280630.90000@...2337...> Message-ID: <384d3900912160744q3092b2e7rfa83a56d7dd13655@...627...> Save gif from where? Please show your code you are using to save other image formats. Jussi On Tue, Dec 15, 2009 at 23:57, Les Hardy wrote: > Can anyone tell me how to save a gif image. > I can save other images, but ?not gifs > > gambas 2.18 on ubuntu 9.04 > > Regards > Les Hardy > > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From oceanosoftlapalma at ...626... Wed Dec 16 17:00:39 2009 From: oceanosoftlapalma at ...626... (=?ISO-8859-1?Q?Ricardo_D=EDaz_Mart=EDn?=) Date: Wed, 16 Dec 2009 16:00:39 +0000 Subject: [Gambas-user] problems with core functions In-Reply-To: References: <4B288E78.3010906@...221...> Message-ID: use Clipboard.Copy("Text you want copy") and Clipboard.Paste() http://gambasdoc.org/help/comp/gb.qt/clipboard 2009/12/16 Norarg > hi > > I am struggling with some nasty little things.. > when I select a text or a part of a text in a textbox, and I want to > copy this or paste from clipboard, the usual way is to use ctrl-c, > ctrl-v. well, every software I know has a button too, making this > possible. I tried to use the Desktop.Sendkeys, which works with "\t" > f.ex., but I can not figure out how to send ctrl-c - tried ({[CTRL]C}) > and ({[CTRL_L]C}). In the manual I get the information, all keys are > defined in /usr/include/X11/keysymdef.h - but this file does not exist > on my system in this folder. Will be thankful for any help. > > Then I tried with .SelStart and .SelLenght to get the string - that was > not accepted at all, get "unknown symbol". > > > It would be nice, if I could get this two different functions to work. > > thanks and regards > norarg > > > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and > easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Wed Dec 16 20:18:51 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 16 Dec 2009 20:18:51 +0100 Subject: [Gambas-user] Cannot save a gif image In-Reply-To: <384d3900912160744q3092b2e7rfa83a56d7dd13655@...627...> References: <61452b690912140732w6dd57e7fw1f3efe87082f0e46@...627...> <4B2754B8.4030007@...1909...> <4B2766C3.9070009@...626...> <4B2774E8.6060401@...1909...> <4B277AFB.8070606@...626...> <4B277E5C.3070208@...1909...> <6324a42a0912150530o71d7cbeeq265252eb3fa02055@...627...> <384d3900912150752m630e5923o60deb7c906473160@...627...> <4B280630.90000@...2337...> <384d3900912160744q3092b2e7rfa83a56d7dd13655@...627...> Message-ID: <6324a42a0912161118m48a6e8aagb5d1d6cd35b49c83@...627...> have you libgif installed ? 2009/12/16 Jussi Lahtinen : > Save gif from where? > Please show your code you are using to save other image formats. > > Jussi > > > On Tue, Dec 15, 2009 at 23:57, Les Hardy wrote: >> Can anyone tell me how to save a gif image. >> I can save other images, but ?not gifs >> >> gambas 2.18 on ubuntu 9.04 >> >> Regards >> Les Hardy >> >> ------------------------------------------------------------------------------ >> This SF.Net email is sponsored by the Verizon Developer Community >> Take advantage of Verizon's best-in-class app development support >> A streamlined, 14 day to market process makes app distribution fast and easy >> Join now and get one step closer to millions of Verizon customers >> http://p.sf.net/sfu/verizon-dev2dev >> _______________________________________________ >> 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 Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jguardon at ...2035... Wed Dec 16 20:35:50 2009 From: jguardon at ...2035... (Jesus Guardon) Date: Wed, 16 Dec 2009 20:35:50 +0100 Subject: [Gambas-user] Custom error class Message-ID: <4B293696.8060408@...2035...> Hi all Perhaps this is an stupid question, but I'm confused at this point: I'm trying to implement a custom error message window with information about an error raised within a CATCH clause, using the Error class from Gambas. Here is the code I'm not able to get it working: _The error form 'FError'_ PRIVATE $error AS String PUBLIC SUB Form_Open() ME.Center txtError.Clear txtError.Text = $error END PUBLIC SUB showError(myError AS Error) $error &= "[Error]\n" & myError.Text $error &= "\n[Where]\n" & myError.Where $error &= "\n[Backtrace]\n" & myError.Backtrace ME.ShowModal END PUBLIC SUB btnOk_Click() IF chkReport THEN ' TODO report error to a remote db ENDIF ME.Close END _Calling in a sub after CATCH_ CATCH FEerror.showError(Error) ----- First of all, it is not possible to write "Error" keyword between the two parenthesis, being formatted into "ERROR", syntactically wrong. If I enclose the 'Error' keyword between curly brackets, as in FErrors.showError({Error}) , no syntax error is raised, but a Gambas error saying "Type mismatch: wanted Error, got Class instead". What am I doing wrong, or is it possible to use this class the way I'm doing? Help appreciated! Regards, Jes?s From les at ...2337... Wed Dec 16 20:55:20 2009 From: les at ...2337... (Les Hardy) Date: Wed, 16 Dec 2009 19:55:20 +0000 Subject: [Gambas-user] Cannot save a gif image In-Reply-To: <6324a42a0912161118m48a6e8aagb5d1d6cd35b49c83@...627...> References: <61452b690912140732w6dd57e7fw1f3efe87082f0e46@...627...> <4B2754B8.4030007@...1909...> <4B2766C3.9070009@...626...> <4B2774E8.6060401@...1909...> <4B277AFB.8070606@...626...> <4B277E5C.3070208@...1909...> <6324a42a0912150530o71d7cbeeq265252eb3fa02055@...627...> <384d3900912150752m630e5923o60deb7c906473160@...627...> <4B280630.90000@...2337...> <384d3900912160744q3092b2e7rfa83a56d7dd13655@...627...> <6324a42a0912161118m48a6e8aagb5d1d6cd35b49c83@...627...> Message-ID: <4B293B28.2060001@...2337...> Yes, I have libgif-4.1.6-6. I tried reinstalling all image libraries that I could find. Still no good. Regards Les Hardy Fabien Bodard wrote: > have you libgif installed ? > > 2009/12/16 Jussi Lahtinen : > >> Save gif from where? >> Please show your code you are using to save other image formats. >> >> Jussi >> >> >> On Tue, Dec 15, 2009 at 23:57, Les Hardy wrote: >> >>> Can anyone tell me how to save a gif image. >>> I can save other images, but not gifs >>> >>> gambas 2.18 on ubuntu 9.04 >>> >>> Regards >>> Les Hardy >>> >>> From norarg at ...2311... Wed Dec 16 21:08:37 2009 From: norarg at ...2311... (Norarg) Date: Wed, 16 Dec 2009 17:08:37 -0300 Subject: [Gambas-user] problems with core functions In-Reply-To: References: <4B288E78.3010906@...221...> Message-ID: hi, thanks, but how do I get this "Text I want to copy", it is selected, but somehow I have to make a string of it, before sending it to the clipboard. Somewhere I have seen SelStart, SelLength with Gambas, but just can not find that part any more - it seemed so clear, I did not give it any further notice - and that so clear part just does not work. :) btw. using ubuntu 09.10/gambas 2.13. regards norarg Ricardo D?az Mart?n schrieb: > use Clipboard.Copy("Text you want copy") and Clipboard.Paste() > > http://gambasdoc.org/help/comp/gb.qt/clipboard > > > > 2009/12/16 Norarg > > >> hi >> >> I am struggling with some nasty little things.. >> when I select a text or a part of a text in a textbox, and I want to >> copy this or paste from clipboard, the usual way is to use ctrl-c, >> ctrl-v. well, every software I know has a button too, making this >> possible. I tried to use the Desktop.Sendkeys, which works with "\t" >> f.ex., but I can not figure out how to send ctrl-c - tried ({[CTRL]C}) >> and ({[CTRL_L]C}). In the manual I get the information, all keys are >> defined in /usr/include/X11/keysymdef.h - but this file does not exist >> on my system in this folder. Will be thankful for any help. >> >> Then I tried with .SelStart and .SelLenght to get the string - that was >> not accepted at all, get "unknown symbol". >> >> >> It would be nice, if I could get this two different functions to work. >> >> thanks and regards >> norarg >> >> >> ------------------------------------------------------------------------------ >> This SF.Net email is sponsored by the Verizon Developer Community >> Take advantage of Verizon's best-in-class app development support >> A streamlined, 14 day to market process makes app distribution fast and >> easy >> Join now and get one step closer to millions of Verizon customers >> http://p.sf.net/sfu/verizon-dev2dev >> _______________________________________________ >> 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 Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > From jguardon at ...2035... Wed Dec 16 21:16:00 2009 From: jguardon at ...2035... (Jesus Guardon) Date: Wed, 16 Dec 2009 21:16:00 +0100 Subject: [Gambas-user] Weird Overflow error (GB_DIR) Message-ID: <4B294000.7080507@...2035...> Hi all I am experimenting with the GB_DIR environment variable, and I've made a deb package with my program to install it in /opt. The current dir structure is as follows: jesus at ...2151...:~$ tree /opt /opt `-- dfhlog |-- dfhlog.gambas `-- gambas2 |-- bin | |-- gbr2 -> gbx2 | `-- gbx2 `-- lib `-- gambas2 |-- gb.component |-- gb.corba.component |-- ... etc ...etc... I am calling my executable from a bash script located in /usr/local/bin jesus at ...2151...:~$ cat /usr/local/bin/dfhlog #!/bin/sh export PATH=/opt/dfhlog/gambas2/bin export GB_DIR=/opt/dfhlog/gambas2 exec /opt/dfhlog/dfhlog.gambas (In this case, LD_LIBRARY_PATH is not used, because they already are in my system). When I execute 'dfhlog' from the console the main form is shown, but I got the error: jesus at ...2151...:~$ dfhlog global.?.0: #7: Overflow (Also a message box is displayed with the error) However my application runs fine when using the standard paths as always. Am I missing something? Which is "Overflow" error related to? Regards, Jes?s From les at ...2337... Wed Dec 16 19:33:12 2009 From: les at ...2337... (Les Hardy) Date: Wed, 16 Dec 2009 18:33:12 +0000 Subject: [Gambas-user] Cannot save a gif image In-Reply-To: <384d3900912160744q3092b2e7rfa83a56d7dd13655@...627...> References: <61452b690912140732w6dd57e7fw1f3efe87082f0e46@...627...> <4B27498C.4090403@...626...> <4B2754B8.4030007@...1909...> <4B2766C3.9070009@...626...> <4B2774E8.6060401@...1909...> <4B277AFB.8070606@...626...> <4B277E5C.3070208@...1909...> <6324a42a0912150530o71d7cbeeq265252eb3fa02055@...627...> <384d3900912150752m630e5923o60deb7c906473160@...627...> <4B280630.90000@...2337...> <384d3900912160744q3092b2e7rfa83a56d7dd13655@...627...> Message-ID: <4B2927E8.80504@...2337...> Thanks for responding Jussi, The image is a result of an image.load previously in the code. It may have been loaded as a gif, jpg, png or bmp. 'this works ok imgfile = user.home &/ "tmpfile.jpg" imageout.Save(imgfile) '------------------ 'this works ok imgfile = user.home &/ "tmpfile.png" imageout.Save(imgfile) '------------------ ' this does not work. error message say 'cannot save file' imgfile = user.home &/ "tmpfile.gif" imageout.Save(imgfile) I have written a few apps in gambas, with plenty of file handling, but I don't generally use gifs. I tried it with images, pictures, pictureboxes. and in every case I can save anything but a gif. Its driving me nuts. I cannot see any other postings about this problem. So I guess it must be something with my setup. Have you any ideas of what to try next? Regards Les Hardy Jussi Lahtinen wrote: > Save gif from where? > Please show your code you are using to save other image formats. > > Jussi > > > On Tue, Dec 15, 2009 at 23:57, Les Hardy wrote: > >> Can anyone tell me how to save a gif image. >> I can save other images, but not gifs >> >> gambas 2.18 on ubuntu 9.04 >> >> Regards >> Les Hardy >> >> ------------------------------------------------------------------------------ >> This SF.Net email is sponsored by the Verizon Developer Community >> Take advantage of Verizon's best-in-class app development support >> A streamlined, 14 day to market process makes app distribution fast and easy >> Join now and get one step closer to millions of Verizon customers >> http://p.sf.net/sfu/verizon-dev2dev >> _______________________________________________ >> 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 Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From gambas at ...1... Wed Dec 16 21:22:58 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 16 Dec 2009 21:22:58 +0100 Subject: [Gambas-user] Cannot save a gif image In-Reply-To: <4B2927E8.80504@...2337...> References: <61452b690912140732w6dd57e7fw1f3efe87082f0e46@...627...> <384d3900912160744q3092b2e7rfa83a56d7dd13655@...627...> <4B2927E8.80504@...2337...> Message-ID: <200912162122.58455.gambas@...1...> > Thanks for responding Jussi, > > The image is a result of an image.load previously in the code. > It may have been loaded as a gif, jpg, png or bmp. > > 'this works ok > imgfile = user.home &/ "tmpfile.jpg" > imageout.Save(imgfile) > '------------------ > 'this works ok > imgfile = user.home &/ "tmpfile.png" > imageout.Save(imgfile) > '------------------ > ' this does not work. error message say 'cannot save file' > imgfile = user.home &/ "tmpfile.gif" > imageout.Save(imgfile) > > I have written a few apps in gambas, with plenty of file handling, but I > don't generally use gifs. > I tried it with images, pictures, pictureboxes. and in every case I can > save anything but a gif. > Its driving me nuts. > I cannot see any other postings about this problem. So I guess it must > be something with my setup. > > Have you any ideas of what to try next? > > Regards > Les Hardy > In Gambas 2, the image save function is managed by the GUI component: which one do you use? gb.qt or gb.gtk? I know, for example, that Qt can be compiled without GIF support. So on a system with Qt compiled that way, Gambas projects using gb.qt won't be able to deal with gif files. Regards, -- Beno?t Minisini From gambas at ...1... Wed Dec 16 21:24:08 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 16 Dec 2009 21:24:08 +0100 Subject: [Gambas-user] Weird Overflow error (GB_DIR) In-Reply-To: <4B294000.7080507@...2035...> References: <4B294000.7080507@...2035...> Message-ID: <200912162124.08443.gambas@...1...> > Hi all > > I am experimenting with the GB_DIR environment variable, and I've made a > deb package with my program to install it in /opt. The current dir > structure is as follows: > > jesus at ...2151...:~$ tree /opt > /opt > `-- dfhlog > > |-- dfhlog.gambas > > `-- gambas2 > > |-- bin > | > | |-- gbr2 -> gbx2 > | > | `-- gbx2 > > `-- lib > `-- gambas2 > > |-- gb.component > |-- gb.corba.component > |-- ... etc > > ...etc... > > I am calling my executable from a bash script located in /usr/local/bin > > jesus at ...2151...:~$ cat /usr/local/bin/dfhlog > #!/bin/sh > export PATH=/opt/dfhlog/gambas2/bin > export GB_DIR=/opt/dfhlog/gambas2 > exec /opt/dfhlog/dfhlog.gambas > > (In this case, LD_LIBRARY_PATH is not used, because they already are in > my system). > > When I execute 'dfhlog' from the console the main form is shown, but I > got the error: > > jesus at ...2151...:~$ dfhlog > global.?.0: #7: Overflow > > (Also a message box is displayed with the error) > > However my application runs fine when using the standard paths as always. > > Am I missing something? Which is "Overflow" error related to? > > Regards, > > Jes?s > > Can you compile the gambas project (dfhlog.gambas) with debugging information included? Then maybe you will have the line number where the overflow error occurs. -- Beno?t Minisini From gambas at ...1... Wed Dec 16 21:27:58 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 16 Dec 2009 21:27:58 +0100 Subject: [Gambas-user] Custom error class In-Reply-To: <4B293696.8060408@...2035...> References: <4B293696.8060408@...2035...> Message-ID: <200912162127.58598.gambas@...1...> > Hi all > > Perhaps this is an stupid question, but I'm confused at this point: > > I'm trying to implement a custom error message window with information > about an error raised within a CATCH clause, using the Error class from > Gambas. Here is the code I'm not able to get it working: > > _The error form 'FError'_ > > PRIVATE $error AS String > > PUBLIC SUB Form_Open() > ME.Center > txtError.Clear > txtError.Text = $error > END > > PUBLIC SUB showError(myError AS Error) > $error &= "[Error]\n" & myError.Text > $error &= "\n[Where]\n" & myError.Where > $error &= "\n[Backtrace]\n" & myError.Backtrace > ME.ShowModal > END > > PUBLIC SUB btnOk_Click() > IF chkReport THEN > ' TODO report error to a remote db > ENDIF > ME.Close > END > > _Calling in a sub after CATCH_ > > CATCH > FEerror.showError(Error) > > ----- > > First of all, it is not possible to write "Error" keyword between the > two parenthesis, being formatted into "ERROR", syntactically wrong. > > If I enclose the 'Error' keyword between curly brackets, as in > FErrors.showError({Error}) , no syntax error is raised, but a Gambas > error saying "Type mismatch: wanted Error, got Class instead". > > What am I doing wrong, or is it possible to use this class the way I'm > doing? > > Help appreciated! > > Regards, > > Jes?s > At the moment Error is a static class, you cannot instanciate it, and using it as a datatype is uselss. So don't use an argument, use the Error class everywhere. The caveats of this design is that should save or use the Error class contents as soon as possible, otherwise another error or a function call may reset it. Regards, -- Beno?t Minisini From jguardon at ...2035... Wed Dec 16 22:02:06 2009 From: jguardon at ...2035... (Jesus Guardon) Date: Wed, 16 Dec 2009 22:02:06 +0100 Subject: [Gambas-user] Weird Overflow error (GB_DIR) In-Reply-To: <200912162124.08443.gambas@...1...> References: <4B294000.7080507@...2035...> <200912162124.08443.gambas@...1...> Message-ID: <4B294ACE.5010304@...2035...> Beno?t Minisini escribi?: >> Hi all >> >> I am experimenting with the GB_DIR environment variable, and I've made a >> deb package with my program to install it in /opt. The current dir >> structure is as follows: >> >> jesus at ...2151...:~$ tree /opt >> /opt >> `-- dfhlog >> >> |-- dfhlog.gambas >> >> `-- gambas2 >> >> |-- bin >> | >> | |-- gbr2 -> gbx2 >> | >> | `-- gbx2 >> >> `-- lib >> `-- gambas2 >> >> |-- gb.component >> |-- gb.corba.component >> |-- ... etc >> >> ...etc... >> >> I am calling my executable from a bash script located in /usr/local/bin >> >> jesus at ...2151...:~$ cat /usr/local/bin/dfhlog >> #!/bin/sh >> export PATH=/opt/dfhlog/gambas2/bin >> export GB_DIR=/opt/dfhlog/gambas2 >> exec /opt/dfhlog/dfhlog.gambas >> >> (In this case, LD_LIBRARY_PATH is not used, because they already are in >> my system). >> >> When I execute 'dfhlog' from the console the main form is shown, but I >> got the error: >> >> jesus at ...2151...:~$ dfhlog >> global.?.0: #7: Overflow >> >> (Also a message box is displayed with the error) >> >> However my application runs fine when using the standard paths as always. >> >> Am I missing something? Which is "Overflow" error related to? >> >> Regards, >> >> Jes?s >> >> > > Can you compile the gambas project (dfhlog.gambas) with debugging information > included? Then maybe you will have the line number where the overflow error > occurs. > Thanks Beno?t Surprisingly, after a recompile, it works as expected! May be I was using an old executable file (dfhlog.gambas). Sorry for my mistake 8-( Regards Jes?s From jguardon at ...2035... Wed Dec 16 22:10:16 2009 From: jguardon at ...2035... (Jesus Guardon) Date: Wed, 16 Dec 2009 22:10:16 +0100 Subject: [Gambas-user] Custom error class In-Reply-To: <200912162127.58598.gambas@...1...> References: <4B293696.8060408@...2035...> <200912162127.58598.gambas@...1...> Message-ID: <4B294CB8.8050503@...2035...> Beno?t Minisini escribi?: >> Hi all >> >> Perhaps this is an stupid question, but I'm confused at this point: >> >> I'm trying to implement a custom error message window with information >> about an error raised within a CATCH clause, using the Error class from >> Gambas. Here is the code I'm not able to get it working: >> >> _The error form 'FError'_ >> >> PRIVATE $error AS String >> >> PUBLIC SUB Form_Open() >> ME.Center >> txtError.Clear >> txtError.Text = $error >> END >> >> PUBLIC SUB showError(myError AS Error) >> $error &= "[Error]\n" & myError.Text >> $error &= "\n[Where]\n" & myError.Where >> $error &= "\n[Backtrace]\n" & myError.Backtrace >> ME.ShowModal >> END >> >> PUBLIC SUB btnOk_Click() >> IF chkReport THEN >> ' TODO report error to a remote db >> ENDIF >> ME.Close >> END >> >> _Calling in a sub after CATCH_ >> >> CATCH >> FEerror.showError(Error) >> >> ----- >> >> First of all, it is not possible to write "Error" keyword between the >> two parenthesis, being formatted into "ERROR", syntactically wrong. >> >> If I enclose the 'Error' keyword between curly brackets, as in >> FErrors.showError({Error}) , no syntax error is raised, but a Gambas >> error saying "Type mismatch: wanted Error, got Class instead". >> >> What am I doing wrong, or is it possible to use this class the way I'm >> doing? >> >> Help appreciated! >> >> Regards, >> >> Jes?s >> > > At the moment Error is a static class, you cannot instanciate it, and using it > as a datatype is uselss. So don't use an argument, use the Error class > everywhere. > > The caveats of this design is that should save or use the Error class contents > as soon as possible, otherwise another error or a function call may reset it. > > Regards, > Mmmmm, I though so... I was trying to encapsulate it in a single function, but I must reconsider this in other way. Thanks anyway! Regards, Jes?s From nando_f at ...951... Wed Dec 16 22:13:51 2009 From: nando_f at ...951... (nando) Date: Wed, 16 Dec 2009 16:13:51 -0500 Subject: [Gambas-user] About financial program in Gambas In-Reply-To: References: <200912160017.55108.gambas@...1...> <4B28A717.30802@...626...> Message-ID: <20091216205625.M25383@...951...> For your info only... I always use INT or LONG for accounting and money. So, (here in Canada), $42.87 is 4287 I keep the tax (8%) as a float, therefore 8.25% is 8.25 This is ok for tax because rounding is needed. For example: 4287 * 8.25 = 35367.75 / 100 = 353.6775 add .5 for 5/4 round up down = 354.1775 Plase result into INT var which becomes 354 4287 + 354 = 4641 Using Float for taxes allows for many decimal places. Using 100 for /100 process allows for any currencies where you want more than 2 decimal places. For correct printing without rounding errors, do not do 4287/100. but rather take the STR$(4287), then split the right two off, and place a decimal in that place. Perfect math and exact calculations every single time!!! -Fernando ---------- Original Message ----------- From: Ricardo D?az Mart?n To: mailing list for gambas users Sent: Wed, 16 Dec 2009 10:46:40 +0000 Subject: Re: [Gambas-user] About financial program in Gambas > Jean, > > You can use numbers of decimal as you want. I you want 4 you only need to > divide by 1000. The only you need to decide on before insert data. If you > need to add more decimals in future you only have to modify a parameter in > your app from 2 to 4 (functions that show from database/write to database > currency values must read this values before show/write info) and update > your database multiplying cur fields by 100 (to add two digit more of > precision) > > You never need truncate any value if you always use this especial currency > type. For example if you set decimals to 4, number 19.99657 is no possible. > > If you need to get selling prices using four decimal coefficient, define > coefficient as a currency type and set your app to use 4 decimal for all > "currency" values > > I hope this helps you > > 2009/12/16 Jean-Yves F. Barbier <12ukwn at ...626...> > > > Ricardo D?az Mart?n a ?crit : > > > Hi to all, > > > > > > I'm use gambas to write ERP applications. At the first, I got the same > > > problem but I decided to use long integer to save currency values. First > > > rigth two digits are always showed to users as decimal values. > > > > > > I'm rewrited all my apps from windows to gambas and they are working now > > > with no problems in customers servers. > > > > > > I allways use a function to show values in controls in app's forms that > > > convert database fields values showed in textboxes whose name started int > > > dbcur (p.e. dbcurVAT) to value div 100 and works with no problems. I use > > > allways the same function to write forms data to database and make the > > > reverse proccess. > > > > Hooo, thanks for the ad. > > > > > Its simple and works > > > > Sounds exactly like the commercial about women thin down cream we've > > got on tv for months (it works!) (sorry, I couldn't resist:) > > > > So you're truncating everything to 2 decimals, but as I said VAT (and as > > a matter of fact almost all french taxes) is *legally* up to 4 decimals; > > actually only 2 of them are used, but nothing's saying that tomorrow > > is won't be 3 or 4 really used (especially on those times where our > > gov morons (pleonasm) are desesperatly looking for money.) > > > > BTW, how do you truncate 19.99657? Down to 19.99 or up to 20.00? [WINDOWS-1252?]> > In my family's company a cent error is worth ?100,000 fine... > > > > Other PB: most of results could be predictable (as of Nb of decimals), > > but some can't (ie: 92.95x1.196=111.1682 OR 145x1.196=173.42), > > maths says decimals should be dN1+dN2=5 but in these cases we only have > > 4 and 2 because of non-significant right zeroes, so you can't obviously > > truncate by adding the comma counting 5 from the right. > > One of the most used manner to get a selling price is to use a coefficient > > which has many decimals (usually a real), how do you determine where to > > put the comma in the resultant number?? > > > > I see the possibilities, but AFAIK this is a full processor to write > > based on a complex numbers model, not to mention error possibilities > > have a tremendous cataclysmic potential in a matter where tax > > administration will be more than happy to chop your head and piss > > on your brain (yeah, they're like that here: when they come it is > > not to search, it is to find; no matter if has real justification or not.) > > > > But may be I'm totally mistaking: I always have had PBs with simple > > things. > > > > JY > > -- > > God is real, unless declared integer. > > > > > > ------------------------------------------------------------------------------ > > This SF.Net email is sponsored by the Verizon Developer Community > > Take advantage of Verizon's best-in-class app development support > > A streamlined, 14 day to market process makes app distribution fast and > > easy > > Join now and get one step closer to millions of Verizon customers > > http://p.sf.net/sfu/verizon-dev2dev > > _______________________________________________ > > 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 Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From les at ...2337... Wed Dec 16 22:20:03 2009 From: les at ...2337... (Les Hardy) Date: Wed, 16 Dec 2009 21:20:03 +0000 Subject: [Gambas-user] Cannot save a gif image In-Reply-To: <200912162122.58455.gambas@...1...> References: <61452b690912140732w6dd57e7fw1f3efe87082f0e46@...627...> <384d3900912160744q3092b2e7rfa83a56d7dd13655@...627...> <4B2927E8.80504@...2337...> <200912162122.58455.gambas@...1...> Message-ID: <4B294F03.2090805@...2337...> Yes, You have it. Just checked. Looks like QImageIO was compiled without gif support on ubuntu 9.04 , and I am using gb.qt. My Thanks to all that responded. Regards Les Hardy Beno?t Minisini wrote: > > In Gambas 2, the image save function is managed by the GUI component: which > one do you use? gb.qt or gb.gtk? > > I know, for example, that Qt can be compiled without GIF support. So on a > system with Qt compiled that way, Gambas projects using gb.qt won't be able to > deal with gif files. > > Regards, > From mohareve at ...626... Wed Dec 16 23:20:36 2009 From: mohareve at ...626... (M. Cs.) Date: Wed, 16 Dec 2009 23:20:36 +0100 Subject: [Gambas-user] How to force a normal number output? Message-ID: I need to have a normal decimal output without E+degree notation. How to force Gambas to use 153879 instead of 1.53879E+5? From steven at ...2097... Thu Dec 17 04:29:33 2009 From: steven at ...2097... (Steven James Drinnan) Date: Thu, 17 Dec 2009 11:29:33 +0800 Subject: [Gambas-user] About financial program in Gambas In-Reply-To: <20091216205625.M25383@...951...> References: <200912160017.55108.gambas@...1...> <4B28A717.30802@...626...> <20091216205625.M25383@...951...> Message-ID: <1261020579.5486.148.camel@...2273...> Sorry - AS for mySQL it also has round() and you use the same as the gambas function. Steven On Wed, 2009-12-16 at 16:13 -0500, nando wrote: > For your info only... > I always use INT or LONG for accounting and money. > So, (here in Canada), $42.87 is 4287 > I keep the tax (8%) as a float, therefore 8.25% is 8.25 > This is ok for tax because rounding is needed. > For example: > > 4287 * 8.25 = 35367.75 / 100 = 353.6775 > add .5 for 5/4 round up down > = 354.1775 > Plase result into INT var which becomes 354 > > 4287 + 354 = 4641 > > Using Float for taxes allows for many decimal places. > Using 100 for /100 process allows for any currencies where > you want more than 2 decimal places. > > For correct printing without rounding errors, do not do 4287/100. > but rather take the STR$(4287), > then split the right two off, and place a decimal in that place. > Perfect math and exact calculations every single time!!! > > -Fernando > > > ---------- Original Message ----------- > From: Ricardo D?az Mart?n > To: mailing list for gambas users > Sent: Wed, 16 Dec 2009 10:46:40 +0000 > Subject: Re: [Gambas-user] About financial program in Gambas > > > Jean, > > > > You can use numbers of decimal as you want. I you want 4 you only need to > > divide by 1000. The only you need to decide on before insert data. If you > > need to add more decimals in future you only have to modify a parameter in > > your app from 2 to 4 (functions that show from database/write to database > > currency values must read this values before show/write info) and update > > your database multiplying cur fields by 100 (to add two digit more of > > precision) > > > > You never need truncate any value if you always use this especial currency > > type. For example if you set decimals to 4, number 19.99657 is no possible. > > > > If you need to get selling prices using four decimal coefficient, define > > coefficient as a currency type and set your app to use 4 decimal for all > > "currency" values > > > > I hope this helps you > > > > 2009/12/16 Jean-Yves F. Barbier <12ukwn at ...626...> > > > > > Ricardo D?az Mart?n a ?crit : > > > > Hi to all, > > > > > > > > I'm use gambas to write ERP applications. At the first, I got the same > > > > problem but I decided to use long integer to save currency values. First > > > > rigth two digits are always showed to users as decimal values. > > > > > > > > I'm rewrited all my apps from windows to gambas and they are working now > > > > with no problems in customers servers. > > > > > > > > I allways use a function to show values in controls in app's forms that > > > > convert database fields values showed in textboxes whose name started int > > > > dbcur (p.e. dbcurVAT) to value div 100 and works with no problems. I use > > > > allways the same function to write forms data to database and make the > > > > reverse proccess. > > > > > > Hooo, thanks for the ad. > > > > > > > Its simple and works > > > > > > Sounds exactly like the commercial about women thin down cream we've > > > got on tv for months (it works!) (sorry, I couldn't resist:) > > > > > > So you're truncating everything to 2 decimals, but as I said VAT (and as > > > a matter of fact almost all french taxes) is *legally* up to 4 decimals; > > > actually only 2 of them are used, but nothing's saying that tomorrow > > > is won't be 3 or 4 really used (especially on those times where our > > > gov morons (pleonasm) are desesperatly looking for money.) > > > > > > BTW, how do you truncate 19.99657? Down to 19.99 or up to 20.00? > [WINDOWS-1252?]> > In my family's company a cent error is worth ?100,000 fine... > > > > > > Other PB: most of results could be predictable (as of Nb of decimals), > > > but some can't (ie: 92.95x1.196=111.1682 OR 145x1.196=173.42), > > > maths says decimals should be dN1+dN2=5 but in these cases we only have > > > 4 and 2 because of non-significant right zeroes, so you can't obviously > > > truncate by adding the comma counting 5 from the right. > > > One of the most used manner to get a selling price is to use a coefficient > > > which has many decimals (usually a real), how do you determine where to > > > put the comma in the resultant number?? > > > > > > I see the possibilities, but AFAIK this is a full processor to write > > > based on a complex numbers model, not to mention error possibilities > > > have a tremendous cataclysmic potential in a matter where tax > > > administration will be more than happy to chop your head and piss > > > on your brain (yeah, they're like that here: when they come it is > > > not to search, it is to find; no matter if has real justification or not.) > > > > > > But may be I'm totally mistaking: I always have had PBs with simple > > > things. > > > > > > JY > > > -- > > > God is real, unless declared integer. > > > > > > > > > ------------------------------------------------------------------------------ > > > This SF.Net email is sponsored by the Verizon Developer Community > > > Take advantage of Verizon's best-in-class app development support > > > A streamlined, 14 day to market process makes app distribution fast and > > > easy > > > Join now and get one step closer to millions of Verizon customers > > > http://p.sf.net/sfu/verizon-dev2dev > > > _______________________________________________ > > > 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 Verizon Developer Community > > Take advantage of Verizon's best-in-class app development support > > A streamlined, 14 day to market process makes app distribution fast and easy > > Join now and get one step closer to millions of Verizon customers > > http://p.sf.net/sfu/verizon-dev2dev > > _______________________________________________ > > 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 Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part URL: From steven at ...2097... Thu Dec 17 04:21:08 2009 From: steven at ...2097... (Steven James Drinnan) Date: Thu, 17 Dec 2009 11:21:08 +0800 Subject: [Gambas-user] About financial program in Gambas In-Reply-To: <20091216205625.M25383@...951...> References: <200912160017.55108.gambas@...1...> <4B28A717.30802@...626...> <20091216205625.M25383@...951...> Message-ID: <1261020069.5486.147.camel@...2273...> Just to add my two cents worth, This problem has been around for eons and it does not only apply to Gambas. When I was programming in Access and VB I had the same problem even using the currency type. I just use the Round function Value = Round ( Number [ , Digits ] ) And I use this return variable in my database. This is the only way to make sure that rounding is done right. I found that even with a currency data type it tended to truncate rather than round. By the way you should be able to insert into a stored procedure. I did so in Access. In MySql I found that it has the TRUNCATE() command so you can do this SELECT Truncate( ((YourNumber * 10^dp) + 0.5) / (10^dp) , dp ) *this will round correctly where dp is the number of dp that you need. You will have to check the sql manual to see what command is supported for your database. On Wed, 2009-12-16 at 16:13 -0500, nando wrote: > For your info only... > I always use INT or LONG for accounting and money. > So, (here in Canada), $42.87 is 4287 > I keep the tax (8%) as a float, therefore 8.25% is 8.25 > This is ok for tax because rounding is needed. > For example: > > 4287 * 8.25 = 35367.75 / 100 = 353.6775 > add .5 for 5/4 round up down > = 354.1775 > Plase result into INT var which becomes 354 > > 4287 + 354 = 4641 > > Using Float for taxes allows for many decimal places. > Using 100 for /100 process allows for any currencies where > you want more than 2 decimal places. > > For correct printing without rounding errors, do not do 4287/100. > but rather take the STR$(4287), > then split the right two off, and place a decimal in that place. > Perfect math and exact calculations every single time!!! > > -Fernando > > > ---------- Original Message ----------- > From: Ricardo D?az Mart?n > To: mailing list for gambas users > Sent: Wed, 16 Dec 2009 10:46:40 +0000 > Subject: Re: [Gambas-user] About financial program in Gambas > > > Jean, > > > > You can use numbers of decimal as you want. I you want 4 you only need to > > divide by 1000. The only you need to decide on before insert data. If you > > need to add more decimals in future you only have to modify a parameter in > > your app from 2 to 4 (functions that show from database/write to database > > currency values must read this values before show/write info) and update > > your database multiplying cur fields by 100 (to add two digit more of > > precision) > > > > You never need truncate any value if you always use this especial currency > > type. For example if you set decimals to 4, number 19.99657 is no possible. > > > > If you need to get selling prices using four decimal coefficient, define > > coefficient as a currency type and set your app to use 4 decimal for all > > "currency" values > > > > I hope this helps you > > > > 2009/12/16 Jean-Yves F. Barbier <12ukwn at ...626...> > > > > > Ricardo D?az Mart?n a ?crit : > > > > Hi to all, > > > > > > > > I'm use gambas to write ERP applications. At the first, I got the same > > > > problem but I decided to use long integer to save currency values. First > > > > rigth two digits are always showed to users as decimal values. > > > > > > > > I'm rewrited all my apps from windows to gambas and they are working now > > > > with no problems in customers servers. > > > > > > > > I allways use a function to show values in controls in app's forms that > > > > convert database fields values showed in textboxes whose name started int > > > > dbcur (p.e. dbcurVAT) to value div 100 and works with no problems. I use > > > > allways the same function to write forms data to database and make the > > > > reverse proccess. > > > > > > Hooo, thanks for the ad. > > > > > > > Its simple and works > > > > > > Sounds exactly like the commercial about women thin down cream we've > > > got on tv for months (it works!) (sorry, I couldn't resist:) > > > > > > So you're truncating everything to 2 decimals, but as I said VAT (and as > > > a matter of fact almost all french taxes) is *legally* up to 4 decimals; > > > actually only 2 of them are used, but nothing's saying that tomorrow > > > is won't be 3 or 4 really used (especially on those times where our > > > gov morons (pleonasm) are desesperatly looking for money.) > > > > > > BTW, how do you truncate 19.99657? Down to 19.99 or up to 20.00? > [WINDOWS-1252?]> > In my family's company a cent error is worth ?100,000 fine... > > > > > > Other PB: most of results could be predictable (as of Nb of decimals), > > > but some can't (ie: 92.95x1.196=111.1682 OR 145x1.196=173.42), > > > maths says decimals should be dN1+dN2=5 but in these cases we only have > > > 4 and 2 because of non-significant right zeroes, so you can't obviously > > > truncate by adding the comma counting 5 from the right. > > > One of the most used manner to get a selling price is to use a coefficient > > > which has many decimals (usually a real), how do you determine where to > > > put the comma in the resultant number?? > > > > > > I see the possibilities, but AFAIK this is a full processor to write > > > based on a complex numbers model, not to mention error possibilities > > > have a tremendous cataclysmic potential in a matter where tax > > > administration will be more than happy to chop your head and piss > > > on your brain (yeah, they're like that here: when they come it is > > > not to search, it is to find; no matter if has real justification or not.) > > > > > > But may be I'm totally mistaking: I always have had PBs with simple > > > things. > > > > > > JY > > > -- > > > God is real, unless declared integer. > > > > > > > > > ------------------------------------------------------------------------------ > > > This SF.Net email is sponsored by the Verizon Developer Community > > > Take advantage of Verizon's best-in-class app development support > > > A streamlined, 14 day to market process makes app distribution fast and > > > easy > > > Join now and get one step closer to millions of Verizon customers > > > http://p.sf.net/sfu/verizon-dev2dev > > > _______________________________________________ > > > 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 Verizon Developer Community > > Take advantage of Verizon's best-in-class app development support > > A streamlined, 14 day to market process makes app distribution fast and easy > > Join now and get one step closer to millions of Verizon customers > > http://p.sf.net/sfu/verizon-dev2dev > > _______________________________________________ > > 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 Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part URL: From oceanosoftlapalma at ...626... Thu Dec 17 09:22:19 2009 From: oceanosoftlapalma at ...626... (=?ISO-8859-1?Q?Ricardo_D=EDaz_Mart=EDn?=) Date: Thu, 17 Dec 2009 08:22:19 +0000 Subject: [Gambas-user] problems with core functions In-Reply-To: References: <4B288E78.3010906@...221...> Message-ID: Norag, It's something like this: Dim aux as String aux = FormWithTheTextBox.NameOfTextbox.Selection.Text Is a pleasure to help someone but I recommend to you read documentation on before write in mailing list. Please visit http://gambasdoc.org/help/comp/gb.qt/textbox You only have to read for a while... Regards 2009/12/16 Norarg > hi, > > thanks, but how do I get this "Text I want to copy", it is selected, but > somehow I have to make a string of it, before sending it to the > clipboard. Somewhere I have seen SelStart, SelLength with Gambas, but > just can not find that part any more - it seemed so clear, I did not > give it any further notice - and that so clear part just does not work. > :) btw. using ubuntu 09.10/gambas 2.13. > > regards > norarg > > > Ricardo D?az Mart?n schrieb: > > use Clipboard.Copy("Text you want copy") and Clipboard.Paste() > > > > http://gambasdoc.org/help/comp/gb.qt/clipboard > > > > > > > > 2009/12/16 Norarg > > > > > >> hi > >> > >> I am struggling with some nasty little things.. > >> when I select a text or a part of a text in a textbox, and I want to > >> copy this or paste from clipboard, the usual way is to use ctrl-c, > >> ctrl-v. well, every software I know has a button too, making this > >> possible. I tried to use the Desktop.Sendkeys, which works with "\t" > >> f.ex., but I can not figure out how to send ctrl-c - tried ({[CTRL]C}) > >> and ({[CTRL_L]C}). In the manual I get the information, all keys are > >> defined in /usr/include/X11/keysymdef.h - but this file does not exist > >> on my system in this folder. Will be thankful for any help. > >> > >> Then I tried with .SelStart and .SelLenght to get the string - that was > >> not accepted at all, get "unknown symbol". > >> > >> > >> It would be nice, if I could get this two different functions to work. > >> > >> thanks and regards > >> norarg > >> > >> > >> > ------------------------------------------------------------------------------ > >> This SF.Net email is sponsored by the Verizon Developer Community > >> Take advantage of Verizon's best-in-class app development support > >> A streamlined, 14 day to market process makes app distribution fast and > >> easy > >> Join now and get one step closer to millions of Verizon customers > >> http://p.sf.net/sfu/verizon-dev2dev > >> _______________________________________________ > >> 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 Verizon Developer Community > > Take advantage of Verizon's best-in-class app development support > > A streamlined, 14 day to market process makes app distribution fast and > easy > > Join now and get one step closer to millions of Verizon customers > > http://p.sf.net/sfu/verizon-dev2dev > > _______________________________________________ > > 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 Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and > easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From mohareve at ...626... Thu Dec 17 11:21:03 2009 From: mohareve at ...626... (M. Cs.) Date: Thu, 17 Dec 2009 11:21:03 +0100 Subject: [Gambas-user] Problems retrieving the original values Message-ID: I have a database file in Sqlite which has a REAL type field.When I browse the database in a terminal I have a value 581927884.0, but when I retrieve it to a table!"Size" variable it prints out as 5.819279E+8 which makes troubles for me. Can I have the original number format? From norarg at ...2311... Thu Dec 17 12:38:47 2009 From: norarg at ...2311... (Norarg) Date: Thu, 17 Dec 2009 08:38:47 -0300 Subject: [Gambas-user] problems with core functions In-Reply-To: References: <4B288E78.3010906@...221...> Message-ID: thanks, yes I know, but I just did not find this in the documentation, or overread the part I should have seen. I searched for a pretty while before I posted this. sorry regards norarg Ricardo D?az Mart?n schrieb: > Norag, > > It's something like this: > > Dim aux as String > > aux = FormWithTheTextBox.NameOfTextbox.Selection.Text > > > > Is a pleasure to help someone but I recommend to you read documentation on > before write in mailing list. > > Please visit http://gambasdoc.org/help/comp/gb.qt/textbox > > You only have to read for a while... > > Regards > > > 2009/12/16 Norarg > > >> hi, >> >> thanks, but how do I get this "Text I want to copy", it is selected, but >> somehow I have to make a string of it, before sending it to the >> clipboard. Somewhere I have seen SelStart, SelLength with Gambas, but >> just can not find that part any more - it seemed so clear, I did not >> give it any further notice - and that so clear part just does not work. >> :) btw. using ubuntu 09.10/gambas 2.13. >> >> regards >> norarg >> >> >> Ricardo D?az Mart?n schrieb: >> >>> use Clipboard.Copy("Text you want copy") and Clipboard.Paste() >>> >>> http://gambasdoc.org/help/comp/gb.qt/clipboard >>> >>> >>> >>> 2009/12/16 Norarg >>> >>> >>> >>>> hi >>>> >>>> I am struggling with some nasty little things.. >>>> when I select a text or a part of a text in a textbox, and I want to >>>> copy this or paste from clipboard, the usual way is to use ctrl-c, >>>> ctrl-v. well, every software I know has a button too, making this >>>> possible. I tried to use the Desktop.Sendkeys, which works with "\t" >>>> f.ex., but I can not figure out how to send ctrl-c - tried ({[CTRL]C}) >>>> and ({[CTRL_L]C}). In the manual I get the information, all keys are >>>> defined in /usr/include/X11/keysymdef.h - but this file does not exist >>>> on my system in this folder. Will be thankful for any help. >>>> >>>> Then I tried with .SelStart and .SelLenght to get the string - that was >>>> not accepted at all, get "unknown symbol". >>>> >>>> >>>> It would be nice, if I could get this two different functions to work. >>>> >>>> thanks and regards >>>> norarg >>>> >>>> >>>> >>>> >> ------------------------------------------------------------------------------ >> >>>> This SF.Net email is sponsored by the Verizon Developer Community >>>> Take advantage of Verizon's best-in-class app development support >>>> A streamlined, 14 day to market process makes app distribution fast and >>>> easy >>>> Join now and get one step closer to millions of Verizon customers >>>> http://p.sf.net/sfu/verizon-dev2dev >>>> _______________________________________________ >>>> 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 Verizon Developer Community >>> Take advantage of Verizon's best-in-class app development support >>> A streamlined, 14 day to market process makes app distribution fast and >>> >> easy >> >>> Join now and get one step closer to millions of Verizon customers >>> http://p.sf.net/sfu/verizon-dev2dev >>> _______________________________________________ >>> 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 Verizon Developer Community >> Take advantage of Verizon's best-in-class app development support >> A streamlined, 14 day to market process makes app distribution fast and >> easy >> Join now and get one step closer to millions of Verizon customers >> http://p.sf.net/sfu/verizon-dev2dev >> _______________________________________________ >> 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 Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > From nando_f at ...951... Thu Dec 17 18:36:45 2009 From: nando_f at ...951... (nando) Date: Thu, 17 Dec 2009 12:36:45 -0500 Subject: [Gambas-user] Problems retrieving the original values In-Reply-To: References: Message-ID: <20091217173248.M56280@...951...> SQLite REAL is 8B IEEE floating point number Gambas FLOAT is the exact same thing. 1. Make sure your Gambas var is FLOAT and not SINGLE 2. What you see 5.819279E+8 is only a visual representation to humans of what the value really is. Use FORMAT$ to represent it differently the way you want. -Fernando ---------- Original Message ----------- From: "M. Cs." To: mailing list for gambas users Sent: Thu, 17 Dec 2009 11:21:03 +0100 Subject: [Gambas-user] Problems retrieving the original values > I have a database file in Sqlite which has a REAL type field.When I browse > the database in a terminal I have a value 581927884.0, but when I retrieve > it to a table!"Size" variable it prints out as 5.819279E+8 which makes > troubles for me. Can I have the original number format? > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From prog at ...2177... Thu Dec 17 20:01:25 2009 From: prog at ...2177... (craf) Date: Thu, 17 Dec 2009 16:01:25 -0300 Subject: [Gambas-user] [Fwd: Not Found component gb.form in /usr/local/lib/gambas2] Message-ID: <1261076485.3629.7.camel@...651...> Hello. When I create a new project with database support. The hidden file . project show me the components that are needed to run the application. Example. # Gambas Project File 2.0 Title=myproject Startup=FMain Library=gb.db Library=gb.gtk Library=gb.gtk.ext Library=gb.form =>NOT FOUND Library=gb.db.form All the components I could find in the folder / usr/local/lib/gambas2 / but that is not the only component is the gb.form. How can I locate it, or refers to another component in particular?. Regards [OperatingSystem] OperatingSystem=Linux KernelRelease=2.6.28-14-generic DistributionVendor=ubuntu DistributionRelease="Ubuntu 9.04" [System] CPUArchitecture=i686 TotalRam=1026628 kB [Gambas] Gambas1=Not Installed Gambas2=2.18.0 Gambas2Path=/usr/local/bin/gbx2 Gambas3=Not Installed From prog at ...2177... Thu Dec 17 19:20:10 2009 From: prog at ...2177... (craf) Date: Thu, 17 Dec 2009 15:20:10 -0300 Subject: [Gambas-user] Not Found component gb.form in /usr/local/lib/gambas2 Message-ID: <1261074010.3629.6.camel@...651...> Hello. When I create a new project with database support. The hidden file . project show me the components that are needed to run the application. Example. # Gambas Project File 2.0 Title=myproject Startup=FMain Library=gb.db Library=gb.gtk Library=gb.gtk.ext Library=gb.form =>NOT FOUND Library=gb.db.form All the components I could find in the folder / usr/local/lib/gambas2 / but that is not the only component is the gb.form. How can I locate it, or refers to another component in particular?. Regards [OperatingSystem] OperatingSystem=Linux KernelRelease=2.6.28-14-generic DistributionVendor=ubuntu DistributionRelease="Ubuntu 9.04" [System] CPUArchitecture=i686 TotalRam=1026628 kB [Gambas] Gambas1=Not Installed Gambas2=2.18.0 Gambas2Path=/usr/local/bin/gbx2 Gambas3=Not Installed From gambas at ...1... Fri Dec 18 11:53:09 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 18 Dec 2009 11:53:09 +0100 Subject: [Gambas-user] [Fwd: Not Found component gb.form in /usr/local/lib/gambas2] In-Reply-To: <1261076485.3629.7.camel@...651...> References: <1261076485.3629.7.camel@...651...> Message-ID: <200912181153.09038.gambas@...1...> > Hello. > > When I create a new project with database support. The hidden file . > project show me the components that are needed to run the > application. > > Example. > > # Gambas Project File 2.0 > Title=myproject > Startup=FMain > Library=gb.db > Library=gb.gtk > Library=gb.gtk.ext > Library=gb.form =>NOT FOUND > Library=gb.db.form > > All the components I could find in the folder / usr/local/lib/gambas2 / > but that is not the only component is the gb.form. > How can I locate it, or refers to another component in particular?. > > Regards > Your installation of Gambas is apparently broken. How did you install it? -- Beno?t Minisini From prog at ...2177... Fri Dec 18 14:54:49 2009 From: prog at ...2177... (craf) Date: Fri, 18 Dec 2009 10:54:49 -0300 Subject: [Gambas-user] [Fwd: Not Found component gb.form in /usr/local/lib/gambas2] In-Reply-To: <200912181153.09038.gambas@...1...> References: <1261076485.3629.7.camel@...651...> <200912181153.09038.gambas@...1...> Message-ID: <1261144489.3637.7.camel@...651...> -----Mensaje original----- De: Beno?t Minisini Reply-to: mailing list for gambas users Para: mailing list for gambas users Asunto: Re: [Gambas-user] [Fwd: Not Found component gb.form in /usr/local/lib/gambas2] Fecha: Fri, 18 Dec 2009 11:53:09 +0100 > Hello. > > When I create a new project with database support. The hidden file . > project show me the components that are needed to run the > application. > > Example. > > # Gambas Project File 2.0 > Title=myproject > Startup=FMain > Library=gb.db > Library=gb.gtk > Library=gb.gtk.ext > Library=gb.form =>NOT FOUND > Library=gb.db.form > > All the components I could find in the folder / usr/local/lib/gambas2 / > but that is not the only component is the gb.form. > How can I locate it, or refers to another component in particular?. > > Regards > > Your installation of Gambas is apparently broken. How did you install it? Hi Benoit, thanks for responding. I tell you, I'm trying to do an install script of my programs in order to distribute other equipment. I need to copy all the shared libraries needed by components Gambas. To do this read the file (. Project) and then run ldd instruction. The script finds all least gb.form component. I have no problems running Gambas and run my programs, just do not find the component gb.form in the folder /usr/local/lib/gambas2. The installation I do is the next to my computer with Ubuntu 9.04. 1) Position needed packages: sudo apt-get install build-essential autoconf libbz2-dev libfbclient2 libgnorba-dev libmysqlclient15-dev unixodbc-dev libpq-dev libsqlite0-dev libsqlite3-dev libgtk2.0-dev libldap2-dev gnutls-dev libcurl4-libgtkglext1-dev libpcre3-dev libsdl-dev libsdl-sound1.2-mixer1.2-dev libsdl-image1.2-dev libsage-dev libxml2-dev libxslt1-dev libbonobo2-dev libcos4-dev libomniorb4-dev librsvg2-dev-dev libpoppler libpoppler-glib-dev libesd0-dev libasound2-dev libesd-alsa0 libdirectfb-dev-dev libaa1 libxtst-dev libffi-dev kdelibs4-dev firebird2.1-dev libqt4-dev 2) After installing I always: $ Cd / usr/src/gambas2-2.18.0 $ Sudo. / Configure-C $ Sudo make $ Sudo make install After that I normally run my program. I see the folder / usr/local/lib/gambas2 has a component gb.form.gambas there any connection between the component gb.form?. Any help on this point I would appreciate it. Regards [OperatingSystem] OperatingSystem=Linux KernelRelease=2.6.28-14-generic DistributionVendor=ubuntu DistributionRelease="Ubuntu 9.04" [System] CPUArchitecture=i686 TotalRam=1026628 kB [Gambas] Gambas1=Not Installed Gambas2=2.18.0 Gambas2Path=/usr/local/bin/gbx2 Gambas3=Not Installed From gambas at ...1... Fri Dec 18 15:33:07 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 18 Dec 2009 15:33:07 +0100 Subject: [Gambas-user] [Fwd: Not Found component gb.form in /usr/local/lib/gambas2] In-Reply-To: <1261144489.3637.7.camel@...651...> References: <1261076485.3629.7.camel@...651...> <200912181153.09038.gambas@...1...> <1261144489.3637.7.camel@...651...> Message-ID: <200912181533.07747.gambas@...1...> > -----Mensaje original----- > De: Beno?t Minisini > Reply-to: mailing list for gambas users > > Para: mailing list for gambas users > Asunto: Re: [Gambas-user] [Fwd: Not Found component gb.form > in /usr/local/lib/gambas2] > Fecha: Fri, 18 Dec 2009 11:53:09 +0100 > > > Hello. > > > > When I create a new project with database support. The hidden file . > > project show me the components that are needed to run the > > application. > > > > Example. > > > > # Gambas Project File 2.0 > > Title=myproject > > Startup=FMain > > Library=gb.db > > Library=gb.gtk > > Library=gb.gtk.ext > > Library=gb.form =>NOT FOUND > > Library=gb.db.form > > > > All the components I could find in the folder / usr/local/lib/gambas2 / > > but that is not the only component is the gb.form. > > How can I locate it, or refers to another component in particular?. > > > > Regards > > > > > > Your installation of Gambas is apparently broken. How did you install it? > > Hi Benoit, thanks for responding. > > I tell you, I'm trying to do an install script of my programs in order > to distribute other equipment. I need to copy all the shared libraries > needed by components Gambas. > > To do this read the file (. Project) and then run ldd > instruction. The script finds all least gb.form component. > > I have no problems running Gambas and run my programs, just do not find > the component gb.form in the folder /usr/local/lib/gambas2. > gb.form is a component written in gambas, so you have only the gb.form.gambas and gb.form.component files in the lib/gambas2 directory. Regards, -- Beno?t Minisini From prog at ...2177... Fri Dec 18 15:45:52 2009 From: prog at ...2177... (craf) Date: Fri, 18 Dec 2009 11:45:52 -0300 Subject: [Gambas-user] [Fwd: Not Found component gb.form in /usr/local/lib/gambas2] In-Reply-To: <200912181533.07747.gambas@...1...> References: <1261076485.3629.7.camel@...651...> <200912181153.09038.gambas@...1...> <1261144489.3637.7.camel@...651...> <200912181533.07747.gambas@...1...> Message-ID: <1261147552.3637.9.camel@...651...> -----Mensaje original----- De: Beno?t Minisini Reply-to: mailing list for gambas users Para: mailing list for gambas users Asunto: Re: [Gambas-user] [Fwd: Not Found component gb.form in /usr/local/lib/gambas2] Fecha: Fri, 18 Dec 2009 15:33:07 +0100 > -----Mensaje original----- > De: Beno?t Minisini > Reply-to: mailing list for gambas users > > Para: mailing list for gambas users > Asunto: Re: [Gambas-user] [Fwd: Not Found component gb.form > in /usr/local/lib/gambas2] > Fecha: Fri, 18 Dec 2009 11:53:09 +0100 > > > Hello. > > > > When I create a new project with database support. The hidden file . > > project show me the components that are needed to run the > > application. > > > > Example. > > > > # Gambas Project File 2.0 > > Title=myproject > > Startup=FMain > > Library=gb.db > > Library=gb.gtk > > Library=gb.gtk.ext > > Library=gb.form =>NOT FOUND > > Library=gb.db.form > > > > All the components I could find in the folder / usr/local/lib/gambas2 / > > but that is not the only component is the gb.form. > > How can I locate it, or refers to another component in particular?. > > > > Regards > > > > > > Your installation of Gambas is apparently broken. How did you install it? > > Hi Benoit, thanks for responding. > > I tell you, I'm trying to do an install script of my programs in order > to distribute other equipment. I need to copy all the shared libraries > needed by components Gambas. > > To do this read the file (. Project) and then run ldd > instruction. The script finds all least gb.form component. > > I have no problems running Gambas and run my programs, just do not find > the component gb.form in the folder /usr/local/lib/gambas2. > >gb.form is a component written in gambas, so you have only the gb.form.gambas >and gb.form.component files in the lib/gambas2 directory. > >Regards, Hello. So I need the component gb.form?. If so, why I run my applications, if required this component, because when you create a basic gtk application, me included?. What would that do to include it in my collection?, Or is it normal that I receive?. Regards. From oceanosoftlapalma at ...626... Fri Dec 18 18:06:23 2009 From: oceanosoftlapalma at ...626... (=?ISO-8859-1?Q?Ricardo_D=EDaz_Mart=EDn?=) Date: Fri, 18 Dec 2009 17:06:23 +0000 Subject: [Gambas-user] mysql mediumtext/longtext fields Message-ID: Is it possible to get content of these kind of fields from gambas db component and show it in textboxes? Regards, Ricardo D?az From jguardon at ...2035... Fri Dec 18 23:02:11 2009 From: jguardon at ...2035... (Jesus Guardon) Date: Fri, 18 Dec 2009 23:02:11 +0100 Subject: [Gambas-user] SHELL not working (GB_DIR) In-Reply-To: <4B294ACE.5010304@...2035...> References: <4B294000.7080507@...2035...> <200912162124.08443.gambas@...1...> <4B294ACE.5010304@...2035...> Message-ID: <4B2BFBE3.4080101@...2035...> Jesus Guardon escribi?: > Beno?t Minisini escribi?: >>> Hi all >>> >>> I am experimenting with the GB_DIR environment variable, and I've made a >>> deb package with my program to install it in /opt. The current dir >>> structure is as follows: >>> >>> jesus at ...2151...:~$ tree /opt >>> /opt >>> `-- dfhlog >>> >>> |-- dfhlog.gambas >>> >>> `-- gambas2 >>> >>> |-- bin >>> | >>> | |-- gbr2 -> gbx2 >>> | >>> | `-- gbx2 >>> >>> `-- lib >>> `-- gambas2 >>> >>> |-- gb.component >>> |-- gb.corba.component >>> |-- ... etc >>> >>> ...etc... >>> >>> I am calling my executable from a bash script located in /usr/local/bin >>> >>> jesus at ...2151...:~$ cat /usr/local/bin/dfhlog >>> #!/bin/sh >>> export PATH=/opt/dfhlog/gambas2/bin >>> export GB_DIR=/opt/dfhlog/gambas2 >>> exec /opt/dfhlog/dfhlog.gambas >>> >>> (In this case, LD_LIBRARY_PATH is not used, because they already are in >>> my system). > Thanks Beno?t > > Surprisingly, after a recompile, it works as expected! May be I was > using an old executable file (dfhlog.gambas). Sorry for my mistake 8-( > > Regards > > Jes?s Hi again Continuing my testings on GB_DIR, I'm running into a new problem: SHELL command has no effect at all. All sentences using SHELL are not executed. As you can guess, running my project executable the normal way (not using GB_DIR) it is running right. Could this be a bug? Thanks in advance. Jes?s From gambas at ...1... Fri Dec 18 23:24:55 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 18 Dec 2009 23:24:55 +0100 Subject: [Gambas-user] SHELL not working (GB_DIR) In-Reply-To: <4B2BFBE3.4080101@...2035...> References: <4B294000.7080507@...2035...> <4B294ACE.5010304@...2035...> <4B2BFBE3.4080101@...2035...> Message-ID: <200912182324.55399.gambas@...1...> > Jesus Guardon escribi?: > > Beno?t Minisini escribi?: > >>> Hi all > >>> > >>> I am experimenting with the GB_DIR environment variable, and I've made > >>> a deb package with my program to install it in /opt. The current dir > >>> structure is as follows: > >>> > >>> jesus at ...2151...:~$ tree /opt > >>> /opt > >>> `-- dfhlog > >>> > >>> |-- dfhlog.gambas > >>> > >>> `-- gambas2 > >>> > >>> |-- bin > >>> | > >>> | |-- gbr2 -> gbx2 > >>> | > >>> | `-- gbx2 > >>> > >>> `-- lib > >>> `-- gambas2 > >>> > >>> |-- gb.component > >>> |-- gb.corba.component > >>> |-- ... etc > >>> > >>> ...etc... > >>> > >>> I am calling my executable from a bash script located in /usr/local/bin > >>> > >>> jesus at ...2151...:~$ cat /usr/local/bin/dfhlog > >>> #!/bin/sh > >>> export PATH=/opt/dfhlog/gambas2/bin > >>> export GB_DIR=/opt/dfhlog/gambas2 > >>> exec /opt/dfhlog/dfhlog.gambas > >>> > >>> (In this case, LD_LIBRARY_PATH is not used, because they already are in > >>> my system). > > > > > Thanks Beno?t > > > > Surprisingly, after a recompile, it works as expected! May be I was > > using an old executable file (dfhlog.gambas). Sorry for my mistake 8-( > > > > Regards > > > > Jes?s > > Hi again > > Continuing my testings on GB_DIR, I'm running into a new problem: SHELL > command has no effect at all. All sentences using SHELL are not > executed. As you can guess, running my project executable the normal way > (not using GB_DIR) it is running right. Could this be a bug? > > Thanks in advance. > > Jes?s > SHELL is just an equivalent of EXEC ["sh", "-c", "XXX"] where "XXX" is the string passed to the SHELL command. Do you have any error message from gambas? I need as many details as possible! Regards, -- Beno?t Minisini From jguardon at ...2035... Sat Dec 19 00:27:10 2009 From: jguardon at ...2035... (Jesus Guardon) Date: Sat, 19 Dec 2009 00:27:10 +0100 Subject: [Gambas-user] SHELL not working (GB_DIR) In-Reply-To: <200912182324.55399.gambas@...1...> References: <4B294000.7080507@...2035...> <4B294ACE.5010304@...2035...> <4B2BFBE3.4080101@...2035...> <200912182324.55399.gambas@...1...> Message-ID: <4B2C0FCE.2060500@...2035...> >> Hi again >> >> Continuing my testings on GB_DIR, I'm running into a new problem: SHELL >> command has no effect at all. All sentences using SHELL are not >> executed. As you can guess, running my project executable the normal way >> (not using GB_DIR) it is running right. Could this be a bug? >> >> Thanks in advance. >> >> Jes?s >> > Thanks for the quick reply > SHELL is just an equivalent of EXEC ["sh", "-c", "XXX"] where "XXX" is the > string passed to the SHELL command. Yes, I know... > > Do you have any error message from gambas? I need as many details as possible! > > Regards, Not at all. No error message is displayed, simply SHELL command seems to be ignored by the interpreter. As for launch my program I'm using a shell script (you can see it in the previous posts), I'm not able to run gdb against myprogram.gambas, or myprogram (without .sh extension). A simple example could be a function I'm using to know if a program is running: SHELL "pidof " & someprocess TO somevariable This sentence is "bypassed" without notice... The same for all others sentences using SHELL. As said before, when I run my program from the IDE or compiled executable without using GB_DIR, all runs fine. If you need some other tests or VNC access I can setup a server right now. [OperatingSystem] OperatingSystem=Linux KernelRelease=2.6.28-15-generic DistributionVendor=ubuntu DistributionRelease="Ubuntu 9.04" [System] CPUArchitecture=i686 TotalRam=3096988 kB [Gambas] Gambas1=Not Installed Gambas2=2.18.0 Gambas2Path=/usr/local/bin/gbx2 Gambas3=2.99.0 Gambas3Path=/usr/local/bin/gbx3 Regards, Jes?s From doriano.blengino at ...1909... Sat Dec 19 09:52:53 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Sat, 19 Dec 2009 09:52:53 +0100 Subject: [Gambas-user] SHELL not working (GB_DIR) In-Reply-To: <4B2C0FCE.2060500@...2035...> References: <4B294000.7080507@...2035...> <4B294ACE.5010304@...2035...> <4B2BFBE3.4080101@...2035...> <200912182324.55399.gambas@...1...> <4B2C0FCE.2060500@...2035...> Message-ID: <4B2C9465.7080607@...1909...> Jesus Guardon ha scritto: >>> Hi again >>> >>> Continuing my testings on GB_DIR, I'm running into a new problem: SHELL >>> command has no effect at all. All sentences using SHELL are not >>> executed. As you can guess, running my project executable the normal way >>> (not using GB_DIR) it is running right. Could this be a bug? >>> >>> >> SHELL is just an equivalent of EXEC ["sh", "-c", "XXX"] where "XXX" is the >> string passed to the SHELL command. >> > > > Not at all. No error message is displayed, simply SHELL command seems to > be ignored by the interpreter. > As for launch my program I'm using a shell script (you can see it in the > previous posts), I'm not able to run gdb against myprogram.gambas, or > myprogram (without .sh extension). > In a previous mail you wrote: > I am calling my executable from a bash script located in /usr/local/bin > >>> > >>> jesus at ...2151...:~$ cat /usr/local/bin/dfhlog > >>> #!/bin/sh > >>> export PATH=/opt/dfhlog/gambas2/bin > >>> export GB_DIR=/opt/dfhlog/gambas2 > >>> exec /opt/dfhlog/dfhlog.gambas > >>> > >>> (In this case, LD_LIBRARY_PATH is not used, because they already are in > >>> my system). > Your "export PATH" command imposes a path which excludes standard unix paths - you will never find system utilities like pidof(1), and neither the shell itself. You should write: export PATH=/opt/dfhlog/gambas2/bin:$PATH to add your personal path the the standard ones. Or, if you are a security paranoid, you could use: export PATH=/opt/dfhlog/gambas2/bin:/usr/bin:/bin This way you don't trust the existing path. This second form excludes /sbin and /usr/sbin; you should add them if you need system administration commands like route, fdisk, reboot, addgroup and many others. Regards, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From doriano.blengino at ...1909... Sat Dec 19 10:14:38 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Sat, 19 Dec 2009 10:14:38 +0100 Subject: [Gambas-user] SHELL not working (GB_DIR) In-Reply-To: <4B2C9465.7080607@...1909...> References: <4B294000.7080507@...2035...> <4B294ACE.5010304@...2035...> <4B2BFBE3.4080101@...2035...> <200912182324.55399.gambas@...1...> <4B2C0FCE.2060500@...2035...> <4B2C9465.7080607@...1909...> Message-ID: <4B2C997E.1050906@...1909...> Doriano Blengino ha scritto: > Jesus Guardon ha scritto: > >>>> Hi again >>>> >>>> Continuing my testings on GB_DIR, I'm running into a new problem: SHELL >>>> command has no effect at all. All sentences using SHELL are not >>>> executed. As you can guess, running my project executable the normal way >>>> (not using GB_DIR) it is running right. Could this be a bug? >>>> >>>> >>>> > > >>> SHELL is just an equivalent of EXEC ["sh", "-c", "XXX"] where "XXX" is the >>> string passed to the SHELL command. >>> >>> >> >> > > >> Not at all. No error message is displayed, simply SHELL command seems to >> be ignored by the interpreter. >> As for launch my program I'm using a shell script (you can see it in the >> previous posts), I'm not able to run gdb against myprogram.gambas, or >> myprogram (without .sh extension). >> >> > In a previous mail you wrote: > >> I am calling my executable from a bash script located in /usr/local/bin >> >>>>> jesus at ...2151...:~$ cat /usr/local/bin/dfhlog >>>>> #!/bin/sh >>>>> export PATH=/opt/dfhlog/gambas2/bin >>>>> export GB_DIR=/opt/dfhlog/gambas2 >>>>> exec /opt/dfhlog/dfhlog.gambas >>>>> >>>>> (In this case, LD_LIBRARY_PATH is not used, because they already are in >>>>> my system). >>>>> >> >> > > Your "export PATH" command imposes a path which excludes standard unix > paths - you will never find system utilities like pidof(1), and neither > the shell itself. You should write: > > export PATH=/opt/dfhlog/gambas2/bin:$PATH > > to add your personal path the the standard ones. Or, if you are a > security paranoid, you could use: > > export PATH=/opt/dfhlog/gambas2/bin:/usr/bin:/bin > > This way you don't trust the existing path. This second form excludes > /sbin and /usr/sbin; you should add them if you need system > administration commands like route, fdisk, reboot, addgroup and many others. > > Regards, > > Just after hitting the send button, I realized that this idea is correct only in part. May be it solves, it is a quick try. The right part is that the PATH variable is used by the shell itself, so even if your gambas program finds the shell and asks it to execute something, the shell will fail to do it. Probably this is not considered an error by gambas, so the instruction SHELL "pidof xxx" fails silently. The ambigous part is in whether gambas uses PATH to search for the shell. If it is so, then your gambas program will not find the shell, and gambas should report this, because "an internal instruction of gambas is failing". In this case, however, one can ask himself if makes it sense to use PATH to search for the shell, which traditionally is /bin/sh, and many scripts included system ones address the shell in this way. Assuming that SHELL is a substitute for EXEC ["sh", "-c", "...."], and that EXEC searches executables in PATH, this would explain all. Perhaps would be better to bind SHELL to EXEC ["/bin/sh", "-c", "..."]. I am not sure if, natively, exec() searches executables in PATH. May be that there is the system call exec() which does one thing, and the C library wrapped exec() which does differently. In any case, if it is so, this would explain my sensation that SHELLs in gambas are slow. In my system (a normal Debian), the PATH variable looks like "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11". Every time a gambas program invokes a SHELL, the system searches sh in 4 directories, and then sh searches for the executable in 4 directories again; the first four directories could be skipped. Regards, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From jguardon at ...2035... Sat Dec 19 12:12:27 2009 From: jguardon at ...2035... (Jesus Guardon) Date: Sat, 19 Dec 2009 12:12:27 +0100 Subject: [Gambas-user] SHELL not working (GB_DIR)[solved] In-Reply-To: <4B2C9465.7080607@...1909...> References: <4B294000.7080507@...2035...> <4B294ACE.5010304@...2035...> <4B2BFBE3.4080101@...2035...> <200912182324.55399.gambas@...1...> <4B2C0FCE.2060500@...2035...> <4B2C9465.7080607@...1909...> Message-ID: <4B2CB51B.8040107@...2035...> Doriano Blengino escribi?: > Jesus Guardon ha scritto: >>>> Hi again >>>> >>>> Continuing my testings on GB_DIR, I'm running into a new problem: SHELL >>>> command has no effect at all. All sentences using SHELL are not >>>> executed. As you can guess, running my project executable the normal way >>>> (not using GB_DIR) it is running right. Could this be a bug? > >> Not at all. No error message is displayed, simply SHELL command seems to >> be ignored by the interpreter. >> As for launch my program I'm using a shell script (you can see it in the >> previous posts), I'm not able to run gdb against myprogram.gambas, or >> myprogram (without .sh extension). >> > In a previous mail you wrote: >> I am calling my executable from a bash script located in /usr/local/bin >>>>> jesus at ...2151...:~$ cat /usr/local/bin/dfhlog >>>>> #!/bin/sh >>>>> export PATH=/opt/dfhlog/gambas2/bin >>>>> export GB_DIR=/opt/dfhlog/gambas2 >>>>> exec /opt/dfhlog/dfhlog.gambas >>>>> >>>>> (In this case, LD_LIBRARY_PATH is not used, because they already are in >>>>> my system). >> > > Your "export PATH" command imposes a path which excludes standard unix > paths - you will never find system utilities like pidof(1), and neither > the shell itself. You should write: > > export PATH=/opt/dfhlog/gambas2/bin:$PATH > > to add your personal path the the standard ones. Or, if you are a > security paranoid, you could use: > > export PATH=/opt/dfhlog/gambas2/bin:/usr/bin:/bin > > This way you don't trust the existing path. This second form excludes > /sbin and /usr/sbin; you should add them if you need system > administration commands like route, fdisk, reboot, addgroup and many others. > > Regards, > Yessss! This solved the issue. I might figured it out, I didn't know of exclusion on "exports". Many thanks, Doriano (and Beno?t, for such a great feature!) Regards, Jes?s From jussi.lahtinen at ...626... Sat Dec 19 15:05:16 2009 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sat, 19 Dec 2009 16:05:16 +0200 Subject: [Gambas-user] [Fwd: Not Found component gb.form in /usr/local/lib/gambas2] In-Reply-To: <1261147552.3637.9.camel@...651...> References: <1261076485.3629.7.camel@...651...> <200912181153.09038.gambas@...1...> <1261144489.3637.7.camel@...651...> <200912181533.07747.gambas@...1...> <1261147552.3637.9.camel@...651...> Message-ID: <384d3900912190605s67f2fddbo79dcab5c253c2b65@...627...> I can't quite understand your question... Gambas has ability to make installation packages (Project --> Make --> Installation package...). "./configure -C" and "make" doesn't need sudo, only "make install" needs it. Jussi On Fri, Dec 18, 2009 at 16:45, craf wrote: > -----Mensaje original----- > De: Beno?t Minisini > Reply-to: mailing list for gambas users > > Para: mailing list for gambas users > Asunto: Re: [Gambas-user] [Fwd: Not Found component gb.form > in /usr/local/lib/gambas2] > Fecha: Fri, 18 Dec 2009 15:33:07 +0100 > >> -----Mensaje original----- >> De: Beno?t Minisini >> Reply-to: mailing list for gambas users >> >> Para: mailing list for gambas users >> Asunto: Re: [Gambas-user] [Fwd: Not Found component gb.form >> in /usr/local/lib/gambas2] >> Fecha: Fri, 18 Dec 2009 11:53:09 +0100 >> >> > Hello. >> > >> > When I create a new project with database support. The hidden file . >> > project ?show me the ?components that are needed to run the >> > application. >> > >> > Example. >> > >> > # Gambas Project File 2.0 >> > Title=myproject >> > Startup=FMain >> > Library=gb.db >> > Library=gb.gtk >> > Library=gb.gtk.ext >> > Library=gb.form =>NOT FOUND >> > Library=gb.db.form >> > >> > All the components I could find in the folder / usr/local/lib/gambas2 / >> > but that is not the only component is the gb.form. >> > How can I locate it, or refers to another component in particular?. >> > >> > Regards >> > >> > >> > Your installation of Gambas is apparently broken. How did you install it? >> >> Hi Benoit, thanks for responding. >> >> I tell you, I'm trying to do an install script of my programs in order >> to distribute other equipment. I need to copy all the shared libraries >> needed by components Gambas. >> >> To do this read the file (. Project) and then run ldd >> instruction. The script finds all least gb.form component. >> >> I have no problems running Gambas and run my programs, just do not find >> the component gb.form in the folder /usr/local/lib/gambas2. >> > >>gb.form is a component written in gambas, so you have only the gb.form.gambas >>and gb.form.component files in the lib/gambas2 directory. >> >>Regards, > > Hello. > > So I need the component gb.form?. > > If so, why I run my applications, if required this component, because > when you create a basic gtk application, me included?. > > What would that do to include it in my collection?, Or is it normal that > I receive?. > > Regards. > > > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From ulusoyab at ...43... Sat Dec 19 19:25:23 2009 From: ulusoyab at ...43... (abdurrahman ulusoy) Date: Sat, 19 Dec 2009 10:25:23 -0800 (PST) Subject: [Gambas-user] "form.h" is badly overridden in class 'form3' Message-ID: <8873.33721.qm@...2242...> hi ? ? ? ? ? ? ? ? ? ?in gambas2 form has no error but i ported gambas3 then?"form.h" is badly overridden in class 'form3' ___________________________________________________________________ Yahoo! T?rkiye a??ld?! http://yahoo.com.tr ?nternet ?zerindeki en iyi i?eri?i Yahoo! T?rkiye sizlere sunuyor! From prog at ...2177... Sat Dec 19 19:52:26 2009 From: prog at ...2177... (craf) Date: Sat, 19 Dec 2009 15:52:26 -0300 Subject: [Gambas-user] [Fwd: Not Found component gb.form in /usr/local/lib/gambas2] In-Reply-To: <384d3900912190605s67f2fddbo79dcab5c253c2b65@...627...> References: <1261076485.3629.7.camel@...651...> <200912181153.09038.gambas@...1...> <1261144489.3637.7.camel@...651...> <200912181533.07747.gambas@...1...> <1261147552.3637.9.camel@...651...> <384d3900912190605s67f2fddbo79dcab5c253c2b65@...627...> Message-ID: <1261248746.3609.2.camel@...651...> -----Mensaje original----- De: Jussi Lahtinen Reply-to: mailing list for gambas users Para: mailing list for gambas users Asunto: Re: [Gambas-user] [Fwd: Not Found component gb.form in /usr/local/lib/gambas2] Fecha: Sat, 19 Dec 2009 16:05:16 +0200 >I can't quite understand your question... >Gambas has ability to make installation packages (Project --> Make --> >Installation package...). >"./configure -C" and "make" doesn't need sudo, only "make install" needs it. > >Jussi Hello. I have no problem with the installation of Gambas. What I am trying to do is a script to install my application on another computer without having all the libraries compartidas.Now, to know what components are needed, just look at the file (. project), which shows you the necessary libraries . Example Library = gb.db Library = gb.gtk etc. The problem is that Gambas brings extra controls that are installed with the library gb.form, which comes not listed in the hidden file (.project), it leaves the library gb.draw which is also required. Only I mean that in the file (. project) would appear all the libraries that are marked in the section components within the Gambas IDE. As I explained Benoit, is that the library is a component gb.form done with Gambas and therefore does not appear listed in the file (.project). Unfortunately English is not my native language, and can misinterpret what I need. Regards. On Fri, Dec 18, 2009 at 16:45, craf wrote: > -----Mensaje original----- > De: Beno?t Minisini > Reply-to: mailing list for gambas users > > Para: mailing list for gambas users > Asunto: Re: [Gambas-user] [Fwd: Not Found component gb.form > in /usr/local/lib/gambas2] > Fecha: Fri, 18 Dec 2009 15:33:07 +0100 > >> -----Mensaje original----- >> De: Beno?t Minisini >> Reply-to: mailing list for gambas users >> >> Para: mailing list for gambas users >> Asunto: Re: [Gambas-user] [Fwd: Not Found component gb.form >> in /usr/local/lib/gambas2] >> Fecha: Fri, 18 Dec 2009 11:53:09 +0100 >> >> > Hello. >> > >> > When I create a new project with database support. The hidden file . >> > project show me the components that are needed to run the >> > application. >> > >> > Example. >> > >> > # Gambas Project File 2.0 >> > Title=myproject >> > Startup=FMain >> > Library=gb.db >> > Library=gb.gtk >> > Library=gb.gtk.ext >> > Library=gb.form =>NOT FOUND >> > Library=gb.db.form >> > >> > All the components I could find in the folder / usr/local/lib/gambas2 / >> > but that is not the only component is the gb.form. >> > How can I locate it, or refers to another component in particular?. >> > >> > Regards >> > >> > >> > Your installation of Gambas is apparently broken. How did you install it? >> >> Hi Benoit, thanks for responding. >> >> I tell you, I'm trying to do an install script of my programs in order >> to distribute other equipment. I need to copy all the shared libraries >> needed by components Gambas. >> >> To do this read the file (. Project) and then run ldd >> instruction. The script finds all least gb.form component. >> >> I have no problems running Gambas and run my programs, just do not find >> the component gb.form in the folder /usr/local/lib/gambas2. >> > >>gb.form is a component written in gambas, so you have only the gb.form.gambas >>and gb.form.component files in the lib/gambas2 directory. >> >>Regards, > > Hello. > > So I need the component gb.form?. > > If so, why I run my applications, if required this component, because > when you create a basic gtk application, me included?. > > What would that do to include it in my collection?, Or is it normal that > I receive?. > > Regards. > > > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > 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 Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Sat Dec 19 22:39:12 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 19 Dec 2009 22:39:12 +0100 Subject: [Gambas-user] "form.h" is badly overridden in class 'form3' In-Reply-To: <8873.33721.qm@...2242...> References: <8873.33721.qm@...2242...> Message-ID: <200912192239.12672.gambas@...1...> > hi in gambas2 form has no error but i ported gambas3 > then "form.h" is badly overridden in class 'form3' > "H" is a property of the Form class. Form3 inherits the Form class, and so, if it reimplements the "H" symbol, it must be a property too, with the same datatype. Gambas2 says nothing because it is a bug that could be fixed in Gambas3 only. Regards, -- Beno?t Minisini From gambas at ...1... Sat Dec 19 22:44:23 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 19 Dec 2009 22:44:23 +0100 Subject: [Gambas-user] [Fwd: Not Found component gb.form in /usr/local/lib/gambas2] In-Reply-To: <1261248746.3609.2.camel@...651...> References: <1261076485.3629.7.camel@...651...> <384d3900912190605s67f2fddbo79dcab5c253c2b65@...627...> <1261248746.3609.2.camel@...651...> Message-ID: <200912192244.23439.gambas@...1...> > -----Mensaje original----- > De: Jussi Lahtinen > Reply-to: mailing list for gambas users > > Para: mailing list for gambas users > Asunto: Re: [Gambas-user] [Fwd: Not Found component gb.form > in /usr/local/lib/gambas2] > Fecha: Sat, 19 Dec 2009 16:05:16 +0200 > > >I can't quite understand your question... > >Gambas has ability to make installation packages (Project --> Make --> > >Installation package...). > >"./configure -C" and "make" doesn't need sudo, only "make install" needs > > it. > > > >Jussi > > Hello. > > I have no problem with the installation of Gambas. > > What I am trying to do is a script to install my application on another > computer without having all the libraries compartidas.Now, to know what > components are needed, just look at the file (. project), which shows > you the necessary libraries . > Example > Library = gb.db > Library = gb.gtk > etc. > > The problem is that Gambas brings extra controls that are installed with > the library gb.form, which comes not listed in the hidden file > (.project), it leaves the library gb.draw which is also required. Only I > mean that in the file (. project) would appear all the libraries that > are marked in the section components within the Gambas IDE. > > As I explained Benoit, is that the library is a component gb.form done > with Gambas and therefore does not appear listed in the file (.project). > > Unfortunately English is not my native language, and can misinterpret > what I need. > > Regards. > Yes, there are "hidden" dependencies: gb.draw, that is needed by all GUI components, any gb.db.* driver that could be loaded by the gb.db component. But you should get an error message while running your program if a Gambas component written in C/C++ is missing. Beside the hidden dependencies, you just have to list all "Library=" lines in the .project file, and copy in the /lib/gambas2 directory all files beginning with the component name. For example: you have gb.form in the .project file? Do a "cp gb.form.* ". If you want all the details, read the "how to package gambas" page on the wiki. Regards, -- Beno?t Minisini From ulusoyab at ...43... Sat Dec 19 23:18:12 2009 From: ulusoyab at ...43... (abdurrahman ulusoy) Date: Sat, 19 Dec 2009 14:18:12 -0800 (PST) Subject: [Gambas-user] "form.h" is badly overridden in class 'form3' In-Reply-To: <200912192239.12672.gambas@...1...> Message-ID: <866061.23942.qm@...2243...> thanks. and how can draw arc without line start point (or end point) to center. --- 19/12/09 Cts tarihinde Beno?t Minisini ??yle yaz?yor: Kimden: Beno?t Minisini Konu: Re: [Gambas-user] "form.h" is badly overridden in class 'form3' Kime: "mailing list for gambas users" Tarihi: 19 Aral?k 2009 Cumartesi, 23:39 > hi? ? ? ? ? ? ? ? ? ? in gambas2 form has no error but i ported gambas3 >? then "form.h" is badly overridden in class 'form3' > "H" is a property of the Form class. Form3 inherits the Form class, and so, if it reimplements the "H" symbol, it must be a property too, with the same datatype. Gambas2 says nothing because it is a bug that could be fixed in Gambas3 only. Regards, -- Beno?t Minisini ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user ___________________________________________________________________ Yahoo! T?rkiye a??ld?! http://yahoo.com.tr ?nternet ?zerindeki en iyi i?eri?i Yahoo! T?rkiye sizlere sunuyor! From prog at ...2177... Sat Dec 19 23:17:40 2009 From: prog at ...2177... (craf) Date: Sat, 19 Dec 2009 19:17:40 -0300 Subject: [Gambas-user] [Fwd: Not Found component gb.form in /usr/local/lib/gambas2] In-Reply-To: <200912192244.23439.gambas@...1...> References: <1261076485.3629.7.camel@...651...> <384d3900912190605s67f2fddbo79dcab5c253c2b65@...627...> <1261248746.3609.2.camel@...651...> <200912192244.23439.gambas@...1...> Message-ID: <1261261060.3626.1.camel@...651...> -----Mensaje original----- De: Beno?t Minisini Reply-to: mailing list for gambas users Para: mailing list for gambas users Asunto: Re: [Gambas-user] [Fwd: Not Found component gb.form in /usr/local/lib/gambas2] Fecha: Sat, 19 Dec 2009 22:44:23 +0100 > -----Mensaje original----- > De: Jussi Lahtinen > Reply-to: mailing list for gambas users > > Para: mailing list for gambas users > Asunto: Re: [Gambas-user] [Fwd: Not Found component gb.form > in /usr/local/lib/gambas2] > Fecha: Sat, 19 Dec 2009 16:05:16 +0200 > > >I can't quite understand your question... > >Gambas has ability to make installation packages (Project --> Make --> > >Installation package...). > >"./configure -C" and "make" doesn't need sudo, only "make install" needs > > it. > > > >Jussi > > Hello. > > I have no problem with the installation of Gambas. > > What I am trying to do is a script to install my application on another > computer without having all the libraries compartidas.Now, to know what > components are needed, just look at the file (. project), which shows > you the necessary libraries . > Example > Library = gb.db > Library = gb.gtk > etc. > > The problem is that Gambas brings extra controls that are installed with > the library gb.form, which comes not listed in the hidden file > (.project), it leaves the library gb.draw which is also required. Only I > mean that in the file (. project) would appear all the libraries that > are marked in the section components within the Gambas IDE. > > As I explained Benoit, is that the library is a component gb.form done > with Gambas and therefore does not appear listed in the file (.project). > > Unfortunately English is not my native language, and can misinterpret > what I need. > > Regards. > >Yes, there are "hidden" dependencies: gb.draw, that is needed by all GUI >components, any gb.db.* driver that could be loaded by the gb.db component. > >But you should get an error message while running your program if a Gambas >component written in C/C++ is missing. > >Beside the hidden dependencies, you just have to list all "Library=" lines in >the .project file, and copy in the /lib/gambas2 directory all files beginning >with the component name. > >For example: you have gb.form in the .project file? Do a "cp gb.form.* >". > >If you want all the details, read the "how to package gambas" page on the >wiki. > >Regards, Thanks Benoit. Now I have clearer ideas. Regards From gambas at ...1... Sat Dec 19 23:21:26 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 19 Dec 2009 23:21:26 +0100 Subject: [Gambas-user] "form.h" is badly overridden in class 'form3' In-Reply-To: <866061.23942.qm@...2243...> References: <866061.23942.qm@...2243...> Message-ID: <200912192321.26598.gambas@...1...> > thanks. > and how can draw arc without line start point (or end point) to center. > Sorry, I need a better english to understand the question... -- Beno?t Minisini From ulusoyab at ...43... Sat Dec 19 23:43:47 2009 From: ulusoyab at ...43... (abdurrahman ulusoy) Date: Sat, 19 Dec 2009 14:43:47 -0800 (PST) Subject: [Gambas-user] "form.h" is badly overridden in class 'form3' Message-ID: <904720.84998.qm@...2247...> i am sorry. i added my question. --- 20/12/09 Pzr tarihinde Beno?t Minisini ??yle yaz?yor: Kimden: Beno?t Minisini Konu: Re: [Gambas-user] "form.h" is badly overridden in class 'form3' Kime: "mailing list for gambas users" Tarihi: 20 Aral?k 2009 Pazar, 0:21 > thanks. > and how can draw arc without line start point (or end point) to center. > Sorry, I need a better english to understand the question... -- Beno?t Minisini ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user ___________________________________________________________________ Yahoo! T?rkiye a??ld?! http://yahoo.com.tr ?nternet ?zerindeki en iyi i?eri?i Yahoo! T?rkiye sizlere sunuyor! -------------- next part -------------- A non-text attachment was scrubbed... Name: arc-0.0.1.tar.gz Type: application/x-gzip Size: 7617 bytes Desc: not available URL: From prog at ...2177... Sun Dec 20 15:13:55 2009 From: prog at ...2177... (craf) Date: Sun, 20 Dec 2009 11:13:55 -0300 Subject: [Gambas-user] Install Gambas 3 Message-ID: <1261318435.3614.1.camel@...651...> Hello. I installed the version 2.18.0 Gambas, through compilation. Now, I try Gambas3, but will remain installed in another location. To install Gambas on my computer I always do: sudo. / configure-C sudo make sudo make install. I read the installation page that you use - prefix, but no where to include it. Regards From jguardon at ...2035... Sun Dec 20 18:57:32 2009 From: jguardon at ...2035... (Jesus Guardon) Date: Sun, 20 Dec 2009 18:57:32 +0100 Subject: [Gambas-user] Install Gambas 3 In-Reply-To: <1261318435.3614.1.camel@...651...> References: <1261318435.3614.1.camel@...651...> Message-ID: <4B2E658C.4030606@...2035...> craf escribi?: > Hello. > > I installed the version 2.18.0 Gambas, through compilation. Now, I try > Gambas3, but will remain installed in another location. > > To install Gambas on my computer I always do: > > sudo. / configure-C > sudo make > sudo make install. > > I read the installation page that you use - prefix, but no where to > include it. > > Regards Gambas2 and Gambas3 are independent, they both can coexist without problems. To install gambas you might not use sudo, but only for 'make install' command: ./configure -C make sudo make install Hope this helps. Regards, Jesus From prog at ...2177... Mon Dec 21 02:02:39 2009 From: prog at ...2177... (craf) Date: Sun, 20 Dec 2009 22:02:39 -0300 Subject: [Gambas-user] Install Gambas 3 In-Reply-To: <4B2E658C.4030606@...2035...> References: <1261318435.3614.1.camel@...651...> <4B2E658C.4030606@...2035...> Message-ID: <1261357359.3631.0.camel@...651...> Ok. Thanks for your answer. -----Mensaje original----- De: Jesus Guardon Reply-to: mailing list for gambas users Para: mailing list for gambas users Asunto: Re: [Gambas-user] Install Gambas 3 Fecha: Sun, 20 Dec 2009 18:57:32 +0100 craf escribi?: > Hello. > > I installed the version 2.18.0 Gambas, through compilation. Now, I try > Gambas3, but will remain installed in another location. > > To install Gambas on my computer I always do: > > sudo. / configure-C > sudo make > sudo make install. > > I read the installation page that you use - prefix, but no where to > include it. > > Regards Gambas2 and Gambas3 are independent, they both can coexist without problems. To install gambas you might not use sudo, but only for 'make install' command: ./configure -C make sudo make install Hope this helps. Regards, Jesus ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From prog at ...2177... Mon Dec 21 21:14:42 2009 From: prog at ...2177... (craf) Date: Mon, 21 Dec 2009 17:14:42 -0300 Subject: [Gambas-user] Dinamic Libraries unused with ldd Message-ID: <1261426482.3630.6.camel@...651...> Hello I'm seeing the dynamic libs that depends gbx2 file. For that I use: $ ldd / usr/local/bin/gbx2. The result gives me is: linux-gate.so.1 => (0xb8033000) libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7ff3000) libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7fef000) libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb7fd5000) libffi.so.5 => /usr/lib/libffi.so.5 (0xb7fcd000) libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7e6a000) /lib/ld-linux.so.2 (0xb8034000) Now with the -u option, the result is, the result is: /lib/tls/i686/cmov/libm.so.6 /lib/tls/i686/cmov/libdl.so.2 /lib/tls/i686/cmov/libpthread.so.0 The -u option (unused) shows me what dependencies are not being used. Question: Can I ignore these dependencies, since they are not being taken into account? Regards. From Karl.Reinl at ...2345... Mon Dec 21 23:37:03 2009 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Mon, 21 Dec 2009 23:37:03 +0100 Subject: [Gambas-user] ambas2 Revision 2498 fails on reconf-all Message-ID: <1261435023.24875.4.camel@...40...> Salut, gambas2 Revision 2498 fails on reconf-all, on my box -- Amicalement Charlie [OperatingSystem] OperatingSystem=Linux KernelRelease=2.6.24-26-generic DistributionVendor=ubuntu DistributionRelease="Ubuntu 8.04.3 LTS" [System] CPUArchitecture=i686 TotalRam=506932 kB [System] CPUArchitecture=i686 TotalRam=506932 kB [Gambas] Gambas1=gbx-1.0.17 Gambas1Path=/usr/bin/gbx Gambas2=2.18.0 rev.2498 Gambas2Path=/usr/local/bin/gbx2 Gambas3=2.99.0 rev.2449 Gambas3Path=/usr/local/bin/gbx3 From jussi.lahtinen at ...626... Tue Dec 22 20:39:37 2009 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Tue, 22 Dec 2009 21:39:37 +0200 Subject: [Gambas-user] ambas2 Revision 2498 fails on reconf-all In-Reply-To: <1261435023.24875.4.camel@...40...> References: <1261435023.24875.4.camel@...40...> Message-ID: <384d3900912221139x29956733h389d04a1dc769e0f@...627...> Please more info about fail. Error messages? Failing command? Jussi On Tue, Dec 22, 2009 at 00:37, Charlie Reinl wrote: > Salut, > > gambas2 Revision 2498 fails on reconf-all, on my box > > > -- > Amicalement > Charlie > > [OperatingSystem] > OperatingSystem=Linux > KernelRelease=2.6.24-26-generic > DistributionVendor=ubuntu > DistributionRelease="Ubuntu 8.04.3 LTS" > > [System] > CPUArchitecture=i686 > TotalRam=506932 kB > > > [System] > CPUArchitecture=i686 > TotalRam=506932 kB > > [Gambas] > Gambas1=gbx-1.0.17 > Gambas1Path=/usr/bin/gbx > Gambas2=2.18.0 ? ? ? ? ? ? ? ? ?rev.2498 > Gambas2Path=/usr/local/bin/gbx2 > Gambas3=2.99.0 ? ? ? ? ? ? ? ? ?rev.2449 > Gambas3Path=/usr/local/bin/gbx3 > > > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Tue Dec 22 20:45:11 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 22 Dec 2009 20:45:11 +0100 Subject: [Gambas-user] Beware with gambas 2 from subversion Message-ID: <200912222045.11569.gambas@...1...> Gambas 2 revision >= #2499 is not compilable at the moment. I'm currently working on fixes for the ARM architecture. Sorry for the inconvenience! -- Beno?t Minisini From Karl.Reinl at ...2345... Tue Dec 22 21:01:00 2009 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Tue, 22 Dec 2009 21:01:00 +0100 Subject: [Gambas-user] ambas2 Revision 2498 fails on reconf-all In-Reply-To: <384d3900912221139x29956733h389d04a1dc769e0f@...627...> References: <1261435023.24875.4.camel@...40...> <384d3900912221139x29956733h389d04a1dc769e0f@...627...> Message-ID: <1261512060.6364.5.camel@...40...> Am Dienstag, den 22.12.2009, 21:39 +0200 schrieb Jussi Lahtinen: > Please more info about fail. Error messages? Failing command? > > Jussi > > > On Tue, Dec 22, 2009 at 00:37, Charlie Reinl wrote: > > Salut, > > > > gambas2 Revision 2498 fails on reconf-all, on my box > > > > > > -- > > Amicalement > > Charlie > > > > [OperatingSystem] > > OperatingSystem=Linux > > KernelRelease=2.6.24-26-generic > > DistributionVendor=ubuntu > > DistributionRelease="Ubuntu 8.04.3 LTS" > > > > [System] > > CPUArchitecture=i686 > > TotalRam=506932 kB > > > > > > [System] > > CPUArchitecture=i686 > > TotalRam=506932 kB > > > > [Gambas] > > Gambas1=gbx-1.0.17 > > Gambas1Path=/usr/bin/gbx > > Gambas2=2.18.0 rev.2498 > > Gambas2Path=/usr/local/bin/gbx2 > > Gambas3=2.99.0 rev.2449 > > Gambas3Path=/usr/local/bin/gbx3 > > Oh......... pardon,I'v lost the attachment. here it is. -- Amicalement Charlie -------------- next part -------------- A non-text attachment was scrubbed... Name: reconf-all.log Type: text/x-log Size: 1817 bytes Desc: not available URL: From Karl.Reinl at ...2345... Tue Dec 22 21:18:47 2009 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Tue, 22 Dec 2009 21:18:47 +0100 Subject: [Gambas-user] gambas3 Revision 2498 fails on reconf-all In-Reply-To: <384d3900912221139x29956733h389d04a1dc769e0f@...627...> References: <1261435023.24875.4.camel@...40...> <384d3900912221139x29956733h389d04a1dc769e0f@...627...> Message-ID: <1261513127.6364.15.camel@...40...> Am Dienstag, den 22.12.2009, 21:39 +0200 schrieb Jussi Lahtinen: > Please more info about fail. Error messages? Failing command? > > Jussi > > > On Tue, Dec 22, 2009 at 00:37, Charlie Reinl wrote: > > Salut, > > > > gambas2 Revision 2498 fails on reconf-all, on my box > > > > > > -- > > Amicalement > > Charlie > > > > [OperatingSystem] > > OperatingSystem=Linux > > KernelRelease=2.6.24-26-generic > > DistributionVendor=ubuntu > > DistributionRelease="Ubuntu 8.04.3 LTS" > > > > [System] > > CPUArchitecture=i686 > > TotalRam=506932 kB > > > > > > [System] > > CPUArchitecture=i686 > > TotalRam=506932 kB > > > > [Gambas] > > Gambas1=gbx-1.0.17 > > Gambas1Path=/usr/bin/gbx > > Gambas2=2.18.0 rev.2498 > > Gambas2Path=/usr/local/bin/gbx2 > > Gambas3=2.99.0 rev.2449 > > Gambas3Path=/usr/local/bin/gbx3 > > I even had to change the subject. Oh...double oh... is that the copenhagen effect ? the problem was/is on gambas3 [Gambas] Gambas1=gbx-1.0.17 Gambas1Path=/usr/bin/gbx Gambas2=2.18.0 rev.2449 Gambas2Path=/usr/local/bin/gbx2 Gambas3=2.99.0 rev.2498 Gambas3Path=/usr/local/bin/gbx3 sorry, sorry and one more time sorry and one more time the attachments Charlie -------------- next part -------------- A non-text attachment was scrubbed... Name: reconf-all.log Type: text/x-log Size: 1817 bytes Desc: not available URL: From rterry at ...1946... Tue Dec 22 21:37:26 2009 From: rterry at ...1946... (richard terry) Date: Wed, 23 Dec 2009 07:37:26 +1100 Subject: [Gambas-user] Beware with gambas 2 from subversion In-Reply-To: <200912222045.11569.gambas@...1...> References: <200912222045.11569.gambas@...1...> Message-ID: <200912230737.26906.rterry@...1946...> On Wednesday 23 December 2009 06:45:11 Beno?t Minisini wrote: > Gambas 2 revision >= #2499 is not compilable at the moment. I'm currently > working on fixes for the ARM architecture. > > Sorry for the inconvenience! > This compiled ok on my ARCH linux box, does that mean its safe to use or will it explode my machine. Regards Richard From lordheavym at ...626... Tue Dec 22 21:43:47 2009 From: lordheavym at ...626... (Laurent Carlier) Date: Tue, 22 Dec 2009 21:43:47 +0100 Subject: [Gambas-user] gambas3 Revision 2498 fails on reconf-all In-Reply-To: <1261513127.6364.15.camel@...40...> References: <1261435023.24875.4.camel@...40...> <384d3900912221139x29956733h389d04a1dc769e0f@...627...> <1261513127.6364.15.camel@...40...> Message-ID: <200912222143.47091.lordheavym@...626...> Le mardi 22 d?cembre 2009 21:18:47, Charlie Reinl a ?crit : > Am Dienstag, den 22.12.2009, 21:39 +0200 schrieb Jussi Lahtinen: > > Please more info about fail. Error messages? Failing command? > > > > Jussi > > > > On Tue, Dec 22, 2009 at 00:37, Charlie Reinl wrote: > > > Salut, > > > > > > gambas2 Revision 2498 fails on reconf-all, on my box > > > > > > > > > -- > > > Amicalement > > > Charlie > > > > > > [OperatingSystem] > > > OperatingSystem=Linux > > > KernelRelease=2.6.24-26-generic > > > DistributionVendor=ubuntu > > > DistributionRelease="Ubuntu 8.04.3 LTS" > > > > > > [System] > > > CPUArchitecture=i686 > > > TotalRam=506932 kB > > > > > > > > > [System] > > > CPUArchitecture=i686 > > > TotalRam=506932 kB > > > > > > [Gambas] > > > Gambas1=gbx-1.0.17 > > > Gambas1Path=/usr/bin/gbx > > > Gambas2=2.18.0 rev.2498 > > > Gambas2Path=/usr/local/bin/gbx2 > > > Gambas3=2.99.0 rev.2449 > > > Gambas3Path=/usr/local/bin/gbx3 > > I even had to change the subject. > > Oh...double oh... > is that the copenhagen effect ? > > the problem was/is on gambas3 > > [Gambas] > Gambas1=gbx-1.0.17 > Gambas1Path=/usr/bin/gbx > Gambas2=2.18.0 rev.2449 > Gambas2Path=/usr/local/bin/gbx2 > Gambas3=2.99.0 rev.2498 > Gambas3Path=/usr/local/bin/gbx3 > > sorry, sorry and one more time sorry > > and one more time the attachments > > Charlie > What is output of libtoolize --version ? ++ From Karl.Reinl at ...2345... Tue Dec 22 21:53:58 2009 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Tue, 22 Dec 2009 21:53:58 +0100 Subject: [Gambas-user] gambas3 Revision 2498 fails on reconf-all In-Reply-To: <200912222143.47091.lordheavym@...626...> References: <1261435023.24875.4.camel@...40...> <384d3900912221139x29956733h389d04a1dc769e0f@...627...> <1261513127.6364.15.camel@...40...> <200912222143.47091.lordheavym@...626...> Message-ID: <1261515238.6364.18.camel@...40...> Am Dienstag, den 22.12.2009, 21:43 +0100 schrieb Laurent Carlier: > Le mardi 22 d?cembre 2009 21:18:47, Charlie Reinl a ?crit : > > Am Dienstag, den 22.12.2009, 21:39 +0200 schrieb Jussi Lahtinen: > > > Please more info about fail. Error messages? Failing command? > > > > > > Jussi > > > > > > On Tue, Dec 22, 2009 at 00:37, Charlie Reinl > wrote: > > > > Salut, > > > > > > > > gambas2 Revision 2498 fails on reconf-all, on my box > > > > > > > > > > > > -- > > > > Amicalement > > > > Charlie > > > > > > > > [OperatingSystem] > > > > OperatingSystem=Linux > > > > KernelRelease=2.6.24-26-generic > > > > DistributionVendor=ubuntu > > > > DistributionRelease="Ubuntu 8.04.3 LTS" > > > > > > > > [System] > > > > CPUArchitecture=i686 > > > > TotalRam=506932 kB > > > > > > > > > > > > [System] > > > > CPUArchitecture=i686 > > > > TotalRam=506932 kB > > > > > > > > [Gambas] > > > > Gambas1=gbx-1.0.17 > > > > Gambas1Path=/usr/bin/gbx > > > > Gambas2=2.18.0 rev.2498 > > > > Gambas2Path=/usr/local/bin/gbx2 > > > > Gambas3=2.99.0 rev.2449 > > > > Gambas3Path=/usr/local/bin/gbx3 > > > > I even had to change the subject. > > > > Oh...double oh... > > is that the copenhagen effect ? > > > > the problem was/is on gambas3 > > > > [Gambas] > > Gambas1=gbx-1.0.17 > > Gambas1Path=/usr/bin/gbx > > Gambas2=2.18.0 rev.2449 > > Gambas2Path=/usr/local/bin/gbx2 > > Gambas3=2.99.0 rev.2498 > > Gambas3Path=/usr/local/bin/gbx3 > > > > sorry, sorry and one more time sorry > > > > and one more time the attachments > > > > Charlie > > > > What is output of libtoolize --version ? > > ++ @Scenic:~$ libtoolize --version libtoolize (GNU libtool) 1.5.26 From lordheavym at ...626... Tue Dec 22 22:03:03 2009 From: lordheavym at ...626... (Laurent Carlier) Date: Tue, 22 Dec 2009 22:03:03 +0100 Subject: [Gambas-user] gambas3 Revision 2498 fails on reconf-all In-Reply-To: <1261515238.6364.18.camel@...40...> References: <1261435023.24875.4.camel@...40...> <200912222143.47091.lordheavym@...626...> <1261515238.6364.18.camel@...40...> Message-ID: <200912222203.03728.lordheavym@...626...> Le mardi 22 d?cembre 2009 21:53:58, Charlie Reinl a ?crit : > Am Dienstag, den 22.12.2009, 21:43 +0100 schrieb Laurent Carlier: > > Le mardi 22 d?cembre 2009 21:18:47, Charlie Reinl a ?crit : > > > Am Dienstag, den 22.12.2009, 21:39 +0200 schrieb Jussi Lahtinen: > > > > Please more info about fail. Error messages? Failing command? > > > > > > > > Jussi > > > > > > > > On Tue, Dec 22, 2009 at 00:37, Charlie Reinl > > > > wrote: > > > > > Salut, > > > > > > > > > > gambas2 Revision 2498 fails on reconf-all, on my box > > > > > > > > > > > > > > > -- > > > > > Amicalement > > > > > Charlie > > > > > > > > > > [OperatingSystem] > > > > > OperatingSystem=Linux > > > > > KernelRelease=2.6.24-26-generic > > > > > DistributionVendor=ubuntu > > > > > DistributionRelease="Ubuntu 8.04.3 LTS" > > > > > > > > > > [System] > > > > > CPUArchitecture=i686 > > > > > TotalRam=506932 kB > > > > > > > > > > > > > > > [System] > > > > > CPUArchitecture=i686 > > > > > TotalRam=506932 kB > > > > > > > > > > [Gambas] > > > > > Gambas1=gbx-1.0.17 > > > > > Gambas1Path=/usr/bin/gbx > > > > > Gambas2=2.18.0 rev.2498 > > > > > Gambas2Path=/usr/local/bin/gbx2 > > > > > Gambas3=2.99.0 rev.2449 > > > > > Gambas3Path=/usr/local/bin/gbx3 > > > > > > I even had to change the subject. > > > > > > Oh...double oh... > > > is that the copenhagen effect ? > > > > > > the problem was/is on gambas3 > > > > > > [Gambas] > > > Gambas1=gbx-1.0.17 > > > Gambas1Path=/usr/bin/gbx > > > Gambas2=2.18.0 rev.2449 > > > Gambas2Path=/usr/local/bin/gbx2 > > > Gambas3=2.99.0 rev.2498 > > > Gambas3Path=/usr/local/bin/gbx3 > > > > > > sorry, sorry and one more time sorry > > > > > > and one more time the attachments > > > > > > Charlie > > > > What is output of libtoolize --version ? > > > > ++ > > @Scenic:~$ libtoolize --version > libtoolize (GNU libtool) 1.5.26 > > > > --------------------------------------------------------------------------- > --- This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and > easy Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > Ouch, really old version ! Don't know if there is a correct workaround for the new way reconf is done... From franklinsolutions at ...2340... Wed Dec 23 16:58:37 2009 From: franklinsolutions at ...2340... (fsl) Date: Wed, 23 Dec 2009 07:58:37 -0800 (PST) Subject: [Gambas-user] Database Sample Application Message-ID: <26903878.post@...1379...> Has anyone successfully used this sample in Gambas to retrieve data from a MSSQL database in Fedora 12 or any other distro. I can get the connection to open using odbc as the type and a dsn configured in odbc.ini & odbcinst.ini using freetds as the driver however the application falls over when the query runs. A wireshark trace shows that the query results are returned from the server. running tslq from a terminal in the form tsql -S server -U username -P password -D database connects and the results from any query run are displayed. Similarly running isql in the form isql -v DSNname username password also connects and the results from any query are displayed. -- View this message in context: http://old.nabble.com/Database-Sample-Application-tp26903878p26903878.html Sent from the gambas-user mailing list archive at Nabble.com. From mohareve at ...626... Wed Dec 23 21:33:21 2009 From: mohareve at ...626... (M. Cs.) Date: Wed, 23 Dec 2009 21:33:21 +0100 Subject: [Gambas-user] Shell sudo Message-ID: I'd like to make my app able to download and install packages via apt-get (or any other command-line package manager). How can I do that? I know it will need the user's password but how can I pass the command? The simple SHELL "sudo apt-get install ..." won't do the thing! Thanks! From lordheavym at ...626... Wed Dec 23 21:36:44 2009 From: lordheavym at ...626... (Laurent Carlier) Date: Wed, 23 Dec 2009 21:36:44 +0100 Subject: [Gambas-user] gambas3 Revision 2498 fails on reconf-all In-Reply-To: <1261515238.6364.18.camel@...40...> References: <1261435023.24875.4.camel@...40...> <200912222143.47091.lordheavym@...626...> <1261515238.6364.18.camel@...40...> Message-ID: <200912232136.44222.lordheavym@...626...> Le mardi 22 d?cembre 2009 21:53:58, Charlie Reinl a ?crit : > Am Dienstag, den 22.12.2009, 21:43 +0100 schrieb Laurent Carlier: > > Le mardi 22 d?cembre 2009 21:18:47, Charlie Reinl a ?crit : > > > Am Dienstag, den 22.12.2009, 21:39 +0200 schrieb Jussi Lahtinen: > > > > Please more info about fail. Error messages? Failing command? > > > > > > > > Jussi > > > > > > > > On Tue, Dec 22, 2009 at 00:37, Charlie Reinl > > > > wrote: > > > > > Salut, > > > > > > > > > > gambas2 Revision 2498 fails on reconf-all, on my box > > > > > > > > > > > > > > > -- > > > > > Amicalement > > > > > Charlie > > > > > > > > > > [OperatingSystem] > > > > > OperatingSystem=Linux > > > > > KernelRelease=2.6.24-26-generic > > > > > DistributionVendor=ubuntu > > > > > DistributionRelease="Ubuntu 8.04.3 LTS" > > > > > > > > > > [System] > > > > > CPUArchitecture=i686 > > > > > TotalRam=506932 kB > > > > > > > > > > > > > > > [System] > > > > > CPUArchitecture=i686 > > > > > TotalRam=506932 kB > > > > > > > > > > [Gambas] > > > > > Gambas1=gbx-1.0.17 > > > > > Gambas1Path=/usr/bin/gbx > > > > > Gambas2=2.18.0 rev.2498 > > > > > Gambas2Path=/usr/local/bin/gbx2 > > > > > Gambas3=2.99.0 rev.2449 > > > > > Gambas3Path=/usr/local/bin/gbx3 > > > > > > I even had to change the subject. > > > > > > Oh...double oh... > > > is that the copenhagen effect ? > > > > > > the problem was/is on gambas3 > > > > > > [Gambas] > > > Gambas1=gbx-1.0.17 > > > Gambas1Path=/usr/bin/gbx > > > Gambas2=2.18.0 rev.2449 > > > Gambas2Path=/usr/local/bin/gbx2 > > > Gambas3=2.99.0 rev.2498 > > > Gambas3Path=/usr/local/bin/gbx3 > > > > > > sorry, sorry and one more time sorry > > > > > > and one more time the attachments > > > > > > Charlie > > > > What is output of libtoolize --version ? > > > > ++ > > @Scenic:~$ libtoolize --version > libtoolize (GNU libtool) 1.5.26 > > Try to change the following line in reconf file: libtoolize --force --copy --install -> libtoolize --force --copy libtoolize 1.5.26 doesn't support --install parameter. From gambas at ...1... Wed Dec 23 21:42:30 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 23 Dec 2009 21:42:30 +0100 Subject: [Gambas-user] gambas3 Revision 2498 fails on reconf-all In-Reply-To: <200912232136.44222.lordheavym@...626...> References: <1261435023.24875.4.camel@...40...> <1261515238.6364.18.camel@...40...> <200912232136.44222.lordheavym@...626...> Message-ID: <200912232142.30654.gambas@...1...> > Le mardi 22 d?cembre 2009 21:53:58, Charlie Reinl a ?crit : > > Am Dienstag, den 22.12.2009, 21:43 +0100 schrieb Laurent Carlier: > > > Le mardi 22 d?cembre 2009 21:18:47, Charlie Reinl a ?crit : > > > > Am Dienstag, den 22.12.2009, 21:39 +0200 schrieb Jussi Lahtinen: > > > > > Please more info about fail. Error messages? Failing command? > > > > > > > > > > Jussi > > > > > > > > > > On Tue, Dec 22, 2009 at 00:37, Charlie Reinl > > > > > > > > > > > wrote: > > > > > > Salut, > > > > > > > > > > > > gambas2 Revision 2498 fails on reconf-all, on my box > > > > > > > > > > > > > > > > > > -- > > > > > > Amicalement > > > > > > Charlie > > > > > > > > > > > > [OperatingSystem] > > > > > > OperatingSystem=Linux > > > > > > KernelRelease=2.6.24-26-generic > > > > > > DistributionVendor=ubuntu > > > > > > DistributionRelease="Ubuntu 8.04.3 LTS" > > > > > > > > > > > > [System] > > > > > > CPUArchitecture=i686 > > > > > > TotalRam=506932 kB > > > > > > > > > > > > > > > > > > [System] > > > > > > CPUArchitecture=i686 > > > > > > TotalRam=506932 kB > > > > > > > > > > > > [Gambas] > > > > > > Gambas1=gbx-1.0.17 > > > > > > Gambas1Path=/usr/bin/gbx > > > > > > Gambas2=2.18.0 rev.2498 > > > > > > Gambas2Path=/usr/local/bin/gbx2 > > > > > > Gambas3=2.99.0 rev.2449 > > > > > > Gambas3Path=/usr/local/bin/gbx3 > > > > > > > > I even had to change the subject. > > > > > > > > Oh...double oh... > > > > is that the copenhagen effect ? > > > > > > > > the problem was/is on gambas3 > > > > > > > > [Gambas] > > > > Gambas1=gbx-1.0.17 > > > > Gambas1Path=/usr/bin/gbx > > > > Gambas2=2.18.0 rev.2449 > > > > Gambas2Path=/usr/local/bin/gbx2 > > > > Gambas3=2.99.0 rev.2498 > > > > Gambas3Path=/usr/local/bin/gbx3 > > > > > > > > sorry, sorry and one more time sorry > > > > > > > > and one more time the attachments > > > > > > > > Charlie > > > > > > What is output of libtoolize --version ? > > > > > > ++ > > > > @Scenic:~$ libtoolize --version > > libtoolize (GNU libtool) 1.5.26 > > Try to change the following line in reconf file: > libtoolize --force --copy --install -> libtoolize --force --copy > > libtoolize 1.5.26 doesn't support --install parameter. > Is it possible to add a test on the libtool version in the reconf shell script? -- Beno?t Minisini From lordheavym at ...626... Wed Dec 23 21:58:03 2009 From: lordheavym at ...626... (Laurent Carlier) Date: Wed, 23 Dec 2009 21:58:03 +0100 Subject: [Gambas-user] gambas3 Revision 2498 fails on reconf-all In-Reply-To: <200912232142.30654.gambas@...1...> References: <1261435023.24875.4.camel@...40...> <200912232136.44222.lordheavym@...626...> <200912232142.30654.gambas@...1...> Message-ID: <200912232158.03093.lordheavym@...626...> Le mercredi 23 d?cembre 2009 21:42:30, Beno?t Minisini a ?crit : > > Le mardi 22 d?cembre 2009 21:53:58, Charlie Reinl a ?crit : > > > Am Dienstag, den 22.12.2009, 21:43 +0100 schrieb Laurent Carlier: > > > > Le mardi 22 d?cembre 2009 21:18:47, Charlie Reinl a ?crit : > > > > > Am Dienstag, den 22.12.2009, 21:39 +0200 schrieb Jussi Lahtinen: > > > > > > Please more info about fail. Error messages? Failing command? > > > > > > > > > > > > Jussi > > > > > > > > > > > > On Tue, Dec 22, 2009 at 00:37, Charlie Reinl > > > > > > > > > > > > > > wrote: > > > > > > > Salut, > > > > > > > > > > > > > > gambas2 Revision 2498 fails on reconf-all, on my box > > > > > > > > > > > > > > > > > > > > > -- > > > > > > > Amicalement > > > > > > > Charlie > > > > > > > > > > > > > > [OperatingSystem] > > > > > > > OperatingSystem=Linux > > > > > > > KernelRelease=2.6.24-26-generic > > > > > > > DistributionVendor=ubuntu > > > > > > > DistributionRelease="Ubuntu 8.04.3 LTS" > > > > > > > > > > > > > > [System] > > > > > > > CPUArchitecture=i686 > > > > > > > TotalRam=506932 kB > > > > > > > > > > > > > > > > > > > > > [System] > > > > > > > CPUArchitecture=i686 > > > > > > > TotalRam=506932 kB > > > > > > > > > > > > > > [Gambas] > > > > > > > Gambas1=gbx-1.0.17 > > > > > > > Gambas1Path=/usr/bin/gbx > > > > > > > Gambas2=2.18.0 rev.2498 > > > > > > > Gambas2Path=/usr/local/bin/gbx2 > > > > > > > Gambas3=2.99.0 rev.2449 > > > > > > > Gambas3Path=/usr/local/bin/gbx3 > > > > > > > > > > I even had to change the subject. > > > > > > > > > > Oh...double oh... > > > > > is that the copenhagen effect ? > > > > > > > > > > the problem was/is on gambas3 > > > > > > > > > > [Gambas] > > > > > Gambas1=gbx-1.0.17 > > > > > Gambas1Path=/usr/bin/gbx > > > > > Gambas2=2.18.0 rev.2449 > > > > > Gambas2Path=/usr/local/bin/gbx2 > > > > > Gambas3=2.99.0 rev.2498 > > > > > Gambas3Path=/usr/local/bin/gbx3 > > > > > > > > > > sorry, sorry and one more time sorry > > > > > > > > > > and one more time the attachments > > > > > > > > > > Charlie > > > > > > > > What is output of libtoolize --version ? > > > > > > > > ++ > > > > > > @Scenic:~$ libtoolize --version > > > libtoolize (GNU libtool) 1.5.26 > > > > Try to change the following line in reconf file: > > libtoolize --force --copy --install -> libtoolize --force --copy > > > > libtoolize 1.5.26 doesn't support --install parameter. > > Is it possible to add a test on the libtool version in the reconf shell > script? > I guess it should be possible, but first we need to know if it's working without --install parameter :-) From joshiggins at ...1601... Wed Dec 23 22:00:46 2009 From: joshiggins at ...1601... (Joshua Higgins) Date: Wed, 23 Dec 2009 21:00:46 +0000 Subject: [Gambas-user] Shell sudo In-Reply-To: References: Message-ID: <4247f5440912231300v62e7c37an7c77c2fe612b68a@...627...> I've been writing the command I want to execute as root ("apt-get install package") to a temporary file (e.g. /tmp/install.package), making it executable (chmod +x) then using SHELL "gksu sh /tmp/install.package" which prompts the user for the password. Its probably not the best way, but its quite nice because you can set the message gksu displays and it integrates nicely with gnome. Of course you can replace gksu with kdesu. Hope this helps. 2009/12/23 M. Cs. : > I'd like to make my app able to download and install packages via apt-get > (or any other command-line package manager). How can I do that? I know it > will need the user's password but how can I pass the command? > The simple SHELL "sudo apt-get install ..." won't do the thing! > Thanks! > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- joshua higgins >>>>>>------ From Karl.Reinl at ...2345... Wed Dec 23 22:18:53 2009 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Wed, 23 Dec 2009 22:18:53 +0100 Subject: [Gambas-user] gambas3 Revision 2498 fails on reconf-all In-Reply-To: <200912232136.44222.lordheavym@...626...> References: <1261435023.24875.4.camel@...40...> <200912222143.47091.lordheavym@...626...> <1261515238.6364.18.camel@...40...> <200912232136.44222.lordheavym@...626...> Message-ID: <1261603133.6359.5.camel@...40...> Am Mittwoch, den 23.12.2009, 21:36 +0100 schrieb Laurent Carlier: > Le mardi 22 d?cembre 2009 21:53:58, Charlie Reinl a ?crit : > > Am Dienstag, den 22.12.2009, 21:43 +0100 schrieb Laurent Carlier: > > > Le mardi 22 d?cembre 2009 21:18:47, Charlie Reinl a ?crit : > > > > Am Dienstag, den 22.12.2009, 21:39 +0200 schrieb Jussi Lahtinen: > > > > > Please more info about fail. Error messages? Failing command? > > > > > > > > > > Jussi > > > > > > > > > > On Tue, Dec 22, 2009 at 00:37, Charlie Reinl > > > > > > wrote: > > > > > > Salut, > > > > > > > > > > > > gambas2 Revision 2498 fails on reconf-all, on my box > > > > > > > > > > > > > > > > > > -- > > > > > > Amicalement > > > > > > Charlie > > > > > > > > > > > > [OperatingSystem] > > > > > > OperatingSystem=Linux > > > > > > KernelRelease=2.6.24-26-generic > > > > > > DistributionVendor=ubuntu > > > > > > DistributionRelease="Ubuntu 8.04.3 LTS" > > > > > > > > > > > > [System] > > > > > > CPUArchitecture=i686 > > > > > > TotalRam=506932 kB > > > > > > > > > > > > > > > > > > [System] > > > > > > CPUArchitecture=i686 > > > > > > TotalRam=506932 kB > > > > > > > > > > > > [Gambas] > > > > > > Gambas1=gbx-1.0.17 > > > > > > Gambas1Path=/usr/bin/gbx > > > > > > Gambas2=2.18.0 rev.2498 > > > > > > Gambas2Path=/usr/local/bin/gbx2 > > > > > > Gambas3=2.99.0 rev.2449 > > > > > > Gambas3Path=/usr/local/bin/gbx3 > > > > > > > > I even had to change the subject. > > > > > > > > Oh...double oh... > > > > is that the copenhagen effect ? > > > > > > > > the problem was/is on gambas3 > > > > > > > > [Gambas] > > > > Gambas1=gbx-1.0.17 > > > > Gambas1Path=/usr/bin/gbx > > > > Gambas2=2.18.0 rev.2449 > > > > Gambas2Path=/usr/local/bin/gbx2 > > > > Gambas3=2.99.0 rev.2498 > > > > Gambas3Path=/usr/local/bin/gbx3 > > > > > > > > sorry, sorry and one more time sorry > > > > > > > > and one more time the attachments > > > > > > > > Charlie > > > > > > What is output of libtoolize --version ? > > > > > > ++ > > > > @Scenic:~$ libtoolize --version > > libtoolize (GNU libtool) 1.5.26 > > > > > Try to change the following line in reconf file: > libtoolize --force --copy --install -> libtoolize --force --copy > > libtoolize 1.5.26 doesn't support --install parameter. > Salut Laurent, Beno?t, thanks, but no success, see my attachments. -- Cordialement Charlie -------------- next part -------------- A non-text attachment was scrubbed... Name: reconf-all Type: application/x-shellscript Size: 133 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: reconf-all.log Type: text/x-log Size: 1532 bytes Desc: not available URL: From lordheavym at ...626... Wed Dec 23 22:33:12 2009 From: lordheavym at ...626... (Laurent Carlier) Date: Wed, 23 Dec 2009 22:33:12 +0100 Subject: [Gambas-user] gambas3 Revision 2498 fails on reconf-all In-Reply-To: <1261603133.6359.5.camel@...40...> References: <1261435023.24875.4.camel@...40...> <200912232136.44222.lordheavym@...626...> <1261603133.6359.5.camel@...40...> Message-ID: <200912232233.12978.lordheavym@...626...> Le mercredi 23 d?cembre 2009 22:18:53, Charlie Reinl a ?crit : > Am Mittwoch, den 23.12.2009, 21:36 +0100 schrieb Laurent Carlier: > > Le mardi 22 d?cembre 2009 21:53:58, Charlie Reinl a ?crit : > > > Am Dienstag, den 22.12.2009, 21:43 +0100 schrieb Laurent Carlier: > > > > Le mardi 22 d?cembre 2009 21:18:47, Charlie Reinl a ?crit : > > > > > Am Dienstag, den 22.12.2009, 21:39 +0200 schrieb Jussi Lahtinen: > > > > > > Please more info about fail. Error messages? Failing command? > > > > > > > > > > > > Jussi > > > > > > > > > > > > On Tue, Dec 22, 2009 at 00:37, Charlie Reinl > > > > > > > > > > > > > > wrote: > > > > > > > Salut, > > > > > > > > > > > > > > gambas2 Revision 2498 fails on reconf-all, on my box > > > > > > > > > > > > > > > > > > > > > -- > > > > > > > Amicalement > > > > > > > Charlie > > > > > > > > > > > > > > [OperatingSystem] > > > > > > > OperatingSystem=Linux > > > > > > > KernelRelease=2.6.24-26-generic > > > > > > > DistributionVendor=ubuntu > > > > > > > DistributionRelease="Ubuntu 8.04.3 LTS" > > > > > > > > > > > > > > [System] > > > > > > > CPUArchitecture=i686 > > > > > > > TotalRam=506932 kB > > > > > > > > > > > > > > > > > > > > > [System] > > > > > > > CPUArchitecture=i686 > > > > > > > TotalRam=506932 kB > > > > > > > > > > > > > > [Gambas] > > > > > > > Gambas1=gbx-1.0.17 > > > > > > > Gambas1Path=/usr/bin/gbx > > > > > > > Gambas2=2.18.0 rev.2498 > > > > > > > Gambas2Path=/usr/local/bin/gbx2 > > > > > > > Gambas3=2.99.0 rev.2449 > > > > > > > Gambas3Path=/usr/local/bin/gbx3 > > > > > > > > > > I even had to change the subject. > > > > > > > > > > Oh...double oh... > > > > > is that the copenhagen effect ? > > > > > > > > > > the problem was/is on gambas3 > > > > > > > > > > [Gambas] > > > > > Gambas1=gbx-1.0.17 > > > > > Gambas1Path=/usr/bin/gbx > > > > > Gambas2=2.18.0 rev.2449 > > > > > Gambas2Path=/usr/local/bin/gbx2 > > > > > Gambas3=2.99.0 rev.2498 > > > > > Gambas3Path=/usr/local/bin/gbx3 > > > > > > > > > > sorry, sorry and one more time sorry > > > > > > > > > > and one more time the attachments > > > > > > > > > > Charlie > > > > > > > > What is output of libtoolize --version ? > > > > > > > > ++ > > > > > > @Scenic:~$ libtoolize --version > > > libtoolize (GNU libtool) 1.5.26 > > > > Try to change the following line in reconf file: > > libtoolize --force --copy --install -> libtoolize --force --copy > > > > libtoolize 1.5.26 doesn't support --install parameter. > > Salut Laurent, Beno?t, > > thanks, but no success, see my attachments. > And adding --install to autoreconf line: autoreconf -v $@ -> autoreconf -v --install $@ ? From Karl.Reinl at ...2345... Wed Dec 23 23:36:28 2009 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Wed, 23 Dec 2009 23:36:28 +0100 Subject: [Gambas-user] gambas3 Revision 2498 fails on reconf-all In-Reply-To: <200912232233.12978.lordheavym@...626...> References: <1261435023.24875.4.camel@...40...> <200912232136.44222.lordheavym@...626...> <1261603133.6359.5.camel@...40...> <200912232233.12978.lordheavym@...626...> Message-ID: <1261607788.6359.8.camel@...40...> Am Mittwoch, den 23.12.2009, 22:33 +0100 schrieb Laurent Carlier: > Le mercredi 23 d?cembre 2009 22:18:53, Charlie Reinl a ?crit : > > Am Mittwoch, den 23.12.2009, 21:36 +0100 schrieb Laurent Carlier: > > > Le mardi 22 d?cembre 2009 21:53:58, Charlie Reinl a ?crit : > > > > Am Dienstag, den 22.12.2009, 21:43 +0100 schrieb Laurent Carlier: > > > > > Le mardi 22 d?cembre 2009 21:18:47, Charlie Reinl a ?crit : > > > > > > Am Dienstag, den 22.12.2009, 21:39 +0200 schrieb Jussi Lahtinen: > > > > > > > Please more info about fail. Error messages? Failing command? > > > > > > > > > > > > > > Jussi > > > > > > > > > > > > > > On Tue, Dec 22, 2009 at 00:37, Charlie Reinl > > > > > > > > > > > > > > > > > wrote: > > > > > > > > Salut, > > > > > > > > > > > > > > > > gambas2 Revision 2498 fails on reconf-all, on my box > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > > > Amicalement > > > > > > > > Charlie > > > > > > > > > > > > > > > > [OperatingSystem] > > > > > > > > OperatingSystem=Linux > > > > > > > > KernelRelease=2.6.24-26-generic > > > > > > > > DistributionVendor=ubuntu > > > > > > > > DistributionRelease="Ubuntu 8.04.3 LTS" > > > > > > > > > > > > > > > > [System] > > > > > > > > CPUArchitecture=i686 > > > > > > > > TotalRam=506932 kB > > > > > > > > > > > > > > > > > > > > > > > > [System] > > > > > > > > CPUArchitecture=i686 > > > > > > > > TotalRam=506932 kB > > > > > > > > > > > > > > > > [Gambas] > > > > > > > > Gambas1=gbx-1.0.17 > > > > > > > > Gambas1Path=/usr/bin/gbx > > > > > > > > Gambas2=2.18.0 rev.2498 > > > > > > > > Gambas2Path=/usr/local/bin/gbx2 > > > > > > > > Gambas3=2.99.0 rev.2449 > > > > > > > > Gambas3Path=/usr/local/bin/gbx3 > > > > > > > > > > > > I even had to change the subject. > > > > > > > > > > > > Oh...double oh... > > > > > > is that the copenhagen effect ? > > > > > > > > > > > > the problem was/is on gambas3 > > > > > > > > > > > > [Gambas] > > > > > > Gambas1=gbx-1.0.17 > > > > > > Gambas1Path=/usr/bin/gbx > > > > > > Gambas2=2.18.0 rev.2449 > > > > > > Gambas2Path=/usr/local/bin/gbx2 > > > > > > Gambas3=2.99.0 rev.2498 > > > > > > Gambas3Path=/usr/local/bin/gbx3 > > > > > > > > > > > > sorry, sorry and one more time sorry > > > > > > > > > > > > and one more time the attachments > > > > > > > > > > > > Charlie > > > > > > > > > > What is output of libtoolize --version ? > > > > > > > > > > ++ > > > > > > > > @Scenic:~$ libtoolize --version > > > > libtoolize (GNU libtool) 1.5.26 > > > > > > Try to change the following line in reconf file: > > > libtoolize --force --copy --install -> libtoolize --force --copy > > > > > > libtoolize 1.5.26 doesn't support --install parameter. > > > > Salut Laurent, Beno?t, > > > > thanks, but no success, see my attachments. > > > > And adding --install to autoreconf line: > autoreconf -v $@ -> autoreconf -v --install $@ > > ? get a bit further, but failed in make. attached the logs -- Amicalement Charlie -------------- next part -------------- A non-text attachment was scrubbed... Name: rev2502-logs .tar.bz2 Type: application/x-bzip-compressed-tar Size: 7283 bytes Desc: not available URL: From Karl.Reinl at ...2345... Thu Dec 24 16:27:14 2009 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Thu, 24 Dec 2009 16:27:14 +0100 Subject: [Gambas-user] Revision: 2514 Message-ID: <1261668434.6421.9.camel@...40...> gambas3 Revision: 2514 does not compile for me , fails at reconf Charlie -------------- next part -------------- A non-text attachment was scrubbed... Name: reconf-all.log Type: text/x-log Size: 1532 bytes Desc: not available URL: From lordheavym at ...626... Thu Dec 24 16:55:27 2009 From: lordheavym at ...626... (Laurent Carlier) Date: Thu, 24 Dec 2009 16:55:27 +0100 Subject: [Gambas-user] Revision: 2514 In-Reply-To: <1261668434.6421.9.camel@...40...> References: <1261668434.6421.9.camel@...40...> Message-ID: <200912241655.27623.lordheavym@...626...> Le jeudi 24 d?cembre 2009 16:27:14, Charlie Reinl a ?crit : > gambas3 Revision: 2514 > does not compile for me , fails at reconf > > Charlie > I guess it's because the m4/ltversion.m4 is missing.... There is really a big differences between libtool 1.5.x and 2.x ! Does the file is present ? With libtool 2.x (and install option) ltversion.m4 is automaticaly installed, files config.guess, ltmain.sh, config.sub, install-sh are not needed (i've remove them and it's building fine (they are created during make install). Users (benoit and others) should try to remove them and see if they are correctly created (and it's installing fine) Here it's libtool version 2.2.6b (libtool --version); We can keep compatibility with with 1.5.x libtool, but we will have lot of headache with libtool 2.x, ++ From gambas at ...1... Thu Dec 24 17:30:24 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 24 Dec 2009 17:30:24 +0100 Subject: [Gambas-user] Revision: 2514 In-Reply-To: <200912241655.27623.lordheavym@...626...> References: <1261668434.6421.9.camel@...40...> <200912241655.27623.lordheavym@...626...> Message-ID: <200912241730.24303.gambas@...1...> > Le jeudi 24 d?cembre 2009 16:27:14, Charlie Reinl a ?crit : > > gambas3 Revision: 2514 > > does not compile for me , fails at reconf > > > > Charlie > > I guess it's because the m4/ltversion.m4 is missing.... There is really a > big differences between libtool 1.5.x and 2.x ! Does the file is present ? > > With libtool 2.x (and install option) ltversion.m4 is automaticaly > installed, files config.guess, ltmain.sh, config.sub, install-sh are not > needed (i've remove them and it's building fine (they are created during > make install). Users (benoit and others) should try to remove them and see > if they are correctly created (and it's installing fine) > > Here it's libtool version 2.2.6b (libtool --version); > > We can keep compatibility with with 1.5.x libtool, but we will have lot of > headache with libtool 2.x, > > ++ > config.guess, ltmain.sh, config.sub and install.sh in source sub-directories are all symbolic links to the one located in the source root directory. I will remove them, and you will tell me what happens! :-) -- Beno?t Minisini From gambas at ...1... Thu Dec 24 17:33:56 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 24 Dec 2009 17:33:56 +0100 Subject: [Gambas-user] Revision: 2514 In-Reply-To: <200912241730.24303.gambas@...1...> References: <1261668434.6421.9.camel@...40...> <200912241655.27623.lordheavym@...626...> <200912241730.24303.gambas@...1...> Message-ID: <200912241733.56749.gambas@...1...> > > Le jeudi 24 d?cembre 2009 16:27:14, Charlie Reinl a ?crit : > > > gambas3 Revision: 2514 > > > does not compile for me , fails at reconf > > > > > > Charlie > > > > I guess it's because the m4/ltversion.m4 is missing.... There is really a > > big differences between libtool 1.5.x and 2.x ! Does the file is present > > ? > > > > With libtool 2.x (and install option) ltversion.m4 is automaticaly > > installed, files config.guess, ltmain.sh, config.sub, install-sh are > > not needed (i've remove them and it's building fine (they are created > > during make install). Users (benoit and others) should try to remove them > > and see if they are correctly created (and it's installing fine) > > > > Here it's libtool version 2.2.6b (libtool --version); > > > > We can keep compatibility with with 1.5.x libtool, but we will have lot > > of headache with libtool 2.x, > > > > ++ > > config.guess, ltmain.sh, config.sub and install.sh in source > sub-directories are all symbolic links to the one located in the source > root directory. > > I will remove them, and you will tell me what happens! :-) > I said rubbish. All these files are not versioned at all, so they are always recreated when you do a reconf after a checkout. So I don't see how Gambas could be compilable with both libtool 1.5 and libtool 2.x... -- Beno?t Minisini From gambas at ...1... Thu Dec 24 17:36:07 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 24 Dec 2009 17:36:07 +0100 Subject: [Gambas-user] Dinamic Libraries unused with ldd In-Reply-To: <1261426482.3630.6.camel@...651...> References: <1261426482.3630.6.camel@...651...> Message-ID: <200912241736.07913.gambas@...1...> > Hello > > I'm seeing the dynamic libs that depends gbx2 file. > > For that I use: > > $ ldd / usr/local/bin/gbx2. > > The result gives me is: > > linux-gate.so.1 => (0xb8033000) > libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7ff3000) > libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7fef000) > libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb7fd5000) > libffi.so.5 => /usr/lib/libffi.so.5 (0xb7fcd000) > libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7e6a000) > /lib/ld-linux.so.2 (0xb8034000) > > Now with the -u option, the result is, the result is: > > /lib/tls/i686/cmov/libm.so.6 > /lib/tls/i686/cmov/libdl.so.2 > /lib/tls/i686/cmov/libpthread.so.0 > > The -u option (unused) shows me what dependencies are not being used. > > Question: > > Can I ignore these dependencies, since they are not being taken into > account? > > Regards. No. Apparently the "-u" option is wrong: the mathematical library is used, otherwise how could the Sin() interpreter function work? libdl is used for loading component, and libpthread is needed by some components too, but not by the interpreter directly. Moreover, as the interpreter usually loads components at program startup, you will have to add all the dependencies of these components. Regards, -- Beno?t Minisini From gambas at ...1... Thu Dec 24 17:39:15 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 24 Dec 2009 17:39:15 +0100 Subject: [Gambas-user] SHELL not working (GB_DIR) In-Reply-To: <4B2C997E.1050906@...1909...> References: <4B294000.7080507@...2035...> <4B2C9465.7080607@...1909...> <4B2C997E.1050906@...1909...> Message-ID: <200912241739.15196.gambas@...1...> > Doriano Blengino ha scritto: > > Jesus Guardon ha scritto: > >>>> Hi again > >>>> > >>>> Continuing my testings on GB_DIR, I'm running into a new problem: > >>>> SHELL command has no effect at all. All sentences using SHELL are not > >>>> executed. As you can guess, running my project executable the normal > >>>> way (not using GB_DIR) it is running right. Could this be a bug? > >>> > >>> SHELL is just an equivalent of EXEC ["sh", "-c", "XXX"] where "XXX" is > >>> the string passed to the SHELL command. > >> > >> Not at all. No error message is displayed, simply SHELL command seems to > >> be ignored by the interpreter. > >> As for launch my program I'm using a shell script (you can see it in the > >> previous posts), I'm not able to run gdb against myprogram.gambas, or > >> myprogram (without .sh extension). > > > > In a previous mail you wrote: > >> I am calling my executable from a bash script located in /usr/local/bin > >> > >>>>> jesus at ...2151...:~$ cat /usr/local/bin/dfhlog > >>>>> #!/bin/sh > >>>>> export PATH=/opt/dfhlog/gambas2/bin > >>>>> export GB_DIR=/opt/dfhlog/gambas2 > >>>>> exec /opt/dfhlog/dfhlog.gambas > >>>>> > >>>>> (In this case, LD_LIBRARY_PATH is not used, because they already are > >>>>> in my system). > > > > Your "export PATH" command imposes a path which excludes standard unix > > paths - you will never find system utilities like pidof(1), and neither > > the shell itself. You should write: > > > > export PATH=/opt/dfhlog/gambas2/bin:$PATH > > > > to add your personal path the the standard ones. Or, if you are a > > security paranoid, you could use: > > > > export PATH=/opt/dfhlog/gambas2/bin:/usr/bin:/bin > > > > This way you don't trust the existing path. This second form excludes > > /sbin and /usr/sbin; you should add them if you need system > > administration commands like route, fdisk, reboot, addgroup and many > > others. > > > > Regards, > > Just after hitting the send button, I realized that this idea is correct > only in part. May be it solves, it is a quick try. > The right part is that the PATH variable is used by the shell itself, so > even if your gambas program finds the shell and asks it to execute > something, the shell will fail to do it. Probably this is not considered > an error by gambas, so the instruction SHELL "pidof xxx" fails silently. > > The ambigous part is in whether gambas uses PATH to search for the > shell. If it is so, then your gambas program will not find the shell, > and gambas should report this, because "an internal instruction of > gambas is failing". In this case, however, one can ask himself if makes > it sense to use PATH to search for the shell, which traditionally is > /bin/sh, and many scripts included system ones address the shell in this > way. Assuming that SHELL is a substitute for EXEC ["sh", "-c", "...."], > and that EXEC searches executables in PATH, this would explain all. > Perhaps would be better to bind SHELL to EXEC ["/bin/sh", "-c", "..."]. > > I am not sure if, natively, exec() searches executables in PATH. May be > that there is the system call exec() which does one thing, and the C > library wrapped exec() which does differently. In any case, if it is so, > this would explain my sensation that SHELLs in gambas are slow. In my > system (a normal Debian), the PATH variable looks like > "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11" > . Every time a gambas program invokes a SHELL, the system searches sh in 4 > directories, and then sh searches for the executable in 4 directories > again; the first four directories could be skipped. > > Regards, > That's exactly the point: I send "sh" to the system, asking him to search it inside the PATH, by using the execvp() glibc function. I don't remember why I decided to do that. Maybe it is not useful, maybe I can use directly "/bin/sh", and let the user use the EXEC instruction if he needs something else? -- Beno?t Minisini From lordheavym at ...626... Thu Dec 24 18:15:52 2009 From: lordheavym at ...626... (Laurent Carlier) Date: Thu, 24 Dec 2009 18:15:52 +0100 Subject: [Gambas-user] Revision: 2514 In-Reply-To: <200912241733.56749.gambas@...1...> References: <1261668434.6421.9.camel@...40...> <200912241730.24303.gambas@...1...> <200912241733.56749.gambas@...1...> Message-ID: <200912241815.52742.lordheavym@...626...> Le jeudi 24 d?cembre 2009 17:33:56, Beno?t Minisini a ?crit : > > > Le jeudi 24 d?cembre 2009 16:27:14, Charlie Reinl a ?crit : > > > > gambas3 Revision: 2514 > > > > does not compile for me , fails at reconf > > > > > > > > Charlie > > > > > > I guess it's because the m4/ltversion.m4 is missing.... There is really > > > a big differences between libtool 1.5.x and 2.x ! Does the file is > > > present ? > > > > > > With libtool 2.x (and install option) ltversion.m4 is automaticaly > > > installed, files config.guess, ltmain.sh, config.sub, install-sh are > > > not needed (i've remove them and it's building fine (they are created > > > during make install). Users (benoit and others) should try to remove > > > them and see if they are correctly created (and it's installing fine) > > > > > > Here it's libtool version 2.2.6b (libtool --version); > > > > > > We can keep compatibility with with 1.5.x libtool, but we will have lot > > > of headache with libtool 2.x, > > > > > > ++ > > > > config.guess, ltmain.sh, config.sub and install.sh in source > > sub-directories are all symbolic links to the one located in the source > > root directory. > > > > I will remove them, and you will tell me what happens! :-) > > I said rubbish. All these files are not versioned at all, so they are > always recreated when you do a reconf after a checkout. > > So I don't see how Gambas could be compilable with both libtool 1.5 and > libtool 2.x... > And they are in the repository see: http://gambas.svn.sourceforge.net/viewvc/gambas/gambas/trunk/gb.opengl/ So they can be removed From doriano.blengino at ...1909... Thu Dec 24 18:30:52 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Thu, 24 Dec 2009 18:30:52 +0100 Subject: [Gambas-user] SHELL not working (GB_DIR) In-Reply-To: <200912241739.15196.gambas@...1...> References: <4B294000.7080507@...2035...> <4B2C9465.7080607@...1909...> <4B2C997E.1050906@...1909...> <200912241739.15196.gambas@...1...> Message-ID: <4B33A54C.4030607@...1909...> Beno?t Minisini ha scritto: >> Doriano Blengino ha scritto: >> >>> Jesus Guardon ha scritto: >>> >>>>> >>>>> SHELL is just an equivalent of EXEC ["sh", "-c", "XXX"] where "XXX" is >>>>> the string passed to the SHELL command. >>>>> >>>> >>>>>>> jesus at ...2151...:~$ cat /usr/local/bin/dfhlog >>>>>>> #!/bin/sh >>>>>>> export PATH=/opt/dfhlog/gambas2/bin >>>>>>> export GB_DIR=/opt/dfhlog/gambas2 >>>>>>> exec /opt/dfhlog/dfhlog.gambas >>>>>>> >>>>>>> >>>>>>> >>> Your "export PATH" command imposes a path which excludes standard unix >>> paths - you will never find system utilities like pidof(1), and neither >>> the shell itself. You should write: >>> >>> export PATH=/opt/dfhlog/gambas2/bin:$PATH >>> >>> >> The right part is that the PATH variable is used by the shell itself, so >> even if your gambas program finds the shell and asks it to execute >> something, the shell will fail to do it. Probably this is not considered >> an error by gambas, so the instruction SHELL "pidof xxx" fails silently. >> >> The ambigous part is in whether gambas uses PATH to search for the >> shell. If it is so, then your gambas program will not find the shell, >> and gambas should report this, because "an internal instruction of >> gambas is failing". In this case, however, one can ask himself if makes >> it sense to use PATH to search for the shell, which traditionally is >> /bin/sh, and many scripts included system ones address the shell in this >> way. Assuming that SHELL is a substitute for EXEC ["sh", "-c", "...."], >> and that EXEC searches executables in PATH, this would explain all. >> Perhaps would be better to bind SHELL to EXEC ["/bin/sh", "-c", "..."]. >> >> I am not sure if, natively, exec() searches executables in PATH. May be >> that there is the system call exec() which does one thing, and the C >> library wrapped exec() which does differently. In any case, if it is so, >> this would explain my sensation that SHELLs in gambas are slow. In my >> system (a normal Debian), the PATH variable looks like >> "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11" >> . Every time a gambas program invokes a SHELL, the system searches sh in 4 >> directories, and then sh searches for the executable in 4 directories >> again; the first four directories could be skipped. >> >> Regards, >> >> > > That's exactly the point: I send "sh" to the system, asking him to search it > inside the PATH, by using the execvp() glibc function. > > I don't remember why I decided to do that. Maybe it is not useful, maybe I can > use directly "/bin/sh", and let the user use the EXEC instruction if he needs > something else? > > I think there are a few pros in using /bin/sh directly, and perhaps a single con. The pros are: slightly faster; more traditional in the sense that SHELL should invoke the "normal" system shell (/bin/sh) and not an arbitrary shell due to a mangled PATH; in a case like this one by Jesus, where we find a little error in setting PATH, the SHELL statement would work anyway. The single con, perhaps, is that in a non standard system, with strange PATH set up, the SHELL could fail. But this could be overcome by using EXEC instead of SHELL: a user special enough to use a special setup, can well use EXEC instead of SHELL. Perhaps a little search in some sources analogue in concept to gambas (python, awk...) could be explanatory; I would propend for /bin/sh. Regards and happy Christmas, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From prog at ...2177... Fri Dec 25 00:07:29 2009 From: prog at ...2177... (craf) Date: Thu, 24 Dec 2009 20:07:29 -0300 Subject: [Gambas-user] Dinamic Libraries unused with ldd In-Reply-To: <200912241736.07913.gambas@...1...> References: <1261426482.3630.6.camel@...651...> <200912241736.07913.gambas@...1...> Message-ID: <1261696049.3635.0.camel@...651...> Ok Benoit, Thank you very much. -----Mensaje original----- De: Beno?t Minisini Reply-to: mailing list for gambas users Para: mailing list for gambas users Asunto: Re: [Gambas-user] Dinamic Libraries unused with ldd Fecha: Thu, 24 Dec 2009 17:36:07 +0100 > Hello > > I'm seeing the dynamic libs that depends gbx2 file. > > For that I use: > > $ ldd / usr/local/bin/gbx2. > > The result gives me is: > > linux-gate.so.1 => (0xb8033000) > libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7ff3000) > libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7fef000) > libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb7fd5000) > libffi.so.5 => /usr/lib/libffi.so.5 (0xb7fcd000) > libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7e6a000) > /lib/ld-linux.so.2 (0xb8034000) > > Now with the -u option, the result is, the result is: > > /lib/tls/i686/cmov/libm.so.6 > /lib/tls/i686/cmov/libdl.so.2 > /lib/tls/i686/cmov/libpthread.so.0 > > The -u option (unused) shows me what dependencies are not being used. > > Question: > > Can I ignore these dependencies, since they are not being taken into > account? > > Regards. No. Apparently the "-u" option is wrong: the mathematical library is used, otherwise how could the Sin() interpreter function work? libdl is used for loading component, and libpthread is needed by some components too, but not by the interpreter directly. Moreover, as the interpreter usually loads components at program startup, you will have to add all the dependencies of these components. Regards, From les at ...2337... Thu Dec 24 20:24:00 2009 From: les at ...2337... (Les Hardy) Date: Thu, 24 Dec 2009 19:24:00 +0000 Subject: [Gambas-user] Shell sudo In-Reply-To: References: Message-ID: <4B33BFD0.20709@...2337...> sudo allows you to pass a password to the shell with -S The following should do it. sudo -S apt-get install PACKAGENAME << EOF PASSWORD EOF Regards Les Hardy M. Cs. wrote: > I'd like to make my app able to download and install packages via apt-get > (or any other command-line package manager). How can I do that? I know it > will need the user's password but how can I pass the command? > The simple SHELL "sudo apt-get install ..." won't do the thing! > Thanks! > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From mohareve at ...626... Fri Dec 25 11:01:15 2009 From: mohareve at ...626... (M. Cs.) Date: Fri, 25 Dec 2009 11:01:15 +0100 Subject: [Gambas-user] Shell sudo In-Reply-To: <4B33BFD0.20709@...2337...> References: <4B33BFD0.20709@...2337...> Message-ID: I've found a better solution: I've created a module file with a process. This can be triggered from within the main program. ' Gambas module file PUBLIC hProcess AS Process PUBLIC wins AS Form PUBLIC szoveg1 AS TextBox PUBLIC SUB ReadPassword() DIM black AS Button wins = NEW Form wins.Width = 150 wins.Height = 300 black = NEW Button(wins) black.Width = 100 black.Height = 25 black.X = 25 black.Y = 150 Object.Attach(black, ME, "runty") szoveg1 = NEW TextBox(wins) szoveg1.Width = 100 szoveg1.Height = 25 szoveg1.X = 25 szoveg1.Y = 120 szoveg1.Password = TRUE wins.Center wins.Show() hProcess = SHELL "sudo 'apt-get install PACKAGE'" FOR INPUT OUTPUT END PUBLIC SUB runty_Click() PRINT #hProcess, szoveg1.Text wins.Delete() END ' PUBLIC SUB Process_read() DIM sOutput AS String LINE INPUT #LAST, sOutput PRINT sOutput END The only problem is, that I'm trying to create an universal solution, which is distro independent. But it seems nearly impossible to do, since there are a conflict between su and sudo commands, or their acceptance by the different distributions. From lordheavym at ...626... Fri Dec 25 17:28:25 2009 From: lordheavym at ...626... (Laurent Carlier) Date: Fri, 25 Dec 2009 17:28:25 +0100 Subject: [Gambas-user] Revision: 2514 In-Reply-To: <200912241733.56749.gambas@...1...> References: <1261668434.6421.9.camel@...40...> <200912241730.24303.gambas@...1...> <200912241733.56749.gambas@...1...> Message-ID: <200912251728.26040.lordheavym@...626...> Le jeudi 24 d?cembre 2009 17:33:56, Beno?t Minisini a ?crit : > > > Le jeudi 24 d?cembre 2009 16:27:14, Charlie Reinl a ?crit : > > > > gambas3 Revision: 2514 > > > > does not compile for me , fails at reconf > > > > > > > > Charlie > > > > > > I guess it's because the m4/ltversion.m4 is missing.... There is really > > > a big differences between libtool 1.5.x and 2.x ! Does the file is > > > present ? > > > > > > With libtool 2.x (and install option) ltversion.m4 is automaticaly > > > installed, files config.guess, ltmain.sh, config.sub, install-sh are > > > not needed (i've remove them and it's building fine (they are created > > > during make install). Users (benoit and others) should try to remove > > > them and see if they are correctly created (and it's installing fine) > > > > > > Here it's libtool version 2.2.6b (libtool --version); > > > > > > We can keep compatibility with with 1.5.x libtool, but we will have lot > > > of headache with libtool 2.x, > > > > > > ++ > > > > config.guess, ltmain.sh, config.sub and install.sh in source > > sub-directories are all symbolic links to the one located in the source > > root directory. > > > > I will remove them, and you will tell me what happens! :-) > > I said rubbish. All these files are not versioned at all, so they are > always recreated when you do a reconf after a checkout. > > So I don't see how Gambas could be compilable with both libtool 1.5 and > libtool 2.x... > And here it's failling to build without '--install' option in libtoolize: [lordh at ...2346... trunktst]$ ./reconf libtoolize: putting auxiliary files in `.'. libtoolize: copying file `./ltmain.sh' libtoolize: You should add the contents of the following files to `aclocal.m4': libtoolize: `/usr/share/aclocal/libtool.m4' libtoolize: `/usr/share/aclocal/ltoptions.m4' libtoolize: `/usr/share/aclocal/ltversion.m4' libtoolize: `/usr/share/aclocal/ltsugar.m4' libtoolize: `/usr/share/aclocal/lt~obsolete.m4' libtoolize: Remember to add `LT_INIT' to configure.ac. libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.ac and libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree. libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am. autoreconf: Entering directory `.' autoreconf: configure.ac: not using Gettext autoreconf: running: aclocal autoreconf: configure.ac: tracing autoreconf: configure.ac: adding subdirectory main to autoreconf autoreconf: Entering directory `main' autoreconf: running: aclocal -I m4 --install autoreconf: configure.ac: not running libtoolize: --install not given autoreconf: running: /usr/bin/autoconf autoreconf: running: /usr/bin/autoheader autoreconf: running: automake --no-force configure.ac:6: required file `./config.guess' not found configure.ac:6: `automake --add-missing' can install `config.guess' configure.ac:6: required file `./config.sub' not found configure.ac:6: `automake --add-missing' can install `config.sub' configure.ac:6: required file `./install-sh' not found configure.ac:6: `automake --add-missing' can install `install-sh' autoreconf: automake failed with exit status: 1 From gambas at ...1... Sat Dec 26 19:17:41 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 26 Dec 2009 19:17:41 +0100 Subject: [Gambas-user] Revision: 2514 In-Reply-To: <200912241815.52742.lordheavym@...626...> References: <1261668434.6421.9.camel@...40...> <200912241733.56749.gambas@...1...> <200912241815.52742.lordheavym@...626...> Message-ID: <200912261917.41107.gambas@...1...> > Le jeudi 24 d?cembre 2009 17:33:56, Beno?t Minisini a ?crit : > > > > Le jeudi 24 d?cembre 2009 16:27:14, Charlie Reinl a ?crit : > > > > > gambas3 Revision: 2514 > > > > > does not compile for me , fails at reconf > > > > > > > > > > Charlie > > > > > > > > I guess it's because the m4/ltversion.m4 is missing.... There is > > > > really a big differences between libtool 1.5.x and 2.x ! Does the > > > > file is present ? > > > > > > > > With libtool 2.x (and install option) ltversion.m4 is automaticaly > > > > installed, files config.guess, ltmain.sh, config.sub, install-sh > > > > are not needed (i've remove them and it's building fine (they are > > > > created during make install). Users (benoit and others) should try to > > > > remove them and see if they are correctly created (and it's > > > > installing fine) > > > > > > > > Here it's libtool version 2.2.6b (libtool --version); > > > > > > > > We can keep compatibility with with 1.5.x libtool, but we will have > > > > lot of headache with libtool 2.x, > > > > > > > > ++ > > > > > > config.guess, ltmain.sh, config.sub and install.sh in source > > > sub-directories are all symbolic links to the one located in the > > > source root directory. > > > > > > I will remove them, and you will tell me what happens! :-) > > > > I said rubbish. All these files are not versioned at all, so they are > > always recreated when you do a reconf after a checkout. > > > > So I don't see how Gambas could be compilable with both libtool 1.5 and > > libtool 2.x... > > And they are in the repository see: > http://gambas.svn.sourceforge.net/viewvc/gambas/gambas/trunk/gb.opengl/ > > So they can be removed > Not really. Those who are in the repository are actually symbolic links to the same files located in the root directory that are *not* in the repository. Having symbolic links makes the tar.gz source package generated by autoconf tools lighter. I can remove them, they will be regenerated again, but not as symbolic links, and the tar.gz source becomes heavier. But anyway that won't solve the problem: having a source package that can be compiled both with libtool 1.5 and libtool 2.x. -- Beno?t Minisini From lordheavym at ...626... Sat Dec 26 19:33:04 2009 From: lordheavym at ...626... (Laurent Carlier) Date: Sat, 26 Dec 2009 19:33:04 +0100 Subject: [Gambas-user] Revision: 2514 In-Reply-To: <200912261917.41107.gambas@...1...> References: <1261668434.6421.9.camel@...40...> <200912241815.52742.lordheavym@...626...> <200912261917.41107.gambas@...1...> Message-ID: <200912261933.04859.lordheavym@...626...> > Not really. Those who are in the repository are actually symbolic links to > the same files located in the root directory that are *not* in the > repository. > > Having symbolic links makes the tar.gz source package generated by autoconf > tools lighter. I can remove them, they will be regenerated again, but not > as symbolic links, and the tar.gz source becomes heavier. > > But anyway that won't solve the problem: having a source package that can > be compiled both with libtool 1.5 and libtool 2.x. > libtoolize with --install flag overwrite these files, so symlinks are destroyed :-/ and without --install, here i cannot generate the appropriate files ! Anyway, gambas3 from svn cannot be built without at least libtool 2.x, it won't be necessary when gambas3 archives will be out. From gambas at ...1... Sat Dec 26 20:27:59 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 26 Dec 2009 20:27:59 +0100 Subject: [Gambas-user] Drawing chords instead of pie by default In-Reply-To: <904720.84998.qm@...2247...> References: <904720.84998.qm@...2247...> Message-ID: <200912262027.59794.gambas@...1...> > i am sorry. i added my question. > > --- 20/12/09 Pzr tarihinde Beno?t Minisini > ??yle yaz?yor: > > Kimden: Beno?t Minisini > Konu: Re: [Gambas-user] "form.h" is badly overridden in class 'form3' > Kime: "mailing list for gambas users" > Tarihi: 20 Aral?k 2009 Pazar, 0:21 > > > thanks. > > and how can draw arc without line start point (or end point) to center. > > Sorry, I need a better english to understand the question... > OK, I see what you need: drawing chords instead of pies. I cannot change the drawing interface in Gambas2, only in Gambas3. But I can choose to draw arc when the FillStyle property is set to None. I will see what I can do and I will tell you. Regards, -- Beno?t Minisini From rterry at ...1946... Sat Dec 26 22:58:38 2009 From: rterry at ...1946... (richard terry) Date: Sun, 27 Dec 2009 08:58:38 +1100 Subject: [Gambas-user] 2517-9 compile error ?with opengl Message-ID: <200912270858.38547.rterry@...1946...> Making all in opengl make[5]: Entering directory `/home/richard/gambas3- svn/src/trunk/gb.qt4/src/opengl' /bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. - I../.. -DQT3_SUPPORT -DQT_SHARED -DQT3_SUPPORT -I/usr/include/QtCore - I/usr/include/QtGui -I/usr/include/Qt3Support -I/usr/include/QtNetwork - I/usr/include/QtSql -I/usr/include/GL/ -DQT_SHARED -I/usr/include/QtCore - I/usr/include/QtGui -I/usr/include/QtOpenGL -pipe -Wall -fno-exceptions - Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -fno-omit-frame- pointer -MT main.lo -MD -MP -MF .deps/main.Tpo -c -o main.lo main.cpp libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -DQT3_SUPPORT -DQT_SHARED - DQT3_SUPPORT -I/usr/include/QtCore -I/usr/include/QtGui - I/usr/include/Qt3Support -I/usr/include/QtNetwork -I/usr/include/QtSql - I/usr/include/GL/ -DQT_SHARED -I/usr/include/QtCore -I/usr/include/QtGui - I/usr/include/QtOpenGL -pipe -Wall -fno-exceptions -Wno-unused-value -fsigned- char -fvisibility=hidden -g -Os -fno-omit-frame-pointer -MT main.lo -MD -MP - MF .deps/main.Tpo -c main.cpp -fPIC -DPIC -o .libs/main.o In file included from main.cpp:29: CGLarea.h:30:21: error: GL/glew.h: No such file or directory make[5]: *** [main.lo] Error 1 Any idea's?? Regards richard From lordheavym at ...626... Sat Dec 26 23:09:23 2009 From: lordheavym at ...626... (Laurent Carlier) Date: Sat, 26 Dec 2009 23:09:23 +0100 Subject: [Gambas-user] 2517-9 compile error ?with opengl In-Reply-To: <200912270858.38547.rterry@...1946...> References: <200912270858.38547.rterry@...1946...> Message-ID: <200912262309.23252.lordheavym@...626...> Le samedi 26 d?cembre 2009 22:58:38, richard terry a ?crit : > Making all in opengl > make[5]: Entering directory `/home/richard/gambas3- > svn/src/trunk/gb.qt4/src/opengl' > /bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. - > I../.. -DQT3_SUPPORT -DQT_SHARED -DQT3_SUPPORT -I/usr/include/QtCore - > I/usr/include/QtGui -I/usr/include/Qt3Support -I/usr/include/QtNetwork - > I/usr/include/QtSql -I/usr/include/GL/ -DQT_SHARED -I/usr/include/QtCore > - I/usr/include/QtGui -I/usr/include/QtOpenGL -pipe -Wall > -fno-exceptions - Wno-unused-value -fsigned-char -fvisibility=hidden -g > -Os -fno-omit-frame- pointer -MT main.lo -MD -MP -MF .deps/main.Tpo -c -o > main.lo main.cpp libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. > -DQT3_SUPPORT -DQT_SHARED - DQT3_SUPPORT -I/usr/include/QtCore > -I/usr/include/QtGui - > I/usr/include/Qt3Support -I/usr/include/QtNetwork -I/usr/include/QtSql - > I/usr/include/GL/ -DQT_SHARED -I/usr/include/QtCore -I/usr/include/QtGui - > I/usr/include/QtOpenGL -pipe -Wall -fno-exceptions -Wno-unused-value > -fsigned- char -fvisibility=hidden -g -Os -fno-omit-frame-pointer -MT > main.lo -MD -MP - MF .deps/main.Tpo -c main.cpp -fPIC -DPIC -o > .libs/main.o > In file included from main.cpp:29: > CGLarea.h:30:21: error: GL/glew.h: No such file or directory > make[5]: *** [main.lo] Error 1 > Yes, now you need libglew package (and devel files of course) ++ From rterry at ...1946... Sat Dec 26 23:21:40 2009 From: rterry at ...1946... (richard terry) Date: Sun, 27 Dec 2009 09:21:40 +1100 Subject: [Gambas-user] 2517-9 compile error ?with opengl In-Reply-To: <200912262309.23252.lordheavym@...626...> References: <200912270858.38547.rterry@...1946...> <200912262309.23252.lordheavym@...626...> Message-ID: <200912270921.41014.rterry@...1946...> On Sunday 27 December 2009 09:09:23 Laurent Carlier wrote: > Le samedi 26 d?cembre 2009 22:58:38, richard terry a ?crit : > > Making all in opengl > > make[5]: Entering directory `/home/richard/gambas3- > > svn/src/trunk/gb.qt4/src/opengl' > > /bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. > > - I../.. -DQT3_SUPPORT -DQT_SHARED -DQT3_SUPPORT -I/usr/include/QtCore - > > I/usr/include/QtGui -I/usr/include/Qt3Support -I/usr/include/QtNetwork - > > I/usr/include/QtSql -I/usr/include/GL/ -DQT_SHARED > > -I/usr/include/QtCore - I/usr/include/QtGui -I/usr/include/QtOpenGL > > -pipe -Wall > > -fno-exceptions - Wno-unused-value -fsigned-char -fvisibility=hidden -g > > -Os -fno-omit-frame- pointer -MT main.lo -MD -MP -MF .deps/main.Tpo -c > > -o main.lo main.cpp libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. > > -DQT3_SUPPORT -DQT_SHARED - DQT3_SUPPORT -I/usr/include/QtCore > > -I/usr/include/QtGui - > > I/usr/include/Qt3Support -I/usr/include/QtNetwork -I/usr/include/QtSql - > > I/usr/include/GL/ -DQT_SHARED -I/usr/include/QtCore -I/usr/include/QtGui > > - I/usr/include/QtOpenGL -pipe -Wall -fno-exceptions -Wno-unused-value > > -fsigned- char -fvisibility=hidden -g -Os -fno-omit-frame-pointer -MT > > main.lo -MD -MP - MF .deps/main.Tpo -c main.cpp -fPIC -DPIC -o > > .libs/main.o > > In file included from main.cpp:29: > > CGLarea.h:30:21: error: GL/glew.h: No such file or directory > > make[5]: *** [main.lo] Error 1 > > Yes, now you need libglew package (and devel files of course) > > ++ > Dosnt seem to be a libglew package in ARCH linux, could it go under a different name? From lordheavym at ...626... Sat Dec 26 23:37:29 2009 From: lordheavym at ...626... (Laurent Carlier) Date: Sat, 26 Dec 2009 23:37:29 +0100 Subject: [Gambas-user] 2517-9 compile error ?with opengl In-Reply-To: <200912270921.41014.rterry@...1946...> References: <200912270858.38547.rterry@...1946...> <200912262309.23252.lordheavym@...626...> <200912270921.41014.rterry@...1946...> Message-ID: <200912262337.29896.lordheavym@...626...> Le samedi 26 d?cembre 2009 23:21:40, richard terry a ?crit : > On Sunday 27 December 2009 09:09:23 Laurent Carlier wrote: > > Le samedi 26 d?cembre 2009 22:58:38, richard terry a ?crit : > > > Making all in opengl > > > make[5]: Entering directory `/home/richard/gambas3- > > > svn/src/trunk/gb.qt4/src/opengl' > > > /bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H > > > -I. - I../.. -DQT3_SUPPORT -DQT_SHARED -DQT3_SUPPORT > > > -I/usr/include/QtCore - I/usr/include/QtGui -I/usr/include/Qt3Support > > > -I/usr/include/QtNetwork - I/usr/include/QtSql -I/usr/include/GL/ > > > -DQT_SHARED > > > -I/usr/include/QtCore - I/usr/include/QtGui -I/usr/include/QtOpenGL > > > -pipe -Wall > > > -fno-exceptions - Wno-unused-value -fsigned-char -fvisibility=hidden > > > -g -Os -fno-omit-frame- pointer -MT main.lo -MD -MP -MF .deps/main.Tpo > > > -c -o main.lo main.cpp libtool: compile: g++ -DHAVE_CONFIG_H -I. > > > -I../.. -DQT3_SUPPORT -DQT_SHARED - DQT3_SUPPORT -I/usr/include/QtCore > > > -I/usr/include/QtGui - > > > I/usr/include/Qt3Support -I/usr/include/QtNetwork -I/usr/include/QtSql > > > - I/usr/include/GL/ -DQT_SHARED -I/usr/include/QtCore > > > -I/usr/include/QtGui - I/usr/include/QtOpenGL -pipe -Wall > > > -fno-exceptions -Wno-unused-value -fsigned- char -fvisibility=hidden -g > > > -Os -fno-omit-frame-pointer -MT main.lo -MD -MP - MF .deps/main.Tpo -c > > > main.cpp -fPIC -DPIC -o .libs/main.o > > > In file included from main.cpp:29: > > > CGLarea.h:30:21: error: GL/glew.h: No such file or directory > > > make[5]: *** [main.lo] Error 1 > > > > Yes, now you need libglew package (and devel files of course) > > > > ++ > > Dosnt seem to be a libglew package in ARCH linux, could it go under a > different name? > [lordh at ...2346... ~]$ pacman -Qs glew local/glew 1.5.1-1 A cross-platform C/C++ extension loading library From rterry at ...1946... Sat Dec 26 23:50:50 2009 From: rterry at ...1946... (richard terry) Date: Sun, 27 Dec 2009 09:50:50 +1100 Subject: [Gambas-user] 2517-9 compile error ?with opengl In-Reply-To: <200912262337.29896.lordheavym@...626...> References: <200912270858.38547.rterry@...1946...> <200912270921.41014.rterry@...1946...> <200912262337.29896.lordheavym@...626...> Message-ID: <200912270950.50368.rterry@...1946...> On Sunday 27 December 2009 09:37:29 you wrote: > Le samedi 26 d?cembre 2009 23:21:40, richard terry a ?crit : > > On Sunday 27 December 2009 09:09:23 Laurent Carlier wrote: > > > Le samedi 26 d?cembre 2009 22:58:38, richard terry a ?crit : > > > > Making all in opengl > > > > make[5]: Entering directory `/home/richard/gambas3- > > > > svn/src/trunk/gb.qt4/src/opengl' > > > > /bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H > > > > -I. - I../.. -DQT3_SUPPORT -DQT_SHARED -DQT3_SUPPORT > > > > -I/usr/include/QtCore - I/usr/include/QtGui -I/usr/include/Qt3Support > > > > -I/usr/include/QtNetwork - I/usr/include/QtSql -I/usr/include/GL/ > > > > -DQT_SHARED > > > > -I/usr/include/QtCore - I/usr/include/QtGui -I/usr/include/QtOpenGL > > > > -pipe -Wall > > > > -fno-exceptions - Wno-unused-value -fsigned-char -fvisibility=hidden > > > > -g -Os -fno-omit-frame- pointer -MT main.lo -MD -MP -MF > > > > .deps/main.Tpo -c -o main.lo main.cpp libtool: compile: g++ > > > > -DHAVE_CONFIG_H -I. -I../.. -DQT3_SUPPORT -DQT_SHARED - DQT3_SUPPORT > > > > -I/usr/include/QtCore -I/usr/include/QtGui - > > > > I/usr/include/Qt3Support -I/usr/include/QtNetwork > > > > -I/usr/include/QtSql - I/usr/include/GL/ -DQT_SHARED > > > > -I/usr/include/QtCore > > > > -I/usr/include/QtGui - I/usr/include/QtOpenGL -pipe -Wall > > > > -fno-exceptions -Wno-unused-value -fsigned- char -fvisibility=hidden > > > > -g -Os -fno-omit-frame-pointer -MT main.lo -MD -MP - MF > > > > .deps/main.Tpo -c main.cpp -fPIC -DPIC -o .libs/main.o > > > > In file included from main.cpp:29: > > > > CGLarea.h:30:21: error: GL/glew.h: No such file or directory > > > > make[5]: *** [main.lo] Error 1 > > > > > > Yes, now you need libglew package (and devel files of course) > > > > > > ++ > > > > Dosnt seem to be a libglew package in ARCH linux, could it go under a > > different name? > > [lordh at ...2346... ~]$ pacman -Qs glew > local/glew 1.5.1-1 > A cross-platform C/C++ extension loading library > All good compiled and working, thanks. Richard From pinozollo at ...626... Sun Dec 27 22:16:09 2009 From: pinozollo at ...626... (Pino Zollo) Date: Sun, 27 Dec 2009 18:16:09 -0300 Subject: [Gambas-user] XML-RPC Message-ID: <200912271816.10256.pinozollo@...626...> Hi is there any example of XML and XML-RPC available ? best 2010 ! in gambaS n? ! Pino -- Key ID: 0xF6768208 Key fingerprint = B16D 0A7C 5B29 A334 CE6A 71F6 EAF8 3D88 F676 8208 Key server: hkp://wwwkeys.eu.pgp.net From dr.diesel at ...626... Mon Dec 28 02:20:48 2009 From: dr.diesel at ...626... (Dr. Diesel) Date: Sun, 27 Dec 2009 20:20:48 -0500 Subject: [Gambas-user] Type of Variables possible? Message-ID: <2a28d2ab0912271720he9c0dffwadad6abd35e38eab@...627...> Looking to do something like this from VB6 Public DatabaseInfo(NUM_MAX_DB) As DBinfo Type DBinfo DatabasePath As String DatabaseName As String TableName As String PurgeSQL As String PurgeSQL2 As String End Type Any way to do types in gambas3? Many thanks -- projecthuh.com All of my bits are free, are yours? Fedoraproject.org "I'd rather have dead offenders than repeat offenders" - Ted Nugent From dr.diesel at ...626... Mon Dec 28 03:37:43 2009 From: dr.diesel at ...626... (Dr. Diesel) Date: Sun, 27 Dec 2009 21:37:43 -0500 Subject: [Gambas-user] Latest SVN-2531 gbr3 100% CPU Message-ID: <2a28d2ab0912271837h5e81e231n44af741b5c76ed47@...627...> Haven't done an SVN pull in a couple days so this is fairly new. Firing gambas3 brings up the flash screen, picking any existing app or even a new app causes gbr3 to spike and hold 100% CPU. Have to kill the process to clear it up. Running Fedora 12.i386, happy to provide any further info by request. -- projecthuh.com All of my bits are free, are yours? Fedoraproject.org "I'd rather have dead offenders than repeat offenders" - Ted Nugent From gambas at ...1... Mon Dec 28 03:54:54 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 28 Dec 2009 03:54:54 +0100 Subject: [Gambas-user] Latest SVN-2531 gbr3 100% CPU In-Reply-To: <2a28d2ab0912271837h5e81e231n44af741b5c76ed47@...627...> References: <2a28d2ab0912271837h5e81e231n44af741b5c76ed47@...627...> Message-ID: <200912280354.54509.gambas@...1...> > Haven't done an SVN pull in a couple days so this is fairly new. Firing > gambas3 brings up the flash screen, picking any existing app or even a new > app causes gbr3 to spike and hold 100% CPU. Have to kill the process to > clear it up. > > Running Fedora 12.i386, happy to provide any further info by request. > It should be better with revision #2532. Regards, -- Beno?t Minisini From dr.diesel at ...626... Mon Dec 28 04:12:42 2009 From: dr.diesel at ...626... (Dr. Diesel) Date: Sun, 27 Dec 2009 22:12:42 -0500 Subject: [Gambas-user] Latest SVN-2531 gbr3 100% CPU In-Reply-To: <200912280354.54509.gambas@...1...> References: <2a28d2ab0912271837h5e81e231n44af741b5c76ed47@...627...> <200912280354.54509.gambas@...1...> Message-ID: <2a28d2ab0912271912v59d6ce5eyb36dbbdb9faa47ea@...627...> 2009/12/27 Beno?t Minisini > > Haven't done an SVN pull in a couple days so this is fairly new. Firing > > gambas3 brings up the flash screen, picking any existing app or even a > new > > app causes gbr3 to spike and hold 100% CPU. Have to kill the process to > > clear it up. > > > > Running Fedora 12.i386, happy to provide any further info by request. > > > > It should be better with revision #2532. > > Regards, > > -- > Beno?t Minisini > Yes, thank you, all appears normal now. Andy -- projecthuh.com All of my bits are free, are yours? Fedoraproject.org "I'd rather have dead offenders than repeat offenders" - Ted Nugent From ron at ...1740... Mon Dec 28 10:31:00 2009 From: ron at ...1740... (Ron) Date: Mon, 28 Dec 2009 10:31:00 +0100 Subject: [Gambas-user] ValueBox Keypress event Message-ID: <4B387AD4.6090800@...1740...> The KeyPress event of a ValueBox doesn't seem to get triggered if you enter a value. The Change event does. Gambas 2.18.0 gb.qt Regards, Ron_2nd. From ron at ...1740... Mon Dec 28 10:34:09 2009 From: ron at ...1740... (Ron) Date: Mon, 28 Dec 2009 10:34:09 +0100 Subject: [Gambas-user] XML-RPC In-Reply-To: <200912271816.10256.pinozollo@...626...> References: <200912271816.10256.pinozollo@...626...> Message-ID: <4B387B91.5010602@...1740...> Pino Zollo wrote: > Hi > > is there any example of XML and XML-RPC available ? > > best 2010 ! > > in gambaS n? ! > > Pino > Hi, XML-RPC Server: http://www.domotiga.nl/projects/domotiga/browser/trunk/DomotiGaServer/CXMLRPC.class Client: http://www.domotiga.nl/projects/domotiga/browser/trunk/DomotiGa/XMLClient.module Regards, Ron_2nd. From gambas.fr at ...626... Mon Dec 28 12:14:31 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 28 Dec 2009 12:14:31 +0100 Subject: [Gambas-user] Type of Variables possible? In-Reply-To: <2a28d2ab0912271720he9c0dffwadad6abd35e38eab@...627...> References: <2a28d2ab0912271720he9c0dffwadad6abd35e38eab@...627...> Message-ID: <6324a42a0912280314gfe74f08l470d17d73ce0ab3@...627...> use a class ; TDBInfo 'Gambas Class PUBLIC ? ?DatabasePath ? ?As String PUBLIC ? ?DatabaseName ? ?As String PUBLIC ? ?TableName ? ? ? As String PUBLIC ? ?PurgeSQL ? ? ? ?As String PUBLIC ? ?PurgeSQL2 ? ? ? As String then : Public DatabaseInfo As DBinfo[NUM_MAX_DB] 2009/12/28 Dr. Diesel : > Looking to do something like this from VB6 > > Public DatabaseInfo(NUM_MAX_DB) As DBinfo > Type DBinfo > ? ?DatabasePath ? ?As String > ? ?DatabaseName ? ?As String > ? ?TableName ? ? ? As String > ? ?PurgeSQL ? ? ? ?As String > ? ?PurgeSQL2 ? ? ? As String > End Type > > Any way to do types in gambas3? > > Many thanks > > -- > projecthuh.com > All of my bits are free, are yours? ?Fedoraproject.org > "I'd rather have dead offenders than repeat offenders" - Ted Nugent > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From Karl.Reinl at ...2345... Mon Dec 28 14:13:41 2009 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Mon, 28 Dec 2009 14:13:41 +0100 Subject: [Gambas-user] have a App to add to page for Gambas applications Message-ID: <1262006021.6393.22.camel@...40...> Salut Benoit, we have a application to add to page for Gambas applications. But, I can't access to the http://gambasdoc.org/help/app. No rights! to create the wiki page. Author : Christian Faure : Charlie Reinl (Co-Author, also for porting to gambas2) Application: DBReport2 Description: A tool for the creation and issuance of reports. DBReport exists for gambas1 and gambas2. Licence : GPL Website : http://dbreport.sourceforge.net/ Download : http://sourceforge.net/projects/dbreport/ Wiki : http://sourceforge.net/apps/mediawiki/dbreport/index.php?title=Main_Page SVN : svn co https://dbreport.svn.sourceforge.net/svnroot/dbreport dbreport -- Amicalement Charlie From gambas at ...1... Mon Dec 28 14:58:57 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 28 Dec 2009 14:58:57 +0100 Subject: [Gambas-user] have a App to add to page for Gambas applications In-Reply-To: <1262006021.6393.22.camel@...40...> References: <1262006021.6393.22.camel@...40...> Message-ID: <200912281458.57068.gambas@...1...> > Salut Benoit, > > we have a application to add to page for Gambas applications. > But, I can't access to the http://gambasdoc.org/help/app. No rights! > to create the wiki page. > > Author : Christian Faure > > : Charlie Reinl (Co-Author, also for porting to gambas2) > > Application: DBReport2 > > Description: A tool for the creation and issuance of reports. > DBReport exists for gambas1 and gambas2. > > Licence : GPL > > Website : http://dbreport.sourceforge.net/ > > Download : http://sourceforge.net/projects/dbreport/ > > Wiki : > http://sourceforge.net/apps/mediawiki/dbreport/index.php?title=Main_Page > > SVN : > svn co https://dbreport.svn.sourceforge.net/svnroot/dbreport dbreport > Just give me a password and I will grant you a write access. Easy... -- Beno?t Minisini From norarg at ...2311... Mon Dec 28 15:07:17 2009 From: norarg at ...2311... (norarg) Date: Mon, 28 Dec 2009 11:07:17 -0300 Subject: [Gambas-user] Generating Forms In-Reply-To: <2a28d2ab0912271720he9c0dffwadad6abd35e38eab@...627...> References: <2a28d2ab0912271720he9c0dffwadad6abd35e38eab@...627...> Message-ID: Hi, I am a little confused, and just do not find out where I am wrong: I have generated a form for database use, just parsed some data from an existing form and wrote a new. Then loaded it into the IDE. (Wrote .form and (still) empty .class). The form looks good, but when starting the programm, I get the message: . The .class-file is completly empty. Is there anything to consider when writing a .class-file? As long as the .class-file was none-existent, at least the programm startet (there are about 15 different forms in the app), and I had not called the generated form yet. I have found nothing in the docu about this. Using Ubuntu 9.10/Gambas 2.13 Thanks, norarg From Karl.Reinl at ...2345... Mon Dec 28 17:01:05 2009 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Mon, 28 Dec 2009 17:01:05 +0100 Subject: [Gambas-user] have a App to add to page for Gambas applications In-Reply-To: <200912281458.57068.gambas@...1...> References: <1262006021.6393.22.camel@...40...> <200912281458.57068.gambas@...1...> Message-ID: <1262016066.6957.5.camel@...40...> Am Montag, den 28.12.2009, 14:58 +0100 schrieb Beno?t Minisini: > > Salut Benoit, > > > > we have a application to add to page for Gambas applications. > > But, I can't access to the http://gambasdoc.org/help/app. No rights! > > to create the wiki page. > > > > Author : Christian Faure > > > > : Charlie Reinl (Co-Author, also for porting to gambas2) > > > > Application: DBReport2 > > > > Description: A tool for the creation and issuance of reports. > > DBReport exists for gambas1 and gambas2. > > > > Licence : GPL > > > > Website : http://dbreport.sourceforge.net/ > > > > Download : http://sourceforge.net/projects/dbreport/ > > > > Wiki : > > http://sourceforge.net/apps/mediawiki/dbreport/index.php?title=Main_Page > > > > SVN : > > svn co https://dbreport.svn.sourceforge.net/svnroot/dbreport dbreport > > > > Just give me a password and I will grant you a write access. Easy... > Salut, User : dashboard68 PW : F09000HdM -- Amicalement Charlie From gambas.fr at ...626... Mon Dec 28 18:25:49 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 28 Dec 2009 18:25:49 +0100 Subject: [Gambas-user] have a App to add to page for Gambas applications In-Reply-To: <1262016066.6957.5.camel@...40...> References: <1262006021.6393.22.camel@...40...> <200912281458.57068.gambas@...1...> <1262016066.6957.5.camel@...40...> Message-ID: <6324a42a0912280925y49d95d12s7647fd1b8cff608e@...627...> lol not on mailing list ! 2009/12/28 Charlie Reinl : > Am Montag, den 28.12.2009, 14:58 +0100 schrieb Beno?t Minisini: >> > Salut Benoit, >> > >> > we have a application to add to page for Gambas applications. >> > But, I can't access to the ?http://gambasdoc.org/help/app. No rights! >> > to create the wiki page. >> > >> > Author ? ? : Christian Faure >> > >> > ? ? ? ? ? ?: Charlie Reinl (Co-Author, also for porting to gambas2) >> > >> > Application: DBReport2 >> > >> > Description: A tool for the creation and issuance of reports. >> > ? ? ? ? ?DBReport exists for gambas1 and gambas2. >> > >> > Licence ? ?: GPL >> > >> > Website ? ?: http://dbreport.sourceforge.net/ >> > >> > Download ? : http://sourceforge.net/projects/dbreport/ >> > >> > Wiki ? ? ? : >> > http://sourceforge.net/apps/mediawiki/dbreport/index.php?title=Main_Page >> > >> > SVN ? ? ? ?: >> > svn co https://dbreport.svn.sourceforge.net/svnroot/dbreport dbreport >> > >> >> Just give me a password and I will grant you a write access. Easy... >> > > Salut, > > User : dashboard68 > PW ? : F09000HdM > > > -- > Amicalement > Charlie > > > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From Karl.Reinl at ...2345... Mon Dec 28 18:58:25 2009 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Mon, 28 Dec 2009 18:58:25 +0100 Subject: [Gambas-user] have a App to add to page for Gambas applications In-Reply-To: <6324a42a0912280925y49d95d12s7647fd1b8cff608e@...627...> References: <1262006021.6393.22.camel@...40...> <200912281458.57068.gambas@...1...> <1262016066.6957.5.camel@...40...> <6324a42a0912280925y49d95d12s7647fd1b8cff608e@...627...> Message-ID: <1262023105.6957.10.camel@...40...> Oh, nice , me also, getting member ;-( Am Montag, den 28.12.2009, 18:25 +0100 schrieb Fabien Bodard: > lol not on mailing list ! > > 2009/12/28 Charlie Reinl : > > Am Montag, den 28.12.2009, 14:58 +0100 schrieb Beno?t Minisini: > >> > Salut Benoit, > >> > > >> > we have a application to add to page for Gambas applications. > >> > But, I can't access to the http://gambasdoc.org/help/app. No rights! > >> > to create the wiki page. > >> > > >> > Author : Christian Faure > >> > > >> > : Charlie Reinl (Co-Author, also for porting to gambas2) > >> > > >> > Application: DBReport2 > >> > > >> > Description: A tool for the creation and issuance of reports. > >> > DBReport exists for gambas1 and gambas2. > >> > > >> > Licence : GPL > >> > > >> > Website : http://dbreport.sourceforge.net/ > >> > > >> > Download : http://sourceforge.net/projects/dbreport/ > >> > > >> > Wiki : > >> > http://sourceforge.net/apps/mediawiki/dbreport/index.php?title=Main_Page > >> > > >> > SVN : > >> > svn co https://dbreport.svn.sourceforge.net/svnroot/dbreport dbreport > >> > > >> > >> Just give me a password and I will grant you a write access. Easy... > >> > > > > Salut, > > > > User : dashboard68 > > PW : F09000HdM > > > > > > -- > > Amicalement > > Charlie > > > > > > ------------------------------------------------------------------------------ > > This SF.Net email is sponsored by the Verizon Developer Community > > Take advantage of Verizon's best-in-class app development support > > A streamlined, 14 day to market process makes app distribution fast and easy > > Join now and get one step closer to millions of Verizon customers > > http://p.sf.net/sfu/verizon-dev2dev > > _______________________________________________ > > 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 Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From norarg at ...2311... Mon Dec 28 21:23:11 2009 From: norarg at ...2311... (norarg) Date: Mon, 28 Dec 2009 17:23:11 -0300 Subject: [Gambas-user] Strange behavior of Items on panel In-Reply-To: <1262023105.6957.10.camel@...40...> References: <1262006021.6393.22.camel@...40...> <200912281458.57068.gambas@...1...> <1262016066.6957.5.camel@...40...> <6324a42a0912280925y49d95d12s7647fd1b8cff608e@...627...> <1262023105.6957.10.camel@...40...> Message-ID: Hi, I have a form with one panel, on this some textboxes and comboboxes. In design-mode they have the right height of 21 pix, when running the programm they get 24 pix high. I have turned off all expand- and autoarrange-properties, and set the scaled-porperty on the form to false. I also have tried to resize when running the programm, then I get 22 pix height rather than 21. It just does not look as designed. Sure I could make everything a little less high while designing, but I also do not know what is happening when changing to higher screen resolution - have no possibilities myself, to test this - old monitor with max 1024x768 pix. Does someone have an idea? (Ubuntu 9.10/Gambas 2.13) Thanks and regards norarg From dr.diesel at ...626... Mon Dec 28 22:02:01 2009 From: dr.diesel at ...626... (Dr. Diesel) Date: Mon, 28 Dec 2009 16:02:01 -0500 Subject: [Gambas-user] Type of Variables possible? In-Reply-To: <6324a42a0912280314gfe74f08l470d17d73ce0ab3@...627...> References: <2a28d2ab0912271720he9c0dffwadad6abd35e38eab@...627...> <6324a42a0912280314gfe74f08l470d17d73ce0ab3@...627...> Message-ID: <2a28d2ab0912281302l3413ef18k296f0b4b9d4cbf4f@...627...> On Mon, Dec 28, 2009 at 6:14 AM, Fabien Bodard wrote: > use a class ; > TDBInfo > 'Gambas Class > > PUBLIC DatabasePath As String > PUBLIC DatabaseName As String > PUBLIC TableName As String > PUBLIC PurgeSQL As String > PUBLIC PurgeSQL2 As String > > > then : > > Public DatabaseInfo As DBinfo[NUM_MAX_DB] > > Thank you! I can get this to work, just there seems no way to make it global and accessable across different modules/classes. -- projecthuh.com All of my bits are free, are yours? Fedoraproject.org "I'd rather have dead offenders than repeat offenders" - Ted Nugent From jlichter at ...20... Tue Dec 29 01:10:05 2009 From: jlichter at ...20... (JLichter) Date: Tue, 29 Dec 2009 01:10:05 +0100 Subject: [Gambas-user] gb.report pagebreak? Message-ID: <1262045405.3629.3.camel@...2347...> I use Ubuntu 9.10 with Gambas 2.13 and I try the gb.report. All is running good, however I can't create a page 2 or more in the report. Is it possible two create more pages (pagebreak)? Thanks in advance, jo42 Here my code: ___________________________________________________ ' Gambas module file PRIVATE hCon AS NEW Connection PRIVATE hResult AS Result PRIVATE hReport AS Report PUBLIC SUB Main() hcon.Close() ' sure is sure hcon.host = "localhost" hCon.User = "root" hCon.Type = "mysql" hcon.Name = "test" hcon.Password = "mysql_password" hcon.Open() hResult = hcon.Find("test", "active=1", TRUE) InitReport() hcon.Close() Report.Preview() ' GB 2.13 Error if more as 10 DS: ' The Program has stopped unexpectedly by raising signal #11 ' (This is not a bug in your project, but a bug in the interpreter.) ' hint: hReport.Clear() END PRIVATE SUB InitReport() DIM hLabel AS ReportLabel DIM hField AS ReportField DIM hHbox AS ReportHBox DIM hEmpty AS ReportHBox DIM hVBox AS ReportVBox DIM hSpecialField AS ReportSpecialField Report.Size = "A4" Report.LineStyle = line.Solid Report.Padding = "1 cm" Report.Resolution = Desktop.Resolution ' Header hLabel = NEW ReportLabel(Report) hLabel.Text = "REPORT TEST" hLabel.Height = "2.5 cm" hLabel.Alignment = Align.Center hLabel.Font.Size = 25 hLabel.LineStyle = Line.Solid hLabel.FillColor = Color.LightGray hLabel.FillStyle = Fill.Solid hVBox = NEW ReportVBox(Report) hVBox.Height = "1 cm" hReport = NEW Report(Report) hReport.Expand = TRUE 'to do 'hReport.Count = hResult.Count ' Abstand zwischen den DS hReport.Spacing = "0.2 cm" FOR EACH hResult hVBox = NEW ReportVBox(hReport) hVBox.Height = "1.5 cm" hVBox.Padding = "0.2 cm" hVBox.LineStyle = Line.Solid hHbox = NEW ReportHBox(hVBox) hHbox.Height = "0.5 cm" hLabel = NEW ReportLabel(hHbox) hLabel.Text = "Name:" hLabel.Width = "2 cm" hLabel.Font.Bold = TRUE hField = NEW ReportField(hHbox) hField.MaxLength = 40 hField.LineStyle = Line.Solid hField.Width = "4 cm" hField.Font.Bold = TRUE hField.Data = hResult!name hEmpty = NEW ReportHBox(hHbox) hEmpty.Expand = TRUE hLabel = NEW ReportLabel(hHbox) hLabel.Text = "Geburtstag:" hField = NEW ReportField(hHbox) hField.Width = "2 cm" hField.Data = hResult!birth hHbox = NEW ReportHBox(hVBox) hHbox.Height = "0.5 cm" hLabel = NEW ReportLabel(hHbox) hLabel.Text = "Vorname:" hLabel.Width = "2 cm" hLabel.ForeColor = color.Gray hField = NEW ReportField(hHbox) hField.MaxLength = 40 hField.LineStyle = Line.Solid hField.Width = "4 cm" hField.Font.Italic = TRUE hField.ForeColor = color.Gray hField.Data = hResult!firstname NEXT hSpecialField = NEW ReportSpecialField(Report) hSpecialField.Text = "Seite $PAGE / $NPAGE" hSpecialField.Height = "1 cm" hSpecialField.Alignment = align.Center END From charles at ...1784... Tue Dec 29 08:18:57 2009 From: charles at ...1784... (charlesg) Date: Mon, 28 Dec 2009 23:18:57 -0800 (PST) Subject: [Gambas-user] Type of Variables possible? In-Reply-To: <2a28d2ab0912281302l3413ef18k296f0b4b9d4cbf4f@...627...> References: <2a28d2ab0912271720he9c0dffwadad6abd35e38eab@...627...> <6324a42a0912280314gfe74f08l470d17d73ce0ab3@...627...> <2a28d2ab0912281302l3413ef18k296f0b4b9d4cbf4f@...627...> Message-ID: <26951829.post@...1379...> Hi Project, Options, "Module symbols are public by default"=yes ? rgds -- View this message in context: http://old.nabble.com/Type-of-Variables-possible--tp26938813p26951829.html Sent from the gambas-user mailing list archive at Nabble.com. From linuxos at ...1896... Tue Dec 29 08:19:05 2009 From: linuxos at ...1896... (Olivier Cruilles) Date: Tue, 29 Dec 2009 08:19:05 +0100 Subject: [Gambas-user] Strange event in a ComboBox Message-ID: <9C4882CA-6D24-419E-A51B-955B6F6A4147@...1896...> Benoit, I'm following my project and in a ComboBox I found a strange event. On Gambas v2.18 on Fedora11. I joined a list a data in this ComboxBox manually by the IDE and when I add the word 'or', 'OR', '-or-', etc... in this list, the project can't start because the IDE add at the end of the line in the Form definition a wrong ')'. If I remove the line with the 'or' word, all it's ok. It's not really important for me, just to inform you. Olivier Cruilles Mail: linuxos at ...1896... From gambas.fr at ...626... Tue Dec 29 11:03:08 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 29 Dec 2009 11:03:08 +0100 Subject: [Gambas-user] gb.report pagebreak? In-Reply-To: <1262045405.3629.3.camel@...2347...> References: <1262045405.3629.3.camel@...2347...> Message-ID: <6324a42a0912290203g7644b164hadf90537fc82c425@...627...> Please wait gambas3 to use the gb.report component as it is not finished ! it's just an early alpha version in gb2. Regards, Fabien Bodard 2009/12/29 JLichter : > I use Ubuntu 9.10 with Gambas 2.13 and I try the gb.report. > All is running good, however I can't create a page 2 or more in the > report. > Is it possible two create more pages (pagebreak)? > > Thanks in advance, > jo42 > > Here my code: > ___________________________________________________ > > > ' Gambas module file > > PRIVATE hCon AS NEW Connection > PRIVATE hResult AS Result > PRIVATE hReport AS Report > > PUBLIC SUB Main() > ?hcon.Close() ' sure is sure > ?hcon.host = "localhost" > ?hCon.User = "root" > ?hCon.Type = "mysql" > ?hcon.Name = "test" > ?hcon.Password = "mysql_password" > ?hcon.Open() > ?hResult = hcon.Find("test", "active=1", TRUE) > ?InitReport() > ?hcon.Close() > ?Report.Preview() > > ?' GB 2.13 Error if more as 10 DS: > ?' The Program has stopped unexpectedly by raising signal #11 > ?' (This is not a bug in your project, but a bug in the interpreter.) > ?' hint: > ?hReport.Clear() > END > > > PRIVATE SUB InitReport() > > ?DIM hLabel AS ReportLabel > ?DIM hField AS ReportField > ?DIM hHbox AS ReportHBox > ?DIM hEmpty AS ReportHBox > ?DIM hVBox AS ReportVBox > ?DIM hSpecialField AS ReportSpecialField > > > ?Report.Size = "A4" > ?Report.LineStyle = line.Solid > ?Report.Padding = "1 cm" > ?Report.Resolution = Desktop.Resolution > > > ? ?' Header > ? ?hLabel = NEW ReportLabel(Report) > ? ?hLabel.Text = "REPORT TEST" > ? ?hLabel.Height = "2.5 cm" > ? ?hLabel.Alignment = Align.Center > ? ?hLabel.Font.Size = 25 > ? ?hLabel.LineStyle = Line.Solid > ? ?hLabel.FillColor = Color.LightGray > ? ?hLabel.FillStyle = Fill.Solid > > ? ?hVBox = NEW ReportVBox(Report) > ? ?hVBox.Height = "1 cm" > > ? ?hReport = NEW Report(Report) > ? ?hReport.Expand = TRUE > > ? ? 'to do > ? ? 'hReport.Count = hResult.Count > > > > ' Abstand zwischen den DS > hReport.Spacing = "0.2 cm" > > FOR EACH hResult > > ? ? ?hVBox = NEW ReportVBox(hReport) > ? ? ?hVBox.Height = "1.5 cm" > ? ? ?hVBox.Padding = "0.2 cm" > ? ? ?hVBox.LineStyle = Line.Solid > > ? ? ? ?hHbox = NEW ReportHBox(hVBox) > ? ? ? ?hHbox.Height = "0.5 cm" > > > ? ? ? ? ?hLabel = NEW ReportLabel(hHbox) > ? ? ? ? ?hLabel.Text = "Name:" > ? ? ? ? ?hLabel.Width = "2 cm" > ? ? ? ? ?hLabel.Font.Bold = TRUE > > ? ? ? ? ?hField = NEW ReportField(hHbox) > ? ? ? ? ?hField.MaxLength = 40 > ? ? ? ? ?hField.LineStyle = Line.Solid > ? ? ? ? ?hField.Width = "4 cm" > ? ? ? ? ?hField.Font.Bold = TRUE > ? ? ? ? ?hField.Data = hResult!name > > > > ? ? ? ? ?hEmpty = NEW ReportHBox(hHbox) > ? ? ? ? ?hEmpty.Expand = TRUE > > > > ? ? ? ? ?hLabel = NEW ReportLabel(hHbox) > ? ? ? ? ?hLabel.Text = "Geburtstag:" > ? ? ? ? ?hField = NEW ReportField(hHbox) > ? ? ? ? ?hField.Width = "2 cm" > ? ? ? ? ?hField.Data = hResult!birth > > > > ? ? ? ? ?hHbox = NEW ReportHBox(hVBox) > ? ? ? ? ?hHbox.Height = "0.5 cm" > > > > ? ? ? ? ?hLabel = NEW ReportLabel(hHbox) > ? ? ? ? ?hLabel.Text = "Vorname:" > ? ? ? ? ?hLabel.Width = "2 cm" > ? ? ? ? ?hLabel.ForeColor = color.Gray > > ? ? ? ? ?hField = NEW ReportField(hHbox) > ? ? ? ? ?hField.MaxLength = 40 > ? ? ? ? ?hField.LineStyle = Line.Solid > ? ? ? ? ?hField.Width = "4 cm" > ? ? ? ? ?hField.Font.Italic = TRUE > ? ? ? ? ?hField.ForeColor = color.Gray > ? ? ? ? ?hField.Data = hResult!firstname > > ?NEXT > > ? ?hSpecialField = NEW ReportSpecialField(Report) > > ? ?hSpecialField.Text = "Seite $PAGE / $NPAGE" > ? ?hSpecialField.Height = "1 cm" > ? ?hSpecialField.Alignment = align.Center > > END > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From dr.diesel at ...626... Tue Dec 29 11:10:02 2009 From: dr.diesel at ...626... (Dr. Diesel) Date: Tue, 29 Dec 2009 05:10:02 -0500 Subject: [Gambas-user] Type of Variables possible? In-Reply-To: <26951829.post@...1379...> References: <2a28d2ab0912271720he9c0dffwadad6abd35e38eab@...627...> <6324a42a0912280314gfe74f08l470d17d73ce0ab3@...627...> <2a28d2ab0912281302l3413ef18k296f0b4b9d4cbf4f@...627...> <26951829.post@...1379...> Message-ID: <2a28d2ab0912290210t6c655829vf47706fcd7cb57a4@...627...> On Tue, Dec 29, 2009 at 2:18 AM, charlesg wrote: > > Hi > > Project, Options, "Module symbols are public by default"=yes ? > > rgds > > Thank you, but I must still be confused. Please see the following example: I have the following in my startup class/form: Public IOvariables1 As New IOvariables Then, in my IOvariables.class Public DriveWheelLeft As Integer = 1 Public DriveWheelRight As Integer = 2 Public HeadLR As Integer = 90 Public HeadUD As Integer = 90 Public IRLeft As Integer = 0 If I try and use IOvariables1 in a separate module, I receive an unknown identifier error? What am I doing wrong? Many thanks -- projecthuh.com All of my bits are free, are yours? Fedoraproject.org "I'd rather have dead offenders than repeat offenders" - Ted Nugent From nospam.nospam.nospam at ...626... Tue Dec 29 11:23:21 2009 From: nospam.nospam.nospam at ...626... (Kadaitcha Man) Date: Tue, 29 Dec 2009 21:23:21 +1100 Subject: [Gambas-user] Type of Variables possible? In-Reply-To: <2a28d2ab0912281302l3413ef18k296f0b4b9d4cbf4f@...627...> References: <2a28d2ab0912271720he9c0dffwadad6abd35e38eab@...627...> <6324a42a0912280314gfe74f08l470d17d73ce0ab3@...627...> <2a28d2ab0912281302l3413ef18k296f0b4b9d4cbf4f@...627...> Message-ID: 2009/12/29 Dr. Diesel : > On Mon, Dec 28, 2009 at 6:14 AM, Fabien Bodard wrote: > >> use a class ; >> TDBInfo >> 'Gambas Class >> >> PUBLIC ? ?DatabasePath ? ?As String >> PUBLIC ? ?DatabaseName ? ?As String >> PUBLIC ? ?TableName ? ? ? As String >> PUBLIC ? ?PurgeSQL ? ? ? ?As String >> PUBLIC ? ?PurgeSQL2 ? ? ? As String >> >> >> then : >> >> Public DatabaseInfo As DBinfo[NUM_MAX_DB] >> >> > Thank you! ?I can get this to work, just there seems no way to make it > global and accessable across different modules/classes. So pass the object around. That's what instantiated objects are for, hey. Dim oSomeObject as New cSomeClass Dim sR as String oSomeObject.ObscureProperty = 10 oSomeObject.AnotherObscureProperty = "Some Value" sR = mSomeObscureModule.SomeObscureMethod(oSomeObject) If sR = WhatIexpected then ThrowParty Else Sulk EndIf >> Looking to do something like this from VB6 Gambas is nothing like VB. I struggled with gambas for two months, caught between it and many years of MS experience, from VB2 to .NET 2007. Perseverance and determination will pay off with great rewards, but be prepared for heartache. That, btw, is not any criticism of Gambas. It is more a reflection of the truism that one's learning ability reduces with age :) See...? Class cLogRecord: ' Gambas class file Public LogDate As Float Public Subject As String Public Post As String Public Status As String Public LogFrom As String Public LogTo As String ------------------------------------------------------ Class cProxy: ' Gambas class file ' *************************************************************************** ' * cProxy ' * Manages the data between the client and the server ' *************************************************************************** Private oLog As cLogRecord ' A log record [...] Private Sub SomeMethod() oLog.Status = Buffer mSystemDataManager.AddLog(oLog) End From nospam.nospam.nospam at ...626... Tue Dec 29 11:31:56 2009 From: nospam.nospam.nospam at ...626... (Kadaitcha Man) Date: Tue, 29 Dec 2009 21:31:56 +1100 Subject: [Gambas-user] Type of Variables possible? In-Reply-To: <26951829.post@...1379...> References: <2a28d2ab0912271720he9c0dffwadad6abd35e38eab@...627...> <6324a42a0912280314gfe74f08l470d17d73ce0ab3@...627...> <2a28d2ab0912281302l3413ef18k296f0b4b9d4cbf4f@...627...> <26951829.post@...1379...> Message-ID: 2009/12/29 charlesg : > > Hi > > Project, Options, "Module symbols are public by default"=yes ? I'm sorry, Charles, but I must disagree with that solution. Some time back in the distant past (over 2yrs ago) there was a change in Gambas that meant the compiler made module symbols private by default, which would break some older code. "Module symbols are public by default"=yes was added only to assist transitional code, and certainly not to fix the OP's problem. HTH From dr.diesel at ...626... Tue Dec 29 11:40:46 2009 From: dr.diesel at ...626... (Dr. Diesel) Date: Tue, 29 Dec 2009 05:40:46 -0500 Subject: [Gambas-user] Type of Variables possible? In-Reply-To: References: <2a28d2ab0912271720he9c0dffwadad6abd35e38eab@...627...> <6324a42a0912280314gfe74f08l470d17d73ce0ab3@...627...> <2a28d2ab0912281302l3413ef18k296f0b4b9d4cbf4f@...627...> Message-ID: <2a28d2ab0912290240h2b5eaa87j4caec70b3c950188@...627...> On Tue, Dec 29, 2009 at 5:23 AM, Kadaitcha Man < nospam.nospam.nospam at ...626...> wrote: > 2009/12/29 Dr. Diesel : > > On Mon, Dec 28, 2009 at 6:14 AM, Fabien Bodard > wrote: > > > >> use a class ; > >> TDBInfo > >> 'Gambas Class > >> > >> PUBLIC DatabasePath As String > >> PUBLIC DatabaseName As String > >> PUBLIC TableName As String > >> PUBLIC PurgeSQL As String > >> PUBLIC PurgeSQL2 As String > >> > >> > >> then : > >> > >> Public DatabaseInfo As DBinfo[NUM_MAX_DB] > >> > >> > > Thank you! I can get this to work, just there seems no way to make it > > global and accessable across different modules/classes. > > So pass the object around. That's what instantiated objects are for, hey. > Thanks for the help. I just need to confirm if it is not currently possible in gambas3 or am I just doing something wrong? -- projecthuh.com All of my bits are free, are yours? Fedoraproject.org "I'd rather have dead offenders than repeat offenders" - Ted Nugent From nospam.nospam.nospam at ...626... Tue Dec 29 12:06:51 2009 From: nospam.nospam.nospam at ...626... (Kadaitcha Man) Date: Tue, 29 Dec 2009 22:06:51 +1100 Subject: [Gambas-user] Type of Variables possible? In-Reply-To: <2a28d2ab0912281302l3413ef18k296f0b4b9d4cbf4f@...627...> References: <2a28d2ab0912271720he9c0dffwadad6abd35e38eab@...627...> <6324a42a0912280314gfe74f08l470d17d73ce0ab3@...627...> <2a28d2ab0912281302l3413ef18k296f0b4b9d4cbf4f@...627...> Message-ID: 2009/12/29 Dr. Diesel : > just there seems no way to make it > global and accessable across different modules/classes. HA! I had that same logical problem. There is no concept of global in Gabas that matches any variation of VB's idea of global. This is the fault of Microsoft. In the old days there was a concept of "global", but then OO came along and Microsoft haven't been able to escape the problem it created ever since. You must either pass the object around, as I already mentioned, or you reference a module's public properties in this way: mModuleName.PropertyName = "something" where PropertyName is declared as a public string, for example. Let me try and explain by example. Microsoft tell you not to use inline string literals because they slow both the compiler and the interpreter down, which is a huge problem for Microsoft because the interpreter in .NET 2007 is already slower than a wet week. So, too many years ago to remember, I got into the habit of declaring global constants for common literals. I have a program here of thousands of lines of code that does not use a single literal, and it's still slow. Anyway, to the point: 1) In VB.NET I would declare constants in a single module and in this manner: ' Postscript names and values: Public Const QUOTESINGLE As String = "'" Public Const ASTERISK As String = "*" Public Const NUMBERSIGN As String = "#" Public Const PERCENT As String = "%" Public Const PLUS As String = "+" Public Const EQUAL As String = "=" [...] In VB, Public is a euphemism for Global, so I could access any simply constant by using it's name, for example: If SomeString = EMPTY then... 2) In Gambas I would declare constants in a single module and in this manner: ' Postscript names and values: Public Const QUOTESINGLE As String = "'" Public Const ASTERISK As String = "*" Public Const NUMBERSIGN As String = "#" Public Const PERCENT As String = "%" Public Const PLUS As String = "+" Public Const EQUAL As String = "=" [...] Note the distinct lack of difference? In Gambas, Public is a euphemism for "exposed to view", so I could access any constant by using the form "module.name", for example: If SomeString = mConst.EMPTY then... All of that may seem really weird to you, but the good thing is, unlike VB, Gambas forces you to plan your application structure rather than VB's "just type code as you go" approach. Personally, this is a really good thing. If you find any of that that difficult to follow, spare a thought for me. The uppercase constant names are a fortran 77 convention. From nospam.nospam.nospam at ...626... Tue Dec 29 13:25:07 2009 From: nospam.nospam.nospam at ...626... (Kadaitcha Man) Date: Tue, 29 Dec 2009 23:25:07 +1100 Subject: [Gambas-user] Strange behavior of Items on panel In-Reply-To: References: <1262006021.6393.22.camel@...40...> <200912281458.57068.gambas@...1...> <1262016066.6957.5.camel@...40...> <6324a42a0912280925y49d95d12s7647fd1b8cff608e@...627...> <1262023105.6957.10.camel@...40...> Message-ID: 2009/12/29 norarg : > (Ubuntu 9.10/Gambas 2.13) Take this with a bucketful of salt, but from my experience, you're better of with Gambas 3 and Qt4 on Ubuntu. I use 9.10 x64. Ubuntu uses GTK+, but Qt is far better. You need to consider installing Qt4, the latest Gambas 3, and if you do that then you need to covert your app from GTK to Qt. Depending on what you have done so far, that may be as simple as a library reference change to Qt4, or it may mean the creation of a whole new app and lots of copy/paste. Been there, done that. I was quite surprised when I moved my app to Qt4 on Ubuntu, it really did look, "as designed". If "as designed" is what you realy need, then go Qt4, and forget GTK+. The point is, IMO, you can only get so far with GTK+, and if you want better then you need gb3 and Qt4. That becomes an even more important point when, as I did, you discover that GTK is trying to do things it was never designed to do. As an Ubuntu user, I'd be really happy if Benoit trashed GTK support and only offered Qt support. IMO (again) Qt won the war ages ago. Yes, there may be heartache ahead, but looking at the gb3/Qt4 app I have in front of me, which came from VB dotNET 2007, heck, gb3/Qt4 is sweet. All that said, you should at least upgrade to 2.18. Here is the source for 2.18: http://prdownloads.sourceforge.net/gambas/gambas2-2.18.0.tar.bz2?download Here are the instructions for an Ubuntu 9.10 installation: http://gambasdoc.org/help/install/ubuntu?view You can install gb3 side by side with gb2. Just follow the gb3 instructions here: DAMN! Benoit! You gotta stop using frames, man. I can't give the customer the link he needs. From nospam.nospam.nospam at ...626... Tue Dec 29 13:54:18 2009 From: nospam.nospam.nospam at ...626... (Kadaitcha Man) Date: Tue, 29 Dec 2009 23:54:18 +1100 Subject: [Gambas-user] Type of Variables possible? In-Reply-To: <2a28d2ab0912290240h2b5eaa87j4caec70b3c950188@...627...> References: <2a28d2ab0912271720he9c0dffwadad6abd35e38eab@...627...> <6324a42a0912280314gfe74f08l470d17d73ce0ab3@...627...> <2a28d2ab0912281302l3413ef18k296f0b4b9d4cbf4f@...627...> <2a28d2ab0912290240h2b5eaa87j4caec70b3c950188@...627...> Message-ID: 2009/12/29 Dr. Diesel : > On Tue, Dec 29, 2009 at 5:23 AM, Kadaitcha Man < > nospam.nospam.nospam at ...626...> wrote: > Thanks for the help. You're welcome. > ?I just need to confirm if it is not currently possible > in gambas3 or am I just doing something wrong? I love having a choice. It's either you or Gambas that's at fault :0 It's you. You need a different mindset. I believe I addressed your issue directly in an earlier reply. In VB, Global is synonymous with Public, but Global really means "drop your knickers and spread your legs for everyone in Paris. Hell, go the whole hog! The WORLD!!!!" in VB. In Gambas, Public means "drop your knickers and spread your legs only to those who ask nicely." Crude, hey. But that's me. Perhaps you started with Gambas as I did, having a vital VB app that had to be moved to Linux asap, and jumped in head first without checking the depth of the water. Look, I agonised over this stuff. I went so far as to consider a Qt GUI with a fortran or Pascal back-end, but I persisted with Gambas and it paid off. If I were to offer you some genuinely good advice, it would be not be to try and port the application on the first ball. You need to experiment, an awful lot, to come to terms with the differences between Gambas and VB. You need to first see if the GUI is even remotely reproducible. Then you need to know the difference between /r/n and crlf and standard line breaks in Linux, and escape characters. The list never ends. Then, when you think you've got it all tied down you'll need to convert your local time now into Timbuktu time now. Even stuff as simple as Drag/Drop is different. Heck, even Clipboard is different. However, once the GUI is reproducible, the difference between /r/n and crlf and a line break in Linux is known, and it's second nature to convert your local time now into Timbuktu time now, and both Drag/Drop and Clipboard have been mastered, the rest really is BASIC. I don't know if the mailing list can cope with a VB to Gambas conversion thread, but being mindful of the fact that the mailing list exists so others may learn, you are welcome to email me privately under the proviso that your conversion experience and mine form part of a freely available work that benefits other Gambas users. From doriano.blengino at ...1909... Tue Dec 29 13:43:30 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Tue, 29 Dec 2009 13:43:30 +0100 Subject: [Gambas-user] Type of Variables possible? In-Reply-To: References: <2a28d2ab0912271720he9c0dffwadad6abd35e38eab@...627...> <6324a42a0912280314gfe74f08l470d17d73ce0ab3@...627...> <2a28d2ab0912281302l3413ef18k296f0b4b9d4cbf4f@...627...> Message-ID: <4B39F972.8080700@...1909...> Kadaitcha Man ha scritto: > 2009/12/29 Dr. Diesel : > > >> just there seems no way to make it >> global and accessable across different modules/classes. >> > > HA! I had that same logical problem. There is no concept of global in > Gabas that matches any variation of VB's idea of global. This is the > fault of Microsoft. In the old days there was a concept of "global", > but then OO came along and Microsoft haven't been able to escape the > problem it created ever since. > Sorry Kadaitcha, you are confusing scope with visibility and naming, and all these things have nothing to do with OO. It seems that everybody in this list talks about OO misunderstanding its true meaning. There can be global variables in OO, why not? And they are not so bad, anyway - without global variables no programs could run... "Global" is something during the life of the program, like file descriptors or static forms. Dynamic data could be thought as "not global", but it is anyway because you must have around something to access them - and that "something" is global. I mean - in your main form there can be some private variables, but they are "global" because your form is alive, and it can not live without its data. When the form closes, your application closes. During the life of your program, those private variables of the main form are always there, so they are global; the gambas interpreter, if not you, always know where they are (well, it is not exactly so, but near enough). Visibility is an attribute that define where your identifiers can be seen (and used), but this does not necessarily mean that a global variable is public. This is the case of private variables in static modules: they are global, but invisible outside their defining class. There are other visibility attributes not used in gambas, like published or protected. The visibility of a variable can not go out of its scope, of course. So a local variable is not global, and can not be public. The scope defines the field of existence of a variable, and its visibility attribute can restrict its visibility, not its scope; and the visibility attribute can not expand the variable scope (or, better, it could: but it would be a serious compiler glitch...). Moreover, in other languages you can define static local variables, which are global but visible only inside a function: a global variable with a very restricted visibility... Naming is still another issue. Whether a global variable can be accessed by "MyGlobalVar" or "MyModule.MyGlobalVar", it is still the same thing: that variable is both global and public. Probably the second mechanism is better in a modern IDE with automatic completion: it is handy and well ordered, but other languages have statements like Import which can be used to abbreviate such things. Sometimes I get tired of typing blablabla.x1, blablabla.x2 and so on, where a simple "x1" and "x2" would signify the same thing. I don't want to talk about M$ and VB, but I can say something about gambas. With great simplicity (sometimes too much simplicity) it brings OO programming and good program organization; but this does not mean that the gambas way is the only correct one. To conclude, gambas has global variables (and subroutines); these identifiers can be public or private, and you must access them always prepending the module name where they are defined. This is a minor limitation/simplification, and I can live with it. Keep in mind the differences between modules, classes, and static classes. Regards, Doriano > You must either pass the object around, as I already mentioned, or you > reference a module's public properties in this way: > > mModuleName.PropertyName = "something" > > where PropertyName is declared as a public string, for example. > > Let me try and explain by example. Microsoft tell you not to use > inline string literals because they slow both the compiler and the > interpreter down, which is a huge problem for Microsoft because the > interpreter in .NET 2007 is already slower than a wet week. So, too > many years ago to remember, I got into the habit of declaring global > constants for common literals. I have a program here of thousands of > lines of code that does not use a single literal, and it's still slow. > Anyway, to the point: > > 1) In VB.NET I would declare constants in a single module and in this manner: > > ' Postscript names and values: > Public Const QUOTESINGLE As String = "'" > Public Const ASTERISK As String = "*" > Public Const NUMBERSIGN As String = "#" > Public Const PERCENT As String = "%" > Public Const PLUS As String = "+" > Public Const EQUAL As String = "=" > [...] > > In VB, Public is a euphemism for Global, so I could access any simply > constant by using it's name, for example: > > If SomeString = EMPTY then... > > 2) In Gambas I would declare constants in a single module and in this manner: > > ' Postscript names and values: > Public Const QUOTESINGLE As String = "'" > Public Const ASTERISK As String = "*" > Public Const NUMBERSIGN As String = "#" > Public Const PERCENT As String = "%" > Public Const PLUS As String = "+" > Public Const EQUAL As String = "=" > [...] > > Note the distinct lack of difference? > > In Gambas, Public is a euphemism for "exposed to view", so I could > access any constant by using the form "module.name", for example: > > If SomeString = mConst.EMPTY then... > > All of that may seem really weird to you, but the good thing is, > unlike VB, Gambas forces you to plan your application structure rather > than VB's "just type code as you go" approach. Personally, this is a > really good thing. > > If you find any of that that difficult to follow, spare a thought for > me. The uppercase constant names are a fortran 77 convention. > From nospam.nospam.nospam at ...626... Tue Dec 29 14:12:12 2009 From: nospam.nospam.nospam at ...626... (Kadaitcha Man) Date: Wed, 30 Dec 2009 00:12:12 +1100 Subject: [Gambas-user] Type of Variables possible? References: <2a28d2ab0912271720he9c0dffwadad6abd35e38eab@...627...> <6324a42a0912280314gfe74f08l470d17d73ce0ab3@...627...> <2a28d2ab0912281302l3413ef18k296f0b4b9d4cbf4f@...627...> <4B39F972.8080700@...1909...> Message-ID: <0C7CF70DDE2044FD9152C625F3877F88@...2330...> Doriano Blengino wrote: > Kadaitcha Man ha scritto: >> 2009/12/29 Dr. Diesel : >> >> >>> just there seems no way to make it >>> global and accessable across different modules/classes. >>> >> >> HA! I had that same logical problem. There is no concept of global in >> Gabas that matches any variation of VB's idea of global. This is the >> fault of Microsoft. In the old days there was a concept of "global", >> but then OO came along and Microsoft haven't been able to escape the >> problem it created ever since. >> > Sorry Kadaitcha, > > you are confusing scope with visibility and naming, and all these > things have nothing to do with OO. It seems that everybody in this > list talks about OO misunderstanding its true meaning. There can be > global > variables in OO, why not? And they are not so bad, anyway - without > global variables no programs could run... No confusion. As an ex-VB programmer, I put it in the best way I could that would be understood by the OP, alsa a VB programmer learning Gambas, so it appears. > "Global" is something during the life of the program, like file > descriptors or static forms. I hope you don't mind. I fell asleep and accidentally snipped everything else. From dr.diesel at ...626... Tue Dec 29 14:15:15 2009 From: dr.diesel at ...626... (Dr. Diesel) Date: Tue, 29 Dec 2009 08:15:15 -0500 Subject: [Gambas-user] Type of Variables possible? In-Reply-To: References: <2a28d2ab0912271720he9c0dffwadad6abd35e38eab@...627...> <6324a42a0912280314gfe74f08l470d17d73ce0ab3@...627...> <2a28d2ab0912281302l3413ef18k296f0b4b9d4cbf4f@...627...> <2a28d2ab0912290240h2b5eaa87j4caec70b3c950188@...627...> Message-ID: <2a28d2ab0912290515x748492d5r3c177288d7eb0b70@...627...> On Tue, Dec 29, 2009 at 7:54 AM, Kadaitcha Man < nospam.nospam.nospam at ...626...> wrote: > 2009/12/29 Dr. Diesel : > > On Tue, Dec 29, 2009 at 5:23 AM, Kadaitcha Man < > > nospam.nospam.nospam at ...626...> wrote: > > > Thanks for the help. > > You're welcome. And thanks again! I personally think gambas is awesome! This is a new app and you/and others have helped me make sure I start off in the right direction! -- projecthuh.com All of my bits are free, are yours? Fedoraproject.org "I'd rather have dead offenders than repeat offenders" - Ted Nugent From nospam.nospam.nospam at ...626... Tue Dec 29 14:23:03 2009 From: nospam.nospam.nospam at ...626... (Kadaitcha Man) Date: Wed, 30 Dec 2009 00:23:03 +1100 Subject: [Gambas-user] Type of Variables possible? References: <2a28d2ab0912271720he9c0dffwadad6abd35e38eab@...627...> <6324a42a0912280314gfe74f08l470d17d73ce0ab3@...627...> <2a28d2ab0912281302l3413ef18k296f0b4b9d4cbf4f@...627...> <4B39F972.8080700@...1909...> Message-ID: <3D3BF05EFA7E494F9E30D98948F0D530@...2330...> Doriano Blengino wrote: > without global variables no programs could run... Counterfactual. Fallacious. False. In error. Inaccurate. Inexact. Misconstrued. Misguided. Mistaken. Not right. Untrue. Incorrect. Erroneous. False. Way off. Wide of the mark. Absurd. Groundless Incongruous. Incorrect. Preposterous, Self-contradictory. Sophistic. Unproved. Unscientific. Without basis. PS: And also wrong. From nospam.nospam.nospam at ...626... Tue Dec 29 14:26:25 2009 From: nospam.nospam.nospam at ...626... (Kadaitcha Man) Date: Wed, 30 Dec 2009 00:26:25 +1100 Subject: [Gambas-user] Type of Variables possible? In-Reply-To: <2a28d2ab0912290515x748492d5r3c177288d7eb0b70@...627...> References: <2a28d2ab0912271720he9c0dffwadad6abd35e38eab@...627...> <6324a42a0912280314gfe74f08l470d17d73ce0ab3@...627...> <2a28d2ab0912281302l3413ef18k296f0b4b9d4cbf4f@...627...> <2a28d2ab0912290240h2b5eaa87j4caec70b3c950188@...627...> <2a28d2ab0912290515x748492d5r3c177288d7eb0b70@...627...> Message-ID: 2009/12/30 Dr. Diesel : > On Tue, Dec 29, 2009 at 7:54 AM, Kadaitcha Man < > nospam.nospam.nospam at ...626...> wrote: > >> 2009/12/29 Dr. Diesel : >> > On Tue, Dec 29, 2009 at 5:23 AM, Kadaitcha Man < >> > nospam.nospam.nospam at ...626...> wrote: >> >> > Thanks for the help. >> >> You're welcome. > > > And thanks again! > > I personally think gambas is awesome! ?This is a new app and you/and others > have helped me make sure I start off in the right direction! Now that's the kind of reply I like. Please, do not, whatever you do, tell anyone, but I also think the same about Gambas. From yongchiaowoei at ...626... Tue Dec 29 15:56:22 2009 From: yongchiaowoei at ...626... (cwyong1) Date: Tue, 29 Dec 2009 06:56:22 -0800 (PST) Subject: [Gambas-user] Weird, form width alway return as 640 Message-ID: <26955482.post@...1379...> Hi all i m experimenting with the HelloWorld project and i m confused, pls tell me what is wrong here. Thanking you all in advance This is what i have added to the code PUBLIC SUB _new() END PUBLIC SUB Form_Open() DEBUG Form.width END PUBLIC SUB Button1_Click() DEBUG Form.width END When i run the project, debug show this FMain.Form_Open.8: 640 I then resize the window and on clicking the button 1, debug show this FMain.Form_Open.8: 640 FMain.Button1_Click.13: 640 So, my question is how come the width is still showing 640 when the width have increased. Any idea pls ppls? -- View this message in context: http://old.nabble.com/Weird%2C-form-width-alway-return-as-640-tp26955482p26955482.html Sent from the gambas-user mailing list archive at Nabble.com. From doriano.blengino at ...1909... Tue Dec 29 16:13:53 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Tue, 29 Dec 2009 16:13:53 +0100 Subject: [Gambas-user] Weird, form width alway return as 640 In-Reply-To: <26955482.post@...1379...> References: <26955482.post@...1379...> Message-ID: <4B3A1CB1.5040000@...1909...> cwyong1 ha scritto: > Hi all > i m experimenting with the HelloWorld project and i m confused, pls tell me > what is wrong here. Thanking you all in advance > > This is what i have added to the code > > PUBLIC SUB _new() > > END > > PUBLIC SUB Form_Open() > DEBUG Form.width > END > > PUBLIC SUB Button1_Click() > > DEBUG Form.width > > END > > When i run the project, debug show this > FMain.Form_Open.8: 640 > > I then resize the window and on clicking the button 1, debug show this > FMain.Form_Open.8: 640 > FMain.Button1_Click.13: 640 > > So, my question is how come the width is still showing 640 when the width > have increased. > > Perhaps you should use "FMain.width", or "ME.Width" and not "Form.width". "Form" is not an instance of a class, but a class name. I don't know what gambas does in this case (it should give a compilation error, I suppose; what is the sense of querying a field of a non-instantiated class?). Regards, Doriano From gambas at ...1... Tue Dec 29 17:05:46 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 29 Dec 2009 17:05:46 +0100 Subject: [Gambas-user] Weird, form width alway return as 640 In-Reply-To: <4B3A1CB1.5040000@...1909...> References: <26955482.post@...1379...> <4B3A1CB1.5040000@...1909...> Message-ID: <200912291705.46931.gambas@...1...> > cwyong1 ha scritto: > > Hi all > > i m experimenting with the HelloWorld project and i m confused, pls tell > > me what is wrong here. Thanking you all in advance > > > > This is what i have added to the code > > > > PUBLIC SUB _new() > > > > END > > > > PUBLIC SUB Form_Open() > > DEBUG Form.width > > END > > > > PUBLIC SUB Button1_Click() > > > > DEBUG Form.width > > > > END > > > > When i run the project, debug show this > > FMain.Form_Open.8: 640 > > > > I then resize the window and on clicking the button 1, debug show this > > FMain.Form_Open.8: 640 > > FMain.Button1_Click.13: 640 > > > > So, my question is how come the width is still showing 640 when the width > > have increased. > > Perhaps you should use "FMain.width", or "ME.Width" and not "Form.width". > > "Form" is not an instance of a class, but a class name. I don't know > what gambas does in this case (it should give a compilation error, I > suppose; what is the sense of querying a field of a non-instantiated > class?). > > Regards, > Doriano > Form is "auto-instanciable", so by querying Form.Width, you are querying the width of an internal automatically created Form object. Regards, -- Beno?t Minisini From yongchiaowoei at ...626... Tue Dec 29 17:57:07 2009 From: yongchiaowoei at ...626... (cwyong1) Date: Tue, 29 Dec 2009 08:57:07 -0800 (PST) Subject: [Gambas-user] Weird, form width alway return as 640 In-Reply-To: <4B3A1CB1.5040000@...1909...> References: <26955482.post@...1379...> <4B3A1CB1.5040000@...1909...> Message-ID: <26957001.post@...1379...> Greeting Thank you for the prompt reply, very sorry for my blunder for i did not touch VB programming for quite a while now. LOL i got it to work now, thank you again Doriano Blengino wrote: > > cwyong1 ha scritto: >> Hi all >> i m experimenting with the HelloWorld project and i m confused, pls tell >> me >> what is wrong here. Thanking you all in advance >> >> This is what i have added to the code >> >> PUBLIC SUB _new() >> >> END >> >> PUBLIC SUB Form_Open() >> DEBUG Form.width >> END >> >> PUBLIC SUB Button1_Click() >> >> DEBUG Form.width >> >> END >> >> When i run the project, debug show this >> FMain.Form_Open.8: 640 >> >> I then resize the window and on clicking the button 1, debug show this >> FMain.Form_Open.8: 640 >> FMain.Button1_Click.13: 640 >> >> So, my question is how come the width is still showing 640 when the width >> have increased. >> >> > Perhaps you should use "FMain.width", or "ME.Width" and not "Form.width". > > "Form" is not an instance of a class, but a class name. I don't know > what gambas does in this case (it should give a compilation error, I > suppose; what is the sense of querying a field of a non-instantiated > class?). > > Regards, > Doriano > > > > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and > easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://old.nabble.com/Weird%2C-form-width-alway-return-as-640-tp26955482p26957001.html Sent from the gambas-user mailing list archive at Nabble.com. From yongchiaowoei at ...626... Tue Dec 29 18:01:38 2009 From: yongchiaowoei at ...626... (cwyong1) Date: Tue, 29 Dec 2009 09:01:38 -0800 (PST) Subject: [Gambas-user] Not sure about what type of project to use, pls advise Message-ID: <26957051.post@...1379...> Hi i am thinking of writing an financial system but am confused, should i go for Graphical Application of QT or GTK+ Graphical Application Thank -- View this message in context: http://old.nabble.com/Not-sure-about-what-type-of-project-to-use%2C-pls-advise-tp26957051p26957051.html Sent from the gambas-user mailing list archive at Nabble.com. From wdahn at ...1000... Tue Dec 29 13:25:17 2009 From: wdahn at ...1000... (Werner) Date: Tue, 29 Dec 2009 20:25:17 +0800 Subject: [Gambas-user] Type of Variables possible? In-Reply-To: <2a28d2ab0912290210t6c655829vf47706fcd7cb57a4@...627...> References: <2a28d2ab0912271720he9c0dffwadad6abd35e38eab@...627...> <6324a42a0912280314gfe74f08l470d17d73ce0ab3@...627...> <2a28d2ab0912281302l3413ef18k296f0b4b9d4cbf4f@...627...> <26951829.post@...1379...> <2a28d2ab0912290210t6c655829vf47706fcd7cb57a4@...627...> Message-ID: <4B39F52D.9030706@...1000...> On 29/12/09 18:10, Dr. Diesel wrote: > On Tue, Dec 29, 2009 at 2:18 AM, charlesg wrote: > > >> Hi >> >> Project, Options, "Module symbols are public by default"=yes ? >> >> rgds >> >> Thank you, but I must still be confused. Please see the following example: >> > I have the following in my startup class/form: > > Public IOvariables1 As New IOvariables > > Then, in my IOvariables.class > > Public DriveWheelLeft As Integer = 1 > Public DriveWheelRight As Integer = 2 > Public HeadLR As Integer = 90 > Public HeadUD As Integer = 90 > Public IRLeft As Integer = 0 > > If I try and use IOvariables1 in a separate module, I receive an unknown > identifier error? > > What am I doing wrong? > > Many thanks > > > > does Print IOvariables1.HeadLR not print 90? Regards, Werner From doriano.blengino at ...1909... Tue Dec 29 18:17:28 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Tue, 29 Dec 2009 18:17:28 +0100 Subject: [Gambas-user] Not sure about what type of project to use, pls advise In-Reply-To: <26957051.post@...1379...> References: <26957051.post@...1379...> Message-ID: <4B3A39A8.9080902@...1909...> cwyong1 ha scritto: > Hi > i am thinking of writing an financial system but am confused, should i go > for Graphical Application of QT or GTK+ Graphical Application > > Thank > Hmm, good question. GTK support in gambas is incomplete if compared to QT - especially the printer interface which works well in QT and it seems to lack in GTK. There are other widgets missing in GTK, and probably more quirks. Being your a financial program, I would go with QT. Anyway, you can change the graphic back-end without touching a single line of code, if you plan with care. Once your project has been created, you can go in the Project/Components tab and substitute QT with GTK. You can also use the switcher component instead: this component uses QT if running in a KDE environment, otherwise GTK. This would render the application more portable. So start your project with QT and, at times, try to switch to GTK forth and back (especially when adding complex widgets). Regards, Doriano From wdahn at ...1000... Tue Dec 29 18:19:34 2009 From: wdahn at ...1000... (Werner) Date: Wed, 30 Dec 2009 01:19:34 +0800 Subject: [Gambas-user] Not sure about what type of project to use, pls advise In-Reply-To: <26957051.post@...1379...> References: <26957051.post@...1379...> Message-ID: <4B3A3A26.4090007@...1000...> On 30/12/09 01:01, cwyong1 wrote: > Hi > i am thinking of writing an financial system but am confused, should i go > for Graphical Application of QT or GTK+ Graphical Application > > Thank > Surely you will find people advocating both sides. My personal preference is Qt as it is more feature complete and congruent. Some other thoughts that crossed my mind (might be irrelevant): -- There seems to be a financial accounting system written in Gambas, status unknown that might have useful bits -- There was a discussion on this mailing list on how to represent accounting numbers with Gambas. From yongchiaowoei at ...626... Tue Dec 29 19:25:22 2009 From: yongchiaowoei at ...626... (cwyong1) Date: Tue, 29 Dec 2009 10:25:22 -0800 (PST) Subject: [Gambas-user] Menu bar height? Message-ID: <26958083.post@...1379...> Hi Sorry for asking so many question but i would be thankful if you ppls can tell me how to find it out? -- View this message in context: http://old.nabble.com/Menu-bar-height--tp26958083p26958083.html Sent from the gambas-user mailing list archive at Nabble.com. From math.eber at ...221... Tue Dec 29 21:14:09 2009 From: math.eber at ...221... (Matti) Date: Tue, 29 Dec 2009 21:14:09 +0100 Subject: [Gambas-user] Gambas3 svn versions 2533-2541 won't install Message-ID: <4B3A6311.2060405@...221...> on OpenSuSe 11.0 kernel 2.6.25.20 libtool 1.5.26 I tried some svn versions with ./reconf-all as user with the result: Remember to add `AC_PROG_LIBTOOL' to `configure.ac'. You should update your `aclocal.m4' by running aclocal. autoreconf: Entering directory `.' autoreconf: configure.ac: not using Gettext ... autom4te: cannot open autom4te.cache/requests: no rights aclocal: autom4te failed with exit status: 1 autoreconf: aclocal failed with exit status: 1 "no rights" even if I set the rights for the user. Next I tried ./reconf-all as root and got lots of messages like: ... gbc/Makefile.am:5: Libtool library used but `LIBTOOL' is undefined gbc/Makefile.am:5: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL' gbc/Makefile.am:5: to `configure.ac' and run `aclocal' and `autoconf' again. gbc/Makefile.am:5: If `AC_PROG_LIBTOOL' is in `configure.ac', make sure gbc/Makefile.am:5: its definition is in aclocal's search path. gbx/Makefile.am:5: library used but `RANLIB' is undefined gbx/Makefile.am:5: The usual way to define `RANLIB' is to add `AC_PROG_RANLIB' gbx/Makefile.am:5: to `configure.ac' and run `autoconf' again. ... finally: autoreconf: automake failed with exit status: 1 What's wrong here? A few months ago, I installed Gambas3 (where to find the version?) without any problems. Thanks for any hints. Matti From lordheavym at ...626... Tue Dec 29 21:41:47 2009 From: lordheavym at ...626... (Laurent Carlier) Date: Tue, 29 Dec 2009 21:41:47 +0100 Subject: [Gambas-user] Gambas3 svn versions 2533-2541 won't install In-Reply-To: <4B3A6311.2060405@...221...> References: <4B3A6311.2060405@...221...> Message-ID: <200912292141.47563.lordheavym@...626...> Le mardi 29 d?cembre 2009 21:14:09, Matti a ?crit : > on OpenSuSe 11.0 > kernel 2.6.25.20 > libtool 1.5.26 > > I tried some svn versions with ./reconf-all as user with the result: > Remember to add `AC_PROG_LIBTOOL' to `configure.ac'. > You should update your `aclocal.m4' by running aclocal. > autoreconf: Entering directory `.' > autoreconf: configure.ac: not using Gettext > ... > autom4te: cannot open autom4te.cache/requests: no rights > aclocal: autom4te failed with exit status: 1 > autoreconf: aclocal failed with exit status: 1 > > "no rights" even if I set the rights for the user. > > Next I tried ./reconf-all as root and got lots of messages like: > ... > gbc/Makefile.am:5: Libtool library used but `LIBTOOL' is undefined > gbc/Makefile.am:5: The usual way to define `LIBTOOL' is to add > `AC_PROG_LIBTOOL' gbc/Makefile.am:5: to `configure.ac' and run `aclocal' > and `autoconf' again. gbc/Makefile.am:5: If `AC_PROG_LIBTOOL' is in > `configure.ac', make sure gbc/Makefile.am:5: its definition is in > aclocal's search path. > gbx/Makefile.am:5: library used but `RANLIB' is undefined > gbx/Makefile.am:5: The usual way to define `RANLIB' is to add > `AC_PROG_RANLIB' gbx/Makefile.am:5: to `configure.ac' and run `autoconf' > again. > ... > finally: > autoreconf: automake failed with exit status: 1 > > What's wrong here? > A few months ago, I installed Gambas3 (where to find the version?) without > any problems. > > Thanks for any hints. > Matti > Now gambas3 need libtool 2.X versions to build configure scripts. There is two possibilities (at least), install libtool 2.x, or have access to a computer with libtool 2.x just to run reconf-all script, all other steps (configure/make/..) should work in your computer. Installing a minimal distro with appropriate tools in a chroot should be enough (but not tested). ++ From Karl.Reinl at ...2345... Tue Dec 29 21:44:10 2009 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Tue, 29 Dec 2009 21:44:10 +0100 Subject: [Gambas-user] Gambas3 svn versions 2533-2541 won't install In-Reply-To: <4B3A6311.2060405@...221...> References: <4B3A6311.2060405@...221...> Message-ID: <1262119450.6354.11.camel@...40...> Am Dienstag, den 29.12.2009, 21:14 +0100 schrieb Matti: > on OpenSuSe 11.0 > kernel 2.6.25.20 > libtool 1.5.26 > > I tried some svn versions with ./reconf-all as user with the result: > Remember to add `AC_PROG_LIBTOOL' to `configure.ac'. > You should update your `aclocal.m4' by running aclocal. > autoreconf: Entering directory `.' > autoreconf: configure.ac: not using Gettext > ... > autom4te: cannot open autom4te.cache/requests: no rights > aclocal: autom4te failed with exit status: 1 > autoreconf: aclocal failed with exit status: 1 > > "no rights" even if I set the rights for the user. > > Next I tried ./reconf-all as root and got lots of messages like: > ... > gbc/Makefile.am:5: Libtool library used but `LIBTOOL' is undefined > gbc/Makefile.am:5: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL' > gbc/Makefile.am:5: to `configure.ac' and run `aclocal' and `autoconf' again. > gbc/Makefile.am:5: If `AC_PROG_LIBTOOL' is in `configure.ac', make sure > gbc/Makefile.am:5: its definition is in aclocal's search path. > gbx/Makefile.am:5: library used but `RANLIB' is undefined > gbx/Makefile.am:5: The usual way to define `RANLIB' is to add `AC_PROG_RANLIB' > gbx/Makefile.am:5: to `configure.ac' and run `autoconf' again. > ... > finally: > autoreconf: automake failed with exit status: 1 > > What's wrong here? > A few months ago, I installed Gambas3 (where to find the version?) without any > problems. > > Thanks for any hints. > Matti Salut Matti, sent you my two scripts for making gambas3. Copy them into a dir , make them executable , edit update30 set TARGET to your Path set SVNREV=" -r " to a value where it worked for you (you have to find out) if you can't use sudo to became root, you have also make changes in svnMake -- Amicalement Charlie -------------- next part -------------- A non-text attachment was scrubbed... Name: svnMake Type: application/x-shellscript Size: 1033 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: update30 Type: application/x-shellscript Size: 675 bytes Desc: not available URL: From gambas at ...1... Tue Dec 29 21:44:39 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 29 Dec 2009 21:44:39 +0100 Subject: [Gambas-user] Gambas3 svn versions 2533-2541 won't install In-Reply-To: <4B3A6311.2060405@...221...> References: <4B3A6311.2060405@...221...> Message-ID: <200912292144.39319.gambas@...1...> > on OpenSuSe 11.0 > kernel 2.6.25.20 > libtool 1.5.26 > > I tried some svn versions with ./reconf-all as user with the result: > Remember to add `AC_PROG_LIBTOOL' to `configure.ac'. > You should update your `aclocal.m4' by running aclocal. > autoreconf: Entering directory `.' > autoreconf: configure.ac: not using Gettext > ... > autom4te: cannot open autom4te.cache/requests: no rights > aclocal: autom4te failed with exit status: 1 > autoreconf: aclocal failed with exit status: 1 > > "no rights" even if I set the rights for the user. > > Next I tried ./reconf-all as root and got lots of messages like: > ... > gbc/Makefile.am:5: Libtool library used but `LIBTOOL' is undefined > gbc/Makefile.am:5: The usual way to define `LIBTOOL' is to add > `AC_PROG_LIBTOOL' gbc/Makefile.am:5: to `configure.ac' and run `aclocal' > and `autoconf' again. gbc/Makefile.am:5: If `AC_PROG_LIBTOOL' is in > `configure.ac', make sure gbc/Makefile.am:5: its definition is in > aclocal's search path. > gbx/Makefile.am:5: library used but `RANLIB' is undefined > gbx/Makefile.am:5: The usual way to define `RANLIB' is to add > `AC_PROG_RANLIB' gbx/Makefile.am:5: to `configure.ac' and run `autoconf' > again. > ... > finally: > autoreconf: automake failed with exit status: 1 > > What's wrong here? > A few months ago, I installed Gambas3 (where to find the version?) without > any problems. > > Thanks for any hints. > Matti > Did you try to checkout everything from scratch? -- Beno?t Minisini From gambas at ...1... Tue Dec 29 21:50:11 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 29 Dec 2009 21:50:11 +0100 Subject: [Gambas-user] Strange event in a ComboBox In-Reply-To: <9C4882CA-6D24-419E-A51B-955B6F6A4147@...1896...> References: <9C4882CA-6D24-419E-A51B-955B6F6A4147@...1896...> Message-ID: <200912292150.11241.gambas@...1...> > Benoit, > > I'm following my project and in a ComboBox I found a strange event. > > On Gambas v2.18 on Fedora11. > > I joined a list a data in this ComboxBox manually by the IDE and when > I add the word 'or', 'OR', '-or-', etc... in this list, the project can't > start because the IDE add at the end of the line in the Form definition a > wrong ')'. > > If I remove the line with the 'or' word, all it's ok. > > It's not really important for me, just to inform you. > > > Olivier Cruilles > Mail: linuxos at ...1896... > I can't reproduce what you describe: please a send a project that shows the bug. Regards, -- Beno?t Minisini From linuxos at ...1896... Tue Dec 29 22:15:11 2009 From: linuxos at ...1896... (Olivier Cruilles) Date: Tue, 29 Dec 2009 22:15:11 +0100 Subject: [Gambas-user] Strange event in a ComboBox In-Reply-To: <200912292150.11241.gambas@...1...> References: <9C4882CA-6D24-419E-A51B-955B6F6A4147@...1896...> <200912292150.11241.gambas@...1...> Message-ID: <8340F730-9B3C-4BA1-84AA-A02A8EE95349@...1896...> Here it is: -------------- next part -------------- A non-text attachment was scrubbed... Name: test1-0.0.1.tar.gz Type: application/x-gzip Size: 7993 bytes Desc: not available URL: -------------- next part -------------- Le 29 d?c. 2009 ? 21:50, Beno?t Minisini a ?crit : >> Benoit, >> >> I'm following my project and in a ComboBox I found a strange event. >> >> On Gambas v2.18 on Fedora11. >> >> I joined a list a data in this ComboxBox manually by the IDE and when >> I add the word 'or', 'OR', '-or-', etc... in this list, the project can't >> start because the IDE add at the end of the line in the Form definition a >> wrong ')'. >> >> If I remove the line with the 'or' word, all it's ok. >> >> It's not really important for me, just to inform you. >> >> >> Olivier Cruilles >> Mail: linuxos at ...1896... >> > > I can't reproduce what you describe: please a send a project that shows the > bug. > > Regards, > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user Olivier Cruilles Mail: linuxos at ...1896... From math.eber at ...221... Tue Dec 29 22:43:26 2009 From: math.eber at ...221... (Matti) Date: Tue, 29 Dec 2009 22:43:26 +0100 Subject: [Gambas-user] Gambas3 svn versions 2533-2541 won't install In-Reply-To: <200912292144.39319.gambas@...1...> References: <4B3A6311.2060405@...221...> <200912292144.39319.gambas@...1...> Message-ID: <4B3A77FE.3070706@...221...> Thanks for all your quick answers. @ Laurent: Will try to get libtool 2.x. OpenSuSe doesn't have this version in the repos. @ Charlie: Will try your scripts. But it can't be done before 2010/01/8. @ Beno?t: What do you mean by "checkout everything from scratch"? I'm a newbie to all of that. If you mean "delete the folder ... /gambas3/trunk" and start again with svn, yes, I did. Beno?t Minisini schrieb: >> on OpenSuSe 11.0 >> kernel 2.6.25.20 >> libtool 1.5.26 >> >> I tried some svn versions with ./reconf-all as user with the result: >> Remember to add `AC_PROG_LIBTOOL' to `configure.ac'. >> You should update your `aclocal.m4' by running aclocal. >> autoreconf: Entering directory `.' >> autoreconf: configure.ac: not using Gettext >> ... >> autom4te: cannot open autom4te.cache/requests: no rights >> aclocal: autom4te failed with exit status: 1 >> autoreconf: aclocal failed with exit status: 1 >> >> "no rights" even if I set the rights for the user. >> >> Next I tried ./reconf-all as root and got lots of messages like: >> ... >> gbc/Makefile.am:5: Libtool library used but `LIBTOOL' is undefined >> gbc/Makefile.am:5: The usual way to define `LIBTOOL' is to add >> `AC_PROG_LIBTOOL' gbc/Makefile.am:5: to `configure.ac' and run `aclocal' >> and `autoconf' again. gbc/Makefile.am:5: If `AC_PROG_LIBTOOL' is in >> `configure.ac', make sure gbc/Makefile.am:5: its definition is in >> aclocal's search path. >> gbx/Makefile.am:5: library used but `RANLIB' is undefined >> gbx/Makefile.am:5: The usual way to define `RANLIB' is to add >> `AC_PROG_RANLIB' gbx/Makefile.am:5: to `configure.ac' and run `autoconf' >> again. >> ... >> finally: >> autoreconf: automake failed with exit status: 1 >> >> What's wrong here? >> A few months ago, I installed Gambas3 (where to find the version?) without >> any problems. >> >> Thanks for any hints. >> Matti >> > > Did you try to checkout everything from scratch? > From ron at ...1740... Wed Dec 30 09:27:50 2009 From: ron at ...1740... (Ron) Date: Wed, 30 Dec 2009 09:27:50 +0100 Subject: [Gambas-user] gambasdoc issues Message-ID: <4B3B0F06.20800@...1740...> Ok. I know there wasn't a lot of documentation to begin with, but it's become even worse, the docs of gb.net.curl are gone. And they point to the wrong version too. http://www.gambasdoc.org/help/comp/gb.net.curl?v3 Gives empty 2.0 http://www.gambasdoc.org/help/comp/gb.net.curl?v2 Gives empty 3.0 Thats not funny! Regards, Ron. From Karl.Reinl at ...2345... Wed Dec 30 11:34:05 2009 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Wed, 30 Dec 2009 11:34:05 +0100 Subject: [Gambas-user] Gambas3 svn versions 2533-2541 won't install In-Reply-To: <4B3A77FE.3070706@...221...> References: <4B3A6311.2060405@...221...> <200912292144.39319.gambas@...1...> <4B3A77FE.3070706@...221...> Message-ID: <1262169245.6631.7.camel@...40...> Am Dienstag, den 29.12.2009, 22:43 +0100 schrieb Matti: > Thanks for all your quick answers. > > @ Laurent: > Will try to get libtool 2.x. > OpenSuSe doesn't have this version in the repos. > > @ Charlie: > Will try your scripts. > But it can't be done before 2010/01/8. > > @ Beno?t: > What do you mean by "checkout everything from scratch"? > I'm a newbie to all of that. > If you mean "delete the folder ... /gambas3/trunk" and start again with svn, > yes, I did. > > > > Beno?t Minisini schrieb: > >> on OpenSuSe 11.0 > >> kernel 2.6.25.20 > >> libtool 1.5.26 > >> > >> I tried some svn versions with ./reconf-all as user with the result: > >> Remember to add `AC_PROG_LIBTOOL' to `configure.ac'. > >> You should update your `aclocal.m4' by running aclocal. > >> autoreconf: Entering directory `.' > >> autoreconf: configure.ac: not using Gettext > >> ... > >> autom4te: cannot open autom4te.cache/requests: no rights > >> aclocal: autom4te failed with exit status: 1 > >> autoreconf: aclocal failed with exit status: 1 > >> > >> "no rights" even if I set the rights for the user. > >> > >> Next I tried ./reconf-all as root and got lots of messages like: > >> ... > >> gbc/Makefile.am:5: Libtool library used but `LIBTOOL' is undefined > >> gbc/Makefile.am:5: The usual way to define `LIBTOOL' is to add > >> `AC_PROG_LIBTOOL' gbc/Makefile.am:5: to `configure.ac' and run `aclocal' > >> and `autoconf' again. gbc/Makefile.am:5: If `AC_PROG_LIBTOOL' is in > >> `configure.ac', make sure gbc/Makefile.am:5: its definition is in > >> aclocal's search path. > >> gbx/Makefile.am:5: library used but `RANLIB' is undefined > >> gbx/Makefile.am:5: The usual way to define `RANLIB' is to add > >> `AC_PROG_RANLIB' gbx/Makefile.am:5: to `configure.ac' and run `autoconf' > >> again. > >> ... > >> finally: > >> autoreconf: automake failed with exit status: 1 > >> > >> What's wrong here? > >> A few months ago, I installed Gambas3 (where to find the version?) without > >> any problems. > >> > >> Thanks for any hints. > >> Matti > >> > > > > Did you try to checkout everything from scratch? Salut Matti, from scratch here means, "into a new Directory" without old 'things' left. My script asks you, and if you answer 'y'es the old dir is deleted, before starting the checkout . -- Amicalement Charlie From yongchiaowoei at ...626... Wed Dec 30 14:14:03 2009 From: yongchiaowoei at ...626... (cwyong1) Date: Wed, 30 Dec 2009 05:14:03 -0800 (PST) Subject: [Gambas-user] IsBlank, version 2.8, is this intended or is this a bug, WEIRD Message-ID: <26967348.post@...1379...> Hi I got me a login screen with two textbox, username and password PUBLIC SUB btnOK_Click() WITH txtUserName DEBUG IsBlank(txtUserName.TEXT) DEBUG IsBlank(txtPassword.TEXT) DEBUG txtPassword.TEXT IF IsBlank(.text) = FALSE THEN IF IsBlank(txtPassword.text) = FALSE THEN Module1.pvLoginStatus = TRUE ME.Close(TRUE) ELSE WITH txtPassword Message("Pls enter your password", "OK") .SelectAll .setFocus END WITH ENDIF ELSE Message("Pls enter a user name ", "OK") .SelectAll .SetFocus ENDIF END WITH END If i entered username and then click on the ok button, isblank will not treat password textbox as blank but if i at the pasword textbox purposely press the space bar then click the ok button then isblank will be true and lastly, my final test is after entering username then at the password textbox press the tab key, isblank check on password textbox will also returned false, How come need to purposely press the space bar at the pasword textbox in order for isblank to work ppl? -- View this message in context: http://old.nabble.com/IsBlank%2C-version-2.8%2C-is-this-intended-or-is-this-a-bug%2C-WEIRD-tp26967348p26967348.html Sent from the gambas-user mailing list archive at Nabble.com. From dosida at ...626... Wed Dec 30 16:40:18 2009 From: dosida at ...626... (Dimitris Anogiatis) Date: Wed, 30 Dec 2009 08:40:18 -0700 Subject: [Gambas-user] gambasdoc issues In-Reply-To: <4B3B0F06.20800@...1740...> References: <4B3B0F06.20800@...1740...> Message-ID: <82bffccf0912300740v4a5aeef7hf186385fc4eb821f@...627...> Ron, It works fine for me... could you provide some visual feedback so we can see what gambasdoc does on your browser? Regards, Merry Christmas (belated) and Happy New Year Dimitris On Wed, Dec 30, 2009 at 1:27 AM, Ron wrote: > > Ok. > > I know there wasn't a lot of documentation to begin with, but it's > become even worse, the docs of gb.net.curl are gone. > > And they point to the wrong version too. > > http://www.gambasdoc.org/help/comp/gb.net.curl?v3 > Gives empty 2.0 > > http://www.gambasdoc.org/help/comp/gb.net.curl?v2 > Gives empty 3.0 > > Thats not funny! > > Regards, > Ron. > > > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and > easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Wed Dec 30 16:43:22 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 30 Dec 2009 16:43:22 +0100 Subject: [Gambas-user] gambasdoc issues In-Reply-To: <82bffccf0912300740v4a5aeef7hf186385fc4eb821f@...627...> References: <4B3B0F06.20800@...1740...> <82bffccf0912300740v4a5aeef7hf186385fc4eb821f@...627...> Message-ID: <200912301643.23039.gambas@...1...> > Ron, > > It works fine for me... > > could you provide some visual feedback > so we can see what gambasdoc does on > your browser? > > Regards, Merry Christmas (belated) and Happy New Year > Dimitris > I fixed it by editing and saving the page again. No idea why the class list disappeared on some component pages... -- Beno?t Minisini From math.eber at ...221... Wed Dec 30 19:50:56 2009 From: math.eber at ...221... (Matti) Date: Wed, 30 Dec 2009 19:50:56 +0100 Subject: [Gambas-user] installation instructions for OpenSUSE Message-ID: <4B3BA110.1020905@...221...> Just saw the docs page http://gambasdoc.org/help/install/opensuse?view At least for OpenSUSE 11.0, these instructions are obsolet. I installed Gambas from the SUSE YaST package (think it was 2.14) before reading this and did some updates (right now 2.18). Everything works flawlessly. Matti From math.eber at ...221... Wed Dec 30 20:44:30 2009 From: math.eber at ...221... (Matti) Date: Wed, 30 Dec 2009 20:44:30 +0100 Subject: [Gambas-user] Where can I find the version number? Message-ID: <4B3BAD9E.2010004@...221...> Trying to find the version (build) number of my running installation of Gambas3. Thought this must be easy, but just can't find it. - Where do I have to look? - Wouldn't it be useful to give this information in "? - About" (instead of "2.99")? Matti From gambas at ...1... Wed Dec 30 20:52:57 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 30 Dec 2009 20:52:57 +0100 Subject: [Gambas-user] installation instructions for OpenSUSE In-Reply-To: <4B3BA110.1020905@...221...> References: <4B3BA110.1020905@...221...> Message-ID: <200912302052.57356.gambas@...1...> > Just saw the docs page > http://gambasdoc.org/help/install/opensuse?view > > At least for OpenSUSE 11.0, these instructions are obsolet. > I installed Gambas from the SUSE YaST package (think it was 2.14) before > reading this and did some updates (right now 2.18). Everything works > flawlessly. > > Matti > In the past, Gambas binary packages made by OpenSUSE were falsely build. Everything will work, except that binary packages made by the IDE won't work with them. I don't know if they are correct now, I guess not... -- Beno?t Minisini From gambas at ...1... Wed Dec 30 20:53:41 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 30 Dec 2009 20:53:41 +0100 Subject: [Gambas-user] Where can I find the version number? In-Reply-To: <4B3BAD9E.2010004@...221...> References: <4B3BAD9E.2010004@...221...> Message-ID: <200912302053.41314.gambas@...1...> > Trying to find the version (build) number of my running installation of > Gambas3. Thought this must be easy, but just can't find it. > - Where do I have to look? > - Wouldn't it be useful to give this information in "? - About" (instead of > "2.99")? > > Matti > Look at the first dialog you see when running the IDE. Or read what "svn update" prints if you run it inside your Gambas source tree. Regards, -- Beno?t Minisini From lordheavym at ...626... Wed Dec 30 20:54:48 2009 From: lordheavym at ...626... (Laurent Carlier) Date: Wed, 30 Dec 2009 20:54:48 +0100 Subject: [Gambas-user] Where can I find the version number? In-Reply-To: <4B3BAD9E.2010004@...221...> References: <4B3BAD9E.2010004@...221...> Message-ID: <200912302054.48597.lordheavym@...626...> Le mercredi 30 d?cembre 2009 20:44:30, Matti a ?crit : > Trying to find the version (build) number of my running installation of > Gambas3. Thought this must be easy, but just can't find it. > - Where do I have to look? > - Wouldn't it be useful to give this information in "? - About" (instead of > "2.99")? > > Matti > Try svn info in the root of your svn trunk ++ From gambas at ...1... Wed Dec 30 20:59:11 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 30 Dec 2009 20:59:11 +0100 Subject: [Gambas-user] IsBlank, version 2.8, is this intended or is this a bug, WEIRD In-Reply-To: <26967348.post@...1379...> References: <26967348.post@...1379...> Message-ID: <200912302059.11062.gambas@...1...> > Hi > I got me a login screen with two textbox, username and password > > PUBLIC SUB btnOK_Click() > > WITH txtUserName > DEBUG IsBlank(txtUserName.TEXT) > DEBUG IsBlank(txtPassword.TEXT) > DEBUG txtPassword.TEXT > IF IsBlank(.text) = FALSE THEN > IF IsBlank(txtPassword.text) = FALSE THEN > Module1.pvLoginStatus = TRUE > ME.Close(TRUE) > ELSE > WITH txtPassword > Message("Pls enter your password", "OK") > .SelectAll > .setFocus > END WITH > ENDIF > ELSE > Message("Pls enter a user name ", "OK") > .SelectAll > .SetFocus > ENDIF > END WITH > > END > > If i entered username and then click on the ok button, isblank will not > treat password textbox as blank but if i at the pasword textbox purposely > press the space bar then click the ok button then isblank will be true and > lastly, my final test is after entering username then at the password > textbox press the tab key, isblank check on password textbox will also > returned false, How come need to purposely press the space bar at the > pasword textbox in order for isblank to work ppl? > What you wrote is not really understable... Did you read the documentation of IsBlank() on the wiki? I'm not sure this is the function you need. Regards, -- Beno?t Minisini From jussi.lahtinen at ...626... Wed Dec 30 21:35:53 2009 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 30 Dec 2009 22:35:53 +0200 Subject: [Gambas-user] Not sure about what type of project to use, pls advise In-Reply-To: <4B3A3A26.4090007@...1000...> References: <26957051.post@...1379...> <4B3A3A26.4090007@...1000...> Message-ID: <384d3900912301235s2211ebe9gb722f2fe15ff5731@...627...> License issues... I have understand that GTK+ is free, Qt3 is free only for non-proprietary software, and Qt4 is free for proprietary software also. Jussi On Tue, Dec 29, 2009 at 19:19, Werner wrote: > On 30/12/09 01:01, cwyong1 wrote: >> Hi >> i am thinking of writing an financial system but am confused, should i go >> for Graphical Application of QT or GTK+ Graphical Application >> >> Thank >> > Surely you will find people advocating both sides. > My personal preference is Qt as it is more feature complete and congruent. > > Some other thoughts that crossed my mind (might be irrelevant): > > -- There seems to be a financial accounting system written in Gambas, > status unknown that might have useful bits > -- There was a discussion on this mailing list on how to represent > accounting numbers with Gambas. > > > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From ron at ...1740... Wed Dec 30 20:57:29 2009 From: ron at ...1740... (Ron) Date: Wed, 30 Dec 2009 21:57:29 +0200 Subject: [Gambas-user] Where can I find the version number? In-Reply-To: <200912302053.41314.gambas@...1...> References: <4B3BAD9E.2010004@...221...> <200912302053.41314.gambas@...1...> Message-ID: <68696c50912301157r2aca6d82mef08871a64690c50@...627...> 'svn info' shows current build without updating On Dec 30, 2009 8:54 PM, "Beno?t Minisini" wrote: > Trying to find the version (build) number of my running installation of > Gambas3. Thought this m... Look at the first dialog you see when running the IDE. Or read what "svn update" prints if you run it inside your Gambas source tree. Regards, -- Beno?t Minisini ------------------------------------------------------------------------------ This SF.Net email is... From math.eber at ...221... Wed Dec 30 22:11:21 2009 From: math.eber at ...221... (Matti) Date: Wed, 30 Dec 2009 22:11:21 +0100 Subject: [Gambas-user] installation instructions for OpenSUSE In-Reply-To: <200912302052.57356.gambas@...1...> References: <4B3BA110.1020905@...221...> <200912302052.57356.gambas@...1...> Message-ID: <4B3BC1F9.10605@...221...> ok, I would like to test that, bt that's beyond my competence... Beno?t Minisini schrieb: >> Just saw the docs page >> http://gambasdoc.org/help/install/opensuse?view >> >> At least for OpenSUSE 11.0, these instructions are obsolet. >> I installed Gambas from the SUSE YaST package (think it was 2.14) before >> reading this and did some updates (right now 2.18). Everything works >> flawlessly. >> >> Matti >> > > In the past, Gambas binary packages made by OpenSUSE were falsely build. > Everything will work, except that binary packages made by the IDE won't work > with them. > > I don't know if they are correct now, I guess not... > From math.eber at ...221... Wed Dec 30 22:16:37 2009 From: math.eber at ...221... (Matti) Date: Wed, 30 Dec 2009 22:16:37 +0100 Subject: [Gambas-user] Where can I find the version number? In-Reply-To: <200912302053.41314.gambas@...1...> References: <4B3BAD9E.2010004@...221...> <200912302053.41314.gambas@...1...> Message-ID: <4B3BC335.3020805@...221...> In the first dialog, I see only "2.99". Beno?t Minisini schrieb: >> Trying to find the version (build) number of my running installation of >> Gambas3. Thought this must be easy, but just can't find it. >> - Where do I have to look? >> - Wouldn't it be useful to give this information in "? - About" (instead of >> "2.99")? >> >> Matti >> > > Look at the first dialog you see when running the IDE. Or read what "svn > update" prints if you run it inside your Gambas source tree. > > Regards, > From math.eber at ...221... Wed Dec 30 22:24:45 2009 From: math.eber at ...221... (Matti) Date: Wed, 30 Dec 2009 22:24:45 +0100 Subject: [Gambas-user] Where can I find the version number? In-Reply-To: <200912302054.48597.lordheavym@...626...> References: <4B3BAD9E.2010004@...221...> <200912302054.48597.lordheavym@...626...> Message-ID: <4B3BC51D.1070602@...221...> But that's the version I would like to install (doesn't work). I'd like to know the installed version to use Charlie's script. Laurent Carlier schrieb: > Le mercredi 30 d?cembre 2009 20:44:30, Matti a ?crit : >> Trying to find the version (build) number of my running installation of >> Gambas3. Thought this must be easy, but just can't find it. >> - Where do I have to look? >> - Wouldn't it be useful to give this information in "? - About" (instead of >> "2.99")? >> >> Matti >> > > Try svn info in the root of your svn trunk > From Karl.Reinl at ...2345... Wed Dec 30 22:25:54 2009 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Wed, 30 Dec 2009 22:25:54 +0100 Subject: [Gambas-user] Where can I find the version number? In-Reply-To: <200912302054.48597.lordheavym@...626...> References: <4B3BAD9E.2010004@...221...> <200912302054.48597.lordheavym@...626...> Message-ID: <1262208354.6536.19.camel@...40...> Am Mittwoch, den 30.12.2009, 20:54 +0100 schrieb Laurent Carlier: > Le mercredi 30 d?cembre 2009 20:44:30, Matti a ?crit : > > Trying to find the version (build) number of my running installation of > > Gambas3. Thought this must be easy, but just can't find it. > > - Where do I have to look? > > - Wouldn't it be useful to give this information in "? - About" (instead of > > "2.99")? > > > > Matti > > > > Try svn info in the root of your svn trunk Salut, svn info is only TRUE for his version, if all what has to be done after 'svn update', had been successful (also). He is looking what rev. he had compiled successful. He has to go to /usr/local/bin and look for the file date/time of gambas3.gambas. Then going up to the svn repository, to find out what rev was new at this moment. Or looking in the svn-mailing list for that moment, to find out the rev. (Perhaps someone knows a better way) -- Amicalement Charlie From math.eber at ...221... Wed Dec 30 22:43:51 2009 From: math.eber at ...221... (Matti) Date: Wed, 30 Dec 2009 22:43:51 +0100 Subject: [Gambas-user] Where can I find the version number? In-Reply-To: <1262208354.6536.19.camel@...40...> References: <4B3BAD9E.2010004@...221...> <200912302054.48597.lordheavym@...626...> <1262208354.6536.19.camel@...40...> Message-ID: <4B3BC997.3090105@...221...> Yes, Charlie, that's it. I see the date/time of gambas3.gambas. But I don't know which version is running there. Isn't there an easier way? Charlie Reinl schrieb: > Am Mittwoch, den 30.12.2009, 20:54 +0100 schrieb Laurent Carlier: >> Le mercredi 30 d?cembre 2009 20:44:30, Matti a ?crit : >>> Trying to find the version (build) number of my running installation of >>> Gambas3. Thought this must be easy, but just can't find it. >>> - Where do I have to look? >>> - Wouldn't it be useful to give this information in "? - About" (instead of >>> "2.99")? >>> >>> Matti >>> >> Try svn info in the root of your svn trunk > > Salut, > > svn info is only TRUE for his version, if all what has to be done after > 'svn update', had been successful (also). > > He is looking what rev. he had compiled successful. > He has to go to /usr/local/bin and look for the file date/time of > gambas3.gambas. Then going up to the svn repository, to find out what > rev was new at this moment. Or looking in the svn-mailing list for that > moment, to find out the rev. (Perhaps someone knows a better way) From ron at ...1740... Wed Dec 30 22:56:44 2009 From: ron at ...1740... (Ron) Date: Wed, 30 Dec 2009 23:56:44 +0200 Subject: [Gambas-user] Where can I find the version number? In-Reply-To: <68696c50912301355w521818dfv423843c5c2fedb4@...627...> References: <4B3BAD9E.2010004@...221...> <200912302054.48597.lordheavym@...626...> <1262208354.6536.19.camel@...40...> <4B3BC997.3090105@...221...> <68696c50912301355w521818dfv423843c5c2fedb4@...627...> Message-ID: <68696c50912301356k7979ae47r2432fd8bb2902389@...627...> You can get the svn version of that day with the 'svn -d ' param if I'm correct. On Dec 30, 2009 10:44 PM, "Matti" wrote: Yes, Charlie, that's it. I see the date/time of gambas3.gambas. But I don't know which version is running there. Isn't there an easier way? Charlie Reinl schrieb: > Am Mittwoch, den 30.12.2009, 20:54 +0100 schrieb Laurent Carlier: >> Le mercredi 30 d?cembre 2009 ... ------------------------------------------------------------------------------ This SF.Net email is ... From gambas at ...1... Wed Dec 30 22:56:36 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 30 Dec 2009 22:56:36 +0100 Subject: [Gambas-user] Where can I find the version number? In-Reply-To: <4B3BC997.3090105@...221...> References: <4B3BAD9E.2010004@...221...> <1262208354.6536.19.camel@...40...> <4B3BC997.3090105@...221...> Message-ID: <200912302256.36551.gambas@...1...> > Yes, Charlie, that's it. > I see the date/time of gambas3.gambas. > But I don't know which version is running there. > Isn't there an easier way? > By doing gbx3 -h, you will get the date/time when the interpreter was compiled. Then you can look in the subversion commit mailing-list to guess which version it is. Why don't you update to the latest revision? -- Beno?t Minisini From Karl.Reinl at ...2345... Wed Dec 30 22:56:47 2009 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Wed, 30 Dec 2009 22:56:47 +0100 Subject: [Gambas-user] Where can I find the version number? In-Reply-To: <4B3BC51D.1070602@...221...> References: <4B3BAD9E.2010004@...221...> <200912302054.48597.lordheavym@...626...> <4B3BC51D.1070602@...221...> Message-ID: <1262210207.6536.36.camel@...40...> Am Mittwoch, den 30.12.2009, 22:24 +0100 schrieb Matti: > But that's the version I would like to install (doesn't work). > I'd like to know the installed version to use Charlie's script. > > Laurent Carlier schrieb: > > Le mercredi 30 d?cembre 2009 20:44:30, Matti a ?crit : > >> Trying to find the version (build) number of my running installation of > >> Gambas3. Thought this must be easy, but just can't find it. > >> - Where do I have to look? > >> - Wouldn't it be useful to give this information in "? - About" (instead of > >> "2.99")? > >> > >> Matti > >> > > > > Try svn info in the root of your svn trunk > > Hi Matti, first , I'v to say, you should have a working version of gambas3 and the IDE for gambas3. Isn't it? So why you continue to compile newer version, knowing they fail!? If you need to find the last version which compiles with your system, do the following : I suppose you have DSL, so .. by using my script. Go back - 10, till it compiles. Compile always from scratch (answer 'Y') ! As it fails as reconf-all so it is not a big lose of time. If you want closer, add one or two rev versions (forward/backward). -- Amicalement Charlie From gambas at ...1... Wed Dec 30 23:15:20 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 30 Dec 2009 23:15:20 +0100 Subject: [Gambas-user] Where can I find the version number? In-Reply-To: <200912302256.36551.gambas@...1...> References: <4B3BAD9E.2010004@...221...> <4B3BC997.3090105@...221...> <200912302256.36551.gambas@...1...> Message-ID: <200912302315.20431.gambas@...1...> > > Yes, Charlie, that's it. > > I see the date/time of gambas3.gambas. > > But I don't know which version is running there. > > Isn't there an easier way? > > By doing gbx3 -h, you will get the date/time when the interpreter was > compiled. Then you can look in the subversion commit mailing-list to guess > which version it is. > > Why don't you update to the latest revision? > Oops. Yes, you told that the latest cannot be configured... -- Beno?t Minisini From gambas at ...1... Wed Dec 30 23:28:30 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 30 Dec 2009 23:28:30 +0100 Subject: [Gambas-user] Anti-aliasing painting Message-ID: <200912302328.30842.gambas@...1...> Here is some news from the latest developments in Gambas 3... There is now a new class, "Paint", that acts like the "Draw" class, but draws things with anti-aliasing. The Paint interface is different from the Draw interface. It is very inspired from the Cairo library interface (with some diabolical variations of course). There is a new example, named "Painting", that will shows you what can be done with this new class. Both gb.qt4 and gb.gtk implement the Paint interface. At the moment, Paint can draw on Picture, DrawingArea, and Image (this is new). In the future, Paint will draw on Printer (gb.gtk will have print support!), and will generate SVG, Postscript and Pdf documents, in both components! Laurent Carlier has added shader support to the OpenGL components, but I can't tell more, I have very few knowledge about that... Maybe he will give us more explanations. :-) You can see that as sort of Mithra / Christmas / Hanouka / A?d / (insert your prefered religious or non-religious day there) present. Enjoy all that, and please report any bug or strangeness as usual. -- Beno?t Minisini From nospam.nospam.nospam at ...626... Thu Dec 31 00:10:48 2009 From: nospam.nospam.nospam at ...626... (Kadaitcha Man) Date: Thu, 31 Dec 2009 10:10:48 +1100 Subject: [Gambas-user] Not sure about what type of project to use, pls advise In-Reply-To: <384d3900912301235s2211ebe9gb722f2fe15ff5731@...627...> References: <26957051.post@...1379...> <4B3A3A26.4090007@...1000...> <384d3900912301235s2211ebe9gb722f2fe15ff5731@...627...> Message-ID: 2009/12/31 Jussi Lahtinen : > License issues... > I have understand that GTK+ is free, Qt3 is free only for > non-proprietary software, > and Qt4 is free for proprietary software also. If those are issues that anyone need consider then how can the likes of ATI and nVidia create control panels for their proprietary drivers? From nospam.nospam.nospam at ...626... Thu Dec 31 00:18:39 2009 From: nospam.nospam.nospam at ...626... (Kadaitcha Man) Date: Thu, 31 Dec 2009 10:18:39 +1100 Subject: [Gambas-user] Where can I find the version number? In-Reply-To: <200912302053.41314.gambas@...1...> References: <4B3BAD9E.2010004@...221...> <200912302053.41314.gambas@...1...> Message-ID: 2009/12/31 Beno?t Minisini : > Look at the first dialog you see when running the IDE. Gambas 3 doesn't display a build number on the opening dialog. Having some easy way of seeing the build number without having to resort to querying svn would be very helpful for a lot of people. From nospam.nospam.nospam at ...626... Thu Dec 31 00:19:57 2009 From: nospam.nospam.nospam at ...626... (Kadaitcha Man) Date: Thu, 31 Dec 2009 10:19:57 +1100 Subject: [Gambas-user] Anti-aliasing painting In-Reply-To: <200912302328.30842.gambas@...1...> References: <200912302328.30842.gambas@...1...> Message-ID: 2009/12/31 Beno?t Minisini : > In the future, Paint will draw on Printer (gb.gtk will have print support!), > and will generate SVG, Postscript and Pdf documents, in both components! Nice. From lordheavym at ...626... Thu Dec 31 00:36:57 2009 From: lordheavym at ...626... (Laurent Carlier) Date: Thu, 31 Dec 2009 00:36:57 +0100 Subject: [Gambas-user] Using GLSL in gambas3 Message-ID: <200912310036.57217.lordheavym@...626...> To follow the small announcement from benoit, let me present my work on gb.opengl component. A new subset of the gb.opengl component is now in the svn: gb.opengl.glsl. As the name let you suggest, the purpose of this component is to let use the power of shaders inside your opengl projects (if your card can support them of course). There is still missing features but simple shaders can be run (see attached project). A new dependency is needed for component gb.qt.opengl, gb.qt4.opengl and gb.sdl: glew library (see http://glew.sourceforge.net/). Internaly, this library will ease the management of openGL extensions. gb.sdl component will use this library (some rewrite is needed but not a lot of). Documentation is on the way (damn i hate writing docs!) :-p see http://gambasdoc.org/help/comp/gb.opengl.glsl/gl?v3 Have fun ! -------------- next part -------------- A non-text attachment was scrubbed... Name: glsltst-0.0.1.tar.gz Type: application/x-compressed-tar Size: 9024 bytes Desc: not available URL: From wdahn at ...1000... Thu Dec 31 06:50:45 2009 From: wdahn at ...1000... (Werner) Date: Thu, 31 Dec 2009 13:50:45 +0800 Subject: [Gambas-user] Using GLSL in gambas3 In-Reply-To: <200912310036.57217.lordheavym@...626...> References: <200912310036.57217.lordheavym@...626...> Message-ID: <4B3C3BB5.4040309@...1000...> On 31/12/09 07:36, Laurent Carlier wrote: > To follow the small announcement from benoit, let me present my work on > gb.opengl component. > > A new subset of the gb.opengl component is now in the svn: gb.opengl.glsl. > > As the name let you suggest, the purpose of this component is to let use the > power of shaders inside your opengl projects (if your card can support them of > course). There is still missing features but simple shaders can be run (see > attached project). > > A new dependency is needed for component gb.qt.opengl, gb.qt4.opengl and > gb.sdl: glew library (see http://glew.sourceforge.net/). Internaly, this > library will ease the management of openGL extensions. gb.sdl component will > use this library (some rewrite is needed but not a lot of). > > Documentation is on the way (damn i hate writing docs!) :-p see > http://gambasdoc.org/help/comp/gb.opengl.glsl/gl?v3 > > Have fun ! > That's very good news for me. I'm in the process of learning openGL with the help of the openGL SuperBible. Thank you very much and a Happy New Year Werner From ron at ...1740... Thu Dec 31 11:43:28 2009 From: ron at ...1740... (Ron) Date: Thu, 31 Dec 2009 11:43:28 +0100 Subject: [Gambas-user] Gambas scripter Message-ID: <4B3C8050.6030705@...1740...> Some first experiences building scripts using gbs2 Is it possible to display the errors at end of the output? If you execute a large script from shell and have a compile error you keep on scrolling up to see the error. Or even better when there is an error on a line, display the script source until that line number with the error below it. Maybe this is difficult because of the way scripting works. And/or display line numbers in front of source code lines. Another thing, there is no way to get the file name of the script from within the code. Application.Args[0] = /tmp/gambas.1000/script-cache/75ee02d930493c0fdc45e92c5b297df5 Application.Name = 6dc71006365626c9524efb11972ce2af Script name in this case was 'callerid.script' Gambas 2.18.0 Regards, Ron_2nd. From ron at ...1740... Thu Dec 31 12:01:35 2009 From: ron at ...1740... (Ron) Date: Thu, 31 Dec 2009 12:01:35 +0100 Subject: [Gambas-user] Gambas scripter In-Reply-To: <4B3C8050.6030705@...1740...> References: <4B3C8050.6030705@...1740...> Message-ID: <4B3C848F.4090501@...1740...> Ron wrote: > > Some first experiences building scripts using gbs2 > > Is it possible to display the errors at end of the output? > If you execute a large script from shell and have a compile error you > keep on scrolling up to see the error. > > Or even better when there is an error on a line, display the script > source until that line number with the error below it. > Maybe this is difficult because of the way scripting works. And/or > display line numbers in front of source code lines. > > Another thing, there is no way to get the file name of the script from > within the code. > > Application.Args[0] = > /tmp/gambas.1000/script-cache/75ee02d930493c0fdc45e92c5b297df5 > > Application.Name = 6dc71006365626c9524efb11972ce2af > > Script name in this case was 'callerid.script' > Application.Path is also pointing to the cache/tmp directory instead of the real location of the script. Application.Path = /tmp/gambas.1000/script-cache I begin to see now, why I couldn't use it that easily last time. If you have to start using things like 'EXEC [ "pwd" ] TO sPwd' to get the current dir it doesn't make sense to use a Gambas script. Regards, Ron_2nd. From ron at ...1740... Thu Dec 31 13:00:16 2009 From: ron at ...1740... (Ron) Date: Thu, 31 Dec 2009 13:00:16 +0100 Subject: [Gambas-user] Gambas scripter In-Reply-To: <4B3C848F.4090501@...1740...> References: <4B3C8050.6030705@...1740...> <4B3C848F.4090501@...1740...> Message-ID: <4B3C9250.1050008@...1740...> Ron wrote: > Ron wrote: >> >> Some first experiences building scripts using gbs2 >> >> Is it possible to display the errors at end of the output? >> If you execute a large script from shell and have a compile error you >> keep on scrolling up to see the error. >> >> Or even better when there is an error on a line, display the script >> source until that line number with the error below it. >> Maybe this is difficult because of the way scripting works. And/or >> display line numbers in front of source code lines. >> >> Another thing, there is no way to get the file name of the script >> from within the code. >> >> Application.Args[0] = >> /tmp/gambas.1000/script-cache/75ee02d930493c0fdc45e92c5b297df5 >> >> Application.Name = 6dc71006365626c9524efb11972ce2af >> >> Script name in this case was 'callerid.script' >> > > Application.Path is also pointing to the cache/tmp directory instead > of the real location of the script. > Application.Path = /tmp/gambas.1000/script-cache > > I begin to see now, why I couldn't use it that easily last time. > > If you have to start using things like 'EXEC [ "pwd" ] TO sPwd' to get > the current dir it doesn't make sense to use a Gambas script. > > If you have this script: ---------------- #! /usr/bin/env gbs2 PUBLIC SUB Main() END ' a comment ---------------- You get: ---------------- /tmp/gambas.1000/12566/project.tmp/MMain.module:13: 'Main' already declared ' Gambas module file PUBLIC SUB Main() END PUBLIC SUB Main() ' a comment END ---------------- This is ok: #! /usr/bin/env gbs2 PUBLIC SUB Main() ' comment END ---------------- ie comments at the end of a script/outside SUBs are making the compiler crazy, and me too until I found out what the problem was. ;-p Gambas 2.18.0 Regards, Ron_2nd. From ron at ...1740... Thu Dec 31 14:11:42 2009 From: ron at ...1740... (Ron) Date: Thu, 31 Dec 2009 14:11:42 +0100 Subject: [Gambas-user] Gambas scripter In-Reply-To: <4B3C9250.1050008@...1740...> References: <4B3C8050.6030705@...1740...> <4B3C848F.4090501@...1740...> <4B3C9250.1050008@...1740...> Message-ID: <4B3CA30E.2040809@...1740...> Ron wrote: > Ron wrote: >> Ron wrote: >>> >>> Some first experiences building scripts using gbs2 >>> >>> Is it possible to display the errors at end of the output? >>> If you execute a large script from shell and have a compile error >>> you keep on scrolling up to see the error. >>> >>> Or even better when there is an error on a line, display the script >>> source until that line number with the error below it. >>> Maybe this is difficult because of the way scripting works. And/or >>> display line numbers in front of source code lines. >>> >>> Another thing, there is no way to get the file name of the script >>> from within the code. >>> >>> Application.Args[0] = >>> /tmp/gambas.1000/script-cache/75ee02d930493c0fdc45e92c5b297df5 >>> >>> Application.Name = 6dc71006365626c9524efb11972ce2af >>> >>> Script name in this case was 'callerid.script' >>> >> >> Application.Path is also pointing to the cache/tmp directory instead >> of the real location of the script. >> Application.Path = /tmp/gambas.1000/script-cache >> >> I begin to see now, why I couldn't use it that easily last time. >> >> If you have to start using things like 'EXEC [ "pwd" ] TO sPwd' to >> get the current dir it doesn't make sense to use a Gambas script. >> >> > > If you have this script: > ---------------- > #! /usr/bin/env gbs2 > > PUBLIC SUB Main() > > END > > ' a comment > ---------------- > > You get: > ---------------- > /tmp/gambas.1000/12566/project.tmp/MMain.module:13: 'Main' already > declared > > ' Gambas module file > > > PUBLIC SUB Main() > > END > > PUBLIC SUB Main() > > ' a comment > > END > ---------------- > > This is ok: > > #! /usr/bin/env gbs2 > > > PUBLIC SUB Main() > > ' comment > > END > ---------------- > ie comments at the end of a script/outside SUBs are making the > compiler crazy, and me too until I found out what the problem was. ;-p > If you set Application.Return to a value, the script doesn't return it to the shell (it always returns 0) Regards, Ron_2nd. From nospam.nospam.nospam at ...626... Thu Dec 31 14:16:47 2009 From: nospam.nospam.nospam at ...626... (Kadaitcha Man) Date: Fri, 1 Jan 2010 00:16:47 +1100 Subject: [Gambas-user] Gambas scripter In-Reply-To: <4B3CA30E.2040809@...1740...> References: <4B3C8050.6030705@...1740...> <4B3C848F.4090501@...1740...> <4B3C9250.1050008@...1740...> <4B3CA30E.2040809@...1740...> Message-ID: 2010/1/1 Ron : > Ron wrote: >> Ron wrote: >>> Ron wrote: > If you You seem to be talking to yourself, Ron. Are you ok? From gambas at ...1... Thu Dec 31 14:25:57 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 31 Dec 2009 14:25:57 +0100 Subject: [Gambas-user] Gambas scripter In-Reply-To: <4B3C8050.6030705@...1740...> References: <4B3C8050.6030705@...1740...> Message-ID: <200912311425.57583.gambas@...1...> > Some first experiences building scripts using gbs2 > > Is it possible to display the errors at end of the output? > If you execute a large script from shell and have a compile error you > keep on scrolling up to see the error. > > Or even better when there is an error on a line, display the script > source until that line number with the error below it. > Maybe this is difficult because of the way scripting works. And/or > display line numbers in front of source code lines. The scripter is very hacky: welcome to you, tester! :-) You can run gbs2 by hand on your script with the "-v" option to get a bit more information on what is done. "gbs2 --help" to get all the options. > > Another thing, there is no way to get the file name of the script from > within the code. > > Application.Args[0] = > /tmp/gambas.1000/script-cache/75ee02d930493c0fdc45e92c5b297df5 > > Application.Name = 6dc71006365626c9524efb11972ce2af > > Script name in this case was 'callerid.script' > Yes, this is a problem I don't know how to solve yet. Maybe by making Application.Args writable, and changing Application.Args[0] at script startup. Alas I can only do that in Gambas 3. Regards, -- Beno?t Minisini From gambas at ...1... Thu Dec 31 14:31:25 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 31 Dec 2009 14:31:25 +0100 Subject: [Gambas-user] Gambas scripter In-Reply-To: <4B3C848F.4090501@...1740...> References: <4B3C8050.6030705@...1740...> <4B3C848F.4090501@...1740...> Message-ID: <200912311431.26001.gambas@...1...> > Ron wrote: > > Some first experiences building scripts using gbs2 > > > > Is it possible to display the errors at end of the output? > > If you execute a large script from shell and have a compile error you > > keep on scrolling up to see the error. > > > > Or even better when there is an error on a line, display the script > > source until that line number with the error below it. > > Maybe this is difficult because of the way scripting works. And/or > > display line numbers in front of source code lines. > > > > Another thing, there is no way to get the file name of the script from > > within the code. > > > > Application.Args[0] = > > /tmp/gambas.1000/script-cache/75ee02d930493c0fdc45e92c5b297df5 > > > > Application.Name = 6dc71006365626c9524efb11972ce2af > > > > Script name in this case was 'callerid.script' > > Application.Path is also pointing to the cache/tmp directory instead of > the real location of the script. > Application.Path = /tmp/gambas.1000/script-cache Yes, this is logical but annoying. I have no workaround at the moment yet. > > I begin to see now, why I couldn't use it that easily last time. > > If you have to start using things like 'EXEC [ "pwd" ] TO sPwd' to get > the current dir it doesn't make sense to use a Gambas script. > There is no current directory in Gambas! -- Beno?t Minisini From gambas at ...1... Thu Dec 31 14:32:13 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 31 Dec 2009 14:32:13 +0100 Subject: [Gambas-user] Gambas scripter In-Reply-To: <4B3CA30E.2040809@...1740...> References: <4B3C8050.6030705@...1740...> <4B3C9250.1050008@...1740...> <4B3CA30E.2040809@...1740...> Message-ID: <200912311432.13101.gambas@...1...> > > If you set Application.Return to a value, the script doesn't return it > to the shell (it always returns 0) > > Regards, > Ron_2nd. > I think I can do something for that: look at the revision #2577, it should be fixed. Regards, -- Beno?t Minisini From gambas at ...1... Thu Dec 31 14:33:08 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 31 Dec 2009 14:33:08 +0100 Subject: [Gambas-user] Using GLSL in gambas3 In-Reply-To: <200912310036.57217.lordheavym@...626...> References: <200912310036.57217.lordheavym@...626...> Message-ID: <200912311433.08974.gambas@...1...> > To follow the small announcement from benoit, let me present my work on > gb.opengl component. > > A new subset of the gb.opengl component is now in the svn: gb.opengl.glsl. > > As the name let you suggest, the purpose of this component is to let use > the power of shaders inside your opengl projects (if your card can support > them of course). There is still missing features but simple shaders can be > run (see attached project). > > A new dependency is needed for component gb.qt.opengl, gb.qt4.opengl and > gb.sdl: glew library (see http://glew.sourceforge.net/). Internaly, this > library will ease the management of openGL extensions. gb.sdl component > will use this library (some rewrite is needed but not a lot of). > > Documentation is on the way (damn i hate writing docs!) :-p see > http://gambasdoc.org/help/comp/gb.opengl.glsl/gl?v3 > > Have fun ! > It would be cool if you can make a real and fun and cool example with shaders! -- Beno?t Minisini From ron at ...1740... Thu Dec 31 14:56:24 2009 From: ron at ...1740... (Ron) Date: Thu, 31 Dec 2009 14:56:24 +0100 Subject: [Gambas-user] Gambas scripter In-Reply-To: <200912311431.26001.gambas@...1...> References: <4B3C8050.6030705@...1740...> <4B3C848F.4090501@...1740...> <200912311431.26001.gambas@...1...> Message-ID: <4B3CAD88.70903@...1740...> Beno?t Minisini wrote: >> Ron wrote: >> >>> Some first experiences building scripts using gbs2 >>> >>> Is it possible to display the errors at end of the output? >>> If you execute a large script from shell and have a compile error you >>> keep on scrolling up to see the error. >>> >>> Or even better when there is an error on a line, display the script >>> source until that line number with the error below it. >>> Maybe this is difficult because of the way scripting works. And/or >>> display line numbers in front of source code lines. >>> >>> Another thing, there is no way to get the file name of the script from >>> within the code. >>> >>> Application.Args[0] = >>> /tmp/gambas.1000/script-cache/75ee02d930493c0fdc45e92c5b297df5 >>> >>> Application.Name = 6dc71006365626c9524efb11972ce2af >>> >>> Script name in this case was 'callerid.script' >>> >> Application.Path is also pointing to the cache/tmp directory instead of >> the real location of the script. >> Application.Path = /tmp/gambas.1000/script-cache >> > > Yes, this is logical but annoying. I have no workaround at the moment yet. > > >> I begin to see now, why I couldn't use it that easily last time. >> >> If you have to start using things like 'EXEC [ "pwd" ] TO sPwd' to get >> the current dir it doesn't make sense to use a Gambas script. >> >> > > There is no current directory in Gambas! > > Are you sure? By currentdir I mean the directory you started the Gambas app from. This works in a Gambas Command Line or GUI app. ' Gambas module file PUBLIC SUB Main() PRINT Application.Path END returns /home/ron/desktop, if the executable was saved and started from desktop. /tmp if started from /tmp But doesn't work in a script like you said above. The EXEC pwd works in a script, return the correct path, but is a bit silly. Regards, Ron_2nd. From lordheavym at ...626... Thu Dec 31 14:58:13 2009 From: lordheavym at ...626... (Laurent Carlier) Date: Thu, 31 Dec 2009 14:58:13 +0100 Subject: [Gambas-user] Using GLSL in gambas3 In-Reply-To: <200912311433.08974.gambas@...1...> References: <200912310036.57217.lordheavym@...626...> <200912311433.08974.gambas@...1...> Message-ID: <200912311458.13760.lordheavym@...626...> Le jeudi 31 d?cembre 2009 14:33:08, Beno?t Minisini a ?crit : > > It would be cool if you can make a real and fun and cool example with > shaders! > Yes i know it would be cool :-) First step is to finish the component (or at least more complete) to provide a coolest example. The project provide was only to say "Hay, it work !", some kind of "hello world" From nospam.nospam.nospam at ...626... Thu Dec 31 15:10:20 2009 From: nospam.nospam.nospam at ...626... (Kadaitcha Man) Date: Fri, 1 Jan 2010 01:10:20 +1100 Subject: [Gambas-user] Gambas scripter In-Reply-To: <200912311425.57583.gambas@...1...> References: <4B3C8050.6030705@...1740...> <200912311425.57583.gambas@...1...> Message-ID: 2010/1/1 Beno?t Minisini : > The scripter is very hacky: welcome to you, tester! :-) lol From gambas at ...1... Thu Dec 31 15:28:54 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 31 Dec 2009 15:28:54 +0100 Subject: [Gambas-user] Gambas scripter In-Reply-To: <4B3C9250.1050008@...1740...> References: <4B3C8050.6030705@...1740...> <4B3C848F.4090501@...1740...> <4B3C9250.1050008@...1740...> Message-ID: <200912311528.54896.gambas@...1...> > Ron wrote: > > Ron wrote: > >> Some first experiences building scripts using gbs2 > >> > >> Is it possible to display the errors at end of the output? > >> If you execute a large script from shell and have a compile error you > >> keep on scrolling up to see the error. > >> > >> Or even better when there is an error on a line, display the script > >> source until that line number with the error below it. > >> Maybe this is difficult because of the way scripting works. And/or > >> display line numbers in front of source code lines. > >> > >> Another thing, there is no way to get the file name of the script > >> from within the code. > >> > >> Application.Args[0] = > >> /tmp/gambas.1000/script-cache/75ee02d930493c0fdc45e92c5b297df5 > >> > >> Application.Name = 6dc71006365626c9524efb11972ce2af > >> > >> Script name in this case was 'callerid.script' > > > > Application.Path is also pointing to the cache/tmp directory instead > > of the real location of the script. > > Application.Path = /tmp/gambas.1000/script-cache > > > > I begin to see now, why I couldn't use it that easily last time. > > > > If you have to start using things like 'EXEC [ "pwd" ] TO sPwd' to get > > the current dir it doesn't make sense to use a Gambas script. > > If you have this script: > ---------------- > #! /usr/bin/env gbs2 > > PUBLIC SUB Main() > > END > > ' a comment > ---------------- > > You get: > ---------------- > /tmp/gambas.1000/12566/project.tmp/MMain.module:13: 'Main' already declared > > ' Gambas module file > > > PUBLIC SUB Main() > > END > > PUBLIC SUB Main() > > ' a comment > > END > ---------------- > > This is ok: > > #! /usr/bin/env gbs2 > > > PUBLIC SUB Main() > > ' comment > > END > ---------------- > ie comments at the end of a script/outside SUBs are making the compiler > crazy, and me too until I found out what the problem was. ;-p > > Gambas 2.18.0 > > Regards, > Ron_2nd. > That bug should be fixed in revision #2578. Regards, -- Beno?t Minisini From gambas.fr at ...626... Thu Dec 31 16:11:45 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 31 Dec 2009 16:11:45 +0100 Subject: [Gambas-user] Gambas scripter In-Reply-To: <4B3CAD88.70903@...1740...> References: <4B3C8050.6030705@...1740...> <4B3C848F.4090501@...1740...> <200912311431.26001.gambas@...1...> <4B3CAD88.70903@...1740...> Message-ID: <6324a42a0912310711p733371d0nad5475052a486133@...627...> 2009/12/31 Ron : > Beno?t Minisini wrote: >>> Ron wrote: >>> >>>> Some first experiences building scripts using gbs2 >>>> >>>> Is it possible to display the errors at end of the output? >>>> If you execute a large script from shell and have a compile error you >>>> keep on scrolling up to see the error. >>>> >>>> Or even better when there is an error on a line, display the script >>>> source until that line number with the error below it. >>>> Maybe this is difficult because of the way scripting works. And/or >>>> display line numbers in front of source code lines. >>>> >>>> Another thing, there is no way to get the file name of the script from >>>> within the code. >>>> >>>> Application.Args[0] = >>>> /tmp/gambas.1000/script-cache/75ee02d930493c0fdc45e92c5b297df5 >>>> >>>> Application.Name = ?6dc71006365626c9524efb11972ce2af >>>> >>>> Script name in this case was 'callerid.script' >>>> >>> Application.Path is also pointing to the cache/tmp directory instead of >>> the real location of the script. >>> Application.Path = /tmp/gambas.1000/script-cache >>> >> >> Yes, this is logical but annoying. I have no workaround at the moment yet. >> >> >>> I begin to see now, why I couldn't use it that easily last time. >>> >>> If you have to start using things like 'EXEC [ "pwd" ] TO sPwd' to get >>> the current dir it doesn't make sense to use a Gambas script. >>> >>> >> >> There is no current directory in Gambas! >> >> > Are you sure? > > By currentdir I mean the directory you started the Gambas app from. > > This works in a Gambas Command Line or GUI app. > > ' Gambas module file > > PUBLIC SUB Main() > > ?PRINT Application.Path > > END > > returns /home/ron/desktop, if the executable was saved and started from > desktop. /tmp if started from /tmp > > But doesn't work in a script like you said above. > > The EXEC pwd works in a script, return the correct path, but is a bit silly. > > Regards, > Ron_2nd. > Try with Application.Dir From gambas.fr at ...626... Thu Dec 31 16:14:48 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 31 Dec 2009 16:14:48 +0100 Subject: [Gambas-user] Using GLSL in gambas3 In-Reply-To: <200912311458.13760.lordheavym@...626...> References: <200912310036.57217.lordheavym@...626...> <200912311433.08974.gambas@...1...> <200912311458.13760.lordheavym@...626...> Message-ID: <6324a42a0912310714n27f6fc73iaf94c70e0d5c7af8@...627...> The more coolest thing will be to have a project that show some nehe exemples.. like the painting one. 2009/12/31 Laurent Carlier : > Le jeudi 31 d?cembre 2009 14:33:08, Beno?t Minisini a ?crit : >> >> It would be cool if you can make a real and fun and cool example with >> ?shaders! >> > > Yes i know it would be cool :-) First step is to finish the component (or at > least more complete) to provide a coolest example. > > The project provide was only to say "Hay, it work !", some kind of "hello > world" > > > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Thu Dec 31 16:20:59 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 31 Dec 2009 16:20:59 +0100 Subject: [Gambas-user] Using GLSL in gambas3 In-Reply-To: <6324a42a0912310714n27f6fc73iaf94c70e0d5c7af8@...627...> References: <200912310036.57217.lordheavym@...626...> <200912311458.13760.lordheavym@...626...> <6324a42a0912310714n27f6fc73iaf94c70e0d5c7af8@...627...> Message-ID: <200912311620.59745.gambas@...1...> > The more coolest thing will be to have a project that show some nehe > exemples.. > > like the painting one. > nehe ? eunehe ?? -- Beno?t Minisini From lordheavym at ...626... Thu Dec 31 16:29:05 2009 From: lordheavym at ...626... (Laurent Carlier) Date: Thu, 31 Dec 2009 16:29:05 +0100 Subject: [Gambas-user] Using GLSL in gambas3 In-Reply-To: <200912311620.59745.gambas@...1...> References: <200912310036.57217.lordheavym@...626...> <6324a42a0912310714n27f6fc73iaf94c70e0d5c7af8@...627...> <200912311620.59745.gambas@...1...> Message-ID: <200912311629.05461.lordheavym@...626...> Le jeudi 31 d?cembre 2009 16:20:59, Beno?t Minisini a ?crit : > > The more coolest thing will be to have a project that show some nehe > > exemples.. > > > > like the painting one. > > nehe ? eunehe ?? > :-) http://nehe.gamedev.net/ From yongchiaowoei at ...626... Thu Dec 31 17:12:40 2009 From: yongchiaowoei at ...626... (cwyong1) Date: Thu, 31 Dec 2009 08:12:40 -0800 (PST) Subject: [Gambas-user] Should i upgrade to gambas3 Message-ID: <26979805.post@...1379...> Hi. I m using ubuntu 9.04 and gambas 2.8 and i got this problems, pls help 1. There will be a run error if i select a shortcut for menu item, the error read "The program has stopped unexpectedly by raising signal #11" and no error once i removed the shortcut 2. My window will also show the Minimised button even though i set the Border and the Minimised properties to False 3. If i want to checked whether a textbox is empty, i currently have to used this method ( IF trim(txtUserName.text) <> "" then .... ) instead of what was documented, which is thru using the IsBlank ( i did test this out but found out that it will only report a textbox as empty or blank providing the user press the space bar once ) and also the proposed method of directly checking if a string is empty from the tip window is also not working Pls advise, Thank you -- View this message in context: http://old.nabble.com/Should-i-upgrade-to-gambas3-tp26979805p26979805.html Sent from the gambas-user mailing list archive at Nabble.com. From yongchiaowoei at ...626... Thu Dec 31 17:45:05 2009 From: yongchiaowoei at ...626... (cwyong1) Date: Thu, 31 Dec 2009 08:45:05 -0800 (PST) Subject: [Gambas-user] Is Gambas2.8 stable? Message-ID: <26980099.post@...1379...> HI. I got me a Frame object in my form and i got this in my code PUBLIC SUB Form_Open() WITH ME .maximized = TRUE .Frame1.visible = false END WITH END When i run it, error "Unknown symbol 'Frame1' in clase 'FMain' How come ppls? -- View this message in context: http://old.nabble.com/Is-Gambas2.8-stable--tp26980099p26980099.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Thu Dec 31 17:45:36 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 31 Dec 2009 17:45:36 +0100 Subject: [Gambas-user] Should i upgrade to gambas3 In-Reply-To: <26979805.post@...1379...> References: <26979805.post@...1379...> Message-ID: <200912311745.37028.gambas@...1...> > Hi. > I m using ubuntu 9.04 and gambas 2.8 and i got this problems, pls help > > 1. There will be a run error if i select a shortcut for menu item, the > error read "The program has stopped unexpectedly by raising signal #11" > and no error once i removed the shortcut Do you use gb.gtk or gb.qt? Can you provide your project? I guess the bug has been fixed since, but Ubuntu is apparently unable to provide a Gambas package older than the 2.8 version released sixteen months ago! > > 2. My window will also show the Minimised button even though i set the > Border and the Minimised properties to False > Setting the Minimized property to False just tell the window to not be minimized. Anyway, you have the same problem as "Kadaitcha Man": the minimize button cannot be removed. And you cannot set the Border property to "False". The Border property in Gambas 2 can take three different values: Border.None, Border.Fixed and Border.Resizable. If you set the Border property to Border.None, the window will not be managed by the window manager, and so will have no border. > 3. If i want to checked whether a textbox is empty, i currently have to > used this method ( IF trim(txtUserName.text) <> "" then .... ) instead of > what was documented, which is thru using the IsBlank Where did you see that? Did you read the documentation of the IsBlank() function? << IF Trim(txtUserName.Text) <> "" THEN >> is the right way of checking if a string is not empty. A faster way is writing << IF Trim(txtUserName.Text) THEN >>. Regards, -- Beno?t Minisini From wdahn at ...1000... Thu Dec 31 17:47:10 2009 From: wdahn at ...1000... (Werner) Date: Fri, 01 Jan 2010 00:47:10 +0800 Subject: [Gambas-user] Should i upgrade to gambas3 In-Reply-To: <26979805.post@...1379...> References: <26979805.post@...1379...> Message-ID: <4B3CD58E.4060006@...1000...> On 01/01/10 00:12, cwyong1 wrote: > Hi. > I m using ubuntu 9.04 and gambas 2.8 and i got this problems, pls help > > 1. There will be a run error if i select a shortcut for menu item, the error > read "The program has stopped unexpectedly by raising signal #11" and no > error once i removed the shortcut > > 2. My window will also show the Minimised button even though i set the > Border and the Minimised properties to False > > 3. If i want to checked whether a textbox is empty, i currently have to used > this method ( IF trim(txtUserName.text) <> "" then .... ) instead of what > was documented, which is thru using the IsBlank ( i did test this out but > found out that it will only report a textbox as empty or blank providing the > user press the space bar once ) and also the proposed method of directly > checking if a string is empty from the tip window is also not working > > Pls advise, Thank you > It is much easier for everybody if you ask each question in a seperate thread. Regarding question 3: If you want to find out if there is any text in a textbox: If txtUserName.Text = "" or If isNull(txtUserName.Text) should both work. Best Regards and Happy New Year (it is now in Hong Kong) Werner From bill at ...2350... Thu Dec 31 17:21:29 2009 From: bill at ...2350... (Bill Richman) Date: Thu, 31 Dec 2009 10:21:29 -0600 Subject: [Gambas-user] GAMBAS rules! (And a couple of questions about listboxes and control "arrays") Message-ID: <4B3CCF89.70704@...2350...> First off, I'd like to say that I really, _really_ like GAMBAS. I was pulling my hair out trying to do something with Open Office macros when I discovered GAMBAS. I went from taking stabs in the dark at methods and properties to an auto-prompting system with a really great IDE. Many thanks to those who developed it and shared it with the rest of us! Now, the questions... :-) #1) I've got a form with 144 code-generated tool buttons on it, with pictures assigned to them. The code that generates them inserts an "index" number in each button's "tag" property, and I use that to know which button generated an event. Now, however, I need to be able to dynamically change the picture assigned to individual buttons. How do I address a specific button in the group? I suppose I can iterate through all the tool button class objects on the form and test each one to see if its tag matches the one that came from LAST.tag, but this seems very inefficient. Is there a better way? I've been searching the mailing list archive, but most of the questions about control arrays seem to deal more with getting all the controls to trigger the same event and the like. #2) I've got a list of names, each of which has a number associated with it. I want the user to be able to select a name from a ListBox control and get the associated number. These are in an SQLite database, so I'd thought about looking up the name and returning the number, but since the names are entered by the user on another form and can be anything, there's a chance they could enter the same name in more than one record and confuse things. I'd like to have a "hidden" column in the ListBox (or another ListBox that's hidden?) that contains the numbers, and that scrolls and selects "in sync" with the displayed list of names. I suppose I could insert the numbers in front of the names in the listbox, and then parse them back out when the user makes a selection, but I'd rather not have them visible. Any ideas? #3) My ListBoxes roll smoothly up and down from one list item to another, like movie credits rolling by, and it's really slow. If I were the user, this would make me crazy. Is there a way to get them to "jump scroll" instead of "smooth scroll"? :-$ Any suggestions would be most welcome. -- Bill Richman - Lincoln, Nebraska Tilter at windmills, maker of pies in the sky, & curmudgeon email: bill at ...2351... web: www.timeguy.com/bill From pinozollo at ...626... Thu Dec 31 17:27:11 2009 From: pinozollo at ...626... (Pino Zollo) Date: Thu, 31 Dec 2009 13:27:11 -0300 Subject: [Gambas-user] Corrupted Form Message-ID: <200912311327.11804.pinozollo@...626...> Hi Benoit, I include a small project that gives a problem: Whenever I modify the form in the IDE the form comes with an extra ) which generates an error at executing the program. "), ("modem.get_name ")]) <----- the last ) is hurting The only solution by now is to edit Fmain.form with gedit and run again. Happy 2010 ! In gambaS ! Pino -- Key ID: 0xF6768208 Key fingerprint = B16D 0A7C 5B29 A334 CE6A 71F6 EAF8 3D88 F676 8208 Key server: hkp://wwwkeys.eu.pgp.net -------------- next part -------------- A non-text attachment was scrubbed... Name: ctlfldigi-0.0.1.tar.gz Type: application/x-tgz Size: 9908 bytes Desc: not available URL: From gambas.fr at ...626... Thu Dec 31 18:13:33 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 31 Dec 2009 18:13:33 +0100 Subject: [Gambas-user] Is Gambas2.8 stable? In-Reply-To: <26980099.post@...1379...> References: <26980099.post@...1379...> Message-ID: <6324a42a0912310913w38fe7160r4b7a62d367e71a89@...627...> 2009/12/31 cwyong1 : > > HI. > I got me a Frame object in my form and i got this in my code > > PUBLIC SUB Form_Open() > > ?WITH ME > ? ?.maximized = TRUE > ? ?.Frame1.visible = false > ?END WITH > > END > it's normal if you are trying to access like that to an objet it's like a call from another place... and Frame1 is a private member of Form not accessible from the outside Maximized is a public property of Form so it is accessible from the outside by me.maximized for exemple. so to do what you want : Me.Maximized = true Frame1.Visible = False Contrary to VB In gambas all form objects are not public ! > When i run it, error "Unknown symbol 'Frame1' in clase 'FMain' > > How come ppls? > -- > View this message in context: http://old.nabble.com/Is-Gambas2.8-stable--tp26980099p26980099.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Thu Dec 31 18:17:27 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 31 Dec 2009 18:17:27 +0100 Subject: [Gambas-user] Should i upgrade to gambas3 In-Reply-To: <4B3CD58E.4060006@...1000...> References: <26979805.post@...1379...> <4B3CD58E.4060006@...1000...> Message-ID: <6324a42a0912310917l13a175efjf6bf6d0dedac55f@...627...> 2009/12/31 Werner : > On 01/01/10 00:12, cwyong1 wrote: >> Hi. >> I m using ubuntu 9.04 and gambas 2.8 and i got this problems, pls help >> >> 1. There will be a run error if i select a shortcut for menu item, the error >> read "The program has stopped unexpectedly by raising signal #11" and no >> error once i removed the shortcut >> >> 2. My window will also show the Minimised button even though i set the >> Border and the Minimised properties to False >> >> 3. If i want to checked whether a textbox is empty, i currently have to used >> this method ?( IF trim(txtUserName.text) <> "" then .... ) instead of what >> was documented, which is thru using the IsBlank ( i did test this out but >> found out that it will only report a textbox as empty or blank providing the >> user press the space bar once ) and also the proposed method of directly >> checking if a string is empty from the tip window is also not working >> >> Pls advise, Thank you >> > It is much easier for everybody if you ask each question in a seperate > thread. > > Regarding question 3: > If you want to find out if there is any text in a textbox: > > If txtUserName.Text = "" > ? ?or > If isNull(txtUserName.Text) or if not txtUserName.Text then an empty string return false > should both work. > > Best Regards and Happy New Year (it is now in Hong Kong) > Werner > > > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From steven at ...1652... Thu Dec 31 17:56:36 2009 From: steven at ...1652... (Steven revimmo) Date: Thu, 31 Dec 2009 17:56:36 +0100 Subject: [Gambas-user] Should i upgrade to gambas3 In-Reply-To: <4B3CD58E.4060006@...1000...> References: <26979805.post@...1379...> <4B3CD58E.4060006@...1000...> Message-ID: <1262278596.25548.37.camel@...1936...> Le vendredi 01 janvier 2010 ? 00:47 +0800, Werner a ?crit : > Best Regards and Happy New Year (it is now in Hong Kong) > Werner > > And happy New Year to you (and all on this list) too. Here, in France it's 'only' 18:00, so we wait .... ;-) Should you not be doing something else (as writing on this list) ? Steven From gambas.fr at ...626... Thu Dec 31 18:33:40 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 31 Dec 2009 18:33:40 +0100 Subject: [Gambas-user] GAMBAS rules! (And a couple of questions about listboxes and control "arrays") In-Reply-To: <4B3CCF89.70704@...2350...> References: <4B3CCF89.70704@...2350...> Message-ID: <6324a42a0912310933i46271902h42dc3d0ea4df3e9b@...627...> 2009/12/31 Bill Richman : > First off, I'd like to say that I really, _really_ like GAMBAS. ?I was > pulling my hair out trying to do something with Open Office macros when > I discovered GAMBAS. ?I went from taking stabs in the dark at methods > and properties to an auto-prompting system with a really great IDE. > Many thanks to those who developed it and shared it with the rest of us! > > Now, the questions... :-) > > > #1) I've got a form with 144 code-generated tool buttons on it, with > pictures assigned to them. ?The code that generates them inserts an > "index" number in each button's "tag" property, and I use that to know > which button generated an event. ?Now, however, I need to be able to > dynamically change the picture assigned to individual buttons. ?How do I > address a specific button in the group? ?I suppose I can iterate through > all the tool button class objects on the form and test each one to see > if its tag matches the one that came from LAST.tag, but this seems very > inefficient. ?Is there a better way? ?I've been searching the mailing > list archive, but most of the questions about control arrays seem to > deal more with getting all the controls to trigger the same event and > the like. > use an object array and store all the object in it. For i = 0 to 144 hButton = New Button(me) as "button" hButton.Tag = i aButtons.Add(hButton) Next aButtons[40].Text > #2) I've got a list of names, each of which has a number associated with > it. ?I want the user to be able to select a name from a ListBox control > and get the associated number. ?These are in an SQLite database, so I'd > thought about looking up the name and returning the number, but since > the names are entered by the user on another form and can be anything, > there's a chance they could enter the same name in more than one record > and confuse things. ?I'd like to have a "hidden" column in the ListBox > (or another ListBox that's hidden?) that contains the numbers, and that > scrolls and selects "in sync" with the displayed list of names. ?I > suppose I could insert the numbers in front of the names in the listbox, > and then parse them back out when the user makes a selection, but I'd > rather not have them visible. ?Any ideas? yes use a sql request ... hresult = db.exec("SELECT id, name FROM mytable GROUP BY name") ''then use a listview For each hResult ListView1.add(hResult!id, hResult!name) next Public sub ListView1_Click() print ListView1.Current.key End > #3) My ListBoxes roll smoothly up and down from one list item to > another, like movie credits rolling by, and it's really slow. ?If I were > the user, this would make me crazy. ?Is there a way to get them to "jump > scroll" instead of "smooth scroll"? ?:-$ ????? i think this not depend on Gambas but on qt or gtk > Any suggestions would be most welcome. > > -- > Bill Richman - Lincoln, Nebraska > Tilter at windmills, maker of pies in the sky, & curmudgeon > email: bill at ...2351... ?web: www.timeguy.com/bill > > > > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Thu Dec 31 18:36:41 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 31 Dec 2009 18:36:41 +0100 Subject: [Gambas-user] Should i upgrade to gambas3 In-Reply-To: <1262278596.25548.37.camel@...1936...> References: <26979805.post@...1379...> <4B3CD58E.4060006@...1000...> <1262278596.25548.37.camel@...1936...> Message-ID: <6324a42a0912310936rd36c5e3n63996b7b0614c6ea@...627...> 2009/12/31 Steven revimmo : > Le vendredi 01 janvier 2010 ? 00:47 +0800, Werner a ?crit : > >> Best Regards and Happy New Year (it is now in Hong Kong) >> Werner >> >> > > And happy New Year to you (and all on this list) too. > Here, in France it's 'only' 18:00, so we wait .... ;-) i'min france too ! the diner is at only 20H > Should you not be doing something else (as writing on this list) ? > > Steven > > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From yongchiaowoei at ...626... Thu Dec 31 19:23:15 2009 From: yongchiaowoei at ...626... (cwyong1) Date: Thu, 31 Dec 2009 10:23:15 -0800 (PST) Subject: [Gambas-user] Should i upgrade to gambas3 In-Reply-To: <200912311745.37028.gambas@...1...> References: <26979805.post@...1379...> <200912311745.37028.gambas@...1...> Message-ID: <26981082.post@...1379...> Tq for the prompt reply, 1. How do i find out if i m using gb.gtk or gb.qt pls? 2. Sorry for my typo mistake, because i was not trying to set the form border to false at all. LOL 3. I did read thru the gambas doc on isblank, and if i recalled corrected it said something about tab or space which was what lead me to press the space bar to test it out and lastly, in the tip window upon running gambas, it did mention a simpler way of testing whether a string is empty and alas that too is not working. ( i guess it be already fixed up in the newer version ) Beno?t Minisini wrote: > >> Hi. >> I m using ubuntu 9.04 and gambas 2.8 and i got this problems, pls help >> >> 1. There will be a run error if i select a shortcut for menu item, the >> error read "The program has stopped unexpectedly by raising signal #11" >> and no error once i removed the shortcut > > Do you use gb.gtk or gb.qt? Can you provide your project? I guess the bug > has > been fixed since, but Ubuntu is apparently unable to provide a Gambas > package > older than the 2.8 version released sixteen months ago! > >> >> 2. My window will also show the Minimised button even though i set the >> Border and the Minimised properties to False >> > > Setting the Minimized property to False just tell the window to not be > minimized. > > Anyway, you have the same problem as "Kadaitcha Man": the minimize button > cannot be removed. > > And you cannot set the Border property to "False". The Border property in > Gambas 2 can take three different values: Border.None, Border.Fixed and > Border.Resizable. > > If you set the Border property to Border.None, the window will not be > managed > by the window manager, and so will have no border. > >> 3. If i want to checked whether a textbox is empty, i currently have to >> used this method ( IF trim(txtUserName.text) <> "" then .... ) instead >> of >> what was documented, which is thru using the IsBlank > > Where did you see that? Did you read the documentation of the IsBlank() > function? > > << IF Trim(txtUserName.Text) <> "" THEN >> is the right way of checking if > a > string is not empty. A faster way is writing << IF Trim(txtUserName.Text) > THEN >>>. > > Regards, > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and > easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://old.nabble.com/Should-i-upgrade-to-gambas3-tp26979805p26981082.html Sent from the gambas-user mailing list archive at Nabble.com. From yongchiaowoei at ...626... Thu Dec 31 19:29:10 2009 From: yongchiaowoei at ...626... (cwyong1) Date: Thu, 31 Dec 2009 10:29:10 -0800 (PST) Subject: [Gambas-user] Should i upgrade to gambas3 In-Reply-To: <26981082.post@...1379...> References: <26979805.post@...1379...> <200912311745.37028.gambas@...1...> <26981082.post@...1379...> Message-ID: <26981148.post@...1379...> Btw, is there any way to cancel the minimized click event, i asked because about a year ago when i was programming in vb, i recalled something about setting the cancel value to 1 to stop it. Is there anything similar in gambas ? cwyong1 wrote: > > Tq for the prompt reply, > 1. How do i find out if i m using gb.gtk or gb.qt pls? > 2. Sorry for my typo mistake, because i was not trying to set the form > border to false at all. LOL > 3. I did read thru the gambas doc on isblank, and if i recalled corrected > it said something about tab or space which was what lead me to press the > space bar to test it out > and lastly, in the tip window upon running gambas, it did mention a > simpler way of testing whether a string is empty and alas that too is not > working. ( i guess it be already fixed up in the newer version ) > > Beno?t Minisini wrote: >> >>> Hi. >>> I m using ubuntu 9.04 and gambas 2.8 and i got this problems, pls help >>> >>> 1. There will be a run error if i select a shortcut for menu item, the >>> error read "The program has stopped unexpectedly by raising signal #11" >>> and no error once i removed the shortcut >> >> Do you use gb.gtk or gb.qt? Can you provide your project? I guess the bug >> has >> been fixed since, but Ubuntu is apparently unable to provide a Gambas >> package >> older than the 2.8 version released sixteen months ago! >> >>> >>> 2. My window will also show the Minimised button even though i set the >>> Border and the Minimised properties to False >>> >> >> Setting the Minimized property to False just tell the window to not be >> minimized. >> >> Anyway, you have the same problem as "Kadaitcha Man": the minimize button >> cannot be removed. >> >> And you cannot set the Border property to "False". The Border property in >> Gambas 2 can take three different values: Border.None, Border.Fixed and >> Border.Resizable. >> >> If you set the Border property to Border.None, the window will not be >> managed >> by the window manager, and so will have no border. >> >>> 3. If i want to checked whether a textbox is empty, i currently have to >>> used this method ( IF trim(txtUserName.text) <> "" then .... ) instead >>> of >>> what was documented, which is thru using the IsBlank >> >> Where did you see that? Did you read the documentation of the IsBlank() >> function? >> >> << IF Trim(txtUserName.Text) <> "" THEN >> is the right way of checking >> if a >> string is not empty. A faster way is writing << IF Trim(txtUserName.Text) >> THEN >>>>. >> >> Regards, >> >> -- >> Beno?t Minisini >> >> ------------------------------------------------------------------------------ >> This SF.Net email is sponsored by the Verizon Developer Community >> Take advantage of Verizon's best-in-class app development support >> A streamlined, 14 day to market process makes app distribution fast and >> easy >> Join now and get one step closer to millions of Verizon customers >> http://p.sf.net/sfu/verizon-dev2dev >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> > > -- View this message in context: http://old.nabble.com/Should-i-upgrade-to-gambas3-tp26979805p26981148.html Sent from the gambas-user mailing list archive at Nabble.com. From yongchiaowoei at ...626... Thu Dec 31 19:30:41 2009 From: yongchiaowoei at ...626... (cwyong1) Date: Thu, 31 Dec 2009 10:30:41 -0800 (PST) Subject: [Gambas-user] Should i upgrade to gambas3 In-Reply-To: <4B3CD58E.4060006@...1000...> References: <26979805.post@...1379...> <4B3CD58E.4060006@...1000...> Message-ID: <26981160.post@...1379...> TQ for your tip and advise. Happy new year to you and to all too Werner-9 wrote: > > On 01/01/10 00:12, cwyong1 wrote: >> Hi. >> I m using ubuntu 9.04 and gambas 2.8 and i got this problems, pls help >> >> 1. There will be a run error if i select a shortcut for menu item, the >> error >> read "The program has stopped unexpectedly by raising signal #11" and no >> error once i removed the shortcut >> >> 2. My window will also show the Minimised button even though i set the >> Border and the Minimised properties to False >> >> 3. If i want to checked whether a textbox is empty, i currently have to >> used >> this method ( IF trim(txtUserName.text) <> "" then .... ) instead of >> what >> was documented, which is thru using the IsBlank ( i did test this out but >> found out that it will only report a textbox as empty or blank providing >> the >> user press the space bar once ) and also the proposed method of directly >> checking if a string is empty from the tip window is also not working >> >> Pls advise, Thank you >> > It is much easier for everybody if you ask each question in a seperate > thread. > > Regarding question 3: > If you want to find out if there is any text in a textbox: > > If txtUserName.Text = "" > or > If isNull(txtUserName.Text) > > should both work. > > Best Regards and Happy New Year (it is now in Hong Kong) > Werner > > > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and > easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://old.nabble.com/Should-i-upgrade-to-gambas3-tp26979805p26981160.html Sent from the gambas-user mailing list archive at Nabble.com. From yongchiaowoei at ...626... Thu Dec 31 19:32:49 2009 From: yongchiaowoei at ...626... (cwyong1) Date: Thu, 31 Dec 2009 10:32:49 -0800 (PST) Subject: [Gambas-user] Should i upgrade to gambas3 In-Reply-To: <1262278596.25548.37.camel@...1936...> References: <26979805.post@...1379...> <4B3CD58E.4060006@...1000...> <1262278596.25548.37.camel@...1936...> Message-ID: <26981179.post@...1379...> hi. Happy new year to you too... Steven revimmo wrote: > > Le vendredi 01 janvier 2010 ? 00:47 +0800, Werner a ?crit : > >> Best Regards and Happy New Year (it is now in Hong Kong) >> Werner >> >> > > And happy New Year to you (and all on this list) too. > Here, in France it's 'only' 18:00, so we wait .... ;-) > > Should you not be doing something else (as writing on this list) ? > > Steven > > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and > easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://old.nabble.com/Should-i-upgrade-to-gambas3-tp26979805p26981179.html Sent from the gambas-user mailing list archive at Nabble.com. From wdahn at ...1000... Thu Dec 31 20:48:54 2009 From: wdahn at ...1000... (Werner) Date: Fri, 01 Jan 2010 03:48:54 +0800 Subject: [Gambas-user] Should i upgrade to gambas3 In-Reply-To: <26981179.post@...1379...> References: <26979805.post@...1379...> <4B3CD58E.4060006@...1000...> <1262278596.25548.37.camel@...1936...> <26981179.post@...1379...> Message-ID: <4B3D0026.6070107@...1000...> On 01/01/10 02:32, cwyong1 wrote: > hi. > Happy new year to you too... > > > Steven revimmo wrote: > >> Le vendredi 01 janvier 2010 ? 00:47 +0800, Werner a ?crit : >> >> >>> Best Regards and Happy New Year (it is now in Hong Kong) >>> Werner >>> >>> >>> >> And happy New Year to you (and all on this list) too. >> Here, in France it's 'only' 18:00, so we wait .... ;-) >> >> Should you not be doing something else (as writing on this list) ? >> >> Steven >> In the Gambas Empire the Sun Never Sets :-D