From gambas at ...1... Mon Jun 1 00:53:38 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Mon, 1 Jun 2009 00:53:38 +0200 Subject: [Gambas-user] Tooltip - Can one set a popup delay? In-Reply-To: <200905210816.51337.rterry@...1946...> References: <200905210816.51337.rterry@...1946...> Message-ID: <200906010053.38701.gambas@...1...> > Wondered if it was possible to change the delay time for the tool tip > popping up when the user hovers over something. > > This takes a little time on my system and for a new user of a program it > would be nice to have the tooltip pop up instantaniously, but enable > configuration within the program so that once they knew their way around, > then the popup could be re-set to a default or user defined delay. > > Regards > > Richard > It is possible to set the tooltip delay in Qt, but in GTK+ the function is deprecated. No idea why, but so I don't think it is a good idea to implement it. Regards, -- Beno?t From gambas at ...1... Mon Jun 1 00:59:32 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Mon, 1 Jun 2009 00:59:32 +0200 Subject: [Gambas-user] gb.net.curl - error codes. In-Reply-To: <1243573276.4280.7.camel@...2149...> References: <1243573276.4280.7.camel@...2149...> Message-ID: <200906010059.32875.gambas@...1...> > Hi am completing another project. To get weather information from the HK > Observatory's web site. > > But I some times get error codes from the HTTP component. > > 1. Is there list of error codes that this component returns > 2. Is there a method to reset the connection when I get an error? > > As when I run the program with no internet I get and error code > "-1006" when I connect to the internet I get the same error. The only > way I have figured out was to restart the whole program. > > Details of program can be found here > > > http://sjdsoft.hk/Linux/Software/HKWeather/index.html > > Any ideas? > > Daniel implemented one constant for each error code in the gb.net.curl component, but not a function that would give you the text of the error. I am aware of this common problem for a long time. This is the reason why in Gambas I usually prefer error strings against error numbers. But this is a different thing when you write a library in C or C++, so you often have these numerical codes in some components: they come from the underlying library, and so are easier to implement. If you want a list of error codes, you can look in the source code. They are not documented at the moment, but I will do it soon. Regards, -- Beno?t From david_villalobos_c at ...43... Mon Jun 1 16:30:22 2009 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Mon, 1 Jun 2009 07:30:22 -0700 (PDT) Subject: [Gambas-user] ran into troubles with gb.db.mysql-gui on Gambas3/Rev: 1987 In-Reply-To: <1243711998.7324.29.camel@...40...> References: <1243711998.7324.29.camel@...40...> Message-ID: <619221.9132.qm@...1678...> Wich components has the project gb.db.mysql-gui selected? Regards -- David ----- Original Message ---- From: Charlie Reinl To: gambas-user at lists.sourceforge.net Sent: Saturday, May 30, 2009 1:33:18 PM Subject: [Gambas-user] ran into troubles with gb.db.mysql-gui on Gambas3/Rev: 1987 Salut, my OS is Ubuntu 8.04 LTS on my box are running gambas1 gambas2/Rev: 1987 and gambas3/Rev: 1987 ran into troubles when trying to using gb.db.mysql-gui on Gambas3/Rev: 1987 gambas-database-manager.gambas from gambas3 works Here the output from gdb: ------------------------------------------------------ computer at ...2191...:~/gambas/gb.db.mysql-gui$ gbc3 -agt OK computer at ...2191...:~/gambas/gb.db.mysql-gui$ gdb gbx3 GNU gdb 6.8-debian Copyright (C) 2008 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 "i486-linux-gnu"... (gdb) set args -p (gdb) run Starting program: /usr/local/bin/gbx3 -p [Thread debugging using libthread_db enabled] [New Thread 0xb7e0d8c0 (LWP 8000)] ERROR: #2: Cannot load class 'Connection': Version too old. Please recompile the project. Program exited with code 01. (gdb) bt No stack. (gdb) -- Amicalment Charlie ------------------------------------------------------------------------------ Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a gathering of tech-side developers & brand creativity professionals. Meet the minds behind Google Creative Lab, Visual Complexity, Processing, & iPhoneDevCamp as they present alongside digital heavyweights like Barbarian Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From david_villalobos_c at ...43... Mon Jun 1 16:50:00 2009 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Mon, 1 Jun 2009 07:50:00 -0700 (PDT) Subject: [Gambas-user] ran into troubles with gb.db.mysql-gui on Gambas3/Rev: 1987 In-Reply-To: <619221.9132.qm@...1678...> References: <1243711998.7324.29.camel@...40...> <619221.9132.qm@...1678...> Message-ID: <137611.49125.qm@...1670...> By the way, could you plase the issue at: http://code.google.com/p/mysql-gui/issues/list Regards -- David ----- Original Message ---- From: David Villalobos Cambronero To: mailing list for gambas users Sent: Monday, June 1, 2009 8:30:22 AM Subject: Re: [Gambas-user] ran into troubles with gb.db.mysql-gui on Gambas3/Rev: 1987 Wich components has the project gb.db.mysql-gui selected? Regards -- David ----- Original Message ---- From: Charlie Reinl To: gambas-user at lists.sourceforge.net Sent: Saturday, May 30, 2009 1:33:18 PM Subject: [Gambas-user] ran into troubles with gb.db.mysql-gui on Gambas3/Rev: 1987 Salut, my OS is Ubuntu 8.04 LTS on my box are running gambas1 gambas2/Rev: 1987 and gambas3/Rev: 1987 ran into troubles when trying to using gb.db.mysql-gui on Gambas3/Rev: 1987 gambas-database-manager.gambas from gambas3 works Here the output from gdb: ------------------------------------------------------ computer at ...2191...:~/gambas/gb.db.mysql-gui$ gbc3 -agt OK computer at ...2191...:~/gambas/gb.db.mysql-gui$ gdb gbx3 GNU gdb 6.8-debian Copyright (C) 2008 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 "i486-linux-gnu"... (gdb) set args -p (gdb) run Starting program: /usr/local/bin/gbx3 -p [Thread debugging using libthread_db enabled] [New Thread 0xb7e0d8c0 (LWP 8000)] ERROR: #2: Cannot load class 'Connection': Version too old. Please recompile the project. Program exited with code 01. (gdb) bt No stack. (gdb) -- Amicalment Charlie ------------------------------------------------------------------------------ Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a gathering of tech-side developers & brand creativity professionals. Meet the minds behind Google Creative Lab, Visual Complexity, Processing, & iPhoneDevCamp as they present alongside digital heavyweights like Barbarian Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user ------------------------------------------------------------------------------ Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a gathering of tech-side developers & brand creativity professionals. Meet the minds behind Google Creative Lab, Visual Complexity, Processing, & iPhoneDevCamp as they present alongside digital heavyweights like Barbarian Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From Karl.Reinl at ...9... Mon Jun 1 17:39:54 2009 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Mon, 01 Jun 2009 17:39:54 +0200 Subject: [Gambas-user] ran into troubles with gb.db.mysql-gui on Gambas3/Rev: 1987 In-Reply-To: <619221.9132.qm@...1678...> References: <1243711998.7324.29.camel@...40...> <619221.9132.qm@...1678...> Message-ID: <1243870794.6651.7.camel@...40...> Am Montag, den 01.06.2009, 07:30 -0700 schrieb David Villalobos Cambronero: > Wich components has the project gb.db.mysql-gui selected? > > Regards > > > -- > David > > > > ----- Original Message ---- > From: Charlie Reinl > To: gambas-user at lists.sourceforge.net > Sent: Saturday, May 30, 2009 1:33:18 PM > Subject: [Gambas-user] ran into troubles with gb.db.mysql-gui on Gambas3/Rev: 1987 > > Salut, > > my OS is Ubuntu 8.04 LTS > on my box are running gambas1 > gambas2/Rev: 1987 > and gambas3/Rev: 1987 > > ran into troubles when trying to using > gb.db.mysql-gui on Gambas3/Rev: 1987 > > gambas-database-manager.gambas from gambas3 works > > Here the output from gdb: > ------------------------------------------------------ > computer at ...2191...:~/gambas/gb.db.mysql-gui$ gbc3 -agt > OK > computer at ...2191...:~/gambas/gb.db.mysql-gui$ gdb gbx3 > GNU gdb 6.8-debian > Copyright (C) 2008 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 "i486-linux-gnu"... > (gdb) set args -p > (gdb) run > Starting program: /usr/local/bin/gbx3 -p > [Thread debugging using libthread_db enabled] > [New Thread 0xb7e0d8c0 (LWP 8000)] > ERROR: #2: Cannot load class 'Connection': Version too old. Please > recompile the project. > > Program exited with code 01. > (gdb) bt > No stack. > (gdb) > > > Salut David, the version I checked out is from : gb.db.mysql-gui-0.0.17.tar.gz Thats written in .project : # Gambas Project File 3.0 # Compiled with Gambas 2.99.0 Title=gb.db.mysql-gui Startup=modMain Icon=icons/48/Administrator.png Version=0.0.17 Component=gb.image Component=gb.qt Component=gb.form Component=gb.db Component=gb.db.mysql Component=gb.form.dialog Component=gb.settings Component=gb.form.mdi Component=gb.mysql Component=gb.pcre Component=gb.qt.ext Description="A simple Graphic User Interface for MySQL" Authors="David Villalobos Cambronero\ndavid.villalobos.c at ...626..." TabSize=2 State=2 SourcePath=/media/HDD-DAVID Maintainer=David Villalobos Cambronero Address=david_villalobos_c at ...43... If I remember well, the class 'Connection' comes from gb.db that why I posted here. -- Amicalment Charlie From david_villalobos_c at ...43... Mon Jun 1 17:50:46 2009 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Mon, 1 Jun 2009 08:50:46 -0700 (PDT) Subject: [Gambas-user] ran into troubles with gb.db.mysql-gui on Gambas3/Rev: 1987 In-Reply-To: <1243870794.6651.7.camel@...40...> References: <1243711998.7324.29.camel@...40...> <619221.9132.qm@...1678...> <1243870794.6651.7.camel@...40...> Message-ID: <154458.34333.qm@...1667...> Hi, maybe you can try this: http://mysql-gui.googlecode.com/files/gb.db.mysql-gui-0.0.55.tar.gz. I use Mandriva 2009.1 32bits, KDE and I got not this message. Please try with the new version an tell me. Regards -- David ----- Original Message ---- From: Charlie Reinl To: mailing list for gambas users Sent: Monday, June 1, 2009 9:39:54 AM Subject: Re: [Gambas-user] ran into troubles with gb.db.mysql-gui on Gambas3/Rev: 1987 Am Montag, den 01.06.2009, 07:30 -0700 schrieb David Villalobos Cambronero: > Wich components has the project gb.db.mysql-gui selected? > > Regards > > > -- > David > > > > ----- Original Message ---- > From: Charlie Reinl > To: gambas-user at lists.sourceforge.net > Sent: Saturday, May 30, 2009 1:33:18 PM > Subject: [Gambas-user] ran into troubles with gb.db.mysql-gui on Gambas3/Rev: 1987 > > Salut, > > my OS is Ubuntu 8.04 LTS > on my box are running gambas1 > gambas2/Rev: 1987 > and gambas3/Rev: 1987 > > ran into troubles when trying to using > gb.db.mysql-gui on Gambas3/Rev: 1987 > > gambas-database-manager.gambas from gambas3 works > > Here the output from gdb: > ------------------------------------------------------ > computer at ...2191...:~/gambas/gb.db.mysql-gui$ gbc3 -agt > OK > computer at ...2191...:~/gambas/gb.db.mysql-gui$ gdb gbx3 > GNU gdb 6.8-debian > Copyright (C) 2008 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 "i486-linux-gnu"... > (gdb) set args -p > (gdb) run > Starting program: /usr/local/bin/gbx3 -p > [Thread debugging using libthread_db enabled] > [New Thread 0xb7e0d8c0 (LWP 8000)] > ERROR: #2: Cannot load class 'Connection': Version too old. Please > recompile the project. > > Program exited with code 01. > (gdb) bt > No stack. > (gdb) > > > Salut David, the version I checked out is from : gb.db.mysql-gui-0.0.17.tar.gz Thats written in .project : # Gambas Project File 3.0 # Compiled with Gambas 2.99.0 Title=gb.db.mysql-gui Startup=modMain Icon=icons/48/Administrator.png Version=0.0.17 Component=gb.image Component=gb.qt Component=gb.form Component=gb.db Component=gb.db.mysql Component=gb.form.dialog Component=gb.settings Component=gb.form.mdi Component=gb.mysql Component=gb.pcre Component=gb.qt.ext Description="A simple Graphic User Interface for MySQL" Authors="David Villalobos Cambronero\ndavid.villalobos.c at ...626..." TabSize=2 State=2 SourcePath=/media/HDD-DAVID Maintainer=David Villalobos Cambronero Address=david_villalobos_c at ...43... If I remember well, the class 'Connection' comes from gb.db that why I posted here. -- Amicalment Charlie ------------------------------------------------------------------------------ Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a gathering of tech-side developers & brand creativity professionals. Meet the minds behind Google Creative Lab, Visual Complexity, Processing, & iPhoneDevCamp as they present alongside digital heavyweights like Barbarian Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From guido.iodice at ...626... Mon Jun 1 18:06:44 2009 From: guido.iodice at ...626... (guiodic) Date: Mon, 1 Jun 2009 09:06:44 -0700 (PDT) Subject: [Gambas-user] BaShare 0.4.2 Message-ID: <23817482.post@...1379...> BaShare (Basic Share) is a very simply and user-friendly file sharing tool over the Internet and private LAN too. Basically BaShare is a http server with a graphical user interface (GUI). Select a file, give the link to your friends and they will be able to download the file from you speedily (or not, as you wish :-) ) BaShare is very useful during chat sessions! It is written in GAMBAS an amazing Visual Basic-like language for GNU/Linux. Features: 1.It works over the Internet and LAN 2.upnp support, so you can ?jump? your firewall in the router 3.very easy to use 4.qt and gtk, no problem! 5.A nice tray icon to control the program 6.you can dynamically change bandwidth 7.no annoying pop-up notifications, only flashing tray icon 8.Send large files to your friends quickly while chat with them over every IM! No more trouble with aMSN or Emesene slowness 9.Easy to install: Ubuntu, Debian, Fedora, OpenSuse?, etc. packages (visit the website for mandriva and OpenSuse packages) 10.It is free/open source software under GNU GPL v3 license ---------------- * Mon Jun 01 2009 Guido Iodice 0.4.2 - a nicer icon, thanks to sentinella86 * Thu May 21 2009 Guido Iodice 0.4.1 - internal release - some correction to avoid problems on non-http request - statusbar for log messages - if miniupnp is not installed, suggests to install it in Settings Form - detect if there is a new version - buttons for visit BaShare website and bug tracker in about form - band limit is 2MB/s now - corrected a typo - Initial Spanish and BR Port. translation -- View this message in context: http://www.nabble.com/BaShare-0.4.2-tp23817482p23817482.html Sent from the gambas-user mailing list archive at Nabble.com. From juergen.linder at ...17... Mon Jun 1 18:06:56 2009 From: juergen.linder at ...17... (juelin) Date: Mon, 1 Jun 2009 09:06:56 -0700 (PDT) Subject: [Gambas-user] DrawingArea Problem Message-ID: <23817487.post@...1379...> hello, I wrote a program where I drawing 2 lines and read the images. first I draw a first line from x=6 and y=6 to x=517 and y=517 then I call function read_pixel then I call funftion clear_area then I draw a second line x=6 and y=517 to x=517 and y=6 then I call function read_pixel But after that in the DrawingArea the first line AND second line is inside (at read_pixel) Why function clear_area do not work? have anybody an idea what happens? kind regards STATIC PRIVATE sifig AS Image PUBLIC SUB clear_area() DIM x AS Integer DIM y AS Integer DrawingArea1.BackColor = 0 DrawingArea1.ForeColor = 0 DrawingArea1.Clear Draw.Begin(DrawingArea1) Draw.Transparent = FALSE Draw.FillStyle = 1 Draw.LineStyle = 1 Draw.BackColor = 0 Draw.ForeColor = 0 FOR x = 6 TO 517 STEP 1 FOR y = 6 TO 517 STEP 1 Draw.Point(x, y) NEXT NEXT Draw.End DrawingArea1.Refresh WAIT END PUBLIC SUB read_pixel() DIM x AS Integer DIM y AS Integer DIM f AS Integer FOR y = 6 TO 517 STEP 1 FOR x = 6 TO 517 STEP 1 f = sifig[x, y] NEXT NEXT END Draw.Begin(DrawingArea1) Draw.Transparent = FALSE Draw.FillStyle = 1 Draw.LineStyle = 1 Draw.ForeColor = &H0000FF Draw.Line(6, 6, 517, 517) Draw.End DrawingArea1.Refresh WAIT sifig = DrawingArea1.Grab().Image read_pixel clear_area Draw.Begin(DrawingArea1) Draw.Transparent = FALSE Draw.FillStyle = 1 Draw.LineStyle = 1 Draw.ForeColor = &H0000FF Draw.Line(6, 517, 517, 6) Draw.End DrawingArea1.Refresh WAIT sifig = DrawingArea1.Grab().Image read_pixel -- View this message in context: http://www.nabble.com/DrawingArea-Problem-tp23817487p23817487.html Sent from the gambas-user mailing list archive at Nabble.com. From guido.iodice at ...626... Mon Jun 1 18:07:27 2009 From: guido.iodice at ...626... (guiodic) Date: Mon, 1 Jun 2009 09:07:27 -0700 (PDT) Subject: [Gambas-user] BaShare 0.4.2 In-Reply-To: <23817482.post@...1379...> References: <23817482.post@...1379...> Message-ID: <23817497.post@...1379...> oh, the link was missed :) http://code.google.com/p/bashare/ -- View this message in context: http://www.nabble.com/BaShare-0.4.2-tp23817482p23817497.html Sent from the gambas-user mailing list archive at Nabble.com. From Karl.Reinl at ...9... Mon Jun 1 19:28:34 2009 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Mon, 01 Jun 2009 19:28:34 +0200 Subject: [Gambas-user] ran into troubles with gb.db.mysql-gui on Gambas3/Rev: 1987 In-Reply-To: <154458.34333.qm@...1667...> References: <1243711998.7324.29.camel@...40...> <619221.9132.qm@...1678...> <1243870794.6651.7.camel@...40...> <154458.34333.qm@...1667...> Message-ID: <1243877314.6651.10.camel@...40...> Am Montag, den 01.06.2009, 08:50 -0700 schrieb David Villalobos Cambronero: > Hi, maybe you can try this: http://mysql-gui.googlecode.com/files/gb.db.mysql-gui-0.0.55.tar.gz. > > I use Mandriva 2009.1 32bits, KDE and I got not this message. > > Please try with the new version an tell me. > > Regards > > > -- > David > > > > ----- Original Message ---- > From: Charlie Reinl > To: mailing list for gambas users > Sent: Monday, June 1, 2009 9:39:54 AM > Subject: Re: [Gambas-user] ran into troubles with gb.db.mysql-gui on Gambas3/Rev: 1987 > > Am Montag, den 01.06.2009, 07:30 -0700 schrieb David Villalobos > Cambronero: > > Wich components has the project gb.db.mysql-gui selected? > > > > Regards > > > > > > -- > > David > > > > > > > > ----- Original Message ---- > > From: Charlie Reinl > > To: gambas-user at lists.sourceforge.net > > Sent: Saturday, May 30, 2009 1:33:18 PM > > Subject: [Gambas-user] ran into troubles with gb.db.mysql-gui on Gambas3/Rev: 1987 > > > > Salut, > > > > my OS is Ubuntu 8.04 LTS > > on my box are running gambas1 > > gambas2/Rev: 1987 > > and gambas3/Rev: 1987 > > > > ran into troubles when trying to using > > gb.db.mysql-gui on Gambas3/Rev: 1987 > > > > gambas-database-manager.gambas from gambas3 works > > > > Here the output from gdb: > > ------------------------------------------------------ > > computer at ...2191...:~/gambas/gb.db.mysql-gui$ gbc3 -agt > > OK > > computer at ...2191...:~/gambas/gb.db.mysql-gui$ gdb gbx3 > > GNU gdb 6.8-debian > > Copyright (C) 2008 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 "i486-linux-gnu"... > > (gdb) set args -p > > (gdb) run > > Starting program: /usr/local/bin/gbx3 -p > > [Thread debugging using libthread_db enabled] > > [New Thread 0xb7e0d8c0 (LWP 8000)] > > ERROR: #2: Cannot load class 'Connection': Version too old. Please > > recompile the project. > > > > Program exited with code 01. > > (gdb) bt > > No stack. > > (gdb) > > > > > > > > Salut David, > > the version I checked out is from : gb.db.mysql-gui-0.0.17.tar.gz > > Thats written in .project : > > # Gambas Project File 3.0 > # Compiled with Gambas 2.99.0 > Title=gb.db.mysql-gui > Startup=modMain > Icon=icons/48/Administrator.png > Version=0.0.17 > Component=gb.image > Component=gb.qt > Component=gb.form > Component=gb.db > Component=gb.db.mysql > Component=gb.form.dialog > Component=gb.settings > Component=gb.form.mdi > Component=gb.mysql > Component=gb.pcre > Component=gb.qt.ext > Description="A simple Graphic User Interface for MySQL" > Authors="David Villalobos Cambronero\ndavid.villalobos.c at ...626..." > TabSize=2 > State=2 > SourcePath=/media/HDD-DAVID > Maintainer=David Villalobos Cambronero > Address=david_villalobos_c at ...43... > > If I remember well, the class 'Connection' comes from gb.db > that why I posted here. > > -- > Amicalment > Charlie > Thanks David, Sorry same Error gb.db.mysql-gui-0.0.55 -- Amicalment Charlie From david_villalobos_c at ...43... Mon Jun 1 19:41:14 2009 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Mon, 1 Jun 2009 10:41:14 -0700 (PDT) Subject: [Gambas-user] ran into troubles with gb.db.mysql-gui on Gambas3/Rev: 1987 In-Reply-To: <1243877314.6651.10.camel@...40...> References: <1243711998.7324.29.camel@...40...> <619221.9132.qm@...1678...> <1243870794.6651.7.camel@...40...> <154458.34333.qm@...1667...> <1243877314.6651.10.camel@...40...> Message-ID: <205834.56766.qm@...1658...> I got not idea, Bemoit, any comment? Regards -- David ----- Original Message ---- From: Charlie Reinl To: mailing list for gambas users Sent: Monday, June 1, 2009 11:28:34 AM Subject: Re: [Gambas-user] ran into troubles with gb.db.mysql-gui on Gambas3/Rev: 1987 Am Montag, den 01.06.2009, 08:50 -0700 schrieb David Villalobos Cambronero: > Hi, maybe you can try this: http://mysql-gui.googlecode.com/files/gb.db.mysql-gui-0.0.55.tar.gz. > > I use Mandriva 2009.1 32bits, KDE and I got not this message. > > Please try with the new version an tell me. > > Regards > > > -- > David > > > > ----- Original Message ---- > From: Charlie Reinl > To: mailing list for gambas users > Sent: Monday, June 1, 2009 9:39:54 AM > Subject: Re: [Gambas-user] ran into troubles with gb.db.mysql-gui on Gambas3/Rev: 1987 > > Am Montag, den 01.06.2009, 07:30 -0700 schrieb David Villalobos > Cambronero: > > Wich components has the project gb.db.mysql-gui selected? > > > > Regards > > > > > > -- > > David > > > > > > > > ----- Original Message ---- > > From: Charlie Reinl > > To: gambas-user at lists.sourceforge.net > > Sent: Saturday, May 30, 2009 1:33:18 PM > > Subject: [Gambas-user] ran into troubles with gb.db.mysql-gui on Gambas3/Rev: 1987 > > > > Salut, > > > > my OS is Ubuntu 8.04 LTS > > on my box are running gambas1 > > gambas2/Rev: 1987 > > and gambas3/Rev: 1987 > > > > ran into troubles when trying to using > > gb.db.mysql-gui on Gambas3/Rev: 1987 > > > > gambas-database-manager.gambas from gambas3 works > > > > Here the output from gdb: > > ------------------------------------------------------ > > computer at ...2191...:~/gambas/gb.db.mysql-gui$ gbc3 -agt > > OK > > computer at ...2191...:~/gambas/gb.db.mysql-gui$ gdb gbx3 > > GNU gdb 6.8-debian > > Copyright (C) 2008 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 "i486-linux-gnu"... > > (gdb) set args -p > > (gdb) run > > Starting program: /usr/local/bin/gbx3 -p > > [Thread debugging using libthread_db enabled] > > [New Thread 0xb7e0d8c0 (LWP 8000)] > > ERROR: #2: Cannot load class 'Connection': Version too old. Please > > recompile the project. > > > > Program exited with code 01. > > (gdb) bt > > No stack. > > (gdb) > > > > > > > > Salut David, > > the version I checked out is from : gb.db.mysql-gui-0.0.17.tar.gz > > Thats written in .project : > > # Gambas Project File 3.0 > # Compiled with Gambas 2.99.0 > Title=gb.db.mysql-gui > Startup=modMain > Icon=icons/48/Administrator.png > Version=0.0.17 > Component=gb.image > Component=gb.qt > Component=gb.form > Component=gb.db > Component=gb.db.mysql > Component=gb.form.dialog > Component=gb.settings > Component=gb.form.mdi > Component=gb.mysql > Component=gb.pcre > Component=gb.qt.ext > Description="A simple Graphic User Interface for MySQL" > Authors="David Villalobos Cambronero\ndavid.villalobos.c at ...626..." > TabSize=2 > State=2 > SourcePath=/media/HDD-DAVID > Maintainer=David Villalobos Cambronero > Address=david_villalobos_c at ...43... > > If I remember well, the class 'Connection' comes from gb.db > that why I posted here. > > -- > Amicalment > Charlie > Thanks David, Sorry same Error gb.db.mysql-gui-0.0.55 -- Amicalment Charlie ------------------------------------------------------------------------------ Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a gathering of tech-side developers & brand creativity professionals. Meet the minds behind Google Creative Lab, Visual Complexity, Processing, & iPhoneDevCamp as they present alongside digital heavyweights like Barbarian Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Mon Jun 1 19:47:25 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Mon, 1 Jun 2009 19:47:25 +0200 Subject: [Gambas-user] ran into troubles with gb.db.mysql-gui on Gambas3/Rev: 1987 In-Reply-To: <205834.56766.qm@...1658...> References: <1243711998.7324.29.camel@...40...> <1243877314.6651.10.camel@...40...> <205834.56766.qm@...1658...> Message-ID: <200906011947.25627.gambas@...1...> > I got not idea, Bemoit, any comment? > > Regards > > I think Charlie should recompile and reinstall Gambas: the version of the interpreter bytecode has changed, and so you get an error if you don't recompile and reinstall the components written in Gambas and use them. Regards, -- Beno?t From Karl.Reinl at ...9... Mon Jun 1 20:34:07 2009 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Mon, 01 Jun 2009 20:34:07 +0200 Subject: [Gambas-user] ran into troubles with gb.db.mysql-gui on Gambas3/Rev: 1987 In-Reply-To: <200906011947.25627.gambas@...1...> References: <1243711998.7324.29.camel@...40...> <1243877314.6651.10.camel@...40...> <205834.56766.qm@...1658...> <200906011947.25627.gambas@...1...> Message-ID: <1243881247.7469.6.camel@...40...> Am Montag, den 01.06.2009, 19:47 +0200 schrieb Beno?t Minisini: > > I got not idea, Bemoit, any comment? > > > > Regards > > > > > > I think Charlie should recompile and reinstall Gambas: the version of the > interpreter bytecode has changed, and so you get an error if you don't > recompile and reinstall the components written in Gambas and use them. > > Regards, > Salut, did that twice (for both), second time after deleting all /opt/gambas/3/gb.db* , will now uninstall, delete the directory for gambas3-svn and checkout all newly, next time. will give you the news. -- Amicalment Charlie From Karl.Reinl at ...9... Mon Jun 1 21:13:04 2009 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Mon, 01 Jun 2009 21:13:04 +0200 Subject: [Gambas-user] ran into troubles with gb.db.mysql-gui on Gambas3/Rev: 1987 In-Reply-To: <200906011947.25627.gambas@...1...> References: <1243711998.7324.29.camel@...40...> <1243877314.6651.10.camel@...40...> <205834.56766.qm@...1658...> <200906011947.25627.gambas@...1...> Message-ID: <1243883584.7469.15.camel@...40...> Am Montag, den 01.06.2009, 19:47 +0200 schrieb Beno?t Minisini: > > I got not idea, Bemoit, any comment? > > > > Regards > > > > > > I think Charlie should recompile and reinstall Gambas: the version of the > interpreter bytecode has changed, and so you get an error if you don't > recompile and reinstall the components written in Gambas and use them. > > Regards, > Salut, what I know now : after unsinstall, I tried to delete the svn-directory found that root (normally I compile as user, and install as root (su)) owns some directories (see attachment). Starts into the directory where pushing svn. The .actions are owned by root, user has only read-permission. -- Amicalment Charlie -------------- next part -------------- app: insgesamt 12 drwxr-xr-x 3 charlie charlie 4096 2009-06-01 20:39 . drwxr-xr-x 4 charlie charlie 4096 2009-06-01 20:39 .. drwxr-xr-x 3 charlie charlie 4096 2009-06-01 20:40 src app/src: insgesamt 12 drwxr-xr-x 3 charlie charlie 4096 2009-06-01 20:40 . drwxr-xr-x 3 charlie charlie 4096 2009-06-01 20:39 .. drwxr-xr-x 3 charlie charlie 4096 2009-06-01 20:40 gambas3 app/src/gambas3: insgesamt 12 drwxr-xr-x 3 charlie charlie 4096 2009-06-01 20:40 . drwxr-xr-x 3 charlie charlie 4096 2009-06-01 20:40 .. drwxr-xr-x 2 root root 4096 2009-02-22 18:46 .action app/src/gambas3/.action: insgesamt 36 drwxr-xr-x 2 root root 4096 2009-02-22 18:46 . drwxr-xr-x 3 charlie charlie 4096 2009-06-01 20:40 .. -rw-r--r-- 1 charlie charlie 3521 2009-05-29 20:40 FEditor.action -rw-r--r-- 1 charlie charlie 1152 2009-05-29 20:40 FFind.action -rw-r--r-- 1 charlie charlie 4031 2009-05-29 20:40 FForm.action -rw-r--r-- 1 charlie charlie 6663 2009-05-29 20:40 FMain.action -rw-r--r-- 1 charlie charlie 108 2009-05-29 20:40 FOption.action -rw-r--r-- 1 charlie charlie 2005 2009-05-29 20:40 FTextEditor.action comp: insgesamt 12 drwxr-xr-x 3 charlie charlie 4096 2009-06-01 20:41 . drwxr-xr-x 4 charlie charlie 4096 2009-06-01 20:39 .. drwxr-xr-x 3 charlie charlie 4096 2009-06-01 20:41 src comp/src: insgesamt 12 drwxr-xr-x 3 charlie charlie 4096 2009-06-01 20:41 . drwxr-xr-x 3 charlie charlie 4096 2009-06-01 20:41 .. drwxr-xr-x 3 charlie charlie 4096 2009-06-01 20:41 gb.form.mdi comp/src/gb.form.mdi: insgesamt 12 drwxr-xr-x 3 charlie charlie 4096 2009-06-01 20:41 . drwxr-xr-x 3 charlie charlie 4096 2009-06-01 20:41 .. drwxr-xr-x 2 root root 4096 2009-02-22 18:46 .action comp/src/gb.form.mdi/.action: insgesamt 12 drwxr-xr-x 2 root root 4096 2009-02-22 18:46 . drwxr-xr-x 3 charlie charlie 4096 2009-06-01 20:41 .. -rw-r--r-- 1 charlie charlie 3011 2009-05-29 20:40 FTest.action From leonardo at ...1237... Mon Jun 1 22:28:26 2009 From: leonardo at ...1237... (Leonardo Miliani) Date: Mon, 01 Jun 2009 22:28:26 +0200 Subject: [Gambas-user] Release of Gambas 2.13.1 In-Reply-To: <200905311634.45958.lordheavym@...626...> References: <200905262155.31613.gambas@...1...> <4A228870.9040108@...1237...> <200905311634.45958.lordheavym@...626...> Message-ID: <4A2439EA.8090106@...1237...> I got this error: (cd .libs && rm -f gb.db.sqlite3.so.0 && ln -s gb.db.sqlite3.so.0.0.0 gb.db.sqlite3.so.0) (cd .libs && rm -f gb.db.sqlite3.so && ln -s gb.db.sqlite3.so.0.0.0 gb.db.sqlite3.so) creating gb.db.sqlite3.la (cd .libs && rm -f gb.db.sqlite3.la && ln -s ../gb.db.sqlite3.la gb.db.sqlite3.la) make[2]: Leaving directory `/home/leo/Documenti/gambas2/gambas2-2.13.1/gb.db.sqlite3/src' make[2]: Entering directory `/home/leo/Documenti/gambas2/gambas2-2.13.1/gb.db.sqlite3' make[2]: Nothing to be done for `all-am'. make[2]: Leaving directory `/home/leo/Documenti/gambas2/gambas2-2.13.1/gb.db.sqlite3' make[1]: Leaving directory `/home/leo/Documenti/gambas2/gambas2-2.13.1/gb.db.sqlite3' -- Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Scegli software opensource - Choose opensource software Co-fondatore di Gambas-it.org Il sito di riferimento della comunit? italiana degli utenti di Gambas www.gambas-it.org From Karl.Reinl at ...9... Mon Jun 1 23:32:07 2009 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Mon, 01 Jun 2009 23:32:07 +0200 Subject: [Gambas-user] SOLVED : ran into troubles with gb.db.mysql-gui on Gambas3/Rev: 1987 In-Reply-To: <200906011947.25627.gambas@...1...> References: <1243711998.7324.29.camel@...40...> <1243877314.6651.10.camel@...40...> <205834.56766.qm@...1658...> <200906011947.25627.gambas@...1...> Message-ID: <1243891927.7469.23.camel@...40...> ----8<-------------------------------- not easy, but this way got it running. uninstalling gambas3 (deleting all /usr/local/lib, /usr/local/bin, /usr/local/shared and /opt/gambas/3/gambas3-svn) now finally no more problem. not easy -- Amicalment Charlie From gambas at ...1... Tue Jun 2 00:21:22 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Tue, 2 Jun 2009 00:21:22 +0200 Subject: [Gambas-user] Tooltip - Can one set a popup delay? In-Reply-To: <200906010053.38701.gambas@...1...> References: <200905210816.51337.rterry@...1946...> <200906010053.38701.gambas@...1...> Message-ID: <200906020021.22490.gambas@...1...> > > Wondered if it was possible to change the delay time for the tool tip > > popping up when the user hovers over something. > > > > This takes a little time on my system and for a new user of a program it > > would be nice to have the tooltip pop up instantaniously, but enable > > configuration within the program so that once they knew their way around, > > then the popup could be re-set to a default or user defined delay. > > > > Regards > > > > Richard > > It is possible to set the tooltip delay in Qt, but in GTK+ the function is > deprecated. No idea why, but so I don't think it is a good idea to > implement it. > > Regards, Finally there is a non-deprecated way to do that in GTK+, so you will get a new Application.Tooltip.Delay property in the next /trunk commit. Regards, -- Beno?t From rterry at ...1946... Tue Jun 2 01:24:18 2009 From: rterry at ...1946... (richard terry) Date: Tue, 2 Jun 2009 09:24:18 +1000 Subject: [Gambas-user] Tooltip - Can one set a popup delay? In-Reply-To: <200906020021.22490.gambas@...1...> References: <200905210816.51337.rterry@...1946...> <200906010053.38701.gambas@...1...> <200906020021.22490.gambas@...1...> Message-ID: <200906020924.18386.rterry@...1946...> On Tue, 2 Jun 2009 08:21:22 am Beno?t Minisini wrote: > > > Wondered if it was possible to change the delay time for the tool tip > > > popping up when the user hovers over something. > > > > > > This takes a little time on my system and for a new user of a program > > > it would be nice to have the tooltip pop up instantaniously, but enable > > > configuration within the program so that once they knew their way > > > around, then the popup could be re-set to a default or user defined > > > delay. > > > > > > Regards > > > > > > Richard > > > > It is possible to set the tooltip delay in Qt, but in GTK+ the function > > is deprecated. No idea why, but so I don't think it is a good idea to > > implement it. > > > > Regards, > > Finally there is a non-deprecated way to do that in GTK+, so you will get a > new Application.Tooltip.Delay property in the next /trunk commit. > > Regards, Thanks Richard From keithclark at ...2185... Tue Jun 2 02:40:54 2009 From: keithclark at ...2185... (Keith Clark) Date: Mon, 01 Jun 2009 20:40:54 -0400 Subject: [Gambas-user] Gambas documentation Message-ID: <1243903254.8393.5.camel@...2187...> I'm using Gambas on Ubuntu 9.04 and when I try to view the documentation by pressing F1, noting comes up in the called upon browser. It states there is no documentation, check your path. For example, when looking for documentation on Chart: File ?/usr/share/gambas2/help/help/comp/gb+chart/chart.html? not found. Check the location of the file and try again. Thanks. Keith From keithclark at ...2185... Tue Jun 2 04:39:13 2009 From: keithclark at ...2185... (Keith Clark) Date: Mon, 01 Jun 2009 22:39:13 -0400 Subject: [Gambas-user] Executable files Message-ID: <1243910353.8393.8.camel@...2187...> I have made my first Executable file via the Project menu item and it created a file.gambas file. I sent that to another computer, but it won't execute. Do I need to install gambas on every machine that I want to run gambas created executables on? Thanks, Keith From rterry at ...1946... Tue Jun 2 05:56:37 2009 From: rterry at ...1946... (richard terry) Date: Tue, 2 Jun 2009 13:56:37 +1000 Subject: [Gambas-user] Executable files In-Reply-To: <1243910353.8393.8.camel@...2187...> References: <1243910353.8393.8.camel@...2187...> Message-ID: <200906021356.37221.rterry@...1946...> On Tue, 2 Jun 2009 12:39:13 pm Keith Clark wrote: > I have made my first Executable file via the Project menu item and it > created a file.gambas file. > > I sent that to another computer, but it won't execute. Do I need to > install gambas on every machine that I want to run gambas created > executables on? > > Thanks, > > Keith > > > > --------------------------------------------------------------------------- >--- OpenSolaris 2009.06 is a cutting edge operating system for enterprises > looking to deploy the next generation of Solaris that includes the latest > innovations from Sun and the OpenSource community. Download a copy and > enjoy capabilities such as Networking, Storage and Virtualization. Go to: > http://p.sf.net/sfu/opensolaris-get > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user yes From doriano.blengino at ...1909... Tue Jun 2 07:30:24 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Tue, 02 Jun 2009 07:30:24 +0200 Subject: [Gambas-user] Executable files In-Reply-To: <200906021356.37221.rterry@...1946...> References: <1243910353.8393.8.camel@...2187...> <200906021356.37221.rterry@...1946...> Message-ID: <4A24B8F0.4000904@...1909...> richard terry ha scritto: > On Tue, 2 Jun 2009 12:39:13 pm Keith Clark wrote: > >> I have made my first Executable file via the Project menu item and it >> created a file.gambas file. >> >> I sent that to another computer, but it won't execute. Do I need to >> install gambas on every machine that I want to run gambas created >> executables on? >> >> Thanks, >> >> Keith >> >> > > yes > > > Well, yes and no. To run a gambas executable you only need the gambas runtime - basically /usr/bin/gbr2 , and support files in /usr/lib and /usr/share. On a Debian system the package is named "gambas2-runtime"; you should also install every component used by the application: they are named "gambas2-gb-xxx"; for example, "gambas2-gb-gtk" and so on. If you want to install the minimum required to run your application, do so. If you also install gambas2-dev, you also have the compiler; if you install gambas2-doc, you add the documentation (32 Mb); if you install gambas2-ide you also have the IDE. If you install the "gambas2" package, you get everything. So a shortcut culd be to select "gambas2" for install, and then unselect the docs, the compiler and the IDE. This in a Debian system - don't know about other OSes, or when installed from sources. Regards, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From jguardon at ...2035... Tue Jun 2 11:50:49 2009 From: jguardon at ...2035... (Jesus Guardon) Date: Tue, 02 Jun 2009 11:50:49 +0200 Subject: [Gambas-user] Executable files In-Reply-To: <4A24B8F0.4000904@...1909...> References: <1243910353.8393.8.camel@...2187...> <200906021356.37221.rterry@...1946...> <4A24B8F0.4000904@...1909...> Message-ID: <4A24F5F9.5060006@...2035...> Doriano Blengino escribi?: > richard terry ha scritto: >> On Tue, 2 Jun 2009 12:39:13 pm Keith Clark wrote: >> >>> I have made my first Executable file via the Project menu item and it >>> created a file.gambas file. >>> >>> I sent that to another computer, but it won't execute. Do I need to >>> install gambas on every machine that I want to run gambas created >>> executables on? >>> >>> Thanks, >>> >>> Keith >>> >>> >> yes >> >> >> > Well, yes and no. To run a gambas executable you only need the gambas > runtime - basically /usr/bin/gbr2 , and support files in /usr/lib and > /usr/share. On a Debian system the package is named "gambas2-runtime"; > you should also install every component used by the application: they > are named "gambas2-gb-xxx"; for example, "gambas2-gb-gtk" and so on. > > If you want to install the minimum required to run your application, do > so. If you also install gambas2-dev, you also have the compiler; if you > install gambas2-doc, you add the documentation (32 Mb); if you install > gambas2-ide you also have the IDE. If you install the "gambas2" package, > you get everything. So a shortcut culd be to select "gambas2" for > install, and then unselect the docs, the compiler and the IDE. > > This in a Debian system - don't know about other OSes, or when installed > from sources. > > Regards, > Hi all In addition to the comments above, I will explain the way I do. You can create distributable packages for several distributions from Project -> Create -> Package Installer (Not, sure I'm using Spanish locales) From the 'wizard', fill in the fields you need, next step write your changelog, choose which packages you want to make for a distro, select the sections you want your menus will placed on, and magically you will get the installable packages into the selected directory ready for distribute them. These packages will resolve dependencies automatically, the only downside is if you are using or compiling your project with the last stable version of Gambas(and its components) and your end users have an old version within their repositories. It may (or will do, for sure) that your application doesn't work or fails at one point. Personally, I'm creating the Debian packages myself, including all needed -and recent- Gambas' components inside the .deb package. This way, users don't need to install nothing about Gambas manually. You can find lots of info about creating deb packages on the Internet. http://www.linuxdevices.com/articles/AT8047723203.html Of course, my method is not perfect. I have been created the same directory structure like Gambas does, but only copied the needed components/libraries. What about if the user want to install another Gambas application which resolves old dependencies from repos? Likely, my latest versions of Gambas components/libraries will be overwritten, and if so, my application will stop running or will malfunction. Another drawback but less important, is the size of your package, that will grow depending on used/needed components. Hope this helps! Regards, Jesus From gambas at ...1... Tue Jun 2 12:53:46 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Tue, 2 Jun 2009 12:53:46 +0200 Subject: [Gambas-user] Executable files In-Reply-To: <4A24F5F9.5060006@...2035...> References: <1243910353.8393.8.camel@...2187...> <4A24B8F0.4000904@...1909...> <4A24F5F9.5060006@...2035...> Message-ID: <200906021253.46359.gambas@...1...> > Doriano Blengino escribi?: > > richard terry ha scritto: > >> On Tue, 2 Jun 2009 12:39:13 pm Keith Clark wrote: > >>> I have made my first Executable file via the Project menu item and it > >>> created a file.gambas file. > >>> > >>> I sent that to another computer, but it won't execute. Do I need to > >>> install gambas on every machine that I want to run gambas created > >>> executables on? > >>> > >>> Thanks, > >>> > >>> Keith > >> > >> yes > > > > Well, yes and no. To run a gambas executable you only need the gambas > > runtime - basically /usr/bin/gbr2 , and support files in /usr/lib and > > /usr/share. On a Debian system the package is named "gambas2-runtime"; > > you should also install every component used by the application: they > > are named "gambas2-gb-xxx"; for example, "gambas2-gb-gtk" and so on. > > > > If you want to install the minimum required to run your application, do > > so. If you also install gambas2-dev, you also have the compiler; if you > > install gambas2-doc, you add the documentation (32 Mb); if you install > > gambas2-ide you also have the IDE. If you install the "gambas2" package, > > you get everything. So a shortcut culd be to select "gambas2" for > > install, and then unselect the docs, the compiler and the IDE. > > > > This in a Debian system - don't know about other OSes, or when installed > > from sources. > > > > Regards, > > Hi all > > In addition to the comments above, I will explain the way I do. > > You can create distributable packages for several distributions from > Project -> Create -> Package Installer (Not, sure I'm using Spanish > locales) > > From the 'wizard', fill in the fields you need, next step write your > changelog, choose which packages you want to make for a distro, select > the sections you want your menus will placed on, and magically you will > get the installable packages into the selected directory ready for > distribute them. > > These packages will resolve dependencies automatically, the only > downside is if you are using or compiling your project with the last > stable version of Gambas(and its components) and your end users have an > old version within their repositories. It may (or will do, for sure) > that your application doesn't work or fails at one point. All Gambas 2.x versions (except 2.0 and 2.1 on 64 bits OS) are binary compatible. So if you make a package from the 2.13.1 IDE, it will install and run on a system with Gambas 2.8 (for example). Your program won't work only if it depends on a bug fix. > > Personally, I'm creating the Debian packages myself, including all > needed -and recent- Gambas' components inside the .deb package. This > way, users don't need to install nothing about Gambas manually. > You can find lots of info about creating deb packages on the Internet. > > http://www.linuxdevices.com/articles/AT8047723203.html > > Of course, my method is not perfect. I have been created the same > directory structure like Gambas does, but only copied the needed > components/libraries. What about if the user want to install another > Gambas application which resolves old dependencies from repos? > Likely, my latest versions of Gambas components/libraries will be > overwritten, and if so, my application will stop running or will > malfunction. You must put the libraries inside their own directories, and run your project by setting the the LD_LIBRARY_PATH environment variable before (use a shell script for that), so that Linux takes your libraries and not the ones eventually installed by a system Gambas package. Regards, -- Beno?t From oceanosoftlapalma at ...626... Tue Jun 2 15:03:59 2009 From: oceanosoftlapalma at ...626... (Ricardo =?ISO-8859-1?Q?D=EDaz_Mart=EDn?=) Date: Tue, 02 Jun 2009 15:03:59 +0200 Subject: [Gambas-user] GAMBAS2 APPLICATION WORKS FINE IN UBUNTU BUT NOT IN OPENSUSE/FEDORA Message-ID: <1243947839.7630.106.camel@...2192...> Hi, I'm going to deploy an appliction gambas2/mysql based in a freenx server (i'm not sure if I'll ubuntu server or other distros server yet). I prefer ubuntu but maybe the customer say someone else. I've tryed to run the app in last fedora/opensuse editions, but I got the same fail in both. The app run with gtk libraries, and when a I try to do something like Table.Clear() (table is a gridview control) the app crash. At the console, I can read something like "it's not an valid executable file" or sometimes "/usr/lib64/thenameofmyapplication" not found. The Clear() method works fine in other places at the same app but at three diferents forms, fails. If I use qt works fine, but I've with qt libraries some problems with events (not raised in qt but raised in gtk) and I preffer gtk look and feell. I tryed to run this in lots of virtual machines whith 32 and 6b bits distros and allways got the same at the same place. Somebody knows something about this? Thanks in advance From gambas at ...1... Tue Jun 2 15:09:49 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Tue, 2 Jun 2009 15:09:49 +0200 Subject: [Gambas-user] GAMBAS2 APPLICATION WORKS FINE IN UBUNTU BUT NOT IN OPENSUSE/FEDORA In-Reply-To: <1243947839.7630.106.camel@...2192...> References: <1243947839.7630.106.camel@...2192...> Message-ID: <200906021509.49765.gambas@...1...> > Hi, > > I'm going to deploy an appliction gambas2/mysql based in a freenx server > (i'm not sure if I'll ubuntu server or other distros server yet). I > prefer ubuntu but maybe the customer say someone else. I've tryed to run > the app in last fedora/opensuse editions, but I got the same fail in > both. > > The app run with gtk libraries, and when a I try to do something like > Table.Clear() (table is a gridview control) the app crash. At the > console, I can read something like "it's not an valid executable file" > or sometimes "/usr/lib64/thenameofmyapplication" not found. > > The Clear() method works fine in other places at the same app but at > three diferents forms, fails. > > If I use qt works fine, but I've with qt libraries some problems with > events (not raised in qt but raised in gtk) and I preffer gtk look and > feell. > > I tryed to run this in lots of virtual machines whith 32 and 6b bits > distros and allways got the same at the same place. > > Somebody knows something about this? > > Thanks in advance Can you provide the project and be more precise? Which versions of Gambas on which distribution, which error messages exactly, which events are not raised with gb.qt, and so on... Can't read mind yet! :-) Regards, -- Beno?t From oceanosoftlapalma at ...626... Tue Jun 2 15:29:08 2009 From: oceanosoftlapalma at ...626... (Ricardo =?ISO-8859-1?Q?D=EDaz_Mart=EDn?=) Date: Tue, 02 Jun 2009 15:29:08 +0200 Subject: [Gambas-user] GAMBAS2 APPLICATION WORKS FINE IN UBUNTU BUT NOT IN OPENSUSE/FEDORA In-Reply-To: <200906021509.49765.gambas@...1...> References: <1243947839.7630.106.camel@...2192...> <200906021509.49765.gambas@...1...> Message-ID: <1243949348.7630.131.camel@...2192...> Excuse me B!, I'm using Ubuntu 9.04 (gnome) with Gambas 2.8 (default version incluyed from ubuntu repositories) and runs fine. For testing, I'm using openSUSE 11.1 (gnome) whith Gambas 2.13 (default version in openSUSE). The error string: "nameofapplication: not in executable format: file format not recognized". If you need the projec or some part of it, I can send you but I hope you undertand spanish 8-] If I compile with qt libraries and run in gnome desktop, the app doesn't response at lostfocus event in textboxes (for example, in some textboxes I capture this event to do put the text in uppercases or do calculations). -----Mensaje original----- De: Beno?t Minisini Reply-to: mailing list for gambas users Para: mailing list for gambas users Asunto: Re: [Gambas-user] GAMBAS2 APPLICATION WORKS FINE IN UBUNTU BUT NOT IN OPENSUSE/FEDORA Fecha: Tue, 2 Jun 2009 15:09:49 +0200 > Hi, > > I'm going to deploy an appliction gambas2/mysql based in a freenx server > (i'm not sure if I'll ubuntu server or other distros server yet). I > prefer ubuntu but maybe the customer say someone else. I've tryed to run > the app in last fedora/opensuse editions, but I got the same fail in > both. > > The app run with gtk libraries, and when a I try to do something like > Table.Clear() (table is a gridview control) the app crash. At the > console, I can read something like "it's not an valid executable file" > or sometimes "/usr/lib64/thenameofmyapplication" not found. > > The Clear() method works fine in other places at the same app but at > three diferents forms, fails. > > If I use qt works fine, but I've with qt libraries some problems with > events (not raised in qt but raised in gtk) and I preffer gtk look and > feell. > > I tryed to run this in lots of virtual machines whith 32 and 6b bits > distros and allways got the same at the same place. > > Somebody knows something about this? > > Thanks in advance Can you provide the project and be more precise? Which versions of Gambas on which distribution, which error messages exactly, which events are not raised with gb.qt, and so on... Can't read mind yet! :-) Regards, From jguardon at ...2035... Tue Jun 2 17:26:53 2009 From: jguardon at ...2035... (Jesus Guardon) Date: Tue, 02 Jun 2009 17:26:53 +0200 Subject: [Gambas-user] Executable files In-Reply-To: <200906021253.46359.gambas@...1...> References: <1243910353.8393.8.camel@...2187...> <4A24B8F0.4000904@...1909...> <4A24F5F9.5060006@...2035...> <200906021253.46359.gambas@...1...> Message-ID: <4A2544BD.8010006@...2035...> Beno?t Minisini escribi?: > > You must put the libraries inside their own directories, and run your project > by setting the the LD_LIBRARY_PATH environment variable before (use a shell > script for that), so that Linux takes your libraries and not the ones > eventually installed by a system Gambas package. > > Regards, > I was reading about this, and experts doesn't recommend playing with this variable. My own tests on a virtual machine weren't successful. Anyway, I would be grateful to whoever can help me with this matter. Regards, Jesus From keithclark at ...2185... Tue Jun 2 20:43:55 2009 From: keithclark at ...2185... (Keith Clark) Date: Tue, 02 Jun 2009 14:43:55 -0400 Subject: [Gambas-user] Executable files In-Reply-To: <4A24F5F9.5060006@...2035...> References: <1243910353.8393.8.camel@...2187...> <200906021356.37221.rterry@...1946...> <4A24B8F0.4000904@...1909...> <4A24F5F9.5060006@...2035...> Message-ID: <1243968235.6107.1.camel@...2186...> On Tue, 2009-06-02 at 11:50 +0200, Jesus Guardon wrote: > Doriano Blengino escribi?: > > richard terry ha scritto: > >> On Tue, 2 Jun 2009 12:39:13 pm Keith Clark wrote: > >> > >>> I have made my first Executable file via the Project menu item and it > >>> created a file.gambas file. > >>> > >>> I sent that to another computer, but it won't execute. Do I need to > >>> install gambas on every machine that I want to run gambas created > >>> executables on? > >>> > >>> Thanks, > >>> > >>> Keith > >>> > >>> > >> yes > >> > >> > >> > > Well, yes and no. To run a gambas executable you only need the gambas > > runtime - basically /usr/bin/gbr2 , and support files in /usr/lib and > > /usr/share. On a Debian system the package is named "gambas2-runtime"; > > you should also install every component used by the application: they > > are named "gambas2-gb-xxx"; for example, "gambas2-gb-gtk" and so on. > > > > If you want to install the minimum required to run your application, do > > so. If you also install gambas2-dev, you also have the compiler; if you > > install gambas2-doc, you add the documentation (32 Mb); if you install > > gambas2-ide you also have the IDE. If you install the "gambas2" package, > > you get everything. So a shortcut culd be to select "gambas2" for > > install, and then unselect the docs, the compiler and the IDE. > > > > This in a Debian system - don't know about other OSes, or when installed > > from sources. > > > > Regards, > > > Hi all > > In addition to the comments above, I will explain the way I do. > > You can create distributable packages for several distributions from > Project -> Create -> Package Installer (Not, sure I'm using Spanish > locales) > > From the 'wizard', fill in the fields you need, next step write your > changelog, choose which packages you want to make for a distro, select > the sections you want your menus will placed on, and magically you will > get the installable packages into the selected directory ready for > distribute them. > > These packages will resolve dependencies automatically, the only > downside is if you are using or compiling your project with the last > stable version of Gambas(and its components) and your end users have an > old version within their repositories. It may (or will do, for sure) > that your application doesn't work or fails at one point. > > Personally, I'm creating the Debian packages myself, including all > needed -and recent- Gambas' components inside the .deb package. This > way, users don't need to install nothing about Gambas manually. > You can find lots of info about creating deb packages on the Internet. > > http://www.linuxdevices.com/articles/AT8047723203.html > > Of course, my method is not perfect. I have been created the same > directory structure like Gambas does, but only copied the needed > components/libraries. What about if the user want to install another > Gambas application which resolves old dependencies from repos? > Likely, my latest versions of Gambas components/libraries will be > overwritten, and if so, my application will stop running or will > malfunction. Another drawback but less important, is the size of your > package, that will grow depending on used/needed components. > > Hope this helps! > > Regards, > > Jesus Jesus, Perfect! I understand the process now. Thanks a ton! Keith From gambas at ...1... Wed Jun 3 01:45:09 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Wed, 3 Jun 2009 01:45:09 +0200 Subject: [Gambas-user] Custom mouse cursor In-Reply-To: <384d3900905270942q5c88d8c9y16cc0b8c7b0e8685@...627...> References: <384d3900903040933t6d8743e5laa4760cab6e84fb5@...627...> <384d3900905270942q5c88d8c9y16cc0b8c7b0e8685@...627...> Message-ID: <200906030145.09093.gambas@...1...> > Other old issue... > I don't know how I missed that documentation earlier... > But I still have issues with custom cursors. > What are supported picture formats? Or what I'm doing wrong? > My code: > > Public aa As New Cursor(Picture.Load("test.png")) > > DrawingArea1.Mouse = Mouse.Custom > DrawingArea1.Cursor = aa > > Or; > > DrawingArea1.Cursor = New Cursor(Picture.Load("test.png")) > > Tried with many different formats. > With GTK+ signal 11, with Qt only buggy black&white picture. > > > Regards, > Jussi > Hi, The bug has been fixed in revision #1994. And yes, you are right, Qt 3 only supports black & white cursors, whereas GTK+ supports color cursors. Regards, -- Beno?t From lordheavym at ...626... Thu Jun 4 00:30:15 2009 From: lordheavym at ...626... (Laurent Carlier) Date: Thu, 4 Jun 2009 00:30:15 +0200 Subject: [Gambas-user] Release of Gambas 2.13.1 In-Reply-To: <4A2439EA.8090106@...1237...> References: <200905262155.31613.gambas@...1...> <200905311634.45958.lordheavym@...626...> <4A2439EA.8090106@...1237...> Message-ID: <200906040030.15884.lordheavym@...626...> Le lundi 01 juin 2009 22:28:26 Leonardo Miliani, vous avez ?crit : > I got this error: > > (cd .libs && rm -f gb.db.sqlite3.so.0 && ln -s gb.db.sqlite3.so.0.0.0 > gb.db.sqlite3.so.0) > (cd .libs && rm -f gb.db.sqlite3.so && ln -s gb.db.sqlite3.so.0.0.0 > gb.db.sqlite3.so) > creating gb.db.sqlite3.la > (cd .libs && rm -f gb.db.sqlite3.la && ln -s ../gb.db.sqlite3.la > gb.db.sqlite3.la) > make[2]: Leaving directory > `/home/leo/Documenti/gambas2/gambas2-2.13.1/gb.db.sqlite3/src' > make[2]: Entering directory > `/home/leo/Documenti/gambas2/gambas2-2.13.1/gb.db.sqlite3' > make[2]: Nothing to be done for `all-am'. > make[2]: Leaving directory > `/home/leo/Documenti/gambas2/gambas2-2.13.1/gb.db.sqlite3' > make[1]: Leaving directory > `/home/leo/Documenti/gambas2/gambas2-2.13.1/gb.db.sqlite3' Now it seem to build fine ! good ! What are the results from following commands in a terminel ? : uname -a and gcc -v Regards, From gambas at ...1... Thu Jun 4 00:39:08 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Thu, 4 Jun 2009 00:39:08 +0200 Subject: [Gambas-user] GAMBAS2 APPLICATION WORKS FINE IN UBUNTU BUT NOT IN OPENSUSE/FEDORA In-Reply-To: <1243949348.7630.131.camel@...2192...> References: <1243947839.7630.106.camel@...2192...> <200906021509.49765.gambas@...1...> <1243949348.7630.131.camel@...2192...> Message-ID: <200906040039.08766.gambas@...1...> > Excuse me B!, I'm using Ubuntu 9.04 (gnome) with Gambas 2.8 (default > version incluyed from ubuntu repositories) and runs fine. > > For testing, I'm using openSUSE 11.1 (gnome) whith Gambas 2.13 (default > version in openSUSE). The error string: "nameofapplication: not in > executable format: file format not recognized". It seems to not be a Gambas error, but a shell error message. What are you trying to execute exactly and how? > > If you need the projec or some part of it, I can send you but I hope you > undertand spanish 8-] > > If I compile with qt libraries and run in gnome desktop, the app doesn't > response at lostfocus event in textboxes (for example, in some textboxes > I capture this event to do put the text in uppercases or do > calculations). That bug has just been fixed in revision #1996. Regards, -- Beno?t From oceanosoftlapalma at ...626... Thu Jun 4 09:56:38 2009 From: oceanosoftlapalma at ...626... (Ricardo =?ISO-8859-1?Q?D=EDaz_Mart=EDn?=) Date: Thu, 04 Jun 2009 09:56:38 +0200 Subject: [Gambas-user] GAMBAS2 APPLICATION WORKS FINE IN UBUNTU BUT NOT IN OPENSUSE/FEDORA In-Reply-To: <200906040039.08766.gambas@...1...> References: <1243947839.7630.106.camel@...2192...> <200906021509.49765.gambas@...1...> <1243949348.7630.131.camel@...2192...> <200906040039.08766.gambas@...1...> Message-ID: <1244102199.28839.75.camel@...2192...> Benoit, Maybe the problem is an GTK Libraries installed at opensuse/fedora by default (or gtk gambas package), because I've tryed to run the app in other ubuntu 32/64 versions and allways run fine (8.04, 8.10, 9.04). I thing this because you said than lostfocus event was fixed at revision #1996 and its no fixed at this disto's standard rpm. The error show at this case: - The app uses only gtk modules at the project and run under gnomde desktop - I open a form with a GridView. At form_Open() I call to a sub FillGrid(gv as GridView, SQL as string) that fill the gridview. The first at FillGrid sub is gb.Clear() - In one of times the app crash in opensuse/fedora, there are open a form with a gridview control (List of invoices), a form with other gridview (Invoice with its header and the lines gridview) and other modal form (when user doublecliked one invoice's line, open a modal form with line record) - When user close the invoice's line form, it send to the invoice form a FillGrid sub that reload lines again. Well, at this moment the app crash in opensuse/fedora. Debbuging project, I show at the moment gb.Clear() its called. I thinking remove gambas2 from opensuse/fedora and try to install from source pakages form sourceforge. I now this is the first I've to do but I only want to ask for if there is someone with the same problem (ubuntu gambas package rules and opensuse/fedora sucks!) Thanks for all. It's great to be able to communicate with the gambas author -----Mensaje original----- De: Beno?t Minisini Reply-to: mailing list for gambas users Para: mailing list for gambas users Asunto: Re: [Gambas-user] GAMBAS2 APPLICATION WORKS FINE IN UBUNTU BUT NOT IN OPENSUSE/FEDORA Fecha: Thu, 4 Jun 2009 00:39:08 +0200 > Excuse me B!, I'm using Ubuntu 9.04 (gnome) with Gambas 2.8 (default > version incluyed from ubuntu repositories) and runs fine. > > For testing, I'm using openSUSE 11.1 (gnome) whith Gambas 2.13 (default > version in openSUSE). The error string: "nameofapplication: not in > executable format: file format not recognized". It seems to not be a Gambas error, but a shell error message. What are you trying to execute exactly and how? > > If you need the projec or some part of it, I can send you but I hope you > undertand spanish 8-] > > If I compile with qt libraries and run in gnome desktop, the app doesn't > response at lostfocus event in textboxes (for example, in some textboxes > I capture this event to do put the text in uppercases or do > calculations). That bug has just been fixed in revision #1996. Regards, From leonardo at ...1237... Thu Jun 4 14:55:01 2009 From: leonardo at ...1237... (Leonardo Miliani) Date: Thu, 04 Jun 2009 14:55:01 +0200 Subject: [Gambas-user] Release of Gambas 2.13.1 In-Reply-To: <200906040030.15884.lordheavym@...626...> References: <200905262155.31613.gambas@...1...> <200905311634.45958.lordheavym@...626...> <4A2439EA.8090106@...1237...> <200906040030.15884.lordheavym@...626...> Message-ID: <4A27C425.9080909@...1237...> Laurent Carlier ha scritto: > Le lundi 01 juin 2009 22:28:26 Leonardo Miliani, vous avez ?crit : >> I got this error: >> >> (cd .libs && rm -f gb.db.sqlite3.so.0 && ln -s gb.db.sqlite3.so.0.0.0 >> gb.db.sqlite3.so.0) >> (cd .libs && rm -f gb.db.sqlite3.so && ln -s gb.db.sqlite3.so.0.0.0 >> gb.db.sqlite3.so) >> creating gb.db.sqlite3.la >> (cd .libs && rm -f gb.db.sqlite3.la && ln -s ../gb.db.sqlite3.la >> gb.db.sqlite3.la) >> make[2]: Leaving directory >> `/home/leo/Documenti/gambas2/gambas2-2.13.1/gb.db.sqlite3/src' >> make[2]: Entering directory >> `/home/leo/Documenti/gambas2/gambas2-2.13.1/gb.db.sqlite3' >> make[2]: Nothing to be done for `all-am'. >> make[2]: Leaving directory >> `/home/leo/Documenti/gambas2/gambas2-2.13.1/gb.db.sqlite3' >> make[1]: Leaving directory >> `/home/leo/Documenti/gambas2/gambas2-2.13.1/gb.db.sqlite3' > > Now it seem to build fine ! good ! > > What are the results from following commands in a terminel ? : uname -a and > gcc -v > I was wrong and said that I got other errors but you're truth, now it compiles. The followings are the required outputs : [leo at ...2193... main]$ uname -a Linux hp_laptop 2.6.29-ARCH #1 SMP PREEMPT Wed May 20 07:06:02 UTC 2009 i686 Intel(R) Pentium(R) M processor 1.80GHz GenuineIntel GNU/Linux [leo at ...2193... main]$ gcc -v Using built-in specs. Target: i686-pc-linux-gnu Configured with: ../configure --prefix=/usr --enable-shared --enable-languages=c,c++,fortran,objc,obj-c++ --enable-threads=posix --mandir=/usr/share/man --infodir=/usr/share/info --enable-__cxa_atexit --disable-multilib --libdir=/usr/lib --libexecdir=/usr/lib --enable-clocale=gnu --disable-libstdcxx-pch --with-tune=generic Thread model: posix gcc version 4.4.0 20090526 (prerelease) (GCC) -- Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Scegli software opensource - Choose opensource software Co-fondatore di Gambas-it.org Il sito di riferimento della comunit? italiana degli utenti di Gambas www.gambas-it.org From leonardo at ...1237... Thu Jun 4 17:20:01 2009 From: leonardo at ...1237... (Leonardo Miliani) Date: Thu, 04 Jun 2009 17:20:01 +0200 Subject: [Gambas-user] Release of Gambas 2.13.1 In-Reply-To: <200906040030.15884.lordheavym@...626...> References: <200905262155.31613.gambas@...1...> <200905311634.45958.lordheavym@...626...> <4A2439EA.8090106@...1237...> <200906040030.15884.lordheavym@...626...> Message-ID: <4A27E621.7030608@...1237...> Laurent Carlier ha scritto: > Le lundi 01 juin 2009 22:28:26 Leonardo Miliani, vous avez ?crit : >> I got this error: >> >> (cd .libs && rm -f gb.db.sqlite3.so.0 && ln -s gb.db.sqlite3.so.0.0.0 >> gb.db.sqlite3.so.0) >> (cd .libs && rm -f gb.db.sqlite3.so && ln -s gb.db.sqlite3.so.0.0.0 >> gb.db.sqlite3.so) >> creating gb.db.sqlite3.la >> (cd .libs && rm -f gb.db.sqlite3.la && ln -s ../gb.db.sqlite3.la >> gb.db.sqlite3.la) >> make[2]: Leaving directory >> `/home/leo/Documenti/gambas2/gambas2-2.13.1/gb.db.sqlite3/src' >> make[2]: Entering directory >> `/home/leo/Documenti/gambas2/gambas2-2.13.1/gb.db.sqlite3' >> make[2]: Nothing to be done for `all-am'. >> make[2]: Leaving directory >> `/home/leo/Documenti/gambas2/gambas2-2.13.1/gb.db.sqlite3' >> make[1]: Leaving directory >> `/home/leo/Documenti/gambas2/gambas2-2.13.1/gb.db.sqlite3' > > Now it seem to build fine ! good ! > > What are the results from following commands in a terminel ? : uname -a and > gcc -v > > Regards, > > > ------------------------------------------------------------------------------ > OpenSolaris 2009.06 is a cutting edge operating system for enterprises > looking to deploy the next generation of Solaris that includes the latest > innovations from Sun and the OpenSource community. Download a copy and > enjoy capabilities such as Networking, Storage and Virtualization. > Go to: http://p.sf.net/sfu/opensolaris-get > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > Now same error with gb.sqlite2: main.cpp: In function ?int field_index(void*, const char*, DB_DATABASE*)?: main.cpp:935: error: invalid conversion from ?const char*? to ?char*? make[2]: *** [gb_db_sqlite2_la-main.lo] Error 1 make[2]: Leaving directory `/home/leo/Documenti/Software/Programmazione/Gambas/gambas2-2.13.1/gb.db.sqlite2/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/leo/Documenti/Software/Programmazione/Gambas/gambas2-2.13.1/gb.db.sqlite2' make: *** [all] Error 2 -- Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Scegli software opensource - Choose opensource software Co-fondatore di Gambas-it.org Il sito di riferimento della comunit? italiana degli utenti di Gambas www.gambas-it.org From lordheavym at ...626... Thu Jun 4 22:43:21 2009 From: lordheavym at ...626... (Laurent Carlier) Date: Thu, 4 Jun 2009 22:43:21 +0200 Subject: [Gambas-user] Release of Gambas 2.13.1 In-Reply-To: <4A27E621.7030608@...1237...> References: <200905262155.31613.gambas@...1...> <200906040030.15884.lordheavym@...626...> <4A27E621.7030608@...1237...> Message-ID: <200906042243.22158.lordheavym@...626...> Le jeudi 04 juin 2009 17:20:01 Leonardo Miliani, vous avez ?crit : > Laurent Carlier ha scritto: > > Le lundi 01 juin 2009 22:28:26 Leonardo Miliani, vous avez ?crit : > >> I got this error: > >> > >> (cd .libs && rm -f gb.db.sqlite3.so.0 && ln -s gb.db.sqlite3.so.0.0.0 > >> gb.db.sqlite3.so.0) > >> (cd .libs && rm -f gb.db.sqlite3.so && ln -s gb.db.sqlite3.so.0.0.0 > >> gb.db.sqlite3.so) > >> creating gb.db.sqlite3.la > >> (cd .libs && rm -f gb.db.sqlite3.la && ln -s ../gb.db.sqlite3.la > >> gb.db.sqlite3.la) > >> make[2]: Leaving directory > >> `/home/leo/Documenti/gambas2/gambas2-2.13.1/gb.db.sqlite3/src' > >> make[2]: Entering directory > >> `/home/leo/Documenti/gambas2/gambas2-2.13.1/gb.db.sqlite3' > >> make[2]: Nothing to be done for `all-am'. > >> make[2]: Leaving directory > >> `/home/leo/Documenti/gambas2/gambas2-2.13.1/gb.db.sqlite3' > >> make[1]: Leaving directory > >> `/home/leo/Documenti/gambas2/gambas2-2.13.1/gb.db.sqlite3' > > > > Now it seem to build fine ! good ! > > > > What are the results from following commands in a terminel ? : uname -a > > and gcc -v > > > > Regards, > > > > > > ------------------------------------------------------------------------- > >----- OpenSolaris 2009.06 is a cutting edge operating system for > > enterprises looking to deploy the next generation of Solaris that > > includes the latest innovations from Sun and the OpenSource community. > > Download a copy and enjoy capabilities such as Networking, Storage and > > Virtualization. Go to: http://p.sf.net/sfu/opensolaris-get > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > Now same error with gb.sqlite2: > > main.cpp: In function ?int field_index(void*, const char*, DB_DATABASE*)?: > main.cpp:935: error: invalid conversion from ?const char*? to ?char*? > make[2]: *** [gb_db_sqlite2_la-main.lo] Error 1 > make[2]: Leaving directory > `/home/leo/Documenti/Software/Programmazione/Gambas/gambas2-2.13.1/gb.db.sq >lite2/src' make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory > `/home/leo/Documenti/Software/Programmazione/Gambas/gambas2-2.13.1/gb.db.sq >lite2' make: *** [all] Error 2 Thanks, twice bugs are fixed in SVN commit #1998 Regards, From ken at ...2194... Wed Jun 3 20:56:16 2009 From: ken at ...2194... (Ken Thornton-Smith) Date: Wed, 3 Jun 2009 14:56:16 -0400 Subject: [Gambas-user] WAIT in sub reverses number Message-ID: I'm entering numbers from an RFID tag reader into a text box. A keypress event here opens another text box and moves cursor focus. Obviously, the first character opens the second textbox and the rather slow usb puts the remaining characters in the second box. Being lazy, instead of looking for the complete string, I put in WAIT 0.5. This enters the correct string but the string is now in the first box in reverse. Keyboard entry has a similar effect. Gambas 2, no code necessary, works on two machines in any text box. Any theories? From doriano.blengino at ...1909... Fri Jun 5 07:21:16 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Fri, 05 Jun 2009 07:21:16 +0200 Subject: [Gambas-user] WAIT in sub reverses number In-Reply-To: References: Message-ID: <4A28AB4C.5020407@...1909...> Ken Thornton-Smith ha scritto: > I'm entering numbers from an RFID tag reader into a text box. > A keypress event here opens another text box and moves cursor focus. > > Obviously, the first character opens the second textbox and the rather > slow usb puts the remaining characters in the second box. > Being lazy, instead of looking for the complete string, I put in WAIT > 0.5. > > This enters the correct string but the string is now in the first box > in reverse. > Keyboard entry has a similar effect. > > Gambas 2, no code necessary, works on two machines in any text box. > > Any theories? > I am not sure to well understand, but it seems that, for every character, the first textbox looses focus and gains it again. This moves the text cursor at the beginning, so arriving characters are stored in reverse order. Is it this that happens? You can put PRINT statements in the event handlers to trace what controls take focus (and hence, the arriving characters). You can use Application.ActiveControl to know, at any time, what control has the focus. Anyway, try to use a single-shot timer instead of a WAIT: it could behave differently. Hope this helps, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From nando_f at ...951... Fri Jun 5 07:48:50 2009 From: nando_f at ...951... (nando) Date: Fri, 5 Jun 2009 00:48:50 -0500 Subject: [Gambas-user] WAIT in sub reverses number In-Reply-To: <4A28AB4C.5020407@...1909...> References: <4A28AB4C.5020407@...1909...> Message-ID: <20090605053948.M53563@...951...> I had a similar thing happen a while ago. It is caused because of something like this: When a key event happens, there is a key value associated with the event. BUT the WAIT allows the next key event to happen before the first key event actually finishes and exits the SUB for that key value So the next key event, which happens inside the first key event is detected inside while the WAIT is being performed which results in a second key event to fire ... all happening before the original first key event did not actually finish yet. It turns out that all the keys received into the system have key events associated with them, and they are recursively deep due to the WAIT. Then, when there are no more keys, the last most WAIT returns and that key event finishes and that is the first key you see (which is the last one typed) ..and all the events end, producing key strokes in the reverse order. This is also completely possible in VB ---------- Original Message ----------- From: Doriano Blengino To: mailing list for gambas users Sent: Fri, 05 Jun 2009 07:21:16 +0200 Subject: Re: [Gambas-user] WAIT in sub reverses number > Ken Thornton-Smith ha scritto: > > I'm entering numbers from an RFID tag reader into a text box. > > A keypress event here opens another text box and moves cursor focus. > > > > Obviously, the first character opens the second textbox and the rather > > slow usb puts the remaining characters in the second box. > > Being lazy, instead of looking for the complete string, I put in WAIT > > 0.5. > > > > This enters the correct string but the string is now in the first box > > in reverse. > > Keyboard entry has a similar effect. > > > > Gambas 2, no code necessary, works on two machines in any text box. > > > > Any theories? > > > I am not sure to well understand, but it seems that, for every > character, the first textbox looses focus and gains it again. This moves > the text cursor at the beginning, so arriving characters are stored in > reverse order. Is it this that happens? > > You can put PRINT statements in the event handlers to trace what > controls take focus (and hence, the arriving characters). You can use > Application.ActiveControl to know, at any time, what control has the focus. > > Anyway, try to use a single-shot timer instead of a WAIT: it could > behave differently. > > Hope this helps, > > -- > Doriano Blengino > > "Listen twice before you speak. > This is why we have two ears, but only one mouth." > > ------------------------------------------------------------------------------ > OpenSolaris 2009.06 is a cutting edge operating system for enterprises > looking to deploy the next generation of Solaris that includes the latest > innovations from Sun and the OpenSource community. Download a copy and > enjoy capabilities such as Networking, Storage and Virtualization. > Go to: http://p.sf.net/sfu/opensolaris-get > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From berenscott at ...1979... Fri Jun 5 09:29:09 2009 From: berenscott at ...1979... (Beren Scott) Date: Fri, 05 Jun 2009 17:29:09 +1000 Subject: [Gambas-user] integer / string file IO issue Message-ID: <1244186949.5001.157.camel@...57...> Dear users, I am having a strange issue in relation to gambas. First I have: DIM farmid AS NEW Integer[100000] DIM farmx AS NEW Integer[100000] DIM farmy AS NEW Integer[100000] DIM farmwo AS NEW Integer[100000] DIM farmcl AS NEW Integer[100000] DIM farmir AS NEW Integer[100000] DIM farmwh AS NEW Integer[100000] DIM farmmx AS NEW Integer[100000] DIM farmdd AS NEW Integer[100000] DIM farmmm AS NEW Integer[100000] DIM farmyyyy AS NEW Integer[100000] DIM farmhh AS NEW Integer[100000] DIM farmlcav AS NEW Integer[100000] That's fine, then in a file called ff.dat I have the following: 1 142820 149 661 16 14 14 12 0 6 2009 0 My problem is, this code is causing a break: ff = OPEN "~/ff.dat" FOR READ INPUT #ff, farmers PRINT farmers FOR a = 1 TO farmers INPUT #ff, farmid[a - 1], farmx[a - 1], farmy[a - 1], farmwo[a - 1], farmcl[a - 1], farmir[a - 1], farmwh[a - 1], farmdd[a - 1], farmmm[a - 1], farmyyyy[a - 1], farmhh[a - 1] PRINT farmid[a - 1], farmx[a - 1], farmy[a - 1], farmwo[a - 1], farmcl[a - 1], farmir[a - 1], farmwh[a - 1], farmdd[a - 1], farmmm[a - 1], farmyyyy[a - 1], farmhh[a - 1] farmmx[a - 1] = Max(Max(farmwo[a - 1], farmcl[a - 1]), Max(farmcl[a - 1], farmir[a - 1])) PRINT farmmx[a - 1] NEXT CLOSE #ff It's telling me that I am trying to put a string into an integer on the 5th line. Which makes no sence because the file contains no strings, just integers. I am at a loss to work this out. Beren From gambas at ...1... Fri Jun 5 09:40:12 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Fri, 5 Jun 2009 09:40:12 +0200 Subject: [Gambas-user] integer / string file IO issue In-Reply-To: <1244186949.5001.157.camel@...57...> References: <1244186949.5001.157.camel@...57...> Message-ID: <200906050940.12083.gambas@...1...> > Dear users, > > I am having a strange issue in relation to gambas. > > First I have: > > DIM farmid AS NEW Integer[100000] > DIM farmx AS NEW Integer[100000] > DIM farmy AS NEW Integer[100000] > DIM farmwo AS NEW Integer[100000] > DIM farmcl AS NEW Integer[100000] > DIM farmir AS NEW Integer[100000] > DIM farmwh AS NEW Integer[100000] > DIM farmmx AS NEW Integer[100000] > DIM farmdd AS NEW Integer[100000] > DIM farmmm AS NEW Integer[100000] > DIM farmyyyy AS NEW Integer[100000] > DIM farmhh AS NEW Integer[100000] > DIM farmlcav AS NEW Integer[100000] > A few megabytes used there. It reminds me my Amstrad CPC464 when I had 48K memory free... :-) > That's fine, then in a file called ff.dat I have the following: > > 1 > 142820 149 661 16 14 14 12 0 6 2009 0 > > My problem is, this code is causing a break: > > ff = OPEN "~/ff.dat" FOR READ > INPUT #ff, farmers > PRINT farmers > FOR a = 1 TO farmers > INPUT #ff, farmid[a - 1], farmx[a - 1], farmy[a - 1], farmwo[a - 1], > farmcl[a - 1], farmir[a - 1], farmwh[a - 1], farmdd[a - 1], farmmm[a - > 1], farmyyyy[a - 1], farmhh[a - 1] > PRINT farmid[a - 1], farmx[a - 1], farmy[a - 1], farmwo[a - 1], > farmcl[a - 1], farmir[a - 1], farmwh[a - 1], farmdd[a - 1], farmmm[a - > 1], farmyyyy[a - 1], farmhh[a - 1] > farmmx[a - 1] = Max(Max(farmwo[a - 1], farmcl[a - 1]), Max(farmcl[a > - 1], farmir[a - 1])) > PRINT farmmx[a - 1] > NEXT > CLOSE #ff > > It's telling me that I am trying to put a string into an integer on the > 5th line. Which makes no sence because the file contains no strings, > just integers. I am at a loss to work this out. > > Beren > Please provide your project source, so that I can see what is wrong exactly. Regards, -- Beno?t From berenscott at ...1979... Fri Jun 5 10:00:02 2009 From: berenscott at ...1979... (Beren Scott) Date: Fri, 05 Jun 2009 18:00:02 +1000 Subject: [Gambas-user] integer / string file IO issue In-Reply-To: <200906050940.12083.gambas@...1...> References: <1244186949.5001.157.camel@...57...> <200906050940.12083.gambas@...1...> Message-ID: <1244188802.5001.160.camel@...57...> I am sending the project source. On Fri, 2009-06-05 at 09:40 +0200, Beno?t Minisini wrote: > > Dear users, > > > > I am having a strange issue in relation to gambas. > > > > First I have: > > > > DIM farmid AS NEW Integer[100000] > > DIM farmx AS NEW Integer[100000] > > DIM farmy AS NEW Integer[100000] > > DIM farmwo AS NEW Integer[100000] > > DIM farmcl AS NEW Integer[100000] > > DIM farmir AS NEW Integer[100000] > > DIM farmwh AS NEW Integer[100000] > > DIM farmmx AS NEW Integer[100000] > > DIM farmdd AS NEW Integer[100000] > > DIM farmmm AS NEW Integer[100000] > > DIM farmyyyy AS NEW Integer[100000] > > DIM farmhh AS NEW Integer[100000] > > DIM farmlcav AS NEW Integer[100000] > > > > A few megabytes used there. It reminds me my Amstrad CPC464 when I had 48K > memory free... :-) > > > That's fine, then in a file called ff.dat I have the following: > > > > 1 > > 142820 149 661 16 14 14 12 0 6 2009 0 > > > > My problem is, this code is causing a break: > > > > ff = OPEN "~/ff.dat" FOR READ > > INPUT #ff, farmers > > PRINT farmers > > FOR a = 1 TO farmers > > INPUT #ff, farmid[a - 1], farmx[a - 1], farmy[a - 1], farmwo[a - 1], > > farmcl[a - 1], farmir[a - 1], farmwh[a - 1], farmdd[a - 1], farmmm[a - > > 1], farmyyyy[a - 1], farmhh[a - 1] > > PRINT farmid[a - 1], farmx[a - 1], farmy[a - 1], farmwo[a - 1], > > farmcl[a - 1], farmir[a - 1], farmwh[a - 1], farmdd[a - 1], farmmm[a - > > 1], farmyyyy[a - 1], farmhh[a - 1] > > farmmx[a - 1] = Max(Max(farmwo[a - 1], farmcl[a - 1]), Max(farmcl[a > > - 1], farmir[a - 1])) > > PRINT farmmx[a - 1] > > NEXT > > CLOSE #ff > > > > It's telling me that I am trying to put a string into an integer on the > > 5th line. Which makes no sence because the file contains no strings, > > just integers. I am at a loss to work this out. > > > > Beren > > > > Please provide your project source, so that I can see what is wrong exactly. > > Regards, > -------------- next part -------------- ' Gambas module file PUBLIC SUB Main() DIM world AS String 'world string DIM mainx AS Integer 'main village x coord DIM mainy AS Integer 'main village y coord DIM timelag AS Integer 'timelag between server and player DIM wci AS NEW Integer[30] 'wood clay iron data DIM whc AS NEW Integer[30] 'warehouse capacity data DIM df AS File 'df.dat DIM vf AS File 'vf.dat DIM ff AS File 'ff.dat DIM villages AS Integer 'village count DIM vllid AS NEW Integer[1000] 'village id DIM vllx AS NEW Integer[1000] 'village x DIM vlly AS NEW Integer[1000] 'village y DIM m2v AS NEW Float[1000] 'main to village dist DIM vllurl AS NEW String[1000] 'village url DIM farmers AS Integer DIM farmid AS NEW Integer[10000] DIM farmx AS NEW Integer[10000] DIM farmy AS NEW Integer[10000] DIM farmwo AS NEW Integer[10000] DIM farmcl AS NEW Integer[10000] DIM farmir AS NEW Integer[10000] DIM farmwh AS NEW Integer[10000] DIM farmmx AS NEW Integer[10000] DIM farmdd AS NEW Integer[10000] DIM farmmm AS NEW Integer[10000] DIM farmyyyy AS NEW Integer[10000] DIM farmhh AS NEW Integer[10000] DIM farmlcav AS NEW Integer[10000] DIM farmeco AS NEW Float[10000] DIM farmdist AS NEW Float[10000] DIM farmurl AS NEW String[10000] DIM curtime AS Date ' random varibles DIM a AS Integer df = OPEN "~/df.dat" FOR READ ' df.dat file read INPUT #df, world, mainx, mainy, timelag PRINT world, mainx, mainy, timelag FOR a = 1 TO 30 INPUT #df, wci[a - 1] PRINT wci[a - 1] NEXT FOR a = 1 TO 30 INPUT #df, whc[a - 1] PRINT whc[a - 1] NEXT CLOSE #df vf = OPEN "~/vf.dat" FOR READ 'vf.dat file read INPUT #vf, villages PRINT villages FOR a = 1 TO villages INPUT #vf, vllid[a - 1], vllx[a - 1], vlly[a - 1] PRINT vllid[a - 1], vllx[a - 1], vlly[a - 1] m2v[a - 1] = Sqr((mainx - vllx[a - 1]) ^ 2 + (mainy - vlly[a - 1]) ^ 2) PRINT m2v[a - 1] vllurl[a - 1] = "http://" & world & "/game.php?village=" & Str$(vllid[a - 1]) & "&screen=place&mode=command&target=" PRINT vllurl[a - 1] NEXT CLOSE #vf ff = OPEN "~/ff.dat" FOR READ INPUT #ff, farmers PRINT farmers FOR a = 1 TO farmers INPUT #ff, farmid[a - 1], farmx[a - 1], farmy[a - 1], farmwo[a - 1], farmcl[a - 1], farmir[a - 1], farmwh[a - 1], farmdd[a - 1], farmmm[a - 1], farmyyyy[a - 1], farmhh[a - 1] PRINT farmid[a - 1], farmx[a - 1], farmy[a - 1], farmwo[a - 1], farmcl[a - 1], farmir[a - 1], farmwh[a - 1], farmdd[a - 1], farmmm[a - 1], farmyyyy[a - 1], farmhh[a - 1] farmmx[a - 1] = Max(Max(farmwo[a - 1], farmcl[a - 1]), Max(farmcl[a - 1], farmir[a - 1])) PRINT farmmx[a - 1] NEXT CLOSE #ff END From gambas at ...1... Fri Jun 5 10:06:35 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Fri, 5 Jun 2009 10:06:35 +0200 Subject: [Gambas-user] integer / string file IO issue In-Reply-To: <1244188802.5001.160.camel@...57...> References: <1244186949.5001.157.camel@...57...> <200906050940.12083.gambas@...1...> <1244188802.5001.160.camel@...57...> Message-ID: <200906051006.35943.gambas@...1...> > I am sending the project source. > Can you send the exact *.dat file too? -- Beno?t From berenscott at ...1979... Fri Jun 5 10:13:01 2009 From: berenscott at ...1979... (Beren Scott) Date: Fri, 05 Jun 2009 18:13:01 +1000 Subject: [Gambas-user] integer / string file IO issue In-Reply-To: <200906051006.35943.gambas@...1...> References: <1244186949.5001.157.camel@...57...> <200906050940.12083.gambas@...1...> <1244188802.5001.160.camel@...57...> <200906051006.35943.gambas@...1...> Message-ID: <1244189581.5001.162.camel@...57...> This one has been making me pull hair out :P On Fri, 2009-06-05 at 10:06 +0200, Beno?t Minisini wrote: > > I am sending the project source. > > > > Can you send the exact *.dat file too? > -------------- next part -------------- en37.tribalwars.net 152 659 8 30 35 41 47 55 64 74 86 100 117 136 158 184 214 249 289 337 391 455 530 616 717 833 969 1127 1311 1525 1774 2063 2400 1000 1229 1512 1859 2285 2810 3454 4247 5222 6420 7893 9705 11932 14670 18037 22177 27266 33523 41217 50675 62305 76604 94184 115798 142373 175047 215219 264611 325337 400000 -------------- next part -------------- 1 142820 149 661 16 14 14 12 0 6 2009 0 -------------- next part -------------- 1 153456 152 659 From ron at ...1740... Fri Jun 5 09:54:34 2009 From: ron at ...1740... (Ron) Date: Fri, 05 Jun 2009 09:54:34 +0200 Subject: [Gambas-user] OT way back when In-Reply-To: <200906050940.12083.gambas@...1...> References: <1244186949.5001.157.camel@...57...> <200906050940.12083.gambas@...1...> Message-ID: <4A28CF3A.8080007@...1740...> Beno?t Minisini wrote: >> > > A few megabytes used there. It reminds me my Amstrad CPC464 when I had 48K > memory free... :-) > > 48K wow! I had a Sinclair ZX81 once, used it on a camping holiday, it worked on the car battery of my dads car. And it had 1K of memory, thats a lot if you need to retype it everytime you reset your computer, didn't had any other storage at that time. ;-) Regards, Ron_2nd. From eilert-sprachen at ...221... Fri Jun 5 11:04:36 2009 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Fri, 05 Jun 2009 11:04:36 +0200 Subject: [Gambas-user] New name not shown in IDE at first (Gambas2) Message-ID: <4A28DFA4.4030703@...221...> Just had this again: - an existing form with some gadgets on it - one of the drop-down lists wasn't used yet in code - the first time I type the name of this drop-down list (in this case it was just "Names"), the name is not offered in auto-completion. Only when I write it completely AND a fullstop, the list of events is offered. - after this first time, the name appears in auto-completion So, my question is: what was the idea behind this behaviour? Sometimes in the past it was slightly confusing. Regards Rolf From steven at ...2097... Fri Jun 5 11:32:25 2009 From: steven at ...2097... (Steven James Drinnan) Date: Fri, 05 Jun 2009 17:32:25 +0800 Subject: [Gambas-user] OT way back when In-Reply-To: <4A28CF3A.8080007@...1740...> References: <1244186949.5001.157.camel@...57...> <200906050940.12083.gambas@...1...> <4A28CF3A.8080007@...1740...> Message-ID: <1244194345.2920.3.camel@...2149...> Poor boy, at least I started on Sinclair spectrum 16kb. On Fri, 2009-06-05 at 09:54 +0200, Ron wrote: > Beno?t Minisini wrote: > >> > > > > A few megabytes used there. It reminds me my Amstrad CPC464 when I had 48K > > memory free... :-) > > > > > 48K wow! > > I had a Sinclair ZX81 once, used it on a camping holiday, it worked on > the car battery of my dads car. > And it had 1K of memory, thats a lot if you need to retype it everytime > you reset your computer, didn't had any other storage at that time. ;-) > > Regards, > Ron_2nd. > > > ------------------------------------------------------------------------------ > OpenSolaris 2009.06 is a cutting edge operating system for enterprises > looking to deploy the next generation of Solaris that includes the latest > innovations from Sun and the OpenSource community. Download a copy and > enjoy capabilities such as Networking, Storage and Virtualization. > Go to: http://p.sf.net/sfu/opensolaris-get > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From ronstk at ...239... Fri Jun 5 14:15:21 2009 From: ronstk at ...239... (Ron_1st) Date: Fri, 5 Jun 2009 14:15:21 +0200 Subject: [Gambas-user] Very OT way back when In-Reply-To: <4A28CF3A.8080007@...1740...> References: <1244186949.5001.157.camel@...57...> <200906050940.12083.gambas@...1...> <4A28CF3A.8080007@...1740...> Message-ID: <200906051415.22411.ronstk@...239...> On Friday 05 June 2009, Ron wrote: > Beno?t Minisini wrote: > >> > > > > A few megabytes used there. It reminds me my Amstrad CPC464 when I had 48K > > memory free... :-) > > > > > 48K wow! > > I had a Sinclair ZX81 once, used it on a camping holiday, it worked on > the car battery of my dads car. > And it had 1K of memory, thats a lot if you need to retype it everytime > you reset your computer, didn't had any other storage at that time. ;-) > > Regards, > Ron_2nd. > > The good old times :) I had TR80 with 4kb (black/white screen) and build myself a memry interface to expand to 48K, later via mapping as done by MSX to 2024KB. somewhere 1983. Did run TRS-DOS and CP/M (zcpr3) with task switching at same time. CPC64 was a nice thing too. Best regards, Ron_1st -- 111.111111 x 111.111111 = 12345.678987654321 From berenscott at ...1979... Fri Jun 5 16:13:31 2009 From: berenscott at ...1979... (Beren Scott) Date: Sat, 06 Jun 2009 00:13:31 +1000 Subject: [Gambas-user] integer / string file IO issue In-Reply-To: <200906051006.35943.gambas@...1...> References: <1244186949.5001.157.camel@...57...> <200906050940.12083.gambas@...1...> <1244188802.5001.160.camel@...57...> <200906051006.35943.gambas@...1...> Message-ID: <1244211211.5001.166.camel@...57...> To fix this issue I have changed all file reading varibles to strings, and will convert them afterwards, but it makes very little sense why it is having trouble reading integers, some work, some don't, very intermittent, take for example, for me, the df.dat words, the vf.dat sometimes works, and the ff.dat never works. This is interesting, and I hope that there is a simple fix for this, or that it can be fixed soon. On Fri, 2009-06-05 at 10:06 +0200, Beno?t Minisini wrote: > > I am sending the project source. > > > > Can you send the exact *.dat file too? > From gambas at ...1... Fri Jun 5 20:01:59 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Fri, 5 Jun 2009 20:01:59 +0200 Subject: [Gambas-user] integer / string file IO issue In-Reply-To: <1244189581.5001.162.camel@...57...> References: <1244186949.5001.157.camel@...57...> <200906051006.35943.gambas@...1...> <1244189581.5001.162.camel@...57...> Message-ID: <200906052001.59483.gambas@...1...> > This one has been making me pull hair out :P > > On Fri, 2009-06-05 at 10:06 +0200, Beno?t Minisini wrote: > > > I am sending the project source. > > > > Can you send the exact *.dat file too? Well, everything works correctly and as expected on my machine, both with Gambas 2 and the development version. Which version of Gambas do you use? I suggest that you upgrade to the latest one. Regards, -- Beno?t From gambas at ...1... Fri Jun 5 20:03:04 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Fri, 5 Jun 2009 20:03:04 +0200 Subject: [Gambas-user] list:drag + double click together. In-Reply-To: <200906010738.51112.rterry@...1946...> References: <200906010738.51112.rterry@...1946...> Message-ID: <200906052003.04884.gambas@...1...> > I notice on the drag sample the event is on the mouse down event. > > This seems to make it impossible to then use the double click event on the > same list. (I'm dragging from a list to a textbox). > > Any ideas/experience. > > Regards > > Richard > Sorry, I'm not sure to really understand. Can you be more precise about what you did, and what does not behave as expected? -- Beno?t From leonardo at ...1237... Fri Jun 5 23:49:47 2009 From: leonardo at ...1237... (Leonardo Miliani) Date: Fri, 05 Jun 2009 23:49:47 +0200 Subject: [Gambas-user] Release of Gambas 2.13.1 In-Reply-To: <200906042243.22158.lordheavym@...626...> References: <200905262155.31613.gambas@...1...> <200906040030.15884.lordheavym@...626...> <4A27E621.7030608@...1237...> <200906042243.22158.lordheavym@...626...> Message-ID: <4A2992FB.3090901@...1237...> Another bug in SVN version 2002. This is related to a DB component too (gb.corba)... CCorbaApplication.cpp: In function ?CORBA::Object* getObjectReference(CORBA::ORB*, CCORBA_COSNAMING*)?: CCorbaApplication.cpp:135: error: exception handling disabled, use -fexceptions to enable CCorbaApplication.cpp:135: error: ?...? handler must be the last handler for its try block CCorbaApplication.cpp:201: error: ?...? handler must be the last handler for its try block CCorbaApplication.cpp:207: error: ?...? handler must be the last handler for its try block CCorbaApplication.cpp: In function ?void CCORBA_APPLICATION_InitIOR(void*, void*)?: CCorbaApplication.cpp:665: error: ?...? handler must be the last handler for its try block CCorbaApplication.cpp:669: error: ?...? handler must be the last handler for its try block CCorbaApplication.cpp:673: error: ?...? handler must be the last handler for its try block CCorbaApplication.cpp:677: error: ?...? handler must be the last handler for its try block CCorbaApplication.cpp: In function ?void CCORBA_APPLICATION_InitURI(void*, void*)?: CCorbaApplication.cpp:743: error: ?...? handler must be the last handler for its try block CCorbaApplication.cpp:747: error: ?...? handler must be the last handler for its try block CCorbaApplication.cpp:751: error: ?...? handler must be the last handler for its try block CCorbaApplication.cpp:755: error: ?...? handler must be the last handler for its try block make[4]: *** [CCorbaApplication.lo] Error 1 make[4]: Leaving directory `/home/leo/Documenti/Software/Programmazione/Gambas/svn/2.0/gb.corba/src' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/home/leo/Documenti/Software/Programmazione/Gambas/svn/2.0/gb.corba' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/leo/Documenti/Software/Programmazione/Gambas/svn/2.0/gb.corba' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/leo/Documenti/Software/Programmazione/Gambas/svn/2.0' make: *** [all] Error 2 -- Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Scegli software opensource - Choose opensource software Co-fondatore di Gambas-it.org Il sito di riferimento della comunit? italiana degli utenti di Gambas www.gambas-it.org From rterry at ...1946... Sat Jun 6 01:15:54 2009 From: rterry at ...1946... (richard terry) Date: Sat, 6 Jun 2009 09:15:54 +1000 Subject: [Gambas-user] OT way back when In-Reply-To: <4A28CF3A.8080007@...1740...> References: <1244186949.5001.157.camel@...57...> <200906050940.12083.gambas@...1...> <4A28CF3A.8080007@...1740...> Message-ID: <200906060915.54410.rterry@...1946...> On Fri, 5 Jun 2009 05:54:34 pm Ron wrote: > Beno?t Minisini wrote: > > A few megabytes used there. It reminds me my Amstrad CPC464 when I had > > 48K memory free... :-) > > 48K wow! Hey, on my first computer a T1994 there was 16K memory, but one could purchase an expansion box the size of a small suitcase and insert (with handles) a (gold plated contacts) card of 32K which cost a small fortune!. Still have it in the attic. Richard > > I had a Sinclair ZX81 once, used it on a camping holiday, it worked on > the car battery of my dads car. > And it had 1K of memory, thats a lot if you need to retype it everytime > you reset your computer, didn't had any other storage at that time. ;-) > > Regards, > Ron_2nd. > > > --------------------------------------------------------------------------- >--- OpenSolaris 2009.06 is a cutting edge operating system for enterprises > looking to deploy the next generation of Solaris that includes the latest > innovations from Sun and the OpenSource community. Download a copy and > enjoy capabilities such as Networking, Storage and Virtualization. Go to: > http://p.sf.net/sfu/opensolaris-get > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From svitoos at ...626... Sat Jun 6 01:26:17 2009 From: svitoos at ...626... (Victor Sidorov) Date: Sat, 6 Jun 2009 03:26:17 +0400 Subject: [Gambas-user] Strange behavior NEW In-Reply-To: References: Message-ID: <200906060326.17326.svitoos@...626...> If a constructor call with the parameter-object is not the type for which it is declared, the error "Type mismatch" does not occur. Constructor is not running. But destructor is called. Program execution is break on the line with the NEW. Version - 2.13.1. A small project is attached. Sorry for my english -------------- next part -------------- A non-text attachment was scrubbed... Name: SilentError-0.0.8.tar.gz Type: application/x-tgz Size: 7668 bytes Desc: not available URL: From lordheavym at ...626... Sat Jun 6 07:07:19 2009 From: lordheavym at ...626... (Laurent Carlier) Date: Sat, 6 Jun 2009 07:07:19 +0200 Subject: [Gambas-user] Release of Gambas 2.13.1 In-Reply-To: <4A2992FB.3090901@...1237...> References: <200905262155.31613.gambas@...1...> <200906042243.22158.lordheavym@...626...> <4A2992FB.3090901@...1237...> Message-ID: <200906060707.20087.lordheavym@...626...> Le vendredi 05 juin 2009 23:49:47 Leonardo Miliani, vous avez ?crit : > Another bug in SVN version 2002. > This is related to a DB component too (gb.corba)... > > > CCorbaApplication.cpp: In function ?CORBA::Object* > getObjectReference(CORBA::ORB*, CCORBA_COSNAMING*)?: > CCorbaApplication.cpp:135: error: exception handling disabled, use > -fexceptions to enable > CCorbaApplication.cpp:135: error: ?...? handler must be the last handler > for its try block > CCorbaApplication.cpp:201: error: ?...? handler must be the last handler > for its try block > CCorbaApplication.cpp:207: error: ?...? handler must be the last handler > for its try block > CCorbaApplication.cpp: In function ?void > CCORBA_APPLICATION_InitIOR(void*, void*)?: > CCorbaApplication.cpp:665: error: ?...? handler must be the last handler > for its try block > CCorbaApplication.cpp:669: error: ?...? handler must be the last handler > for its try block > CCorbaApplication.cpp:673: error: ?...? handler must be the last handler > for its try block > CCorbaApplication.cpp:677: error: ?...? handler must be the last handler > for its try block > CCorbaApplication.cpp: In function ?void > CCORBA_APPLICATION_InitURI(void*, void*)?: > CCorbaApplication.cpp:743: error: ?...? handler must be the last handler > for its try block > CCorbaApplication.cpp:747: error: ?...? handler must be the last handler > for its try block > CCorbaApplication.cpp:751: error: ?...? handler must be the last handler > for its try block > CCorbaApplication.cpp:755: error: ?...? handler must be the last handler > for its try block > make[4]: *** [CCorbaApplication.lo] Error 1 > make[4]: Leaving directory > `/home/leo/Documenti/Software/Programmazione/Gambas/svn/2.0/gb.corba/src' > make[3]: *** [all-recursive] Error 1 > make[3]: Leaving directory > `/home/leo/Documenti/Software/Programmazione/Gambas/svn/2.0/gb.corba' > make[2]: *** [all] Error 2 > make[2]: Leaving directory > `/home/leo/Documenti/Software/Programmazione/Gambas/svn/2.0/gb.corba' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory > `/home/leo/Documenti/Software/Programmazione/Gambas/svn/2.0' > make: *** [all] Error 2 Thks, fix in svn commit #2003 Regards, From berenscott at ...1979... Sat Jun 6 08:07:13 2009 From: berenscott at ...1979... (Beren Scott) Date: Sat, 06 Jun 2009 16:07:13 +1000 Subject: [Gambas-user] integer / string file IO issue In-Reply-To: <200906052001.59483.gambas@...1...> References: <1244186949.5001.157.camel@...57...> <200906051006.35943.gambas@...1...> <1244189581.5001.162.camel@...57...> <200906052001.59483.gambas@...1...> Message-ID: <1244268433.5001.169.camel@...57...> On Fri, 2009-06-05 at 20:01 +0200, Beno?t Minisini wrote: > > This one has been making me pull hair out :P > > > > On Fri, 2009-06-05 at 10:06 +0200, Beno?t Minisini wrote: > > > > I am sending the project source. > > > > > > Can you send the exact *.dat file too? > > Well, everything works correctly and as expected on my machine, both with > Gambas 2 and the development version. > > Which version of Gambas do you use? I suggest that you upgrade to the latest > one. > > Regards, > Am running version 2.13 now, compared to previously 2.7, though the problem is still there. Is there any way to remove this error? Beren Scott From gambas at ...1... Sat Jun 6 14:11:56 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Sat, 6 Jun 2009 14:11:56 +0200 Subject: [Gambas-user] integer / string file IO issue In-Reply-To: <1244268433.5001.169.camel@...57...> References: <1244186949.5001.157.camel@...57...> <200906052001.59483.gambas@...1...> <1244268433.5001.169.camel@...57...> Message-ID: <200906061411.56816.gambas@...1...> > On Fri, 2009-06-05 at 20:01 +0200, Beno?t Minisini wrote: > > > This one has been making me pull hair out :P > > > > > > On Fri, 2009-06-05 at 10:06 +0200, Beno?t Minisini wrote: > > > > > I am sending the project source. > > > > > > > > Can you send the exact *.dat file too? > > > > Well, everything works correctly and as expected on my machine, both with > > Gambas 2 and the development version. > > > > Which version of Gambas do you use? I suggest that you upgrade to the > > latest one. > > > > Regards, > > Am running version 2.13 now, compared to previously 2.7, though the > problem is still there. Is there any way to remove this error? > > Beren Scott > Are you sure that you sent me exactly the same code and data files as you run? Can you send me an archive of the project instead of just the module? Can you give more details about your system: which OS, distribution, CPU...? If possible, can you grant me an ssh access to your machine so that I debug directly on it? -- Beno?t From berenscott at ...1979... Sat Jun 6 14:41:29 2009 From: berenscott at ...1979... (Beren Scott) Date: Sat, 06 Jun 2009 22:41:29 +1000 Subject: [Gambas-user] integer / string file IO issue In-Reply-To: <200906061411.56816.gambas@...1...> References: <1244186949.5001.157.camel@...57...> <200906052001.59483.gambas@...1...> <1244268433.5001.169.camel@...57...> <200906061411.56816.gambas@...1...> Message-ID: <1244292090.5001.180.camel@...57...> On Sat, 2009-06-06 at 14:11 +0200, Beno?t Minisini wrote: > > On Fri, 2009-06-05 at 20:01 +0200, Beno?t Minisini wrote: > > > > This one has been making me pull hair out :P > > > > > > > > On Fri, 2009-06-05 at 10:06 +0200, Beno?t Minisini wrote: > > > > > > I am sending the project source. > > > > > > > > > > Can you send the exact *.dat file too? > > > > > > Well, everything works correctly and as expected on my machine, both with > > > Gambas 2 and the development version. > > > > > > Which version of Gambas do you use? I suggest that you upgrade to the > > > latest one. > > > > > > Regards, > > > > Am running version 2.13 now, compared to previously 2.7, though the > > problem is still there. Is there any way to remove this error? > > > > Beren Scott > > > > Are you sure that you sent me exactly the same code and data files as you run? > Can you send me an archive of the project instead of just the module? Can you > give more details about your system: which OS, distribution, CPU...? > > If possible, can you grant me an ssh access to your machine so that I debug > directly on it? > I'll describe the events exactly as they occured. This was originally running version 2.7 due to that being what was available on apt-get. I was typing away at the code, and the problem which occured was, whilst typing the command: INPUT #ff, farmid[a - 1], farmx[a - 1], farmy[a - 1], farmwo[a - 1], farmcl[a - 1], farmir[a - 1], farmwh[a - 1], farmdd[a - 1], farmmm[a - 1], farmyyyy[a - 1], farmhh[a - 1] Each time I would place the "-" the cursor would for some reason appear on the left of the "-" I had just placed, so then I would scroll over it and place the "1" next to it, and the same thing would occur. I have no idea why it was doing it, but sure enough, by the end of the code, this line was the exact line that was giving up the error. The interesting thing is, it isn't always the line that throws up the type mismatch, sometimes it occurs earlier on in the code on the vf.dat file. It occurs sometimes, but not always. I have upgraded to version 2.13 and the code still stops at that line. I changed all the integers to strings or varients, and put in val() into the command: farmmx[a - 1] = Max(Max(Val(farmwo[a - 1]), Val(farmcl[a - 1])), Max(Val(farmcl[a - 1]), Val(farmir[a - 1]))) Now, this line is the one it stops on. Now, I just don't get it, the text file has absolutely nothing but numbers in it, yet it's getting strings and not integers and unless there is some hidden text burried within the text file that doesn't appear in an editor, I'm damned if I can understand this issue. The OS is debian lenny, cpu is amd64. I am at a loss to understand the problem, it defeats my logic. Beren Scott From gambas at ...1... Sat Jun 6 14:54:05 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Sat, 6 Jun 2009 14:54:05 +0200 Subject: [Gambas-user] integer / string file IO issue In-Reply-To: <1244292090.5001.180.camel@...57...> References: <1244186949.5001.157.camel@...57...> <200906061411.56816.gambas@...1...> <1244292090.5001.180.camel@...57...> Message-ID: <200906061454.05850.gambas@...1...> > > The OS is debian lenny, cpu is amd64. > Uh uh. Maybe it is a 64-bits bug? -- Beno?t From jussi.lahtinen at ...626... Sat Jun 6 23:24:54 2009 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 7 Jun 2009 00:24:54 +0300 Subject: [Gambas-user] integer / string file IO issue In-Reply-To: <200906061454.05850.gambas@...1...> References: <1244186949.5001.157.camel@...57...> <200906061411.56816.gambas@...1...> <1244292090.5001.180.camel@...57...> <200906061454.05850.gambas@...1...> Message-ID: <384d3900906061424q72f69382ifbc5a11c05931f89@...627...> Confirmed problem at Ubuntu 9.04 64bit with Gambas 2.10. About 50% of runs halt with described error message. Jussi 2009/6/6 Beno?t Minisini : >> >> The OS is debian lenny, cpu is amd64. >> > > Uh uh. Maybe it is a 64-bits bug? > > -- > Beno?t > > ------------------------------------------------------------------------------ > OpenSolaris 2009.06 is a cutting edge operating system for enterprises > looking to deploy the next generation of Solaris that includes the latest > innovations from Sun and the OpenSource community. Download a copy and > enjoy capabilities such as Networking, Storage and Virtualization. > Go to: http://p.sf.net/sfu/opensolaris-get > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Sat Jun 6 23:44:33 2009 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 7 Jun 2009 00:44:33 +0300 Subject: [Gambas-user] integer / string file IO issue In-Reply-To: <384d3900906061424q72f69382ifbc5a11c05931f89@...627...> References: <1244186949.5001.157.camel@...57...> <200906061411.56816.gambas@...1...> <1244292090.5001.180.camel@...57...> <200906061454.05850.gambas@...1...> <384d3900906061424q72f69382ifbc5a11c05931f89@...627...> Message-ID: <384d3900906061444n4e3c39bcgeb0177deff053418@...627...> ...And problem do NOT occur on same system with Gambas3 revision 1995. Tried to run 30 times without no problems. Output to console was exactly same with successful run with Gambas2 and with any run with Gambas3. Jussi On Sun, Jun 7, 2009 at 00:24, Jussi Lahtinen wrote: > Confirmed problem at Ubuntu 9.04 64bit with Gambas 2.10. > About 50% of runs halt with described error message. > > > Jussi > > > > 2009/6/6 Beno?t Minisini : >>> >>> The OS is debian lenny, cpu is amd64. >>> >> >> Uh uh. Maybe it is a 64-bits bug? >> >> -- >> Beno?t >> >> ------------------------------------------------------------------------------ >> OpenSolaris 2009.06 is a cutting edge operating system for enterprises >> looking to deploy the next generation of Solaris that includes the latest >> innovations from Sun and the OpenSource community. Download a copy and >> enjoy capabilities such as Networking, Storage and Virtualization. >> Go to: http://p.sf.net/sfu/opensolaris-get >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > From rterry at ...1946... Sun Jun 7 03:02:30 2009 From: rterry at ...1946... (richard terry) Date: Sun, 7 Jun 2009 11:02:30 +1000 Subject: [Gambas-user] Gambas on Mac Message-ID: <200906071102.30284.rterry@...1946...> Possible? Any info appreciated. Richard From gambas at ...1... Sun Jun 7 03:14:33 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Sun, 7 Jun 2009 03:14:33 +0200 Subject: [Gambas-user] Server socket problems (episode II) Message-ID: <200906070314.33291.gambas@...1...> Hi, There is a design problem in the networking component (and in Gambas streams generally). You cannot send data on demand. Annoying if you want to write a file server for example... So I'm trying to solve that in Gambas 3 - I'm afraid I won't be able to backport it to Gambas 2... I added a "Write" event to the Socket class. This event is raised after you have wrote something on the Socket, *and* when writing is possible again. During the event handler of the "Write" event, you must write the data you want to sent in small pieces. If you write too much data during one want, you may block! The "Write" event will be raised once, unless you actually write something during its event handler. Then it will be raised again. A better solution is setting the Blocking property of the Socket to False, and then writing inside the Write event handler until an error is raised. If this error is actually the write() system call telling that the internal buffer is full, then the Write event will be raised later again. Otherwise this a true error and the socket is closed. Only the Socket class is fixed, but I'd like to find a solution for every stream. I'm not sure I will, because File, Process and Socket are very different beasts. Anyway this is better than nothing at the moment! So here is a little example of how the ServerSocket example was modified: ------------------------------------------------------------------------- Public Sub Server_Connection(Host As String) Dim Obj As Socket Obj = Server.Accept() Obj.Blocking = False ... End Public Sub Socket_Read() Dim sBuf As String ' Read the request Read #Last, sBuf, Lof(Last) ' Use the new Socket Tag property to register what we already sent Last.Tag = [0, sBuf] ' Call the write handler by hand to start the writing Socket_Write End Public Sub Socket_Write() Dim hSocket As Socket = Last Dim iInd As Integer ' If we write nothing, the Write event won't be raise again If IsNull(hSocket.Tag) Then Return iInd = hSocket.Tag[0] ' Write 1000 lines of text Do Inc iInd If iInd > 1000 Then hSocket.Tag = Null Return Endif Try Print #hSocket, iInd; ":";; hSocket.Tag[1]; Space$(512) ' If there is an error, we break ' If the error is actually a write buffer full, do not worry, the ' Write event will be raised again If Error Then Break Loop hSocket.Tag[0] = iInd End ------------------------------------------------------------------------- I hope the way of using that new feature is clear! Regards, -- Beno?t From berenscott at ...1979... Sun Jun 7 09:23:45 2009 From: berenscott at ...1979... (Beren Scott) Date: Sun, 07 Jun 2009 17:23:45 +1000 Subject: [Gambas-user] integer / string file IO issue In-Reply-To: <384d3900906061424q72f69382ifbc5a11c05931f89@...627...> References: <1244186949.5001.157.camel@...57...> <200906061411.56816.gambas@...1...> <1244292090.5001.180.camel@...57...> <200906061454.05850.gambas@...1...> <384d3900906061424q72f69382ifbc5a11c05931f89@...627...> Message-ID: <1244359425.5001.205.camel@...57...> So, it's a 64bit issue, is there a fix for this yet? On Sun, 2009-06-07 at 00:24 +0300, Jussi Lahtinen wrote: > Confirmed problem at Ubuntu 9.04 64bit with Gambas 2.10. > About 50% of runs halt with described error message. > > > Jussi > > > > 2009/6/6 Beno?t Minisini : > >> > >> The OS is debian lenny, cpu is amd64. > >> > > > > Uh uh. Maybe it is a 64-bits bug? > > > > -- > > Beno?t > > > > ------------------------------------------------------------------------------ > > OpenSolaris 2009.06 is a cutting edge operating system for enterprises > > looking to deploy the next generation of Solaris that includes the latest > > innovations from Sun and the OpenSource community. Download a copy and > > enjoy capabilities such as Networking, Storage and Virtualization. > > Go to: http://p.sf.net/sfu/opensolaris-get > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > OpenSolaris 2009.06 is a cutting edge operating system for enterprises > looking to deploy the next generation of Solaris that includes the latest > innovations from Sun and the OpenSource community. Download a copy and > enjoy capabilities such as Networking, Storage and Virtualization. > Go to: http://p.sf.net/sfu/opensolaris-get > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Sun Jun 7 11:20:00 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Sun, 7 Jun 2009 11:20:00 +0200 Subject: [Gambas-user] integer / string file IO issue In-Reply-To: <1244359425.5001.205.camel@...57...> References: <1244186949.5001.157.camel@...57...> <384d3900906061424q72f69382ifbc5a11c05931f89@...627...> <1244359425.5001.205.camel@...57...> Message-ID: <200906071120.01101.gambas@...1...> > So, it's a 64bit issue, is there a fix for this yet? > I'm not sure, but I guess so. I was working on the networking component, so I was busy. Now I'm free to look at that bug! Regards, -- Beno?t From gambas at ...1... Sun Jun 7 12:19:24 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Sun, 7 Jun 2009 12:19:24 +0200 Subject: [Gambas-user] integer / string file IO issue In-Reply-To: <200906071120.01101.gambas@...1...> References: <1244186949.5001.157.camel@...57...> <1244359425.5001.205.camel@...57...> <200906071120.01101.gambas@...1...> Message-ID: <200906071219.24730.gambas@...1...> > > So, it's a 64bit issue, is there a fix for this yet? > > I'm not sure, but I guess so. I was working on the networking component, so > I was busy. Now I'm free to look at that bug! > > Regards, OK, the bug is fixed in revision #2005! This was not a 64 bits bug, but two uninitialized flags that made INPUT (and LINE INPUT) becoming bad only on 64 bits systems. -- Beno?t From gambas at ...1... Sun Jun 7 12:25:31 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Sun, 7 Jun 2009 12:25:31 +0200 Subject: [Gambas-user] integer / string file IO issue In-Reply-To: <200906071219.24730.gambas@...1...> References: <1244186949.5001.157.camel@...57...> <200906071120.01101.gambas@...1...> <200906071219.24730.gambas@...1...> Message-ID: <200906071225.31929.gambas@...1...> > > > So, it's a 64bit issue, is there a fix for this yet? > > > > I'm not sure, but I guess so. I was working on the networking component, > > so I was busy. Now I'm free to look at that bug! > > > > Regards, > > OK, the bug is fixed in revision #2005! > > This was not a 64 bits bug, but two uninitialized flags that made INPUT > (and LINE INPUT) becoming bad only on 64 bits systems. I said 2005? No, it is 2007... -- Beno?t From gambas at ...1... Sun Jun 7 12:31:15 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Sun, 7 Jun 2009 12:31:15 +0200 Subject: [Gambas-user] New name not shown in IDE at first (Gambas2) In-Reply-To: <4A28DFA4.4030703@...221...> References: <4A28DFA4.4030703@...221...> Message-ID: <200906071231.15464.gambas@...1...> > Just had this again: > > - an existing form with some gadgets on it > > - one of the drop-down lists wasn't used yet in code > > - the first time I type the name of this drop-down list (in this case it > was just "Names"), the name is not offered in auto-completion. Only when > I write it completely AND a fullstop, the list of events is offered. > > - after this first time, the name appears in auto-completion > > So, my question is: what was the idea behind this behaviour? Sometimes > in the past it was slightly confusing. > > Regards > > Rolf > Sorry, I don't understand. As soon as I add a control on a form, I see it in autocompletion. Can you explain me differently, or better provide some screenshots? Regards, -- Beno?t From linuxos at ...1896... Sun Jun 7 12:51:45 2009 From: linuxos at ...1896... (Olivier Cruilles) Date: Sun, 7 Jun 2009 12:51:45 +0200 Subject: [Gambas-user] Gambas on Mac In-Reply-To: <200906071102.30284.rterry@...1946...> References: <200906071102.30284.rterry@...1946...> Message-ID: <32C29045-E953-4980-AAFC-CA98060DC195@...1896...> Le 7 juin 09 ? 03:02, richard terry a ?crit : > Possible? > > Any info appreciated. > > Richard > > ------------------------------------------------------------------------------ > OpenSolaris 2009.06 is a cutting edge operating system for enterprises > looking to deploy the next generation of Solaris that includes the > latest > innovations from Sun and the OpenSource community. Download a copy and > enjoy capabilities such as Networking, Storage and Virtualization. > Go to: http://p.sf.net/sfu/opensolaris-get > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > Hello Benoit, About Gambas on Mac Os, I know that you haven't time to work on. So, Can you give the list of software to install on the Mac, more than the Gambas source of course. Then I will try to compil and send you all results. Thanks in advance. Olivier Cruilles Mail: linuxos at ...1896... From gambas at ...1... Sun Jun 7 12:51:35 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Sun, 7 Jun 2009 12:51:35 +0200 Subject: [Gambas-user] Gambas on Mac In-Reply-To: <32C29045-E953-4980-AAFC-CA98060DC195@...1896...> References: <200906071102.30284.rterry@...1946...> <32C29045-E953-4980-AAFC-CA98060DC195@...1896...> Message-ID: <200906071251.35894.gambas@...1...> > Le 7 juin 09 ? 03:02, richard terry a ?crit : > > Possible? > > > > Any info appreciated. > > > > Richard > > > > ------------------------------------------------------------------------- > >----- OpenSolaris 2009.06 is a cutting edge operating system for > > enterprises looking to deploy the next generation of Solaris that > > includes the latest > > innovations from Sun and the OpenSource community. Download a copy and > > enjoy capabilities such as Networking, Storage and Virtualization. > > Go to: http://p.sf.net/sfu/opensolaris-get > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > Hello Benoit, > > About Gambas on Mac Os, I know that you haven't time to work on. > So, Can you give the list of software to install on the Mac, more than > the Gambas source of course. > > Then I will try to compil and send you all results. > > Thanks in advance. > > > Olivier Cruilles > Mail: linuxos at ...1896... > No idea, I don't know Mac at all. :-/ Does it have a package manager? Can you install X-Window or something that emulates it? And then all the GUI libraries (Qt, GTK+...)? -- Beno?t From linuxos at ...1896... Sun Jun 7 13:10:08 2009 From: linuxos at ...1896... (Olivier Cruilles) Date: Sun, 7 Jun 2009 13:10:08 +0200 Subject: [Gambas-user] Gambas on Mac In-Reply-To: <200906071251.35894.gambas@...1...> References: <200906071102.30284.rterry@...1946...> <32C29045-E953-4980-AAFC-CA98060DC195@...1896...> <200906071251.35894.gambas@...1...> Message-ID: <13024A57-E842-40FD-AD94-87E1D0F2F79D@...1896...> In fact, all system is managed in backward with like debian package as dpkg. So, it's easy to produce packages. All the X-Window part exist on Mac by simply package to install For Qt and Kde, it's the same. For Gtk, I need to search but I think It exist. Olivier Cruilles Mail: linuxos at ...1896... Le 7 juin 09 ? 12:51, Beno?t Minisini a ?crit : >> Le 7 juin 09 ? 03:02, richard terry a ?crit : >>> Possible? >>> >>> Any info appreciated. >>> >>> Richard >>> >>> ------------------------------------------------------------------------- >>> ----- OpenSolaris 2009.06 is a cutting edge operating system for >>> enterprises looking to deploy the next generation of Solaris that >>> includes the latest >>> innovations from Sun and the OpenSource community. Download a copy >>> and >>> enjoy capabilities such as Networking, Storage and Virtualization. >>> Go to: http://p.sf.net/sfu/opensolaris-get >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> Hello Benoit, >> >> About Gambas on Mac Os, I know that you haven't time to work on. >> So, Can you give the list of software to install on the Mac, more >> than >> the Gambas source of course. >> >> Then I will try to compil and send you all results. >> >> Thanks in advance. >> >> >> Olivier Cruilles >> Mail: linuxos at ...1896... >> > > No idea, I don't know Mac at all. :-/ > > Does it have a package manager? Can you install X-Window or > something that > emulates it? And then all the GUI libraries (Qt, GTK+...)? > > -- > Beno?t > > ------------------------------------------------------------------------------ > OpenSolaris 2009.06 is a cutting edge operating system for enterprises > looking to deploy the next generation of Solaris that includes the > latest > innovations from Sun and the OpenSource community. Download a copy and > enjoy capabilities such as Networking, Storage and Virtualization. > Go to: http://p.sf.net/sfu/opensolaris-get > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > From jussi.lahtinen at ...626... Sun Jun 7 17:06:48 2009 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 7 Jun 2009 18:06:48 +0300 Subject: [Gambas-user] New name not shown in IDE at first (Gambas2) In-Reply-To: <200906071231.15464.gambas@...1...> References: <4A28DFA4.4030703@...221...> <200906071231.15464.gambas@...1...> Message-ID: <384d3900906070806n345b03e4q22c5d434869088cf@...627...> I have noticed same thing, but only randomly. I tried to demonstrate it quickly with Gambas 2.10, and I couldn't. But with Gambas3 (revision 1995 @Ubuntu 9.04 64bit), I can. Screenshot from my trash/bug testing project. Autocompletion provides only Button27_Click(), because it is already on code. If you add label etc. and use it first time, like this way; lblTest.Caption = "Test", you must write whole "lblTest", autocompletion doesn't provide it. But next time autocompletion works (screenshot2.png), notice that it is at lowercase. Jussi 2009/6/7 Beno?t Minisini : >> Just had this again: >> >> - an existing form with some gadgets on it >> >> - one of the drop-down lists wasn't used yet in code >> >> - the first time I type the name of this drop-down list (in this case it >> was just "Names"), the name is not offered in auto-completion. Only when >> I write it completely AND a fullstop, the list of events is offered. >> >> - after this first time, the name appears in auto-completion >> >> So, my question is: what was the idea behind this behaviour? Sometimes >> in the past it was slightly confusing. >> >> Regards >> >> Rolf >> > > Sorry, I don't understand. As soon as I add a control on a form, I see it in > autocompletion. > > Can you explain me differently, or better provide some screenshots? > > Regards, > > -- > Beno?t > > ------------------------------------------------------------------------------ > OpenSolaris 2009.06 is a cutting edge operating system for enterprises > looking to deploy the next generation of Solaris that includes the latest > innovations from Sun and the OpenSource community. Download a copy and > enjoy capabilities such as Networking, Storage and Virtualization. > Go to: http://p.sf.net/sfu/opensolaris-get > _______________________________________________ > 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: screenshot.png Type: image/png Size: 19609 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: screenshot2.png Type: image/png Size: 13187 bytes Desc: not available URL: From gambas at ...1... Sun Jun 7 18:06:38 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Sun, 7 Jun 2009 18:06:38 +0200 Subject: [Gambas-user] Tooltip - Can one set a popup delay? In-Reply-To: <200906020924.18386.rterry@...1946...> References: <200905210816.51337.rterry@...1946...> <200906020021.22490.gambas@...1...> <200906020924.18386.rterry@...1946...> Message-ID: <200906071806.39101.gambas@...1...> > On Tue, 2 Jun 2009 08:21:22 am Beno?t Minisini wrote: > > > > Wondered if it was possible to change the delay time for the tool tip > > > > popping up when the user hovers over something. > > > > > > > > This takes a little time on my system and for a new user of a program > > > > it would be nice to have the tooltip pop up instantaniously, but > > > > enable configuration within the program so that once they knew their > > > > way around, then the popup could be re-set to a default or user > > > > defined delay. > > > > > > > > Regards > > > > > > > > Richard > > > > > > It is possible to set the tooltip delay in Qt, but in GTK+ the function > > > is deprecated. No idea why, but so I don't think it is a good idea to > > > implement it. > > > > > > Regards, > > > > Finally there is a non-deprecated way to do that in GTK+, so you will get > > a new Application.Tooltip.Delay property in the next /trunk commit. > > > > Regards, > > Thanks > > Richard > Some bad news: there is no way to define the delay of tooltips in QT4, it seems to be hardcoded. So I think I will have to remove the Application.Tooltip.Delay property! Sorry for the inconvenience... -- Beno?t From berenscott at ...1979... Mon Jun 8 04:47:51 2009 From: berenscott at ...1979... (Beren Scott) Date: Mon, 08 Jun 2009 12:47:51 +1000 Subject: [Gambas-user] integer / string file IO issue In-Reply-To: <200906071219.24730.gambas@...1...> References: <1244186949.5001.157.camel@...57...> <1244359425.5001.205.camel@...57...> <200906071120.01101.gambas@...1...> <200906071219.24730.gambas@...1...> Message-ID: <1244429271.5001.209.camel@...57...> On Sun, 2009-06-07 at 12:19 +0200, Beno?t Minisini wrote: > > > So, it's a 64bit issue, is there a fix for this yet? > > > > I'm not sure, but I guess so. I was working on the networking component, so > > I was busy. Now I'm free to look at that bug! > > > > Regards, > > OK, the bug is fixed in revision #2005! > > This was not a 64 bits bug, but two uninitialized flags that made INPUT (and > LINE INPUT) becoming bad only on 64 bits systems. > Well, I am going to say a big thankyou mate, it's working, oh and as for those really large arrays, I descovered the beauty of resize. Learn something everyday hey. I will leave you with one last idea for improvement, perhaps extending the MAX and MIN commands beyond 2 arguments. Anyways, enjoy your day, now I can get to the hard stuff. Beren From gambas at ...1... Mon Jun 8 07:19:45 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Mon, 8 Jun 2009 07:19:45 +0200 Subject: [Gambas-user] integer / string file IO issue In-Reply-To: <1244429271.5001.209.camel@...57...> References: <1244186949.5001.157.camel@...57...> <200906071219.24730.gambas@...1...> <1244429271.5001.209.camel@...57...> Message-ID: <200906080719.46181.gambas@...1...> > On Sun, 2009-06-07 at 12:19 +0200, Beno?t Minisini wrote: > > > > So, it's a 64bit issue, is there a fix for this yet? > > > > > > I'm not sure, but I guess so. I was working on the networking > > > component, so I was busy. Now I'm free to look at that bug! > > > > > > Regards, > > > > OK, the bug is fixed in revision #2005! > > > > This was not a 64 bits bug, but two uninitialized flags that made INPUT > > (and LINE INPUT) becoming bad only on 64 bits systems. > > Well, I am going to say a big thankyou mate, it's working, oh and as for > those really large arrays, I descovered the beauty of resize. Learn > something everyday hey. I will leave you with one last idea for > improvement, perhaps extending the MAX and MIN commands beyond 2 > arguments. Anyways, enjoy your day, now I can get to the hard stuff. > > Beren > Min() and Max() had a variable number of arguments in the past. But I noticed that most of the time, you use it with two arguments, and having a fixed number of arguments makes them faster. Regards, -- Beno?t From eilert-sprachen at ...221... Mon Jun 8 08:41:32 2009 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Mon, 08 Jun 2009 08:41:32 +0200 Subject: [Gambas-user] New name not shown in IDE at first (Gambas2) In-Reply-To: <200906071231.15464.gambas@...1...> References: <4A28DFA4.4030703@...221...> <200906071231.15464.gambas@...1...> Message-ID: <4A2CB29C.407@...221...> Beno?t Minisini schrieb: >> Just had this again: >> >> - an existing form with some gadgets on it >> >> - one of the drop-down lists wasn't used yet in code >> >> - the first time I type the name of this drop-down list (in this case it >> was just "Names"), the name is not offered in auto-completion. Only when >> I write it completely AND a fullstop, the list of events is offered. >> >> - after this first time, the name appears in auto-completion >> >> So, my question is: what was the idea behind this behaviour? Sometimes >> in the past it was slightly confusing. >> >> Regards >> >> Rolf >> > > Sorry, I don't understand. As soon as I add a control on a form, I see it in > autocompletion. > > Can you explain me differently, or better provide some screenshots? > > Regards, > Screenshot is difficult, as I don't know if it shows the tooltips. But it's easy: Create a new ComboBox on the form. If it's the first one, it's called ComboBox1. In the class, type Com and you will get a proposal for ComboBox, not ComboBox1. Now change its name (in the Properties dialog at the right) to anything else, testbox for instance. You may even press Return after typing. Nothing happens, the name doesn't refresh in the preview - and if you type "testbox" somewhere within code, the list with proposals will only appear after you typed the "." Does this make it clearer? Regards Rolf From eilert-sprachen at ...221... Mon Jun 8 09:10:05 2009 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Mon, 08 Jun 2009 09:10:05 +0200 Subject: [Gambas-user] New name not shown in IDE at first (Gambas2) In-Reply-To: <384d3900906070806n345b03e4q22c5d434869088cf@...627...> References: <4A28DFA4.4030703@...221...> <200906071231.15464.gambas@...1...> <384d3900906070806n345b03e4q22c5d434869088cf@...627...> Message-ID: <4A2CB94D.9030308@...221...> Jussi Lahtinen schrieb: > I have noticed same thing, but only randomly. I tried to demonstrate > it quickly with Gambas 2.10, and I couldn't. > But with Gambas3 (revision 1995 @Ubuntu 9.04 64bit), I can. > > Screenshot from my trash/bug testing project. > Autocompletion provides only Button27_Click(), because it is already on code. > If you add label etc. and use it first time, like this way; > lblTest.Caption = "Test", you must > write whole "lblTest", autocompletion doesn't provide it. > But next time autocompletion works (screenshot2.png), notice that it > is at lowercase. > > > Jussi > > > > 2009/6/7 Beno?t Minisini : >>> Just had this again: >>> >>> - an existing form with some gadgets on it >>> >>> - one of the drop-down lists wasn't used yet in code >>> >>> - the first time I type the name of this drop-down list (in this case it >>> was just "Names"), the name is not offered in auto-completion. Only when >>> I write it completely AND a fullstop, the list of events is offered. >>> >>> - after this first time, the name appears in auto-completion >>> >>> So, my question is: what was the idea behind this behaviour? Sometimes >>> in the past it was slightly confusing. >>> >>> Regards >>> >>> Rolf >>> >> Sorry, I don't understand. As soon as I add a control on a form, I see it in >> autocompletion. >> >> Can you explain me differently, or better provide some screenshots? >> >> Regards, >> >> -- >> Beno?t >> >> ------------------------------------------------------------------------------ >> OpenSolaris 2009.06 is a cutting edge operating system for enterprises >> looking to deploy the next generation of Solaris that includes the latest >> innovations from Sun and the OpenSource community. Download a copy and >> enjoy capabilities such as Networking, Storage and Virtualization. >> Go to: http://p.sf.net/sfu/opensolaris-get >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> ------------------------------------------------------------------------ >> >> >> ------------------------------------------------------------------------ >> >> >> ------------------------------------------------------------------------ >> >> ------------------------------------------------------------------------------ >> OpenSolaris 2009.06 is a cutting edge operating system for enterprises >> looking to deploy the next generation of Solaris that includes the latest >> innovations from Sun and the OpenSource community. Download a copy and >> enjoy capabilities such as Networking, Storage and Virtualization. >> Go to: http://p.sf.net/sfu/opensolaris-get >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user From eilert-sprachen at ...221... Mon Jun 8 09:13:28 2009 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Mon, 08 Jun 2009 09:13:28 +0200 Subject: [Gambas-user] New name not shown in IDE at first (Gambas2) In-Reply-To: <384d3900906070806n345b03e4q22c5d434869088cf@...627...> References: <4A28DFA4.4030703@...221...> <200906071231.15464.gambas@...1...> <384d3900906070806n345b03e4q22c5d434869088cf@...627...> Message-ID: <4A2CBA18.4000501@...221...> Sorry, just sent an empty answer... Here's the real one: > If you add label etc. and use it first time, like this way; > lblTest.Caption = "Test", you must > write whole "lblTest", autocompletion doesn't provide it. > But next time autocompletion works (screenshot2.png), notice that it > is at lowercase. You are right. Didn't realise this yet. But here it only shows if the previous one is still in the code. If I delete the first one, autocompletion will again not show it. Rolf > > > Jussi > > > > 2009/6/7 Beno?t Minisini : >>> Just had this again: >>> >>> - an existing form with some gadgets on it >>> >>> - one of the drop-down lists wasn't used yet in code >>> >>> - the first time I type the name of this drop-down list (in this case it >>> was just "Names"), the name is not offered in auto-completion. Only when >>> I write it completely AND a fullstop, the list of events is offered. >>> >>> - after this first time, the name appears in auto-completion >>> >>> So, my question is: what was the idea behind this behaviour? Sometimes >>> in the past it was slightly confusing. >>> >>> Regards >>> >>> Rolf >>> >> Sorry, I don't understand. As soon as I add a control on a form, I see it in >> autocompletion. >> >> Can you explain me differently, or better provide some screenshots? >> >> Regards, >> >> -- >> Beno?t >> >> ------------------------------------------------------------------------------ >> OpenSolaris 2009.06 is a cutting edge operating system for enterprises >> looking to deploy the next generation of Solaris that includes the latest >> innovations from Sun and the OpenSource community. Download a copy and >> enjoy capabilities such as Networking, Storage and Virtualization. >> Go to: http://p.sf.net/sfu/opensolaris-get >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> ------------------------------------------------------------------------ >> >> >> ------------------------------------------------------------------------ >> >> >> ------------------------------------------------------------------------ >> >> ------------------------------------------------------------------------------ >> OpenSolaris 2009.06 is a cutting edge operating system for enterprises >> looking to deploy the next generation of Solaris that includes the latest >> innovations from Sun and the OpenSource community. Download a copy and >> enjoy capabilities such as Networking, Storage and Virtualization. >> Go to: http://p.sf.net/sfu/opensolaris-get >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user From berenscott at ...1979... Mon Jun 8 10:06:41 2009 From: berenscott at ...1979... (Beren Scott) Date: Mon, 08 Jun 2009 18:06:41 +1000 Subject: [Gambas-user] integer / string file IO issue In-Reply-To: <200906080719.46181.gambas@...1...> References: <1244186949.5001.157.camel@...57...> <200906071219.24730.gambas@...1...> <1244429271.5001.209.camel@...57...> <200906080719.46181.gambas@...1...> Message-ID: <1244448401.5001.220.camel@...57...> On Mon, 2009-06-08 at 07:19 +0200, Beno?t Minisini wrote: > > On Sun, 2009-06-07 at 12:19 +0200, Beno?t Minisini wrote: > > > > > So, it's a 64bit issue, is there a fix for this yet? > > > > > > > > I'm not sure, but I guess so. I was working on the networking > > > > component, so I was busy. Now I'm free to look at that bug! > > > > > > > > Regards, > > > > > > OK, the bug is fixed in revision #2005! > > > > > > This was not a 64 bits bug, but two uninitialized flags that made INPUT > > > (and LINE INPUT) becoming bad only on 64 bits systems. > > > > Well, I am going to say a big thankyou mate, it's working, oh and as for > > those really large arrays, I descovered the beauty of resize. Learn > > something everyday hey. I will leave you with one last idea for > > improvement, perhaps extending the MAX and MIN commands beyond 2 > > arguments. Anyways, enjoy your day, now I can get to the hard stuff. > > > > Beren > > > > Min() and Max() had a variable number of arguments in the past. But I noticed > that most of the time, you use it with two arguments, and having a fixed > number of arguments makes them faster. > > Regards, > If you only needed it with two arguements, you'd probably do say an if/else statement, but it's my experience coming from a perspective of using spreadsheets, that most min or max statements require a vast number of arguments. In my program, I use 3 arguments, which means to get around the limitation I have to call the max() 3 times, once around the first two arguments, the second time around the last 2 arguments and the third time around the 2 max commands. Sure could get away with 2, but still. Anyways, maybe what you could do is have like min and max with 2, and create say a min5 max5 that has 5 arguments maximum, so that either you use the faster min max or you go with the bulkier min5 max5 commands? Just a thought. Though these commands are definitely designed for large amounts of arguments, in openoffice spreadsheet there is no true limit to the arguments as the target area can be vast in scale. Beren From Karl.Reinl at ...9... Mon Jun 8 10:07:22 2009 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Mon, 08 Jun 2009 10:07:22 +0200 Subject: [Gambas-user] New name not shown in IDE at first (Gambas2) In-Reply-To: <4A2CB29C.407@...221...> References: <4A28DFA4.4030703@...221...> <200906071231.15464.gambas@...1...> <4A2CB29C.407@...221...> Message-ID: <1244448442.6518.2.camel@...40...> Am Montag, den 08.06.2009, 08:41 +0200 schrieb Rolf-Werner Eilert: > Beno?t Minisini schrieb: > >> Just had this again: > >> > >> - an existing form with some gadgets on it > >> > >> - one of the drop-down lists wasn't used yet in code > >> > >> - the first time I type the name of this drop-down list (in this case it > >> was just "Names"), the name is not offered in auto-completion. Only when > >> I write it completely AND a fullstop, the list of events is offered. > >> > >> - after this first time, the name appears in auto-completion > >> > >> So, my question is: what was the idea behind this behaviour? Sometimes > >> in the past it was slightly confusing. > >> > >> Regards > >> > >> Rolf > >> > > > > Sorry, I don't understand. As soon as I add a control on a form, I see it in > > autocompletion. > > > > Can you explain me differently, or better provide some screenshots? > > > > Regards, > > > > > Screenshot is difficult, as I don't know if it shows the tooltips. But > it's easy: > > Create a new ComboBox on the form. If it's the first one, it's called > ComboBox1. > > In the class, type Com and you will get a proposal for ComboBox, not > ComboBox1. > > Now change its name (in the Properties dialog at the right) to anything > else, testbox for instance. You may even press Return after typing. > Nothing happens, the name doesn't refresh in the preview - and if you > type "testbox" somewhere within code, the list with proposals will only > appear after you typed the "." > > Does this make it clearer? > > Regards > > Rolf Salut, for making Screenshots with shown tooltips look at http://www.debugmode.com/wink/ -- Amicalment Charlie From berenscott at ...1979... Mon Jun 8 11:09:26 2009 From: berenscott at ...1979... (Beren Scott) Date: Mon, 08 Jun 2009 19:09:26 +1000 Subject: [Gambas-user] clipboard Message-ID: <1244452166.5001.222.camel@...57...> Sorry to ask this question, but is there any way to copy a string directly to the operating systems clipboard? Is there a command to handle this? Beren Scott From lordheavym at ...626... Mon Jun 8 11:31:49 2009 From: lordheavym at ...626... (Laurent Carlier) Date: Mon, 8 Jun 2009 11:31:49 +0200 Subject: [Gambas-user] clipboard In-Reply-To: <1244452166.5001.222.camel@...57...> References: <1244452166.5001.222.camel@...57...> Message-ID: <200906081131.50443.lordheavym@...626...> Le lundi 08 juin 2009 11:09:26 Beren Scott, vous avez ?crit : > Sorry to ask this question, but is there any way to copy a string > directly to the operating systems clipboard? Is there a command to > handle this? > > Beren Scott > > > --------------------------------------------------------------------------- >--- OpenSolaris 2009.06 is a cutting edge operating system for enterprises > looking to deploy the next generation of Solaris that includes the latest > innovations from Sun and the OpenSource community. Download a copy and > enjoy capabilities such as Networking, Storage and Virtualization. Go to: > http://p.sf.net/sfu/opensolaris-get > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user you can use xclip tool : eg: echo "i'm using gambas" | xclip Regards, From ron at ...1740... Mon Jun 8 11:35:43 2009 From: ron at ...1740... (Ron) Date: Mon, 08 Jun 2009 11:35:43 +0200 Subject: [Gambas-user] clipboard In-Reply-To: <200906081131.50443.lordheavym@...626...> References: <1244452166.5001.222.camel@...57...> <200906081131.50443.lordheavym@...626...> Message-ID: <4A2CDB6F.4070104@...1740...> Laurent Carlier wrote: > Le lundi 08 juin 2009 11:09:26 Beren Scott, vous avez ?crit : > >> Sorry to ask this question, but is there any way to copy a string >> directly to the operating systems clipboard? Is there a command to >> handle this? >> >> Beren Scott >> >> >> --------------------------------------------------------------------------- >> --- OpenSolaris 2009.06 is a cutting edge operating system for enterprises >> looking to deploy the next generation of Solaris that includes the latest >> innovations from Sun and the OpenSource community. Download a copy and >> enjoy capabilities such as Networking, Storage and Virtualization. Go to: >> http://p.sf.net/sfu/opensolaris-get >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > you can use xclip tool : > > eg: echo "i'm using gambas" | xclip > > No need to use other tools. Google on "gambas clipboard" Read first hit. Regards, Ron_2nd From charles at ...1784... Mon Jun 8 11:44:28 2009 From: charles at ...1784... (charlesg) Date: Mon, 8 Jun 2009 02:44:28 -0700 (PDT) Subject: [Gambas-user] clipboard In-Reply-To: <1244452166.5001.222.camel@...57...> References: <1244452166.5001.222.camel@...57...> Message-ID: <23921133.post@...1379...> Hi, Clipboard.Copy(txtItem.text) rgds -- View this message in context: http://www.nabble.com/clipboard-tp23920689p23921133.html Sent from the gambas-user mailing list archive at Nabble.com. From kmsuse at ...626... Mon Jun 8 12:50:04 2009 From: kmsuse at ...626... (KhurramM) Date: Mon, 8 Jun 2009 03:50:04 -0700 (PDT) Subject: [Gambas-user] Confusion in Data Types Message-ID: <23921847.post@...1379...> I am on ubuntu 9.04, x86, 32bit, gambas 2.12. I have some confusion regarding the following: ---------------------------- PUBLIC SUB Main() DIM myBoolean AS Boolean DIM myByte AS Byte DIM myShort AS Short DIM N, myInteger AS Integer DIM myLong AS Long DIM mySingle AS Single DIM myFloat AS Float PRINT "RANGES" myByte = 255 PRINT "Max value in Byte " & myByte myByte += 1 ' Wraps OK; No BUG PRINT "Min value in Byte " & myByte ' Short (2-Bytes) is 16 bit; 2^16=65536; half is 32768; ie -32768 to 32767 myShort = 32767 PRINT "Max value in Short " & myShort myShort += 1 ' Wraps OK; No BUG PRINT "Min value in Short " & myShort ' Integer (4-Bytes) 2^bits = 2^32 = 4294967296; (4294967296/2=2147483648); -2147483648 to 2147483647 myInteger = 2147483647 PRINT "Max value in Integer " & myInteger myInteger += 1 ' Wraps OK; No BUG PRINT "Min value in Integer " & myInteger ' Long (8-Bytes) 2^bits = 2^64; -9223372036854775808 to 9223372036854775807 myLong = 9223372036854775807 PRINT "Max value in Long " & myLong myLong += 1 ' Wraps OK; No BUG PRINT "Min value in Long " & myLong ' Single (4-Byte C Float) 1.2e-38 to 3.4e38 mySingle = 3.4e+38 PRINT "Max value in Single " & mySingle mySingle += 1 '1e+36 ' Issues PRINT "Min value in Single " & mySingle ' Float (4-Byte C Double) 2.2e-308 to 1.8e308 'myFloat = 1.8e+308 BUG: Cant hold this value myFloat = 1.79e+308 PRINT "Max value in Float " & myFloat myFloat += 1 ' BUG: DoesNOT Wrap PRINT "Min value in Float " & myFloat END ---------------------------- Program Output: ---------------------------- RANGES Max value in Byte 255 Min value in Byte 0 Max value in Short 32767 Min value in Short -32768 Max value in Integer 2147483647 Min value in Integer -2147483648 Max value in Long 9223372036854775807 Min value in Long -9223372036854775808 Max value in Single 3.399999952144E+38 Min value in Single 3.399999952144E+38 Max value in Float 1.79E+308 Min value in Float 1E+2147483647 ---------------------------- I have issue in Single and Float: 1. How to overflow the Single and Float? 2. Why does the Float not accept the highest value? Thanks in advance. :working: -- View this message in context: http://www.nabble.com/Confusion-in-Data-Types-tp23921847p23921847.html Sent from the gambas-user mailing list archive at Nabble.com. From ron at ...1740... Mon Jun 8 12:58:10 2009 From: ron at ...1740... (Ron) Date: Mon, 08 Jun 2009 12:58:10 +0200 Subject: [Gambas-user] Clear moviebox Message-ID: <4A2CEEC2.2090403@...1740...> How to clear the contents of a moviebox without destroying, deleting or hiding? Like the status if you placed one on your form without path property filled. Setting .Path to "" or Null doesn't work, it will generate error "file or directory doesn't exists" Thanks. Ron_2nd. From berenscott at ...1979... Mon Jun 8 16:03:23 2009 From: berenscott at ...1979... (Beren Scott) Date: Tue, 09 Jun 2009 00:03:23 +1000 Subject: [Gambas-user] clipboard In-Reply-To: <23921133.post@...1379...> References: <1244452166.5001.222.camel@...57...> <23921133.post@...1379...> Message-ID: <1244469803.5001.225.camel@...57...> On Mon, 2009-06-08 at 02:44 -0700, charlesg wrote: > Hi, > > Clipboard.Copy(txtItem.text) > > rgds The problem is however that I am currently console only, no gui, and I am getting a non-existent item error on "clipboard". Do I have to add any lines of code to fix this? From rospolosco at ...152... Mon Jun 8 16:47:56 2009 From: rospolosco at ...152... (Stefano Palmeri) Date: Mon, 8 Jun 2009 16:47:56 +0200 Subject: [Gambas-user] clipboard In-Reply-To: <1244469803.5001.225.camel@...57...> References: <1244452166.5001.222.camel@...57...> <23921133.post@...1379...> <1244469803.5001.225.camel@...57...> Message-ID: <200906081647.56806.rospolosco@...152...> Il luned? 8 giugno 2009 16:03:23 Beren Scott ha scritto: > On Mon, 2009-06-08 at 02:44 -0700, charlesg wrote: > > Hi, > > > > Clipboard.Copy(txtItem.text) > > > > rgds > > The problem is however that I am currently console only, no gui, and I > am getting a non-existent item error on "clipboard". Do I have to add > any lines of code to fix this? > > > --------------------------------------------------------------------------- >--- OpenSolaris 2009.06 is a cutting edge operating system for enterprises > looking to deploy the next generation of Solaris that includes the latest > innovations from Sun and the OpenSource community. Download a copy and > enjoy capabilities such as Networking, Storage and Virtualization. Go to: > http://p.sf.net/sfu/opensolaris-get > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user Enable gb.gui in the project componets list. From smiefert at ...784... Mon Jun 8 16:25:45 2009 From: smiefert at ...784... (Stefan Miefert) Date: Mon, 8 Jun 2009 16:25:45 +0200 Subject: [Gambas-user] TableViews and Colors Message-ID: <8D42310D957CFB46AA11921A711D4D160243AC9844@...1899...> Hello, i try to color a tableview row when I try this TBLname[10,5].bgcolor = color.red TBLname[10,5].forecolor = color.white The colors set but the data in the row disapear Why? How can I change this? From berenscott at ...1979... Mon Jun 8 17:27:11 2009 From: berenscott at ...1979... (Beren Scott) Date: Tue, 09 Jun 2009 01:27:11 +1000 Subject: [Gambas-user] clipboard In-Reply-To: <200906081647.56806.rospolosco@...152...> References: <1244452166.5001.222.camel@...57...> <23921133.post@...1379...> <1244469803.5001.225.camel@...57...> <200906081647.56806.rospolosco@...152...> Message-ID: <1244474831.5001.228.camel@...57...> On Mon, 2009-06-08 at 16:47 +0200, Stefano Palmeri wrote: > Il luned? 8 giugno 2009 16:03:23 Beren Scott ha scritto: > > On Mon, 2009-06-08 at 02:44 -0700, charlesg wrote: > > > Hi, > > > > > > Clipboard.Copy(txtItem.text) > > > > > > rgds > > > > The problem is however that I am currently console only, no gui, and I > > am getting a non-existent item error on "clipboard". Do I have to add > > any lines of code to fix this? > > > > > > --------------------------------------------------------------------------- > >--- OpenSolaris 2009.06 is a cutting edge operating system for enterprises > > looking to deploy the next generation of Solaris that includes the latest > > innovations from Sun and the OpenSource community. Download a copy and > > enjoy capabilities such as Networking, Storage and Virtualization. Go to: > > http://p.sf.net/sfu/opensolaris-get > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > Enable gb.gui in the project componets list. > > ------------------------------------------------------------------------------ > OpenSolaris 2009.06 is a cutting edge operating system for enterprises > looking to deploy the next generation of Solaris that includes the latest > innovations from Sun and the OpenSource community. Download a copy and > enjoy capabilities such as Networking, Storage and Virtualization. > Go to: http://p.sf.net/sfu/opensolaris-get > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user Okay, that is done, but now I am finding that it isn't copying anything into the clipboard. Take for example, I want to use the copied data in another program, copy from gambas2, paste into a web browser. But nothing is being copied into the clipboard. From rospolosco at ...152... Mon Jun 8 18:17:05 2009 From: rospolosco at ...152... (Stefano Palmeri) Date: Mon, 8 Jun 2009 18:17:05 +0200 Subject: [Gambas-user] clipboard In-Reply-To: <1244474831.5001.228.camel@...57...> References: <1244452166.5001.222.camel@...57...> <200906081647.56806.rospolosco@...152...> <1244474831.5001.228.camel@...57...> Message-ID: <200906081817.05331.rospolosco@...152...> Il luned? 8 giugno 2009 17:27:11 Beren Scott ha scritto: > On Mon, 2009-06-08 at 16:47 +0200, Stefano Palmeri wrote: > > Il luned? 8 giugno 2009 16:03:23 Beren Scott ha scritto: > > > On Mon, 2009-06-08 at 02:44 -0700, charlesg wrote: > > > > Hi, > > > > > > > > Clipboard.Copy(txtItem.text) > > > > > > > > rgds > > > > > > The problem is however that I am currently console only, no gui, and I > > > am getting a non-existent item error on "clipboard". Do I have to add > > > any lines of code to fix this? > > > > > > > > > ----------------------------------------------------------------------- > > >---- --- OpenSolaris 2009.06 is a cutting edge operating system for > > > enterprises looking to deploy the next generation of Solaris that > > > includes the latest innovations from Sun and the OpenSource community. > > > Download a copy and enjoy capabilities such as Networking, Storage and > > > Virtualization. Go to: http://p.sf.net/sfu/opensolaris-get > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > Enable gb.gui in the project componets list. > > > > ------------------------------------------------------------------------- > >----- OpenSolaris 2009.06 is a cutting edge operating system for > > enterprises looking to deploy the next generation of Solaris that > > includes the latest innovations from Sun and the OpenSource community. > > Download a copy and enjoy capabilities such as Networking, Storage and > > Virtualization. Go to: http://p.sf.net/sfu/opensolaris-get > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > Okay, that is done, but now I am finding that it isn't copying anything > into the clipboard. Take for example, I want to use the copied data in > another program, copy from gambas2, paste into a web browser. But > nothing is being copied into the clipboard. > Oh, you're right. I don't know if this is a bug. Hope Benoit reads this. It seems that Gambas copy on its own clipboard. I don't understand. This code: PUBLIC SUB Main() DIM sss AS String Clipboard.Copy("hello") sss = Clipboard.Paste() PRINT sss END simply print the string on console, but nothing on KDE clipboard or X clipborad (tested with xsel). So, I don't know. Gambas 2.13.1 > > --------------------------------------------------------------------------- >--- Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensing option that enables unlimited > royalty-free distribution of the report engine for externally facing > server and web deployment. > http://p.sf.net/sfu/businessobjects > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From rospolosco at ...152... Mon Jun 8 18:31:27 2009 From: rospolosco at ...152... (Stefano Palmeri) Date: Mon, 8 Jun 2009 18:31:27 +0200 Subject: [Gambas-user] TableViews and Colors In-Reply-To: <8D42310D957CFB46AA11921A711D4D160243AC9844@...1899...> References: <8D42310D957CFB46AA11921A711D4D160243AC9844@...1899...> Message-ID: <200906081831.27318.rospolosco@...152...> Il luned? 8 giugno 2009 16:25:45 Stefan Miefert ha scritto: > Hello, > > i try to color a tableview row > > when I try this > > TBLname[10,5].bgcolor = color.red > TBLname[10,5].forecolor = color.white > > The colors set but the data in the row disapear > Why? > > How can I change this? > I don't have that problem. Gambas 2.13.1. No problem with gb.gtk or gb.qt. The text doesn't disappear. Attached example. The colored cell is [10,5] like yours and colors are red and white. > --------------------------------------------------------------------------- >--- OpenSolaris 2009.06 is a cutting edge operating system for enterprises > looking to deploy the next generation of Solaris that includes the latest > innovations from Sun and the OpenSource community. Download a copy and > enjoy capabilities such as Networking, Storage and Virtualization. Go to: > http://p.sf.net/sfu/opensolaris-get > _______________________________________________ > 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: tableview-0.0.1.tar.gz Type: application/x-tgz Size: 7558 bytes Desc: not available URL: From joshiggins at ...1601... Mon Jun 8 20:00:05 2009 From: joshiggins at ...1601... (Joshua Higgins) Date: Mon, 8 Jun 2009 19:00:05 +0100 Subject: [Gambas-user] Gambas on Mac In-Reply-To: <13024A57-E842-40FD-AD94-87E1D0F2F79D@...1896...> References: <200906071102.30284.rterry@...1946...> <32C29045-E953-4980-AAFC-CA98060DC195@...1896...> <200906071251.35894.gambas@...1...> <13024A57-E842-40FD-AD94-87E1D0F2F79D@...1896...> Message-ID: <4247f5440906081100k34f5a162h4531bc36f4c04dad@...627...> I'm also interested in this... I'm struggling to find any ports or packages of the required development files. I noticed the message about endianness, is this still an issue even with Intel Macs, or just a PowerPC issue? 2009/6/7 Olivier Cruilles > In fact, all system is managed in backward with like debian package as > dpkg. > > So, it's easy to produce packages. > > All the X-Window part exist on Mac by simply package to install > > For Qt and Kde, it's the same. For Gtk, I need to search but I think > It exist. > > > > Olivier Cruilles > Mail: linuxos at ...1896... > > Le 7 juin 09 ? 12:51, Beno?t Minisini a ?crit : > > >> Le 7 juin 09 ? 03:02, richard terry a ?crit : > >>> Possible? > >>> > >>> Any info appreciated. > >>> > >>> Richard > >>> > >>> > ------------------------------------------------------------------------- > >>> ----- OpenSolaris 2009.06 is a cutting edge operating system for > >>> enterprises looking to deploy the next generation of Solaris that > >>> includes the latest > >>> innovations from Sun and the OpenSource community. Download a copy > >>> and > >>> enjoy capabilities such as Networking, Storage and Virtualization. > >>> Go to: http://p.sf.net/sfu/opensolaris-get > >>> _______________________________________________ > >>> Gambas-user mailing list > >>> Gambas-user at lists.sourceforge.net > >>> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > >> Hello Benoit, > >> > >> About Gambas on Mac Os, I know that you haven't time to work on. > >> So, Can you give the list of software to install on the Mac, more > >> than > >> the Gambas source of course. > >> > >> Then I will try to compil and send you all results. > >> > >> Thanks in advance. > >> > >> > >> Olivier Cruilles > >> Mail: linuxos at ...1896... > >> > > > > No idea, I don't know Mac at all. :-/ > > > > Does it have a package manager? Can you install X-Window or > > something that > > emulates it? And then all the GUI libraries (Qt, GTK+...)? > > > > -- > > Beno?t > > > > > ------------------------------------------------------------------------------ > > OpenSolaris 2009.06 is a cutting edge operating system for enterprises > > looking to deploy the next generation of Solaris that includes the > > latest > > innovations from Sun and the OpenSource community. Download a copy and > > enjoy capabilities such as Networking, Storage and Virtualization. > > Go to: http://p.sf.net/sfu/opensolaris-get > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > > ------------------------------------------------------------------------------ > OpenSolaris 2009.06 is a cutting edge operating system for enterprises > looking to deploy the next generation of Solaris that includes the latest > innovations from Sun and the OpenSource community. Download a copy and > enjoy capabilities such as Networking, Storage and Virtualization. > Go to: http://p.sf.net/sfu/opensolaris-get > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- joshua higgins >>>>>>------ From nando_f at ...951... Tue Jun 9 03:23:24 2009 From: nando_f at ...951... (nando) Date: Mon, 8 Jun 2009 20:23:24 -0500 Subject: [Gambas-user] Confusion in Data Types In-Reply-To: <23921847.post@...1379...> References: <23921847.post@...1379...> Message-ID: <20090609011328.M98285@...951...> Float and Double is not as simple an explaination as the Int and others. You should read a Wiki on floating point storage and issues involving it. What you're attempting to do is a difficult thing because you're getting to the limits of float numbers and straddling the edge of NAN and other wierd things about float that it cannot do. Floating point numbers have two parts. Simplistically: One part is an integer which represents the actual digits in binary. The other is the value of the exponent (binary point and not decimal point). Together they make up float. There are values that cannot be properly represented in float...like the fraction one-third. If you made a test program to calculate fractions from integers and then add three 'one-thirds' together, you won't get 1.00000000000000.... because it is not exactly exact in the last digits. The easiest test for float is: it better work properly given it's condition ...and move on to something else. However, good luck. -Fernando ---------- Original Message ----------- From: KhurramM To: gambas-user at lists.sourceforge.net Sent: Mon, 8 Jun 2009 03:50:04 -0700 (PDT) Subject: [Gambas-user] Confusion in Data Types > I am on ubuntu 9.04, x86, 32bit, gambas 2.12. I have some confusion regarding > the following: > > ---------------------------- > > PUBLIC SUB Main() > > DIM myBoolean AS Boolean > DIM myByte AS Byte > DIM myShort AS Short > DIM N, myInteger AS Integer > DIM myLong AS Long > DIM mySingle AS Single > DIM myFloat AS Float > > PRINT "RANGES" > myByte = 255 > PRINT "Max value in Byte " & myByte > myByte += 1 ' Wraps OK; No BUG > PRINT "Min value in Byte " & myByte > > ' Short (2-Bytes) is 16 bit; 2^16=65536; half is 32768; ie -32768 to > 32767 > myShort = 32767 > PRINT "Max value in Short " & myShort > myShort += 1 ' Wraps OK; No BUG > PRINT "Min value in Short " & myShort > > ' Integer (4-Bytes) 2^bits = 2^32 = 4294967296; > (4294967296/2=2147483648); -2147483648 to 2147483647 > myInteger = 2147483647 > PRINT "Max value in Integer " & myInteger > myInteger += 1 ' Wraps OK; No BUG > PRINT "Min value in Integer " & myInteger > > ' Long (8-Bytes) 2^bits = 2^64; -9223372036854775808 to > 9223372036854775807 > myLong = 9223372036854775807 > PRINT "Max value in Long " & myLong > myLong += 1 ' Wraps OK; No BUG > PRINT "Min value in Long " & myLong > > ' Single (4-Byte C Float) 1.2e-38 to 3.4e38 > mySingle = 3.4e+38 > PRINT "Max value in Single " & mySingle > mySingle += 1 '1e+36 ' Issues > PRINT "Min value in Single " & mySingle > > ' Float (4-Byte C Double) 2.2e-308 to 1.8e308 > 'myFloat = 1.8e+308 BUG: Cant hold this value > myFloat = 1.79e+308 > PRINT "Max value in Float " & myFloat > myFloat += 1 ' BUG: DoesNOT Wrap > PRINT "Min value in Float " & myFloat > > END > > ---------------------------- > > Program Output: > > ---------------------------- > > RANGES > Max value in Byte 255 > Min value in Byte 0 > Max value in Short 32767 > Min value in Short -32768 > Max value in Integer 2147483647 > Min value in Integer -2147483648 > Max value in Long 9223372036854775807 > Min value in Long -9223372036854775808 > Max value in Single 3.399999952144E+38 > Min value in Single 3.399999952144E+38 > Max value in Float 1.79E+308 > Min value in Float 1E+2147483647 > > ---------------------------- > > I have issue in Single and Float: > 1. How to overflow the Single and Float? > 2. Why does the Float not accept the highest value? > > Thanks in advance. :working: > -- > View this message in context: http://www.nabble.com/Confusion-in-Data-Types-tp23921847p23921847.html > Sent from the gambas-user mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > OpenSolaris 2009.06 is a cutting edge operating system for enterprises > looking to deploy the next generation of Solaris that includes the latest > innovations from Sun and the OpenSource community. Download a copy and > enjoy capabilities such as Networking, Storage and Virtualization. > Go to: http://p.sf.net/sfu/opensolaris-get > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From berenscott at ...1979... Tue Jun 9 04:03:48 2009 From: berenscott at ...1979... (Beren Scott) Date: Tue, 09 Jun 2009 12:03:48 +1000 Subject: [Gambas-user] clipboard In-Reply-To: <200906081817.05331.rospolosco@...152...> References: <1244452166.5001.222.camel@...57...> <200906081647.56806.rospolosco@...152...> <1244474831.5001.228.camel@...57...> <200906081817.05331.rospolosco@...152...> Message-ID: <1244513028.5001.236.camel@...57...> Is it because technically linux doesn't have a clipboard, and that simply put the copy command simply applies a reference to the location of the item you have copied, and then when you paste, it looks up the item you wish to paste? I guess I am trying to find some type of work around, because the program simply will not function successfully without the ability to copy an item into clipboard. Take for example, it's like this, I have Opera browser, and I want the program to generate URL's, and then I want to using the ctrl - shift V command paste and go. It's all about speed. Now, if there is an alternative way to do this, I'd love it. The other alternative could be to design a browser into the program itself? Though, I'm not much of a coder, but I'm willing to give it a go if need be. I have a mission, and that is to complete this program, rofl, I am half tempted to convert the program to c++, but to be honest, I'd rather do it in basic, been programming in basic most my life, so not giving up yet. Any chance of a change to the way gambas handles clipboard functions? On Mon, 2009-06-08 at 18:17 +0200, Stefano Palmeri wrote: > Il luned? 8 giugno 2009 17:27:11 Beren Scott ha scritto: > > On Mon, 2009-06-08 at 16:47 +0200, Stefano Palmeri wrote: > > > Il luned? 8 giugno 2009 16:03:23 Beren Scott ha scritto: > > > > On Mon, 2009-06-08 at 02:44 -0700, charlesg wrote: > > > > > Hi, > > > > > > > > > > Clipboard.Copy(txtItem.text) > > > > > > > > > > rgds > > > > > > > > The problem is however that I am currently console only, no gui, and I > > > > am getting a non-existent item error on "clipboard". Do I have to add > > > > any lines of code to fix this? > > > > > > > > > > > > ----------------------------------------------------------------------- > > > >---- --- OpenSolaris 2009.06 is a cutting edge operating system for > > > > enterprises looking to deploy the next generation of Solaris that > > > > includes the latest innovations from Sun and the OpenSource community. > > > > Download a copy and enjoy capabilities such as Networking, Storage and > > > > Virtualization. Go to: http://p.sf.net/sfu/opensolaris-get > > > > _______________________________________________ > > > > Gambas-user mailing list > > > > Gambas-user at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > Enable gb.gui in the project componets list. > > > > > > ------------------------------------------------------------------------- > > >----- OpenSolaris 2009.06 is a cutting edge operating system for > > > enterprises looking to deploy the next generation of Solaris that > > > includes the latest innovations from Sun and the OpenSource community. > > > Download a copy and enjoy capabilities such as Networking, Storage and > > > Virtualization. Go to: http://p.sf.net/sfu/opensolaris-get > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > Okay, that is done, but now I am finding that it isn't copying anything > > into the clipboard. Take for example, I want to use the copied data in > > another program, copy from gambas2, paste into a web browser. But > > nothing is being copied into the clipboard. > > > > Oh, you're right. I don't know if this is a bug. Hope Benoit > reads this. It seems that Gambas copy on its own clipboard. > I don't understand. > This code: > > PUBLIC SUB Main() > > DIM sss AS String > > Clipboard.Copy("hello") > sss = Clipboard.Paste() > > PRINT sss > > END > > simply print the string on console, but nothing > on KDE clipboard or X clipborad (tested with xsel). > So, I don't know. > > Gambas 2.13.1 > > > > > > > --------------------------------------------------------------------------- > >--- Crystal Reports - New Free Runtime and 30 Day Trial > > Check out the new simplified licensing option that enables unlimited > > royalty-free distribution of the report engine for externally facing > > server and web deployment. > > http://p.sf.net/sfu/businessobjects > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensing option that enables unlimited > royalty-free distribution of the report engine for externally facing > server and web deployment. > http://p.sf.net/sfu/businessobjects > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From rospolosco at ...152... Tue Jun 9 04:45:53 2009 From: rospolosco at ...152... (Stefano Palmeri) Date: Tue, 9 Jun 2009 04:45:53 +0200 Subject: [Gambas-user] clipboard In-Reply-To: <1244513028.5001.236.camel@...57...> References: <1244452166.5001.222.camel@...57...> <200906081817.05331.rospolosco@...152...> <1244513028.5001.236.camel@...57...> Message-ID: <200906090445.54017.rospolosco@...152...> Il marted? 9 giugno 2009 04:03:48 Beren Scott ha scritto: > Is it because technically linux doesn't have a clipboard, and that > simply put the copy command simply applies a reference to the location > of the item you have copied, and then when you paste, it looks up the > item you wish to paste? > > I guess I am trying to find some type of work around, because the > program simply will not function successfully without the ability to > copy an item into clipboard. Take for example, it's like this, I have > Opera browser, and I want the program to generate URL's, and then I want > to using the ctrl - shift V command paste and go. It's all about speed. > > Now, if there is an alternative way to do this, I'd love it. The other > alternative could be to design a browser into the program itself? > Though, I'm not much of a coder, but I'm willing to give it a go if need > be. > > I have a mission, and that is to complete this program, rofl, I am half > tempted to convert the program to c++, but to be honest, I'd rather do > it in basic, been programming in basic most my life, so not giving up > yet. Any chance of a change to the way gambas handles clipboard > functions? > I don't know. This is a question for Benoit :-) If the application you're developing is just for you and you don't need to redistribute it, you could install an utility like xclip or xsel and call them with SHELL. > On Mon, 2009-06-08 at 18:17 +0200, Stefano Palmeri wrote: > > Il luned? 8 giugno 2009 17:27:11 Beren Scott ha scritto: > > > On Mon, 2009-06-08 at 16:47 +0200, Stefano Palmeri wrote: > > > > Il luned? 8 giugno 2009 16:03:23 Beren Scott ha scritto: > > > > > On Mon, 2009-06-08 at 02:44 -0700, charlesg wrote: > > > > > > Hi, > > > > > > > > > > > > Clipboard.Copy(txtItem.text) > > > > > > > > > > > > rgds > > > > > > > > > > The problem is however that I am currently console only, no gui, > > > > > and I am getting a non-existent item error on "clipboard". Do I > > > > > have to add any lines of code to fix this? > > > > > > > > > > > > > > > ------------------------------------------------------------------- > > > > >---- ---- --- OpenSolaris 2009.06 is a cutting edge operating system > > > > > for enterprises looking to deploy the next generation of Solaris > > > > > that includes the latest innovations from Sun and the OpenSource > > > > > community. Download a copy and enjoy capabilities such as > > > > > Networking, Storage and Virtualization. Go to: > > > > > http://p.sf.net/sfu/opensolaris-get > > > > > _______________________________________________ > > > > > Gambas-user mailing list > > > > > Gambas-user at lists.sourceforge.net > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > Enable gb.gui in the project componets list. > > > > > > > > --------------------------------------------------------------------- > > > >---- ----- OpenSolaris 2009.06 is a cutting edge operating system for > > > > enterprises looking to deploy the next generation of Solaris that > > > > includes the latest innovations from Sun and the OpenSource > > > > community. Download a copy and enjoy capabilities such as Networking, > > > > Storage and Virtualization. Go to: > > > > http://p.sf.net/sfu/opensolaris-get > > > > _______________________________________________ > > > > Gambas-user mailing list > > > > Gambas-user at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > Okay, that is done, but now I am finding that it isn't copying anything > > > into the clipboard. Take for example, I want to use the copied data in > > > another program, copy from gambas2, paste into a web browser. But > > > nothing is being copied into the clipboard. > > > > Oh, you're right. I don't know if this is a bug. Hope Benoit > > reads this. It seems that Gambas copy on its own clipboard. > > I don't understand. > > This code: > > > > PUBLIC SUB Main() > > > > DIM sss AS String > > > > Clipboard.Copy("hello") > > sss = Clipboard.Paste() > > > > PRINT sss > > > > END > > > > simply print the string on console, but nothing > > on KDE clipboard or X clipborad (tested with xsel). > > So, I don't know. > > > > Gambas 2.13.1 > > > > > ----------------------------------------------------------------------- > > >---- --- Crystal Reports - New Free Runtime and 30 Day Trial > > > Check out the new simplified licensing option that enables unlimited > > > royalty-free distribution of the report engine for externally facing > > > server and web deployment. > > > http://p.sf.net/sfu/businessobjects > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------- > >----- Crystal Reports - New Free Runtime and 30 Day Trial > > Check out the new simplified licensing option that enables unlimited > > royalty-free distribution of the report engine for externally facing > > server and web deployment. > > http://p.sf.net/sfu/businessobjects > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > --------------------------------------------------------------------------- >--- Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensing option that enables unlimited > royalty-free distribution of the report engine for externally facing > server and web deployment. > http://p.sf.net/sfu/businessobjects > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From rospolosco at ...152... Tue Jun 9 05:00:00 2009 From: rospolosco at ...152... (Stefano Palmeri) Date: Tue, 9 Jun 2009 05:00:00 +0200 Subject: [Gambas-user] clipboard In-Reply-To: <200906090445.54017.rospolosco@...152...> References: <1244452166.5001.222.camel@...57...> <1244513028.5001.236.camel@...57...> <200906090445.54017.rospolosco@...152...> Message-ID: <200906090500.00355.rospolosco@...152...> Il marted? 9 giugno 2009 04:45:53 Stefano Palmeri ha scritto: Or if you have a KDE 3 DE you could use: SHELL "dcop klipper klipper setClipboardContents 'hello gambas'" WAIT > Il marted? 9 giugno 2009 04:03:48 Beren Scott ha scritto: > > Is it because technically linux doesn't have a clipboard, and that > > simply put the copy command simply applies a reference to the location > > of the item you have copied, and then when you paste, it looks up the > > item you wish to paste? > > > > I guess I am trying to find some type of work around, because the > > program simply will not function successfully without the ability to > > copy an item into clipboard. Take for example, it's like this, I have > > Opera browser, and I want the program to generate URL's, and then I want > > to using the ctrl - shift V command paste and go. It's all about speed. > > > > Now, if there is an alternative way to do this, I'd love it. The other > > alternative could be to design a browser into the program itself? > > Though, I'm not much of a coder, but I'm willing to give it a go if need > > be. > > > > I have a mission, and that is to complete this program, rofl, I am half > > tempted to convert the program to c++, but to be honest, I'd rather do > > it in basic, been programming in basic most my life, so not giving up > > yet. Any chance of a change to the way gambas handles clipboard > > functions? > > I don't know. This is a question for Benoit :-) > > If the application you're developing is just for you > and you don't need to redistribute it, you could install > an utility like xclip or xsel and call them with SHELL. > > > On Mon, 2009-06-08 at 18:17 +0200, Stefano Palmeri wrote: > > > Il luned? 8 giugno 2009 17:27:11 Beren Scott ha scritto: > > > > On Mon, 2009-06-08 at 16:47 +0200, Stefano Palmeri wrote: > > > > > Il luned? 8 giugno 2009 16:03:23 Beren Scott ha scritto: > > > > > > On Mon, 2009-06-08 at 02:44 -0700, charlesg wrote: > > > > > > > Hi, > > > > > > > > > > > > > > Clipboard.Copy(txtItem.text) > > > > > > > > > > > > > > rgds > > > > > > > > > > > > The problem is however that I am currently console only, no gui, > > > > > > and I am getting a non-existent item error on "clipboard". Do I > > > > > > have to add any lines of code to fix this? > > > > > > > > > > > > > > > > > > ----------------------------------------------------------------- > > > > > >-- ---- ---- --- OpenSolaris 2009.06 is a cutting edge operating > > > > > > system for enterprises looking to deploy the next generation of > > > > > > Solaris that includes the latest innovations from Sun and the > > > > > > OpenSource community. Download a copy and enjoy capabilities such > > > > > > as Networking, Storage and Virtualization. Go to: > > > > > > http://p.sf.net/sfu/opensolaris-get > > > > > > _______________________________________________ > > > > > > Gambas-user mailing list > > > > > > Gambas-user at lists.sourceforge.net > > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > Enable gb.gui in the project componets list. > > > > > > > > > > ------------------------------------------------------------------- > > > > >-- ---- ----- OpenSolaris 2009.06 is a cutting edge operating system > > > > > for enterprises looking to deploy the next generation of Solaris > > > > > that includes the latest innovations from Sun and the OpenSource > > > > > community. Download a copy and enjoy capabilities such as > > > > > Networking, Storage and Virtualization. Go to: > > > > > http://p.sf.net/sfu/opensolaris-get > > > > > _______________________________________________ > > > > > Gambas-user mailing list > > > > > Gambas-user at lists.sourceforge.net > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > Okay, that is done, but now I am finding that it isn't copying > > > > anything into the clipboard. Take for example, I want to use the > > > > copied data in another program, copy from gambas2, paste into a web > > > > browser. But nothing is being copied into the clipboard. > > > > > > Oh, you're right. I don't know if this is a bug. Hope Benoit > > > reads this. It seems that Gambas copy on its own clipboard. > > > I don't understand. > > > This code: > > > > > > PUBLIC SUB Main() > > > > > > DIM sss AS String > > > > > > Clipboard.Copy("hello") > > > sss = Clipboard.Paste() > > > > > > PRINT sss > > > > > > END > > > > > > simply print the string on console, but nothing > > > on KDE clipboard or X clipborad (tested with xsel). > > > So, I don't know. > > > > > > Gambas 2.13.1 > > > > > > > --------------------------------------------------------------------- > > > >-- ---- --- Crystal Reports - New Free Runtime and 30 Day Trial > > > > Check out the new simplified licensing option that enables unlimited > > > > royalty-free distribution of the report engine for externally facing > > > > server and web deployment. > > > > http://p.sf.net/sfu/businessobjects > > > > _______________________________________________ > > > > Gambas-user mailing list > > > > Gambas-user at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > ----------------------------------------------------------------------- > > >-- ----- Crystal Reports - New Free Runtime and 30 Day Trial > > > Check out the new simplified licensing option that enables unlimited > > > royalty-free distribution of the report engine for externally facing > > > server and web deployment. > > > http://p.sf.net/sfu/businessobjects > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------- > >-- --- Crystal Reports - New Free Runtime and 30 Day Trial > > Check out the new simplified licensing option that enables unlimited > > royalty-free distribution of the report engine for externally facing > > server and web deployment. > > http://p.sf.net/sfu/businessobjects > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > --------------------------------------------------------------------------- >--- Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensing option that enables unlimited > royalty-free distribution of the report engine for externally facing > server and web deployment. > http://p.sf.net/sfu/businessobjects > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From berenscott at ...1979... Tue Jun 9 05:19:37 2009 From: berenscott at ...1979... (Beren Scott) Date: Tue, 09 Jun 2009 13:19:37 +1000 Subject: [Gambas-user] clipboard In-Reply-To: <200906090500.00355.rospolosco@...152...> References: <1244452166.5001.222.camel@...57...> <1244513028.5001.236.camel@...57...> <200906090445.54017.rospolosco@...152...> <200906090500.00355.rospolosco@...152...> Message-ID: <1244517578.5001.243.camel@...57...> I'll show you the line of code I'm using, it's currently not functioning correctly, but I'm getting closer I can feel it. dim pasteurl as string dim villurl[] as string dim farmid[] as integer dim z as integer dim c as integer pasteurl = "echo " & villurl[z - 1] & farmid[c - 1] & " | xclip" SHELL pasteurl WAIT Okay, so as you can see, the URL is varible, and cannot be hard coded like 'hello gambas'. So, I have to apply a form of editing around the outside of the command. I'm not that familiar with the workings of SHELL, I've installed xclip, but it doesn't appear to be working in it's above form. I definitely have something wrong there, but there isn't that much example to go by. On Tue, 2009-06-09 at 05:00 +0200, Stefano Palmeri wrote: > Il marted? 9 giugno 2009 04:45:53 Stefano Palmeri ha scritto: > > Or if you have a KDE 3 DE you could use: > > SHELL "dcop klipper klipper setClipboardContents 'hello gambas'" WAIT > > > Il marted? 9 giugno 2009 04:03:48 Beren Scott ha scritto: > > > Is it because technically linux doesn't have a clipboard, and that > > > simply put the copy command simply applies a reference to the location > > > of the item you have copied, and then when you paste, it looks up the > > > item you wish to paste? > > > > > > I guess I am trying to find some type of work around, because the > > > program simply will not function successfully without the ability to > > > copy an item into clipboard. Take for example, it's like this, I have > > > Opera browser, and I want the program to generate URL's, and then I want > > > to using the ctrl - shift V command paste and go. It's all about speed. > > > > > > Now, if there is an alternative way to do this, I'd love it. The other > > > alternative could be to design a browser into the program itself? > > > Though, I'm not much of a coder, but I'm willing to give it a go if need > > > be. > > > > > > I have a mission, and that is to complete this program, rofl, I am half > > > tempted to convert the program to c++, but to be honest, I'd rather do > > > it in basic, been programming in basic most my life, so not giving up > > > yet. Any chance of a change to the way gambas handles clipboard > > > functions? > > > > I don't know. This is a question for Benoit :-) > > > > If the application you're developing is just for you > > and you don't need to redistribute it, you could install > > an utility like xclip or xsel and call them with SHELL. > > > > > On Mon, 2009-06-08 at 18:17 +0200, Stefano Palmeri wrote: > > > > Il luned? 8 giugno 2009 17:27:11 Beren Scott ha scritto: > > > > > On Mon, 2009-06-08 at 16:47 +0200, Stefano Palmeri wrote: > > > > > > Il luned? 8 giugno 2009 16:03:23 Beren Scott ha scritto: > > > > > > > On Mon, 2009-06-08 at 02:44 -0700, charlesg wrote: > > > > > > > > Hi, > > > > > > > > > > > > > > > > Clipboard.Copy(txtItem.text) > > > > > > > > > > > > > > > > rgds > > > > > > > > > > > > > > The problem is however that I am currently console only, no gui, > > > > > > > and I am getting a non-existent item error on "clipboard". Do I > > > > > > > have to add any lines of code to fix this? > > > > > > > > > > > > > > > > > > > > > ----------------------------------------------------------------- > > > > > > >-- ---- ---- --- OpenSolaris 2009.06 is a cutting edge operating > > > > > > > system for enterprises looking to deploy the next generation of > > > > > > > Solaris that includes the latest innovations from Sun and the > > > > > > > OpenSource community. Download a copy and enjoy capabilities such > > > > > > > as Networking, Storage and Virtualization. Go to: > > > > > > > http://p.sf.net/sfu/opensolaris-get > > > > > > > _______________________________________________ > > > > > > > Gambas-user mailing list > > > > > > > Gambas-user at lists.sourceforge.net > > > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > > Enable gb.gui in the project componets list. > > > > > > > > > > > > ------------------------------------------------------------------- > > > > > >-- ---- ----- OpenSolaris 2009.06 is a cutting edge operating system > > > > > > for enterprises looking to deploy the next generation of Solaris > > > > > > that includes the latest innovations from Sun and the OpenSource > > > > > > community. Download a copy and enjoy capabilities such as > > > > > > Networking, Storage and Virtualization. Go to: > > > > > > http://p.sf.net/sfu/opensolaris-get > > > > > > _______________________________________________ > > > > > > Gambas-user mailing list > > > > > > Gambas-user at lists.sourceforge.net > > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > Okay, that is done, but now I am finding that it isn't copying > > > > > anything into the clipboard. Take for example, I want to use the > > > > > copied data in another program, copy from gambas2, paste into a web > > > > > browser. But nothing is being copied into the clipboard. > > > > > > > > Oh, you're right. I don't know if this is a bug. Hope Benoit > > > > reads this. It seems that Gambas copy on its own clipboard. > > > > I don't understand. > > > > This code: > > > > > > > > PUBLIC SUB Main() > > > > > > > > DIM sss AS String > > > > > > > > Clipboard.Copy("hello") > > > > sss = Clipboard.Paste() > > > > > > > > PRINT sss > > > > > > > > END > > > > > > > > simply print the string on console, but nothing > > > > on KDE clipboard or X clipborad (tested with xsel). > > > > So, I don't know. > > > > > > > > Gambas 2.13.1 > > > > > > > > > --------------------------------------------------------------------- > > > > >-- ---- --- Crystal Reports - New Free Runtime and 30 Day Trial > > > > > Check out the new simplified licensing option that enables unlimited > > > > > royalty-free distribution of the report engine for externally facing > > > > > server and web deployment. > > > > > http://p.sf.net/sfu/businessobjects > > > > > _______________________________________________ > > > > > Gambas-user mailing list > > > > > Gambas-user at lists.sourceforge.net > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > ----------------------------------------------------------------------- > > > >-- ----- Crystal Reports - New Free Runtime and 30 Day Trial > > > > Check out the new simplified licensing option that enables unlimited > > > > royalty-free distribution of the report engine for externally facing > > > > server and web deployment. > > > > http://p.sf.net/sfu/businessobjects > > > > _______________________________________________ > > > > Gambas-user mailing list > > > > Gambas-user at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > ------------------------------------------------------------------------- > > >-- --- Crystal Reports - New Free Runtime and 30 Day Trial > > > Check out the new simplified licensing option that enables unlimited > > > royalty-free distribution of the report engine for externally facing > > > server and web deployment. > > > http://p.sf.net/sfu/businessobjects > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > --------------------------------------------------------------------------- > >--- Crystal Reports - New Free Runtime and 30 Day Trial > > Check out the new simplified licensing option that enables unlimited > > royalty-free distribution of the report engine for externally facing > > server and web deployment. > > http://p.sf.net/sfu/businessobjects > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensing option that enables unlimited > royalty-free distribution of the report engine for externally facing > server and web deployment. > http://p.sf.net/sfu/businessobjects > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From dosida at ...626... Tue Jun 9 06:27:32 2009 From: dosida at ...626... (Dimitris Anogiatis) Date: Mon, 8 Jun 2009 22:27:32 -0600 Subject: [Gambas-user] clipboard In-Reply-To: <1244517578.5001.243.camel@...57...> References: <1244452166.5001.222.camel@...57...> <1244513028.5001.236.camel@...57...> <200906090445.54017.rospolosco@...152...> <200906090500.00355.rospolosco@...152...> <1244517578.5001.243.camel@...57...> Message-ID: <82bffccf0906082127y11196d1bj9627edf2683a185@...627...> Hey Beren, If I may add my 2 cents worth of wisdom, the flow of information in your program is still unknown and it's kinda difficult to understand what you're trying to do... however if I read this correctly (correct me if I'm wrong) > > > > > Take for example, I want to use the > > > > > copied data in another program, copy from gambas2, paste into a web > > > > > browser. But nothing is being copied into the clipboard. if copying data off the clipboard and pasting them into a webpage is what you need then why not turn your program into a gambas server page and save your data in a text file that the server page will read and print into a webpage? This is how I think it may work for you Gambas (or other) program -->> saves data into file -->> temp.txt <<-- reads file <<-- gambas server page renders file as html unless your plan is otherwise it should be adequate to get your clipboard data accross Let me know if that helps at all Regards Dimitris On Mon, Jun 8, 2009 at 9:19 PM, Beren Scott wrote: > I'll show you the line of code I'm using, it's currently not functioning > correctly, but I'm getting closer I can feel it. > > dim pasteurl as string > dim villurl[] as string > dim farmid[] as integer > dim z as integer > dim c as integer > > pasteurl = "echo " & villurl[z - 1] & farmid[c - 1] & " | xclip" > SHELL pasteurl WAIT > > Okay, so as you can see, the URL is varible, and cannot be hard coded > like 'hello gambas'. So, I have to apply a form of editing around the > outside of the command. I'm not that familiar with the workings of > SHELL, I've installed xclip, but it doesn't appear to be working in it's > above form. I definitely have something wrong there, but there isn't > that much example to go by. > > On Tue, 2009-06-09 at 05:00 +0200, Stefano Palmeri wrote: > > Il marted? 9 giugno 2009 04:45:53 Stefano Palmeri ha scritto: > > > > Or if you have a KDE 3 DE you could use: > > > > SHELL "dcop klipper klipper setClipboardContents 'hello gambas'" WAIT > > > > > Il marted? 9 giugno 2009 04:03:48 Beren Scott ha scritto: > > > > Is it because technically linux doesn't have a clipboard, and that > > > > simply put the copy command simply applies a reference to the > location > > > > of the item you have copied, and then when you paste, it looks up the > > > > item you wish to paste? > > > > > > > > I guess I am trying to find some type of work around, because the > > > > program simply will not function successfully without the ability to > > > > copy an item into clipboard. Take for example, it's like this, I have > > > > Opera browser, and I want the program to generate URL's, and then I > want > > > > to using the ctrl - shift V command paste and go. It's all about > speed. > > > > > > > > Now, if there is an alternative way to do this, I'd love it. The > other > > > > alternative could be to design a browser into the program itself? > > > > Though, I'm not much of a coder, but I'm willing to give it a go if > need > > > > be. > > > > > > > > I have a mission, and that is to complete this program, rofl, I am > half > > > > tempted to convert the program to c++, but to be honest, I'd rather > do > > > > it in basic, been programming in basic most my life, so not giving up > > > > yet. Any chance of a change to the way gambas handles clipboard > > > > functions? > > > > > > I don't know. This is a question for Benoit :-) > > > > > > If the application you're developing is just for you > > > and you don't need to redistribute it, you could install > > > an utility like xclip or xsel and call them with SHELL. > > > > > > > On Mon, 2009-06-08 at 18:17 +0200, Stefano Palmeri wrote: > > > > > Il luned? 8 giugno 2009 17:27:11 Beren Scott ha scritto: > > > > > > On Mon, 2009-06-08 at 16:47 +0200, Stefano Palmeri wrote: > > > > > > > Il luned? 8 giugno 2009 16:03:23 Beren Scott ha scritto: > > > > > > > > On Mon, 2009-06-08 at 02:44 -0700, charlesg wrote: > > > > > > > > > Hi, > > > > > > > > > > > > > > > > > > Clipboard.Copy(txtItem.text) > > > > > > > > > > > > > > > > > > rgds > > > > > > > > > > > > > > > > The problem is however that I am currently console only, no > gui, > > > > > > > > and I am getting a non-existent item error on "clipboard". Do > I > > > > > > > > have to add any lines of code to fix this? > > > > > > > > > > > > > > > > > > > > > > > > > ----------------------------------------------------------------- > > > > > > > >-- ---- ---- --- OpenSolaris 2009.06 is a cutting edge > operating > > > > > > > > system for enterprises looking to deploy the next generation > of > > > > > > > > Solaris that includes the latest innovations from Sun and the > > > > > > > > OpenSource community. Download a copy and enjoy capabilities > such > > > > > > > > as Networking, Storage and Virtualization. Go to: > > > > > > > > http://p.sf.net/sfu/opensolaris-get > > > > > > > > _______________________________________________ > > > > > > > > Gambas-user mailing list > > > > > > > > Gambas-user at lists.sourceforge.net > > > > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > > > > Enable gb.gui in the project componets list. > > > > > > > > > > > > > > > ------------------------------------------------------------------- > > > > > > >-- ---- ----- OpenSolaris 2009.06 is a cutting edge operating > system > > > > > > > for enterprises looking to deploy the next generation of > Solaris > > > > > > > that includes the latest innovations from Sun and the > OpenSource > > > > > > > community. Download a copy and enjoy capabilities such as > > > > > > > Networking, Storage and Virtualization. Go to: > > > > > > > http://p.sf.net/sfu/opensolaris-get > > > > > > > _______________________________________________ > > > > > > > Gambas-user mailing list > > > > > > > Gambas-user at lists.sourceforge.net > > > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > > Okay, that is done, but now I am finding that it isn't copying > > > > > > anything into the clipboard. Take for example, I want to use the > > > > > > copied data in another program, copy from gambas2, paste into a > web > > > > > > browser. But nothing is being copied into the clipboard. > > > > > > > > > > Oh, you're right. I don't know if this is a bug. Hope Benoit > > > > > reads this. It seems that Gambas copy on its own clipboard. > > > > > I don't understand. > > > > > This code: > > > > > > > > > > PUBLIC SUB Main() > > > > > > > > > > DIM sss AS String > > > > > > > > > > Clipboard.Copy("hello") > > > > > sss = Clipboard.Paste() > > > > > > > > > > PRINT sss > > > > > > > > > > END > > > > > > > > > > simply print the string on console, but nothing > > > > > on KDE clipboard or X clipborad (tested with xsel). > > > > > So, I don't know. > > > > > > > > > > Gambas 2.13.1 > > > > > > > > > > > > --------------------------------------------------------------------- > > > > > >-- ---- --- Crystal Reports - New Free Runtime and 30 Day Trial > > > > > > Check out the new simplified licensing option that enables > unlimited > > > > > > royalty-free distribution of the report engine for externally > facing > > > > > > server and web deployment. > > > > > > http://p.sf.net/sfu/businessobjects > > > > > > _______________________________________________ > > > > > > Gambas-user mailing list > > > > > > Gambas-user at lists.sourceforge.net > > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > ----------------------------------------------------------------------- > > > > >-- ----- Crystal Reports - New Free Runtime and 30 Day Trial > > > > > Check out the new simplified licensing option that enables > unlimited > > > > > royalty-free distribution of the report engine for externally > facing > > > > > server and web deployment. > > > > > http://p.sf.net/sfu/businessobjects > > > > > _______________________________________________ > > > > > Gambas-user mailing list > > > > > Gambas-user at lists.sourceforge.net > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > ------------------------------------------------------------------------- > > > >-- --- Crystal Reports - New Free Runtime and 30 Day Trial > > > > Check out the new simplified licensing option that enables unlimited > > > > royalty-free distribution of the report engine for externally facing > > > > server and web deployment. > > > > http://p.sf.net/sfu/businessobjects > > > > _______________________________________________ > > > > Gambas-user mailing list > > > > Gambas-user at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > --------------------------------------------------------------------------- > > >--- Crystal Reports - New Free Runtime and 30 Day Trial > > > Check out the new simplified licensing option that enables unlimited > > > royalty-free distribution of the report engine for externally facing > > > server and web deployment. > > > http://p.sf.net/sfu/businessobjects > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > ------------------------------------------------------------------------------ > > Crystal Reports - New Free Runtime and 30 Day Trial > > Check out the new simplified licensing option that enables unlimited > > royalty-free distribution of the report engine for externally facing > > server and web deployment. > > http://p.sf.net/sfu/businessobjects > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensing option that enables unlimited > royalty-free distribution of the report engine for externally facing > server and web deployment. > http://p.sf.net/sfu/businessobjects > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From doriano.blengino at ...1909... Tue Jun 9 06:49:09 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Tue, 09 Jun 2009 06:49:09 +0200 Subject: [Gambas-user] Confusion in Data Types In-Reply-To: <20090609011328.M98285@...951...> References: <23921847.post@...1379...> <20090609011328.M98285@...951...> Message-ID: <4A2DE9C5.5080607@...1909...> nando ha scritto: > Float and Double is not as simple an explaination as the Int and others. > ... > > Floating point numbers have two parts. > Simplistically: One part is an integer which represents the actual digits in binary. > The other is the value of the exponent (binary point and not decimal point). > > >> ' Single (4-Byte C Float) 1.2e-38 to 3.4e38 >> mySingle = 3.4e+38 >> PRINT "Max value in Single " & mySingle >> mySingle += 1 '1e+36 ' Issues >> PRINT "Min value in Single " & mySingle >> >> ' Float (4-Byte C Double) 2.2e-308 to 1.8e308 >> 'myFloat = 1.8e+308 BUG: Cant hold this value >> myFloat = 1.79e+308 >> PRINT "Max value in Float " & myFloat >> myFloat += 1 ' BUG: DoesNOT Wrap >> PRINT "Min value in Float " & myFloat >> >> END >> >> ---------------------------- >> >> Program Output: >> >> ---------------------------- >> >> RANGES >> Max value in Single 3.399999952144E+38 >> Min value in Single 3.399999952144E+38 >> Max value in Float 1.79E+308 >> Min value in Float 1E+2147483647 >> >> ---------------------------- >> Nando you are right but, anyway, there is something strange here. I think that the "single" behaviour is correct - if you add 1 to a very large number, this small added quantity should be so small to be ignored (rounded away), and this is what the "single" part does. But the "float" behaviour scares me... floating point numbers should not overflow via an addition, I think. You can expect overflows and NaN's when more complex operations are involved, such as dividing by small numbers, or calculating tangents or other trascendentals (is this right english?). And, "1E+2147483647" is a strange number... At this point, just for curiosity, I tried this program in freepascal: program test; var valsingle : single; valdouble : double; begin valsingle := 3.4e+38; writeln('MAX single: ', valsingle); valsingle := valsingle+1; writeln('MIN single: ', valsingle); valdouble := 1.79e+308; writeln('MAX double: ', valdouble); valdouble := valdouble+1; writeln('MIN double: ', valdouble); end. Assigning 1.8e+308 to valdouble does not and give error, but prints out as "+Inf", so I resorted to use 1.79e+308; the result is: MAX single: 3.399999952E+38 MIN single: 3.399999952E+38 MAX double: 1.79000000000000E+308 MIN double: 1.79000000000000E+308 Which confirms that there is something strange in KhurramM experiment. By the way, KhurramM: a double takes 8 bytes, not four. Regards, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From berenscott at ...1979... Tue Jun 9 07:20:56 2009 From: berenscott at ...1979... (Beren Scott) Date: Tue, 09 Jun 2009 15:20:56 +1000 Subject: [Gambas-user] clipboard In-Reply-To: <82bffccf0906082127y11196d1bj9627edf2683a185@...627...> References: <1244452166.5001.222.camel@...57...> <1244513028.5001.236.camel@...57...> <200906090445.54017.rospolosco@...152...> <200906090500.00355.rospolosco@...152...> <1244517578.5001.243.camel@...57...> <82bffccf0906082127y11196d1bj9627edf2683a185@...627...> Message-ID: <1244524856.5001.255.camel@...57...> The goal of my program is to keep an offline database and use it to plan out a series of actions which are html based and online. So, the database is accessed by my program, my program formulates with moderate user interaction the best course of action. The program copies a link to the clipboard, this link when pasted into a web browser will contain the decided action. There are a couple of ways I can do this, the first is to run a web browser and this program side by side and alt tab between them with the copy pasted link. If I cannot do this, then I have to incorporate the web browser directly into my program. I'd rather leave the browser part to the experts, but if possible it would be great to integrate them when I have a better idea of how to do this. Here is an example html link which I need entered into the clipboard: http://(server)/game.php?village=(villid)&screen=place&mode=command&target=(farmid) I can generate the string, that's the easy part, but getting it into my browser is going to be the hard part. There is issues with the SHELL option I believe due to the inclusion of "&", I don't think this is handled well. On Mon, 2009-06-08 at 22:27 -0600, Dimitris Anogiatis wrote: > Hey Beren, > If I may add my 2 cents worth of wisdom, > > the flow of information in your program is still unknown and it's kinda > difficult to understand > what you're trying to do... however if I read this correctly (correct me if > I'm wrong) > > > > > > > Take for example, I want to use the > > > > > > copied data in another program, copy from gambas2, paste into a > web > > > > > > browser. But nothing is being copied into the clipboard. > > if copying data off the clipboard and pasting them into a webpage is what > you need > then why not turn your program into a gambas server page and save your data > in a text > file that the server page will read and print into a webpage? > > This is how I think it may work for you > > Gambas (or other) program -->> saves data into file -->> temp.txt <<-- reads > file <<-- gambas server page renders file as html > > unless your plan is otherwise it should be adequate to get your clipboard > data accross > > Let me know if that helps at all > Regards > Dimitris > > > On Mon, Jun 8, 2009 at 9:19 PM, Beren Scott wrote: > > > I'll show you the line of code I'm using, it's currently not functioning > > correctly, but I'm getting closer I can feel it. > > > > dim pasteurl as string > > dim villurl[] as string > > dim farmid[] as integer > > dim z as integer > > dim c as integer > > > > pasteurl = "echo " & villurl[z - 1] & farmid[c - 1] & " | xclip" > > SHELL pasteurl WAIT > > > > Okay, so as you can see, the URL is varible, and cannot be hard coded > > like 'hello gambas'. So, I have to apply a form of editing around the > > outside of the command. I'm not that familiar with the workings of > > SHELL, I've installed xclip, but it doesn't appear to be working in it's > > above form. I definitely have something wrong there, but there isn't > > that much example to go by. > > > > On Tue, 2009-06-09 at 05:00 +0200, Stefano Palmeri wrote: > > > Il marted? 9 giugno 2009 04:45:53 Stefano Palmeri ha scritto: > > > > > > Or if you have a KDE 3 DE you could use: > > > > > > SHELL "dcop klipper klipper setClipboardContents 'hello gambas'" WAIT > > > > > > > Il marted? 9 giugno 2009 04:03:48 Beren Scott ha scritto: > > > > > Is it because technically linux doesn't have a clipboard, and that > > > > > simply put the copy command simply applies a reference to the > > location > > > > > of the item you have copied, and then when you paste, it looks up the > > > > > item you wish to paste? > > > > > > > > > > I guess I am trying to find some type of work around, because the > > > > > program simply will not function successfully without the ability to > > > > > copy an item into clipboard. Take for example, it's like this, I have > > > > > Opera browser, and I want the program to generate URL's, and then I > > want > > > > > to using the ctrl - shift V command paste and go. It's all about > > speed. > > > > > > > > > > Now, if there is an alternative way to do this, I'd love it. The > > other > > > > > alternative could be to design a browser into the program itself? > > > > > Though, I'm not much of a coder, but I'm willing to give it a go if > > need > > > > > be. > > > > > > > > > > I have a mission, and that is to complete this program, rofl, I am > > half > > > > > tempted to convert the program to c++, but to be honest, I'd rather > > do > > > > > it in basic, been programming in basic most my life, so not giving up > > > > > yet. Any chance of a change to the way gambas handles clipboard > > > > > functions? > > > > > > > > I don't know. This is a question for Benoit :-) > > > > > > > > If the application you're developing is just for you > > > > and you don't need to redistribute it, you could install > > > > an utility like xclip or xsel and call them with SHELL. > > > > > > > > > On Mon, 2009-06-08 at 18:17 +0200, Stefano Palmeri wrote: > > > > > > Il luned? 8 giugno 2009 17:27:11 Beren Scott ha scritto: > > > > > > > On Mon, 2009-06-08 at 16:47 +0200, Stefano Palmeri wrote: > > > > > > > > Il luned? 8 giugno 2009 16:03:23 Beren Scott ha scritto: > > > > > > > > > On Mon, 2009-06-08 at 02:44 -0700, charlesg wrote: > > > > > > > > > > Hi, > > > > > > > > > > > > > > > > > > > > Clipboard.Copy(txtItem.text) > > > > > > > > > > > > > > > > > > > > rgds > > > > > > > > > > > > > > > > > > The problem is however that I am currently console only, no > > gui, > > > > > > > > > and I am getting a non-existent item error on "clipboard". Do > > I > > > > > > > > > have to add any lines of code to fix this? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ----------------------------------------------------------------- > > > > > > > > >-- ---- ---- --- OpenSolaris 2009.06 is a cutting edge > > operating > > > > > > > > > system for enterprises looking to deploy the next generation > > of > > > > > > > > > Solaris that includes the latest innovations from Sun and the > > > > > > > > > OpenSource community. Download a copy and enjoy capabilities > > such > > > > > > > > > as Networking, Storage and Virtualization. Go to: > > > > > > > > > http://p.sf.net/sfu/opensolaris-get > > > > > > > > > _______________________________________________ > > > > > > > > > Gambas-user mailing list > > > > > > > > > Gambas-user at lists.sourceforge.net > > > > > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > > > > > > Enable gb.gui in the project componets list. > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------- > > > > > > > >-- ---- ----- OpenSolaris 2009.06 is a cutting edge operating > > system > > > > > > > > for enterprises looking to deploy the next generation of > > Solaris > > > > > > > > that includes the latest innovations from Sun and the > > OpenSource > > > > > > > > community. Download a copy and enjoy capabilities such as > > > > > > > > Networking, Storage and Virtualization. Go to: > > > > > > > > http://p.sf.net/sfu/opensolaris-get > > > > > > > > _______________________________________________ > > > > > > > > Gambas-user mailing list > > > > > > > > Gambas-user at lists.sourceforge.net > > > > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > > > > Okay, that is done, but now I am finding that it isn't copying > > > > > > > anything into the clipboard. Take for example, I want to use the > > > > > > > copied data in another program, copy from gambas2, paste into a > > web > > > > > > > browser. But nothing is being copied into the clipboard. > > > > > > > > > > > > Oh, you're right. I don't know if this is a bug. Hope Benoit > > > > > > reads this. It seems that Gambas copy on its own clipboard. > > > > > > I don't understand. > > > > > > This code: > > > > > > > > > > > > PUBLIC SUB Main() > > > > > > > > > > > > DIM sss AS String > > > > > > > > > > > > Clipboard.Copy("hello") > > > > > > sss = Clipboard.Paste() > > > > > > > > > > > > PRINT sss > > > > > > > > > > > > END > > > > > > > > > > > > simply print the string on console, but nothing > > > > > > on KDE clipboard or X clipborad (tested with xsel). > > > > > > So, I don't know. > > > > > > > > > > > > Gambas 2.13.1 > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > > > >-- ---- --- Crystal Reports - New Free Runtime and 30 Day Trial > > > > > > > Check out the new simplified licensing option that enables > > unlimited > > > > > > > royalty-free distribution of the report engine for externally > > facing > > > > > > > server and web deployment. > > > > > > > http://p.sf.net/sfu/businessobjects > > > > > > > _______________________________________________ > > > > > > > Gambas-user mailing list > > > > > > > Gambas-user at lists.sourceforge.net > > > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > > > > ----------------------------------------------------------------------- > > > > > >-- ----- Crystal Reports - New Free Runtime and 30 Day Trial > > > > > > Check out the new simplified licensing option that enables > > unlimited > > > > > > royalty-free distribution of the report engine for externally > > facing > > > > > > server and web deployment. > > > > > > http://p.sf.net/sfu/businessobjects > > > > > > _______________________________________________ > > > > > > Gambas-user mailing list > > > > > > Gambas-user at lists.sourceforge.net > > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > > ------------------------------------------------------------------------- > > > > >-- --- Crystal Reports - New Free Runtime and 30 Day Trial > > > > > Check out the new simplified licensing option that enables unlimited > > > > > royalty-free distribution of the report engine for externally facing > > > > > server and web deployment. > > > > > http://p.sf.net/sfu/businessobjects > > > > > _______________________________________________ > > > > > Gambas-user mailing list > > > > > Gambas-user at lists.sourceforge.net > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > --------------------------------------------------------------------------- > > > >--- Crystal Reports - New Free Runtime and 30 Day Trial > > > > Check out the new simplified licensing option that enables unlimited > > > > royalty-free distribution of the report engine for externally facing > > > > server and web deployment. > > > > http://p.sf.net/sfu/businessobjects > > > > _______________________________________________ > > > > Gambas-user mailing list > > > > Gambas-user at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > Crystal Reports - New Free Runtime and 30 Day Trial > > > Check out the new simplified licensing option that enables unlimited > > > royalty-free distribution of the report engine for externally facing > > > server and web deployment. > > > http://p.sf.net/sfu/businessobjects > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > ------------------------------------------------------------------------------ > > Crystal Reports - New Free Runtime and 30 Day Trial > > Check out the new simplified licensing option that enables unlimited > > royalty-free distribution of the report engine for externally facing > > server and web deployment. > > http://p.sf.net/sfu/businessobjects > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------------ > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensing option that enables unlimited > royalty-free distribution of the report engine for externally facing > server and web deployment. > http://p.sf.net/sfu/businessobjects > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From doriano.blengino at ...1909... Tue Jun 9 08:21:13 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Tue, 09 Jun 2009 08:21:13 +0200 Subject: [Gambas-user] clipboard In-Reply-To: <1244524856.5001.255.camel@...57...> References: <1244452166.5001.222.camel@...57...> <1244513028.5001.236.camel@...57...> <200906090445.54017.rospolosco@...152...> <200906090500.00355.rospolosco@...152...> <1244517578.5001.243.camel@...57...> <82bffccf0906082127y11196d1bj9627edf2683a185@...627...> <1244524856.5001.255.camel@...57...> Message-ID: <4A2DFF59.4060708@...1909...> Beren Scott ha scritto: > The goal of my program is to keep an offline database and use it to plan > out a series of actions which are html based and online. So, the > database is accessed by my program, my program formulates with moderate > user interaction the best course of action. The program copies a link to > the clipboard, this link when pasted into a web browser will contain the > decided action. > > There are a couple of ways I can do this, the first is to run a web > browser and this program side by side and alt tab between them with the > copy pasted link. > > If I cannot do this, then I have to incorporate the web browser directly > into my program. I'd rather leave the browser part to the experts, but > if possible it would be great to integrate them when I have a better > idea of how to do this. > > Here is an example html link which I need entered into the clipboard: > > http://(server)/game.php?village=(villid)&screen=place&mode=command&target=(farmid) > > I can generate the string, that's the easy part, but getting it into my > browser is going to be the hard part. There is issues with the SHELL > option I believe due to the inclusion of "&", I don't think this is > handled well. > You can also start an external web browser from inside your program, passing the URL to fetch on the command line; something like: SHELL "firefox http://www.yoururl.whatever" This way you avoid the burden to require the user to paste - in certain cases this is a difficult operation. Moreover, if required, you can also know when the external program terminates. Your problem about the URL passed on a command line, is because the shell interprets some special chars like "?", "=" and "(" ")". You only have to surround your parameters with a couple quotes: fetchurl = villurl[z - 1] & farmid[c - 1] SHELL "firefox \"http://" & fetchurl & "\"" Please note the --\"-- (backslash-doublequote) embedded in string constants. These are required because otherwise the shell, invoked by SHELL, would be confused from the above mentioned characters like question marks and other. You can experiment from a terminal emulator to better understand when and where quotes are required; then you replicate them inside gambas. In this case, simply a couple quotes around the url passed to firefox is required, or, only now I realize, even better is to use the single quotes - it is even simpler in gambas: fetchurl = villurl[z - 1] & farmid[c - 1] SHELL "firefox 'http://" & fetchurl & "'" This is better because of the shell /bin/sh, which still can interpret some things embedded in double quotes (for example, dollar signs), but surely will do nothing inside single quotes. Sorry for this confusion. Anyway, knowing about this quoting is good for everytime you use the SHELL command, so it is good also if you choose the xclip way. If you go deeper in this topic of launching external programs, take a look at EXEC, a little more complicated but more powerful. Regards, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From berenscott at ...1979... Tue Jun 9 08:34:01 2009 From: berenscott at ...1979... (Beren Scott) Date: Tue, 09 Jun 2009 16:34:01 +1000 Subject: [Gambas-user] clipboard In-Reply-To: <4A2DFF59.4060708@...1909...> References: <1244452166.5001.222.camel@...57...> <1244513028.5001.236.camel@...57...> <200906090445.54017.rospolosco@...152...> <200906090500.00355.rospolosco@...152...> <1244517578.5001.243.camel@...57...> <82bffccf0906082127y11196d1bj9627edf2683a185@...627...> <1244524856.5001.255.camel@...57...> <4A2DFF59.4060708@...1909...> Message-ID: <1244529241.5001.260.camel@...57...> I think I have solved the issue, basically instead of using clipboard, I'm just going to have a form with an embedded web browser. This way I can cut out the extra stuff. Originally I percieved this as being too hard, but because I wasn't making much in roads on the clipboard, it forced me to investigate the web browsing and I believe I have been able to make something much better in the end. I can control the web browser directly from the form. Now, the question is, can gambas parse the incoming html data? Now that would be great, the ability to find key pieces of data and use it to update the database would be super. Anyways, I'm happy, and very excited. Isn't it great when it all comes together? On Tue, 2009-06-09 at 08:21 +0200, Doriano Blengino wrote: > Beren Scott ha scritto: > > The goal of my program is to keep an offline database and use it to plan > > out a series of actions which are html based and online. So, the > > database is accessed by my program, my program formulates with moderate > > user interaction the best course of action. The program copies a link to > > the clipboard, this link when pasted into a web browser will contain the > > decided action. > > > > There are a couple of ways I can do this, the first is to run a web > > browser and this program side by side and alt tab between them with the > > copy pasted link. > > > > If I cannot do this, then I have to incorporate the web browser directly > > into my program. I'd rather leave the browser part to the experts, but > > if possible it would be great to integrate them when I have a better > > idea of how to do this. > > > > Here is an example html link which I need entered into the clipboard: > > > > http://(server)/game.php?village=(villid)&screen=place&mode=command&target=(farmid) > > > > I can generate the string, that's the easy part, but getting it into my > > browser is going to be the hard part. There is issues with the SHELL > > option I believe due to the inclusion of "&", I don't think this is > > handled well. > > > You can also start an external web browser from inside your program, > passing the URL to fetch on the command line; something like: > > SHELL "firefox http://www.yoururl.whatever" > > This way you avoid the burden to require the user to paste - in certain > cases this is a difficult operation. Moreover, if required, you can also > know when the external program terminates. > > Your problem about the URL passed on a command line, is because the > shell interprets some special chars like "?", "=" and "(" ")". > > You only have to surround your parameters with a couple quotes: > > fetchurl = villurl[z - 1] & farmid[c - 1] > SHELL "firefox \"http://" & fetchurl & "\"" > > Please note the --\"-- (backslash-doublequote) embedded in string constants. These are required because otherwise the shell, invoked by SHELL, would be confused from the above mentioned characters like question marks and other. You can experiment from a terminal emulator to better understand when and where quotes are required; then you replicate them inside gambas. In this case, simply a couple quotes around the url passed to firefox is required, or, only now I realize, even better is to use the single quotes - it is even simpler in gambas: > > fetchurl = villurl[z - 1] & farmid[c - 1] > SHELL "firefox 'http://" & fetchurl & "'" > > > This is better because of the shell /bin/sh, which still can interpret > some things embedded in double quotes (for example, dollar signs), but > surely will do nothing inside single quotes. Sorry for this confusion. > > Anyway, knowing about this quoting is good for everytime you use the > SHELL command, so it is good also if you choose the xclip way. If you go > deeper in this topic of launching external programs, take a look at > EXEC, a little more complicated but more powerful. > > Regards, > From rterry at ...1946... Tue Jun 9 10:57:55 2009 From: rterry at ...1946... (richard terry) Date: Tue, 9 Jun 2009 18:57:55 +1000 Subject: [Gambas-user] IDE drop down subroutine combo box Problem Message-ID: <200906091857.55294.rterry@...1946...> Well, perhaps not an error Build 2010, but over the last few builds this no longer reacts to a keypress to jump to the subroutine starting with that name, instead focus seems to have been returned to the editor text and the letter being pressed is written to ones code! Regards Richard From rospolosco at ...152... Tue Jun 9 11:30:58 2009 From: rospolosco at ...152... (Stefano Palmeri) Date: Tue, 9 Jun 2009 11:30:58 +0200 Subject: [Gambas-user] clipboard In-Reply-To: <4A2DFF59.4060708@...1909...> References: <1244452166.5001.222.camel@...57...> <1244524856.5001.255.camel@...57...> <4A2DFF59.4060708@...1909...> Message-ID: <200906091130.58826.rospolosco@...152...> Il marted? 9 giugno 2009 08:21:13 Doriano Blengino ha scritto: > Beren Scott ha scritto: > > The goal of my program is to keep an offline database and use it to plan > > out a series of actions which are html based and online. So, the > > database is accessed by my program, my program formulates with moderate > > user interaction the best course of action. The program copies a link to > > the clipboard, this link when pasted into a web browser will contain the > > decided action. > > > > There are a couple of ways I can do this, the first is to run a web > > browser and this program side by side and alt tab between them with the > > copy pasted link. > > > > If I cannot do this, then I have to incorporate the web browser directly > > into my program. I'd rather leave the browser part to the experts, but > > if possible it would be great to integrate them when I have a better > > idea of how to do this. > > > > Here is an example html link which I need entered into the clipboard: > > > > http://(server)/game.php?village=(villid)&screen=place&mode=command&targe > >t=(farmid) > > > > I can generate the string, that's the easy part, but getting it into my > > browser is going to be the hard part. There is issues with the SHELL > > option I believe due to the inclusion of "&", I don't think this is > > handled well. > > You can also start an external web browser from inside your program, > passing the URL to fetch on the command line; something like: > > SHELL "firefox http://www.yoururl.whatever" > > This way you avoid the burden to require the user to paste - in certain > cases this is a difficult operation. Moreover, if required, you can also > know when the external program terminates. > > Your problem about the URL passed on a command line, is because the > shell interprets some special chars like "?", "=" and "(" ")". > > You only have to surround your parameters with a couple quotes: > > fetchurl = villurl[z - 1] & farmid[c - 1] > SHELL "firefox \"http://" & fetchurl & "\"" > > Please note the --\"-- (backslash-doublequote) embedded in string > constants. These are required because otherwise the shell, invoked by > SHELL, would be confused from the above mentioned characters like question > marks and other. You can experiment from a terminal emulator to better > understand when and where quotes are required; then you replicate them > inside gambas. In this case, simply a couple quotes around the url passed > to firefox is required, or, only now I realize, even better is to use the > single quotes - it is even simpler in gambas: > > fetchurl = villurl[z - 1] & farmid[c - 1] > SHELL "firefox 'http://" & fetchurl & "'" > > > This is better because of the shell /bin/sh, which still can interpret > some things embedded in double quotes (for example, dollar signs), but > surely will do nothing inside single quotes. Sorry for this confusion. > > Anyway, knowing about this quoting is good for everytime you use the > SHELL command, so it is good also if you choose the xclip way. If you go > deeper in this topic of launching external programs, take a look at > EXEC, a little more complicated but more powerful. > > Regards, Little info: Gambas provide a Quote class with few useful functions. One of them is Quote.Shell, that protects with quotes the argument you pass to SHELL. Examples: 1) SHELL "echo " & Quote.Shell("$PATH") WAIT 2) SHELL "echo " & "$PATH" WAIT Bye, Stefano From rterry at ...1946... Tue Jun 9 12:39:17 2009 From: rterry at ...1946... (richard terry) Date: Tue, 9 Jun 2009 20:39:17 +1000 Subject: [Gambas-user] collection syntax difficulty Message-ID: <200906092039.17325.rterry@...1946...> Gambas DOC: Returns the key of the last read or last enumerated element. I'm having problem reading the key of a collection with collection.key. I guess gambas is behaving as gambas says it will, however it would be nice to be able to get the first key in a collection without having to iterate through it (ie having the default action of collection.key to return the first key). Lets say I have a collection called myCollection which I've loaded with database information keyed on the primary key of the table. Mycollection(999) If try and get the key of this by this syntax: print Mycollection.key then the key is null If I do either With Mycollection print Mycollection.key next or For each Mycollection print Mycollection.key next then it prints the key (here 999) So my question, short of iterating through a collection (even if only one member) is there no way to get the key of the collection? Docs I guess say not, is this fixable/changeable? Richard From oceanosoftlapalma at ...626... Tue Jun 9 13:07:10 2009 From: oceanosoftlapalma at ...626... (Ricardo =?ISO-8859-1?Q?D=EDaz_Mart=EDn?=) Date: Tue, 09 Jun 2009 13:07:10 +0200 Subject: [Gambas-user] collection syntax difficulty In-Reply-To: <200906092039.17325.rterry@...1946...> References: <200906092039.17325.rterry@...1946...> Message-ID: <1244545630.28839.492.camel@...2192...> Maybe the problem is key in collection are String and you are using MyCollection(999). Try: MyCollection("999") to get reference to this element. In adition, when you are adding elements to MyCollection, convert the key to string (MyCollection.Add(element, CString(ElementKey)) regards Ricardo -----Mensaje original----- De: richard terry Reply-to: richard terry , mailing list for gambas users Para: mailing list for gambas users Asunto: [Gambas-user] collection syntax difficulty Fecha: Tue, 9 Jun 2009 20:39:17 +1000 Gambas DOC: Returns the key of the last read or last enumerated element. I'm having problem reading the key of a collection with collection.key. I guess gambas is behaving as gambas says it will, however it would be nice to be able to get the first key in a collection without having to iterate through it (ie having the default action of collection.key to return the first key). Lets say I have a collection called myCollection which I've loaded with database information keyed on the primary key of the table. Mycollection(999) If try and get the key of this by this syntax: print Mycollection.key then the key is null If I do either With Mycollection print Mycollection.key next or For each Mycollection print Mycollection.key next then it prints the key (here 999) So my question, short of iterating through a collection (even if only one member) is there no way to get the key of the collection? Docs I guess say not, is this fixable/changeable? Richard ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Tue Jun 9 16:11:55 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Tue, 9 Jun 2009 16:11:55 +0200 Subject: [Gambas-user] clipboard In-Reply-To: <200906081817.05331.rospolosco@...152...> References: <1244452166.5001.222.camel@...57...> <1244474831.5001.228.camel@...57...> <200906081817.05331.rospolosco@...152...> Message-ID: <200906091611.55539.gambas@...1...> > Il luned? 8 giugno 2009 17:27:11 Beren Scott ha scritto: > > On Mon, 2009-06-08 at 16:47 +0200, Stefano Palmeri wrote: > > > Il luned? 8 giugno 2009 16:03:23 Beren Scott ha scritto: > > > > On Mon, 2009-06-08 at 02:44 -0700, charlesg wrote: > > > > > Hi, > > > > > > > > > > Clipboard.Copy(txtItem.text) > > > > > > > > > > rgds > > > > > > > > The problem is however that I am currently console only, no gui, and > > > > I am getting a non-existent item error on "clipboard". Do I have to > > > > add any lines of code to fix this? > > > > > > > > > > > > --------------------------------------------------------------------- > > > >-- ---- --- OpenSolaris 2009.06 is a cutting edge operating system for > > > > enterprises looking to deploy the next generation of Solaris that > > > > includes the latest innovations from Sun and the OpenSource > > > > community. Download a copy and enjoy capabilities such as Networking, > > > > Storage and Virtualization. Go to: > > > > http://p.sf.net/sfu/opensolaris-get > > > > _______________________________________________ > > > > Gambas-user mailing list > > > > Gambas-user at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > Enable gb.gui in the project componets list. > > > > > > ----------------------------------------------------------------------- > > >-- ----- OpenSolaris 2009.06 is a cutting edge operating system for > > > enterprises looking to deploy the next generation of Solaris that > > > includes the latest innovations from Sun and the OpenSource community. > > > Download a copy and enjoy capabilities such as Networking, Storage and > > > Virtualization. Go to: http://p.sf.net/sfu/opensolaris-get > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > Okay, that is done, but now I am finding that it isn't copying anything > > into the clipboard. Take for example, I want to use the copied data in > > another program, copy from gambas2, paste into a web browser. But > > nothing is being copied into the clipboard. > > Oh, you're right. I don't know if this is a bug. Hope Benoit > reads this. It seems that Gambas copy on its own clipboard. > I don't understand. > This code: > > PUBLIC SUB Main() > > DIM sss AS String > > Clipboard.Copy("hello") > sss = Clipboard.Paste() > > PRINT sss > > END > > simply print the string on console, but nothing > on KDE clipboard or X clipborad (tested with xsel). > So, I don't know. > > Gambas 2.13.1 > It seems there is a bug: Clipboard.Copy("hello") ' Don't work Clipboard.Copy("hello", "text/plain") ' Works! ...whereas the two should behave the same. So there is a workaround at the moment, but I have no idea why the first fails... Regards, -- Beno?t From gambas at ...1... Tue Jun 9 16:17:48 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Tue, 9 Jun 2009 16:17:48 +0200 Subject: [Gambas-user] clipboard In-Reply-To: <200906091611.55539.gambas@...1...> References: <1244452166.5001.222.camel@...57...> <200906081817.05331.rospolosco@...152...> <200906091611.55539.gambas@...1...> Message-ID: <200906091617.48480.gambas@...1...> > > Il luned? 8 giugno 2009 17:27:11 Beren Scott ha scritto: > > > On Mon, 2009-06-08 at 16:47 +0200, Stefano Palmeri wrote: > > > > Il luned? 8 giugno 2009 16:03:23 Beren Scott ha scritto: > > > > > On Mon, 2009-06-08 at 02:44 -0700, charlesg wrote: > > > > > > Hi, > > > > > > > > > > > > Clipboard.Copy(txtItem.text) > > > > > > > > > > > > rgds > > > > > > > > > > The problem is however that I am currently console only, no gui, > > > > > and I am getting a non-existent item error on "clipboard". Do I > > > > > have to add any lines of code to fix this? > > > > > > > > > > > > > > > ------------------------------------------------------------------- > > > > >-- -- ---- --- OpenSolaris 2009.06 is a cutting edge operating > > > > > system for enterprises looking to deploy the next generation of > > > > > Solaris that includes the latest innovations from Sun and the > > > > > OpenSource community. Download a copy and enjoy capabilities such > > > > > as Networking, Storage and Virtualization. Go to: > > > > > http://p.sf.net/sfu/opensolaris-get > > > > > _______________________________________________ > > > > > Gambas-user mailing list > > > > > Gambas-user at lists.sourceforge.net > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > Enable gb.gui in the project componets list. > > > > > > > > --------------------------------------------------------------------- > > > >-- -- ----- OpenSolaris 2009.06 is a cutting edge operating system for > > > > enterprises looking to deploy the next generation of Solaris that > > > > includes the latest innovations from Sun and the OpenSource > > > > community. Download a copy and enjoy capabilities such as Networking, > > > > Storage and Virtualization. Go to: > > > > http://p.sf.net/sfu/opensolaris-get > > > > _______________________________________________ > > > > Gambas-user mailing list > > > > Gambas-user at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > Okay, that is done, but now I am finding that it isn't copying anything > > > into the clipboard. Take for example, I want to use the copied data in > > > another program, copy from gambas2, paste into a web browser. But > > > nothing is being copied into the clipboard. > > > > Oh, you're right. I don't know if this is a bug. Hope Benoit > > reads this. It seems that Gambas copy on its own clipboard. > > I don't understand. > > This code: > > > > PUBLIC SUB Main() > > > > DIM sss AS String > > > > Clipboard.Copy("hello") > > sss = Clipboard.Paste() > > > > PRINT sss > > > > END > > > > simply print the string on console, but nothing > > on KDE clipboard or X clipborad (tested with xsel). > > So, I don't know. > > > > Gambas 2.13.1 > > It seems there is a bug: > > Clipboard.Copy("hello") ' Don't work > Clipboard.Copy("hello", "text/plain") ' Works! > > ...whereas the two should behave the same. > > So there is a workaround at the moment, but I have no idea why the first > fails... > > Regards, Sorry, the workaround works with QT4, not with QT3. Mmm, very strange... -- Beno?t From gambas at ...1... Tue Jun 9 17:43:50 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Tue, 9 Jun 2009 17:43:50 +0200 Subject: [Gambas-user] clipboard In-Reply-To: <200906091617.48480.gambas@...1...> References: <1244452166.5001.222.camel@...57...> <200906091611.55539.gambas@...1...> <200906091617.48480.gambas@...1...> Message-ID: <200906091743.50131.gambas@...1...> > > > > It seems there is a bug: > > > > Clipboard.Copy("hello") ' Don't work > > Clipboard.Copy("hello", "text/plain") ' Works! > > > > ...whereas the two should behave the same. > > > > So there is a workaround at the moment, but I have no idea why the first > > fails... > > > > Regards, > > Sorry, the workaround works with QT4, not with QT3. Mmm, very strange... Yeah! I finally fixed the bug in revision #2011. It seems that with QT3 you have to copy the data into the clipboard several times, with a little event loop pause between each try. Otherwise you cannot be sure that the data is actually in the clipboard. With QT4 things seems to behave normally. Regards, -- Beno?t From ron at ...1740... Tue Jun 9 17:51:18 2009 From: ron at ...1740... (Ron) Date: Tue, 09 Jun 2009 17:51:18 +0200 Subject: [Gambas-user] clipboard In-Reply-To: <200906091743.50131.gambas@...1...> References: <1244452166.5001.222.camel@...57...> <200906091611.55539.gambas@...1...> <200906091617.48480.gambas@...1...> <200906091743.50131.gambas@...1...> Message-ID: <4A2E84F6.2080302@...1740...> > It seems that with QT3 you have to copy the data into the clipboard several > times, with a little event loop pause between each try. Otherwise you cannot > be sure that the data is actually in the clipboard. > > With QT4 things seems to behave normally We are talking about Linux right? This doesn't look so decent and straightforward as I'm used to... I'm stumped... Regards, Ron_2nd From gambas at ...1... Tue Jun 9 18:03:57 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Tue, 9 Jun 2009 18:03:57 +0200 Subject: [Gambas-user] clipboard In-Reply-To: <4A2E84F6.2080302@...1740...> References: <1244452166.5001.222.camel@...57...> <200906091743.50131.gambas@...1...> <4A2E84F6.2080302@...1740...> Message-ID: <200906091803.57420.gambas@...1...> > > It seems that with QT3 you have to copy the data into the clipboard > > several times, with a little event loop pause between each try. Otherwise > > you cannot be sure that the data is actually in the clipboard. > > > > With QT4 things seems to behave normally > > We are talking about Linux right? > This doesn't look so decent and straightforward as I'm used to... I'm > stumped... > > Regards, > Ron_2nd > The bug is more complex than I described. It seems that if you copy data into the clipboard when a window is opened, you don't have this problem. Moreover I did another bug too: I copied the data into the "mouse" clipboard, not in the "global" clipboard. -- Beno?t From jshackney at ...626... Tue Jun 9 18:19:12 2009 From: jshackney at ...626... (Jason Hackney) Date: Tue, 9 Jun 2009 12:19:12 -0400 Subject: [Gambas-user] clipboard In-Reply-To: <200906091803.57420.gambas@...1...> References: <1244452166.5001.222.camel@...57...> <200906091743.50131.gambas@...1...> <4A2E84F6.2080302@...1740...> <200906091803.57420.gambas@...1...> Message-ID: <799be1690906090919y3db46656o7d2520a3e78ed9e0@...627...> Beren, I don't know if you're absolutely tied to GTK or non-KDE libraries, but this may help if you are considering inserting a browser into your project: http://www.gambasdoc.org/help/comp/gb.qt.kde.html/webbrowser -j- From jussi.lahtinen at ...626... Tue Jun 9 19:46:45 2009 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Tue, 9 Jun 2009 20:46:45 +0300 Subject: [Gambas-user] collection syntax difficulty In-Reply-To: <1244545630.28839.492.camel@...2192...> References: <200906092039.17325.rterry@...1946...> <1244545630.28839.492.camel@...2192...> Message-ID: <384d3900906091046x79287be3oc6517c407262edde@...627...> I'm not sure what you mean. In collections, why order of elements matter? Maybe instead, you need to use Object[] data type? This doesn't work; MyCollection[999] however, these works; MyCollection["999"] and Dim ii as Integer = 999 MyCollection[ii] So, you don't have to convert variables to string. At least if you use binary collections... Jussi 2009/6/9 Ricardo D?az Mart?n : > Maybe the problem is key in collection are String and you are using > MyCollection(999). > > Try: > > MyCollection("999") > > to get reference to this element. In adition, when you are adding > elements to MyCollection, convert the key to string > (MyCollection.Add(element, CString(ElementKey)) > > regards > Ricardo > > -----Mensaje original----- > De: richard terry > Reply-to: richard terry , mailing list for gambas > users > Para: mailing list for gambas users > Asunto: [Gambas-user] collection syntax difficulty > Fecha: Tue, 9 Jun 2009 20:39:17 +1000 > > > Gambas DOC: Returns the key of the last read or last enumerated element. > > > I'm having problem reading the key of a collection with collection.key. I > guess gambas is behaving as gambas says it will, however it would be nice to > be able to get the first key in a collection without having to iterate > through it (ie having the default action of ?collection.key to return the > first key). > > Lets say I have a collection called myCollection which I've loaded with > database information keyed on the primary key of the table. > > Mycollection(999) > > If try and get the key of this by this syntax: > ? ? ? ?print Mycollection.key > then the key is null > > If I do either > ? ? ? ?With Mycollection > ? ? ? ? ? ? ? ?print Mycollection.key > ? ? ? ?next > or > > For each Mycollection > ? ? ? ?print Mycollection.key > next > > then it prints the key (here 999) > > So my question, short of iterating through a collection (even if only one > member) is there no way to get the key of the collection? Docs I guess say > not, is this fixable/changeable? > > Richard > > > ------------------------------------------------------------------------------ > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensing option that enables unlimited > royalty-free distribution of the report engine for externally facing > server and web deployment. > http://p.sf.net/sfu/businessobjects > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > ------------------------------------------------------------------------------ > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensing option that enables unlimited > royalty-free distribution of the report engine for externally facing > server and web deployment. > http://p.sf.net/sfu/businessobjects > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From prog at ...2177... Tue Jun 9 23:03:13 2009 From: prog at ...2177... (programacion) Date: Tue, 09 Jun 2009 17:03:13 -0400 Subject: [Gambas-user] HID USB in Gambas Message-ID: <1244581393.3456.0.camel@...651...> Hello I wonder if anyone has handled the usb port in HID mode. Regards From rterry at ...1946... Tue Jun 9 23:30:39 2009 From: rterry at ...1946... (richard terry) Date: Wed, 10 Jun 2009 07:30:39 +1000 Subject: [Gambas-user] collection syntax difficulty In-Reply-To: <384d3900906091046x79287be3oc6517c407262edde@...627...> References: <200906092039.17325.rterry@...1946...> <1244545630.28839.492.camel@...2192...> <384d3900906091046x79287be3oc6517c407262edde@...627...> Message-ID: <200906100730.39513.rterry@...1946...> On Wed, 10 Jun 2009 03:46:45 am Jussi Lahtinen wrote: > I'm not sure what you mean. > In collections, why order of elements matter? > Maybe instead, you need to use Object[] data type? I'm using collections of collections and in some situations I may have only one collection in the collections, so I just wanted reference it directory by using the collection.key which won't work unless it is enumerated. Regards richard > > > This doesn't work; > > MyCollection[999] > > however, these works; > > MyCollection["999"] > > and > > Dim ii as Integer = 999 > MyCollection[ii] > > So, you don't have to convert variables to string. At least if you use > binary collections... > > > Jussi > > 2009/6/9 Ricardo D?az Mart?n : > > Maybe the problem is key in collection are String and you are using > > MyCollection(999). > > > > Try: > > > > MyCollection("999") > > > > to get reference to this element. In adition, when you are adding > > elements to MyCollection, convert the key to string > > (MyCollection.Add(element, CString(ElementKey)) > > > > regards > > Ricardo > > > > -----Mensaje original----- > > De: richard terry > > Reply-to: richard terry , mailing list for gambas > > users > > Para: mailing list for gambas users > > Asunto: [Gambas-user] collection syntax difficulty > > Fecha: Tue, 9 Jun 2009 20:39:17 +1000 > > > > > > Gambas DOC: Returns the key of the last read or last enumerated element. > > > > > > I'm having problem reading the key of a collection with collection.key. I > > guess gambas is behaving as gambas says it will, however it would be nice > > to be able to get the first key in a collection without having to iterate > > through it (ie having the default action of ?collection.key to return the > > first key). > > > > Lets say I have a collection called myCollection which I've loaded with > > database information keyed on the primary key of the table. > > > > Mycollection(999) > > > > If try and get the key of this by this syntax: > > ? ? ? ?print Mycollection.key > > then the key is null > > > > If I do either > > ? ? ? ?With Mycollection > > ? ? ? ? ? ? ? ?print Mycollection.key > > ? ? ? ?next > > or > > > > For each Mycollection > > ? ? ? ?print Mycollection.key > > next > > > > then it prints the key (here 999) > > > > So my question, short of iterating through a collection (even if only one > > member) is there no way to get the key of the collection? Docs I guess > > say not, is this fixable/changeable? > > > > Richard > > > > > > ------------------------------------------------------------------------- > >----- Crystal Reports - New Free Runtime and 30 Day Trial > > Check out the new simplified licensing option that enables unlimited > > royalty-free distribution of the report engine for externally facing > > server and web deployment. > > http://p.sf.net/sfu/businessobjects > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------------------------- > >----- Crystal Reports - New Free Runtime and 30 Day Trial > > Check out the new simplified licensing option that enables unlimited > > royalty-free distribution of the report engine for externally facing > > server and web deployment. > > http://p.sf.net/sfu/businessobjects > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > --------------------------------------------------------------------------- >--- Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensing option that enables unlimited > royalty-free distribution of the report engine for externally facing > server and web deployment. > http://p.sf.net/sfu/businessobjects > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From berenscott at ...1979... Wed Jun 10 08:57:28 2009 From: berenscott at ...1979... (Beren Scott) Date: Wed, 10 Jun 2009 16:57:28 +1000 Subject: [Gambas-user] gb.qt.kde.html Message-ID: <1244617048.5001.266.camel@...57...> Hello hi, In regards to the webbrowser component, is it at all possible to gain access to the link normally displayed in the status bar of a normal web browser whilst the mouse is positioned above a html link in this component? Also, is it possible to parse the html code currently used in the displayed web page? Thankyou for your assistence, and a very good product this gambas and components are. Beren Scott From smiefert at ...784... Wed Jun 10 09:41:22 2009 From: smiefert at ...784... (Stefan Miefert) Date: Wed, 10 Jun 2009 09:41:22 +0200 Subject: [Gambas-user] Scrollbar in Textlabel Message-ID: <8D42310D957CFB46AA11921A711D4D160243AC9869@...1899...> Hello, is it possible to use a scrollbar in a Textlabel or is their any other element I can use html and have a autoscrollabr? Or how can I use a textbox having automatic textbreak , if the text is to long? From oceanosoftlapalma at ...626... Wed Jun 10 09:58:51 2009 From: oceanosoftlapalma at ...626... (Ricardo =?ISO-8859-1?Q?D=EDaz_Mart=EDn?=) Date: Wed, 10 Jun 2009 09:58:51 +0200 Subject: [Gambas-user] Scrollbar in Textlabel In-Reply-To: <8D42310D957CFB46AA11921A711D4D160243AC9869@...1899...> References: <8D42310D957CFB46AA11921A711D4D160243AC9869@...1899...> Message-ID: <1244620731.28839.637.camel@...2192...> You have to set property Wrap = True at TextArea Control. Then the text adjust to the with into the TextArea control. Regards, Ricardo -----Mensaje original----- De: Stefan Miefert Reply-to: mailing list for gambas users Para: gambas-user at lists.sourceforge.net Asunto: [Gambas-user] Scrollbar in Textlabel Fecha: Wed, 10 Jun 2009 09:41:22 +0200 Hello, is it possible to use a scrollbar in a Textlabel or is their any other element I can use html and have a autoscrollabr? Or how can I use a textbox having automatic textbreak , if the text is to long? ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From aromeroastorga at ...626... Wed Jun 10 10:26:42 2009 From: aromeroastorga at ...626... (Angel Romero Astorga) Date: Wed, 10 Jun 2009 10:26:42 +0200 Subject: [Gambas-user] OpenGL Message-ID: <69ef2ddd0906100126q1e892172q7a7cc21e991d5512@...627...> Hello, last days, I have started programming with OpenGL using OpenGL Area and Gambas. I have experimented some problems with the control. It seems don't work right. Is OpenGL Area full working? I would like know the state of development of the control. Also, if the gambas' team requires it, I will send the source code with the problem. Regards From kmsuse at ...626... Wed Jun 10 12:51:02 2009 From: kmsuse at ...626... (KhurramM) Date: Wed, 10 Jun 2009 03:51:02 -0700 (PDT) Subject: [Gambas-user] Confusion in Data Types In-Reply-To: <4A2DE9C5.5080607@...1909...> References: <23921847.post@...1379...> <20090609011328.M98285@...951...> <4A2DE9C5.5080607@...1909...> Message-ID: <23959774.post@...1379...> Hello All Thanks for the corrections. Doriano Blengino I made a mistake, the answer is not Max value in Float 1.79E+308 Min value in Float 1E+2147483647 But: Max value in Float 1.79E+308 Min value in Float 1.79E+308 Actually I was playing with values, and so got this output and put it forward. Regarding Wrapping, it does not occurs for Single and float, they just overflow and the interpreter screams for it. The program does not end in this scenario. Thanks for all the help. -- View this message in context: http://www.nabble.com/Confusion-in-Data-Types-tp23921847p23959774.html Sent from the gambas-user mailing list archive at Nabble.com. From joshiggins at ...1601... Wed Jun 10 13:55:58 2009 From: joshiggins at ...1601... (Joshua Higgins) Date: Wed, 10 Jun 2009 12:55:58 +0100 Subject: [Gambas-user] Strange compile procedure on Ubuntu jaunty Message-ID: <4247f5440906100455o4e1ee26fo8b95824afbcb884f@...627...> Hello again, I've compiled the latest 2.13.1 on Ubuntu Jaunty from the tarball on the Gambas homepage. I tried for days with no avail, it kept failing with Makefile.in errors (not found). To get it to compile, I had to create the folder /home/username/Gambas and untar the source package there. Then it went without a hitch. Is this expected behaviour? As a note, I also tried this with the 2.10 tarball, and its the same. -- joshua higgins >>>>>>------ From gambas at ...1... Wed Jun 10 14:03:16 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Wed, 10 Jun 2009 14:03:16 +0200 Subject: [Gambas-user] IDE drop down subroutine combo box Problem In-Reply-To: <200906091857.55294.rterry@...1946...> References: <200906091857.55294.rterry@...1946...> Message-ID: <200906101403.16163.gambas@...1...> > Well, perhaps not an error Build 2010, but over the last few builds this no > longer reacts to a keypress to jump to the subroutine starting with that > name, instead focus seems to have been returned to the editor text and the > letter being pressed is written to ones code! > > Regards > > Richard > This is a consequence of recent fixes in focus handling in gb.qt. It will be fixed in a next commit. Regards, -- Beno?t From gambas at ...1... Wed Jun 10 14:06:32 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Wed, 10 Jun 2009 14:06:32 +0200 Subject: [Gambas-user] Smooth Scrolling (not happening) In-Reply-To: <1f1e8c1b0905200850w2e2a8f41p807e117c636f8ee7@...627...> References: <1f1e8c1b0905200850w2e2a8f41p807e117c636f8ee7@...627...> Message-ID: <200906101406.32878.gambas@...1...> > Hi all, > > Some of you may have seen my project... a GUI installer for VectorLinux. > I've gotten the functionality parts to work, and it's all good. I do > have one annoyance that I can't shake and this is where I need help. > > While packages are being installed, I have a scrollview that scrolls > through the credits of all the people making the distro possible. Sort > of like movie credits. > The names come from a text file, and each name is turned into a > textlabel inside the scrollview. A timer object automatically handles > the scrolling (set to 25-50). > > The problem is that I need this to sroll while a bunch of shell > commands run in the background. > These shell commands being executed are really packages being > installed, so depending on the size of the package, the system may > take longer to free up the process object. > > The timer object lags while the shell process is running in the > background, so the scrolling is not smooth at all. > The timer object and its event are not at all related to the function > that runs the shell processes. It resides on a separate function on a > separate module. > > Any one have any pointers I could follow? > > Thanks > There were many fixes in process output and file descriptors watching management in the interpreter recently, especially in the gb.gtk component. Does it work better with the last revision (>= #2008) ? -- Beno?t From m0e.lnx at ...626... Wed Jun 10 15:06:10 2009 From: m0e.lnx at ...626... (M0E Lnx) Date: Wed, 10 Jun 2009 07:06:10 -0600 Subject: [Gambas-user] Smooth Scrolling (not happening) In-Reply-To: <200906101406.32878.gambas@...1...> References: <1f1e8c1b0905200850w2e2a8f41p807e117c636f8ee7@...627...> <200906101406.32878.gambas@...1...> Message-ID: <1f1e8c1b0906100606x71840741j747068a50ad4d929@...627...> I just tried building the latest svn (2011) and it wont build anymore... I mean it builds, but gb.qt wont, so the IDE is useless... does not load I have both qt-3.3.8b and qt4-4.5.0 installed.... all previous versions have built without a problem. From gambas at ...1... Wed Jun 10 15:13:50 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Wed, 10 Jun 2009 15:13:50 +0200 Subject: [Gambas-user] Smooth Scrolling (not happening) In-Reply-To: <1f1e8c1b0906100606x71840741j747068a50ad4d929@...627...> References: <1f1e8c1b0905200850w2e2a8f41p807e117c636f8ee7@...627...> <200906101406.32878.gambas@...1...> <1f1e8c1b0906100606x71840741j747068a50ad4d929@...627...> Message-ID: <200906101513.50089.gambas@...1...> > I just tried building the latest svn (2011) and it wont build > anymore... I mean it builds, but gb.qt wont, so the IDE is useless... > does not load > > I have both qt-3.3.8b and qt4-4.5.0 installed.... > all previous versions have built without a problem. > Can you give some details please? -- Beno?t From m0e.lnx at ...626... Wed Jun 10 15:18:48 2009 From: m0e.lnx at ...626... (M0E Lnx) Date: Wed, 10 Jun 2009 07:18:48 -0600 Subject: [Gambas-user] Smooth Scrolling (not happening) In-Reply-To: <200906101513.50089.gambas@...1...> References: <1f1e8c1b0905200850w2e2a8f41p807e117c636f8ee7@...627...> <200906101406.32878.gambas@...1...> <1f1e8c1b0906100606x71840741j747068a50ad4d929@...627...> <200906101513.50089.gambas@...1...> Message-ID: <1f1e8c1b0906100618s69693e43p3b003853bfe17c5d@...627...> well, I wanted to try and see if the scrolling issue worked any better... so I decided to refresh my copy of the 2.0 svn branch... revision 2011 was downloaded I attempted to build, and it failed. For some reason it can't find the qt moc exectuble, so configure reported gb.qt as DISABLED. reading the log however, it said to try the --with-moc options, so I did and specified the path to the bin, and it seems to be working... gb.qt was not listed as disabled... build is still going. Will report back in a few. From m0e.lnx at ...626... Wed Jun 10 15:34:05 2009 From: m0e.lnx at ...626... (M0E Lnx) Date: Wed, 10 Jun 2009 07:34:05 -0600 Subject: [Gambas-user] Smooth Scrolling (not happening) In-Reply-To: <1f1e8c1b0906100618s69693e43p3b003853bfe17c5d@...627...> References: <1f1e8c1b0905200850w2e2a8f41p807e117c636f8ee7@...627...> <200906101406.32878.gambas@...1...> <1f1e8c1b0906100606x71840741j747068a50ad4d929@...627...> <200906101513.50089.gambas@...1...> <1f1e8c1b0906100618s69693e43p3b003853bfe17c5d@...627...> Message-ID: <1f1e8c1b0906100634s3cc078det93c49ac394e7839@...627...> UPDATE: Success! I have built revision 2011... I'm up and running. ALthough I have moved the scrolling to a completely separate program embedded into my original app, the screen does seem to refresh a lot faster. I no longer need the WAIT between each shell process to allow the screen time to refresh.. This is a great fix. Thanks From jshackney at ...626... Wed Jun 10 16:41:58 2009 From: jshackney at ...626... (Jason Hackney) Date: Wed, 10 Jun 2009 10:41:58 -0400 Subject: [Gambas-user] gb.qt.kde.html In-Reply-To: <1244617048.5001.266.camel@...57...> References: <1244617048.5001.266.camel@...57...> Message-ID: <799be1690906100741o1a0558e9sd95c8bdb28adc4c8@...627...> You can read the link a user clicks on with the .link property. Not sure if it can be read before clicking on it though. Or, the .path property... says it returns or sets the URL displayed by the browser. Not sure if either of those is what you're looking for. Not sure about the other question. You could select the text in the window, but it doesn't look like you could get the source that rendered the text in the window. I could be missing something though, so not sure on this one. Perhaps in lieu of present functionality this could be a feature request? From smiefert at ...784... Wed Jun 10 16:47:01 2009 From: smiefert at ...784... (Stefan Miefert) Date: Wed, 10 Jun 2009 16:47:01 +0200 Subject: [Gambas-user] =?iso-8859-1?q?Wrap_in_a_tablecell=DF?= Message-ID: <8D42310D957CFB46AA11921A711D4D160243AC989A@...1899...> How can i use a warp in a tableview? From pkmorrison at ...626... Wed Jun 10 20:36:02 2009 From: pkmorrison at ...626... (Pete Morrison) Date: Wed, 10 Jun 2009 14:36:02 -0400 Subject: [Gambas-user] scroll to bottom Message-ID: <41c91c570906101136h6561c6b4sd6be4037402fe91e@...627...> I am trying to use a listview to provide a display of progress messages such that the newest should be visible at the bottom - ie scroll up as new message are added. Have tried .MoveLast & .Refresh as i add items - does nothing visible. Of course the scroll bar can be manually moved by the user but that is not very elegant. Is there any other list type control that will let me do this or am I missing something. -- Dan Quayle - "This President is going to lead us out of this recovery." From m0e.lnx at ...626... Wed Jun 10 21:15:33 2009 From: m0e.lnx at ...626... (M0E Lnx) Date: Wed, 10 Jun 2009 13:15:33 -0600 Subject: [Gambas-user] scroll to bottom In-Reply-To: <1f1e8c1b0906101214med0b6b9w622636a72ed69553@...627...> References: <41c91c570906101136h6561c6b4sd6be4037402fe91e@...627...> <1f1e8c1b0906101214med0b6b9w622636a72ed69553@...627...> Message-ID: <1f1e8c1b0906101215h529478fch1335d8111886075a@...627...> I just ran into the need for this also, and noticed the listview does not offer a scroll() method. In my case I need to scroll it back to 0,0 the very top. Anyone got any idea how to get this done? On Jun 10, 2009 2:10 PM, "Pete Morrison" wrote: I am trying to use a listview to provide a display of progress messages such that the newest should be visible at the bottom - ie scroll up as new message are added. Have tried .MoveLast & .Refresh as i add items - does nothing visible. Of course the scroll bar can be manually moved by the user but that is not very elegant. Is there any other list type control that will let me do this or am I missing something. -- Dan Quayle - "This President is going to lead us out of this recovery." ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Wed Jun 10 21:19:10 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Wed, 10 Jun 2009 21:19:10 +0200 Subject: [Gambas-user] scroll to bottom In-Reply-To: <1f1e8c1b0906101215h529478fch1335d8111886075a@...627...> References: <41c91c570906101136h6561c6b4sd6be4037402fe91e@...627...> <1f1e8c1b0906101214med0b6b9w622636a72ed69553@...627...> <1f1e8c1b0906101215h529478fch1335d8111886075a@...627...> Message-ID: <200906102119.10217.gambas@...1...> > I just ran into the need for this also, and noticed the listview does not > offer a scroll() method. > > In my case I need to scroll it back to 0,0 the very top. > Anyone got any idea how to get this done? > > On Jun 10, 2009 2:10 PM, "Pete Morrison" wrote: > > I am trying to use a listview to provide a display of progress messages > such that > the newest should be visible at the bottom - ie scroll up as new message > are added. > Have tried .MoveLast & .Refresh as i add items - does nothing visible. > > Of course the scroll bar can be manually moved by the user but that is not > very elegant. > > Is there any other list type control that will let me do this or am I > missing something. > -- > Listview items have an "EnsureVisible" method, that will scrolls the ListView so that the specified item becomes visible. Hope that helps... -- Beno?t From m0e.lnx at ...626... Wed Jun 10 21:34:15 2009 From: m0e.lnx at ...626... (M0E Lnx) Date: Wed, 10 Jun 2009 13:34:15 -0600 Subject: [Gambas-user] scroll to bottom In-Reply-To: <200906102119.10217.gambas@...1...> References: <41c91c570906101136h6561c6b4sd6be4037402fe91e@...627...> <1f1e8c1b0906101214med0b6b9w622636a72ed69553@...627...> <1f1e8c1b0906101215h529478fch1335d8111886075a@...627...> <200906102119.10217.gambas@...1...> Message-ID: <1f1e8c1b0906101234k714d7daayd17d3fab5e875c34@...627...> Whoops... mine isn't a listview, but rather a listbox. Anything I can do to get the same results here? On Jun 10, 2009 2:20 PM, "Beno?t Minisini" wrote: > I just ran into the need for this also, and noticed the listview does not > offer a scroll() metho... Listview items have an "EnsureVisible" method, that will scrolls the ListView so that the specified item becomes visible. Hope that helps... -- Beno?t ------------------------------------------------------------------------------ Crystal Reports - Ne... From berenscott at ...1979... Wed Jun 10 23:29:12 2009 From: berenscott at ...1979... (Beren Scott) Date: Thu, 11 Jun 2009 07:29:12 +1000 Subject: [Gambas-user] gb.qt.kde.html In-Reply-To: <799be1690906100741o1a0558e9sd95c8bdb28adc4c8@...627...> References: <1244617048.5001.266.camel@...57...> <799be1690906100741o1a0558e9sd95c8bdb28adc4c8@...627...> Message-ID: <1244669352.5001.268.camel@...57...> Yeah, link does work when the mouse is hovered over a link. It's perfect. On Wed, 2009-06-10 at 10:41 -0400, Jason Hackney wrote: > You can read the link a user clicks on with the .link property. Not sure if > it can be read before clicking on it though. Or, the .path property... says > it returns or sets the URL displayed by the browser. Not sure if either of > those is what you're looking for. > > Not sure about the other question. You could select the text in the window, > but it doesn't look like you could get the source that rendered the text in > the window. I could be missing something though, so not sure on this one. > > Perhaps in lieu of present functionality this could be a feature request? > ------------------------------------------------------------------------------ > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensing option that enables unlimited > royalty-free distribution of the report engine for externally facing > server and web deployment. > http://p.sf.net/sfu/businessobjects > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Thu Jun 11 01:14:44 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Thu, 11 Jun 2009 01:14:44 +0200 Subject: [Gambas-user] New name not shown in IDE at first (Gambas2) In-Reply-To: <4A2CB29C.407@...221...> References: <4A28DFA4.4030703@...221...> <200906071231.15464.gambas@...1...> <4A2CB29C.407@...221...> Message-ID: <200906110114.44450.gambas@...1...> > > Screenshot is difficult, as I don't know if it shows the tooltips. But > it's easy: > > Create a new ComboBox on the form. If it's the first one, it's called > ComboBox1. > > In the class, type Com and you will get a proposal for ComboBox, not > ComboBox1. I did as you wrote, but I have the ComboBox1 proposal: which version of Gambas do you use? > > Now change its name (in the Properties dialog at the right) to anything > else, testbox for instance. You may even press Return after typing. > Nothing happens, the name doesn't refresh in the preview This is a normal for a read-write ComboBox. What you see is inside is the value of its Text property, which takes as default value the initial Name of the control. If you change the control name later, the Text property remains. > - and if you > type "testbox" somewhere within code, the list with proposals will only > appear after you typed the "." I see testbox too, as soon as I have typed "tes". > > Does this make it clearer? > Yes and no, as it works perfectly on my box! -- Beno?t From pkmorrison at ...626... Thu Jun 11 01:52:30 2009 From: pkmorrison at ...626... (Peter Morrison) Date: Wed, 10 Jun 2009 19:52:30 -0400 Subject: [Gambas-user] scroll to bottom In-Reply-To: <200906102119.10217.gambas@...1...> References: <41c91c570906101136h6561c6b4sd6be4037402fe91e@...627...> <1f1e8c1b0906101214med0b6b9w622636a72ed69553@...627...> <1f1e8c1b0906101215h529478fch1335d8111886075a@...627...> <200906102119.10217.gambas@...1...> Message-ID: <4A30473E.1020009@...626...> Beno?t Minisini wrote: >> I just ran into the need for this also, and noticed the listview does not >> offer a scroll() method. >> >> In my case I need to scroll it back to 0,0 the very top. >> Anyone got any idea how to get this done? >> >> On Jun 10, 2009 2:10 PM, "Pete Morrison" wrote: >> >> I am trying to use a listview to provide a display of progress messages >> such that >> the newest should be visible at the bottom - ie scroll up as new message >> are added. >> Have tried .MoveLast & .Refresh as i add items - does nothing visible. >> >> Of course the scroll bar can be manually moved by the user but that is not >> very elegant. >> >> Is there any other list type control that will let me do this or am I >> missing something. >> -- >> > > Listview items have an "EnsureVisible" method, that will scrolls the ListView > so that the specified item becomes visible. > > Hope that helps... > Tried it, there is no EnsureVisible method for ListView "unknown symbos 'EnsureVisible' in class 'ListView'" From eilert-sprachen at ...221... Thu Jun 11 08:41:10 2009 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Thu, 11 Jun 2009 08:41:10 +0200 Subject: [Gambas-user] New name not shown in IDE at first (Gambas2) In-Reply-To: <200906110114.44450.gambas@...1...> References: <4A28DFA4.4030703@...221...> <200906071231.15464.gambas@...1...> <4A2CB29C.407@...221...> <200906110114.44450.gambas@...1...> Message-ID: <4A30A706.6040001@...221...> Beno?t Minisini schrieb: >> Screenshot is difficult, as I don't know if it shows the tooltips. But >> it's easy: >> >> Create a new ComboBox on the form. If it's the first one, it's called >> ComboBox1. >> >> In the class, type Com and you will get a proposal for ComboBox, not >> ComboBox1. > > I did as you wrote, but I have the ComboBox1 proposal: which version of Gambas > do you use? It's 2.13.1 > >> Now change its name (in the Properties dialog at the right) to anything >> else, testbox for instance. You may even press Return after typing. >> Nothing happens, the name doesn't refresh in the preview > > This is a normal for a read-write ComboBox. What you see is inside is the > value of its Text property, which takes as default value the initial Name of > the control. If you change the control name later, the Text property remains. Aaah - ok. Yes :-) > >> - and if you >> type "testbox" somewhere within code, the list with proposals will only >> appear after you typed the "." > > I see testbox too, as soon as I have typed "tes". > >> Does this make it clearer? >> > > Yes and no, as it works perfectly on my box! > Strange, isn't it? On my system it seems as if you had to type the name once in the editor before it recognizes it. As soon as you have typed the name somewhere, it appears in the autocompletion. If you delete the last appearance of that name, it won't be recognized again. But as nobody else complaints about it, I guess we can forget about that effect :-) Regards Rolf From jussi.lahtinen at ...626... Thu Jun 11 15:32:22 2009 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 11 Jun 2009 16:32:22 +0300 Subject: [Gambas-user] New name not shown in IDE at first (Gambas2) In-Reply-To: <384d3900906110631x58ed7ddke76eddbbdbbc1aee@...627...> References: <4A28DFA4.4030703@...221...> <200906071231.15464.gambas@...1...> <4A2CB29C.407@...221...> <200906110114.44450.gambas@...1...> <4A30A706.6040001@...221...> <384d3900906110631x58ed7ddke76eddbbdbbc1aee@...627...> Message-ID: <384d3900906110632m7b751c23w99409c883ccbb1bd@...627...> 64bit. Argh... funny typo, would be other problems too... Jussi On Thu, Jun 11, 2009 at 16:31, Jussi Lahtinen wrote: > Maybe it is issue only at 4bit systems..? > > > Jussi > > > On Thu, Jun 11, 2009 at 09:41, Rolf-Werner > Eilert wrote: >> Beno?t Minisini schrieb: >>>> Screenshot is difficult, as I don't know if it shows the tooltips. But >>>> it's easy: >>>> >>>> Create a new ComboBox on the form. If it's the first one, it's called >>>> ComboBox1. >>>> >>>> In the class, type Com and you will get a proposal for ComboBox, not >>>> ComboBox1. >>> >>> I did as you wrote, but I have the ComboBox1 proposal: which version of Gambas >>> do you use? >> >> It's 2.13.1 >> >>> >>>> Now change its name (in the Properties dialog at the right) to anything >>>> else, testbox for instance. You may even press Return after typing. >>>> Nothing happens, the name doesn't refresh in the preview >>> >>> This is a normal for a read-write ComboBox. What you see is inside is the >>> value of its Text property, which takes as default value the initial Name of >>> the control. If you change the control name later, the Text property remains. >> >> Aaah - ok. Yes :-) >> >>> >>>> - and if you >>>> type "testbox" somewhere within code, the list with proposals will only >>>> appear after you typed the "." >>> >>> I see testbox too, as soon as I have typed "tes". >>> >>>> Does this make it clearer? >>>> >>> >>> Yes and no, as it works perfectly on my box! >>> >> >> Strange, isn't it? On my system it seems as if you had to type the name >> once in the editor before it recognizes it. As soon as you have typed >> the name somewhere, it appears in the autocompletion. If you delete the >> last appearance of that name, it won't be recognized again. >> >> >> But as nobody else complaints about it, I guess we can forget about that >> effect :-) >> >> Regards >> >> Rolf >> >> >> ------------------------------------------------------------------------------ >> Crystal Reports - New Free Runtime and 30 Day Trial >> Check out the new simplified licensing option that enables unlimited >> royalty-free distribution of the report engine for externally facing >> server and web deployment. >> http://p.sf.net/sfu/businessobjects >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > From jussi.lahtinen at ...626... Thu Jun 11 15:31:13 2009 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 11 Jun 2009 16:31:13 +0300 Subject: [Gambas-user] New name not shown in IDE at first (Gambas2) In-Reply-To: <4A30A706.6040001@...221...> References: <4A28DFA4.4030703@...221...> <200906071231.15464.gambas@...1...> <4A2CB29C.407@...221...> <200906110114.44450.gambas@...1...> <4A30A706.6040001@...221...> Message-ID: <384d3900906110631x58ed7ddke76eddbbdbbc1aee@...627...> Maybe it is issue only at 4bit systems..? Jussi On Thu, Jun 11, 2009 at 09:41, Rolf-Werner Eilert wrote: > Beno?t Minisini schrieb: >>> Screenshot is difficult, as I don't know if it shows the tooltips. But >>> it's easy: >>> >>> Create a new ComboBox on the form. If it's the first one, it's called >>> ComboBox1. >>> >>> In the class, type Com and you will get a proposal for ComboBox, not >>> ComboBox1. >> >> I did as you wrote, but I have the ComboBox1 proposal: which version of Gambas >> do you use? > > It's 2.13.1 > >> >>> Now change its name (in the Properties dialog at the right) to anything >>> else, testbox for instance. You may even press Return after typing. >>> Nothing happens, the name doesn't refresh in the preview >> >> This is a normal for a read-write ComboBox. What you see is inside is the >> value of its Text property, which takes as default value the initial Name of >> the control. If you change the control name later, the Text property remains. > > Aaah - ok. Yes :-) > >> >>> - and if you >>> type "testbox" somewhere within code, the list with proposals will only >>> appear after you typed the "." >> >> I see testbox too, as soon as I have typed "tes". >> >>> Does this make it clearer? >>> >> >> Yes and no, as it works perfectly on my box! >> > > Strange, isn't it? On my system it seems as if you had to type the name > once in the editor before it recognizes it. As soon as you have typed > the name somewhere, it appears in the autocompletion. If you delete the > last appearance of that name, it won't be recognized again. > > > But as nobody else complaints about it, I guess we can forget about that > effect :-) > > Regards > > Rolf > > > ------------------------------------------------------------------------------ > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensing option that enables unlimited > royalty-free distribution of the report engine for externally facing > server and web deployment. > http://p.sf.net/sfu/businessobjects > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From france1159 at ...626... Sat Jun 13 17:15:49 2009 From: france1159 at ...626... (=?ISO-8859-1?Q?Fran=E7ois_Gallo?=) Date: Sat, 13 Jun 2009 17:15:49 +0200 Subject: [Gambas-user] Gambas on Mac In-Reply-To: <4247f5440906081100k34f5a162h4531bc36f4c04dad@...627...> References: <200906071102.30284.rterry@...1946...> <32C29045-E953-4980-AAFC-CA98060DC195@...1896...> <200906071251.35894.gambas@...1...> <13024A57-E842-40FD-AD94-87E1D0F2F79D@...1896...> <4247f5440906081100k34f5a162h4531bc36f4c04dad@...627...> Message-ID: it would be nice to have a mac user in order to know if Gambas can compile with success or wehther any major modifications is neccessary to build it. Currently on Windows it's too really boring to try compiling on this one. I can't compile GCC 4.4.0 with MSYS and MinGW because of GMP which doesn't configure correctly (with the last version). By searching in MinGW mailing list, i found there is a tip to build it with an old version, but as usual, others issues occur. The other solution is to build Gambas with CygWin but apparently Benoit has already tried to compile with that but the result is too ... slow :( . I will try again with cygwin in a few days to know if there had some improvements about platform. 2009/6/8 Joshua Higgins > I'm also interested in this... I'm struggling to find any ports or packages > of the required development files. > > I noticed the message about endianness, is this still an issue even with > Intel Macs, or just a PowerPC issue? > > 2009/6/7 Olivier Cruilles > > > In fact, all system is managed in backward with like debian package as > > dpkg. > > > > So, it's easy to produce packages. > > > > All the X-Window part exist on Mac by simply package to install > > > > For Qt and Kde, it's the same. For Gtk, I need to search but I think > > It exist. > > > > > > > > Olivier Cruilles > > Mail: linuxos at ...1896... > > > > Le 7 juin 09 ? 12:51, Beno?t Minisini a ?crit : > > > > >> Le 7 juin 09 ? 03:02, richard terry a ?crit : > > >>> Possible? > > >>> > > >>> Any info appreciated. > > >>> > > >>> Richard > > >>> > > >>> > > ------------------------------------------------------------------------- > > >>> ----- OpenSolaris 2009.06 is a cutting edge operating system for > > >>> enterprises looking to deploy the next generation of Solaris that > > >>> includes the latest > > >>> innovations from Sun and the OpenSource community. Download a copy > > >>> and > > >>> enjoy capabilities such as Networking, Storage and Virtualization. > > >>> Go to: http://p.sf.net/sfu/opensolaris-get > > >>> _______________________________________________ > > >>> Gambas-user mailing list > > >>> Gambas-user at lists.sourceforge.net > > >>> https://lists.sourceforge.net/lists/listinfo/gambas-user > > >> > > >> Hello Benoit, > > >> > > >> About Gambas on Mac Os, I know that you haven't time to work on. > > >> So, Can you give the list of software to install on the Mac, more > > >> than > > >> the Gambas source of course. > > >> > > >> Then I will try to compil and send you all results. > > >> > > >> Thanks in advance. > > >> > > >> > > >> Olivier Cruilles > > >> Mail: linuxos at ...1896... > > >> > > > > > > No idea, I don't know Mac at all. :-/ > > > > > > Does it have a package manager? Can you install X-Window or > > > something that > > > emulates it? And then all the GUI libraries (Qt, GTK+...)? > > > > > > -- > > > Beno?t > > > > > > > > > ------------------------------------------------------------------------------ > > > OpenSolaris 2009.06 is a cutting edge operating system for enterprises > > > looking to deploy the next generation of Solaris that includes the > > > latest > > > innovations from Sun and the OpenSource community. Download a copy and > > > enjoy capabilities such as Networking, Storage and Virtualization. > > > Go to: http://p.sf.net/sfu/opensolaris-get > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > OpenSolaris 2009.06 is a cutting edge operating system for enterprises > > looking to deploy the next generation of Solaris that includes the latest > > innovations from Sun and the OpenSource community. Download a copy and > > enjoy capabilities such as Networking, Storage and Virtualization. > > Go to: http://p.sf.net/sfu/opensolaris-get > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > -- > joshua higgins > >>>>>>------ > > ------------------------------------------------------------------------------ > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensing option that enables unlimited > royalty-free distribution of the report engine for externally facing > server and web deployment. > http://p.sf.net/sfu/businessobjects > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From thesheff17 at ...43... Sat Jun 13 22:35:55 2009 From: thesheff17 at ...43... (thesheff17) Date: Sat, 13 Jun 2009 13:35:55 -0700 (PDT) Subject: [Gambas-user] gridview return text/value from mouse click Message-ID: <24015046.post@...1379...> I have gridview that has the mode is set to single to select a single row. How do I get the value of the row that was clicked? Or get the x coordinate value of the row that is clicked? -- View this message in context: http://www.nabble.com/gridview-return-text-value-from-mouse-click-tp24015046p24015046.html Sent from the gambas-user mailing list archive at Nabble.com. From rospolosco at ...152... Sat Jun 13 23:32:35 2009 From: rospolosco at ...152... (Stefano Palmeri) Date: Sat, 13 Jun 2009 23:32:35 +0200 Subject: [Gambas-user] gridview return text/value from mouse click In-Reply-To: <24015046.post@...1379...> References: <24015046.post@...1379...> Message-ID: <200906132332.36018.rospolosco@...152...> Il sabato 13 giugno 2009 22:35:55 thesheff17 ha scritto: > I have gridview that has the mode is set to single to select a single row. > How do I get the value of the row that was clicked? Or get the x coordinate > value of the row that is clicked? Let's say your gridview is called GridView1 and you want to know the content of a certain grid cell when you click on it: PUBLIC SUB Gridview1_Click() DIM iRow, iColumn AS Integer DIM sCellText AS String iRow = LAST.Row iColumn = LAST.Column sCellText = Gridview1[iRow, iColumn].Text END Bye, Stefano From charles at ...1784... Sun Jun 14 14:57:43 2009 From: charles at ...1784... (charlesg) Date: Sun, 14 Jun 2009 05:57:43 -0700 (PDT) Subject: [Gambas-user] Database example Message-ID: <24021356.post@...1379...> Hi, I have extracted what I need from the database example. I can even get it to do exactly what I want. But, in truth, I do not understand how it works exactly. '=================================================== ' FMain.class PUBLIC $hConnLocl AS NEW Connection PUBLIC $resData AS Result '-------------------------------------------------------- PUBLIC SUB Form_Open() WITH $hConnLocl .type = "sqlite3" .Name = "/home/charles/sqlite3/locl.sqlite" END WITH $hConnLocl.Open() $resData = $hConnLocl.Exec("select * from hist") END '--------------------------------------------------------- PUBLIC SUB btnRun_Click() DIM hForm AS FRequest hForm = NEW FRequest($hConnLocl, $resData) hForm.show END '=================================================== ' FRequest.class PRIVATE $hConnlocl AS Connection PRIVATE $rData AS Result '--------------------------------------------------------- PUBLIC SUB _new(hConnlocl AS Connection, rData AS Result) DIM hField AS ResultField DIM iInd AS Integer $hConnlocl = hConnlocl $rData = rData tbvData.Rows.count = 0 tbvData.Columns.count = $rData.Fields.Count FOR EACH hField IN $rData.Fields WITH hField tbvData.Columns[iInd].text = .Name tbvData.Columns[iInd].width = 60 END WITH INC iInd NEXT tbvData.Rows.Count = $rData.Count END '--------------------------------------------------------- PUBLIC SUB tbvData_Data(Row AS Integer, Column AS Integer) $rData.MoveTo(row) tbvData.Data.text = Str($rData[tbvData.Columns[column].text]) END '=================================================== My lack of understanding hinges around: 1. hForm = NEW FRequest($hConnLocl, $resData) 2. $hConnlocl = hConnlocl $rData = rData 3. The help says _data is called when the tableview 'needs data'. At what point in the code does it need this data? Any fog elimination welcomed. rgds -- View this message in context: http://www.nabble.com/Database-example-tp24021356p24021356.html Sent from the gambas-user mailing list archive at Nabble.com. From Karl.Reinl at ...9... Sun Jun 14 18:55:26 2009 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Sun, 14 Jun 2009 18:55:26 +0200 Subject: [Gambas-user] Database example In-Reply-To: <24021356.post@...1379...> References: <24021356.post@...1379...> Message-ID: <1244998526.6947.14.camel@...40...> Am Sonntag, den 14.06.2009, 05:57 -0700 schrieb charlesg: > Hi, > > I have extracted what I need from the database example. I can even get it to > do exactly what I want. But, in truth, I do not understand how it works > exactly. > '=================================================== > ' FMain.class > PUBLIC $hConnLocl AS NEW Connection > PUBLIC $resData AS Result > '-------------------------------------------------------- > PUBLIC SUB Form_Open() > WITH $hConnLocl > .type = "sqlite3" > .Name = "/home/charles/sqlite3/locl.sqlite" > END WITH > $hConnLocl.Open() > $resData = $hConnLocl.Exec("select * from hist") > END > '--------------------------------------------------------- > PUBLIC SUB btnRun_Click() > DIM hForm AS FRequest > > hForm = NEW FRequest($hConnLocl, $resData) > hForm.show > END > '=================================================== > ' FRequest.class > PRIVATE $hConnlocl AS Connection > PRIVATE $rData AS Result > '--------------------------------------------------------- > PUBLIC SUB _new(hConnlocl AS Connection, rData AS Result) > DIM hField AS ResultField > DIM iInd AS Integer > > $hConnlocl = hConnlocl > $rData = rData > tbvData.Rows.count = 0 > tbvData.Columns.count = $rData.Fields.Count > > FOR EACH hField IN $rData.Fields > WITH hField > tbvData.Columns[iInd].text = .Name > tbvData.Columns[iInd].width = 60 > END WITH > INC iInd > NEXT > tbvData.Rows.Count = $rData.Count > END > '--------------------------------------------------------- > PUBLIC SUB tbvData_Data(Row AS Integer, Column AS Integer) > $rData.MoveTo(row) > tbvData.Data.text = Str($rData[tbvData.Columns[column].text]) > END > '=================================================== > > My lack of understanding hinges around: > 1. hForm = NEW FRequest($hConnLocl, $resData) > 2. $hConnlocl = hConnlocl > $rData = rData > 3. The help says _data is called when the tableview 'needs data'. At what > point in the code does it need this data? > > Any fog elimination welcomed. > > rgds > Salut Charles, no fog here, but have you ever tried in the IDE whats you can find behind /Project/Version/Source Archiv ? I tell you more a shortcut Ctrl+Alt+A makes the same. The so made archiv, you can attach to your mail, even the locl.sqlite DataBase , and then if you tell us witch gambas Version you use, may be one of that guys on the list will have a look. But if you have to copy out the Code from a mail, split it into its parts, by creating all the FORMs and Modules, then create the componets needed on the Form/Forms having not the origin Database ....pfffffffffffffffffff, will see perhaps tomorrow. Never the less -- Amicalment Charlie From ihaywood at ...1979... Sun Jun 14 23:19:15 2009 From: ihaywood at ...1979... (Ian Haywood) Date: Mon, 15 Jun 2009 07:19:15 +1000 Subject: [Gambas-user] TreeView - programmatically changed selection Message-ID: <200906150719.16443.ihaywood@...1979...> With the TreeView (using gui.qt), I can change the "internal cursor" using .MoveTo, .MoveUp, etc. but the user-visible selection does not change. Is there any way to do this programmatically? Thanks, Ian From rterry at ...1946... Mon Jun 15 02:05:25 2009 From: rterry at ...1946... (richard terry) Date: Mon, 15 Jun 2009 10:05:25 +1000 Subject: [Gambas-user] TreeView - programmatically changed selection (solved) In-Reply-To: <200906150719.16443.ihaywood@...1979...> References: <200906150719.16443.ihaywood@...1979...> Message-ID: <200906151005.25670.rterry@...1946...> On Mon, 15 Jun 2009 07:19:15 am Ian Haywood wrote: > With the TreeView (using gui.qt), I can change the "internal cursor" using > .MoveTo, .MoveUp, etc. but the user-visible selection does not change. Is > there any way to do this programmatically? > > Thanks, > > Ian > --------------------------------------------------------------------------- >--- Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensing option that enables unlimited > royalty-free distribution of the report engine for externally facing > server and web deployment. > http://p.sf.net/sfu/businessobjects > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user Ian, Turns out to be really simple Treeview1.item.EnsureVisible()!!! Works a charm. From ronstk at ...239... Mon Jun 15 03:14:25 2009 From: ronstk at ...239... (Ron_1st) Date: Mon, 15 Jun 2009 03:14:25 +0200 Subject: [Gambas-user] Database example In-Reply-To: <24021356.post@...1379...> References: <24021356.post@...1379...> Message-ID: <200906150314.25461.ronstk@...239...> On Sunday 14 June 2009, charlesg wrote: > > Hi, > > I have extracted what I need from the database example. I can even get it to > do exactly what I want. But, in truth, I do not understand how it works > exactly. > '=================================================== > ' FMain.class > PUBLIC $hConnLocl AS NEW Connection > PUBLIC $resData AS Result > '-------------------------------------------------------- > PUBLIC SUB Form_Open() > WITH $hConnLocl > .type = "sqlite3" > .Name = "/home/charles/sqlite3/locl.sqlite" > END WITH > $hConnLocl.Open() > $resData = $hConnLocl.Exec("select * from hist") > END > '--------------------------------------------------------- > PUBLIC SUB btnRun_Click() > DIM hForm AS FRequest > > hForm = NEW FRequest($hConnLocl, $resData) > hForm.show > END > '=================================================== > ' FRequest.class > PRIVATE $hConnlocl AS Connection > PRIVATE $rData AS Result > '--------------------------------------------------------- > PUBLIC SUB _new(hConnlocl AS Connection, rData AS Result) > DIM hField AS ResultField > DIM iInd AS Integer > > $hConnlocl = hConnlocl > $rData = rData > tbvData.Rows.count = 0 > tbvData.Columns.count = $rData.Fields.Count > > FOR EACH hField IN $rData.Fields > WITH hField > tbvData.Columns[iInd].text = .Name > tbvData.Columns[iInd].width = 60 > END WITH > INC iInd > NEXT > tbvData.Rows.Count = $rData.Count > END > '--------------------------------------------------------- > PUBLIC SUB tbvData_Data(Row AS Integer, Column AS Integer) > $rData.MoveTo(row) > tbvData.Data.text = Str($rData[tbvData.Columns[column].text]) > END > '=================================================== > > My lack of understanding hinges around: > 1. hForm = NEW FRequest($hConnLocl, $resData) > 2. $hConnlocl = hConnlocl > $rData = rData > 3. The help says _data is called when the tableview 'needs data'. At what > point in the code does it need this data? > > Any fog elimination welcomed. > > rgds > For answer on the _Data event. Asume you have a database of 10000 records and 200 columns then it wil not fit on your form with the tableview. Also it is not importand to fill the cells you can't see. However using the scrollbars you can navigate over the records. At that moment when there are new cells comming visible the _Data event happnes and ask for the data to show in the cell. Cells that goes hidden drops there content to save memory space in the Xservers memory pool. When other forms/windows overlay your table view they also do not ask cell data. You can't see it so why asking and use memory :) Second, by only asking with _Data event for the visible cells makes your tableview shows quick the actual visible info. Think of the time to fill 10000 row times 200 collumns where only i.e. 4rows and 5 columns are visible. Best regards, Ron_1st -- 111.111111 x 111.111111 = 12345.678987654321 From steven at ...2097... Mon Jun 15 04:22:52 2009 From: steven at ...2097... (Steven James Drinnan) Date: Mon, 15 Jun 2009 10:22:52 +0800 Subject: [Gambas-user] v4l - can not open device Message-ID: <1245032573.4295.6.camel@...2011...> Hi Benoit, Can you look at this. I just upgraded to Fedora 11 x86_64 But when I come to test my programs with the v4l component now fails. I resolved this in the past by preloading the v4l compat lib like so. LD_PRELOAD=/usr/lib64/libv4l/v4l1compat.so gambas2 I also tried LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so gambas2 but this now longer works. Steps to reproduce 1. Launch gamabas 2 2. Open webcam example 3. Run program 4. Click capture Actual Results: Unable to open device Expected Results: Webcam opens. Steven From rterry at ...1946... Mon Jun 15 08:03:49 2009 From: rterry at ...1946... (richard terry) Date: Mon, 15 Jun 2009 16:03:49 +1000 Subject: [Gambas-user] SVN Question Message-ID: <200906151603.49512.rterry@...1946...> I've downloaded our SVN project and there are no buttons on the versioning tab for commit/update? Version 2017. Help!! Richard From gambas at ...1... Mon Jun 15 13:38:58 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Mon, 15 Jun 2009 13:38:58 +0200 Subject: [Gambas-user] SVN Question In-Reply-To: <200906151603.49512.rterry@...1946...> References: <200906151603.49512.rterry@...1946...> Message-ID: <200906151338.59013.gambas@...1...> > I've downloaded our SVN project and there are no buttons on the versioning > tab for commit/update? > > Version 2017. > > Help!! > > Richard > Oops, sorry, fixed in revision #2018. -- Beno?t From gambas at ...1... Mon Jun 15 13:40:14 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Mon, 15 Jun 2009 13:40:14 +0200 Subject: [Gambas-user] TreeView - programmatically changed selection In-Reply-To: <200906150719.16443.ihaywood@...1979...> References: <200906150719.16443.ihaywood@...1979...> Message-ID: <200906151340.14173.gambas@...1...> > With the TreeView (using gui.qt), I can change the "internal cursor" using > .MoveTo, .MoveUp, etc. but the user-visible selection does not change. Is > there any way to do this programmatically? > > Thanks, > > Ian You manipulate the TreeView selection with: * The TreeView.Current property. * The TreeView[ItemKey].Selected property. Regards, -- Beno?t From afroehlke at ...784... Mon Jun 15 16:55:49 2009 From: afroehlke at ...784... (=?iso-8859-1?Q?Andreas_Fr=F6hlke?=) Date: Mon, 15 Jun 2009 16:55:49 +0200 Subject: [Gambas-user] gbr2 crash at different points In-Reply-To: <200906151338.59013.gambas@...1...> References: <200906151603.49512.rterry@...1946...> <200906151338.59013.gambas@...1...> Message-ID: <8D42310D957CFB46AA11921A711D4D160245AACF08@...1899...> Hello, First our Systeminfo: Intel Quad 2Duo 2,83 GHz 4 GB RAM Ubuntu 8.04 lts Server Edition 32Bit Kernel 2.6.25.4 KDE 3.5 Nomachine NX-Server Gambas 2.12 At different Points in different Programs the applications crash without any error messages. Some time ago, we used the same serverconfiguration with gambas 2.8 and don't have these problems. /var/log/messages/ shows an segfault for gbr2. Here some of these messages: Jun 12 15:58:31 nx23 kernel: gbr2[10954]: segfault at df0c4128 ip 0804d961 sp bfcdaea0 error 5 in gbx2[8048000+29000] Jun 12 16:22:16 nx23 -- MARK -- Jun 12 16:27:55 nx23 kernel: gbr2[29304]: segfault at dec7c308 ip 0804d961 sp bfdc2430 error 5 in gbx2[8048000+29000] Jun 12 16:34:46 nx23 kernel: gbr2[8731]: segfault at de89ce08 ip 0804d961 sp bfb30500 error 5 in gbx2[8048000+29000] Jun 12 16:44:51 nx23 kernel: gbr2[16721]: segfault at dedf74e8 ip 0804d961 sp bfb94560 error 5 in gbx2[8048000+29000] Jun 12 17:02:16 nx23 -- MARK -- Jun 12 17:22:16 nx23 -- MARK -- Jun 12 17:22:20 nx23 kernel: gbr2[7557]: segfault at ded20a68 ip 0804d961 sp bf8f5f70 error 5 in gbx2[8048000+29000] Jun 12 17:29:04 nx23 kernel: gbr2[16527]: segfault at e0928008 ip 0804e299 sp bfd93160 error 5 in gbx2[8048000+29000] Jun 12 17:30:07 nx23 kernel: gbr2[12426]: segfault at ded215c8 ip 0804d961 sp bfc55ad0 error 5 in gbx2[8048000+29000] Jun 12 17:41:47 nx23 kernel: gbr2[24549]: segfault at decb4728 ip 0804d961 sp bfebcd50 error 5 in gbx2[8048000+29000] Jun 12 18:02:16 nx23 -- MARK -- Jun 12 18:22:16 nx23 -- MARK -- Jun 12 18:42:16 nx23 -- MARK -- Jun 12 18:46:12 nx23 kernel: gbr2[5988]: segfault at de949628 ip 0804d961 sp bff6fe00 error 5 in gbx2[8048000+29000] Jun 12 19:02:16 nx23 -- MARK -- Jun 12 19:03:40 nx23 kernel: gbr2[32242]: segfault at ded76de8 ip 0804d961 sp bfc8f320 error 5 in gbx2[8048000+29000] I hope someone can help us, because we can't read information out of this messages wich will be helpful. Regards Andreas Fr?hlke From gambas at ...1... Mon Jun 15 17:06:52 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Mon, 15 Jun 2009 17:06:52 +0200 Subject: [Gambas-user] gbr2 crash at different points In-Reply-To: <8D42310D957CFB46AA11921A711D4D160245AACF08@...1899...> References: <200906151603.49512.rterry@...1946...> <200906151338.59013.gambas@...1...> <8D42310D957CFB46AA11921A711D4D160245AACF08@...1899...> Message-ID: <200906151706.52427.gambas@...1...> > Hello, > > First our Systeminfo: > > Intel Quad 2Duo 2,83 GHz > 4 GB RAM > Ubuntu 8.04 lts Server Edition 32Bit > Kernel 2.6.25.4 > KDE 3.5 > Nomachine NX-Server > Gambas 2.12 > > At different Points in different Programs the applications crash without > any error messages. Some time ago, we used the same serverconfiguration > with gambas 2.8 and don't have these problems. /var/log/messages/ shows an > segfault for gbr2. Here some of these messages: > > Jun 12 15:58:31 nx23 kernel: gbr2[10954]: segfault at df0c4128 ip 0804d961 > sp bfcdaea0 error 5 in gbx2[8048000+29000] Jun 12 16:22:16 nx23 -- MARK -- > Jun 12 16:27:55 nx23 kernel: gbr2[29304]: segfault at dec7c308 ip 0804d961 > sp bfdc2430 error 5 in gbx2[8048000+29000] Jun 12 16:34:46 nx23 kernel: > gbr2[8731]: segfault at de89ce08 ip 0804d961 sp bfb30500 error 5 in > gbx2[8048000+29000] Jun 12 16:44:51 nx23 kernel: gbr2[16721]: segfault at > dedf74e8 ip 0804d961 sp bfb94560 error 5 in gbx2[8048000+29000] Jun 12 > 17:02:16 nx23 -- MARK -- > Jun 12 17:22:16 nx23 -- MARK -- > Jun 12 17:22:20 nx23 kernel: gbr2[7557]: segfault at ded20a68 ip 0804d961 > sp bf8f5f70 error 5 in gbx2[8048000+29000] Jun 12 17:29:04 nx23 kernel: > gbr2[16527]: segfault at e0928008 ip 0804e299 sp bfd93160 error 5 in > gbx2[8048000+29000] Jun 12 17:30:07 nx23 kernel: gbr2[12426]: segfault at > ded215c8 ip 0804d961 sp bfc55ad0 error 5 in gbx2[8048000+29000] Jun 12 > 17:41:47 nx23 kernel: gbr2[24549]: segfault at decb4728 ip 0804d961 sp > bfebcd50 error 5 in gbx2[8048000+29000] Jun 12 18:02:16 nx23 -- MARK -- > Jun 12 18:22:16 nx23 -- MARK -- > Jun 12 18:42:16 nx23 -- MARK -- > Jun 12 18:46:12 nx23 kernel: gbr2[5988]: segfault at de949628 ip 0804d961 > sp bff6fe00 error 5 in gbx2[8048000+29000] Jun 12 19:02:16 nx23 -- MARK -- > Jun 12 19:03:40 nx23 kernel: gbr2[32242]: segfault at ded76de8 ip 0804d961 > sp bfc8f320 error 5 in gbx2[8048000+29000] > > I hope someone can help us, because we can't read information out of this > messages wich will be helpful. > > Regards > > Andreas Fr?hlke > Can you allow core dumps to get a core dump of the crash? -- Beno?t From sktan007 at ...43... Tue Jun 16 14:25:44 2009 From: sktan007 at ...43... (Swee Kwang Tan) Date: Tue, 16 Jun 2009 05:25:44 -0700 (PDT) Subject: [Gambas-user] Please help me, I've something trouble about gambas Message-ID: <135116.91865.qm@...2198...> My Dear, There is a form include 10 label, if I wish to use a for loop assign 10 string to it, 10 difference string to the label, how do I write the program ? Thank you. Albert Lee _______________________________________ ???????????? http://cn.mail.yahoo.com From lordheavym at ...626... Tue Jun 16 15:11:50 2009 From: lordheavym at ...626... (Laurent Carlier) Date: Tue, 16 Jun 2009 15:11:50 +0200 Subject: [Gambas-user] OpenGL In-Reply-To: <69ef2ddd0906100126q1e892172q7a7cc21e991d5512@...627...> References: <69ef2ddd0906100126q1e892172q7a7cc21e991d5512@...627...> Message-ID: <200906161511.50851.lordheavym@...626...> Le mercredi 10 juin 2009 10:26:42 Angel Romero Astorga, vous avez ?crit : > Hello, > > last days, I have started programming with OpenGL using OpenGL Area and > Gambas. I have experimented some problems with the control. It seems don't > work right. Is OpenGL Area full working? I would like know the state of > development of the control. Also, if the gambas' team requires it, I will > send the source code with the problem. > > Regards Perhaps it's not complete but it's working pretty well. What are your problems ? Can you post some code and the expected result ? Regards, From eilert-sprachen at ...221... Tue Jun 16 16:34:38 2009 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Tue, 16 Jun 2009 16:34:38 +0200 Subject: [Gambas-user] EXEC vs. SHELL Message-ID: <4A37AD7E.6080308@...221...> Could someone explain me why there are two different ways of executing shell commands and how they differ in practice? I mean, when do I want EXEC and when will I want SHELL? What's the idea behind them? Thanks for all hints :-) Rolf From jussi.lahtinen at ...626... Tue Jun 16 18:52:23 2009 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Tue, 16 Jun 2009 19:52:23 +0300 Subject: [Gambas-user] Please help me, I've something trouble about gambas In-Reply-To: <135116.91865.qm@...2198...> References: <135116.91865.qm@...2198...> Message-ID: <384d3900906160952u35d3c5a3u8b6984b4be165813@...627...> I'm not sure I understand correctly, but; Dim oo As Object For Each oo In FormName.Controls ' or ContainerName.Children If oo Is Label Then oo.Caption = "Some string" Endif Next You can use oo.Tag as identifier. Or you can put you labels to collection. Hope this helps. Jussi On Tue, Jun 16, 2009 at 15:25, Swee Kwang Tan wrote: > My Dear, > There is a form include 10 label, if I wish to use a for > loop assign 10 string to it, 10 difference string to the label, how do I write the program ? > Thank you. > Albert Lee > > > _______________________________________ > ????????????? > ?http://cn.mail.yahoo.com > ------------------------------------------------------------------------------ > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensing option that enables unlimited > royalty-free distribution of the report engine for externally facing > server and web deployment. > http://p.sf.net/sfu/businessobjects > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From m0e.lnx at ...626... Tue Jun 16 21:52:05 2009 From: m0e.lnx at ...626... (M0E Lnx) Date: Tue, 16 Jun 2009 13:52:05 -0600 Subject: [Gambas-user] Translated strings from settings file Message-ID: <1f1e8c1b0906161252x538cc20fp716f25ddcf2fc947@...627...> Hi guys, I'm using the gb.settings component to read a settings file and manipulate it's values in my application. My question is.... My application is also translated into other languages... How would can I make sure the strings coming from the settings file get translated also? Anyone ever done anything like this? From doriano.blengino at ...1909... Tue Jun 16 21:56:25 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Tue, 16 Jun 2009 21:56:25 +0200 Subject: [Gambas-user] EXEC vs. SHELL In-Reply-To: <4A37AD7E.6080308@...221...> References: <4A37AD7E.6080308@...221...> Message-ID: <4A37F8E9.9070408@...1909...> Rolf-Werner Eilert ha scritto: > Could someone explain me why there are two different ways of executing > shell commands and how they differ in practice? I mean, when do I want > EXEC and when will I want SHELL? What's the idea behind them? > > Thanks for all hints :-) > SHELL invokes /bin/sh and passes it a single command line. /bin/sh parses this command line exactly the same way you do on a normal shell. So, SHELL "ls -l *.o >/tmp/list" will do exactly the same as you typed "ls -l *.o >/tmp/list" in a terminal emulator under a shell. This is a lot of things, because the shell has a tremendous power. This command does: 1. split the command line in several parts: executable to run, parameters to pass it, other constructs... 2. search for an executable named ls in the PATH environment. 3. substitute "*.o" with all the ".o" files in the current directory 4. prepare a redirection (the normal output of /bin/ls is redirected in /tmp/list) To make it short, the shell can do a lot of things, and the gambas SHELL command brings that power to you. After /bin/sh has done with all this parsing/computing work, it invokes an exec() system call, which loads and executes an executable, passing it a number of parameters. The gambas EXEC instruction calls the exec() system call, bypassing the shell (/bin/sh). This is faster and less memory hungry, because you invoke an external command without invoking /bin/sh, but you loose all the power the shell has. In fact, if you want to list all the ".o" files in the current directory and put the result in /tmp/list without using the powerful shell, you have to: 1. search by yourself the files 2. create an array of the names of those files 3. invoke /bin/ls and pass it an array which contains the "-l" and all the files 4. redirect its standard output in a file To conclude. If you run an EXEC in gambas, you must simply supply the program name to execute and all its parameter. If you issue: EXEC ["/bin/ls", "-l", "*.o", ">/tmp/list"] you will invoke /bin/ls passing it the above parameters. /bin/ls will (correctly) recognize the "-l" as a switch; but "*.o" and ">/tmp/list" will be recognized as files to look for, and no files named "*.o" will exist. The ">/tmp/list" is a shell syntax, not a /bin/ls one, and /bin/ls will look again to for file named ">/tmp/list". You can type "man sh" at the shell prompt; all of what you will read there are shell capabilities, and none of them are available in EXEC. The three most important things which are available in the shell, and not available in EXEC are: 1. Pattern substitution. *.o and the like are shell construct. 2. Redirections and pipes. ">/...", "&1 |some_command" and so on. 3. Variables like $HOME, $PATH and so on But exec has a good advantage over SHELL. If you have to invoke an external command which has (or can have) unusual characters in the command line, like "firefox http://someserver.com/doit.cgi?name=foo&reply=bar", SHELL (or, better, /bin/sh) will interpret characters like "?" and "&", whilst EXEC will not. The reply to your answer is: if you need some shell capability, use SHELL; otherwise use EXEC. Using SHELL saves typing, on the other hand, if you are sure that no strange characters ("?", "&", "$", spaces, and others) can appear in the command you are constructing. Hope this is a good start - regards, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From rterry at ...1946... Tue Jun 16 23:44:14 2009 From: rterry at ...1946... (richard terry) Date: Wed, 17 Jun 2009 07:44:14 +1000 Subject: [Gambas-user] IDE Improvement Suggestion Message-ID: <200906170744.15092.rterry@...1946...> I'm always harping on about the difficulty of accessing forms on the side tree when one has many many dozens of forms, takees to scroll down and for your eye to locate them, then have to either click or ctrl_click to load. Suggestion: Emulate a firefox folder bookmark button on the IDE bar, put a 'bookmark this file' option on the popup menu and add the module name to the list which appears when you click the bookmark button. That way when working on a smalish number of forms from within your project, access would be quick and easy. Regards Richard. From mike at ...331... Tue Jun 16 21:44:19 2009 From: mike at ...331... (Mike Keehan) Date: Tue, 16 Jun 2009 20:44:19 +0100 Subject: [Gambas-user] EXEC vs. SHELL In-Reply-To: <4A37AD7E.6080308@...221...> References: <4A37AD7E.6080308@...221...> Message-ID: <4A37F613.60909@...331...> Hi Rolf, EXEC will run a single executable program. SHELL can run a shell script, including pipes and redirection between two or more executables. You could think of EXEC as the fundamental way to run another program, while SHELL is shorthand for EXEC /bin/bash . Mike. Rolf-Werner Eilert wrote: > Could someone explain me why there are two different ways of executing > shell commands and how they differ in practice? I mean, when do I want > EXEC and when will I want SHELL? What's the idea behind them? > > Thanks for all hints :-) > > Rolf > > > From eilert-sprachen at ...221... Wed Jun 17 08:12:01 2009 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Wed, 17 Jun 2009 08:12:01 +0200 Subject: [Gambas-user] EXEC vs. SHELL In-Reply-To: <4A37F613.60909@...331...> References: <4A37AD7E.6080308@...221...> <4A37F613.60909@...331...> Message-ID: <4A388931.20101@...221...> Ok, thanks, that makes it clearer! Rolf Mike Keehan schrieb: > Hi Rolf, > > EXEC will run a single executable program. > SHELL can run a shell script, including pipes and redirection between > two or more executables. > > You could think of EXEC as the fundamental way to run another program, > while SHELL is shorthand for EXEC /bin/bash . > > Mike. > > > Rolf-Werner Eilert wrote: >> Could someone explain me why there are two different ways of executing >> shell commands and how they differ in practice? I mean, when do I want >> EXEC and when will I want SHELL? What's the idea behind them? >> >> Thanks for all hints :-) >> >> Rolf From eilert-sprachen at ...221... Wed Jun 17 08:17:01 2009 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Wed, 17 Jun 2009 08:17:01 +0200 Subject: [Gambas-user] EXEC vs. SHELL In-Reply-To: <4A37F8E9.9070408@...1909...> References: <4A37AD7E.6080308@...221...> <4A37F8E9.9070408@...1909...> Message-ID: <4A388A5D.8050000@...221...> Doriano Blengino schrieb: > Rolf-Werner Eilert ha scritto: >> Could someone explain me why there are two different ways of executing >> shell commands and how they differ in practice? I mean, when do I want >> EXEC and when will I want SHELL? What's the idea behind them? >> >> Thanks for all hints :-) >> > SHELL invokes /bin/sh and passes it a single command line. /bin/sh > parses this command line exactly the same way you do on a normal shell. So, > > SHELL "ls -l *.o >/tmp/list" > > will do exactly the same as you typed "ls -l *.o >/tmp/list" in a > terminal emulator under a shell. This is a lot of things, because the > shell has a tremendous power. This command does: > > 1. split the command line in several parts: executable to run, > parameters to pass it, other constructs... > 2. search for an executable named ls in the PATH environment. > 3. substitute "*.o" with all the ".o" files in the current directory > 4. prepare a redirection (the normal output of /bin/ls is redirected > in /tmp/list) > > To make it short, the shell can do a lot of things, and the gambas SHELL > command brings that power to you. > After /bin/sh has done with all this parsing/computing work, it invokes > an exec() system call, which loads and executes an executable, passing > it a number of parameters. > > The gambas EXEC instruction calls the exec() system call, bypassing the > shell (/bin/sh). This is faster and less memory hungry, because you > invoke an external command without invoking /bin/sh, but you loose all > the power the shell has. In fact, if you want to list all the ".o" files > in the current directory and put the result in /tmp/list without using > the powerful shell, you have to: > > 1. search by yourself the files > 2. create an array of the names of those files > 3. invoke /bin/ls and pass it an array which contains the "-l" and > all the files > 4. redirect its standard output in a file > > To conclude. If you run an EXEC in gambas, you must simply supply the > program name to execute and all its parameter. If you issue: > > EXEC ["/bin/ls", "-l", "*.o", ">/tmp/list"] > > you will invoke /bin/ls passing it the above parameters. /bin/ls will > (correctly) recognize the "-l" as a switch; but "*.o" and ">/tmp/list" > will be recognized as files to look for, and no files named "*.o" will > exist. The ">/tmp/list" is a shell syntax, not a /bin/ls one, and > /bin/ls will look again to for file named ">/tmp/list". > > You can type "man sh" at the shell prompt; all of what you will read > there are shell capabilities, and none of them are available in EXEC. > The three most important things which are available in the shell, and > not available in EXEC are: > > 1. Pattern substitution. *.o and the like are shell construct. > 2. Redirections and pipes. ">/...", "&1 |some_command" > and so on. > 3. Variables like $HOME, $PATH and so on > > But exec has a good advantage over SHELL. If you have to invoke an > external command which has (or can have) unusual characters in the > command line, like "firefox > http://someserver.com/doit.cgi?name=foo&reply=bar", SHELL (or, better, > /bin/sh) will interpret characters like "?" and "&", whilst EXEC will not. > > The reply to your answer is: if you need some shell capability, use > SHELL; otherwise use EXEC. Using SHELL saves typing, on the other hand, > if you are sure that no strange characters ("?", "&", "$", spaces, and > others) can appear in the command you are constructing. > > Hope this is a good start - regards, > Oh yeah, thank you very much for that comprehensive explanation! In fact, I find your answer so well written that I want to propose to take it up into the Gambas wiki, linked between SHELL and EXEC or just as part of both texts. What do you think? Regards Rolf From afroehlke at ...784... Wed Jun 17 08:47:03 2009 From: afroehlke at ...784... (=?iso-8859-1?Q?Andreas_Fr=F6hlke?=) Date: Wed, 17 Jun 2009 08:47:03 +0200 Subject: [Gambas-user] gbr2 crash at different points In-Reply-To: <200906151706.52427.gambas@...1...> References: <200906151603.49512.rterry@...1946...> <200906151338.59013.gambas@...1...> <8D42310D957CFB46AA11921A711D4D160245AACF08@...1899...> <200906151706.52427.gambas@...1...> Message-ID: <8D42310D957CFB46AA11921A711D4D160245AACF43@...1899...> Hello, we used to send you an core dump created with gcore, but the admin of the mailinglist blocked it, because it is bigger than 256k. Regards A.Fr?hlke -----Urspr?ngliche Nachricht----- Von: Beno?t Minisini [mailto:gambas at ...1...] Gesendet: Montag, 15. Juni 2009 17:07 An: mailing list for gambas users Betreff: Re: [Gambas-user] gbr2 crash at different points > Hello, > > First our Systeminfo: > > Intel Quad 2Duo 2,83 GHz > 4 GB RAM > Ubuntu 8.04 lts Server Edition 32Bit > Kernel 2.6.25.4 > KDE 3.5 > Nomachine NX-Server > Gambas 2.12 > > At different Points in different Programs the applications crash without > any error messages. Some time ago, we used the same serverconfiguration > with gambas 2.8 and don't have these problems. /var/log/messages/ shows an > segfault for gbr2. Here some of these messages: > > Jun 12 15:58:31 nx23 kernel: gbr2[10954]: segfault at df0c4128 ip 0804d961 > sp bfcdaea0 error 5 in gbx2[8048000+29000] Jun 12 16:22:16 nx23 -- MARK -- > Jun 12 16:27:55 nx23 kernel: gbr2[29304]: segfault at dec7c308 ip 0804d961 > sp bfdc2430 error 5 in gbx2[8048000+29000] Jun 12 16:34:46 nx23 kernel: > gbr2[8731]: segfault at de89ce08 ip 0804d961 sp bfb30500 error 5 in > gbx2[8048000+29000] Jun 12 16:44:51 nx23 kernel: gbr2[16721]: segfault at > dedf74e8 ip 0804d961 sp bfb94560 error 5 in gbx2[8048000+29000] Jun 12 > 17:02:16 nx23 -- MARK -- > Jun 12 17:22:16 nx23 -- MARK -- > Jun 12 17:22:20 nx23 kernel: gbr2[7557]: segfault at ded20a68 ip 0804d961 > sp bf8f5f70 error 5 in gbx2[8048000+29000] Jun 12 17:29:04 nx23 kernel: > gbr2[16527]: segfault at e0928008 ip 0804e299 sp bfd93160 error 5 in > gbx2[8048000+29000] Jun 12 17:30:07 nx23 kernel: gbr2[12426]: segfault at > ded215c8 ip 0804d961 sp bfc55ad0 error 5 in gbx2[8048000+29000] Jun 12 > 17:41:47 nx23 kernel: gbr2[24549]: segfault at decb4728 ip 0804d961 sp > bfebcd50 error 5 in gbx2[8048000+29000] Jun 12 18:02:16 nx23 -- MARK -- > Jun 12 18:22:16 nx23 -- MARK -- > Jun 12 18:42:16 nx23 -- MARK -- > Jun 12 18:46:12 nx23 kernel: gbr2[5988]: segfault at de949628 ip 0804d961 > sp bff6fe00 error 5 in gbx2[8048000+29000] Jun 12 19:02:16 nx23 -- MARK -- > Jun 12 19:03:40 nx23 kernel: gbr2[32242]: segfault at ded76de8 ip 0804d961 > sp bfc8f320 error 5 in gbx2[8048000+29000] > > I hope someone can help us, because we can't read information out of this > messages wich will be helpful. > > Regards > > Andreas Fr?hlke > Can you allow core dumps to get a core dump of the crash? -- Beno?t ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From rterry at ...1946... Wed Jun 17 10:35:35 2009 From: rterry at ...1946... (richard terry) Date: Wed, 17 Jun 2009 18:35:35 +1000 Subject: [Gambas-user] Q) re:listeners/notification Message-ID: <200906171835.35331.rterry@...1946...> Not sure what this would be called in gambas but I need to know how to do something like this. My main clinical form as on its toolbar a columnview containing a list of reminders or recalls due for the patients, so that it is visually available to the user at all times. The actual recalls can be entered from a number of different places in the program - either when the recalls module is loaded, or when patholgy results are read,[ or potentially by another user in another room down the track] ie. The columnview needs to know when it needs to update its information on the basis of what is happening in another part of the program So, I wondered how to set up a 'listener' or a 'notifier' or whatever you might call it. at the moment, I do it in a rather crude way like this. when the clinical form loads, I set as a global variable modglobal.ClinicalForm = Fclinical So, when the recalls module is loaded, accessing the controls to update them is easy modglobal.clinicaForm.cvwRecalls.Add() or whatever. Any comments/suggestions. This is obviously a simplistic scenario, as another user could be in another room or half way across the planet accessing the same patients record! Regards Richard From doriano.blengino at ...1909... Wed Jun 17 10:38:17 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Wed, 17 Jun 2009 10:38:17 +0200 Subject: [Gambas-user] EXEC vs. SHELL In-Reply-To: <4A388A5D.8050000@...221...> References: <4A37AD7E.6080308@...221...> <4A37F8E9.9070408@...1909...> <4A388A5D.8050000@...221...> Message-ID: <4A38AB79.3040005@...1909...> Rolf-Werner Eilert ha scritto: > Doriano Blengino schrieb: > >> Rolf-Werner Eilert ha scritto: >> >>> Could someone explain me why there are two different ways of executing >>> shell commands and how they differ in practice? I mean, when do I want >>> EXEC and when will I want SHELL? What's the idea behind them? >>> >>> Thanks for all hints :-) >>> >>> >> SHELL invokes /bin/sh and passes it a single command line. /bin/sh >> parses this command line exactly the same way you do on a normal shell. So, >> >> SHELL "ls -l *.o >/tmp/list" >> >> ....... >> >> > > > Oh yeah, thank you very much for that comprehensive explanation! > > In fact, I find your answer so well written that I want to propose to > take it up into the Gambas wiki, linked between SHELL and EXEC or just > as part of both texts. What do you think? > Thanks for your appreciation, it makes me feel good. I think that my writing could be better - it was only a quick reply in a forum -, but the more important thing you said is about cross-linking together several pages of the docs: sections like "SEE ALSO" and "DIFFERENCES BETWEEN... (similar ways to do something)". The same problem is found in the normal man(1) pages - related arguments are in fact not related in the documentation. For example, Samba and NFS do (more or less) the same thing, but the documentation treats them as completely separated. I understand this, but this is no good anyway. Regards, Doriano From eilert-sprachen at ...221... Wed Jun 17 11:00:32 2009 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Wed, 17 Jun 2009 11:00:32 +0200 Subject: [Gambas-user] EXEC vs. SHELL In-Reply-To: <4A38AB79.3040005@...1909...> References: <4A37AD7E.6080308@...221...> <4A37F8E9.9070408@...1909...> <4A388A5D.8050000@...221...> <4A38AB79.3040005@...1909...> Message-ID: <4A38B0B0.6010705@...221...> Doriano Blengino schrieb: > Rolf-Werner Eilert ha scritto: >> Doriano Blengino schrieb: >> >>> Rolf-Werner Eilert ha scritto: >>> >>>> Could someone explain me why there are two different ways of executing >>>> shell commands and how they differ in practice? I mean, when do I want >>>> EXEC and when will I want SHELL? What's the idea behind them? >>>> >>>> Thanks for all hints :-) >>>> >>>> >>> SHELL invokes /bin/sh and passes it a single command line. /bin/sh >>> parses this command line exactly the same way you do on a normal shell. So, >>> >>> SHELL "ls -l *.o >/tmp/list" >>> >>> ....... >>> >>> >> >> Oh yeah, thank you very much for that comprehensive explanation! >> >> In fact, I find your answer so well written that I want to propose to >> take it up into the Gambas wiki, linked between SHELL and EXEC or just >> as part of both texts. What do you think? >> > Thanks for your appreciation, it makes me feel good. > > I think that my writing could be better - it was only a quick reply in a > forum -, but the more important thing you said is about cross-linking > together several pages of the docs: sections like "SEE ALSO" and > "DIFFERENCES BETWEEN... (similar ways to do something)". > > The same problem is found in the normal man(1) pages - related arguments > are in fact not related in the documentation. For example, Samba and NFS > do (more or less) the same thing, but the documentation treats them as > completely separated. I understand this, but this is no good anyway. > > Regards, > Doriano > Hmmm - I thought that was possible to do with the Gambas wiki pages. Some time ago I helped translate some of the pages (and I should continue to do so, I know), and there were links to other pages... Well, maybe Benoit would have to initiate that by creating a base page. Benoit, did you hear us? :-) As to your English, we might ask some native speaker on the list to look through it. Regards Rolf From gambas at ...1... Wed Jun 17 12:41:01 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Wed, 17 Jun 2009 12:41:01 +0200 Subject: [Gambas-user] EXEC vs. SHELL In-Reply-To: <4A38B0B0.6010705@...221...> References: <4A37AD7E.6080308@...221...> <4A38AB79.3040005@...1909...> <4A38B0B0.6010705@...221...> Message-ID: <200906171241.01776.gambas@...1...> > Doriano Blengino schrieb: > > Rolf-Werner Eilert ha scritto: > >> Doriano Blengino schrieb: > >>> Rolf-Werner Eilert ha scritto: > >>>> Could someone explain me why there are two different ways of executing > >>>> shell commands and how they differ in practice? I mean, when do I want > >>>> EXEC and when will I want SHELL? What's the idea behind them? > >>>> > >>>> Thanks for all hints :-) > >>> > >>> SHELL invokes /bin/sh and passes it a single command line. /bin/sh > >>> parses this command line exactly the same way you do on a normal shell. > >>> So, > >>> > >>> SHELL "ls -l *.o >/tmp/list" > >>> > >>> ....... > >> > >> Oh yeah, thank you very much for that comprehensive explanation! > >> > >> In fact, I find your answer so well written that I want to propose to > >> take it up into the Gambas wiki, linked between SHELL and EXEC or just > >> as part of both texts. What do you think? > > > > Thanks for your appreciation, it makes me feel good. > > > > I think that my writing could be better - it was only a quick reply in a > > forum -, but the more important thing you said is about cross-linking > > together several pages of the docs: sections like "SEE ALSO" and > > "DIFFERENCES BETWEEN... (similar ways to do something)". > > > > The same problem is found in the normal man(1) pages - related arguments > > are in fact not related in the documentation. For example, Samba and NFS > > do (more or less) the same thing, but the documentation treats them as > > completely separated. I understand this, but this is no good anyway. > > > > Regards, > > Doriano > > Hmmm - I thought that was possible to do with the Gambas wiki pages. > Some time ago I helped translate some of the pages (and I should > continue to do so, I know), and there were links to other pages... Well, > maybe Benoit would have to initiate that by creating a base page. > Benoit, did you hear us? :-) > > As to your English, we might ask some native speaker on the list to look > through it. > > Regards > > Rolf > You can create a page at "/doc/shellexec" and put your text there, with the title "Differences between SHELL and EXEC". Then in the SHELL and EXEC pages, you add a link to this page ([/doc/shellexec]) in the "{seealso ... }" section. Regards, -- Beno?t From gambas at ...1... Wed Jun 17 12:42:15 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Wed, 17 Jun 2009 12:42:15 +0200 Subject: [Gambas-user] gbr2 crash at different points In-Reply-To: <8D42310D957CFB46AA11921A711D4D160245AACF43@...1899...> References: <200906151603.49512.rterry@...1946...> <200906151706.52427.gambas@...1...> <8D42310D957CFB46AA11921A711D4D160245AACF43@...1899...> Message-ID: <200906171242.15664.gambas@...1...> > Hello, > > we used to send you an core dump created with gcore, but the admin of the > mailinglist blocked it, because it is bigger than 256k. > > Regards > > A.Fr?hlke > This is automatic - Every 500+ subscribers will receive your mail, so it can't be big! Send the mail to my private e-mail (gambas at ...764...) Regards, -- Beno?t From rterry at ...1946... Wed Jun 17 14:14:14 2009 From: rterry at ...1946... (richard terry) Date: Wed, 17 Jun 2009 22:14:14 +1000 Subject: [Gambas-user] Can the console be cleared from within program code Message-ID: <200906172214.14552.rterry@...1946...> ?? sometimes when I'm debugging and use the console, there is already lines in there, is is possible to programmatically clear this? richard From gambas at ...1... Wed Jun 17 16:48:30 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Wed, 17 Jun 2009 16:48:30 +0200 Subject: [Gambas-user] Can the console be cleared from within program code In-Reply-To: <200906172214.14552.rterry@...1946...> References: <200906172214.14552.rterry@...1946...> Message-ID: <200906171648.31035.gambas@...1...> > ?? sometimes when I'm debugging and use the console, there is already lines > in there, is is possible to programmatically clear this? > > richard > PRINT Chr$(12); -- Beno?t From gambas at ...1... Wed Jun 17 16:53:35 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Wed, 17 Jun 2009 16:53:35 +0200 Subject: [Gambas-user] Translated strings from settings file In-Reply-To: <1f1e8c1b0906161252x538cc20fp716f25ddcf2fc947@...627...> References: <1f1e8c1b0906161252x538cc20fp716f25ddcf2fc947@...627...> Message-ID: <200906171653.35467.gambas@...1...> > Hi guys, > > I'm using the gb.settings component to read a settings file and > manipulate it's values in my application. > My question is.... > My application is also translated into other languages... How would > can I make sure the strings coming from the settings file get > translated also? > > Anyone ever done anything like this? > Mmm. Do not put translatable strings inside a setting file. Or use the Tr$() function (only in Gambas 3). Regards, -- Beno?t From ron at ...1740... Wed Jun 17 15:31:47 2009 From: ron at ...1740... (Ron) Date: Wed, 17 Jun 2009 15:31:47 +0200 Subject: [Gambas-user] Regexp pattern in string question Message-ID: <4A38F043.8060404@...1740...> Hi, has anyone dealed with regexp patterns, how to define this regexp pattern in a string? ^(/\S+) - - /\[(/\d+)/\w+/\d{4}:(/\d+):/\d+:/\d+ [/\d+-]+/\]!]" So for example : DIM sPattern as String = "^(/\S+) - - /\[(/\d+)/\w+/\d{4}:(/\d+):/\d+:/\d+ [/\d+-]+/\]!]" RegExpFind (sPattern, "text to search") IDE reports "Bad Character Constant in string..." as error, it's not happy with all those / and \ chars I guess. They are difficult enough already if I have to exacpe them ones more, i'm lost ;-) I'm trying to parse apache log with it (getting client ip adress/time/date) Maybe Scan() is a better option, anyone dealed with this dilemma? Regards, Ron_2nd. From gambas at ...1... Wed Jun 17 17:40:03 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Wed, 17 Jun 2009 17:40:03 +0200 Subject: [Gambas-user] Regexp pattern in string question In-Reply-To: <4A38F043.8060404@...1740...> References: <4A38F043.8060404@...1740...> Message-ID: <200906171740.04043.gambas@...1...> > Hi, has anyone dealed with regexp patterns, how to define this regexp > pattern in a string? > > ^(/\S+) - - /\[(/\d+)/\w+/\d{4}:(/\d+):/\d+:/\d+ [/\d+-]+/\]!]" > > So for example : > > DIM sPattern as String = "^(/\S+) - - > /\[(/\d+)/\w+/\d{4}:(/\d+):/\d+:/\d+ [/\d+-]+/\]!]" > > RegExpFind (sPattern, "text to search") > > IDE reports "Bad Character Constant in string..." as error, it's not > happy with all those / and \ chars I guess. > > They are difficult enough already if I have to exacpe them ones more, > i'm lost ;-) > > I'm trying to parse apache log with it (getting client ip adress/time/date) > Maybe Scan() is a better option, anyone dealed with this dilemma? > > Regards, > Ron_2nd. > "\" must be doubled. -- Beno?t From jshackney at ...626... Wed Jun 17 20:58:48 2009 From: jshackney at ...626... (Jason Hackney) Date: Wed, 17 Jun 2009 13:58:48 -0500 Subject: [Gambas-user] EXEC vs. SHELL In-Reply-To: <200906171241.01776.gambas@...1...> References: <4A37AD7E.6080308@...221...> <4A38AB79.3040005@...1909...> <4A38B0B0.6010705@...221...> <200906171241.01776.gambas@...1...> Message-ID: <799be1690906171158g32b6268ah84797212f774fc00@...627...> What Doriano typed only needs some minor touching up. I'd be happy to assist with any English cleanup for that or anything further...however, being rather pressed for time at the moment, I may not be able to get to it until late tomorrow evening. > > As to your English, we might ask some native speaker on the list to look > through it. > > Regards > > Rolf > From eilert-sprachen at ...221... Thu Jun 18 09:26:38 2009 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Thu, 18 Jun 2009 09:26:38 +0200 Subject: [Gambas-user] EXEC vs. SHELL In-Reply-To: <200906171241.01776.gambas@...1...> References: <4A37AD7E.6080308@...221...> <4A38AB79.3040005@...1909...> <4A38B0B0.6010705@...221...> <200906171241.01776.gambas@...1...> Message-ID: <4A39EC2E.50506@...221...> Beno?t Minisini schrieb: >> Doriano Blengino schrieb: >>> Rolf-Werner Eilert ha scritto: >>>> Doriano Blengino schrieb: >>>>> Rolf-Werner Eilert ha scritto: >>>>>> Could someone explain me why there are two different ways of executing >>>>>> shell commands and how they differ in practice? I mean, when do I want >>>>>> EXEC and when will I want SHELL? What's the idea behind them? >>>>>> >>>>>> Thanks for all hints :-) >>>>> SHELL invokes /bin/sh and passes it a single command line. /bin/sh >>>>> parses this command line exactly the same way you do on a normal shell. >>>>> So, >>>>> >>>>> SHELL "ls -l *.o >/tmp/list" >>>>> >>>>> ....... >>>> Oh yeah, thank you very much for that comprehensive explanation! >>>> >>>> In fact, I find your answer so well written that I want to propose to >>>> take it up into the Gambas wiki, linked between SHELL and EXEC or just >>>> as part of both texts. What do you think? >>> Thanks for your appreciation, it makes me feel good. >>> >>> I think that my writing could be better - it was only a quick reply in a >>> forum -, but the more important thing you said is about cross-linking >>> together several pages of the docs: sections like "SEE ALSO" and >>> "DIFFERENCES BETWEEN... (similar ways to do something)". >>> >>> The same problem is found in the normal man(1) pages - related arguments >>> are in fact not related in the documentation. For example, Samba and NFS >>> do (more or less) the same thing, but the documentation treats them as >>> completely separated. I understand this, but this is no good anyway. >>> >>> Regards, >>> Doriano >> Hmmm - I thought that was possible to do with the Gambas wiki pages. >> Some time ago I helped translate some of the pages (and I should >> continue to do so, I know), and there were links to other pages... Well, >> maybe Benoit would have to initiate that by creating a base page. >> Benoit, did you hear us? :-) >> >> As to your English, we might ask some native speaker on the list to look >> through it. >> >> Regards >> >> Rolf >> > > You can create a page at "/doc/shellexec" and put your text there, with the > title "Differences between SHELL and EXEC". > > Then in the SHELL and EXEC pages, you add a link to this page > ([/doc/shellexec]) in the "{seealso ... }" section. > > Regards, > Ok, but: When I translated pages into German, there used to be a line of country flags on each page and an "Edit" link as far as I remember. These don't exist anymore. How can I enter entering mode now? Regards Rolf From mike.crean at ...1940... Thu Jun 18 10:56:06 2009 From: mike.crean at ...1940... (Mike) Date: Thu, 18 Jun 2009 16:56:06 +0800 Subject: [Gambas-user] Puppy Message-ID: <7tecj1$c6v9e@...2199...> Hi, can anyone help with a step by step on where to download Gambas for Puppy Linux 4.2 and step by step to assemble and install on Puppy machine with all the dependences. I have tried some of the Gambas versions with the PET installer and had no luck getting things running, any help please. Thanks Mike From m0e.lnx at ...626... Thu Jun 18 22:31:46 2009 From: m0e.lnx at ...626... (M0E Lnx) Date: Thu, 18 Jun 2009 15:31:46 -0500 Subject: [Gambas-user] question about CATCH Message-ID: <1f1e8c1b0906181331i6333fa3ew4bdfbe4443138654@...627...> So I've been looking at this http://gambasdoc.org/help/lang/catch My question is... Can the sub/function continue after catch has been declared, or should catch always be the last thing in the sub? For instance PUBLIC SUB Save_a_file() DIM sStr AS String File.Save("/tmp/test",sStr) CATCH PRINT "Error saving file" ' Can I still have code here... after the catch, or is everything after CATCH considered to be executed only after an error? END From Karl.Reinl at ...9... Thu Jun 18 23:14:35 2009 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Thu, 18 Jun 2009 23:14:35 +0200 Subject: [Gambas-user] question about CATCH In-Reply-To: <1f1e8c1b0906181331i6333fa3ew4bdfbe4443138654@...627...> References: <1f1e8c1b0906181331i6333fa3ew4bdfbe4443138654@...627...> Message-ID: <1245359675.9330.5.camel@...40...> Am Donnerstag, den 18.06.2009, 15:31 -0500 schrieb M0E Lnx: > So I've been looking at this http://gambasdoc.org/help/lang/catch > > My question is... Can the sub/function continue after catch has been > declared, or should catch always be the last thing in the sub? > > For instance > > PUBLIC SUB Save_a_file() > DIM sStr AS String > > File.Save("/tmp/test",sStr) > CATCH > PRINT "Error saving file" > > ' Can I still have code here... after the catch, or is everything > after CATCH considered to be executed only after an error? > END Salut , all between CATCH and END is executed only after an error. I have not tested if FINALLY came between! If you have to do something more use FINALLY FINALLY ' Always executed, even if a error is raised (as the ) -- Amicalment Charlie From m0e.lnx at ...626... Thu Jun 18 23:24:35 2009 From: m0e.lnx at ...626... (M0E Lnx) Date: Thu, 18 Jun 2009 16:24:35 -0500 Subject: [Gambas-user] question about CATCH In-Reply-To: <1245359675.9330.5.camel@...40...> References: <1f1e8c1b0906181331i6333fa3ew4bdfbe4443138654@...627...> <1245359675.9330.5.camel@...40...> Message-ID: <1f1e8c1b0906181424v2efe522aja50624fcb854a484@...627...> Ok... that clears things up.. I know for a fact that FINALLY has to come before CATCH (if present) otherwise, the project wont compile... Thanks for the clearing this up for me... it's been one of those tings in the back of my head. ;) From steven at ...2097... Thu Jun 18 07:21:06 2009 From: steven at ...2097... (Steven James Drinnan) Date: Thu, 18 Jun 2009 13:21:06 +0800 Subject: [Gambas-user] v4l - can not open device In-Reply-To: <1245032573.4295.6.camel@...2011...> References: <1245032573.4295.6.camel@...2011...> Message-ID: <1245302472.3150.0.camel@...2011...> Have you have had a chance to check it out? On Mon, 2009-06-15 at 10:22 +0800, Steven James Drinnan wrote: > Hi Benoit, > > Can you look at this. > > I just upgraded to Fedora 11 x86_64 > > But when I come to test my programs with the v4l component now fails. > > I resolved this in the past by preloading the v4l compat lib like so. > > LD_PRELOAD=/usr/lib64/libv4l/v4l1compat.so gambas2 > > I also tried > > LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so gambas2 > > but this now longer works. > > Steps to reproduce > > 1. Launch gamabas 2 > 2. Open webcam example > 3. Run program > 4. Click capture > > Actual Results: > > Unable to open device > > Expected Results: > Webcam opens. > > Steven > > > ------------------------------------------------------------------------------ > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensing option that enables unlimited > royalty-free distribution of the report engine for externally facing > server and web deployment. > http://p.sf.net/sfu/businessobjects > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Fri Jun 19 00:30:29 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Fri, 19 Jun 2009 00:30:29 +0200 Subject: [Gambas-user] v4l - can not open device In-Reply-To: <1245302472.3150.0.camel@...2011...> References: <1245032573.4295.6.camel@...2011...> <1245302472.3150.0.camel@...2011...> Message-ID: <200906190030.29506.gambas@...1...> > Have you have had a chance to check it out? > I have no webcam, nor any v4l device, and I didn't make the component, so it is hard for me to help you... Try to open the device with an OPEN "xxxx" FOR READ WRITE instruction to see if you get a more detailed error message. Regards, -- Beno?t From zachsmith022 at ...626... Fri Jun 19 01:21:55 2009 From: zachsmith022 at ...626... (Zach Smith) Date: Thu, 18 Jun 2009 18:21:55 -0500 Subject: [Gambas-user] build 2026 failing Message-ID: gambas3, build 2026, x_64, arch I'm getting: make[4]: Entering directory `/home/test/gambas3/src/trunk/main/gbx' gcc -DHAVE_CONFIG_H -I. -I.. -I../share -D_REENTRANT -I../libltdl -I/usr/lib/libffi-3.0.8/include -DGAMBAS_PATH="\"/home/test/gambas3/pkg/usr/bin\"" -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -MT gbx3-gbx_debug.o -MD -MP -MF .deps/gbx3-gbx_debug.Tpo -c -o gbx3-gbx_debug.o `test -f 'gbx_debug.c' || echo './'`gbx_debug.c In file included from gbx_class.h:30, from gbx_exec.h:31, from gbx_debug.c:35: gbx_class_desc.h:105: error: duplicate member ?_reserved? gbx_class_desc.h:123: error: duplicate member ?_reserved? In file included from gbx_exec.h:38, from gbx_debug.c:35: gbx_variant.h: In function ?VARIANT_free?: gbx_variant.h:55: warning: dereferencing type-punned pointer will break strict-aliasing rules gbx_variant.h:55: warning: dereferencing type-punned pointer will break strict-aliasing rules gbx_variant.h:55: warning: dereferencing type-punned pointer will break strict-aliasing rules gbx_variant.h:55: warning: dereferencing type-punned pointer will break strict-aliasing rules gbx_variant.h: In function ?VARIANT_keep?: gbx_variant.h:63: warning: dereferencing type-punned pointer will break strict-aliasing rules gbx_variant.h:67: warning: dereferencing type-punned pointer will break strict-aliasing rules gbx_variant.h:67: warning: dereferencing type-punned pointer will break strict-aliasing rules gbx_variant.h: In function ?VARIANT_is_null?: gbx_variant.h:76: warning: dereferencing type-punned pointer will break strict-aliasing rules gbx_variant.h:79: warning: dereferencing type-punned pointer will break strict-aliasing rules gbx_variant.h: In function ?VARIANT_clear?: gbx_variant.h:90: warning: dereferencing type-punned pointer will break strict-aliasing rules make[4]: *** [gbx3-gbx_debug.o] Error 1 From gambas at ...1... Fri Jun 19 01:48:08 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 19 Jun 2009 01:48:08 +0200 Subject: [Gambas-user] build 2026 failing In-Reply-To: References: Message-ID: <200906190148.08620.gambas@...1...> > gambas3, build 2026, x_64, arch > > I'm getting: > > make[4]: Entering directory `/home/test/gambas3/src/trunk/main/gbx' > gcc -DHAVE_CONFIG_H -I. -I.. -I../share -D_REENTRANT -I../libltdl > -I/usr/lib/libffi-3.0.8/include > -DGAMBAS_PATH="\"/home/test/gambas3/pkg/usr/bin\"" -pipe -Wall > -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -MT > gbx3-gbx_debug.o -MD -MP -MF .deps/gbx3-gbx_debug.Tpo -c -o > gbx3-gbx_debug.o `test -f 'gbx_debug.c' || echo './'`gbx_debug.c > In file included from gbx_class.h:30, > from gbx_exec.h:31, > from gbx_debug.c:35: > gbx_class_desc.h:105: error: duplicate member ?_reserved? > gbx_class_desc.h:123: error: duplicate member ?_reserved? > In file included from gbx_exec.h:38, > from gbx_debug.c:35: > gbx_variant.h: In function ?VARIANT_free?: > gbx_variant.h:55: warning: dereferencing type-punned pointer will break > strict-aliasing rules > gbx_variant.h:55: warning: dereferencing type-punned pointer will break > strict-aliasing rules > gbx_variant.h:55: warning: dereferencing type-punned pointer will break > strict-aliasing rules > gbx_variant.h:55: warning: dereferencing type-punned pointer will break > strict-aliasing rules > gbx_variant.h: In function ?VARIANT_keep?: > gbx_variant.h:63: warning: dereferencing type-punned pointer will break > strict-aliasing rules > gbx_variant.h:67: warning: dereferencing type-punned pointer will break > strict-aliasing rules > gbx_variant.h:67: warning: dereferencing type-punned pointer will break > strict-aliasing rules > gbx_variant.h: In function ?VARIANT_is_null?: > gbx_variant.h:76: warning: dereferencing type-punned pointer will break > strict-aliasing rules > gbx_variant.h:79: warning: dereferencing type-punned pointer will break > strict-aliasing rules > gbx_variant.h: In function ?VARIANT_clear?: > gbx_variant.h:90: warning: dereferencing type-punned pointer will break > strict-aliasing rules > make[4]: *** [gbx3-gbx_debug.o] Error 1 > Fixed in revision #2027 ! -- Beno?t From rterry at ...1946... Fri Jun 19 03:50:36 2009 From: rterry at ...1946... (richard terry) Date: Fri, 19 Jun 2009 11:50:36 +1000 Subject: [Gambas-user] build 2026 failing In-Reply-To: <200906190148.08620.gambas@...1...> References: <200906190148.08620.gambas@...1...> Message-ID: <200906191150.36442.rterry@...1946...> On Fri, 19 Jun 2009 09:48:08 am Beno?t Minisini wrote: > > gambas3, build 2026, x_64, arch > > > > I'm getting: > > > > make[4]: Entering directory `/home/test/gambas3/src/trunk/main/gbx' > > gcc -DHAVE_CONFIG_H -I. -I.. -I../share -D_REENTRANT -I../libltdl > > -I/usr/lib/libffi-3.0.8/include > > -DGAMBAS_PATH="\"/home/test/gambas3/pkg/usr/bin\"" -pipe -Wall > > -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -MT > > gbx3-gbx_debug.o -MD -MP -MF .deps/gbx3-gbx_debug.Tpo -c -o > > gbx3-gbx_debug.o `test -f 'gbx_debug.c' || echo './'`gbx_debug.c > > In file included from gbx_class.h:30, > > from gbx_exec.h:31, > > from gbx_debug.c:35: > > gbx_class_desc.h:105: error: duplicate member ?_reserved? > > gbx_class_desc.h:123: error: duplicate member ?_reserved? > > In file included from gbx_exec.h:38, > > from gbx_debug.c:35: > > gbx_variant.h: In function ?VARIANT_free?: > > gbx_variant.h:55: warning: dereferencing type-punned pointer will break > > strict-aliasing rules > > gbx_variant.h:55: warning: dereferencing type-punned pointer will break > > strict-aliasing rules > > gbx_variant.h:55: warning: dereferencing type-punned pointer will break > > strict-aliasing rules > > gbx_variant.h:55: warning: dereferencing type-punned pointer will break > > strict-aliasing rules > > gbx_variant.h: In function ?VARIANT_keep?: > > gbx_variant.h:63: warning: dereferencing type-punned pointer will break > > strict-aliasing rules > > gbx_variant.h:67: warning: dereferencing type-punned pointer will break > > strict-aliasing rules > > gbx_variant.h:67: warning: dereferencing type-punned pointer will break > > strict-aliasing rules > > gbx_variant.h: In function ?VARIANT_is_null?: > > gbx_variant.h:76: warning: dereferencing type-punned pointer will break > > strict-aliasing rules > > gbx_variant.h:79: warning: dereferencing type-punned pointer will break > > strict-aliasing rules > > gbx_variant.h: In function ?VARIANT_clear?: > > gbx_variant.h:90: warning: dereferencing type-punned pointer will break > > strict-aliasing rules > > make[4]: *** [gbx3-gbx_debug.o] Error 1 > > Fixed in revision #2027 ! CEditor.cpp: In function 'void CEDITOR_show_word(void*, void*)': CEditor.cpp:962: error: 'class GEditor' has no member named 'showWord' make[5]: *** [CEditor.lo] Error 1 make[5]: Leaving directory `/home/richard/gambas3-svn/src/trunk/gb.qt4/src/ext' make[4]: *** [all-recursive] Error 1 make[4]: Leaving directory `/home/richard/gambas3-svn/src/trunk/gb.qt4/src' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/home/richard/gambas3-svn/src/trunk/gb.qt4' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/richard/gambas3-svn/src/trunk/gb.qt4' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/richard/gambas3-svn/src/trunk' make: *** [all] Error 2 ==> ERROR: Build Failed. something not right on my machine in 2027 From zachsmith022 at ...626... Fri Jun 19 02:37:44 2009 From: zachsmith022 at ...626... (Zach Smith) Date: Thu, 18 Jun 2009 19:37:44 -0500 Subject: [Gambas-user] build 2027 failing Message-ID: gambas3, build 2027, x_64, arch I'm getting: make[4]: Entering directory `/home/craig/gambas3/src/trunk/gb.db.sqlite3/src' /bin/sh ../libtool? --tag=CXX?? --mode=compile g++ -DHAVE_CONFIG_H -I. -I..??? -pipe -Wall -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -fno-omit-frame-pointer -fexceptions? -MT gb_db_sqlite3_la-main.lo -MD -MP -MF .deps/gb_db_sqlite3_la-main.Tpo -c -o gb_db_sqlite3_la-main.lo `test -f 'main.cpp' || echo './'`main.cpp ?g++ -DHAVE_CONFIG_H -I. -I.. -pipe -Wall -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -fno-omit-frame-pointer -fexceptions -MT gb_db_sqlite3_la-main.lo -MD -MP -MF .deps/gb_db_sqlite3_la-main.Tpo -c main.cpp? -fPIC -DPIC -o .libs/gb_db_sqlite3_la-main.o main.cpp: In function 'int field_index(void*, const char*, DB_DATABASE*)': main.cpp:1011: error: invalid conversion from 'const char*' to 'char*' make[4]: *** [gb_db_sqlite3_la-main.lo] Error 1 From steven at ...2097... Fri Jun 19 06:26:05 2009 From: steven at ...2097... (Steven James Drinnan) Date: Fri, 19 Jun 2009 12:26:05 +0800 Subject: [Gambas-user] v4l - can not open device -solved In-Reply-To: <200906190030.29506.gambas@...1...> References: <1245032573.4295.6.camel@...2011...> <1245302472.3150.0.camel@...2011...> <200906190030.29506.gambas@...1...> Message-ID: <1245385566.3344.3.camel@...2011...> Had another look, looks like /dev/video is no longer created in v4l so the default now is /dev/video0. I know you did not make this component. But does need to be updated to recognize v4l2 which is now the default in most major distributions. Many thanks for your patience. Steven On Fri, 2009-06-19 at 00:30 +0200, Beno?t Minisini wrote: > > Have you have had a chance to check it out? > > > > I have no webcam, nor any v4l device, and I didn't make the component, so it > is hard for me to help you... > > Try to open the device with an OPEN "xxxx" FOR READ WRITE instruction to see > if you get a more detailed error message. > > Regards, > From kobolds at ...2041... Fri Jun 19 07:27:38 2009 From: kobolds at ...2041... (kobolds) Date: Thu, 18 Jun 2009 22:27:38 -0700 (PDT) Subject: [Gambas-user] showdialog / showmodal auto center Message-ID: <24105720.post@...1379...> i found that when display a window using showdialog / showmodal , the window show with auto center on screen. i don't want that , how do i disable it. i try using the X and Y but no effect -- View this message in context: http://www.nabble.com/showdialog---showmodal-auto-center-tp24105720p24105720.html Sent from the gambas-user mailing list archive at Nabble.com. From afroehlke at ...784... Fri Jun 19 09:23:54 2009 From: afroehlke at ...784... (=?iso-8859-1?Q?Andreas_Fr=F6hlke?=) Date: Fri, 19 Jun 2009 09:23:54 +0200 Subject: [Gambas-user] gbr2 crash at different points In-Reply-To: <200906171242.15664.gambas@...1...> References: <200906151603.49512.rterry@...1946...> <200906151706.52427.gambas@...1...> <8D42310D957CFB46AA11921A711D4D160245AACF43@...1899...> <200906171242.15664.gambas@...1...> Message-ID: <8D42310D957CFB46AA11921A711D4D160245AACFC4@...1899...> Hello, just wanna know, do you get the mail? Regards Andreas Fr?hlke -----Urspr?ngliche Nachricht----- Von: Beno?t Minisini [mailto:gambas at ...1...] Gesendet: Mittwoch, 17. Juni 2009 12:42 An: mailing list for gambas users Betreff: Re: [Gambas-user] gbr2 crash at different points > Hello, > > we used to send you an core dump created with gcore, but the admin of the > mailinglist blocked it, because it is bigger than 256k. > > Regards > > A.Fr?hlke > This is automatic - Every 500+ subscribers will receive your mail, so it can't be big! Send the mail to my private e-mail (gambas at ...764...) Regards, -- Beno?t ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From charles at ...1784... Fri Jun 19 11:03:06 2009 From: charles at ...1784... (charlesg) Date: Fri, 19 Jun 2009 02:03:06 -0700 (PDT) Subject: [Gambas-user] Database example In-Reply-To: <200906150314.25461.ronstk@...239...> References: <24021356.post@...1379...> <200906150314.25461.ronstk@...239...> Message-ID: <24107894.post@...1379...> Hi Thank you Ron for that. A bit more messing around and I think I now understand it. Following on from richard terry's suggestion for simple examples, here it is as simple as I can get it. There is nothing new here: it all comes from the database example. Any corrections to the annotations welcome! You just need a gridview, a button called btnRun and a preferably large database with lots of columns so that you can scroll around with ease '======================================================== ' Gambas class file PUBLIC $hConnLocl AS NEW Connection PUBLIC $resData AS Result '-------------------------------------------------------- PUBLIC SUB Form_Open() DIM sql AS String 'open the database WITH $hConnLocl .type = "mysql" .host = "localhost" .Name = "stock" .login = "charles" .password="dog" END WITH $hConnLocl.Open() 'create a result sql = "SELECT * FROM grnLine" $resData = $hConnLocl.Exec(sql) END '--------------------------------------------------------- PUBLIC SUB btnRun_Click() DIM hForm AS FRequest DIM hField AS ResultField DIM iInd AS Integer GridView1.Rows.count = 0 'set the required number of columns GridView1.Columns.count = $resData.Fields.Count 'define the column headers and width FOR EACH hField IN $resData.Fields WITH hField GridView1.Columns[iInd].text = .Name GridView1.Columns[iInd].width = 60 END WITH INC iInd NEXT 'create the empty rows. Each empty and visible cell created calls GridView1_data GridView1.Rows.Count = $resData.Count END '--------------------------------------------------------- PUBLIC SUB GridView1_Data(Row AS Integer, Column AS Integer) 'move to the required result row $resData.MoveTo(row) 'set the data for the cell in the GridView from the column in the selected row of the result GridView1.Data.text = Str($resData[GridView1.Columns[column].text]) 'lets you see how _data is being called as you scroll around the GridView PRINT row & ":" & column & ":" & Str($resData[GridView1.Columns[column].text]) END '---------------------------------------------------------- I also created a second small form. As you move the second form around on top of the gridview, the print command still shows the _Data frantically working in the background. Clever things these computers! rgds -- View this message in context: http://www.nabble.com/Database-example-tp24021356p24107894.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Fri Jun 19 12:52:59 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Fri, 19 Jun 2009 12:52:59 +0200 Subject: [Gambas-user] showdialog / showmodal auto center In-Reply-To: <24105720.post@...1379...> References: <24105720.post@...1379...> Message-ID: <200906191252.59641.gambas@...1...> > i found that when display a window using showdialog / showmodal , the > window show with auto center on screen. i don't want that , how do i > disable it. i try using the X and Y but no effect Why don't you want that? -- Beno?t From gambas at ...1... Fri Jun 19 12:53:56 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Fri, 19 Jun 2009 12:53:56 +0200 Subject: [Gambas-user] build 2027 failing In-Reply-To: References: Message-ID: <200906191253.56345.gambas@...1...> > gambas3, build 2027, x_64, arch > > I'm getting: > > make[4]: Entering directory > `/home/craig/gambas3/src/trunk/gb.db.sqlite3/src' /bin/sh ../libtool > --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -pipe -Wall > -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os > -fno-omit-frame-pointer -fexceptions -MT gb_db_sqlite3_la-main.lo -MD -MP > -MF .deps/gb_db_sqlite3_la-main.Tpo -c -o gb_db_sqlite3_la-main.lo `test -f > 'main.cpp' || echo > './'`main.cpp > g++ -DHAVE_CONFIG_H -I. -I.. -pipe -Wall -fno-exceptions > -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os > -fno-omit-frame-pointer -fexceptions -MT gb_db_sqlite3_la-main.lo -MD > -MP -MF .deps/gb_db_sqlite3_la-main.Tpo -c main.cpp -fPIC -DPIC -o > .libs/gb_db_sqlite3_la-main.o > main.cpp: In function 'int field_index(void*, const char*, DB_DATABASE*)': > main.cpp:1011: error: invalid conversion from 'const char*' to 'char*' > make[4]: *** [gb_db_sqlite3_la-main.lo] Error 1 > > --------------------------------------------------------------------------- >--- Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensing option that enables unlimited > royalty-free distribution of the report engine for externally facing > server and web deployment. > http://p.sf.net/sfu/businessobjects > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user Which distribution do you use? Which version of gcc? -- Beno?t From gambas at ...1... Fri Jun 19 12:55:57 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Fri, 19 Jun 2009 12:55:57 +0200 Subject: [Gambas-user] v4l - can not open device -solved In-Reply-To: <1245385566.3344.3.camel@...2011...> References: <1245032573.4295.6.camel@...2011...> <200906190030.29506.gambas@...1...> <1245385566.3344.3.camel@...2011...> Message-ID: <200906191255.57135.gambas@...1...> > Had another look, looks like /dev/video is no longer created in v4l so > the default now is /dev/video0. > > I know you did not make this component. But does need to be updated to > recognize v4l2 which is now the default in most major distributions. > > Many thanks for your patience. > > Steven > gb.v4l uses v4l2 but only in the development version. Regards, -- Beno?t From gambas at ...1... Fri Jun 19 13:02:49 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 19 Jun 2009 13:02:49 +0200 Subject: [Gambas-user] build 2026 failing In-Reply-To: <200906191150.36442.rterry@...1946...> References: <200906190148.08620.gambas@...1...> <200906191150.36442.rterry@...1946...> Message-ID: <200906191302.49657.gambas@...1...> > On Fri, 19 Jun 2009 09:48:08 am Beno?t Minisini wrote: > > > gambas3, build 2026, x_64, arch > > > > > > I'm getting: > > > > > > make[4]: Entering directory `/home/test/gambas3/src/trunk/main/gbx' > > > gcc -DHAVE_CONFIG_H -I. -I.. -I../share -D_REENTRANT -I../libltdl > > > -I/usr/lib/libffi-3.0.8/include > > > -DGAMBAS_PATH="\"/home/test/gambas3/pkg/usr/bin\"" -pipe -Wall > > > -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -MT > > > gbx3-gbx_debug.o -MD -MP -MF .deps/gbx3-gbx_debug.Tpo -c -o > > > gbx3-gbx_debug.o `test -f 'gbx_debug.c' || echo './'`gbx_debug.c > > > In file included from gbx_class.h:30, > > > from gbx_exec.h:31, > > > from gbx_debug.c:35: > > > gbx_class_desc.h:105: error: duplicate member ?_reserved? > > > gbx_class_desc.h:123: error: duplicate member ?_reserved? > > > In file included from gbx_exec.h:38, > > > from gbx_debug.c:35: > > > gbx_variant.h: In function ?VARIANT_free?: > > > gbx_variant.h:55: warning: dereferencing type-punned pointer will break > > > strict-aliasing rules > > > gbx_variant.h:55: warning: dereferencing type-punned pointer will break > > > strict-aliasing rules > > > gbx_variant.h:55: warning: dereferencing type-punned pointer will break > > > strict-aliasing rules > > > gbx_variant.h:55: warning: dereferencing type-punned pointer will break > > > strict-aliasing rules > > > gbx_variant.h: In function ?VARIANT_keep?: > > > gbx_variant.h:63: warning: dereferencing type-punned pointer will break > > > strict-aliasing rules > > > gbx_variant.h:67: warning: dereferencing type-punned pointer will break > > > strict-aliasing rules > > > gbx_variant.h:67: warning: dereferencing type-punned pointer will break > > > strict-aliasing rules > > > gbx_variant.h: In function ?VARIANT_is_null?: > > > gbx_variant.h:76: warning: dereferencing type-punned pointer will break > > > strict-aliasing rules > > > gbx_variant.h:79: warning: dereferencing type-punned pointer will break > > > strict-aliasing rules > > > gbx_variant.h: In function ?VARIANT_clear?: > > > gbx_variant.h:90: warning: dereferencing type-punned pointer will break > > > strict-aliasing rules > > > make[4]: *** [gbx3-gbx_debug.o] Error 1 > > > > Fixed in revision #2027 ! > > CEditor.cpp: In function 'void CEDITOR_show_word(void*, void*)': > CEditor.cpp:962: error: 'class GEditor' has no member named 'showWord' > make[5]: *** [CEditor.lo] Error 1 > make[5]: Leaving directory > `/home/richard/gambas3-svn/src/trunk/gb.qt4/src/ext' > make[4]: *** [all-recursive] Error 1 > make[4]: Leaving directory `/home/richard/gambas3-svn/src/trunk/gb.qt4/src' > make[3]: *** [all-recursive] Error 1 > make[3]: Leaving directory `/home/richard/gambas3-svn/src/trunk/gb.qt4' > make[2]: *** [all] Error 2 > make[2]: Leaving directory `/home/richard/gambas3-svn/src/trunk/gb.qt4' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/home/richard/gambas3-svn/src/trunk' > make: *** [all] Error 2 > ==> ERROR: Build Failed. > > something not right on my machine in 2027 > Fixed in revision #2028. Nothing is wrong on your machine, I just sometimes break the development version inadvertently. Regards, -- Beno?t From gambas at ...1... Fri Jun 19 13:12:17 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Fri, 19 Jun 2009 13:12:17 +0200 Subject: [Gambas-user] gbr2 crash at different points In-Reply-To: <8D42310D957CFB46AA11921A711D4D160245AACFC4@...1899...> References: <200906151603.49512.rterry@...1946...> <200906171242.15664.gambas@...1...> <8D42310D957CFB46AA11921A711D4D160245AACFC4@...1899...> Message-ID: <200906191312.17479.gambas@...1...> > Hello, > > just wanna know, do you get the mail? > > Regards > > Andreas Fr?hlke I got it. -- Beno?t From lordheavym at ...626... Fri Jun 19 16:45:44 2009 From: lordheavym at ...626... (Laurent Carlier) Date: Fri, 19 Jun 2009 16:45:44 +0200 Subject: [Gambas-user] build 2027 failing In-Reply-To: <200906191253.56345.gambas@...1...> References: <200906191253.56345.gambas@...1...> Message-ID: <200906191645.44754.lordheavym@...626...> Le vendredi 19 juin 2009 12:53:56 Beno?t Minisini, vous avez ?crit : > > gambas3, build 2027, x_64, arch > > > > I'm getting: > > > > make[4]: Entering directory > > `/home/craig/gambas3/src/trunk/gb.db.sqlite3/src' /bin/sh ../libtool > > --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -pipe -Wall > > -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g > > -Os -fno-omit-frame-pointer -fexceptions -MT gb_db_sqlite3_la-main.lo > > -MD -MP -MF .deps/gb_db_sqlite3_la-main.Tpo -c -o > > gb_db_sqlite3_la-main.lo `test -f 'main.cpp' || echo > > './'`main.cpp > > g++ -DHAVE_CONFIG_H -I. -I.. -pipe -Wall -fno-exceptions > > -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os > > -fno-omit-frame-pointer -fexceptions -MT gb_db_sqlite3_la-main.lo -MD > > -MP -MF .deps/gb_db_sqlite3_la-main.Tpo -c main.cpp -fPIC -DPIC -o > > .libs/gb_db_sqlite3_la-main.o > > main.cpp: In function 'int field_index(void*, const char*, > > DB_DATABASE*)': main.cpp:1011: error: invalid conversion from 'const > > char*' to 'char*' make[4]: *** [gb_db_sqlite3_la-main.lo] Error 1 > > > > ------------------------------------------------------------------------- > >-- --- Crystal Reports - New Free Runtime and 30 Day Trial > > Check out the new simplified licensing option that enables unlimited > > royalty-free distribution of the report engine for externally facing > > server and web deployment. > > http://p.sf.net/sfu/businessobjects > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > Which distribution do you use? Which version of gcc? I guess it's a gcc 4.4 compilation problem :-) fixed in branch 2.0, not yet in trunk :-( (yes, it's my fault) ++ From lordheavym at ...626... Fri Jun 19 16:51:47 2009 From: lordheavym at ...626... (Laurent Carlier) Date: Fri, 19 Jun 2009 16:51:47 +0200 Subject: [Gambas-user] build 2027 failing In-Reply-To: <200906191253.56345.gambas@...1...> References: <200906191253.56345.gambas@...1...> Message-ID: <200906191651.47475.lordheavym@...626...> Le vendredi 19 juin 2009 12:53:56 Beno?t Minisini, vous avez ?crit : > > gambas3, build 2027, x_64, arch > > > > I'm getting: > > > > make[4]: Entering directory > > `/home/craig/gambas3/src/trunk/gb.db.sqlite3/src' /bin/sh ../libtool > > --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -pipe -Wall > > -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g > > -Os -fno-omit-frame-pointer -fexceptions -MT gb_db_sqlite3_la-main.lo > > -MD -MP -MF .deps/gb_db_sqlite3_la-main.Tpo -c -o > > gb_db_sqlite3_la-main.lo `test -f 'main.cpp' || echo > > './'`main.cpp > > g++ -DHAVE_CONFIG_H -I. -I.. -pipe -Wall -fno-exceptions > > -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os > > -fno-omit-frame-pointer -fexceptions -MT gb_db_sqlite3_la-main.lo -MD > > -MP -MF .deps/gb_db_sqlite3_la-main.Tpo -c main.cpp -fPIC -DPIC -o > > .libs/gb_db_sqlite3_la-main.o > > main.cpp: In function 'int field_index(void*, const char*, > > DB_DATABASE*)': main.cpp:1011: error: invalid conversion from 'const > > char*' to 'char*' make[4]: *** [gb_db_sqlite3_la-main.lo] Error 1 > > > > ------------------------------------------------------------------------- > >-- --- Crystal Reports - New Free Runtime and 30 Day Trial > > Check out the new simplified licensing option that enables unlimited > > royalty-free distribution of the report engine for externally facing > > server and web deployment. > > http://p.sf.net/sfu/businessobjects > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > Which distribution do you use? Which version of gcc? Should be fix in commit #2029 Regards, From zachsmith022 at ...626... Fri Jun 19 20:08:44 2009 From: zachsmith022 at ...626... (Zach Smith) Date: Fri, 19 Jun 2009 13:08:44 -0500 Subject: [Gambas-user] build 2027 failing In-Reply-To: <200906191651.47475.lordheavym@...626...> References: <200906191253.56345.gambas@...1...> <200906191651.47475.lordheavym@...626...> Message-ID: With Arch, 32 bit, #2029 fails with the following: make[4]: Entering directory `/home/test/gambas3/src/trunk/gb.corba/src' /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include/omniORB4/ -pipe -Wall -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -fno-omit-frame-pointer -MT CCorbaApplication.lo -MD -MP -MF .deps/CCorbaApplication.Tpo -c -o CCorbaApplication.lo CCorbaApplication.cpp g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include/omniORB4/ -pipe -Wall -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -fno-omit-frame-pointer -MT CCorbaApplication.lo -MD -MP -MF .deps/CCorbaApplication.Tpo -c CCorbaApplication.cpp -fPIC -DPIC -o .libs/CCorbaApplication.o CCorbaApplication.cpp: In function 'CORBA::Object* getObjectReference(CORBA::ORB*, CCORBA_COSNAMING*)': CCorbaApplication.cpp:135: error: exception handling disabled, use -fexceptions to enable CCorbaApplication.cpp:135: error: '...' handler must be the last handler for its try block CCorbaApplication.cpp:201: error: '...' handler must be the last handler for its try block CCorbaApplication.cpp:207: error: '...' handler must be the last handler for its try block CCorbaApplication.cpp: In function 'void CCORBA_APPLICATION_InitIOR(void*, void*)': CCorbaApplication.cpp:665: error: '...' handler must be the last handler for its try block CCorbaApplication.cpp:669: error: '...' handler must be the last handler for its try block CCorbaApplication.cpp:673: error: '...' handler must be the last handler for its try block CCorbaApplication.cpp:677: error: '...' handler must be the last handler for its try block CCorbaApplication.cpp: In function 'void CCORBA_APPLICATION_InitURI(void*, void*)': CCorbaApplication.cpp:743: error: '...' handler must be the last handler for its try block CCorbaApplication.cpp:747: error: '...' handler must be the last handler for its try block CCorbaApplication.cpp:751: error: '...' handler must be the last handler for its try block CCorbaApplication.cpp:755: error: '...' handler must be the last handler for its try block make[4]: *** [CCorbaApplication.lo] Error 1 From jferreira at ...2188... Fri Jun 19 20:24:55 2009 From: jferreira at ...2188... (JOHN FERREIRA) Date: Fri, 19 Jun 2009 11:24:55 -0700 (PDT) Subject: [Gambas-user] remove this email address from your mail list! Message-ID: <42741.14339.qm@...2200...> Kathy Ferreira, Editor and Columnist Roller Skater's Gazette The Monthly Newsletter for Artistic Roller Skaters --- On Thu, 6/18/09, Zach Smith wrote: From: Zach Smith Subject: [Gambas-user] build 2026 failing To: gambas-user at lists.sourceforge.net Date: Thursday, June 18, 2009, 7:21 PM gambas3, build 2026, x_64, arch I'm getting: make[4]: Entering directory `/home/test/gambas3/src/trunk/main/gbx' gcc -DHAVE_CONFIG_H -I. -I.. -I../share???-D_REENTRANT -I../libltdl -I/usr/lib/libffi-3.0.8/include -DGAMBAS_PATH="\"/home/test/gambas3/pkg/usr/bin\"" -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os? -MT gbx3-gbx_debug.o -MD -MP -MF .deps/gbx3-gbx_debug.Tpo -c -o gbx3-gbx_debug.o `test -f 'gbx_debug.c' || echo './'`gbx_debug.c In file included from gbx_class.h:30, ? ? ? ? ? ? ? ???from gbx_exec.h:31, ? ? ? ? ? ? ? ???from gbx_debug.c:35: gbx_class_desc.h:105: error: duplicate member ?_reserved? gbx_class_desc.h:123: error: duplicate member ?_reserved? In file included from gbx_exec.h:38, ? ? ? ? ? ? ? ???from gbx_debug.c:35: gbx_variant.h: In function ?VARIANT_free?: gbx_variant.h:55: warning: dereferencing type-punned pointer will break strict-aliasing rules gbx_variant.h:55: warning: dereferencing type-punned pointer will break strict-aliasing rules gbx_variant.h:55: warning: dereferencing type-punned pointer will break strict-aliasing rules gbx_variant.h:55: warning: dereferencing type-punned pointer will break strict-aliasing rules gbx_variant.h: In function ?VARIANT_keep?: gbx_variant.h:63: warning: dereferencing type-punned pointer will break strict-aliasing rules gbx_variant.h:67: warning: dereferencing type-punned pointer will break strict-aliasing rules gbx_variant.h:67: warning: dereferencing type-punned pointer will break strict-aliasing rules gbx_variant.h: In function ?VARIANT_is_null?: gbx_variant.h:76: warning: dereferencing type-punned pointer will break strict-aliasing rules gbx_variant.h:79: warning: dereferencing type-punned pointer will break strict-aliasing rules gbx_variant.h: In function ?VARIANT_clear?: gbx_variant.h:90: warning: dereferencing type-punned pointer will break strict-aliasing rules make[4]: *** [gbx3-gbx_debug.o] Error 1 ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From jferreira at ...2188... Fri Jun 19 20:26:28 2009 From: jferreira at ...2188... (JOHN FERREIRA) Date: Fri, 19 Jun 2009 11:26:28 -0700 (PDT) Subject: [Gambas-user] remove this email address from your mail list now! Message-ID: <112873.73623.qm@...2190...> Kathy Ferreira, Editor and Columnist Roller Skater's Gazette The Monthly Newsletter for Artistic Roller Skaters From smccuan at ...626... Fri Jun 19 20:37:32 2009 From: smccuan at ...626... (Shawn McCuan) Date: Fri, 19 Jun 2009 14:37:32 -0400 Subject: [Gambas-user] remove this email address from your mail list now! In-Reply-To: <112873.73623.qm@...2190...> References: <112873.73623.qm@...2190...> Message-ID: <1245436652.12593.2.camel@...2201...> On Fri, 2009-06-19 at 11:26 -0700, JOHN FERREIRA wrote: > https://lists.sourceforge.net/lists/listinfo/gambas-user Instead of making arrogant demands like a spoiled three year old, how about *asking* how to get your name removed? Visit the link above...the link thats included in every single message on this list... From lordheavym at ...626... Fri Jun 19 20:44:50 2009 From: lordheavym at ...626... (Laurent Carlier) Date: Fri, 19 Jun 2009 20:44:50 +0200 Subject: [Gambas-user] build 2027 failing In-Reply-To: References: <200906191651.47475.lordheavym@...626...> Message-ID: <200906192044.50957.lordheavym@...626...> Le vendredi 19 juin 2009 20:08:44 Zach Smith, vous avez ?crit : > With Arch, 32 bit, #2029 fails with the following: > > make[4]: Entering directory `/home/test/gambas3/src/trunk/gb.corba/src' > /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. > -I.. -I/usr/include/omniORB4/ -pipe -Wall -fno-exceptions > -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os > -fno-omit-frame-pointer -MT CCorbaApplication.lo -MD -MP -MF > .deps/CCorbaApplication.Tpo -c -o CCorbaApplication.lo > CCorbaApplication.cpp > g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include/omniORB4/ -pipe -Wall > -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g > -Os -fno-omit-frame-pointer -MT CCorbaApplication.lo -MD -MP -MF > .deps/CCorbaApplication.Tpo -c CCorbaApplication.cpp -fPIC -DPIC -o > .libs/CCorbaApplication.o > CCorbaApplication.cpp: In function 'CORBA::Object* > getObjectReference(CORBA::ORB*, CCORBA_COSNAMING*)': > CCorbaApplication.cpp:135: error: exception handling disabled, use > -fexceptions to enable > CCorbaApplication.cpp:135: error: '...' handler must be the last > handler for its try block > CCorbaApplication.cpp:201: error: '...' handler must be the last > handler for its try block > CCorbaApplication.cpp:207: error: '...' handler must be the last > handler for its try block > CCorbaApplication.cpp: In function 'void > CCORBA_APPLICATION_InitIOR(void*, void*)': > CCorbaApplication.cpp:665: error: '...' handler must be the last > handler for its try block > CCorbaApplication.cpp:669: error: '...' handler must be the last > handler for its try block > CCorbaApplication.cpp:673: error: '...' handler must be the last > handler for its try block > CCorbaApplication.cpp:677: error: '...' handler must be the last > handler for its try block > CCorbaApplication.cpp: In function 'void > CCORBA_APPLICATION_InitURI(void*, void*)': > CCorbaApplication.cpp:743: error: '...' handler must be the last > handler for its try block > CCorbaApplication.cpp:747: error: '...' handler must be the last > handler for its try block > CCorbaApplication.cpp:751: error: '...' handler must be the last > handler for its try block > CCorbaApplication.cpp:755: error: '...' handler must be the last > handler for its try block > make[4]: *** [CCorbaApplication.lo] Error 1 > > --------------------------------------------------------------------------- >--- Are you an open source citizen? Join us for the Open Source Bridge > conference! Portland, OR, June 17-19. Two days of sessions, one day of > unconference: $250. Need another reason to go? 24-hour hacker lounge. > Register today! > http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge. >org _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user And same problem, so here is the fix :-p (got an arch 64 on my laptop) Fix in svn commit #2030 Regards, From zachsmith022 at ...626... Sat Jun 20 02:29:09 2009 From: zachsmith022 at ...626... (Zach Smith) Date: Fri, 19 Jun 2009 19:29:09 -0500 Subject: [Gambas-user] build 2027 failing In-Reply-To: <200906192044.50957.lordheavym@...626...> References: <200906191651.47475.lordheavym@...626...> <200906192044.50957.lordheavym@...626...> Message-ID: Thanks Benoit, Laurent. 32 bit (desktop) works now but... 64 bit (laptop) still won't build, Arch, gcc 4.4.0-3, #2030 now gives me: make[5]: Entering directory `/home/craig/gambas3/src/trunk/gb.qt4/src/ext' /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../../share -I../../src/share -pipe -Wall -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -fno-omit-frame-pointer -MT CDial_moc.lo -MD -MP -MF .deps/CDial_moc.Tpo -c -o CDial_moc.lo CDial_moc.cpp 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../../share -I../../src/share -pipe -Wall -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -fno-omit-frame-pointer -MT CDial_moc.lo -MD -MP -MF .deps/CDial_moc.Tpo -c CDial_moc.cpp -fPIC -DPIC -o .libs/CDial_moc.o CDial_moc.cpp:14:2: error: #error "This file was generated using the moc from 4.4.3. It" CDial_moc.cpp:15:2: error: #error "cannot be used with the include files from this version of Qt." CDial_moc.cpp:16:2: error: #error "(The moc has changed too much.)" make[5]: *** [CDial_moc.lo] Error 1 From kobolds at ...2041... Sat Jun 20 07:13:36 2009 From: kobolds at ...2041... (kobolds) Date: Fri, 19 Jun 2009 22:13:36 -0700 (PDT) Subject: [Gambas-user] showdialog / showmodal auto center In-Reply-To: <200906191252.59641.gambas@...1...> References: <24105720.post@...1379...> <200906191252.59641.gambas@...1...> Message-ID: <24122180.post@...1379...> Beno?t Minisini wrote: > >> i found that when display a window using showdialog / showmodal , the >> window show with auto center on screen. i don't want that , how do i >> disable it. i try using the X and Y but no effect > > Why don't you want that? > > -- > Beno?t > > ------------------------------------------------------------------------------ > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensing option that enables unlimited > royalty-free distribution of the report engine for externally facing > server and web deployment. > http://p.sf.net/sfu/businessobjects > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > why would I need that for . if I want to make it center , I can do it from the code . the current showmodal/show dialog not only auto center also prevent to change the position from the code . anyone know how to solve this problem ? -- View this message in context: http://www.nabble.com/showdialog---showmodal-auto-center-tp24105720p24122180.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Sat Jun 20 11:02:52 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Sat, 20 Jun 2009 11:02:52 +0200 Subject: [Gambas-user] build 2027 failing In-Reply-To: References: <200906192044.50957.lordheavym@...626...> Message-ID: <200906201102.52552.gambas@...1...> > Thanks Benoit, Laurent. 32 bit (desktop) works now but... 64 bit > (laptop) still won't build, Arch, gcc 4.4.0-3, #2030 now gives me: > > make[5]: Entering directory `/home/craig/gambas3/src/trunk/gb.qt4/src/ext' > /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../../share > -I../../src/share -pipe -Wall -fno-exceptions -Wno-unused-value > -fsigned-char -fvisibility=hidden -g -Os -fno-omit-frame-pointer -MT > CDial_moc.lo -MD -MP -MF .deps/CDial_moc.Tpo -c -o CDial_moc.lo > CDial_moc.cpp > 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../../share -I../../src/share -pipe -Wall > -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g > -Os -fno-omit-frame-pointer -MT CDial_moc.lo -MD -MP -MF > .deps/CDial_moc.Tpo -c CDial_moc.cpp -fPIC -DPIC -o .libs/CDial_moc.o > CDial_moc.cpp:14:2: error: #error "This file was generated using the > moc from 4.4.3. It" > CDial_moc.cpp:15:2: error: #error "cannot be used with the include > files from this version of Qt." > CDial_moc.cpp:16:2: error: #error "(The moc has changed too much.)" > make[5]: *** [CDial_moc.lo] Error 1 > Do a "make clean" inside the gb.qt4 directory: apparently you have already compiled Gambas and changed your version of qt 4 since. Regards, -- Beno?t From oceanosoftlapalma at ...626... Sat Jun 20 12:28:05 2009 From: oceanosoftlapalma at ...626... (=?ISO-8859-1?Q?Ricardo_D=EDaz_Mart=EDn?=) Date: Sat, 20 Jun 2009 12:28:05 +0200 Subject: [Gambas-user] GTK TRISTATE CHECKBOX NO POSSIBLE TO SET TO THREE DIFFERENTS STATES Message-ID: <4A3CB9B5.7050301@...626...> Hi, The checkbox control in gtk is no possible to change to other states y you select CheckBox.None as default value. There's all ok if you use the same code with qt component. Somebody knows if is it a bug or a GTK limitation? To reproduce this, it isn't necessary to write code: only put a checkbox in a empty form a run. I'm using gambas2 r.2028 in ubuntu 9.04x86_64 Regards, Ricardo D?az From sktan007 at ...43... Sat Jun 20 12:44:16 2009 From: sktan007 at ...43... (Swee Kwang Tan) Date: Sat, 20 Jun 2009 03:44:16 -0700 (PDT) Subject: [Gambas-user] Please help me!!! In-Reply-To: References: Message-ID: <714099.82128.qm@...2203...> Dear Sir, Gambas is good software, thank you for your working. I've upgrade my system from ubuntu 8.04 to fedora 11, and get the latest gambas2-2.13.1 from fedora repo. But my gambas program can't work normally, although it can work noraml in ubuntu, the postgresql can't connect, because fedora 11 repo have'nt gambas-db-postgresql-2.13.1-1.fc11 (i586). So it cause the following error message. (InputKuaDef:2963): IBUS-WARNING **: Connect to unix:path=/tmp/ibus-program/ibus-unix-0 failed: Failed to connect to socket /tmp/ibus-program/ibus-unix-0: refuse connection (InputKuaDef:2963): Gdk-CRITICAL **: gdk_x11_atom_to_xatom_for_display: assertion `atom != GDK_NONE' failed (InputKuaDef:2963): Gdk-CRITICAL **: gdk_x11_atom_to_xatom_for_display: assertion `atom != GDK_NONE' failed The "InputKuaDef" is my program name. How can I do now ? ________________________________ From: "gambas-user-request at lists.sourceforge.net" To: gambas-user at lists.sourceforge.net Sent: Friday, June 19, 2009 7:03:00 PM Subject: Gambas-user Digest, Vol 37, Issue 27 Send Gambas-user mailing list submissions to gambas-user at lists.sourceforge.net To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/gambas-user or, via email, send a message with subject or body 'help' to gambas-user-request at lists.sourceforge.net You can reach the person managing the list at gambas-user-owner at lists.sourceforge.net When replying, please edit your Subject line so it is more specific than "Re: Contents of Gambas-user digest..." Today's Topics: 1. build 2027 failing (Zach Smith) 2. Re: v4l - can not open device -solved (Steven James Drinnan) 3. showdialog / showmodal auto center (kobolds) 4. Re: gbr2 crash at different points (Andreas Fr?hlke) 5.. Re: Database example (charlesg) 6. Re: showdialog / showmodal auto center (Beno?t Minisini) 7. Re: build 2027 failing (Beno?t Minisini) 8. Re: v4l - can not open device -solved (Beno?t Minisini) 9. Re: build 2026 failing (Beno?t Minisini) ---------------------------------------------------------------------- Message: 1 Date: Thu, 18 Jun 2009 19:37:44 -0500 From: Zach Smith Subject: [Gambas-user] build 2027 failing To: gambas-user at lists.sourceforge.net Message-ID: Content-Type: text/plain; charset=ISO-8859-1 gambas3, build 2027, x_64, arch I'm getting: make[4]: Entering directory `/home/craig/gambas3/src/trunk/gb.db.sqlite3/src' /bin/sh ../libtool? --tag=CXX?? --mode=compile g++ -DHAVE_CONFIG_H -I. -I..??? -pipe -Wall -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -fno-omit-frame-pointer -fexceptions? -MT gb_db_sqlite3_la-main.lo -MD -MP -MF .deps/gb_db_sqlite3_la-main.Tpo -c -o gb_db_sqlite3_la-main.lo `test -f 'main.cpp' || echo './'`main.cpp ?g++ -DHAVE_CONFIG_H -I. -I.. -pipe -Wall -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -fno-omit-frame-pointer -fexceptions -MT gb_db_sqlite3_la-main..lo -MD -MP -MF .deps/gb_db_sqlite3_la-main.Tpo -c main.cpp? -fPIC -DPIC -o .libs/gb_db_sqlite3_la-main.o main.cpp: In function 'int field_index(void*, const char*, DB_DATABASE*)': main.cpp:1011: error: invalid conversion from 'const char*' to 'char*' make[4]: *** [gb_db_sqlite3_la-main.lo] Error 1 ------------------------------ Message: 2 Date: Fri, 19 Jun 2009 12:26:05 +0800 From: Steven James Drinnan Subject: Re: [Gambas-user] v4l - can not open device -solved To: mailing list for gambas users Message-ID: <1245385566.3344.3.camel at ...2011...> Content-Type: text/plain; charset="UTF-8" Had another look, looks like /dev/video is no longer created in v4l so the default now is /dev/video0. I know you did not make this component. But does need to be updated to recognize v4l2 which is now the default in most major distributions. Many thanks for your patience. Steven On Fri, 2009-06-19 at 00:30 +0200, Beno?t Minisini wrote: > > Have you have had a chance to check it out? > > > > I have no webcam, nor any v4l device, and I didn't make the component, so it > is hard for me to help you... > > Try to open the device with an OPEN "xxxx" FOR READ WRITE instruction to see > if you get a more detailed error message. > > Regards, > ------------------------------ Message: 3 Date: Thu, 18 Jun 2009 22:27:38 -0700 (PDT) From: kobolds Subject: [Gambas-user] showdialog / showmodal auto center To: gambas-user at lists.sourceforge.net Message-ID: <24105720.post at ...1379...> Content-Type: text/plain; charset=us-ascii i found that when display a window using showdialog / showmodal , the window show with auto center on screen. i don't want that , how do i disable it. i try using the X and Y but no effect -- View this message in context: http://www.nabble.com/showdialog---showmodal-auto-center-tp24105720p24105720.html Sent from the gambas-user mailing list archive at Nabble.com. ------------------------------ Message: 4 Date: Fri, 19 Jun 2009 09:23:54 +0200 From: Andreas Fr?hlke Subject: Re: [Gambas-user] gbr2 crash at different points To: mailing list for gambas users Message-ID: <8D42310D957CFB46AA11921A711D4D160245AACFC4 at ...1899...> Content-Type: text/plain; charset="iso-8859-1" Hello, just wanna know, do you get the mail? Regards Andreas Fr?hlke -----Urspr?ngliche Nachricht----- Von: Beno?t Minisini [mailto:gambas at ...1...] Gesendet: Mittwoch, 17. Juni 2009 12:42 An: mailing list for gambas users Betreff: Re: [Gambas-user] gbr2 crash at different points > Hello, > > we used to send you an core dump created with gcore, but the admin of the > mailinglist blocked it, because it is bigger than 256k. > > Regards > > A.Fr?hlke > This is automatic - Every 500+ subscribers will receive your mail, so it can't be big! Send the mail to my private e-mail (gambas at ...764...) Regards, -- Beno?t ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user ------------------------------ Message: 5 Date: Fri, 19 Jun 2009 02:03:06 -0700 (PDT) From: charlesg Subject: Re: [Gambas-user] Database example To: gambas-user at lists.sourceforge.net Message-ID: <24107894.post at ...1379...> Content-Type: text/plain; charset=us-ascii Hi Thank you Ron for that. A bit more messing around and I think I now understand it. Following on from richard terry's suggestion for simple examples, here it is as simple as I can get it. There is nothing new here: it all comes from the database example. Any corrections to the annotations welcome! You just need a gridview, a button called btnRun and a preferably large database with lots of columns so that you can scroll around with ease '======================================================== ' Gambas class file PUBLIC $hConnLocl AS NEW Connection PUBLIC $resData AS Result '-------------------------------------------------------- PUBLIC SUB Form_Open() DIM sql AS String 'open the database WITH $hConnLocl .type = "mysql" .host = "localhost" .Name = "stock" .login = "charles" .password="dog" END WITH $hConnLocl.Open() 'create a result sql = "SELECT * FROM grnLine" $resData = $hConnLocl.Exec(sql) END '--------------------------------------------------------- PUBLIC SUB btnRun_Click() DIM hForm AS FRequest DIM hField AS ResultField DIM iInd AS Integer GridView1.Rows.count = 0 'set the required number of columns GridView1.Columns.count = $resData.Fields.Count 'define the column headers and width FOR EACH hField IN $resData.Fields WITH hField GridView1.Columns[iInd].text = .Name GridView1.Columns[iInd].width = 60 END WITH INC iInd NEXT 'create the empty rows. Each empty and visible cell created calls GridView1_data GridView1.Rows.Count = $resData.Count END '--------------------------------------------------------- PUBLIC SUB GridView1_Data(Row AS Integer, Column AS Integer) 'move to the required result row $resData.MoveTo(row) 'set the data for the cell in the GridView from the column in the selected row of the result GridView1.Data.text = Str($resData[GridView1.Columns[column].text]) 'lets you see how _data is being called as you scroll around the GridView PRINT row & ":" & column & ":" & Str($resData[GridView1..Columns[column].text]) END '---------------------------------------------------------- I also created a second small form. As you move the second form around on top of the gridview, the print command still shows the _Data frantically working in the background. Clever things these computers! rgds -- View this message in context: http://www.nabble.com/Database-example-tp24021356p24107894.html Sent from the gambas-user mailing list archive at Nabble.com. ------------------------------ Message: 6 Date: Fri, 19 Jun 2009 12:52:59 +0200 From: Beno?t Minisini Subject: Re: [Gambas-user] showdialog / showmodal auto center To: mailing list for gambas users Message-ID: <200906191252.59641.gambas at ...1...> Content-Type: Text/Plain; charset="iso-8859-1" > i found that when display a window using showdialog / showmodal , the > window show with auto center on screen. i don't want that , how do i > disable it. i try using the X and Y but no effect Why don't you want that? -- Beno?t ------------------------------ Message: 7 Date: Fri, 19 Jun 2009 12:53:56 +0200 From: Beno?t Minisini Subject: Re: [Gambas-user] build 2027 failing To: mailing list for gambas users Message-ID: <200906191253.56345.gambas at ...1...> Content-Type: Text/Plain; charset="iso-8859-1" > gambas3, build 2027, x_64, arch > > I'm getting: > > make[4]: Entering directory > `/home/craig/gambas3/src/trunk/gb.db.sqlite3/src' /bin/sh ../libtool > --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -pipe -Wall > -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os > -fno-omit-frame-pointer -fexceptions -MT gb_db_sqlite3_la-main.lo -MD -MP > -MF ..deps/gb_db_sqlite3_la-main.Tpo -c -o gb_db_sqlite3_la-main.lo `test -f > 'main.cpp' || echo > './'`main.cpp > g++ -DHAVE_CONFIG_H -I. -I.. -pipe -Wall -fno-exceptions > -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os > -fno-omit-frame-pointer -fexceptions -MT gb_db_sqlite3_la-main.lo -MD > -MP -MF .deps/gb_db_sqlite3_la-main.Tpo -c main.cpp -fPIC -DPIC -o > .libs/gb_db_sqlite3_la-main.o > main.cpp: In function 'int field_index(void*, const char*, DB_DATABASE*)': > main.cpp:1011: error: invalid conversion from 'const char*' to 'char*' > make[4]: *** [gb_db_sqlite3_la-main.lo] Error 1 > > --------------------------------------------------------------------------- >--- Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensing option that enables unlimited > royalty-free distribution of the report engine for externally facing > server and web deployment. > http://p.sf.net/sfu/businessobjects > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user Which distribution do you use? Which version of gcc? -- Beno?t ------------------------------ Message: 8 Date: Fri, 19 Jun 2009 12:55:57 +0200 From: Beno?t Minisini Subject: Re: [Gambas-user] v4l - can not open device -solved To: mailing list for gambas users Message-ID: <200906191255.57135.gambas at ...1...> Content-Type: Text/Plain; charset="iso-8859-1" > Had another look, looks like /dev/video is no longer created in v4l so > the default now is /dev/video0. > > I know you did not make this component. But does need to be updated to > recognize v4l2 which is now the default in most major distributions. > > Many thanks for your patience. > > Steven > gb.v4l uses v4l2 but only in the development version. Regards, -- Beno?t ------------------------------ Message: 9 Date: Fri, 19 Jun 2009 13:02:49 +0200 From: Beno?t Minisini Subject: Re: [Gambas-user] build 2026 failing To: richard terry , mailing list for gambas users Message-ID: <200906191302.49657.gambas at ...1...> Content-Type: Text/Plain; charset="utf-8" > On Fri, 19 Jun 2009 09:48:08 am Beno?t Minisini wrote: > > > gambas3, build 2026, x_64, arch > > > > > > I'm getting: > > > > > > make[4]: Entering directory `/home/test/gambas3/src/trunk/main/gbx' > > > gcc -DHAVE_CONFIG_H -I. -I.. -I../share -D_REENTRANT -I.../libltdl > > > -I/usr/lib/libffi-3.0.8/include > > > -DGAMBAS_PATH="\"/home/test/gambas3/pkg/usr/bin\"" -pipe -Wall > > > -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -MT > > > gbx3-gbx_debug.o -MD -MP -MF .deps/gbx3-gbx_debug.Tpo -c -o > > > gbx3-gbx_debug.o `test -f 'gbx_debug.c' || echo './'`gbx_debug.c > > > In file included from gbx_class.h:30, > > > from gbx_exec.h:31, > > > from gbx_debug.c:35: > > > gbx_class_desc.h:105: error: duplicate member ?_reserved? > > > gbx_class_desc.h:123: error: duplicate member ?_reserved? > > > In file included from gbx_exec.h:38, > > > from gbx_debug.c:35: > > > gbx_variant.h: In function ?VARIANT_free?: > > > gbx_variant.h:55: warning: dereferencing type-punned pointer will break > > > strict-aliasing rules > > > gbx_variant.h:55: warning: dereferencing type-punned pointer will break > > > strict-aliasing rules > > > gbx_variant.h:55: warning: dereferencing type-punned pointer will break > > > strict-aliasing rules > > > gbx_variant.h:55: warning: dereferencing type-punned pointer will break > > > strict-aliasing rules > > > gbx_variant.h: In function ?VARIANT_keep?: > > > gbx_variant.h:63: warning: dereferencing type-punned pointer will break > > > strict-aliasing rules > > > gbx_variant.h:67: warning: dereferencing type-punned pointer will break > > > strict-aliasing rules > > > gbx_variant.h:67: warning: dereferencing type-punned pointer will break > > > strict-aliasing rules > > > gbx_variant.h: In function ?VARIANT_is_null?: > > > gbx_variant.h:76: warning: dereferencing type-punned pointer will break > > > strict-aliasing rules > > > gbx_variant.h:79: warning: dereferencing type-punned pointer will break > > > strict-aliasing rules > > > gbx_variant.h: In function ?VARIANT_clear?: > > > gbx_variant.h:90: warning: dereferencing type-punned pointer will break > > > strict-aliasing rules > > > make[4]: *** [gbx3-gbx_debug.o] Error 1 > > > > Fixed in revision #2027 ! > > CEditor.cpp: In function 'void CEDITOR_show_word(void*, void*)': > CEditor.cpp:962: error: 'class GEditor' has no member named 'showWord' > make[5]: *** [CEditor.lo] Error 1 > make[5]: Leaving directory > `/home/richard/gambas3-svn/src/trunk/gb.qt4/src/ext' > make[4]: *** [all-recursive] Error 1 > make[4]: Leaving directory `/home/richard/gambas3-svn/src/trunk/gb.qt4/src' > make[3]: *** [all-recursive] Error 1 > make[3]: Leaving directory `/home/richard/gambas3-svn/src/trunk/gb.qt4' > make[2]: *** [all] Error 2 > make[2]: Leaving directory `/home/richard/gambas3-svn/src/trunk/gb.qt4' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/home/richard/gambas3-svn/src/trunk' > make: *** [all] Error 2 > ==> ERROR: Build Failed. > > something not right on my machine in 2027 > Fixed in revision #2028. Nothing is wrong on your machine, I just sometimes break the development version inadvertently. Regards, -- Beno?t ------------------------------ ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment.. http://p.sf.net/sfu/businessobjects ------------------------------ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user End of Gambas-user Digest, Vol 37, Issue 27 ******************************************* _______________________________________ ???????????? http://cn.mail.yahoo.com From oceanosoftlapalma at ...626... Sat Jun 20 14:32:03 2009 From: oceanosoftlapalma at ...626... (=?UTF-8?B?UmljYXJkbyBEw61heiBNYXJ0w61u?=) Date: Sat, 20 Jun 2009 14:32:03 +0200 Subject: [Gambas-user] Please help me!!! In-Reply-To: <714099.82128.qm@...2203...> References: <714099.82128.qm@...2203...> Message-ID: <4A3CD6C3.40209@...626...> From kobolds at ...2041... Sat Jun 20 15:24:02 2009 From: kobolds at ...2041... (kobolds) Date: Sat, 20 Jun 2009 06:24:02 -0700 (PDT) Subject: [Gambas-user] text in button auto wrap Message-ID: <24125198.post@...1379...> i wish that the text on the button auto wrap if too long not cut off like right now. how do i do that -- View this message in context: http://www.nabble.com/text-in-button-auto-wrap-tp24125198p24125198.html Sent from the gambas-user mailing list archive at Nabble.com. From rospolosco at ...152... Sat Jun 20 15:55:06 2009 From: rospolosco at ...152... (Stefano Palmeri) Date: Sat, 20 Jun 2009 15:55:06 +0200 Subject: [Gambas-user] text in button auto wrap In-Reply-To: <24125198.post@...1379...> References: <24125198.post@...1379...> Message-ID: <200906201555.06993.rospolosco@...152...> Il sabato 20 giugno 2009 15:24:02 kobolds ha scritto: > i wish that the text on the button auto wrap if too long not cut off like > right now. how do i do that Use a shorter text ;-) I think you can't, but you can easily resize the button. DIM iButton1TextWidth AS Integer iButton1TextWidth = Button1.Font.Width("my very long text") Button1.Width = iButton1TextWidth + 20 Button1.Text = "my very long text" From kobolds at ...2041... Sat Jun 20 20:21:30 2009 From: kobolds at ...2041... (kobolds) Date: Sat, 20 Jun 2009 11:21:30 -0700 (PDT) Subject: [Gambas-user] Help creating user control Message-ID: <24127891.post@...1379...> I read how to create user control from this link http://www.gambasdoc.org/help/dev/gambas but I still having some problem to get it work . I want to create a custom control button . - FButtonEX (form) - ButtonEX (class) on the form (FButtonEX) , I drag and drop a button . ----------------------------------------------- on source FButtonEx.class public sub _new(optional bFile as boolean) end sub ---------------------------------------------- on source ButtonEx.class INHERITS userControl export private frmButton as FButtonEx public sub _new() frmButton = new FButtonEx(false, me) as "frmButton" object.attach(frmButton, me, "frmButton") end sub ------------------------------------------------------ I also put buttonex.png in the control folder in project property I make sure on option tabs "this project is component is YES and on provide tabs ButtonEX type=control group=dialog compile and make . I create another project and on toolkits dialog tabs, anew icon show up call buttonex . I click and drag it into the form . what it show only a rectangle with nothing in it . a button that suppose to be there not show up . but when I run this project the button show up . so how do i make the button show up on the ide ? if I missing anything please let me know . the wiki how-to help not very helpful . this is my first time try to create custom user control . -- View this message in context: http://www.nabble.com/Help-creating-user-control-tp24127891p24127891.html Sent from the gambas-user mailing list archive at Nabble.com. From Karl.Reinl at ...9... Sat Jun 20 21:25:47 2009 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Sat, 20 Jun 2009 21:25:47 +0200 Subject: [Gambas-user] Please help me!!! In-Reply-To: <714099.82128.qm@...2203...> References: <714099.82128.qm@...2203...> Message-ID: <1245525947.6404.7.camel@...40...> Am Samstag, den 20.06.2009, 03:44 -0700 schrieb Swee Kwang Tan: > Dear Sir, > Gambas is good software, thank you for your working. > I've upgrade my system from ubuntu 8.04 to fedora 11, and get the latest > gambas2-2.13.1 from fedora repo. But my gambas program can't work normally, > although it can work noraml in ubuntu, the postgresql can't connect, because fedora > 11 repo have'nt gambas-db-postgresql-2.13.1-1.fc11 (i586). So it cause the following error message. > (InputKuaDef:2963): IBUS-WARNING **: Connect to unix:path=/tmp/ibus-program/ibus-unix-0 failed: Failed to connect to socket /tmp/ibus-program/ibus-unix-0: refuse > connection > (InputKuaDef:2963): Gdk-CRITICAL **: gdk_x11_atom_to_xatom_for_display: assertion `atom != GDK_NONE' failed > (InputKuaDef:2963): Gdk-CRITICAL **: gdk_x11_atom_to_xatom_for_display: assertion `atom != GDK_NONE' failed > The "InputKuaDef" is my program name. How can I do now ? Salut, after changing your distro, did you make an ALT+F7 (compile all)? -- Amicalment Charlie From kevinfishburne at ...1887... Sun Jun 21 00:14:16 2009 From: kevinfishburne at ...1887... (kevinfishburne) Date: Sat, 20 Jun 2009 15:14:16 -0700 (PDT) Subject: [Gambas-user] GAMBAS IDE font/form size versus runtime font/form size Message-ID: <24129768.post@...1379...> I'm using GAMBAS 2.13 under Ubuntu 9.10 development branch and the GNOME desktop environment. I've noticed that the GAMBAS IDE ignores GNOME font sizes, but when I run a GAMBAS app it adheres to GNOME's font sizes, adjusting form and control sizes accordingly. I can't tell for certain but it appears that the GAMBAS IDE uses QT rather than GTK. My theory is that the GAMBAS IDE uses some hidden QT/KDE font size but that a running GAMBAS app uses whatever GUI/fonts correspond with the currently running desktop environment (in my case GNOME). Is that what is happening? My basic problem is that the GAMBAS IDE form and font sizes do not match the form and font sizes of a running GAMBAS app. To workaround this I have to set the "application font" size to 8 instead of 10 in GNOME, which then affects every other app as well. Is it possible to adjust GAMBAS, QT, or KDE's font sizes so that the GAMBAS IDE will more closely match the GAMBAS app running in GNOME? ----- 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://www.nabble.com/GAMBAS-IDE-font-form-size-versus-runtime-font-form-size-tp24129768p24129768.html Sent from the gambas-user mailing list archive at Nabble.com. From steven at ...2097... Sun Jun 21 04:45:31 2009 From: steven at ...2097... (Steven James Drinnan) Date: Sun, 21 Jun 2009 10:45:31 +0800 Subject: [Gambas-user] RPM install not resolving dependancies Message-ID: <1245552331.2976.13.camel@...2011...> Hi, This problem only appears with the sdl-sound component. It says Dependency resolution failed gambas2-gb-sdl-sound >= 1.9.48 is needed by package sjdsoft-phonicscatch-0.1.29-1.noarch (/sjdsoft-phonicscatch-0.1.29-1.noarch) gambas2-gb-sdl-sound < 2.90 is needed by package sjdsoft-phonicscatch-0.1.29-1.noarch (/sjdsoft-phonicscatch-0.1.29-1.noarch) Only appears against this package. Steven From oceanosoftlapalma at ...626... Sun Jun 21 09:14:03 2009 From: oceanosoftlapalma at ...626... (=?ISO-8859-1?Q?Ricardo_D=EDaz_Mart=EDn?=) Date: Sun, 21 Jun 2009 09:14:03 +0200 Subject: [Gambas-user] GAMBAS IDE font/form size versus runtime font/form size In-Reply-To: <24129768.post@...1379...> References: <24129768.post@...1379...> Message-ID: <4A3DDDBB.7060505@...626...> Try to set "Scaled" property in forms to False. This way you see the same in design mode than running app (if you are using qt componets; if you are using gtk components is almost the same). kevinfishburne escribi?: > I'm using GAMBAS 2.13 under Ubuntu 9.10 development branch and the GNOME > desktop environment. I've noticed that the GAMBAS IDE ignores GNOME font > sizes, but when I run a GAMBAS app it adheres to GNOME's font sizes, > adjusting form and control sizes accordingly. I can't tell for certain but > it appears that the GAMBAS IDE uses QT rather than GTK. My theory is that > the GAMBAS IDE uses some hidden QT/KDE font size but that a running GAMBAS > app uses whatever GUI/fonts correspond with the currently running desktop > environment (in my case GNOME). Is that what is happening? > > My basic problem is that the GAMBAS IDE form and font sizes do not match the > form and font sizes of a running GAMBAS app. To workaround this I have to > set the "application font" size to 8 instead of 10 in GNOME, which then > affects every other app as well. Is it possible to adjust GAMBAS, QT, or > KDE's font sizes so that the GAMBAS IDE will more closely match the GAMBAS > app running in GNOME? > > ----- > 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 > From doriano.blengino at ...1909... Sun Jun 21 10:16:54 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Sun, 21 Jun 2009 10:16:54 +0200 Subject: [Gambas-user] GAMBAS IDE font/form size versus runtime font/form size In-Reply-To: <24129768.post@...1379...> References: <24129768.post@...1379...> Message-ID: <4A3DEC76.2000508@...1909...> kevinfishburne ha scritto: > I'm using GAMBAS 2.13 under Ubuntu 9.10 development branch and the GNOME > desktop environment. I've noticed that the GAMBAS IDE ignores GNOME font > sizes, but when I run a GAMBAS app it adheres to GNOME's font sizes, > adjusting form and control sizes accordingly. I can't tell for certain but > it appears that the GAMBAS IDE uses QT rather than GTK. My theory is that > the GAMBAS IDE uses some hidden QT/KDE font size but that a running GAMBAS > app uses whatever GUI/fonts correspond with the currently running desktop > environment (in my case GNOME). Is that what is happening? > > My basic problem is that the GAMBAS IDE form and font sizes do not match the > form and font sizes of a running GAMBAS app. To workaround this I have to > set the "application font" size to 8 instead of 10 in GNOME, which then > affects every other app as well. Is it possible to adjust GAMBAS, QT, or > KDE's font sizes so that the GAMBAS IDE will more closely match the GAMBAS > app running in GNOME? > > The Gambas IDE uses QT, but your program can use QT _or_ GTK. In the project options/components you can tell your program to use QT, GTK, or "test if KDE is running and, if so, use QT; otherwise use GTK" (gb.gui). This wide choice is really pretty but, as always, every choice comes along with dark sides... if you force your program to use QT, then you solve your problem for your machine, but your program will not run on machines without QT. KDE claims to be able to apply its settings even on non-kde programs, and indeed this is true at least in part, but this is a little uncertain. You could switch to KDE... but I know this is probably a bad solution. I had similar problems, and resorted to set the Scaled property to false. This can work, only partly, and only if you let the user choose the standard font for the application and save it as a preference. The better solution, unfortunately not available at the moment, would be to have the Gambas IDE adapt itself to the current environment, just like its generated programs do: the gambas IDE is a gambas application, at the end. But it uses components which are not available in GTK. You could take the IDE source, and modify it to suite your needs. Not easy... Perhaps there is a wrong concept in your base idea... the best would be to let the system choose font sizes and control dimensions, because you don't know in advance what resolution and font size your users will have. But this idea does not work very well, not even in famous and big programs. And perhaps, you are the only user of your programs. Probably I didn't reply to your question, but instead I added more doubts to yours. This is a really complicated matter. Hope anyway these infos can come handy - regards, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From gambas at ...1... Sun Jun 21 15:33:56 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Sun, 21 Jun 2009 15:33:56 +0200 Subject: [Gambas-user] GAMBAS IDE font/form size versus runtime font/form size In-Reply-To: <4A3DEC76.2000508@...1909...> References: <24129768.post@...1379...> <4A3DEC76.2000508@...1909...> Message-ID: <200906211533.56469.gambas@...1...> > kevinfishburne ha scritto: > > I'm using GAMBAS 2.13 under Ubuntu 9.10 development branch and the GNOME > > desktop environment. I've noticed that the GAMBAS IDE ignores GNOME font > > sizes, but when I run a GAMBAS app it adheres to GNOME's font sizes, > > adjusting form and control sizes accordingly. I can't tell for certain > > but it appears that the GAMBAS IDE uses QT rather than GTK. My theory is > > that the GAMBAS IDE uses some hidden QT/KDE font size but that a running > > GAMBAS app uses whatever GUI/fonts correspond with the currently running > > desktop environment (in my case GNOME). Is that what is happening? > > > > My basic problem is that the GAMBAS IDE form and font sizes do not match > > the form and font sizes of a running GAMBAS app. To workaround this I > > have to set the "application font" size to 8 instead of 10 in GNOME, > > which then affects every other app as well. Is it possible to adjust > > GAMBAS, QT, or KDE's font sizes so that the GAMBAS IDE will more closely > > match the GAMBAS app running in GNOME? > > The Gambas IDE uses QT, but your program can use QT _or_ GTK. > > In the project options/components you can tell your program to use QT, > GTK, or "test if KDE is running and, if so, use QT; otherwise use GTK" > (gb.gui). > This wide choice is really pretty but, as always, every choice comes > along with dark sides... if you force your program to use QT, then you > solve your problem for your machine, but your program will not run on > machines without QT. > > KDE claims to be able to apply its settings even on non-kde programs, > and indeed this is true at least in part, but this is a little > uncertain. You could switch to KDE... but I know this is probably a bad > solution. > > I had similar problems, and resorted to set the Scaled property to > false. This can work, only partly, and only if you let the user choose > the standard font for the application and save it as a preference. > > The better solution, unfortunately not available at the moment, would be > to have the Gambas IDE adapt itself to the current environment, just > like its generated programs do: the gambas IDE is a gambas application, > at the end. But it uses components which are not available in GTK. > You could take the IDE source, and modify it to suite your needs. Not > easy... > > Perhaps there is a wrong concept in your base idea... the best would be > to let the system choose font sizes and control dimensions, because you > don't know in advance what resolution and font size your users will > have. But this idea does not work very well, not even in famous and big > programs. And perhaps, you are the only user of your programs. > > Probably I didn't reply to your question, but instead I added more > doubts to yours. This is a really complicated matter. > > Hope anyway these infos can come handy - regards, By default, form and control dimensions are proportional to the desktop font height. Alas even if you choose the same font both in Qt and in GTK+, you don't have the same result, because the two toolkits often do not return the same height for the same font! Even if they really look exactly the same on the screen! Really weird... Maybe I will find a better solution before the release of Gambas 3... -- Beno?t From gambas at ...1... Sun Jun 21 17:36:19 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Sun, 21 Jun 2009 17:36:19 +0200 Subject: [Gambas-user] GTK TRISTATE CHECKBOX NO POSSIBLE TO SET TO THREE DIFFERENTS STATES In-Reply-To: <4A3CB9B5.7050301@...626...> References: <4A3CB9B5.7050301@...626...> Message-ID: <200906211736.20036.gambas@...1...> > Hi, > > The checkbox control in gtk is no possible to change to other states y > you select CheckBox.None as default value. There's all ok if you use the > same code with qt component. > > Somebody knows if is it a bug or a GTK limitation? > > To reproduce this, it isn't necessary to write code: only put a checkbox > in a empty form a run. > > I'm using gambas2 r.2028 in ubuntu 9.04x86_64 > > Regards, > Ricardo D?az > I confirm it is a bug. -- Beno?t From gambas at ...1... Sun Jun 21 21:38:48 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Sun, 21 Jun 2009 21:38:48 +0200 Subject: [Gambas-user] GTK TRISTATE CHECKBOX NO POSSIBLE TO SET TO THREE DIFFERENTS STATES In-Reply-To: <200906211736.20036.gambas@...1...> References: <4A3CB9B5.7050301@...626...> <200906211736.20036.gambas@...1...> Message-ID: <200906212138.48429.gambas@...1...> > > Hi, > > > > The checkbox control in gtk is no possible to change to other states y > > you select CheckBox.None as default value. There's all ok if you use the > > same code with qt component. > > > > Somebody knows if is it a bug or a GTK limitation? > > > > To reproduce this, it isn't necessary to write code: only put a checkbox > > in a empty form a run. > > > > I'm using gambas2 r.2028 in ubuntu 9.04x86_64 > > > > Regards, > > Ricardo D?az > > I confirm it is a bug. ...that should be fixed in revision #2031 (for Gambas 2). Regards, -- Beno?t From prog at ...2177... Mon Jun 22 01:05:59 2009 From: prog at ...2177... (programacion) Date: Sun, 21 Jun 2009 19:05:59 -0400 Subject: [Gambas-user] Boder = sunken, raised etc Message-ID: <1245625559.3428.0.camel@...651...> Hello. I wonder if the property border = (raised, plain, sunken ..) of a button are now obsolete Regards From sktan007 at ...43... Mon Jun 22 04:27:33 2009 From: sktan007 at ...43... (Swee Kwang Tan) Date: Sun, 21 Jun 2009 19:27:33 -0700 (PDT) Subject: [Gambas-user] Gambas-user Digest, Vol 37, Issue 29 In-Reply-To: References: Message-ID: <666896.16244.qm@...2207...> Dear Sir, I've upgrade my system from ubuntu8.04 to fedora 11, after intall the gambas2-2.13.1, I found that my program can't run on the latest gambas version, because the gambas2-gb-db-postgresql is missing, my program can run in ubuntu 8.04 normally, I wish to download the missing package, but where is the package wed site ? Thank you. ________________________________ From: "gambas-user-request at lists.sourceforge.net" To: gambas-user at lists.sourceforge.net Sent: Saturday, June 20, 2009 6:44:21 PM Subject: Gambas-user Digest, Vol 37, Issue 29 Send Gambas-user mailing list submissions to gambas-user at lists.sourceforge.net To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/gambas-user or, via email, send a message with subject or body 'help' to gambas-user-request at lists.sourceforge.net You can reach the person managing the list at gambas-user-owner at lists.sourceforge.net When replying, please edit your Subject line so it is more specific than "Re: Contents of Gambas-user digest..." Today's Topics: 1. Re: build 2027 failing (Zach Smith) 2. Re: showdialog / showmodal auto center (kobolds) 3. Re: build 2027 failing (Beno?t Minisini) 4. GTK TRISTATE CHECKBOX NO POSSIBLE TO SET TO THREE DIFFERENTS STATES (Ricardo D?az Mart?n) 5. Please help me!!! (Swee Kwang Tan) ---------------------------------------------------------------------- Message: 1 Date: Fri, 19 Jun 2009 19:29:09 -0500 From: Zach Smith Subject: Re: [Gambas-user] build 2027 failing To: mailing list for gambas users Message-ID: Content-Type: text/plain; charset=ISO-8859-1 Thanks Benoit, Laurent. 32 bit (desktop) works now but... 64 bit (laptop) still won't build, Arch, gcc 4.4.0-3, #2030 now gives me: make[5]: Entering directory `/home/craig/gambas3/src/trunk/gb.qt4/src/ext' /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../../share -I../../src/share -pipe -Wall -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -fno-omit-frame-pointer -MT CDial_moc.lo -MD -MP -MF .deps/CDial_moc.Tpo -c -o CDial_moc.lo CDial_moc.cpp 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../../share -I../../src/share -pipe -Wall -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -fno-omit-frame-pointer -MT CDial_moc.lo -MD -MP -MF .deps/CDial_moc.Tpo -c CDial_moc.cpp -fPIC -DPIC -o .libs/CDial_moc.o CDial_moc.cpp:14:2: error: #error "This file was generated using the moc from 4.4.3. It" CDial_moc.cpp:15:2: error: #error "cannot be used with the include files from this version of Qt." CDial_moc.cpp:16:2: error: #error "(The moc has changed too much.)" make[5]: *** [CDial_moc.lo] Error 1 ------------------------------ Message: 2 Date: Fri, 19 Jun 2009 22:13:36 -0700 (PDT) From: kobolds Subject: Re: [Gambas-user] showdialog / showmodal auto center To: gambas-user at lists.sourceforge.net Message-ID: <24122180.post at ...2204...> Content-Type: text/plain; charset=UTF-8 Beno?t Minisini wrote: > >> i found that when display a window using showdialog / showmodal , the >> window show with auto center on screen. i don't want that , how do i >> disable it. i try using the X and Y but no effect > > Why don't you want that? > > -- > Beno?t > > ------------------------------------------------------------------------------ > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensing option that enables unlimited > royalty-free distribution of the report engine for externally facing > server and web deployment. > http://p.sf.net/sfu/businessobjects > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > why would I need that for . if I want to make it center , I can do it from the code . the current showmodal/show dialog not only auto center also prevent to change the position from the code . anyone know how to solve this problem ? -- View this message in context: http://www.nabble.com/showdialog---showmodal-auto-center-tp24105720p24122180.html Sent from the gambas-user mailing list archive at Nabble..com. ------------------------------ Message: 3 Date: Sat, 20 Jun 2009 11:02:52 +0200 From: Beno?t Minisini Subject: Re: [Gambas-user] build 2027 failing To: mailing list for gambas users Message-ID: <200906201102.52552.gambas at ...1...> Content-Type: Text/Plain; charset="iso-8859-1" > Thanks Benoit, Laurent. 32 bit (desktop) works now but... 64 bit > (laptop) still won't build, Arch, gcc 4.4.0-3, #2030 now gives me: > > make[5]: Entering directory `/home/craig/gambas3/src/trunk/gb.qt4/src/ext' > /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../../share > -I../../src/share -pipe -Wall -fno-exceptions -Wno-unused-value > -fsigned-char -fvisibility=hidden -g -Os -fno-omit-frame-pointer -MT > CDial_moc.lo -MD -MP -MF .deps/CDial_moc.Tpo -c -o CDial_moc.lo > CDial_moc.cpp > 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../../share -I.../../src/share -pipe -Wall > -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g > -Os -fno-omit-frame-pointer -MT CDial_moc.lo -MD -MP -MF > .deps/CDial_moc.Tpo -c CDial_moc.cpp -fPIC -DPIC -o .libs/CDial_moc.o > CDial_moc.cpp:14:2: error: #error "This file was generated using the > moc from 4.4.3. It" > CDial_moc.cpp:15:2: error: #error "cannot be used with the include > files from this version of Qt." > CDial_moc.cpp:16:2: error: #error "(The moc has changed too much.)" > make[5]: *** [CDial_moc.lo] Error 1 > Do a "make clean" inside the gb.qt4 directory: apparently you have already compiled Gambas and changed your version of qt 4 since. Regards, -- Beno?t ------------------------------ Message: 4 Date: Sat, 20 Jun 2009 12:28:05 +0200 From: Ricardo D?az Mart?n Subject: [Gambas-user] GTK TRISTATE CHECKBOX NO POSSIBLE TO SET TO THREE DIFFERENTS STATES To: mailing list for gambas users Message-ID: <4A3CB9B5.7050301 at ...626...> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Hi, The checkbox control in gtk is no possible to change to other states y you select CheckBox.None as default value. There's all ok if you use the same code with qt component. Somebody knows if is it a bug or a GTK limitation? To reproduce this, it isn't necessary to write code: only put a checkbox in a empty form a run. I'm using gambas2 r.2028 in ubuntu 9.04x86_64 Regards, Ricardo D?az ------------------------------ Message: 5 Date: Sat, 20 Jun 2009 03:44:16 -0700 (PDT) From: Swee Kwang Tan Subject: [Gambas-user] Please help me!!! To: gambas-user at lists.sourceforge.net Message-ID: <714099.82128.qm at ...2203...> Content-Type: text/plain; charset=utf-8 Dear Sir, Gambas is good software, thank you for your working. I've upgrade my system from ubuntu 8.04 to fedora 11, and get the latest gambas2-2.13.1 from fedora repo. But my gambas program can't work normally, although it can work noraml in ubuntu, the postgresql can't connect, because fedora 11 repo have'nt gambas-db-postgresql-2.13.1-1.fc11 (i586). So it cause the following error message. (InputKuaDef:2963): IBUS-WARNING **: Connect to unix:path=/tmp/ibus-program/ibus-unix-0 failed: Failed to connect to socket /tmp/ibus-program/ibus-unix-0: refuse connection (InputKuaDef:2963): Gdk-CRITICAL **: gdk_x11_atom_to_xatom_for_display: assertion `atom != GDK_NONE' failed (InputKuaDef:2963): Gdk-CRITICAL **: gdk_x11_atom_to_xatom_for_display: assertion `atom != GDK_NONE' failed The "InputKuaDef" is my program name. How can I do now ? ________________________________ From: "gambas-user-request at lists.sourceforge.net" To: gambas-user at lists.sourceforge.net Sent: Friday, June 19, 2009 7:03:00 PM Subject: Gambas-user Digest, Vol 37, Issue 27 Send Gambas-user mailing list submissions to gambas-user at lists.sourceforge.net To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/gambas-user or, via email, send a message with subject or body 'help' to gambas-user-request at lists.sourceforge.net You can reach the person managing the list at gambas-user-owner at lists.sourceforge.net When replying, please edit your Subject line so it is more specific than "Re: Contents of Gambas-user digest..." Today's Topics: 1. build 2027 failing (Zach Smith) 2. Re: v4l - can not open device -solved (Steven James Drinnan) 3. showdialog / showmodal auto center (kobolds) 4. Re: gbr2 crash at different points (Andreas Fr?hlke) 5.. Re: Database example (charlesg) 6. Re: showdialog / showmodal auto center (Beno?t Minisini) 7. Re: build 2027 failing (Beno?t Minisini) 8. Re: v4l - can not open device -solved (Beno?t Minisini) 9. Re: build 2026 failing (Beno?t Minisini) ---------------------------------------------------------------------- Message: 1 Date: Thu, 18 Jun 2009 19:37:44 -0500 From: Zach Smith Subject: [Gambas-user] build 2027 failing To: gambas-user at lists.sourceforge.net Message-ID: Content-Type: text/plain; charset=ISO-8859-1 gambas3, build 2027, x_64, arch I'm getting: make[4]: Entering directory `/home/craig/gambas3/src/trunk/gb.db.sqlite3/src' /bin/sh ../libtool? --tag=CXX?? --mode=compile g++ -DHAVE_CONFIG_H -I. -I..??? -pipe -Wall -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -fno-omit-frame-pointer -fexceptions? -MT gb_db_sqlite3_la-main.lo -MD -MP -MF .deps/gb_db_sqlite3_la-main.Tpo -c -o gb_db_sqlite3_la-main.lo `test -f 'main.cpp' || echo './'`main.cpp ?g++ -DHAVE_CONFIG_H -I. -I.. -pipe -Wall -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -fno-omit-frame-pointer -fexceptions -MT gb_db_sqlite3_la-main..lo -MD -MP -MF .deps/gb_db_sqlite3_la-main.Tpo -c main.cpp? -fPIC -DPIC -o .libs/gb_db_sqlite3_la-main.o main.cpp: In function 'int field_index(void*, const char*, DB_DATABASE*)': main.cpp:1011: error: invalid conversion from 'const char*' to 'char*' make[4]: *** [gb_db_sqlite3_la-main.lo] Error 1 ------------------------------ Message: 2 Date: Fri, 19 Jun 2009 12:26:05 +0800 From: Steven James Drinnan Subject: Re: [Gambas-user] v4l - can not open device -solved To: mailing list for gambas users Message-ID: <1245385566.3344.3.camel at ...2011...> Content-Type: text/plain; charset="UTF-8" Had another look, looks like /dev/video is no longer created in v4l so the default now is /dev/video0. I know you did not make this component. But does need to be updated to recognize v4l2 which is now the default in most major distributions. Many thanks for your patience. Steven On Fri, 2009-06-19 at 00:30 +0200, Beno?t Minisini wrote: > > Have you have had a chance to check it out? > > > > I have no webcam, nor any v4l device, and I didn't make the component, so it > is hard for me to help you... > > Try to open the device with an OPEN "xxxx" FOR READ WRITE instruction to see > if you get a more detailed error message. > > Regards, > ------------------------------ Message: 3 Date: Thu, 18 Jun 2009 22:27:38 -0700 (PDT) From: kobolds Subject: [Gambas-user] showdialog / showmodal auto center To: gambas-user at lists.sourceforge.net Message-ID: <24105720.post at ...1379...> Content-Type: text/plain; charset=us-ascii i found that when display a window using showdialog / showmodal , the window show with auto center on screen. i don't want that , how do i disable it. i try using the X and Y but no effect -- View this message in context: http://www.nabble.com/showdialog---showmodal-auto-center-tp24105720p24105720.html Sent from the gambas-user mailing list archive at Nabble.com. ------------------------------ Message: 4 Date: Fri, 19 Jun 2009 09:23:54 +0200 From: Andreas Fr?hlke Subject: Re: [Gambas-user] gbr2 crash at different points To: mailing list for gambas users Message-ID: <8D42310D957CFB46AA11921A711D4D160245AACFC4 at ...1899...> Content-Type: text/plain; charset="iso-8859-1" Hello, just wanna know, do you get the mail? Regards Andreas Fr?hlke -----Urspr?ngliche Nachricht----- Von: Beno?t Minisini [mailto:gambas at ...2205...] Gesendet: Mittwoch, 17. Juni 2009 12:42 An: mailing list for gambas users Betreff: Re: [Gambas-user] gbr2 crash at different points > Hello, > > we used to send you an core dump created with gcore, but the admin of the > mailinglist blocked it, because it is bigger than 256k. > > Regards > > A.Fr?hlke > This is automatic - Every 500+ subscribers will receive your mail, so it can't be big! Send the mail to my private e-mail (gambas at ...764...) Regards, -- Beno?t ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user ------------------------------ Message: 5 Date: Fri, 19 Jun 2009 02:03:06 -0700 (PDT) From: charlesg Subject: Re: [Gambas-user] Database example To: gambas-user at lists.sourceforge.net Message-ID: <24107894.post at ...1379...> Content-Type: text/plain; charset=us-ascii Hi Thank you Ron for that. A bit more messing around and I think I now understand it. Following on from richard terry's suggestion for simple examples, here it is as simple as I can get it. There is nothing new here: it all comes from the database example. Any corrections to the annotations welcome! You just need a gridview, a button called btnRun and a preferably large database with lots of columns so that you can scroll around with ease '======================================================== ' Gambas class file PUBLIC $hConnLocl AS NEW Connection PUBLIC $resData AS Result '-------------------------------------------------------- PUBLIC SUB Form_Open() DIM sql AS String 'open the database WITH $hConnLocl .type = "mysql" .host = "localhost" .Name = "stock" .login = "charles" .password="dog" END WITH $hConnLocl.Open() 'create a result sql = "SELECT * FROM grnLine" $resData = $hConnLocl.Exec(sql) END '--------------------------------------------------------- PUBLIC SUB btnRun_Click() DIM hForm AS FRequest DIM hField AS ResultField DIM iInd AS Integer GridView1.Rows.count = 0 'set the required number of columns GridView1.Columns.count = $resData.Fields.Count 'define the column headers and width FOR EACH hField IN $resData.Fields WITH hField GridView1.Columns[iInd].text = .Name GridView1.Columns[iInd].width = 60 END WITH INC iInd NEXT 'create the empty rows. Each empty and visible cell created calls GridView1_data GridView1.Rows.Count = $resData.Count END '--------------------------------------------------------- PUBLIC SUB GridView1_Data(Row AS Integer, Column AS Integer) 'move to the required result row $resData.MoveTo(row) 'set the data for the cell in the GridView from the column in the selected row of the result GridView1.Data.text = Str($resData[GridView1.Columns[column].text]) 'lets you see how _data is being called as you scroll around the GridView PRINT row & ":" & column & ":" & Str($resData[GridView1..Columns[column].text]) END '---------------------------------------------------------- I also created a second small form. As you move the second form around on top of the gridview, the print command still shows the _Data frantically working in the background. Clever things these computers! rgds -- View this message in context: http://www.nabble.com/Database-example-tp24021356p24107894.html Sent from the gambas-user mailing list archive at Nabble.com. ------------------------------ Message: 6 Date: Fri, 19 Jun 2009 12:52:59 +0200 From: Beno?t Minisini Subject: Re: [Gambas-user] showdialog / showmodal auto center To: mailing list for gambas users Message-ID: <200906191252.59641.gambas at ...1...> Content-Type: Text/Plain; charset="iso-8859-1" > i found that when display a window using showdialog / showmodal , the > window show with auto center on screen. i don't want that , how do i > disable it.. i try using the X and Y but no effect Why don't you want that? -- Beno?t ------------------------------ Message: 7 Date: Fri, 19 Jun 2009 12:53:56 +0200 From: Beno?t Minisini Subject: Re: [Gambas-user] build 2027 failing To: mailing list for gambas users Message-ID: <200906191253.56345.gambas at ...1...> Content-Type: Text/Plain; charset="iso-8859-1" > gambas3, build 2027, x_64, arch > > I'm getting: > > make[4]: Entering directory > `/home/craig/gambas3/src/trunk/gb.db.sqlite3/src' /bin/sh ../libtool > --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -pipe -Wall > -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os > -fno-omit-frame-pointer -fexceptions -MT gb_db_sqlite3_la-main.lo -MD -MP > -MF ..deps/gb_db_sqlite3_la-main.Tpo -c -o gb_db_sqlite3_la-main.lo `test -f > 'main.cpp' || echo > './'`main.cpp > g++ -DHAVE_CONFIG_H -I. -I.. -pipe -Wall -fno-exceptions > -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os > -fno-omit-frame-pointer -fexceptions -MT gb_db_sqlite3_la-main.lo -MD > -MP -MF .deps/gb_db_sqlite3_la-main.Tpo -c main.cpp -fPIC -DPIC -o > .libs/gb_db_sqlite3_la-main.o > main.cpp: In function 'int field_index(void*, const char*, DB_DATABASE*)': > main.cpp:1011: error: invalid conversion from 'const char*' to 'char*' > make[4]: *** [gb_db_sqlite3_la-main.lo] Error 1 > > --------------------------------------------------------------------------- >--- Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensing option that enables unlimited > royalty-free distribution of the report engine for externally facing > server and web deployment. > http://p.sf.net/sfu/businessobjects > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user Which distribution do you use? Which version of gcc? -- Beno?t ------------------------------ Message: 8 Date: Fri, 19 Jun 2009 12:55:57 +0200 From: Beno?t Minisini Subject: Re: [Gambas-user] v4l - can not open device -solved To: mailing list for gambas users Message-ID: <200906191255.57135.gambas at ...1...> Content-Type: Text/Plain; charset="iso-8859-1" > Had another look, looks like /dev/video is no longer created in v4l so > the default now is /dev/video0. > > I know you did not make this component. But does need to be updated to > recognize v4l2 which is now the default in most major distributions. > > Many thanks for your patience. > > Steven > gb.v4l uses v4l2 but only in the development version. Regards, -- Beno?t ------------------------------ Message: 9 Date: Fri, 19 Jun 2009 13:02:49 +0200 From: Beno?t Minisini Subject: Re: [Gambas-user] build 2026 failing To: richard terry , mailing list for gambas users Message-ID: <200906191302.49657.gambas at ...1...> Content-Type: Text/Plain; charset="utf-8" > On Fri, 19 Jun 2009 09:48:08 am Beno?t Minisini wrote: > > > gambas3, build 2026, x_64, arch > > > > > > I'm getting: > > > > > > make[4]: Entering directory `/home/test/gambas3/src/trunk/main/gbx' > > > gcc -DHAVE_CONFIG_H -I. -I.. -I../share -D_REENTRANT -I.../libltdl > > > -I/usr/lib/libffi-3.0.8/include > > > -DGAMBAS_PATH="\"/home/test/gambas3/pkg/usr/bin\"" -pipe -Wall > > > -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -MT > > > gbx3-gbx_debug.o -MD -MP -MF .deps/gbx3-gbx_debug.Tpo -c -o > > > gbx3-gbx_debug.o `test -f 'gbx_debug.c' || echo './'`gbx_debug.c > > > In file included from gbx_class..h:30, > > > from gbx_exec.h:31, > > > from gbx_debug.c:35: > > > gbx_class_desc.h:105: error: duplicate member ?_reserved? > > > gbx_class_desc.h:123: error: duplicate member ?_reserved? > > > In file included from gbx_exec.h:38, > > > from gbx_debug.c:35: > > > gbx_variant.h: In function ?VARIANT_free?: > > > gbx_variant.h:55: warning: dereferencing type-punned pointer will break > > > strict-aliasing rules > > > gbx_variant.h:55: warning: dereferencing type-punned pointer will break > > > strict-aliasing rules > > > gbx_variant.h:55: warning: dereferencing type-punned pointer will break > > > strict-aliasing rules > > > gbx_variant.h:55: warning: dereferencing type-punned pointer will break > > > strict-aliasing rules > > > gbx_variant.h: In function ?VARIANT_keep?: > > > gbx_variant.h:63: warning: dereferencing type-punned pointer will break > > > strict-aliasing rules > > > gbx_variant.h:67: warning: dereferencing type-punned pointer will break > > > strict-aliasing rules > > > gbx_variant.h:67: warning: dereferencing type-punned pointer will break > > > strict-aliasing rules > > > gbx_variant.h: In function ?VARIANT_is_null?: > > > gbx_variant.h:76: warning: dereferencing type-punned pointer will break > > > strict-aliasing rules > > > gbx_variant.h:79: warning: dereferencing type-punned pointer will break > > > strict-aliasing rules > > > gbx_variant.h: In function ?VARIANT_clear?: > > > gbx_variant.h:90: warning: dereferencing type-punned pointer will break > > > strict-aliasing rules > > > make[4]: *** [gbx3-gbx_debug.o] Error 1 > > > > Fixed in revision #2027 ! > > CEditor.cpp: In function 'void CEDITOR_show_word(void*, void*)': > CEditor.cpp:962: error: 'class GEditor' has no member named 'showWord' > make[5]: *** [CEditor.lo] Error 1 > make[5]: Leaving directory > `/home/richard/gambas3-svn/src/trunk/gb.qt4/src/ext' > make[4]: *** [all-recursive] Error 1 > make[4]: Leaving directory `/home/richard/gambas3-svn/src/trunk/gb..qt4/src' > make[3]: *** [all-recursive] Error 1 > make[3]: Leaving directory `/home/richard/gambas3-svn/src/trunk/gb.qt4' > make[2]: *** [all] Error 2 > make[2]: Leaving directory `/home/richard/gambas3-svn/src/trunk/gb.qt4' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/home/richard/gambas3-svn/src/trunk' > make: *** [all] Error 2 > ==> ERROR: Build Failed. > > something not right on my machine in 2027 > Fixed in revision #2028. Nothing is wrong on your machine, I just sometimes break the development version inadvertently. Regards, -- Beno?t ------------------------------ ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment.. http://p.sf.net/sfu/businessobjects ------------------------------ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user End of Gambas-user Digest, Vol 37, Issue 27 ******************************************* _______________________________________ ???????????? http://cn.mail.yahoo.com ------------------------------ ------------------------------------------------------------------------------ Are you an open source citizen? Join us for the Open Source Bridge conference! Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250. Need another reason to go? 24-hour hacker lounge. Register today! http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org ------------------------------ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user End of Gambas-user Digest, Vol 37, Issue 29 ******************************************* _______________________________________ ???????????? http://cn.mail.yahoo.com From steven at ...2097... Mon Jun 22 05:20:16 2009 From: steven at ...2097... (Steven James Drinnan) Date: Mon, 22 Jun 2009 11:20:16 +0800 Subject: [Gambas-user] Gambas-user Digest, Vol 37, Issue 29 In-Reply-To: <666896.16244.qm@...2207...> References: <666896.16244.qm@...2207...> Message-ID: <1245640817.8755.6.camel@...2011...> No need it is included in gamba2-gb-db. I have had a similar problem with the SDL component. if you are installing and have a dependency problem. Make sure that the above and all other required files are installed. Then run from a cmd prompt su rpm -ivh --nodeps 'the-name-of-your-rpm' if you like send me the program I can test further for you. Steven. On Sun, 2009-06-21 at 19:27 -0700, Swee Kwang Tan wrote: > Dear Sir, > I've upgrade my system from ubuntu8.04 to fedora 11, after intall the > gambas2-2.13.1, I found that my program can't run on the latest gambas > version, because the gambas2-gb-db-postgresql is missing, my program > can run in ubuntu 8.04 normally, I wish to download the missing package, but where is the package wed site ? > Thank you. > > > > > > ________________________________ > From: "gambas-user-request at lists.sourceforge.net" > To: gambas-user at lists.sourceforge.net > Sent: Saturday, June 20, 2009 6:44:21 PM > Subject: Gambas-user Digest, Vol 37, Issue 29 > > Send Gambas-user mailing list submissions to > gambas-user at lists.sourceforge.net > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/gambas-user > or, via email, send a message with subject or body 'help' to > gambas-user-request at lists.sourceforge.net > > You can reach the person managing the list at > gambas-user-owner at lists.sourceforge.net > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Gambas-user digest..." > > > Today's Topics: > > 1. Re: build 2027 failing (Zach Smith) > 2. Re: showdialog / showmodal auto center (kobolds) > 3. Re: build 2027 failing (Beno?t Minisini) > 4. GTK TRISTATE CHECKBOX NO POSSIBLE TO SET TO THREE DIFFERENTS > STATES (Ricardo D?az Mart?n) > 5. Please help me!!! (Swee Kwang Tan) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Fri, 19 Jun 2009 19:29:09 -0500 > From: Zach Smith > Subject: Re: [Gambas-user] build 2027 failing > To: mailing list for gambas users > Message-ID: > > Content-Type: text/plain; charset=ISO-8859-1 > > Thanks Benoit, Laurent. 32 bit (desktop) works now but... 64 bit > (laptop) still won't build, Arch, gcc 4.4.0-3, #2030 now gives me: > > make[5]: Entering directory `/home/craig/gambas3/src/trunk/gb.qt4/src/ext' > /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../../share > -I../../src/share -pipe -Wall -fno-exceptions -Wno-unused-value > -fsigned-char -fvisibility=hidden -g -Os -fno-omit-frame-pointer -MT > CDial_moc.lo -MD -MP -MF .deps/CDial_moc.Tpo -c -o CDial_moc.lo > CDial_moc.cpp > 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../../share -I../../src/share -pipe -Wall > -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g > -Os -fno-omit-frame-pointer -MT CDial_moc.lo -MD -MP -MF > .deps/CDial_moc.Tpo -c CDial_moc.cpp -fPIC -DPIC -o .libs/CDial_moc.o > CDial_moc.cpp:14:2: error: #error "This file was generated using the > moc from 4.4.3. It" > CDial_moc.cpp:15:2: error: #error "cannot be used with the include > files from this version of Qt." > CDial_moc.cpp:16:2: error: #error "(The moc has changed too much.)" > make[5]: *** [CDial_moc.lo] Error 1 > > > > ------------------------------ > > Message: 2 > Date: Fri, 19 Jun 2009 22:13:36 -0700 (PDT) > From: kobolds > Subject: Re: [Gambas-user] showdialog / showmodal auto center > To: gambas-user at lists.sourceforge.net > Message-ID: <24122180.post at ...2204...> > Content-Type: text/plain; charset=UTF-8 > > > > > Beno?t Minisini wrote: > > > >> i found that when display a window using showdialog / showmodal , the > >> window show with auto center on screen. i don't want that , how do i > >> disable it. i try using the X and Y but no effect > > > > Why don't you want that? > > > > -- > > Beno?t > > > > ------------------------------------------------------------------------------ > > Crystal Reports - New Free Runtime and 30 Day Trial > > Check out the new simplified licensing option that enables unlimited > > royalty-free distribution of the report engine for externally facing > > server and web deployment. > > http://p.sf.net/sfu/businessobjects > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > why would I need that for . if I want to make it center , I can do it from > the code . > the current showmodal/show dialog not only auto center also prevent to > change the position from the code . > > anyone know how to solve this problem ? > > -- > View this message in context: http://www.nabble.com/showdialog---showmodal-auto-center-tp24105720p24122180.html > Sent from the gambas-user mailing list archive at Nabble..com. > > > > > ------------------------------ > > Message: 3 > Date: Sat, 20 Jun 2009 11:02:52 +0200 > From: Beno?t Minisini > Subject: Re: [Gambas-user] build 2027 failing > To: mailing list for gambas users > Message-ID: <200906201102.52552.gambas at ...1...> > Content-Type: Text/Plain; charset="iso-8859-1" > > > Thanks Benoit, Laurent. 32 bit (desktop) works now but... 64 bit > > (laptop) still won't build, Arch, gcc 4.4.0-3, #2030 now gives me: > > > > make[5]: Entering directory `/home/craig/gambas3/src/trunk/gb.qt4/src/ext' > > /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../../share > > -I../../src/share -pipe -Wall -fno-exceptions -Wno-unused-value > > -fsigned-char -fvisibility=hidden -g -Os -fno-omit-frame-pointer -MT > > CDial_moc.lo -MD -MP -MF .deps/CDial_moc.Tpo -c -o CDial_moc.lo > > CDial_moc.cpp > > 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../../share -I.../../src/share -pipe -Wall > > -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g > > -Os -fno-omit-frame-pointer -MT CDial_moc.lo -MD -MP -MF > > .deps/CDial_moc.Tpo -c CDial_moc.cpp -fPIC -DPIC -o .libs/CDial_moc.o > > CDial_moc.cpp:14:2: error: #error "This file was generated using the > > moc from 4.4.3. It" > > CDial_moc.cpp:15:2: error: #error "cannot be used with the include > > files from this version of Qt." > > CDial_moc.cpp:16:2: error: #error "(The moc has changed too much.)" > > make[5]: *** [CDial_moc.lo] Error 1 > > > > Do a "make clean" inside the gb.qt4 directory: apparently you have already > compiled Gambas and changed your version of qt 4 since. > > Regards, > > -- > Beno?t > > > > ------------------------------ > > Message: 4 > Date: Sat, 20 Jun 2009 12:28:05 +0200 > From: Ricardo D?az Mart?n > Subject: [Gambas-user] GTK TRISTATE CHECKBOX NO POSSIBLE TO SET TO > THREE DIFFERENTS STATES > To: mailing list for gambas users > Message-ID: <4A3CB9B5.7050301 at ...626...> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > Hi, > > The checkbox control in gtk is no possible to change to other states y > you select CheckBox.None as default value. There's all ok if you use the > same code with qt component. > > Somebody knows if is it a bug or a GTK limitation? > > To reproduce this, it isn't necessary to write code: only put a checkbox > in a empty form a run. > > I'm using gambas2 r.2028 in ubuntu 9.04x86_64 > > Regards, > Ricardo D?az > > > > ------------------------------ > > Message: 5 > Date: Sat, 20 Jun 2009 03:44:16 -0700 (PDT) > From: Swee Kwang Tan > Subject: [Gambas-user] Please help me!!! > To: gambas-user at lists.sourceforge.net > Message-ID: <714099.82128.qm at ...2203...> > Content-Type: text/plain; charset=utf-8 > > Dear Sir, > Gambas is good software, thank you for your working. > I've upgrade my system from ubuntu 8.04 to fedora 11, and get the latest > gambas2-2.13.1 from fedora repo. But my gambas program can't work normally, > although it can work noraml in ubuntu, the postgresql can't connect, because fedora > 11 repo have'nt gambas-db-postgresql-2.13.1-1.fc11 (i586). So it cause the following error message. > (InputKuaDef:2963): IBUS-WARNING **: Connect to unix:path=/tmp/ibus-program/ibus-unix-0 failed: Failed to connect to socket /tmp/ibus-program/ibus-unix-0: refuse > connection > (InputKuaDef:2963): Gdk-CRITICAL **: gdk_x11_atom_to_xatom_for_display: assertion `atom != GDK_NONE' failed > (InputKuaDef:2963): Gdk-CRITICAL **: gdk_x11_atom_to_xatom_for_display: assertion `atom != GDK_NONE' failed > The "InputKuaDef" is my program name. How can I do now ? > > > > > > ________________________________ > From: "gambas-user-request at lists.sourceforge.net" > To: gambas-user at lists.sourceforge.net > Sent: Friday, June 19, 2009 7:03:00 PM > Subject: Gambas-user Digest, Vol 37, Issue 27 > > Send Gambas-user mailing list submissions to > gambas-user at lists.sourceforge.net > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/gambas-user > or, via email, send a message with subject or body 'help' to > gambas-user-request at lists.sourceforge.net > > You can reach the person managing the list at > gambas-user-owner at lists.sourceforge.net > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Gambas-user digest..." > > > Today's Topics: > > 1. build 2027 failing (Zach Smith) > 2. Re: v4l - can not open device -solved (Steven James Drinnan) > 3. showdialog / showmodal auto center (kobolds) > 4. Re: gbr2 crash at different points (Andreas Fr?hlke) > 5.. Re: Database example (charlesg) > 6. Re: showdialog / showmodal auto center (Beno?t Minisini) > 7. Re: build 2027 failing (Beno?t Minisini) > 8. Re: v4l - can not open device -solved (Beno?t Minisini) > 9. Re: build 2026 failing (Beno?t Minisini) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Thu, 18 Jun 2009 19:37:44 -0500 > From: Zach Smith > Subject: [Gambas-user] build 2027 failing > To: gambas-user at lists.sourceforge.net > Message-ID: > > Content-Type: text/plain; charset=ISO-8859-1 > > gambas3, build 2027, x_64, arch > > I'm getting: > > make[4]: Entering directory `/home/craig/gambas3/src/trunk/gb.db.sqlite3/src' > /bin/sh ../libtool? --tag=CXX?? --mode=compile g++ -DHAVE_CONFIG_H -I. > -I..??? -pipe -Wall -fno-exceptions -Wno-unused-value -fsigned-char > -fvisibility=hidden -g -Os -fno-omit-frame-pointer -fexceptions? -MT > gb_db_sqlite3_la-main.lo -MD -MP -MF .deps/gb_db_sqlite3_la-main.Tpo > -c -o gb_db_sqlite3_la-main.lo `test -f 'main.cpp' || echo > './'`main.cpp > ?g++ -DHAVE_CONFIG_H -I. -I.. -pipe -Wall -fno-exceptions > -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os > -fno-omit-frame-pointer -fexceptions -MT gb_db_sqlite3_la-main..lo -MD > -MP -MF .deps/gb_db_sqlite3_la-main.Tpo -c main.cpp? -fPIC -DPIC -o > .libs/gb_db_sqlite3_la-main.o > main.cpp: In function 'int field_index(void*, const char*, DB_DATABASE*)': > main.cpp:1011: error: invalid conversion from 'const char*' to 'char*' > make[4]: *** [gb_db_sqlite3_la-main.lo] Error 1 > > > > ------------------------------ > > Message: 2 > Date: Fri, 19 Jun 2009 12:26:05 +0800 > From: Steven James Drinnan > Subject: Re: [Gambas-user] v4l - can not open device -solved > To: mailing list for gambas users > Message-ID: <1245385566.3344.3.camel at ...2011...> > Content-Type: text/plain; charset="UTF-8" > > Had another look, looks like /dev/video is no longer created in v4l so > the default now is /dev/video0. > > I know you did not make this component. But does need to be updated to > recognize v4l2 which is now the default in most major distributions. > > Many thanks for your patience. > > Steven > > On Fri, 2009-06-19 at 00:30 +0200, Beno?t Minisini wrote: > > > Have you have had a chance to check it out? > > > > > > > I have no webcam, nor any v4l device, and I didn't make the component, so it > > is hard for me to help you... > > > > Try to open the device with an OPEN "xxxx" FOR READ WRITE instruction to see > > if you get a more detailed error message. > > > > Regards, > > > > > > > ------------------------------ > > Message: 3 > Date: Thu, 18 Jun 2009 22:27:38 -0700 (PDT) > From: kobolds > Subject: [Gambas-user] showdialog / showmodal auto center > To: gambas-user at lists.sourceforge.net > Message-ID: <24105720.post at ...1379...> > Content-Type: text/plain; charset=us-ascii > > > i found that when display a window using showdialog / showmodal , the window > show with auto center on screen. i don't want that , how do i disable it. i > try using the X and Y but no effect > -- > View this message in context: http://www.nabble.com/showdialog---showmodal-auto-center-tp24105720p24105720.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > > > ------------------------------ > > Message: 4 > Date: Fri, 19 Jun 2009 09:23:54 +0200 > From: Andreas Fr?hlke > Subject: Re: [Gambas-user] gbr2 crash at different points > To: mailing list for gambas users > Message-ID: > <8D42310D957CFB46AA11921A711D4D160245AACFC4 at ...1899...> > Content-Type: text/plain; charset="iso-8859-1" > > Hello, > > just wanna know, do you get the mail? > > Regards > > Andreas Fr?hlke > > -----Urspr?ngliche Nachricht----- > Von: Beno?t Minisini [mailto:gambas at ...2205...] > Gesendet: Mittwoch, 17. Juni 2009 12:42 > An: mailing list for gambas users > Betreff: Re: [Gambas-user] gbr2 crash at different points > > > Hello, > > > > we used to send you an core dump created with gcore, but the admin of the > > mailinglist blocked it, because it is bigger than 256k. > > > > Regards > > > > A.Fr?hlke > > > > This is automatic - Every 500+ subscribers will receive your mail, so it can't > be big! Send the mail to my private e-mail (gambas at ...764...) > > Regards, > > -- > Beno?t > > ------------------------------------------------------------------------------ > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensing option that enables unlimited > royalty-free distribution of the report engine for externally facing > server and web deployment. > http://p.sf.net/sfu/businessobjects > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > ------------------------------ > > Message: 5 > Date: Fri, 19 Jun 2009 02:03:06 -0700 (PDT) > From: charlesg > Subject: Re: [Gambas-user] Database example > To: gambas-user at lists.sourceforge.net > Message-ID: <24107894.post at ...1379...> > Content-Type: text/plain; charset=us-ascii > > > Hi > > Thank you Ron for that. A bit more messing around and I think I now > understand it. > > Following on from richard terry's suggestion for simple examples, here it is > as simple as I can get it. There is nothing new here: it all comes from the > database example. Any corrections to the annotations welcome! > > You just need a gridview, a button called btnRun and a preferably large > database with lots of columns so that you can scroll around with ease > > '======================================================== > ' Gambas class file > PUBLIC $hConnLocl AS NEW Connection > PUBLIC $resData AS Result > '-------------------------------------------------------- > PUBLIC SUB Form_Open() > DIM sql AS String > > 'open the database > WITH $hConnLocl > .type = "mysql" > .host = "localhost" > .Name = "stock" > .login = "charles" > .password="dog" > END WITH > $hConnLocl.Open() > > 'create a result > sql = "SELECT * FROM grnLine" > $resData = $hConnLocl.Exec(sql) > END > '--------------------------------------------------------- > PUBLIC SUB btnRun_Click() > DIM hForm AS FRequest > DIM hField AS ResultField > DIM iInd AS Integer > > GridView1.Rows.count = 0 > 'set the required number of columns > GridView1.Columns.count = $resData.Fields.Count > > 'define the column headers and width > FOR EACH hField IN $resData.Fields > WITH hField > GridView1.Columns[iInd].text = .Name > GridView1.Columns[iInd].width = 60 > END WITH > INC iInd > NEXT > > 'create the empty rows. Each empty and visible cell created calls > GridView1_data > GridView1.Rows.Count = $resData.Count > END > '--------------------------------------------------------- > PUBLIC SUB GridView1_Data(Row AS Integer, Column AS Integer) > 'move to the required result row > $resData.MoveTo(row) > 'set the data for the cell in the GridView from the column in the selected > row of the result > GridView1.Data.text = Str($resData[GridView1.Columns[column].text]) > 'lets you see how _data is being called as you scroll around the GridView > PRINT row & ":" & column & ":" & > Str($resData[GridView1..Columns[column].text]) > END > '---------------------------------------------------------- > > I also created a second small form. As you move the second form around on > top of the gridview, the print command still shows the _Data frantically > working in the background. Clever things these computers! > > rgds > -- > View this message in context: http://www.nabble.com/Database-example-tp24021356p24107894.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > > > ------------------------------ > > Message: 6 > Date: Fri, 19 Jun 2009 12:52:59 +0200 > From: Beno?t Minisini > Subject: Re: [Gambas-user] showdialog / showmodal auto center > To: mailing list for gambas users > Message-ID: <200906191252.59641.gambas at ...1...> > Content-Type: Text/Plain; charset="iso-8859-1" > > > i found that when display a window using showdialog / showmodal , the > > window show with auto center on screen. i don't want that , how do i > > disable it.. i try using the X and Y but no effect > > Why don't you want that? > > -- > Beno?t > > > > ------------------------------ > > Message: 7 > Date: Fri, 19 Jun 2009 12:53:56 +0200 > From: Beno?t Minisini > Subject: Re: [Gambas-user] build 2027 failing > To: mailing list for gambas users > Message-ID: <200906191253.56345.gambas at ...1...> > Content-Type: Text/Plain; charset="iso-8859-1" > > > gambas3, build 2027, x_64, arch > > > > I'm getting: > > > > make[4]: Entering directory > > `/home/craig/gambas3/src/trunk/gb.db.sqlite3/src' /bin/sh ../libtool > > --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -pipe -Wall > > -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os > > -fno-omit-frame-pointer -fexceptions -MT gb_db_sqlite3_la-main.lo -MD -MP > > -MF ..deps/gb_db_sqlite3_la-main.Tpo -c -o gb_db_sqlite3_la-main.lo `test -f > > 'main.cpp' || echo > > './'`main.cpp > > g++ -DHAVE_CONFIG_H -I. -I.. -pipe -Wall -fno-exceptions > > -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os > > -fno-omit-frame-pointer -fexceptions -MT gb_db_sqlite3_la-main.lo -MD > > -MP -MF .deps/gb_db_sqlite3_la-main.Tpo -c main.cpp -fPIC -DPIC -o > > .libs/gb_db_sqlite3_la-main.o > > main.cpp: In function 'int field_index(void*, const char*, DB_DATABASE*)': > > main.cpp:1011: error: invalid conversion from 'const char*' to 'char*' > > make[4]: *** [gb_db_sqlite3_la-main.lo] Error 1 > > > > --------------------------------------------------------------------------- > >--- Crystal Reports - New Free Runtime and 30 Day Trial > > Check out the new simplified licensing option that enables unlimited > > royalty-free distribution of the report engine for externally facing > > server and web deployment. > > http://p.sf.net/sfu/businessobjects > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > Which distribution do you use? Which version of gcc? > > -- > Beno?t > > > > ------------------------------ > > Message: 8 > Date: Fri, 19 Jun 2009 12:55:57 +0200 > From: Beno?t Minisini > Subject: Re: [Gambas-user] v4l - can not open device -solved > To: mailing list for gambas users > Message-ID: <200906191255.57135.gambas at ...1...> > Content-Type: Text/Plain; charset="iso-8859-1" > > > Had another look, looks like /dev/video is no longer created in v4l so > > the default now is /dev/video0. > > > > I know you did not make this component. But does need to be updated to > > recognize v4l2 which is now the default in most major distributions. > > > > Many thanks for your patience. > > > > Steven > > > > gb.v4l uses v4l2 but only in the development version. > > Regards, > > -- > Beno?t > > > > ------------------------------ > > Message: 9 > Date: Fri, 19 Jun 2009 13:02:49 +0200 > From: Beno?t Minisini > Subject: Re: [Gambas-user] build 2026 failing > To: richard terry , mailing list for gambas > users > Message-ID: <200906191302.49657.gambas at ...1...> > Content-Type: Text/Plain; charset="utf-8" > > > On Fri, 19 Jun 2009 09:48:08 am Beno?t Minisini wrote: > > > > gambas3, build 2026, x_64, arch > > > > > > > > I'm getting: > > > > > > > > make[4]: Entering directory `/home/test/gambas3/src/trunk/main/gbx' > > > > gcc -DHAVE_CONFIG_H -I. -I.. -I../share -D_REENTRANT -I.../libltdl > > > > -I/usr/lib/libffi-3.0.8/include > > > > -DGAMBAS_PATH="\"/home/test/gambas3/pkg/usr/bin\"" -pipe -Wall > > > > -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -MT > > > > gbx3-gbx_debug.o -MD -MP -MF .deps/gbx3-gbx_debug.Tpo -c -o > > > > gbx3-gbx_debug.o `test -f 'gbx_debug.c' || echo './'`gbx_debug.c > > > > In file included from gbx_class..h:30, > > > > from gbx_exec.h:31, > > > > from gbx_debug.c:35: > > > > gbx_class_desc.h:105: error: duplicate member ?_reserved? > > > > gbx_class_desc.h:123: error: duplicate member ?_reserved? > > > > In file included from gbx_exec.h:38, > > > > from gbx_debug.c:35: > > > > gbx_variant.h: In function ?VARIANT_free?: > > > > gbx_variant.h:55: warning: dereferencing type-punned pointer will break > > > > strict-aliasing rules > > > > gbx_variant.h:55: warning: dereferencing type-punned pointer will break > > > > strict-aliasing rules > > > > gbx_variant.h:55: warning: dereferencing type-punned pointer will break > > > > strict-aliasing rules > > > > gbx_variant.h:55: warning: dereferencing type-punned pointer will break > > > > strict-aliasing rules > > > > gbx_variant.h: In function ?VARIANT_keep?: > > > > gbx_variant.h:63: warning: dereferencing type-punned pointer will break > > > > strict-aliasing rules > > > > gbx_variant.h:67: warning: dereferencing type-punned pointer will break > > > > strict-aliasing rules > > > > gbx_variant.h:67: warning: dereferencing type-punned pointer will break > > > > strict-aliasing rules > > > > gbx_variant.h: In function ?VARIANT_is_null?: > > > > gbx_variant.h:76: warning: dereferencing type-punned pointer will break > > > > strict-aliasing rules > > > > gbx_variant.h:79: warning: dereferencing type-punned pointer will break > > > > strict-aliasing rules > > > > gbx_variant.h: In function ?VARIANT_clear?: > > > > gbx_variant.h:90: warning: dereferencing type-punned pointer will break > > > > strict-aliasing rules > > > > make[4]: *** [gbx3-gbx_debug.o] Error 1 > > > > > > Fixed in revision #2027 ! > > > > CEditor.cpp: In function 'void CEDITOR_show_word(void*, void*)': > > CEditor.cpp:962: error: 'class GEditor' has no member named 'showWord' > > make[5]: *** [CEditor.lo] Error 1 > > make[5]: Leaving directory > > `/home/richard/gambas3-svn/src/trunk/gb.qt4/src/ext' > > make[4]: *** [all-recursive] Error 1 > > make[4]: Leaving directory `/home/richard/gambas3-svn/src/trunk/gb..qt4/src' > > make[3]: *** [all-recursive] Error 1 > > make[3]: Leaving directory `/home/richard/gambas3-svn/src/trunk/gb.qt4' > > make[2]: *** [all] Error 2 > > make[2]: Leaving directory `/home/richard/gambas3-svn/src/trunk/gb.qt4' > > make[1]: *** [all-recursive] Error 1 > > make[1]: Leaving directory `/home/richard/gambas3-svn/src/trunk' > > make: *** [all] Error 2 > > ==> ERROR: Build Failed. > > > > something not right on my machine in 2027 > > > > Fixed in revision #2028. Nothing is wrong on your machine, I just sometimes > break the development version inadvertently. > > Regards, > > -- > Beno?t > > > > ------------------------------ > > ------------------------------------------------------------------------------ > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensing option that enables unlimited > royalty-free distribution of the report engine for externally facing > server and web deployment.. > http://p.sf.net/sfu/businessobjects > > ------------------------------ > > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > End of Gambas-user Digest, Vol 37, Issue 27 > ******************************************* > > > _______________________________________ > ???????????? > http://cn.mail.yahoo.com > > ------------------------------ > > ------------------------------------------------------------------------------ > Are you an open source citizen? Join us for the Open Source Bridge conference! > Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250. > Need another reason to go? 24-hour hacker lounge. Register today! > http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org > > ------------------------------ > > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > End of Gambas-user Digest, Vol 37, Issue 29 > ******************************************* > > > _______________________________________ > ???????????? > http://cn.mail.yahoo.com > ------------------------------------------------------------------------------ > Are you an open source citizen? Join us for the Open Source Bridge conference! > Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250. > Need another reason to go? 24-hour hacker lounge. Register today! > http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From jshackney at ...626... Mon Jun 22 06:39:38 2009 From: jshackney at ...626... (Jason Hackney) Date: Mon, 22 Jun 2009 00:39:38 -0400 Subject: [Gambas-user] GridEditor Message-ID: <799be1690906212139we1bacc4mde65d65a997d8ff@...627...> I know I'm beating this up, but I am getting incredibly frustrated trying to figure out how this thing works. Gambas 2.12 / Ubuntu 8.10 The first image is with gb.qt & gb.qt.ext components enabled (gtk disabled). - I only see a partial toolbar and no grid displays. The second image is with gb.gtk & gb.gtk.ext components enabled (qt disabled). - I get a grid, but no toolbar. - Also, clicking on three different fields in the grid consecutively causes a signal 11. I switched from SQLite to MySQL and made a super-simple database with one table to try to poke my way through this but I seem to be struggling with the basics. Any help is greatly appreciated. I could further attach the code and dump the database if that would help. -------------- next part -------------- A non-text attachment was scrubbed... Name: gb.qt.png Type: image/png Size: 11001 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: gb.gtk.png Type: image/png Size: 21317 bytes Desc: not available URL: From rterry at ...1946... Mon Jun 22 07:03:44 2009 From: rterry at ...1946... (richard terry) Date: Mon, 22 Jun 2009 15:03:44 +1000 Subject: [Gambas-user] Null Object FSetEditor.CanSetBreakpoint error.1061 Message-ID: <200906221503.44205.rterry@...1946...> I've generated inadvertantly some sort of bug and cant load my project what happens was this. I inadvertantly did a global replace on a word, when I only had meant to click for the subroutine. 350+ replacements, so I closed the project and answered 'no' to save all files. when I went to re-load I get the error message about breakpoints and the project will not load. Help!!! Lots of work to do tonight. Regards richard -------------- next part -------------- A non-text attachment was scrubbed... Name: cant_load_project.png Type: image/png Size: 12972 bytes Desc: not available URL: From sktan007 at ...43... Mon Jun 22 08:20:41 2009 From: sktan007 at ...43... (Swee Kwang Tan) Date: Sun, 21 Jun 2009 23:20:41 -0700 (PDT) Subject: [Gambas-user] The lastest version gambas can't run in fedora 11 Message-ID: <286882.55985.qm@...2209...> Dear Sir, I've upgrade my system from ubuntu8.04 to fedora 11, after intall the gambas2-2.13.1, I found that my program can't run on the latest gambas version, because the gambas2-gb-db-postgresql is missing, my program can run in ubuntu 8.04 normally with the 2.8.2 version, I wish to download the missing package, but where is the package wed site ? Thank you.. _______________________________________ ???????????? http://cn.mail.yahoo.com From steven at ...2097... Mon Jun 22 09:12:05 2009 From: steven at ...2097... (Steven James Drinnan) Date: Mon, 22 Jun 2009 15:12:05 +0800 Subject: [Gambas-user] The lastest version gambas can't run in fedora 11 In-Reply-To: <286882.55985.qm@...2209...> References: <286882.55985.qm@...2209...> Message-ID: <1245654727.3354.0.camel@...2011...> I hope this helps. No need it is included in gamba2-gb-db. I have had a similar problem with the SDL component. if you are installing and have a dependency problem. Make sure that the above and all other required files are installed. Then run from a cmd prompt su rpm -ivh --nodeps 'the-name-of-your-rpm' if you like send me the program I can test further for you. Steven. On Sun, 2009-06-21 at 23:20 -0700, Swee Kwang Tan wrote: > Dear Sir, > I've upgrade my system from ubuntu8.04 to fedora 11, after intall the > gambas2-2.13.1, I found that my program can't run on the latest gambas > version, because the gambas2-gb-db-postgresql is missing, my program > can run in ubuntu 8.04 normally with the 2.8.2 version, I wish to > download the missing package, but where is the package wed site ? > Thank you.. > > _______________________________________ > ???????????? > http://cn.mail.yahoo.com > ------------------------------------------------------------------------------ > Are you an open source citizen? Join us for the Open Source Bridge conference! > Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250. > Need another reason to go? 24-hour hacker lounge. Register today! > http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From oceanosoftlapalma at ...626... Mon Jun 22 09:40:08 2009 From: oceanosoftlapalma at ...626... (=?ISO-8859-1?Q?Ricardo_D=EDaz_Mart=EDn?=) Date: Mon, 22 Jun 2009 09:40:08 +0200 Subject: [Gambas-user] GTK TRISTATE CHECKBOX NO POSSIBLE TO SET TO THREE DIFFERENTS STATES In-Reply-To: <200906212138.48429.gambas@...1...> References: <4A3CB9B5.7050301@...626...> <200906211736.20036.gambas@...1...> <200906212138.48429.gambas@...1...> Message-ID: Thank you, Beno?t 2009/6/21 Beno?t Minisini > > > Hi, > > > > > > The checkbox control in gtk is no possible to change to other states y > > > you select CheckBox.None as default value. There's all ok if you use > the > > > same code with qt component. > > > > > > Somebody knows if is it a bug or a GTK limitation? > > > > > > To reproduce this, it isn't necessary to write code: only put a > checkbox > > > in a empty form a run. > > > > > > I'm using gambas2 r.2028 in ubuntu 9.04x86_64 > > > > > > Regards, > > > Ricardo D?az > > > > I confirm it is a bug. > > ...that should be fixed in revision #2031 (for Gambas 2). > > Regards, > > -- > Beno?t > > > ------------------------------------------------------------------------------ > Are you an open source citizen? Join us for the Open Source Bridge > conference! > Portland, OR, June 17-19. Two days of sessions, one day of unconference: > $250. > Need another reason to go? 24-hour hacker lounge. Register today! > > http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From juergen.linder at ...17... Mon Jun 22 09:44:13 2009 From: juergen.linder at ...17... (juelin) Date: Mon, 22 Jun 2009 00:44:13 -0700 (PDT) Subject: [Gambas-user] graphic turn around Message-ID: <24142944.post@...1379...> hi, how can I turn a graphic turn around? for example 90? or 180? I have a RECT, for example X/Y=100,100 to 200/200 and would turn it 90? left or rigth kind reagrds -- View this message in context: http://www.nabble.com/graphic-turn-around-tp24142944p24142944.html Sent from the gambas-user mailing list archive at Nabble.com. From wdahn at ...1000... Mon Jun 22 10:16:29 2009 From: wdahn at ...1000... (Werner) Date: Mon, 22 Jun 2009 16:16:29 +0800 Subject: [Gambas-user] graphic turn around In-Reply-To: <24142944.post@...1379...> References: <24142944.post@...1379...> Message-ID: <4A3F3DDD.30705@...1000...> juelin wrote: > hi, > how can I turn a graphic turn around? > for example 90? or 180? > I have a RECT, for example X/Y=100,100 to 200/200 and would turn it 90? left > or rigth > > kind reagrds > If it can be converted to an image you can then use gb.image. http://gambasdoc.org/help/comp/gb.image/image To rotate it: http://gambasdoc.org/help/comp/gb.qt/image/rotate Regards Werner From Karl.Reinl at ...9... Mon Jun 22 10:19:44 2009 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Mon, 22 Jun 2009 10:19:44 +0200 Subject: [Gambas-user] Null Object FSetEditor.CanSetBreakpoint error.1061 In-Reply-To: <200906221503.44205.rterry@...1946...> References: <200906221503.44205.rterry@...1946...> Message-ID: <1245658784.6380.3.camel@...40...> Am Montag, den 22.06.2009, 15:03 +1000 schrieb richard terry: > breakpoints in your project you will find the file '.settings' There unter [Breakpoints] Breakpoint[1]="DBTableView.201" Count=1 you can erase all breakpoints -- Amicalment Charlie From smiefert at ...784... Mon Jun 22 10:51:40 2009 From: smiefert at ...784... (Stefan Miefert) Date: Mon, 22 Jun 2009 10:51:40 +0200 Subject: [Gambas-user] Hoem Path and username? Message-ID: <8D42310D957CFB46AA11921A711D4D160245AACFE4@...1899...> How I can get the actual user home path and the actual username? I see a example like this System.home but this doesn't work in my gambas From jscops at ...11... Mon Jun 22 11:04:52 2009 From: jscops at ...11... (Jack) Date: Mon, 22 Jun 2009 11:04:52 +0200 Subject: [Gambas-user] Hoem Path and username? In-Reply-To: <8D42310D957CFB46AA11921A711D4D160245AACFE4@...1899...> References: <8D42310D957CFB46AA11921A711D4D160245AACFE4@...1899...> Message-ID: <4A3F4934.9060904@...11...> Stefan Miefert a ?crit : > How I can get the actual user home path and the actual username? > > I see a example like this > > System.home but this doesn't work in my gambas In Gambas2 it is user.home From gambas at ...1... Mon Jun 22 12:36:09 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Mon, 22 Jun 2009 12:36:09 +0200 Subject: [Gambas-user] GridEditor In-Reply-To: <799be1690906212139we1bacc4mde65d65a997d8ff@...627...> References: <799be1690906212139we1bacc4mde65d65a997d8ff@...627...> Message-ID: <200906221236.09986.gambas@...1...> > I know I'm beating this up, but I am getting incredibly frustrated trying > to figure out how this thing works. > > Gambas 2.12 / Ubuntu 8.10 > > The first image is with gb.qt & gb.qt.ext components enabled (gtk > disabled). - I only see a partial toolbar and no grid displays. > > The second image is with gb.gtk & gb.gtk.ext components enabled (qt > disabled). > - I get a grid, but no toolbar. > - Also, clicking on three different fields in the grid consecutively > causes a signal 11. > > I switched from SQLite to MySQL and made a super-simple database with one > table to try to poke my way through this but I seem to be struggling with > the basics. Any help is greatly appreciated. > > I could further attach the code and dump the database if that would help. Yes, please provide your project source code and a sql dump of a piece of your database, so that I can reproduce the problems. If it is too big (> 256K), send it to my private e-mail, not the mailing-list. Regards, -- Beno?t From gambas at ...1... Mon Jun 22 12:58:17 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 22 Jun 2009 12:58:17 +0200 Subject: [Gambas-user] The lastest version gambas can't run in fedora 11 In-Reply-To: <1245654727.3354.0.camel@...2011...> References: <286882.55985.qm@...2209...> <1245654727.3354.0.camel@...2011...> Message-ID: <200906221258.18020.gambas@...1...> > I hope this helps. > > No need it is included in gamba2-gb-db. I have had a similar problem > with the SDL component. > > if you are installing and have a dependency problem. Make sure that the > above and all other required files are installed. > > Then run from a cmd prompt > > su > > rpm -ivh --nodeps 'the-name-of-your-rpm' > > if you like send me the program I can test further for you. > > Steven. > > On Sun, 2009-06-21 at 23:20 -0700, Swee Kwang Tan wrote: > > Dear Sir, > > I've upgrade my system from ubuntu8.04 to fedora 11, after intall the > > gambas2-2.13.1, I found that my program can't run on the latest gambas > > version, because the gambas2-gb-db-postgresql is missing, my program > > can run in ubuntu 8.04 normally with the 2.8.2 version, I wish to > > download the missing package, but where is the package wed site ? > > Thank you.. > > > > _______________________________________ > > ???????????? > > http://cn.mail.yahoo.com > > ------------------------------------------------------------------------- > >----- Are you an open source citizen? Join us for the Open Source Bridge > > conference! Portland, OR, June 17-19. Two days of sessions, one day of > > unconference: $250. Need another reason to go? 24-hour hacker lounge. > > Register today! > > http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridg > >e.org _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > Aaaargh... Some @*!# Fedora packagers broke the packages by not following the specifications. The gb-sdl-sound package was put inside gb-sql (no idea why), and all database drivers were put in the gb-db package. Very good idea. This way, if you need *one* database client, you are required to install *all* of them... I will update the specification with an explicit list of the packages that must be made. Apprently it was not clear enough. And it would be great if people can help me to check the packaging of each distribution with that list, and report them when something is not correct. Regards, -- Beno?t From gambas at ...1... Mon Jun 22 13:20:37 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Mon, 22 Jun 2009 13:20:37 +0200 Subject: [Gambas-user] Welcome to QT4! Message-ID: <200906221320.37971.gambas@...1...> Hi, Since the last revision of the development version, I think that now gb.qt4 is stable enough to replace gb.qt. So I invite everyone using the development version to switch from gb.qt to gb.qt4 in their project, and to report any problem or regression they get. In the future, gb.qt will be "deprecated". It will be renamed "gb.qt3", and "gb.qt4" will become "gb.qt". Regards, -- Beno?t From rterry at ...1946... Mon Jun 22 13:42:17 2009 From: rterry at ...1946... (richard terry) Date: Mon, 22 Jun 2009 21:42:17 +1000 Subject: [Gambas-user] Welcome to QT4! In-Reply-To: <200906221320.37971.gambas@...1...> References: <200906221320.37971.gambas@...1...> Message-ID: <200906222142.17774.rterry@...1946...> On Mon, 22 Jun 2009 09:20:37 pm Beno?t Minisini wrote: > Hi, > > Since the last revision of the development version, I think that now gb.qt4 > is stable enough to replace gb.qt. > > So I invite everyone using the development version to switch from gb.qt to > gb.qt4 in their project, and to report any problem or regression they get. > > In the future, gb.qt will be "deprecated". It will be renamed "gb.qt3", and > "gb.qt4" will become "gb.qt". > > Regards, Is the change going to be painful? what does one do? Richard From gambas at ...1... Mon Jun 22 13:45:44 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Mon, 22 Jun 2009 13:45:44 +0200 Subject: [Gambas-user] Help creating user control In-Reply-To: <24127891.post@...1379...> References: <24127891.post@...1379...> Message-ID: <200906221345.44591.gambas@...1...> > I read how to create user control from this link > http://www.gambasdoc.org/help/dev/gambas > > but I still having some problem to get it work . > I want to create a custom control button . > - FButtonEX (form) > - ButtonEX (class) > > on the form (FButtonEX) , I drag and drop a button . > > ----------------------------------------------- > on source FButtonEx.class > > public sub _new(optional bFile as boolean) > end sub > > > ---------------------------------------------- > on source ButtonEx.class > > INHERITS userControl > export > > private frmButton as FButtonEx > > public sub _new() > frmButton = new FButtonEx(false, me) as "frmButton" > object.attach(frmButton, me, "frmButton") > end sub > > ------------------------------------------------------ > I also put buttonex.png in the control folder > > in project property I make sure on option tabs "this project is component > is YES and on provide tabs ButtonEX type=control group=dialog > > > compile and make . > > > I create another project and on toolkits dialog tabs, anew icon show up > call buttonex . I click and drag it into the form . what it show only a > rectangle with nothing in it . a button that suppose to be there not show > up . but when I run this project the button show up . > > > so how do i make the button show up on the ide ? > > if I missing anything please let me know . the wiki how-to help not very > helpful . this is my first time try to create custom user control . 1) The IDE cannot draw controls outside of gb.gui, gb.form and gb.form.mdi. Instead it draws a frame with the control icon and the icon name - Like what is done with the DrawingArea control. 2) If you don't see that, then there is a bug in your component. Please provide your source code, and I will tell you what is wrong. Regards, -- Beno?t From gambas at ...1... Mon Jun 22 13:46:41 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Mon, 22 Jun 2009 13:46:41 +0200 Subject: [Gambas-user] Welcome to QT4! In-Reply-To: <200906222142.17774.rterry@...1946...> References: <200906221320.37971.gambas@...1...> <200906222142.17774.rterry@...1946...> Message-ID: <200906221346.42024.gambas@...1...> > On Mon, 22 Jun 2009 09:20:37 pm Beno?t Minisini wrote: > > Hi, > > > > Since the last revision of the development version, I think that now > > gb.qt4 is stable enough to replace gb.qt. > > > > So I invite everyone using the development version to switch from gb.qt > > to gb.qt4 in their project, and to report any problem or regression they > > get. > > > > In the future, gb.qt will be "deprecated". It will be renamed "gb.qt3", > > and "gb.qt4" will become "gb.qt". > > > > Regards, > > Is the change going to be painful? what does one do? > > Richard > Normally, no. gb.qt4 must behave almost exactly the same as gb.qt, otherwise it is a bug. -- Beno?t From rterry at ...1946... Mon Jun 22 13:55:55 2009 From: rterry at ...1946... (richard terry) Date: Mon, 22 Jun 2009 21:55:55 +1000 Subject: [Gambas-user] Welcome to QT4! In-Reply-To: <200906221346.42024.gambas@...1...> References: <200906221320.37971.gambas@...1...> <200906222142.17774.rterry@...1946...> <200906221346.42024.gambas@...1...> Message-ID: <200906222155.55474.rterry@...1946...> On Mon, 22 Jun 2009 09:46:41 pm you wrote: > > On Mon, 22 Jun 2009 09:20:37 pm Beno?t Minisini wrote: > > > Hi, > > > > > > Since the last revision of the development version, I think that now > > > gb.qt4 is stable enough to replace gb.qt. > > > > > > So I invite everyone using the development version to switch from gb.qt > > > to gb.qt4 in their project, and to report any problem or regression > > > they get. > > > > > > In the future, gb.qt will be "deprecated". It will be renamed "gb.qt3", > > > and "gb.qt4" will become "gb.qt". > > > > > > Regards, > > > > Is the change going to be painful? what does one do? > > > > Richard > > Normally, no. gb.qt4 must behave almost exactly the same as gb.qt, > otherwise it is a bug. I had version 2033 and just tried to upgrade but it says gb.qt.kde needs gb.qt. does this mean I have to upgrade my KdE to kde4.3 to get the benefit? also is the kde.html available, and will the qt4 help system be there? From smiefert at ...784... Mon Jun 22 13:59:52 2009 From: smiefert at ...784... (Stefan Miefert) Date: Mon, 22 Jun 2009 13:59:52 +0200 Subject: [Gambas-user] Exec / Sehll and openoffice Message-ID: <8D42310D957CFB46AA11921A711D4D160245AACFF2@...1899...> > Hello, > > i try in gambas to start openoffice and load a csv file like this > openoffice path/myfile.csv in this command EXEC["openoffice"," path/myfile.csv "] I see openoffice start and at the same time it will clsoe.:( When I enter the command direct in the console everything is ok. What I must do to start the programm ?! Thanks! From oceanosoftlapalma at ...626... Mon Jun 22 14:10:36 2009 From: oceanosoftlapalma at ...626... (=?ISO-8859-1?Q?Ricardo_D=EDaz_Mart=EDn?=) Date: Mon, 22 Jun 2009 14:10:36 +0200 Subject: [Gambas-user] Welcome to QT4! In-Reply-To: <200906221320.37971.gambas@...1...> References: <200906221320.37971.gambas@...1...> Message-ID: For both gambas2 and gamasb3? 2009/6/22 Beno?t Minisini > Hi, > > Since the last revision of the development version, I think that now gb.qt4 > is > stable enough to replace gb.qt. > > So I invite everyone using the development version to switch from gb.qt to > gb.qt4 in their project, and to report any problem or regression they get. > > In the future, gb.qt will be "deprecated". It will be renamed "gb.qt3", and > "gb.qt4" will become "gb.qt". > > Regards, > > -- > Beno?t > > > ------------------------------------------------------------------------------ > Are you an open source citizen? Join us for the Open Source Bridge > conference! > Portland, OR, June 17-19. Two days of sessions, one day of unconference: > $250. > Need another reason to go? 24-hour hacker lounge. Register today! > > http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From doriano.blengino at ...1909... Mon Jun 22 15:10:15 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Mon, 22 Jun 2009 15:10:15 +0200 Subject: [Gambas-user] Exec / Sehll and openoffice In-Reply-To: <8D42310D957CFB46AA11921A711D4D160245AACFF2@...1899...> References: <8D42310D957CFB46AA11921A711D4D160245AACFF2@...1899...> Message-ID: <4A3F82B7.1020601@...1909...> Stefan Miefert ha scritto: >> Hello, >> >> i try in gambas to start openoffice and load a csv file like this >> >> > openoffice path/myfile.csv > > in this command > EXEC["openoffice"," path/myfile.csv "] > > I see openoffice start and at the same time it will clsoe.:( > > When I enter the command direct in the console everything is ok. > > What I must do to start the programm ?! > "What must I do to *not* stop the program?" :-) You must put a WAIT just after the close bracket EXEC ["openoffice"," path/myfile.csv "] WAIT otherwise you launch the program but, as soon it starts, you close it. Regards, Doriano From sktan007 at ...43... Mon Jun 22 15:13:40 2009 From: sktan007 at ...43... (Swee Kwang Tan) Date: Mon, 22 Jun 2009 06:13:40 -0700 (PDT) Subject: [Gambas-user] Gambas-user Digest, Vol 37, Issue 29 In-Reply-To: References: Message-ID: <959598.32394.qm@...2213...> Dear Sir, Thank you for your reply, after execute the line rpm -ivh you've teach me , fedora 11 said"no such file or directory" The following is the simplify program PRIVATE $res AS Result PRIVATE $Con AS NEW Connection PRIVATE SUB OpenDataBase() $Con.Close() $Con.Type = "postgresql" $Con.Host = "localhost" $Con.Login = "fate" $Con.Port = "5432" $Con.Name = "mydb" $Con.Password = "zAp73)(#" $Con.Open() ' Open the connection $res = $Con.exec("select * from myTable;") END This program is just a input data form, after click execute button, there is no error message, and no input form shown. if the last 2 line $con.open() $res = $con.exec("select * from myTable;") are not execute, then you will have two error message, like following (InputDef:3256): Gdk-CRITICAL **: gdk_x11_atom_to_xatom_for_display: assertion `atom != GDK_NONE' failed (InputDef:3256): Gdk-CRITICAL **: gdk_x11_atom_to_xatom_for_display: assertion `atom != GDK_NONE' failed but the input form will be show out. ________________________________ From: "gambas-user-request at lists.sourceforge.net" To: gambas-user at lists.sourceforge.net Sent: Saturday, June 20, 2009 6:44:21 PM Subject: Gambas-user Digest, Vol 37, Issue 29 Send Gambas-user mailing list submissions to gambas-user at lists.sourceforge.net To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/gambas-user or, via email, send a message with subject or body 'help' to gambas-user-request at lists.sourceforge.net You can reach the person managing the list at gambas-user-owner at lists.sourceforge.net When replying, please edit your Subject line so it is more specific than "Re: Contents of Gambas-user digest..." Today's Topics: 1. Re: build 2027 failing (Zach Smith) 2. Re: showdialog / showmodal auto center (kobolds) 3. Re: build 2027 failing (Beno?t Minisini) 4. GTK TRISTATE CHECKBOX NO POSSIBLE TO SET TO THREE DIFFERENTS STATES (Ricardo D?az Mart?n) 5. Please help me!!! (Swee Kwang Tan) ---------------------------------------------------------------------- Message: 1 Date: Fri, 19 Jun 2009 19:29:09 -0500 From: Zach Smith Subject: Re: [Gambas-user] build 2027 failing To: mailing list for gambas users Message-ID: Content-Type: text/plain; charset=ISO-8859-1 Thanks Benoit, Laurent. 32 bit (desktop) works now but... 64 bit (laptop) still won't build, Arch, gcc 4.4.0-3, #2030 now gives me: make[5]: Entering directory `/home/craig/gambas3/src/trunk/gb.qt4/src/ext' /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../../share -I../../src/share -pipe -Wall -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -fno-omit-frame-pointer -MT CDial_moc.lo -MD -MP -MF .deps/CDial_moc.Tpo -c -o CDial_moc.lo CDial_moc.cpp 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../../share -I../../src/share -pipe -Wall -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -fno-omit-frame-pointer -MT CDial_moc.lo -MD -MP -MF .deps/CDial_moc.Tpo -c CDial_moc.cpp -fPIC -DPIC -o .libs/CDial_moc.o CDial_moc.cpp:14:2: error: #error "This file was generated using the moc from 4.4.3. It" CDial_moc.cpp:15:2: error: #error "cannot be used with the include files from this version of Qt." CDial_moc.cpp:16:2: error: #error "(The moc has changed too much.)" make[5]: *** [CDial_moc.lo] Error 1 ------------------------------ Message: 2 Date: Fri, 19 Jun 2009 22:13:36 -0700 (PDT) From: kobolds Subject: Re: [Gambas-user] showdialog / showmodal auto center To: gambas-user at lists.sourceforge.net Message-ID: <24122180.post at ...1379...> Content-Type: text/plain; charset=UTF-8 Beno?t Minisini wrote: > >> i found that when display a window using showdialog / showmodal , the >> window show with auto center on screen. i don't want that , how do i >> disable it. i try using the X and Y but no effect > > Why don't you want that? > > -- > Beno?t > > ------------------------------------------------------------------------------ > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensing option that enables unlimited > royalty-free distribution of the report engine for externally facing > server and web deployment. > http://p.sf.net/sfu/businessobjects > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > why would I need that for . if I want to make it center , I can do it from the code . the current showmodal/show dialog not only auto center also prevent to change the position from the code . anyone know how to solve this problem ? -- View this message in context: http://www.nabble.com/showdialog---showmodal-auto-center-tp24105720p24122180.html Sent from the gambas-user mailing list archive at Nabble.com. ------------------------------ Message: 3 Date: Sat, 20 Jun 2009 11:02:52 +0200 From: Beno?t Minisini Subject: Re: [Gambas-user] build 2027 failing To: mailing list for gambas users Message-ID: <200906201102.52552.gambas at ...1...> Content-Type: Text/Plain; charset="iso-8859-1" > Thanks Benoit, Laurent. 32 bit (desktop) works now but... 64 bit > (laptop) still won't build, Arch, gcc 4.4.0-3, #2030 now gives me: > > make[5]: Entering directory `/home/craig/gambas3/src/trunk/gb.qt4/src/ext' > /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../../share > -I../../src/share -pipe -Wall -fno-exceptions -Wno-unused-value > -fsigned-char -fvisibility=hidden -g -Os -fno-omit-frame-pointer -MT > CDial_moc.lo -MD -MP -MF .deps/CDial_moc.Tpo -c -o CDial_moc.lo > CDial_moc.cpp > 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../../share -I../../src/share -pipe -Wall > -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g > -Os -fno-omit-frame-pointer -MT CDial_moc.lo -MD -MP -MF > .deps/CDial_moc.Tpo -c CDial_moc.cpp -fPIC -DPIC -o .libs/CDial_moc.o > CDial_moc.cpp:14:2: error: #error "This file was generated using the > moc from 4.4.3.. It" > CDial_moc.cpp:15:2: error: #error "cannot be used with the include > files from this version of Qt." > CDial_moc.cpp:16:2: error: #error "(The moc has changed too much.)" > make[5]: *** [CDial_moc.lo] Error 1 > Do a "make clean" inside the gb.qt4 directory: apparently you have already compiled Gambas and changed your version of qt 4 since. Regards, -- Beno?t ------------------------------ Message: 4 Date: Sat, 20 Jun 2009 12:28:05 +0200 From: Ricardo D?az Mart?n Subject: [Gambas-user] GTK TRISTATE CHECKBOX NO POSSIBLE TO SET TO THREE DIFFERENTS STATES To: mailing list for gambas users Message-ID: <4A3CB9B5.7050301 at ...626...> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Hi, The checkbox control in gtk is no possible to change to other states y you select CheckBox.None as default value. There's all ok if you use the same code with qt component. Somebody knows if is it a bug or a GTK limitation? To reproduce this, it isn't necessary to write code: only put a checkbox in a empty form a run. I'm using gambas2 r.2028 in ubuntu 9.04x86_64 Regards, Ricardo D?az ------------------------------ Message: 5 Date: Sat, 20 Jun 2009 03:44:16 -0700 (PDT) From: Swee Kwang Tan Subject: [Gambas-user] Please help me!!! To: gambas-user at lists.sourceforge.net Message-ID: <714099.82128.qm at ...2203...> Content-Type: text/plain; charset=utf-8 Dear Sir, Gambas is good software, thank you for your working. I've upgrade my system from ubuntu 8.04 to fedora 11, and get the latest gambas2-2.13.1 from fedora repo. But my gambas program can't work normally, although it can work noraml in ubuntu, the postgresql can't connect, because fedora 11 repo have'nt gambas-db-postgresql-2.13.1-1.fc11 (i586). So it cause the following error message. (InputKuaDef:2963): IBUS-WARNING **: Connect to unix:path=/tmp/ibus-program/ibus-unix-0 failed: Failed to connect to socket /tmp/ibus-program/ibus-unix-0: refuse connection (InputKuaDef:2963): Gdk-CRITICAL **: gdk_x11_atom_to_xatom_for_display: assertion `atom != GDK_NONE' failed (InputKuaDef:2963): Gdk-CRITICAL **: gdk_x11_atom_to_xatom_for_display: assertion `atom != GDK_NONE' failed The "InputKuaDef" is my program name. How can I do now ? ________________________________ From: "gambas-user-request at lists.sourceforge.net" To: gambas-user at lists.sourceforge.net Sent: Friday, June 19, 2009 7:03:00 PM Subject: Gambas-user Digest, Vol 37, Issue 27 Send Gambas-user mailing list submissions to gambas-user at lists.sourceforge.net To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/gambas-user or, via email, send a message with subject or body 'help' to gambas-user-request at lists.sourceforge.net You can reach the person managing the list at gambas-user-owner at lists.sourceforge.net When replying, please edit your Subject line so it is more specific than "Re: Contents of Gambas-user digest..." Today's Topics: 1. build 2027 failing (Zach Smith) 2. Re: v4l - can not open device -solved (Steven James Drinnan) 3. showdialog / showmodal auto center (kobolds) 4. Re: gbr2 crash at different points (Andreas Fr?hlke) 5.. Re: Database example (charlesg) 6. Re: showdialog / showmodal auto center (Beno?t Minisini) 7. Re: build 2027 failing (Beno?t Minisini) 8. Re: v4l - can not open device -solved (Beno?t Minisini) 9. Re: build 2026 failing (Beno?t Minisini) ---------------------------------------------------------------------- Message: 1 Date: Thu, 18 Jun 2009 19:37:44 -0500 From: Zach Smith Subject: [Gambas-user] build 2027 failing To: gambas-user at lists.sourceforge.net Message-ID: Content-Type: text/plain; charset=ISO-8859-1 gambas3, build 2027, x_64, arch I'm getting: make[4]: Entering directory `/home/craig/gambas3/src/trunk/gb.db.sqlite3/src' /bin/sh ../libtool? --tag=CXX?? --mode=compile g++ -DHAVE_CONFIG_H -I. -I..??? -pipe -Wall -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -fno-omit-frame-pointer -fexceptions? -MT gb_db_sqlite3_la-main.lo -MD -MP -MF .deps/gb_db_sqlite3_la-main.Tpo -c -o gb_db_sqlite3_la-main.lo `test -f 'main.cpp' || echo './'`main.cpp ?g++ -DHAVE_CONFIG_H -I. -I.. -pipe -Wall -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -fno-omit-frame-pointer -fexceptions -MT gb_db_sqlite3_la-main..lo -MD -MP -MF .deps/gb_db_sqlite3_la-main.Tpo -c main.cpp? -fPIC -DPIC -o .libs/gb_db_sqlite3_la-main.o main.cpp: In function 'int field_index(void*, const char*, DB_DATABASE*)': main.cpp:1011: error: invalid conversion from 'const char*' to 'char*' make[4]: *** [gb_db_sqlite3_la-main.lo] Error 1 ------------------------------ Message: 2 Date: Fri, 19 Jun 2009 12:26:05 +0800 From: Steven James Drinnan Subject: Re: [Gambas-user] v4l - can not open device -solved To: mailing list for gambas users Message-ID: <1245385566.3344.3.camel at ...2011...> Content-Type: text/plain; charset="UTF-8" Had another look, looks like /dev/video is no longer created in v4l so the default now is /dev/video0. I know you did not make this component. But does need to be updated to recognize v4l2 which is now the default in most major distributions. Many thanks for your patience. Steven On Fri, 2009-06-19 at 00:30 +0200, Beno?t Minisini wrote: > > Have you have had a chance to check it out? > > > > I have no webcam, nor any v4l device, and I didn't make the component, so it > is hard for me to help you... > > Try to open the device with an OPEN "xxxx" FOR READ WRITE instruction to see > if you get a more detailed error message. > > Regards, > ------------------------------ Message: 3 Date: Thu, 18 Jun 2009 22:27:38 -0700 (PDT) From: kobolds Subject: [Gambas-user] showdialog / showmodal auto center To: gambas-user at lists.sourceforge.net Message-ID: <24105720.post at ...2211...> Content-Type: text/plain; charset=us-ascii i found that when display a window using showdialog / showmodal , the window show with auto center on screen. i don't want that , how do i disable it. i try using the X and Y but no effect -- View this message in context: http://www.nabble.com/showdialog---showmodal-auto-center-tp24105720p24105720.html Sent from the gambas-user mailing list archive at Nabble.com. ------------------------------ Message: 4 Date: Fri, 19 Jun 2009 09:23:54 +0200 From: Andreas Fr?hlke Subject: Re: [Gambas-user] gbr2 crash at different points To: mailing list for gambas users Message-ID: <8D42310D957CFB46AA11921A711D4D160245AACFC4 at ...1899...> Content-Type: text/plain; charset="iso-8859-1" Hello, just wanna know, do you get the mail? Regards Andreas Fr?hlke -----Urspr?ngliche Nachricht----- Von: Beno?t Minisini [mailto:gambas at ...1...] Gesendet: Mittwoch, 17. Juni 2009 12:42 An: mailing list for gambas users Betreff: Re: [Gambas-user] gbr2 crash at different points > Hello, > > we used to send you an core dump created with gcore, but the admin of the > mailinglist blocked it, because it is bigger than 256k. > > Regards > > A.Fr?hlke > This is automatic - Every 500+ subscribers will receive your mail, so it can't be big! Send the mail to my private e-mail (gambas at ...764...) Regards, -- Beno?t ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment.. http://p.sf.net/sfu/businessobjects _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user ------------------------------ Message: 5 Date: Fri, 19 Jun 2009 02:03:06 -0700 (PDT) From: charlesg Subject: Re: [Gambas-user] Database example To: gambas-user at lists.sourceforge.net Message-ID: <24107894.post at ...1379...> Content-Type: text/plain; charset=us-ascii Hi Thank you Ron for that. A bit more messing around and I think I now understand it. Following on from richard terry's suggestion for simple examples, here it is as simple as I can get it. There is nothing new here: it all comes from the database example. Any corrections to the annotations welcome! You just need a gridview, a button called btnRun and a preferably large database with lots of columns so that you can scroll around with ease '======================================================== ' Gambas class file PUBLIC $hConnLocl AS NEW Connection PUBLIC $resData AS Result '-------------------------------------------------------- PUBLIC SUB Form_Open() DIM sql AS String 'open the database WITH $hConnLocl .type = "mysql" .host = "localhost" .Name = "stock" .login = "charles" .password="dog" END WITH $hConnLocl.Open() 'create a result sql = "SELECT * FROM grnLine" $resData = $hConnLocl.Exec(sql) END '--------------------------------------------------------- PUBLIC SUB btnRun_Click() DIM hForm AS FRequest DIM hField AS ResultField DIM iInd AS Integer GridView1.Rows.count = 0 'set the required number of columns GridView1.Columns.count = $resData.Fields.Count 'define the column headers and width FOR EACH hField IN $resData..Fields WITH hField GridView1.Columns[iInd].text = .Name GridView1.Columns[iInd].width = 60 END WITH INC iInd NEXT 'create the empty rows. Each empty and visible cell created calls GridView1_data GridView1.Rows.Count = $resData.Count END '--------------------------------------------------------- PUBLIC SUB GridView1_Data(Row AS Integer, Column AS Integer) 'move to the required result row $resData.MoveTo(row) 'set the data for the cell in the GridView from the column in the selected row of the result GridView1..Data.text = Str($resData[GridView1.Columns[column].text]) 'lets you see how _data is being called as you scroll around the GridView PRINT row & ":" & column & ":" & Str($resData[GridView1..Columns[column].text]) END '---------------------------------------------------------- I also created a second small form. As you move the second form around on top of the gridview, the print command still shows the _Data frantically working in the background. Clever things these computers! rgds -- View this message in context: http://www.nabble.com/Database-example-tp24021356p24107894.html Sent from the gambas-user mailing list archive at Nabble.com. ------------------------------ Message: 6 Date: Fri, 19 Jun 2009 12:52:59 +0200 From: Beno?t Minisini Subject: Re: [Gambas-user] showdialog / showmodal auto center To: mailing list for gambas users Message-ID: <200906191252.59641.gambas at ...1...> Content-Type: Text/Plain; charset="iso-8859-1" > i found that when display a window using showdialog / showmodal , the > window show with auto center on screen. i don't want that , how do i > disable it. i try using the X and Y but no effect Why don't you want that? -- Beno?t ------------------------------ Message: 7 Date: Fri, 19 Jun 2009 12:53:56 +0200 From: Beno?t Minisini Subject: Re: [Gambas-user] build 2027 failing To: mailing list for gambas users Message-ID: <200906191253.56345.gambas at ...1...> Content-Type: Text/Plain; charset="iso-8859-1" > gambas3, build 2027, x_64, arch > > I'm getting: > > make[4]: Entering directory > `/home/craig/gambas3/src/trunk/gb.db.sqlite3/src' /bin/sh ../libtool > --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -pipe -Wall > -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os > -fno-omit-frame-pointer -fexceptions -MT gb_db_sqlite3_la-main.lo -MD -MP > -MF ..deps/gb_db_sqlite3_la-main.Tpo -c -o gb_db_sqlite3_la-main.lo `test -f > 'main.cpp' || echo > './'`main.cpp > g++ -DHAVE_CONFIG_H -I. -I.. -pipe -Wall -fno-exceptions > -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os > -fno-omit-frame-pointer -fexceptions -MT gb_db_sqlite3_la-main.lo -MD > -MP -MF .deps/gb_db_sqlite3_la-main.Tpo -c main.cpp -fPIC -DPIC -o > .libs/gb_db_sqlite3_la-main.o > main.cpp: In function 'int field_index(void*, const char*, DB_DATABASE*)': > main.cpp:1011: error: invalid conversion from 'const char*' to 'char*' > make[4]: *** [gb_db_sqlite3_la-main.lo] Error 1 > > --------------------------------------------------------------------------- >--- Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensing option that enables unlimited > royalty-free distribution of the report engine for externally facing > server and web deployment. > http://p.sf.net/sfu/businessobjects > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user Which distribution do you use? Which version of gcc? -- Beno?t ------------------------------ Message: 8 Date: Fri, 19 Jun 2009 12:55:57 +0200 From: Beno?t Minisini Subject: Re: [Gambas-user] v4l - can not open device -solved To: mailing list for gambas users Message-ID: <200906191255.57135.gambas at ...1...> Content-Type: Text/Plain; charset="iso-8859-1" > Had another look, looks like /dev/video is no longer created in v4l so > the default now is /dev/video0. > > I know you did not make this component. But does need to be updated to > recognize v4l2 which is now the default in most major distributions. > > Many thanks for your patience. > > Steven > gb.v4l uses v4l2 but only in the development version. Regards, -- Beno?t ------------------------------ Message: 9 Date: Fri, 19 Jun 2009 13:02:49 +0200 From: Beno?t Minisini Subject: Re: [Gambas-user] build 2026 failing To: richard terry , mailing list for gambas users Message-ID: <200906191302.49657.gambas at ...1...> Content-Type: Text/Plain; charset="utf-8" > On Fri, 19 Jun 2009 09:48:08 am Beno?t Minisini wrote: > > > gambas3, build 2026, x_64, arch > > > > > > I'm getting: > > > > > > make[4]: Entering directory `/home/test/gambas3/src/trunk/main/gbx' > > > gcc -DHAVE_CONFIG_H -I. -I.. -I../share -D_REENTRANT -I.../libltdl > > > -I/usr/lib/libffi-3.0.8/include > > > -DGAMBAS_PATH="\"/home/test/gambas3/pkg/usr/bin\"" -pipe -Wall > > > -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -MT > > > gbx3-gbx_debug.o -MD -MP -MF .deps/gbx3-gbx_debug.Tpo -c -o > > > gbx3-gbx_debug.o `test -f 'gbx_debug.c' || echo './'`gbx_debug.c > > > In file included from gbx_class.h:30, > > > from gbx_exec.h:31, > > > from gbx_debug.c:35: > > > gbx_class_desc.h:105: error: duplicate member ?_reserved? > > > gbx_class_desc.h:123: error: duplicate member ?_reserved? > > > In file included from gbx_exec.h:38, > > > from gbx_debug.c:35: > > > gbx_variant.h: In function ?VARIANT_free?: > > > gbx_variant.h:55: warning: dereferencing type-punned pointer will break > > > strict-aliasing rules > > > gbx_variant.h:55: warning: dereferencing type-punned pointer will break > > > strict-aliasing rules > > > gbx_variant.h:55: warning: dereferencing type-punned pointer will break > > > strict-aliasing rules > > > gbx_variant.h:55: warning: dereferencing type-punned pointer will break > > > strict-aliasing rules > > > gbx_variant.h: In function ?VARIANT_keep?: > > > gbx_variant.h:63: warning: dereferencing type-punned pointer will break > > > strict-aliasing rules > > > gbx_variant.h:67: warning: dereferencing type-punned pointer will break > > > strict-aliasing rules > > > gbx_variant.h:67: warning: dereferencing type-punned pointer will break > > > strict-aliasing rules > > > gbx_variant..h: In function ?VARIANT_is_null?: > > > gbx_variant.h:76: warning: dereferencing type-punned pointer will break > > > strict-aliasing rules > > > gbx_variant.h:79: warning: dereferencing type-punned pointer will break > > > strict-aliasing rules > > > gbx_variant.h: In function ?VARIANT_clear?: > > > gbx_variant.h:90: warning: dereferencing type-punned pointer will break > > > strict-aliasing rules > > > make[4]: *** [gbx3-gbx_debug.o] Error 1 > > > > Fixed in revision #2027 ! > > CEditor.cpp: In function 'void CEDITOR_show_word(void*, void*)': > CEditor.cpp:962: error: 'class GEditor' has no member named 'showWord' > make[5]: *** [CEditor.lo] Error 1 > make[5]: Leaving directory > `/home/richard/gambas3-svn/src/trunk/gb.qt4/src/ext' > make[4]: *** [all-recursive] Error 1 > make[4]: Leaving directory `/home/richard/gambas3-svn/src/trunk/gb.qt4/src' > make[3]: *** [all-recursive] Error 1 > make[3]: Leaving directory `/home/richard/gambas3-svn/src/trunk/gb.qt4' > make[2]: *** [all] Error 2 > make[2]: Leaving directory `/home/richard/gambas3-svn/src/trunk/gb.qt4' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/home/richard/gambas3-svn/src/trunk' > make: *** [all] Error 2 > ==> ERROR: Build Failed. > > something not right on my machine in 2027 > Fixed in revision #2028. Nothing is wrong on your machine, I just sometimes break the development version inadvertently. Regards, -- Beno?t ------------------------------ ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment.. http://p.sf.net/sfu/businessobjects ------------------------------ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user End of Gambas-user Digest, Vol 37, Issue 27 ******************************************* _______________________________________ ???????????? http://cn.mail.yahoo.com ------------------------------ ------------------------------------------------------------------------------ Are you an open source citizen? Join us for the Open Source Bridge conference! Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250. Need another reason to go? 24-hour hacker lounge. Register today! http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org ------------------------------ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user End of Gambas-user Digest, Vol 37, Issue 29 ******************************************* _______________________________________ ???????????? http://cn.mail.yahoo.com From juergen.linder at ...17... Mon Jun 22 15:06:07 2009 From: juergen.linder at ...17... (juelin) Date: Mon, 22 Jun 2009 06:06:07 -0700 (PDT) Subject: [Gambas-user] rotate a line Message-ID: <24146872.post@...1379...> hi, I have some problems with rotate. In a drawingarea I draw a line (100,100 to 300,100). Then I load the graphic into an image (90,90 to 310,110). I rotate the image with image.rotate(90) and show the image into drawingarea with draw.image(image,90,90). But the graphic is anywhere on screen and not rotated 90?. Also it rotated not in the middle of rect, it rotated on top,left of rect. What must I do? Please a example kind regards -- View this message in context: http://www.nabble.com/rotate-a-line-tp24146872p24146872.html Sent from the gambas-user mailing list archive at Nabble.com. From oceanosoftlapalma at ...626... Mon Jun 22 14:12:59 2009 From: oceanosoftlapalma at ...626... (=?ISO-8859-1?Q?Ricardo_D=EDaz_Mart=EDn?=) Date: Mon, 22 Jun 2009 14:12:59 +0200 Subject: [Gambas-user] Exec / Sehll and openoffice In-Reply-To: <8D42310D957CFB46AA11921A711D4D160245AACFF2@...1899...> References: <8D42310D957CFB46AA11921A711D4D160245AACFF2@...1899...> Message-ID: Try EXEC["oowriter"," path/myfile.csv "] 2009/6/22 Stefan Miefert > > Hello, > > > > i try in gambas to start openoffice and load a csv file like this > > > openoffice path/myfile.csv > > in this command > EXEC["openoffice"," path/myfile.csv "] > > I see openoffice start and at the same time it will clsoe.:( > > When I enter the command direct in the console everything is ok. > > What I must do to start the programm ?! > > Thanks! > > > ------------------------------------------------------------------------------ > Are you an open source citizen? Join us for the Open Source Bridge > conference! > Portland, OR, June 17-19. Two days of sessions, one day of unconference: > $250. > Need another reason to go? 24-hour hacker lounge. Register today! > > http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From fabramowski at ...17... Mon Jun 22 16:22:00 2009 From: fabramowski at ...17... (Frank Abramowski) Date: Mon, 22 Jun 2009 16:22:00 +0200 Subject: [Gambas-user] GridEditor In-Reply-To: <200906221236.09986.gambas@...1...> References: <799be1690906212139we1bacc4mde65d65a997d8ff@...627...> <200906221236.09986.gambas@...1...> Message-ID: <4A3F9388.5080906@...17...> Beno?t Minisini schrieb: >> I know I'm beating this up, but I am getting incredibly frustrated trying >> to figure out how this thing works. >> >> Gambas 2.12 / Ubuntu 8.10 >> >> The first image is with gb.qt & gb.qt.ext components enabled (gtk >> disabled). - I only see a partial toolbar and no grid displays. >> >> The second image is with gb.gtk & gb.gtk.ext components enabled (qt >> disabled). >> - I get a grid, but no toolbar. >> - Also, clicking on three different fields in the grid consecutively >> causes a signal 11. >> >> I switched from SQLite to MySQL and made a super-simple database with one >> table to try to poke my way through this but I seem to be struggling with >> the basics. Any help is greatly appreciated. >> >> I could further attach the code and dump the database if that would help. >> > > Yes, please provide your project source code and a sql dump of a piece of your > database, so that I can reproduce the problems. If it is too big (> 256K), > send it to my private e-mail, not the mailing-list. > > Regards, > > Benoit, Please put the sample on your website www.gambas.sourceforge.net "Some Application". Best Regards Frank Abramowski From gambas at ...1... Mon Jun 22 14:20:34 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Mon, 22 Jun 2009 14:20:34 +0200 Subject: [Gambas-user] Welcome to QT4! In-Reply-To: References: <200906221320.37971.gambas@...1...> Message-ID: <200906221420.34848.gambas@...1...> > For both gambas2 and gamasb3? > > No, only for gambas 3. Gambas 2 does not get new features. -- Beno?t From david_villalobos_c at ...43... Mon Jun 22 18:13:00 2009 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Mon, 22 Jun 2009 09:13:00 -0700 (PDT) Subject: [Gambas-user] Welcome to QT4! In-Reply-To: <200906221320.37971.gambas@...1...> References: <200906221320.37971.gambas@...1...> Message-ID: <732082.15630.qm@...1658...> Great!!! I think it will be nice to use qt4 in the Gambas IDE, so we can find errors easily... don't you think? Regards -- David ----- Original Message ---- From: Beno?t Minisini To: gambas-user at lists.sourceforge.net Sent: Monday, June 22, 2009 5:20:37 AM Subject: [Gambas-user] Welcome to QT4! Hi, Since the last revision of the development version, I think that now gb.qt4 is stable enough to replace gb.qt. So I invite everyone using the development version to switch from gb.qt to gb.qt4 in their project, and to report any problem or regression they get. In the future, gb.qt will be "deprecated". It will be renamed "gb.qt3", and "gb.qt4" will become "gb.qt". Regards, -- Beno?t ------------------------------------------------------------------------------ Are you an open source citizen? Join us for the Open Source Bridge conference! Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250. Need another reason to go? 24-hour hacker lounge. Register today! http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Mon Jun 22 18:18:49 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Mon, 22 Jun 2009 18:18:49 +0200 Subject: [Gambas-user] Welcome to QT4! In-Reply-To: <732082.15630.qm@...1658...> References: <200906221320.37971.gambas@...1...> <732082.15630.qm@...1658...> Message-ID: <200906221818.49329.gambas@...1...> > Great!!! I think it will be nice to use qt4 in the Gambas IDE, so we can > find errors easily... don't you think? > > Regards > > > -- > David > I'm currently doing that. :-) Debugging a crash... -- Beno?t From jferreira at ...2188... Mon Jun 22 18:22:17 2009 From: jferreira at ...2188... (JOHN FERREIRA) Date: Mon, 22 Jun 2009 09:22:17 -0700 (PDT) Subject: [Gambas-user] PLEASE REMOVE YOUR MAIL LIST: YOU'RE FILLING UP MY MAILBOX WITH JUNK! Message-ID: <958804.78258.qm@...2214...> Kathy Ferreira, Editor and Columnist Roller Skater's Gazette The Monthly Newsletter for Artistic Roller Skaters From jferreira at ...2188... Mon Jun 22 18:22:56 2009 From: jferreira at ...2188... (JOHN FERREIRA) Date: Mon, 22 Jun 2009 09:22:56 -0700 (PDT) Subject: [Gambas-user] REMOVE ME FROM YOUR EMAIL LIST Message-ID: <903689.95460.qm@...2215...> Kathy Ferreira, Editor and Columnist Roller Skater's Gazette The Monthly Newsletter for Artistic Roller Skaters --- On Mon, 6/22/09, David Villalobos Cambronero wrote: From: David Villalobos Cambronero Subject: Re: [Gambas-user] Welcome to QT4! To: "mailing list for gambas users" Date: Monday, June 22, 2009, 12:13 PM Great!!! I think it will be nice to use qt4 in the Gambas IDE, so we can find errors easily... don't you think? Regards -- David ----- Original Message ---- From: Beno?t Minisini To: gambas-user at lists.sourceforge.net Sent: Monday, June 22, 2009 5:20:37 AM Subject: [Gambas-user] Welcome to QT4! Hi, Since the last revision of the development version, I think that now gb.qt4 is stable enough to replace gb.qt. So I invite everyone using the development version to switch from gb.qt to gb.qt4 in their project, and to report any problem or regression they get. In the future, gb.qt will be "deprecated". It will be renamed "gb.qt3", and "gb.qt4" will become "gb.qt". Regards, -- Beno?t ------------------------------------------------------------------------------ Are you an open source citizen? Join us for the Open Source Bridge conference! Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250. Need another reason to go? 24-hour hacker lounge. Register today! http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user ? ? ? ------------------------------------------------------------------------------ Are you an open source citizen? Join us for the Open Source Bridge conference! Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250. Need another reason to go? 24-hour hacker lounge. Register today! http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From jferreira at ...2188... Mon Jun 22 18:23:19 2009 From: jferreira at ...2188... (JOHN FERREIRA) Date: Mon, 22 Jun 2009 09:23:19 -0700 (PDT) Subject: [Gambas-user] REMOVE ME FROM YOUR MAIL LIST Message-ID: <450098.86189.qm@...2217...> Kathy Ferreira, Editor and Columnist Roller Skater's Gazette The Monthly Newsletter for Artistic Roller Skaters --- On Sun, 6/21/09, Swee Kwang Tan wrote: From: Swee Kwang Tan Subject: Re: [Gambas-user] Gambas-user Digest, Vol 37, Issue 29 To: gambas-user at lists.sourceforge.net Date: Sunday, June 21, 2009, 10:27 PM Dear Sir, I've upgrade my system from ubuntu8.04 to fedora 11, after intall the gambas2-2.13.1, I found that my program can't run on the latest gambas version, because the gambas2-gb-db-postgresql is missing, my program can run in ubuntu 8.04 normally, I wish to download the missing package, but where is? the package wed site ? Thank you. ________________________________ From: "gambas-user-request at lists.sourceforge.net" To: gambas-user at lists.sourceforge.net Sent: Saturday, June 20, 2009 6:44:21 PM Subject: Gambas-user Digest, Vol 37, Issue 29 Send Gambas-user mailing list submissions to ? ? gambas-user at lists.sourceforge.net To subscribe or unsubscribe via the World Wide Web, visit ? ? https://lists.sourceforge.net/lists/listinfo/gambas-user or, via email, send a message with subject or body 'help' to ? ? gambas-user-request at lists.sourceforge.net You can reach the person managing the list at ? ? gambas-user-owner at lists.sourceforge.net When replying, please edit your Subject line so it is more specific than "Re: Contents of Gambas-user digest..." Today's Topics: ???1. Re: build 2027 failing (Zach Smith) ???2. Re: showdialog / showmodal auto center (kobolds) ???3. Re: build 2027 failing (Beno?t Minisini) ???4. GTK TRISTATE CHECKBOX NO POSSIBLE TO SET TO THREE? ? DIFFERENTS ? ? ? STATES (Ricardo D?az Mart?n) ???5. Please help me!!! (Swee Kwang Tan) ---------------------------------------------------------------------- Message: 1 Date: Fri, 19 Jun 2009 19:29:09 -0500 From: Zach Smith Subject: Re: [Gambas-user] build 2027 failing To: mailing list for gambas users Message-ID: ? ? Content-Type: text/plain; charset=ISO-8859-1 Thanks Benoit, Laurent.? 32 bit (desktop) works now but... 64 bit (laptop) still won't build, Arch, gcc 4.4.0-3,? #2030 now gives me: make[5]: Entering directory `/home/craig/gambas3/src/trunk/gb.qt4/src/ext' /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../../share -I../../src/share???-pipe -Wall -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -fno-omit-frame-pointer? -MT CDial_moc.lo -MD -MP -MF .deps/CDial_moc.Tpo -c -o CDial_moc.lo CDial_moc.cpp 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../../share -I../../src/share -pipe -Wall -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -fno-omit-frame-pointer -MT CDial_moc.lo -MD -MP -MF .deps/CDial_moc.Tpo -c CDial_moc.cpp? -fPIC -DPIC -o .libs/CDial_moc.o CDial_moc.cpp:14:2: error: #error "This file was generated using the moc from 4.4.3. It" CDial_moc.cpp:15:2: error: #error "cannot be used with the include files from this version of Qt." CDial_moc.cpp:16:2: error: #error "(The moc has changed too much.)" make[5]: *** [CDial_moc.lo] Error 1 ------------------------------ Message: 2 Date: Fri, 19 Jun 2009 22:13:36 -0700 (PDT) From: kobolds Subject: Re: [Gambas-user] showdialog / showmodal auto center To: gambas-user at lists.sourceforge.net Message-ID: <24122180.post at ...2204...> Content-Type: text/plain; charset=UTF-8 Beno?t Minisini wrote: > >> i found that when display a window using showdialog / showmodal , the >> window show with auto center on screen. i don't want that , how do i >> disable it. i try using the X and Y but no effect > > Why don't you want that? > > -- > Beno?t > > ------------------------------------------------------------------------------ > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensing option that enables unlimited > royalty-free distribution of the report engine for externally facing > server and web deployment. > http://p.sf.net/sfu/businessobjects > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > why would I need that for . if I want to make it center , I can do it from the code . the current showmodal/show dialog not only auto center also prevent to change the position from the code . anyone know how to solve this problem ? -- View this message in context: http://www.nabble.com/showdialog---showmodal-auto-center-tp24105720p24122180.html Sent from the gambas-user mailing list archive at Nabble..com. ------------------------------ Message: 3 Date: Sat, 20 Jun 2009 11:02:52 +0200 From: Beno?t Minisini Subject: Re: [Gambas-user] build 2027 failing To: mailing list for gambas users Message-ID: <200906201102.52552.gambas at ...1...> Content-Type: Text/Plain;? charset="iso-8859-1" > Thanks Benoit, Laurent.? 32 bit (desktop) works now but... 64 bit > (laptop) still won't build, Arch, gcc 4.4.0-3,? #2030 now gives me: > > make[5]: Entering directory `/home/craig/gambas3/src/trunk/gb.qt4/src/ext' > /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../../share > -I../../src/share???-pipe -Wall -fno-exceptions -Wno-unused-value > -fsigned-char -fvisibility=hidden -g -Os -fno-omit-frame-pointer? -MT > CDial_moc.lo -MD -MP -MF .deps/CDial_moc.Tpo -c -o CDial_moc.lo > CDial_moc.cpp >? 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../../share -I.../../src/share -pipe -Wall > -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g > -Os -fno-omit-frame-pointer -MT CDial_moc.lo -MD -MP -MF > .deps/CDial_moc.Tpo -c CDial_moc.cpp? -fPIC -DPIC -o .libs/CDial_moc.o > CDial_moc.cpp:14:2: error: #error "This file was generated using the > moc from 4.4.3. It" > CDial_moc.cpp:15:2: error: #error "cannot be used with the include > files from this version of Qt." > CDial_moc.cpp:16:2: error: #error "(The moc has changed too much.)" > make[5]: *** [CDial_moc.lo] Error 1 > Do a "make clean" inside the gb.qt4 directory: apparently you have already compiled Gambas and changed your version of qt 4 since. Regards, -- Beno?t ------------------------------ Message: 4 Date: Sat, 20 Jun 2009 12:28:05 +0200 From: Ricardo D?az Mart?n? Subject: [Gambas-user] GTK TRISTATE CHECKBOX NO POSSIBLE TO SET TO ? ? THREE? ? DIFFERENTS STATES To: mailing list for gambas users Message-ID: <4A3CB9B5.7050301 at ...626...> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Hi, The checkbox control in gtk is no possible to change to other states y you select CheckBox.None as default value. There's all ok if you use the same code with qt component. Somebody knows if is it a bug or a GTK limitation? To reproduce this, it isn't necessary to write code: only put a checkbox in a empty form a run. I'm using gambas2 r.2028 in ubuntu 9.04x86_64 Regards, Ricardo D?az ------------------------------ Message: 5 Date: Sat, 20 Jun 2009 03:44:16 -0700 (PDT) From: Swee Kwang Tan Subject: [Gambas-user] Please help me!!! To: gambas-user at lists.sourceforge.net Message-ID: <714099.82128.qm at ...2203...> Content-Type: text/plain; charset=utf-8 Dear Sir, Gambas is good software, thank you for your working. I've upgrade my system from ubuntu 8.04 to fedora 11, and get the latest gambas2-2.13.1 from fedora repo. But my gambas program can't work normally, although it can work noraml in ubuntu, the postgresql can't connect, because fedora 11 repo have'nt gambas-db-postgresql-2.13.1-1.fc11 (i586). So it cause the following error message. (InputKuaDef:2963): IBUS-WARNING **: Connect to unix:path=/tmp/ibus-program/ibus-unix-0 failed: Failed to connect to socket /tmp/ibus-program/ibus-unix-0: refuse connection (InputKuaDef:2963): Gdk-CRITICAL **: gdk_x11_atom_to_xatom_for_display: assertion `atom != GDK_NONE' failed (InputKuaDef:2963): Gdk-CRITICAL **: gdk_x11_atom_to_xatom_for_display: assertion `atom != GDK_NONE' failed The "InputKuaDef" is my program name. How can I do now ? ________________________________ From: "gambas-user-request at lists.sourceforge.net" To: gambas-user at lists.sourceforge.net Sent: Friday, June 19, 2009 7:03:00 PM Subject: Gambas-user Digest, Vol 37, Issue 27 Send Gambas-user mailing list submissions to ? ? gambas-user at lists.sourceforge.net To subscribe or unsubscribe via the World Wide Web, visit ? ? https://lists.sourceforge.net/lists/listinfo/gambas-user or, via email, send a message with subject or body 'help' to ? ? gambas-user-request at lists.sourceforge.net You can reach the person managing the list at ? ? gambas-user-owner at lists.sourceforge.net When replying, please edit your Subject line so it is more specific than "Re: Contents of Gambas-user digest..." Today's Topics: ???1. build 2027 failing (Zach Smith) ???2. Re: v4l - can not open device -solved (Steven James Drinnan) ???3.? showdialog / showmodal auto center (kobolds) ???4. Re: gbr2 crash at different points (Andreas Fr?hlke) ???5.. Re: Database example (charlesg) ???6. Re: showdialog / showmodal auto center (Beno?t Minisini) ???7. Re: build 2027 failing (Beno?t Minisini) ???8. Re: v4l - can not open device -solved (Beno?t Minisini) ???9. Re: build 2026 failing (Beno?t Minisini) ---------------------------------------------------------------------- Message: 1 Date: Thu, 18 Jun 2009 19:37:44 -0500 From: Zach Smith Subject: [Gambas-user] build 2027 failing To: gambas-user at lists.sourceforge.net Message-ID: ? ? Content-Type: text/plain; charset=ISO-8859-1 gambas3, build 2027, x_64, arch I'm getting: make[4]: Entering directory `/home/craig/gambas3/src/trunk/gb.db.sqlite3/src' /bin/sh ../libtool? --tag=CXX?? --mode=compile g++ -DHAVE_CONFIG_H -I. -I..??? -pipe -Wall -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -fno-omit-frame-pointer -fexceptions? -MT gb_db_sqlite3_la-main.lo -MD -MP -MF .deps/gb_db_sqlite3_la-main.Tpo -c -o gb_db_sqlite3_la-main.lo `test -f 'main.cpp' || echo './'`main.cpp ?g++ -DHAVE_CONFIG_H -I. -I.. -pipe -Wall -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -fno-omit-frame-pointer -fexceptions -MT gb_db_sqlite3_la-main..lo -MD -MP -MF .deps/gb_db_sqlite3_la-main.Tpo -c main.cpp? -fPIC -DPIC -o .libs/gb_db_sqlite3_la-main.o main.cpp: In function 'int field_index(void*, const char*, DB_DATABASE*)': main.cpp:1011: error: invalid conversion from 'const char*' to 'char*' make[4]: *** [gb_db_sqlite3_la-main.lo] Error 1 ------------------------------ Message: 2 Date: Fri, 19 Jun 2009 12:26:05 +0800 From: Steven James Drinnan Subject: Re: [Gambas-user] v4l - can not open device -solved To: mailing list for gambas users Message-ID: <1245385566.3344.3.camel at ...2011...> Content-Type: text/plain; charset="UTF-8" Had another look, looks like /dev/video is no longer created in v4l so the default now is /dev/video0. I know you did not make this component. But does need to be updated to recognize v4l2 which is now the default in most major distributions. Many thanks for your patience. Steven On Fri, 2009-06-19 at 00:30 +0200, Beno?t Minisini wrote: > > Have you have had a chance to check it out? > > > > I have no webcam, nor any v4l device, and I didn't make the component, so it > is hard for me to help you... > > Try to open the device with an OPEN "xxxx" FOR READ WRITE instruction to see > if you get a more detailed error message. > > Regards, > ------------------------------ Message: 3 Date: Thu, 18 Jun 2009 22:27:38 -0700 (PDT) From: kobolds Subject: [Gambas-user]? showdialog / showmodal auto center To: gambas-user at lists.sourceforge.net Message-ID: <24105720.post at ...1379...> Content-Type: text/plain; charset=us-ascii i found that when display a window using showdialog / showmodal , the window show with auto center on screen. i don't want that , how do i disable it. i try using the X and Y but no effect -- View this message in context: http://www.nabble.com/showdialog---showmodal-auto-center-tp24105720p24105720.html Sent from the gambas-user mailing list archive at Nabble.com. ------------------------------ Message: 4 Date: Fri, 19 Jun 2009 09:23:54 +0200 From: Andreas Fr?hlke Subject: Re: [Gambas-user] gbr2 crash at different points To: mailing list for gambas users Message-ID: ? ? <8D42310D957CFB46AA11921A711D4D160245AACFC4 at ...1899...> Content-Type: text/plain; charset="iso-8859-1" Hello, just wanna know, do you get the mail? Regards Andreas Fr?hlke -----Urspr?ngliche Nachricht----- Von: Beno?t Minisini [mailto:gambas at ...2205...] Gesendet: Mittwoch, 17. Juni 2009 12:42 An: mailing list for gambas users Betreff: Re: [Gambas-user] gbr2 crash at different points > Hello, > > we used to send you an core dump created with gcore, but the admin of the > mailinglist blocked it, because it is bigger than 256k. > > Regards > > A.Fr?hlke > This is automatic - Every 500+ subscribers will receive your mail, so it can't be big! Send the mail to my private e-mail (gambas at ...764...) Regards, -- Beno?t ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user ------------------------------ Message: 5 Date: Fri, 19 Jun 2009 02:03:06 -0700 (PDT) From: charlesg Subject: Re: [Gambas-user] Database example To: gambas-user at lists.sourceforge.net Message-ID: <24107894.post at ...1379...> Content-Type: text/plain; charset=us-ascii Hi Thank you Ron for that. A bit more messing around and I think I now understand it. Following on from richard terry's suggestion for simple examples, here it is as simple as I can get it. There is nothing new here: it all comes from the database example. Any corrections to the annotations welcome! You just need a gridview, a button called btnRun and a preferably large database with lots of columns so that you can scroll around with ease '======================================================== ' Gambas class file PUBLIC $hConnLocl AS NEW Connection PUBLIC $resData AS Result '-------------------------------------------------------- PUBLIC SUB Form_Open() ? DIM sql AS String ? ? 'open the database ? WITH $hConnLocl ? ? .type = "mysql" ? ? .host = "localhost" ? ? .Name = "stock" ? ? .login = "charles" ? ? .password="dog"? ? ? END WITH ? $hConnLocl.Open() ? ? 'create a result ? sql = "SELECT * FROM grnLine" ? $resData = $hConnLocl.Exec(sql) ? END '--------------------------------------------------------- PUBLIC SUB btnRun_Click() ? DIM hForm AS FRequest ? DIM hField AS ResultField ? DIM iInd AS Integer ? GridView1.Rows.count = 0 ? 'set the required number of columns ? GridView1.Columns.count = $resData.Fields.Count ? ? 'define the column headers and width ? FOR EACH hField IN $resData.Fields ? ? WITH hField ? ? ? GridView1.Columns[iInd].text = .Name ? ? ? GridView1.Columns[iInd].width = 60 ? ? END WITH ? ? INC iInd ? NEXT ? ? 'create the empty rows. Each empty and visible cell created calls GridView1_data ? GridView1.Rows.Count = $resData.Count END '--------------------------------------------------------- PUBLIC SUB GridView1_Data(Row AS Integer, Column AS Integer) ? 'move to the required result row ? $resData.MoveTo(row) ? 'set the data for the cell in the GridView from the column in the selected row of the result ? GridView1.Data.text = Str($resData[GridView1.Columns[column].text]) ? 'lets you see how _data is being called as you scroll around the GridView ? PRINT row & ":" & column & ":" & Str($resData[GridView1..Columns[column].text]) END '---------------------------------------------------------- I also created a second small form. As you move the second form around on top of the gridview, the print command still shows the _Data frantically working in the background. Clever things these computers! rgds -- View this message in context: http://www.nabble.com/Database-example-tp24021356p24107894.html Sent from the gambas-user mailing list archive at Nabble.com. ------------------------------ Message: 6 Date: Fri, 19 Jun 2009 12:52:59 +0200 From: Beno?t Minisini Subject: Re: [Gambas-user] showdialog / showmodal auto center To: mailing list for gambas users Message-ID: <200906191252.59641.gambas at ...1...> Content-Type: Text/Plain;? charset="iso-8859-1" > i found that when display a window using showdialog / showmodal , the > window show with auto center on screen. i don't want that , how do i > disable it.. i try using the X and Y but no effect Why don't you want that? -- Beno?t ------------------------------ Message: 7 Date: Fri, 19 Jun 2009 12:53:56 +0200 From: Beno?t Minisini Subject: Re: [Gambas-user] build 2027 failing To: mailing list for gambas users Message-ID: <200906191253.56345.gambas at ...1...> Content-Type: Text/Plain;? charset="iso-8859-1" > gambas3, build 2027, x_64, arch > > I'm getting: > > make[4]: Entering directory > `/home/craig/gambas3/src/trunk/gb.db.sqlite3/src' /bin/sh ../libtool > --tag=CXX???--mode=compile g++ -DHAVE_CONFIG_H -I. -I..? ? -pipe -Wall > -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os > -fno-omit-frame-pointer -fexceptions? -MT gb_db_sqlite3_la-main.lo -MD -MP > -MF ..deps/gb_db_sqlite3_la-main.Tpo -c -o gb_db_sqlite3_la-main.lo `test -f > 'main.cpp' || echo > './'`main.cpp >? g++ -DHAVE_CONFIG_H -I. -I.. -pipe -Wall -fno-exceptions > -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os > -fno-omit-frame-pointer -fexceptions -MT gb_db_sqlite3_la-main.lo -MD > -MP -MF .deps/gb_db_sqlite3_la-main.Tpo -c main.cpp? -fPIC -DPIC -o > .libs/gb_db_sqlite3_la-main.o > main.cpp: In function 'int field_index(void*, const char*, DB_DATABASE*)': > main.cpp:1011: error: invalid conversion from 'const char*' to 'char*' > make[4]: *** [gb_db_sqlite3_la-main.lo] Error 1 > > --------------------------------------------------------------------------- >--- Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensing option that enables unlimited > royalty-free distribution of the report engine for externally facing > server and web deployment. > http://p.sf.net/sfu/businessobjects > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user Which distribution do you use? Which version of gcc? -- Beno?t ------------------------------ Message: 8 Date: Fri, 19 Jun 2009 12:55:57 +0200 From: Beno?t Minisini Subject: Re: [Gambas-user] v4l - can not open device -solved To: mailing list for gambas users Message-ID: <200906191255.57135.gambas at ...1...> Content-Type: Text/Plain;? charset="iso-8859-1" > Had another look, looks like /dev/video is no longer created in v4l so > the default now is /dev/video0. > > I know you did not make this component. But does need to be updated to > recognize v4l2 which is now the default in most major distributions. > > Many thanks for your patience. > > Steven > gb.v4l uses v4l2 but only in the development version. Regards, -- Beno?t ------------------------------ Message: 9 Date: Fri, 19 Jun 2009 13:02:49 +0200 From: Beno?t Minisini Subject: Re: [Gambas-user] build 2026 failing To: richard terry ,? ? mailing list for gambas ? ? users Message-ID: <200906191302.49657.gambas at ...1...> Content-Type: Text/Plain;? charset="utf-8" > On Fri, 19 Jun 2009 09:48:08 am Beno?t Minisini wrote: > > > gambas3, build 2026, x_64, arch > > > > > > I'm getting: > > > > > > make[4]: Entering directory `/home/test/gambas3/src/trunk/main/gbx' > > > gcc -DHAVE_CONFIG_H -I. -I.. -I../share???-D_REENTRANT -I.../libltdl > > > -I/usr/lib/libffi-3.0.8/include > > > -DGAMBAS_PATH="\"/home/test/gambas3/pkg/usr/bin\"" -pipe -Wall > > > -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os? -MT > > > gbx3-gbx_debug.o -MD -MP -MF .deps/gbx3-gbx_debug.Tpo -c -o > > > gbx3-gbx_debug.o `test -f 'gbx_debug.c' || echo './'`gbx_debug.c > > > In file included from gbx_class..h:30, > > >? ? ? ? ? ? ? ? ? from gbx_exec.h:31, > > >? ? ? ? ? ? ? ? ? from gbx_debug.c:35: > > > gbx_class_desc.h:105: error: duplicate member ?_reserved? > > > gbx_class_desc.h:123: error: duplicate member ?_reserved? > > > In file included from gbx_exec.h:38, > > >? ? ? ? ? ? ? ? ? from gbx_debug.c:35: > > > gbx_variant.h: In function ?VARIANT_free?: > > > gbx_variant.h:55: warning: dereferencing type-punned pointer will break > > > strict-aliasing rules > > > gbx_variant.h:55: warning: dereferencing type-punned pointer will break > > > strict-aliasing rules > > > gbx_variant.h:55: warning: dereferencing type-punned pointer will break > > > strict-aliasing rules > > > gbx_variant.h:55: warning: dereferencing type-punned pointer will break > > > strict-aliasing rules > > > gbx_variant.h: In function ?VARIANT_keep?: > > > gbx_variant.h:63: warning: dereferencing type-punned pointer will break > > > strict-aliasing rules > > > gbx_variant.h:67: warning: dereferencing type-punned pointer will break > > > strict-aliasing rules > > > gbx_variant.h:67: warning: dereferencing type-punned pointer will break > > > strict-aliasing rules > > > gbx_variant.h: In function ?VARIANT_is_null?: > > > gbx_variant.h:76: warning: dereferencing type-punned pointer will break > > > strict-aliasing rules > > > gbx_variant.h:79: warning: dereferencing type-punned pointer will break > > > strict-aliasing rules > > > gbx_variant.h: In function ?VARIANT_clear?: > > > gbx_variant.h:90: warning: dereferencing type-punned pointer will break > > > strict-aliasing rules > > > make[4]: *** [gbx3-gbx_debug.o] Error 1 > > > > Fixed in revision #2027 ! > > CEditor.cpp: In function 'void CEDITOR_show_word(void*, void*)': > CEditor.cpp:962: error: 'class GEditor' has no member named 'showWord' > make[5]: *** [CEditor.lo] Error 1 > make[5]: Leaving directory > `/home/richard/gambas3-svn/src/trunk/gb.qt4/src/ext' > make[4]: *** [all-recursive] Error 1 > make[4]: Leaving directory `/home/richard/gambas3-svn/src/trunk/gb..qt4/src' > make[3]: *** [all-recursive] Error 1 > make[3]: Leaving directory `/home/richard/gambas3-svn/src/trunk/gb.qt4' > make[2]: *** [all] Error 2 > make[2]: Leaving directory `/home/richard/gambas3-svn/src/trunk/gb.qt4' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/home/richard/gambas3-svn/src/trunk' > make: *** [all] Error 2 > ==> ERROR: Build Failed. > > something not right on my machine in 2027 > Fixed in revision #2028. Nothing is wrong on your machine, I just sometimes break the development version inadvertently. Regards, -- Beno?t ------------------------------ ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment.. http://p.sf.net/sfu/businessobjects ------------------------------ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user End of Gambas-user Digest, Vol 37, Issue 27 ******************************************* _______________________________________ ???????????? http://cn.mail.yahoo.com ------------------------------ ------------------------------------------------------------------------------ Are you an open source citizen? Join us for the Open Source Bridge conference! Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250. Need another reason to go? 24-hour hacker lounge. Register today! http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org ------------------------------ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user End of Gambas-user Digest, Vol 37, Issue 29 ******************************************* _______________________________________ ???????????? http://cn.mail.yahoo.com ------------------------------------------------------------------------------ Are you an open source citizen? Join us for the Open Source Bridge conference! Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250. Need another reason to go? 24-hour hacker lounge. Register today! http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From d.paleino at ...626... Mon Jun 22 18:27:37 2009 From: d.paleino at ...626... (David Paleino) Date: Mon, 22 Jun 2009 18:27:37 +0200 Subject: [Gambas-user] PLEASE REMOVE YOUR MAIL LIST: YOU'RE FILLING UP MY MAILBOX WITH JUNK! References: <958804.78258.qm@...2214...> Message-ID: <20090622182737.51330887@...2218...> Once again, https://lists.sourceforge.net/lists/listinfo/gambas-user -- . ''`. Debian maintainer | http://wiki.debian.org/DavidPaleino : :' : Linuxer #334216 --|-- http://www.hanskalabs.net/ `. `'` GPG: 1392B174 ----|---- http://snipr.com/qa_page `- 2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: not available URL: From gambas.fr at ...626... Mon Jun 22 20:08:40 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 22 Jun 2009 20:08:40 +0200 Subject: [Gambas-user] Welcome to QT4! In-Reply-To: <200906221818.49329.gambas@...1...> References: <200906221320.37971.gambas@...1...> <732082.15630.qm@...1658...> <200906221818.49329.gambas@...1...> Message-ID: <6324a42a0906221108w393426dbj4d1a8b44f419084c@...627...> and now you can add a screenshot of gb3 under qt3 on the site. before change the library Le 22 juin 2009 18:18, Beno?t Minisini a ?crit : >> Great!!! I think it will be nice to use qt4 in the Gambas IDE, so we can >> find errors easily... don't you think? >> >> ?Regards >> >> >> -- >> David >> > > I'm currently doing that. :-) Debugging a crash... > > -- > Beno?t > > ------------------------------------------------------------------------------ > Are you an open source citizen? Join us for the Open Source Bridge conference! > Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250. > Need another reason to go? 24-hour hacker lounge. Register today! > http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Mon Jun 22 22:29:19 2009 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 22 Jun 2009 23:29:19 +0300 Subject: [Gambas-user] PLEASE REMOVE YOUR MAIL LIST: YOU'RE FILLING UP MY MAILBOX WITH JUNK! In-Reply-To: <20090622182737.51330887@...2218...> References: <958804.78258.qm@...2214...> <20090622182737.51330887@...2218...> Message-ID: <384d3900906221329m18986752h697be416ae403030@...627...> John, please stop spamming. READ: https://lists.sourceforge.net/lists/listinfo/gambas-user What is the problem here?? Jussi On Mon, Jun 22, 2009 at 19:27, David Paleino wrote: > Once again, > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > -- > ?. ''`. ?Debian maintainer | http://wiki.debian.org/DavidPaleino > ?: :' ?: Linuxer #334216 --|-- http://www.hanskalabs.net/ > ?`. `'` ?GPG: 1392B174 ----|---- http://snipr.com/qa_page > ? `- ? 2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174 > > ------------------------------------------------------------------------------ > Are you an open source citizen? Join us for the Open Source Bridge conference! > Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250. > Need another reason to go? 24-hour hacker lounge. Register today! > http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From kobolds at ...2041... Mon Jun 22 22:43:06 2009 From: kobolds at ...2041... (kobolds) Date: Mon, 22 Jun 2009 13:43:06 -0700 (PDT) Subject: [Gambas-user] Help creating user control In-Reply-To: <200906221345.44591.gambas@...1...> References: <24127891.post@...1379...> <200906221345.44591.gambas@...1...> Message-ID: <24155081.post@...1379...> Beno?t Minisini wrote: > >> I read how to create user control from this link >> http://www.gambasdoc.org/help/dev/gambas >> >> but I still having some problem to get it work . >> I want to create a custom control button . >> - FButtonEX (form) >> - ButtonEX (class) >> >> on the form (FButtonEX) , I drag and drop a button . >> >> ----------------------------------------------- >> on source FButtonEx.class >> >> public sub _new(optional bFile as boolean) >> end sub >> >> >> ---------------------------------------------- >> on source ButtonEx.class >> >> INHERITS userControl >> export >> >> private frmButton as FButtonEx >> >> public sub _new() >> frmButton = new FButtonEx(false, me) as "frmButton" >> object.attach(frmButton, me, "frmButton") >> end sub >> >> ------------------------------------------------------ >> I also put buttonex.png in the control folder >> >> in project property I make sure on option tabs "this project is >> component >> is YES and on provide tabs ButtonEX type=control group=dialog >> >> >> compile and make . >> >> >> I create another project and on toolkits dialog tabs, anew icon show up >> call buttonex . I click and drag it into the form . what it show only a >> rectangle with nothing in it . a button that suppose to be there not show >> up . but when I run this project the button show up . >> >> >> so how do i make the button show up on the ide ? >> >> if I missing anything please let me know . the wiki how-to help not very >> helpful . this is my first time try to create custom user control . > > 1) The IDE cannot draw controls outside of gb.gui, gb.form and > gb.form.mdi. > Instead it draws a frame with the control icon and the icon name - Like > what > is done with the DrawingArea control. > > 2) If you don't see that, then there is a bug in your component. Please > provide your source code, and I will tell you what is wrong. > > Regards, > > -- > Beno?t > > ------------------------------------------------------------------------------ > Are you an open source citizen? Join us for the Open Source Bridge > conference! > Portland, OR, June 17-19. Two days of sessions, one day of unconference: > $250. > Need another reason to go? 24-hour hacker lounge. Register today! > http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > yes that all i saw on the ide . thanks for the reply . now that i know i had done correctly. -- View this message in context: http://www.nabble.com/Help-creating-user-control-tp24127891p24155081.html Sent from the gambas-user mailing list archive at Nabble.com. From mohareve at ...626... Mon Jun 22 22:53:53 2009 From: mohareve at ...626... (M. Cs.) Date: Mon, 22 Jun 2009 22:53:53 +0200 Subject: [Gambas-user] Welcome to QT4! In-Reply-To: <6324a42a0906221108w393426dbj4d1a8b44f419084c@...627...> References: <200906221320.37971.gambas@...1...> <732082.15630.qm@...1658...> <200906221818.49329.gambas@...1...> <6324a42a0906221108w393426dbj4d1a8b44f419084c@...627...> Message-ID: When will gambas3 be available in RPMs? From david_villalobos_c at ...43... Mon Jun 22 23:48:15 2009 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Mon, 22 Jun 2009 14:48:15 -0700 (PDT) Subject: [Gambas-user] Welcome to QT4! In-Reply-To: <200906221818.49329.gambas@...1...> References: <200906221320.37971.gambas@...1...> <732082.15630.qm@...1658...> <200906221818.49329.gambas@...1...> Message-ID: <898609.1581.qm@...1658...> Found the first bug, the Underscore ( _ ) is not show in the editor. Mandriva 2009.1 32 bits KDE. Regards -- David ----- Original Message ---- From: Beno?t Minisini To: mailing list for gambas users Sent: Monday, June 22, 2009 10:18:49 AM Subject: Re: [Gambas-user] Welcome to QT4! > Great!!! I think it will be nice to use qt4 in the Gambas IDE, so we can > find errors easily... don't you think? > > Regards > > > -- > David > I'm currently doing that. :-) Debugging a crash... -- Beno?t ------------------------------------------------------------------------------ Are you an open source citizen? Join us for the Open Source Bridge conference! Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250. Need another reason to go? 24-hour hacker lounge. Register today! http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From kevinfishburne at ...1887... Tue Jun 23 00:22:42 2009 From: kevinfishburne at ...1887... (kevinfishburne) Date: Mon, 22 Jun 2009 15:22:42 -0700 (PDT) Subject: [Gambas-user] GAMBAS IDE font/form size versus runtime font/form size In-Reply-To: <200906211533.56469.gambas@...1...> References: <24129768.post@...1379...> <4A3DEC76.2000508@...1909...> <200906211533.56469.gambas@...1...> Message-ID: <24156608.post@...1379...> Awesome, that information proved accurate and I have a much better handle on what exactly is going on now. I agree there is probably no perfect solution due to a number of variables, but I've decided to use the QT GUI instead of GTK for the time being and to keep the forms/controls a fixed size (non scaled). My IDE form/controls now match my runtime form/controls to the pixel. My particular application is highly dependent on controls and text being in specific positions and at specific sizes, so I'll have to sacrifice users' possible desires to change font/form sizes based on their individual system configurations. For those who need exact instructions on how to switch a GAMBAS app from using GTK (GNOME) to QT (KDE), here they are: 1) Open GAMBAS 2) Open your app/project 3) Click Project on the main menu at the top 4) Click Properties 5) Click the Components tab 6) Uncheck "gb.gui" 7) Check "gb.qt" and "gb.qt.ext" 8) Click the OK button 9) Save your app/project If anyone knows of an easier or more intelligent way to do this please tell for the sake of others. On a related note, it seems there is no way to stop the font sizes from changing in a running GAMBAS app due to the font sizes specified in the desktop environment's font settings. For example, if a GAMBAS app is using GTK and the form's Scaled property is set to False, the form and control sizes will remain fixed but the font sizes will vary according to GNOME's font size settings. There appears to be no way to have GAMBAS force a specific font size and ignore the desktop environment's font preferences. Is this the case? If so it might be a subject of future development. It could be implemented as an additional control property, at the form level, or globally for the app/project. ----- 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://www.nabble.com/GAMBAS-IDE-font-form-size-versus-runtime-font-form-size-tp24129768p24156608.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Tue Jun 23 00:29:45 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Tue, 23 Jun 2009 00:29:45 +0200 Subject: [Gambas-user] GAMBAS IDE font/form size versus runtime font/form size In-Reply-To: <24156608.post@...1379...> References: <24129768.post@...1379...> <200906211533.56469.gambas@...1...> <24156608.post@...1379...> Message-ID: <200906230029.45713.gambas@...1...> > Awesome, that information proved accurate and I have a much better handle > on what exactly is going on now. I agree there is probably no perfect > solution due to a number of variables, but I've decided to use the QT GUI > instead of GTK for the time being and to keep the forms/controls a fixed > size (non scaled). My IDE form/controls now match my runtime form/controls > to the pixel. My particular application is highly dependent on controls and > text being in specific positions and at specific sizes, so I'll have to > sacrifice users' possible desires to change font/form sizes based on their > individual system configurations. > > For those who need exact instructions on how to switch a GAMBAS app from > using GTK (GNOME) to QT (KDE), here they are: > > 1) Open GAMBAS > 2) Open your app/project > 3) Click Project on the main menu at the top > 4) Click Properties > 5) Click the Components tab > 6) Uncheck "gb.gui" > 7) Check "gb.qt" and "gb.qt.ext" > 8) Click the OK button > 9) Save your app/project > > If anyone knows of an easier or more intelligent way to do this please tell > for the sake of others. > > On a related note, it seems there is no way to stop the font sizes from > changing in a running GAMBAS app due to the font sizes specified in the > desktop environment's font settings. For example, if a GAMBAS app is using > GTK and the form's Scaled property is set to False, the form and control > sizes will remain fixed but the font sizes will vary according to GNOME's > font size settings. There appears to be no way to have GAMBAS force a > specific font size and ignore the desktop environment's font preferences. > Is this the case? If so it might be a subject of future development. It > could be implemented as an additional control property, at the form level, > or globally for the app/project. > > ----- > 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 Set Application.Font at startup, and you will force your application to use the specified font as default. Regards, -- Beno?t From steven at ...1652... Mon Jun 22 14:15:09 2009 From: steven at ...1652... (Steven revimmo) Date: Mon, 22 Jun 2009 14:15:09 +0200 Subject: [Gambas-user] Exec / Sehll and openoffice In-Reply-To: <8D42310D957CFB46AA11921A711D4D160245AACFF2@...1899...> References: <8D42310D957CFB46AA11921A711D4D160245AACFF2@...1899...> Message-ID: <1245672909.15500.44.camel@...1936...> Hi, I do : SHELL "soffice " & User.Home & "/request/work/" & MyFile Works just fine. Steven Le lundi 22 juin 2009 ? 13:59 +0200, Stefan Miefert a ?crit : > > Hello, > > > > i try in gambas to start openoffice and load a csv file like this > > > openoffice path/myfile.csv > > in this command > EXEC["openoffice"," path/myfile.csv "] > > I see openoffice start and at the same time it will clsoe.:( > > When I enter the command direct in the console everything is ok. > > What I must do to start the programm ?! > > Thanks! > > ------------------------------------------------------------------------------ > Are you an open source citizen? Join us for the Open Source Bridge conference! > Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250. > Need another reason to go? 24-hour hacker lounge. Register today! > http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From steven at ...2097... Tue Jun 23 02:34:54 2009 From: steven at ...2097... (Steven James Drinnan) Date: Tue, 23 Jun 2009 08:34:54 +0800 Subject: [Gambas-user] The lastest version gambas can't run in fedora 11 In-Reply-To: <200906221258.18020.gambas@...1...> References: <286882.55985.qm@...2209...> <1245654727.3354.0.camel@...2011...> <200906221258.18020.gambas@...1...> Message-ID: <1245717295.2955.1.camel@...2011...> On Mon, 2009-06-22 at 12:58 +0200, Beno?t Minisini wrote: > > I hope this helps. > > > > No need it is included in gamba2-gb-db. I have had a similar problem > > with the SDL component. > > > > if you are installing and have a dependency problem. Make sure that the > > above and all other required files are installed. > > > > Then run from a cmd prompt > > > > su > > > > rpm -ivh --nodeps 'the-name-of-your-rpm' > > > > if you like send me the program I can test further for you. > > > > Steven. > > > > On Sun, 2009-06-21 at 23:20 -0700, Swee Kwang Tan wrote: > > > Dear Sir, > > > I've upgrade my system from ubuntu8.04 to fedora 11, after intall the > > > gambas2-2.13.1, I found that my program can't run on the latest gambas > > > version, because the gambas2-gb-db-postgresql is missing, my program > > > can run in ubuntu 8.04 normally with the 2.8.2 version, I wish to > > > download the missing package, but where is the package wed site ? > > > Thank you.. > > > > > > _______________________________________ > > > ???????????? > > > http://cn.mail.yahoo.com > > > ------------------------------------------------------------------------- > > >----- Are you an open source citizen? Join us for the Open Source Bridge > > > conference! Portland, OR, June 17-19. Two days of sessions, one day of > > > unconference: $250. Need another reason to go? 24-hour hacker lounge. > > > Register today! > > > http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridg > > >e.org _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > Aaaargh... Some @*!# Fedora packagers broke the packages by not following the > specifications. > > The gb-sdl-sound package was put inside gb-sql (no idea why), and all database > drivers were put in the gb-db package. Very good idea. This way, if you need > *one* database client, you are required to install *all* of them... > > I will update the specification with an explicit list of the packages that > must be made. Apprently it was not clear enough. > > And it would be great if people can help me to check the packaging of each > distribution with that list, and report them when something is not correct. > > Regards, > OK I'll take up fedora I have filled a bug report against gambas for this I'll keep an eye and monitor. Steven From jshackney at ...626... Tue Jun 23 06:53:57 2009 From: jshackney at ...626... (Jason Hackney) Date: Tue, 23 Jun 2009 00:53:57 -0400 Subject: [Gambas-user] GridEditor In-Reply-To: <4A3F9388.5080906@...17...> References: <799be1690906212139we1bacc4mde65d65a997d8ff@...627...> <200906221236.09986.gambas@...1...> <4A3F9388.5080906@...17...> Message-ID: <799be1690906222153t3425f88dj5dab4954780540f0@...627...> Attached is the relevant code/database. It's all very small. Essentially, I'm trying to decipher how GridEditor works--so I've added some notes to the source while I pick through it. I figured out the signal 11, it was in the SQL I was successfully malforming. :-) -jason > > >> I could further attach the code and dump the database if that would > help. > >> > > > > Yes, please provide your project source code and a sql dump of a piece of > your > > database, so that I can reproduce the problems. If it is too big (> > 256K), > > send it to my private e-mail, not the mailing-list. > -------------- next part -------------- A non-text attachment was scrubbed... Name: pomegranate.sql.gz Type: application/x-gzip Size: 702 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: testGridEditor-0.0.1.tar.gz Type: application/x-gzip Size: 9310 bytes Desc: not available URL: From tmp2009 at ...2180... Tue Jun 23 09:51:28 2009 From: tmp2009 at ...2180... (nero) Date: Tue, 23 Jun 2009 09:51:28 +0200 Subject: [Gambas-user] Welcome to QT4! References: <200906221320.37971.gambas@...1...> Message-ID: Hi all, I've get latest svn compiled without problem but when I run it I get: ERROR: #27: Cannot load component '/opt/gbx3/lib/gambas3/gb.qt4.so': /opt/gbx3/lib/gambas3/gb.qt4.so: undefined symbol: _ZNK14SystemTrayIcon10metaObjectEv gb.qt4.so is linked ok: ldd /opt/gbx3/lib/gambas3/gb.qt4.so linux-gate.so.1 => (0xffffe000) libQt3Support.so.4 => /usr/lib/libQt3Support.so.4 (0xb7d17000) libQtGui.so.4 => /usr/lib/libQtGui.so.4 (0xb7321000) libQtNetwork.so.4 => /usr/lib/libQtNetwork.so.4 (0xb7206000) libQtSql.so.4 => /usr/lib/libQtSql.so.4 (0xb71ca000) libQtCore.so.4 => /usr/lib/libQtCore.so.4 (0xb6f8e000) libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb6e9e000) libm.so.6 => /lib/i686/libm.so.6 (0xb6e75000) libc.so.6 => /lib/i686/libc.so.6 (0xb6d11000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb6cf3000) libQtXml.so.4 => /usr/lib/libQtXml.so.4 (0xb6cb0000) libpthread.so.0 => /lib/i686/libpthread.so.0 (0xb6c95000) libpng12.so.0 => /usr/lib/libpng12.so.0 (0xb6c6a000) libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb6be6000) libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0 (0xb6ba1000) libSM.so.6 => /usr/lib/libSM.so.6 (0xb6b97000) libICE.so.6 => /usr/lib/libICE.so.6 (0xb6b7c000) libz.so.1 => /lib/libz.so.1 (0xb6b68000) libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0xb6aa4000) libXrender.so.1 => /usr/lib/libXrender.so.1 (0xb6a9b000) libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0xb6a6a000) libXext.so.6 => /usr/lib/libXext.so.6 (0xb6a58000) libX11.so.6 => /usr/lib/libX11.so.6 (0xb6912000) libgthread-2.0.so.0 => /usr/lib/libgthread-2.0.so.0 (0xb690c000) librt.so.1 => /lib/i686/librt.so.1 (0xb6902000) libdl.so.2 => /lib/libdl.so.2 (0xb68fd000) /lib/ld-linux.so.2 (0xb80c1000) libpcre.so.0 => /lib/libpcre.so.0 (0xb68cd000) libxml2.so.2 => /usr/lib/libxml2.so.2 (0xb677b000) libxcb.so.1 => /usr/lib/libxcb.so.1 (0xb675d000) libXau.so.6 => /usr/lib/libXau.so.6 (0xb6759000) libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb6752000) I'm using mandriva cooker with qt version 4.5.1 . thank's, marco. -- Un tale incontra un amico in una corsia di ospedale: "Ma che fai con quella supposta sull'orecchio?". "Oddio... e la matita?". -- Da it.hobby.umorismo From sig.dewanto at ...626... Tue Jun 23 11:10:05 2009 From: sig.dewanto at ...626... (sig de) Date: Tue, 23 Jun 2009 16:10:05 +0700 Subject: [Gambas-user] Welcome to QT4! In-Reply-To: <200906221320.37971.gambas@...1...> References: <200906221320.37971.gambas@...1...> Message-ID: Hi Benoit, I am sorry, I have questions with differnet topic. I try t shutdown comp with script like this : SHELL "halt" or SHELL "reboot" But it can't work because need the password. Could you mind tohelp me? Thanks a lot Best Regards Sigit 2009/6/22 Beno?t Minisini > Hi, > > Since the last revision of the development version, I think that now gb.qt4 > is > stable enough to replace gb.qt. > > So I invite everyone using the development version to switch from gb.qt to > gb.qt4 in their project, and to report any problem or regression they get. > > In the future, gb.qt will be "deprecated". It will be renamed "gb.qt3", and > "gb.qt4" will become "gb.qt". > > Regards, > > -- > Beno?t > > > ------------------------------------------------------------------------------ > Are you an open source citizen? Join us for the Open Source Bridge > conference! > Portland, OR, June 17-19. Two days of sessions, one day of unconference: > $250. > Need another reason to go? 24-hour hacker lounge. Register today! > > http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From oceanosoftlapalma at ...626... Tue Jun 23 11:43:27 2009 From: oceanosoftlapalma at ...626... (=?ISO-8859-1?Q?Ricardo_D=EDaz_Mart=EDn?=) Date: Tue, 23 Jun 2009 11:43:27 +0200 Subject: [Gambas-user] Welcome to QT4! In-Reply-To: References: <200906221320.37971.gambas@...1...> Message-ID: In gnome, you can use gnomesu any_command (if you got this installed) or in debian gksu any_comand to force the user put root pwd. You can do an SHEL "gnsu reboot" and then, if the user put right password the system will be rebooted. I remember in kde there are the same comands kdesu (or something like this), Please, next time open different topic (it's free of charge... ;-) 2009/6/23 sig de > Hi Benoit, > > I am sorry, I have questions with differnet topic. > > I try t shutdown comp with script like this : > > SHELL "halt" or SHELL "reboot" > > But it can't work because need the password. > > Could you mind tohelp me? > > > Thanks a lot > > > Best Regards > Sigit > > > > > > 2009/6/22 Beno?t Minisini > > > Hi, > > > > Since the last revision of the development version, I think that now > gb.qt4 > > is > > stable enough to replace gb.qt. > > > > So I invite everyone using the development version to switch from gb.qt > to > > gb.qt4 in their project, and to report any problem or regression they > get. > > > > In the future, gb.qt will be "deprecated". It will be renamed "gb.qt3", > and > > "gb.qt4" will become "gb.qt". > > > > Regards, > > > > -- > > Beno?t > > > > > > > ------------------------------------------------------------------------------ > > Are you an open source citizen? Join us for the Open Source Bridge > > conference! > > Portland, OR, June 17-19. Two days of sessions, one day of unconference: > > $250. > > Need another reason to go? 24-hour hacker lounge. Register today! > > > > > http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > Are you an open source citizen? Join us for the Open Source Bridge > conference! > Portland, OR, June 17-19. Two days of sessions, one day of unconference: > $250. > Need another reason to go? 24-hour hacker lounge. Register today! > > http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From sktan007 at ...43... Tue Jun 23 12:25:27 2009 From: sktan007 at ...43... (Swee Kwang Tan) Date: Tue, 23 Jun 2009 03:25:27 -0700 (PDT) Subject: [Gambas-user] Gambas-user Digest, Vol 37, Issue 29 Message-ID: <980097.90270.qm@...2219...> Dear Sir, Thank you for your reply, after execute the line "#rpm -ivh --nodeps gambas2-gb-db-postgresql-2.13.1-1.fc11.i586" fedora 11 said "no such file or directory". The following is the simplify program PRIVATE $res AS Result PRIVATE $Con AS NEW Connection PRIVATE SUB OpenDataBase() $Con.Close() $Con.Type = "postgresql" $Con.Host = "localhost" $Con.Login = "fate" $Con.Port = "5432" $Con.Name = "mydb" $Con.Password = "zA3)8p(#" $Con.Open() ' Open the connection $res = $Con..exec("select * from myTable;") END This program is just a input data form, after click run button, there is no error message, and no input form shown. if the last 2 line $con.open() $res = $con.exec("select * from myTable;") are not execute, then you will have two error message, like following (InputDef:3256): Gdk-CRITICAL **: gdk_x11_atom_to_xatom_for_display: assertion `atom != GDK_NONE' failed (InputDef:3256): Gdk-CRITICAL **: gdk_x11_atom_to_xatom_for_display: assertion `atom != GDK_NONE' failed but the input form will be show out. Thank you _______________________________________ ???????????? http://cn.mail.yahoo.com From Karl.Reinl at ...9... Tue Jun 23 13:01:54 2009 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Tue, 23 Jun 2009 13:01:54 +0200 Subject: [Gambas-user] Gambas-user Digest, Vol 37, Issue 29 In-Reply-To: <980097.90270.qm@...2219...> References: <980097.90270.qm@...2219...> Message-ID: <1245754914.6512.9.camel@...40...> Am Dienstag, den 23.06.2009, 03:25 -0700 schrieb Swee Kwang Tan: > fedora 11 Salut, I do not know where fedora 11 stores its' gambas lib files (normaly /usr/local/lib/gambas) nor witch gambas version you use ? but look at your box if this files or links : gb.db.postgresql.component gb.db.postgresql.la gb.db.postgresql.so -> gb.db.postgresql.so.0.0.0 gb.db.postgresql.so.0 -> gb.db.postgresql.so.0.0.0 gb.db.postgresql.so.0.0.0 If not you can not open a postgresql DB. -- Amicalment Charlie From smccuan at ...626... Tue Jun 23 14:07:37 2009 From: smccuan at ...626... (Shawn McCuan) Date: Tue, 23 Jun 2009 08:07:37 -0400 Subject: [Gambas-user] PLEASE REMOVE YOUR MAIL LIST: YOU'RE FILLING UP MY MAILBOX WITH JUNK! In-Reply-To: <20090622182737.51330887@...2218...> References: <958804.78258.qm@...2214...> <20090622182737.51330887@...2218...> Message-ID: <1245758857.1748.0.camel@...2201...> On Mon, 2009-06-22 at 18:27 +0200, David Paleino wrote: > Once again, > > https://lists.sourceforge.net/lists/listinfo/gambas-user Chances are he's not even reading the responses. From kobolds at ...2041... Tue Jun 23 15:16:00 2009 From: kobolds at ...2041... (kobolds) Date: Tue, 23 Jun 2009 06:16:00 -0700 (PDT) Subject: [Gambas-user] site like rbgarage for gambas Message-ID: <24165777.post@...1379...> I wonder is there any site like rbgarage but for gambas out there ? site like that very important for developer where you can share your works , other users can download code and see how things can be done . -- View this message in context: http://www.nabble.com/site-like-rbgarage-for-gambas-tp24165777p24165777.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Tue Jun 23 15:32:21 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Tue, 23 Jun 2009 15:32:21 +0200 Subject: [Gambas-user] GridEditor In-Reply-To: <799be1690906222153t3425f88dj5dab4954780540f0@...627...> References: <799be1690906212139we1bacc4mde65d65a997d8ff@...627...> <4A3F9388.5080906@...17...> <799be1690906222153t3425f88dj5dab4954780540f0@...627...> Message-ID: <200906231532.21882.gambas@...1...> > Attached is the relevant code/database. It's all very small. Essentially, > I'm trying to decipher how GridEditor works--so I've added some notes to > the source while I pick through it. > > I figured out the signal 11, it was in the SQL I was successfully > malforming. :-) > A signal 11 is a bug, so can you tell me how to reproduce the crash too? -- Beno?t From gambas at ...1... Tue Jun 23 15:31:05 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Tue, 23 Jun 2009 15:31:05 +0200 Subject: [Gambas-user] Welcome to QT4! In-Reply-To: References: <200906221320.37971.gambas@...1...> Message-ID: <200906231531.05992.gambas@...1...> > Hi all, > > I've get latest svn compiled without problem but when I run it I get: > > ERROR: #27: Cannot load component '/opt/gbx3/lib/gambas3/gb.qt4.so': > /opt/gbx3/lib/gambas3/gb.qt4.so: undefined symbol: > _ZNK14SystemTrayIcon10metaObjectEv > > > gb.qt4.so is linked ok: > > ldd /opt/gbx3/lib/gambas3/gb.qt4.so > linux-gate.so.1 => (0xffffe000) > libQt3Support.so.4 => /usr/lib/libQt3Support.so.4 (0xb7d17000) > libQtGui.so.4 => /usr/lib/libQtGui.so.4 (0xb7321000) > libQtNetwork.so.4 => /usr/lib/libQtNetwork.so.4 (0xb7206000) > libQtSql.so.4 => /usr/lib/libQtSql.so.4 (0xb71ca000) > libQtCore.so.4 => /usr/lib/libQtCore.so.4 (0xb6f8e000) > libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb6e9e000) > libm.so.6 => /lib/i686/libm.so.6 (0xb6e75000) > libc.so.6 => /lib/i686/libc.so.6 (0xb6d11000) > libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb6cf3000) > libQtXml.so.4 => /usr/lib/libQtXml.so.4 (0xb6cb0000) > libpthread.so.0 => /lib/i686/libpthread.so.0 (0xb6c95000) > libpng12.so.0 => /usr/lib/libpng12.so.0 (0xb6c6a000) > libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb6be6000) > libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0 (0xb6ba1000) > libSM.so.6 => /usr/lib/libSM.so.6 (0xb6b97000) > libICE.so.6 => /usr/lib/libICE.so.6 (0xb6b7c000) > libz.so.1 => /lib/libz.so.1 (0xb6b68000) > libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0xb6aa4000) > libXrender.so.1 => /usr/lib/libXrender.so.1 (0xb6a9b000) > libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0xb6a6a000) > libXext.so.6 => /usr/lib/libXext.so.6 (0xb6a58000) > libX11.so.6 => /usr/lib/libX11.so.6 (0xb6912000) > libgthread-2.0.so.0 => /usr/lib/libgthread-2.0.so.0 (0xb690c000) > librt.so.1 => /lib/i686/librt.so.1 (0xb6902000) > libdl.so.2 => /lib/libdl.so.2 (0xb68fd000) > /lib/ld-linux.so.2 (0xb80c1000) > libpcre.so.0 => /lib/libpcre.so.0 (0xb68cd000) > libxml2.so.2 => /usr/lib/libxml2.so.2 (0xb677b000) > libxcb.so.1 => /usr/lib/libxcb.so.1 (0xb675d000) > libXau.so.6 => /usr/lib/libXau.so.6 (0xb6759000) > libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb6752000) > > > I'm using mandriva cooker with qt version 4.5.1 . > > thank's, > marco. Did you do a ./reconf ? This is needed when some files are added. You see that in the subversion log, when it says "Added paths" just after "Modified paths". -- Beno?t From jshackney at ...626... Tue Jun 23 17:07:21 2009 From: jshackney at ...626... (Jason Hackney) Date: Tue, 23 Jun 2009 11:07:21 -0400 Subject: [Gambas-user] GridEditor In-Reply-To: <200906231532.21882.gambas@...1...> References: <799be1690906212139we1bacc4mde65d65a997d8ff@...627...> <4A3F9388.5080906@...17...> <799be1690906222153t3425f88dj5dab4954780540f0@...627...> <200906231532.21882.gambas@...1...> Message-ID: <799be1690906230807i2230a5ddg8b03579723f53674@...627...> Attached is the code that will cause the Sig11. This is the error I'm seeing: (testGridEditor:14683): Gtk-WARNING **: gtk_widget_size_allocate(): attempt to allocate widget with width -3 and height -3 (testGridEditor:14683): Gtk-CRITICAL **: gtk_entry_set_text: assertion `text != NULL' failed To reproduce: Double-click a field in the Legs column to edit. Change the value to be empty. Double-click the next field in the Legs column to edit. That should raise the Signal 11. Take care, -jason -------------- next part -------------- A non-text attachment was scrubbed... Name: testGridEditor-0.0.0.tar.gz Type: application/x-gzip Size: 8836 bytes Desc: not available URL: From tmp2009 at ...2180... Tue Jun 23 17:06:37 2009 From: tmp2009 at ...2180... (nero) Date: Tue, 23 Jun 2009 17:06:37 +0200 Subject: [Gambas-user] Welcome to QT4! References: <200906221320.37971.gambas@...1...> <200906231531.05992.gambas@...1...> Message-ID: Beno?t Minisini wrote: >> Hi all, >> >> I've get latest svn compiled without problem but when I run it I get: >> ERROR: #27: Cannot load component '/opt/gbx3/lib/gambas3/gb.qt4.so': > > ... > > Did you do a ./reconf ? This is needed when some files are added. You see > that in the subversion log, when it says "Added paths" just after > "Modified paths". ok , now it work perfectly. thank's, marco. -- - Cosa fa un cancro nel cervello di un carabiniere? - Muore di fame! -- Da it.hobby.umorismo From gambas at ...1... Tue Jun 23 17:45:22 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Tue, 23 Jun 2009 17:45:22 +0200 Subject: [Gambas-user] GridEditor In-Reply-To: <799be1690906230807i2230a5ddg8b03579723f53674@...627...> References: <799be1690906212139we1bacc4mde65d65a997d8ff@...627...> <200906231532.21882.gambas@...1...> <799be1690906230807i2230a5ddg8b03579723f53674@...627...> Message-ID: <200906231745.23049.gambas@...1...> > Attached is the code that will cause the Sig11. > > This is the error I'm seeing: > > (testGridEditor:14683): Gtk-WARNING **: gtk_widget_size_allocate(): attempt > to allocate widget with width -3 and height -3 > > (testGridEditor:14683): Gtk-CRITICAL **: gtk_entry_set_text: assertion > `text != NULL' failed > > > To reproduce: > > Double-click a field in the Legs column to edit. Change the value to be > empty. Double-click the next field in the Legs column to edit. That should > raise the Signal 11. > > Take care, > -jason For specific GridEditor problems, you must see with Gareth Bult, its author. I will install it just to debug the crash. Regards, -- Beno?t From gambas at ...1... Tue Jun 23 18:17:18 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Tue, 23 Jun 2009 18:17:18 +0200 Subject: [Gambas-user] GridEditor In-Reply-To: <200906231745.23049.gambas@...1...> References: <799be1690906212139we1bacc4mde65d65a997d8ff@...627...> <799be1690906230807i2230a5ddg8b03579723f53674@...627...> <200906231745.23049.gambas@...1...> Message-ID: <200906231817.18881.gambas@...1...> > > Attached is the code that will cause the Sig11. > > > > This is the error I'm seeing: > > > > (testGridEditor:14683): Gtk-WARNING **: gtk_widget_size_allocate(): > > attempt to allocate widget with width -3 and height -3 > > > > (testGridEditor:14683): Gtk-CRITICAL **: gtk_entry_set_text: assertion > > `text != NULL' failed > > > > > > To reproduce: > > > > Double-click a field in the Legs column to edit. Change the value to be > > empty. Double-click the next field in the Legs column to edit. That > > should raise the Signal 11. > > > > Take care, > > -jason > > For specific GridEditor problems, you must see with Gareth Bult, its > author. I will install it just to debug the crash. > > Regards, GridEditor resizes itself when it wants, which is a bad implementation idea as sometimes the ClientW and ClientH property of Container classes (especially TabStrip) is not accurate in some components which delay the layouting of their widgets. So to have a correct behaviour, you have to tell him to resize at the right moment, which is in the Arrange evenement of its container. Hopefully the internal magic routine that resizes the GridEditor is public, and its name is Resize. Which is a bad idea too, as it overrides the public Resize() method of the Control class. So: PUBLIC SUB tabs_Arrange() grid.Resize END And you will see things as expected. As for the crash, I have fixed the bug in revision #2039. Regards, -- Beno?t From jshackney at ...626... Tue Jun 23 19:14:22 2009 From: jshackney at ...626... (Jason Hackney) Date: Tue, 23 Jun 2009 13:14:22 -0400 Subject: [Gambas-user] GridEditor In-Reply-To: <200906231817.18881.gambas@...1...> References: <799be1690906212139we1bacc4mde65d65a997d8ff@...627...> <799be1690906230807i2230a5ddg8b03579723f53674@...627...> <200906231745.23049.gambas@...1...> <200906231817.18881.gambas@...1...> Message-ID: <799be1690906231014jbbc5367p478bae2596fe267b@...627...> Wow, thanks for the expedient response, Beno?t! From juanibaz at ...626... Tue Jun 23 23:48:15 2009 From: juanibaz at ...626... (Juan Ibaceta) Date: Tue, 23 Jun 2009 14:48:15 -0700 (PDT) Subject: [Gambas-user] Invitation to connect on LinkedIn Message-ID: <2028479278.2391456.1245793695452.JavaMail.app@...2221...> LinkedIn ------------ mailing, I'd like to add you to my professional network on LinkedIn. - Juan Learn more: https://www.linkedin.com/e/isd/627763211/zbTBuiAH/ ------ (c) 2009, LinkedIn Corporation From steven at ...2097... Wed Jun 24 03:33:35 2009 From: steven at ...2097... (Steven James Drinnan) Date: Wed, 24 Jun 2009 09:33:35 +0800 Subject: [Gambas-user] Swee Kwang Tan: postgresql In-Reply-To: <1245754914.6512.9.camel@...40...> References: <980097.90270.qm@...2219...> <1245754914.6512.9.camel@...40...> Message-ID: <1245807217.2966.71.camel@...2011...> Hi, What is exactly happening. I use F11 and running gambas2.13.1 As I never used postgresql before I prefer mysql but never mind. I tried to use the example "Picture Database' and changed to postgresql by opening the main forms code and uncommenting the postgresql part. It did not work - but I realized that postgresql was not installed. So I installed postgresql and postgresql server by su yum install postgresql postgresql-server then once installed i ran code: chkconfig postgresql on service postgresql initdb service postgresql start endcode: to make sure it was started i ran service postgresql restart I ran the example again but still no luck, but after some digging I found this. Need to change this file to 'trust' as su code: gedit /var/lib/pgsql/data/pg_hba.conf end code: find this section # TYPE DATABASE USER CIDR-ADDRESS METHOD # "local" is for Unix domain socket connections only local all all ident sameuser # IPv4 local connections: host all all 127.0.0.1/32 ident sameuser # IPv6 local connections: host all all ::1/128 ident sameuser and change ident to trust like so # TYPE DATABASE USER CIDR-ADDRESS METHOD # "local" is for Unix domain socket connections only local all all trust sameuser # IPv4 local connections: host all all 127.0.0.1/32 trust sameuser # IPv6 local connections: host all all ::1/128 ident sameuser Restart postgresql code: service postgresql restart end code: I tried again and now I can connect. So have a look at your setup. Fedora may have the rpm packages set up wrong but they do all work i.e they are complete. Just make sure you have the gambas db component installed Tell me how you get on. Steven On Tue, \ 2009-06-23 at 13:01 +0200, Charlie Reinl wrote: > Am Dienstag, den 23.06.2009, 03:25 -0700 schrieb Swee Kwang Tan: > > fedora 11 > > Salut, > > I do not know where fedora 11 stores its' gambas lib files > (normaly /usr/local/lib/gambas) > nor witch gambas version you use ? > > but look at your box if this files or links : > gb.db.postgresql.component > gb.db.postgresql.la > gb.db.postgresql.so -> gb.db.postgresql.so.0.0.0 > gb.db.postgresql.so.0 -> gb.db.postgresql.so.0.0.0 > gb.db.postgresql.so.0.0.0 > > If not you can not open a postgresql DB. > From steven at ...2097... Wed Jun 24 03:35:08 2009 From: steven at ...2097... (Steven James Drinnan) Date: Wed, 24 Jun 2009 09:35:08 +0800 Subject: [Gambas-user] Charlie Reinl: postgresql (sorry wrong name) In-Reply-To: <1245754914.6512.9.camel@...40...> References: <980097.90270.qm@...2219...> <1245754914.6512.9.camel@...40...> Message-ID: <1245807310.2966.72.camel@...2011...> Hi, What is exactly happening. I use F11 and running gambas2.13.1 As I never used postgresql before I prefer mysql but never mind. I tried to use the example "Picture Database' and changed to postgresql by opening the main forms code and uncommenting the postgresql part. It did not work - but I realized that postgresql was not installed. So I installed postgresql and postgresql server by su yum install postgresql postgresql-server then once installed i ran code: chkconfig postgresql on service postgresql initdb service postgresql start endcode: to make sure it was started i ran service postgresql restart I ran the example again but still no luck, but after some digging I found this. Need to change this file to 'trust' as su code: gedit /var/lib/pgsql/data/pg_hba.conf end code: find this section # TYPE DATABASE USER CIDR-ADDRESS METHOD # "local" is for Unix domain socket connections only local all all ident sameuser # IPv4 local connections: host all all 127.0.0.1/32 ident sameuser # IPv6 local connections: host all all ::1/128 ident sameuser and change ident to trust like so # TYPE DATABASE USER CIDR-ADDRESS METHOD # "local" is for Unix domain socket connections only local all all trust sameuser # IPv4 local connections: host all all 127.0.0.1/32 trust sameuser # IPv6 local connections: host all all ::1/128 ident sameuser Restart postgresql code: service postgresql restart end code: I tried again and now I can connect. So have a look at your setup. Fedora may have the rpm packages set up wrong but they do all work i.e they are complete. Just make sure you have the gambas db component installed Tell me how you get on. Steven On Tue, \ 2009-06-23 at 13:01 +0200, Charlie Reinl wrote: > Am Dienstag, den 23.06.2009, 03:25 -0700 schrieb Swee Kwang Tan: > > fedora 11 > > Salut, > > I do not know where fedora 11 stores its' gambas lib files > (normaly /usr/local/lib/gambas) > nor witch gambas version you use ? > > but look at your box if this files or links : > gb.db.postgresql.component > gb.db.postgresql.la > gb.db.postgresql.so -> gb.db.postgresql.so.0.0.0 > gb.db.postgresql.so.0 -> gb.db.postgresql.so.0.0.0 > gb.db.postgresql.so.0.0.0 > > If not you can not open a postgresql DB. > From pinozollo at ...626... Wed Jun 24 15:54:52 2009 From: pinozollo at ...626... (Pino Zollo) Date: Wed, 24 Jun 2009 09:54:52 -0400 Subject: [Gambas-user] Format$ with different LANG Message-ID: <200906240954.52914.pinozollo@...626...> For LANG="POSIX" ? Format$(Val("14555888") / 1000, "#,###.000") 14,555.888 ...this is OK LANG="es_ES.utf8" and for LANG="it_IT.utf8" ? Format$(Val("14555888") / 1000, "#,###.000") 14 555,888 There is a space where should be a . but I can cope with it For LANG="ru_RU.utf8" ? Format$(Val("14555888") / 1000, "#,###.000") 14??555,888 where ?? are 3F3F . These are not recognised as UTF-8 valid characters. In my GAMBAS program actually the two "3F" are rapresented by squares. ( http://www.qsl.nqt/zp4kfx/Linux/dblog.html ) Best 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 pinozollo at ...626... Wed Jun 24 16:19:31 2009 From: pinozollo at ...626... (Pino Zollo) Date: Wed, 24 Jun 2009 10:19:31 -0400 Subject: [Gambas-user] Tar-1.3 for Slackware Message-ID: <200906241019.31535.pinozollo@...626...> Please where can I find tar-1.3 ? yahoo and google did not find it. It is required for generating the Slackware installation package. (Gambas 2.13 on Debian 5.0.1) 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 gambas at ...1... Wed Jun 24 16:45:08 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Wed, 24 Jun 2009 16:45:08 +0200 Subject: [Gambas-user] Format$ with different LANG In-Reply-To: <200906240954.52914.pinozollo@...626...> References: <200906240954.52914.pinozollo@...626...> Message-ID: <200906241645.09067.gambas@...1...> > For LANG="POSIX" > > ? Format$(Val("14555888") / 1000, "#,###.000") > 14,555.888 > > ...this is OK > > LANG="es_ES.utf8" and for LANG="it_IT.utf8" > > ? Format$(Val("14555888") / 1000, "#,###.000") > 14 555,888 > > There is a space where should be a . but I can cope with it > > For LANG="ru_RU.utf8" > > ? Format$(Val("14555888") / 1000, "#,###.000") > 14??555,888 > > where ?? are 3F3F . These are not recognised as UTF-8 valid characters. > > In my GAMBAS program actually the two "3F" are rapresented by squares. > > ( http://www.qsl.nqt/zp4kfx/Linux/dblog.html ) > > Best regards > > Pino On my Mandriva 2009, for es_ES.UTF-8, it_IT.UTF-8 and ru_RU.UTF-8 I get "14 555,888". Maybe this is a bug in the GNU spanish locale if you get a space whereas you want a point. I'm not spanish, so I can't be sure. And "3F3F" is a perfect valid UTF-8 byte sequence. It is actually ascii: "??" -- Beno?t From jclevien at ...626... Wed Jun 24 18:41:43 2009 From: jclevien at ...626... (Juan Jose Costello Levien) Date: Wed, 24 Jun 2009 13:41:43 -0300 Subject: [Gambas-user] Access a property via string (Introspection like) Message-ID: <1245861703.14499.84.camel@...2222...> Hello, I want to set a property value using strings for, accesing a form, then a grid, then a cell inside the grid, the text property and finally set the value for it. Here a wannabe code that obviously is failing to do the idea: PUBLIC SUB setMatrix(path AS String, dims AS Integer[], prop AS String, Valor AS String) ' Divido a path por los puntos DIM s AS String[] DIM cad AS String DIM c AS Control DIM g AS GridView DIM f AS Form DIM o AS Object DIM i AS Integer s = Split(path, ".") IF s.Count = 0 THEN Message("Revisar argumentos") END IF FOR i = 0 TO Windows.Count - 1 IF (Lower(s[0]) = Lower(Windows[i].Name)) THEN f = Windows[i] EXIT END IF NEXT IF NOT IsNull(f) THEN g = f[s[1]] g.row = dims[0] g.column = dims[1] Object.SetProperty(g.Current, prop, Valor) END IF END As you can imagine, Gambas stops on the "Object.SetProperty" line, complaining about that it cannot use the "virtual" class that g.Current belongs to. I need this because the idea is to access in runtime to any object/property/method from outside gambas (for example, a Python script). Any help would be greatly appreciated. -- Juan Jose Costello Levien jclevien at ...626... "Not good, not bad, only reasonable" "Ni bueno ni malo, solo razonable" ASCII ribbon campaign ( ) against HTML e-mail X / \ From gambas at ...1... Wed Jun 24 18:51:17 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Wed, 24 Jun 2009 18:51:17 +0200 Subject: [Gambas-user] Access a property via string (Introspection like) In-Reply-To: <1245861703.14499.84.camel@...2222...> References: <1245861703.14499.84.camel@...2222...> Message-ID: <200906241851.17948.gambas@...1...> > Hello, > > I want to set a property value using strings for, accesing a form, then > a grid, then a cell inside the grid, the text property and finally set > the value for it. > > Here a wannabe code that obviously is failing to do the idea: > > > PUBLIC SUB setMatrix(path AS String, dims AS Integer[], prop AS String, > Valor AS String) > > ' Divido a path por los puntos > > DIM s AS String[] > DIM cad AS String > DIM c AS Control > DIM g AS GridView > DIM f AS Form > DIM o AS Object > DIM i AS Integer > > > s = Split(path, ".") > > > IF s.Count = 0 THEN > Message("Revisar argumentos") > END IF > > FOR i = 0 TO Windows.Count - 1 > IF (Lower(s[0]) = Lower(Windows[i].Name)) THEN > f = Windows[i] > EXIT > END IF > NEXT > > IF NOT IsNull(f) THEN > > g = f[s[1]] > > > g.row = dims[0] > g.column = dims[1] > > > > Object.SetProperty(g.Current, prop, Valor) > END IF > > > > END > > As you can imagine, Gambas stops on the "Object.SetProperty" line, > complaining about that it cannot use the "virtual" class that g.Current > belongs to. > > I need this because the idea is to access in runtime to any > object/property/method from outside gambas (for example, a Python > script). > > Any help would be greatly appreciated. In the development version, you have an Assign() function that evaluates an assignment expression. It allows you to do what you want. -- Beno?t From rospolosco at ...152... Wed Jun 24 22:08:58 2009 From: rospolosco at ...152... (Stefano Palmeri) Date: Wed, 24 Jun 2009 22:08:58 +0200 Subject: [Gambas-user] Tar-1.3 for Slackware In-Reply-To: <200906241019.31535.pinozollo@...626...> References: <200906241019.31535.pinozollo@...626...> Message-ID: <200906242208.58662.rospolosco@...152...> Il mercoled? 24 giugno 2009 16:19:31 Pino Zollo ha scritto: > Please where can I find tar-1.3 ? > > yahoo and google did not find it. > > It is required for generating the Slackware installation package. > > (Gambas 2.13 on Debian 5.0.1) > > Regards > > Pino I think you're talking about tar-1.13. It's still maintained by Slackware because this is the version used to generate Slackware packages. It's still in current, even if Slackware is going to change the package archiver. Anyway, you find the source here: ftp://elektroni.phys.tut.fi/slackware-12.2/source/a/tar/ In order to use it, you have to apply the patch you find there, then compile it and rename the tar executable as tar-1.13, because for sure you've already a tar installed on your system. I suggest, you *don't* install tar-1.13, but only copy the renamed executable somewhere in your PATH so Gambas can find it. Ciao, Stefano From ed.snyder at ...2223... Wed Jun 24 18:21:25 2009 From: ed.snyder at ...2223... (Ed Snyder) Date: Wed, 24 Jun 2009 16:21:25 +0000 Subject: [Gambas-user] Gambas on Sabayon Message-ID: <4A425285.4020707@...2223...> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I am having trouble compiling Gambas on Sabayon. The ebuild produces a XML error and the downloaded src produces a SDL error. I am pretty sure I have all the prerequisites installed. So has anyone been able to get gambas working on Sabayon??? I had posted to the list earlier, but the moderator rejected it...no reason was given, but I'll assume it was due to the size/attachment of my output.txt file. I can post that file somewhere else if needed. Thanks for any help / info! -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkpCUoUACgkQPA8OxIWCWmVWIwCgxLBJK3ykslGAvNIICYVC3gcx NMgAniWy0H/ZLxVMXYBkhUfLPUCPdZHr =Xhzc -----END PGP SIGNATURE----- From Karl.Reinl at ...9... Wed Jun 24 22:59:05 2009 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Wed, 24 Jun 2009 22:59:05 +0200 Subject: [Gambas-user] Gambas on Sabayon In-Reply-To: <4A425285.4020707@...2223...> References: <4A425285.4020707@...2223...> Message-ID: <1245877145.6465.13.camel@...40...> Am Mittwoch, den 24.06.2009, 16:21 +0000 schrieb Ed Snyder: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > I am having trouble compiling Gambas on Sabayon. The ebuild produces a > XML error and the downloaded src produces a SDL error. I am pretty sure > I have all the prerequisites installed. So has anyone been able to get > gambas working on Sabayon??? > > I had posted to the list earlier, but the moderator rejected it...no > reason was given, but I'll assume it was due to the size/attachment of > my output.txt file. I can post that file somewhere else if needed. > > Thanks for any help / info! Salut , I ran gambas for several year on Gentoo, not always without troubles. You problems with SDL, you can workaround by ./configure -C --disable-sdl --disable-sdlsound till you solved the deps. -- Amicalment Charlie From rterry at ...1946... Thu Jun 25 06:52:18 2009 From: rterry at ...1946... (richard terry) Date: Thu, 25 Jun 2009 14:52:18 +1000 Subject: [Gambas-user] 2040 build gui observations Message-ID: <200906251452.18931.rterry@...1946...> I presume this is the new qt4 IDE. Must say this sucks a bit - very indistinct. I find it visually hard to ascertain which tab is the current one I'm working on as there is no clear difference. also, down the bottom in the search in sub, file, project buttons, they are very indistinct and hard to tell which one is depressed. Certainly if this is qt4 looks very much like clunky gtk!!! Regards Richard From doriano.blengino at ...1909... Thu Jun 25 08:02:08 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Thu, 25 Jun 2009 08:02:08 +0200 Subject: [Gambas-user] Format$ with different LANG In-Reply-To: <200906241645.09067.gambas@...1...> References: <200906240954.52914.pinozollo@...626...> <200906241645.09067.gambas@...1...> Message-ID: <4A4312E0.7030304@...1909...> Beno?t Minisini ha scritto: >> For LANG="POSIX" >> >> ? Format$(Val("14555888") / 1000, "#,###.000") >> 14,555.888 >> >> ...this is OK >> >> LANG="es_ES.utf8" and for LANG="it_IT.utf8" >> >> ? Format$(Val("14555888") / 1000, "#,###.000") >> 14 555,888 >> >> There is a space where should be a . but I can cope with it >> >> For LANG="ru_RU.utf8" >> >> ? Format$(Val("14555888") / 1000, "#,###.000") >> 14??555,888 >> >> where ?? are 3F3F . These are not recognised as UTF-8 valid characters. >> >> In my GAMBAS program actually the two "3F" are rapresented by squares. >> >> ( http://www.qsl.nqt/zp4kfx/Linux/dblog.html ) >> >> Best regards >> >> Pino >> > > On my Mandriva 2009, for es_ES.UTF-8, it_IT.UTF-8 and ru_RU.UTF-8 I get "14 > 555,888". > > Maybe this is a bug in the GNU spanish locale if you get a space whereas you > want a point. I'm not spanish, so I can't be sure. > > And "3F3F" is a perfect valid UTF-8 byte sequence. It is actually ascii: "??" > I confirm that number formatting (and perhaps dates too - can't remember well) don't work as expected in italian locale (tried on Debian systems and recent Ubuntu's); I had to implement my specialized routines to do that. Particularly annoying was the space instead of dot, but also the date as MM/DD/YYYY in some situation. This is not to say that gambas has some kind of problem, but perhaps some investigation (and some improvement) can be done. When writing my formatting routines, at the time, I didn't want to ignore completely the system settings, so I tried first to deduce the correct character to use and the correct order for D/M/Y querying the system. It was tought (no straight way to that), and lastly I had to do ugly tricks. Regards, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From sktan007 at ...43... Thu Jun 25 08:39:18 2009 From: sktan007 at ...43... (sktan007 at ...43...) Date: Wed, 24 Jun 2009 23:39:18 -0700 (PDT) Subject: [Gambas-user] =?utf-8?q?RE=EF=BC=9A_Gambas-user_Digest=2C_Vol_37?= =?utf-8?q?=2C_Issue_42?= Message-ID: <717557.8568.qm@...2213...> Dear Sir, Thank you for Mr. Steven solve my problem, my program can work now!!! But I've another two problem, the first is that I've a input form , there is ten textbox belong to a group, I wish to initial the the ten textbox by a string array, like this dim sName[10] as string dim i as integer .. .. .. for i = 0 to 9 ????????? textBox[i].tag.text = sName[i] next How do I write it ?, the tag can't work here. The second is about string define style, usually we define a string array like that,? public ss as string[] = ["jjk", "000", "hjkh", "y9879"] if there is just a little string element, It can work normally, but if I've 50 or 100 string to initial the array, the program become hard to write, like this public ss as string[] = ["jkl||", "uoiu", "rew", "tw", "vvvc", "trt||", "uiou", "qe09", "jkfl;", "r8dvh"......"jkljl=u9r"] Gambas can't write to the next line, just write to one line, If there is something wrong, it hard to edit. I can write it like this public ss[100] as string ss[0] = "lkjl" ss[1] = "j8r" ss[2] = "mn" .. .. .. -. .. ss[50] = "4ioj" .. .. .. ss[99] = "4nlk" This style can work, but it is very stupid, How do I wirte it smart ? Thank you -- 09/6/24 (?)?gambas-user-request at lists.sourceforge.net ??? ???: gambas-user-request at lists.sourceforge.net ??: Gambas-user Digest, Vol 37, Issue 42 ???: gambas-user at lists.sourceforge.net ??: 2009?6?24?,?,??8:09 Send Gambas-user mailing list submissions to ??? gambas-user at lists.sourceforge.net To subscribe or unsubscribe via the World Wide Web, visit ??? https://lists.sourceforge.net/lists/listinfo/gambas-user or, via email, send a message with subject or body 'help' to ??? gambas-user-request at lists.sourceforge.net You can reach the person managing the list at ??? gambas-user-owner at lists.sourceforge.net When replying, please edit your Subject line so it is more specific than "Re: Contents of Gambas-user digest..." Today's Topics: ???1. Swee Kwang Tan: postgresql (Steven James Drinnan) ???2. Charlie Reinl: postgresql (sorry wrong name) ? ? ? (Steven James Drinnan) ???3. Format$ with different LANG (Pino Zollo) ???4. Tar-1.3 for Slackware (Pino Zollo) ???5. Re: Format$ with different LANG (Beno?t Minisini) ???6. Access a property via string (Introspection like) ? ? ? (Juan Jose Costello Levien) ???7. Re: Access a property via string (Introspection like) ? ? ? (Beno?t Minisini) ???8. Re: Tar-1.3 for Slackware (Stefano Palmeri) ---------------------------------------------------------------------- Message: 1 Date: Wed, 24 Jun 2009 09:33:35 +0800 From: Steven James Drinnan Subject: [Gambas-user] Swee Kwang Tan: postgresql To: mailing list for gambas users Message-ID: <1245807217.2966.71.camel at ...2011...> Content-Type: text/plain Hi, What is exactly happening. I use F11 and running gambas2.13.1 As I never used postgresql before I prefer mysql but never mind. I tried to use the example "Picture Database' and changed to postgresql by opening the main forms code and uncommenting the postgresql part. It did not work - but I realized that postgresql was not installed. So I installed postgresql and postgresql server by su yum install postgresql postgresql-server then once installed i ran code: ??? chkconfig postgresql on ??? service postgresql initdb ??? service postgresql start endcode: to make sure it was started i ran service postgresql restart I ran the example again but still no luck, but after some digging I found this. Need to change this file to 'trust' as su code: ??? gedit /var/lib/pgsql/data/pg_hba.conf end code: find this section # TYPE? DATABASE? ? USER? ? ? ? CIDR-ADDRESS? ? ? ? ? METHOD # "local" is for Unix domain socket connections only local???all? ? ? ???all? ? ? ? ? ? ? ? ? ? ? ? ? ? ???ident sameuser # IPv4 local connections: host? ? all? ? ? ???all? ? ? ???127.0.0.1/32? ? ? ? ? ident sameuser # IPv6 local connections: host? ? all? ? ? ???all? ? ? ???::1/128? ? ? ? ? ? ???ident sameuser and change ident to trust like so # TYPE? DATABASE? ? USER? ? ? ? CIDR-ADDRESS? ? ? ? ? METHOD # "local" is for Unix domain socket connections only local???all? ? ? ???all? ? ? ? ? ? ? ? ? ? ? ? ? ? ???trust sameuser # IPv4 local connections: host? ? all? ? ? ???all? ? ? ???127.0.0.1/32? ? ? ? ? trust sameuser # IPv6 local connections: host? ? all? ? ? ???all? ? ? ???::1/128? ? ? ? ? ? ???ident sameuser Restart postgresql code: service postgresql restart end code: I tried again and now I can connect. So have a look at your setup. Fedora may have the rpm packages set up wrong but they do all work i.e they are complete. Just make sure you have the gambas db component installed Tell me how you get on. Steven On Tue, \ 2009-06-23 at 13:01 +0200, Charlie Reinl wrote: > Am Dienstag, den 23.06.2009, 03:25 -0700 schrieb Swee Kwang Tan: > > fedora 11 > > Salut, > > I do not know where fedora 11 stores its' gambas lib files > (normaly /usr/local/lib/gambas) > nor witch gambas version you use ? > > but look at your box if this files or links? :? > ??? gb.db.postgresql.component > ??? gb.db.postgresql.la > ??? gb.db.postgresql.so -> gb.db.postgresql.so.0.0.0 > ??? gb.db.postgresql.so.0 -> gb.db.postgresql.so.0.0.0 > ??? gb.db.postgresql.so.0.0.0 > > If not you can not open a postgresql DB. > ------------------------------ Message: 2 Date: Wed, 24 Jun 2009 09:35:08 +0800 From: Steven James Drinnan Subject: [Gambas-user] Charlie Reinl: postgresql (sorry wrong name) To: mailing list for gambas users Message-ID: <1245807310.2966.72.camel at ...2011...> Content-Type: text/plain Hi, What is exactly happening. I use F11 and running gambas2.13.1 As I never used postgresql before I prefer mysql but never mind. I tried to use the example "Picture Database' and changed to postgresql by opening the main forms code and uncommenting the postgresql part. It did not work - but I realized that postgresql was not installed. So I installed postgresql and postgresql server by su yum install postgresql postgresql-server then once installed i ran code: ??? chkconfig postgresql on ??? service postgresql initdb ??? service postgresql start endcode: to make sure it was started i ran service postgresql restart I ran the example again but still no luck, but after some digging I found this. Need to change this file to 'trust' as su code: ??? gedit /var/lib/pgsql/data/pg_hba.conf end code: find this section # TYPE? DATABASE? ? USER? ? ? ? CIDR-ADDRESS? ? ? ? ? METHOD # "local" is for Unix domain socket connections only local???all? ? ? ???all? ? ? ? ? ? ? ? ? ? ? ? ? ? ???ident sameuser # IPv4 local connections: host? ? all? ? ? ???all? ? ? ???127.0.0.1/32? ? ? ? ? ident sameuser # IPv6 local connections: host? ? all? ? ? ???all? ? ? ???::1/128? ? ? ? ? ? ???ident sameuser and change ident to trust like so # TYPE? DATABASE? ? USER? ? ? ? CIDR-ADDRESS? ? ? ? ? METHOD # "local" is for Unix domain socket connections only local???all? ? ? ???all? ? ? ? ? ? ? ? ? ? ? ? ? ? ???trust sameuser # IPv4 local connections: host? ? all? ? ? ???all? ? ? ???127.0.0.1/32? ? ? ? ? trust sameuser # IPv6 local connections: host? ? all? ? ? ???all? ? ? ???::1/128? ? ? ? ? ? ???ident sameuser Restart postgresql code: service postgresql restart end code: I tried again and now I can connect. So have a look at your setup. Fedora may have the rpm packages set up wrong but they do all work i.e they are complete. Just make sure you have the gambas db component installed Tell me how you get on. Steven On Tue, \ 2009-06-23 at 13:01 +0200, Charlie Reinl wrote: > Am Dienstag, den 23.06.2009, 03:25 -0700 schrieb Swee Kwang Tan: > > fedora 11 > > Salut, > > I do not know where fedora 11 stores its' gambas lib files > (normaly /usr/local/lib/gambas) > nor witch gambas version you use ? > > but look at your box if this files or links? :? > ??? gb.db.postgresql.component > ??? gb.db.postgresql.la > ??? gb.db.postgresql.so -> gb.db.postgresql.so.0.0.0 > ??? gb.db.postgresql.so.0 -> gb.db.postgresql.so.0.0.0 > ??? gb.db.postgresql.so.0.0.0 > > If not you can not open a postgresql DB. > ------------------------------ Message: 3 Date: Wed, 24 Jun 2009 09:54:52 -0400 From: Pino Zollo Subject: [Gambas-user] Format$ with different LANG To: mailing list for gambas users Message-ID: <200906240954.52914.pinozollo at ...626...> Content-Type: text/plain;? charset="us-ascii" For LANG="POSIX" ? Format$(Val("14555888") / 1000, "#,###.000") 14,555.888 ....this is OK LANG="es_ES.utf8" and for LANG="it_IT.utf8" ? Format$(Val("14555888") / 1000, "#,###.000") 14 555,888 There is a space? where should be a . but I can cope with it For LANG="ru_RU.utf8"? ? Format$(Val("14555888") / 1000, "#,###.000") 14??555,888 ? where ?? are 3F3F . These are not recognised as UTF-8 valid characters. In my GAMBAS program actually the two "3F" are rapresented by squares. ( http://www.qsl.nqt/zp4kfx/Linux/dblog.html ) Best regards Pino -- Key ID: 0xF6768208 Key fingerprint = B16D 0A7C 5B29 A334 CE6A? 71F6 EAF8 3D88 F676 8208 Key server: hkp://wwwkeys.eu.pgp.net ------------------------------ Message: 4 Date: Wed, 24 Jun 2009 10:19:31 -0400 From: Pino Zollo Subject: [Gambas-user] Tar-1.3 for Slackware To: mailing list for gambas users Message-ID: <200906241019.31535.pinozollo at ...626...> Content-Type: text/plain;? charset="us-ascii" Please where can I find tar-1.3 ? yahoo and google did not find it. It is required for generating the Slackware installation package. (Gambas 2.13 on Debian 5.0.1) Regards Pino -- Key ID: 0xF6768208 Key fingerprint = B16D 0A7C 5B29 A334 CE6A? 71F6 EAF8 3D88 F676 8208 Key server: hkp://wwwkeys.eu.pgp.net ------------------------------ Message: 5 Date: Wed, 24 Jun 2009 16:45:08 +0200 From: Beno?t Minisini Subject: Re: [Gambas-user] Format$ with different LANG To: pinozollo at ...626...,??? mailing list for gambas users ??? Message-ID: <200906241645.09067.gambas at ...1...> Content-Type: Text/Plain;? charset="iso-8859-1" > For LANG="POSIX" > > ? Format$(Val("14555888") / 1000, "#,###.000") > 14,555.888 > > ...this is OK > > LANG="es_ES.utf8" and for LANG="it_IT.utf8" > > ? Format$(Val("14555888") / 1000, "#,###.000") > 14 555,888 > > There is a space? where should be a . but I can cope with it > > For LANG="ru_RU.utf8" > > ? Format$(Val("14555888") / 1000, "#,###.000") > 14??555,888 > >???where ?? are 3F3F . These are not recognised as UTF-8 valid characters. > > In my GAMBAS program actually the two "3F" are rapresented by squares. > > ( http://www.qsl.nqt/zp4kfx/Linux/dblog.html ) > > Best regards > > Pino On my Mandriva 2009, for es_ES.UTF-8, it_IT.UTF-8 and ru_RU.UTF-8 I get "14 555,888". Maybe this is a bug in the GNU spanish locale if you get a space whereas you want a point. I'm not spanish, so I can't be sure. And "3F3F" is a perfect valid UTF-8 byte sequence. It is actually ascii: "??" -- Beno?t ------------------------------ Message: 6 Date: Wed, 24 Jun 2009 13:41:43 -0300 From: Juan Jose Costello Levien Subject: [Gambas-user] Access a property via string (Introspection ??? like) To: mailing list for gambas users Message-ID: <1245861703.14499.84.camel at ...2222...> Content-Type: text/plain Hello, I want to set a property value using strings for, accesing a form, then a grid, then a cell inside the grid, the text property and finally set the value for it. Here a wannabe code that obviously is failing to do the idea: PUBLIC SUB setMatrix(path AS String, dims AS Integer[], prop AS String, Valor AS String) ? ? ? ' Divido a path por los puntos ? ? ? ? DIM s AS String[] ? ? DIM cad AS String ? ? DIM c AS Control ? ? DIM g AS GridView ? ? DIM f AS Form ? ? DIM o AS Object ? ? DIM i AS Integer ? ? ? ? s = Split(path, ".") ? ? ? ? ? ? IF s.Count = 0 THEN ? ? ? ? Message("Revisar argumentos") ? ? END IF ? ? FOR i = 0 TO Windows.Count - 1 ? ? ? ? IF (Lower(s[0]) = Lower(Windows[i].Name)) THEN ? ? ? ? ? ? f = Windows[i] ? ? ? ? ? ? EXIT ? ? ? ? END IF ? ? NEXT ? ? ? ? IF NOT IsNull(f) THEN ? ? ? ? ? ? g = f[s[1]] ? ? ? ? ? ? ??? ? ? ? ? g.row = dims[0] ? ? ? ? g.column = dims[1] ? ? ? ? ? ? ? ??? ? ? ? ? ? ? Object.SetProperty(g.Current, prop, Valor) ? ? END IF ? ? ? END As you can imagine, Gambas stops on the "Object.SetProperty" line, complaining about that it cannot use the "virtual" class that g.Current belongs to. I need this because the idea is to access in runtime to any object/property/method from outside gambas (for example, a Python script). Any help would be greatly appreciated. -- Juan Jose Costello Levien jclevien at ...626... "Not good, not bad, only reasonable" "Ni bueno ni malo, solo razonable" ASCII ribbon campaign ( ) against HTML e-mail???X ? ? ? ? ? ? ? ? ? ? ? / \ ------------------------------ Message: 7 Date: Wed, 24 Jun 2009 18:51:17 +0200 From: Beno?t Minisini Subject: Re: [Gambas-user] Access a property via string (Introspection ??? like) To: jclevien at ...626...,??? mailing list for gambas users ??? Message-ID: <200906241851.17948.gambas at ...1...> Content-Type: Text/Plain;? charset="iso-8859-1" > Hello, > > I want to set a property value using strings for, accesing a form, then > a grid, then a cell inside the grid, the text property and finally set > the value for it. > > Here a wannabe code that obviously is failing to do the idea: > > > PUBLIC SUB setMatrix(path AS String, dims AS Integer[], prop AS String, > Valor AS String) > >? ???' Divido a path por los puntos > >? ???DIM s AS String[] >? ???DIM cad AS String >? ???DIM c AS Control >? ???DIM g AS GridView >? ???DIM f AS Form >? ???DIM o AS Object >? ???DIM i AS Integer > > >? ???s = Split(path, ".") > > >? ???IF s.Count = 0 THEN >? ? ? ???Message("Revisar argumentos") >? ???END IF > >? ???FOR i = 0 TO Windows.Count - 1 >? ? ? ???IF (Lower(s[0]) = Lower(Windows[i].Name)) THEN >? ? ? ? ? ???f = Windows[i] >? ? ? ? ? ???EXIT >? ? ? ???END IF >? ???NEXT > >? ???IF NOT IsNull(f) THEN > >? ? ? ???g = f[s[1]] > > >? ? ? ???g.row = dims[0] >? ? ? ???g.column = dims[1] > > > >? ? ? ???Object.SetProperty(g.Current, prop, Valor) >? ???END IF > > > > END > > As you can imagine, Gambas stops on the "Object.SetProperty" line, > complaining about that it cannot use the "virtual" class that g.Current > belongs to. > > I need this because the idea is to access in runtime to any > object/property/method from outside gambas (for example, a Python > script). > > Any help would be greatly appreciated. In the development version, you have an Assign() function that evaluates an assignment expression. It allows you to do what you want. -- Beno?t ------------------------------ Message: 8 Date: Wed, 24 Jun 2009 22:08:58 +0200 From: Stefano Palmeri Subject: Re: [Gambas-user] Tar-1.3 for Slackware To: pinozollo at ...626...,??? mailing list for gambas users ??? Message-ID: <200906242208.58662.rospolosco at ...152...> Content-Type: text/plain;? charset="iso-8859-1" Il mercoled? 24 giugno 2009 16:19:31 Pino Zollo ha scritto: > Please where can I find tar-1.3 ? > > yahoo and google did not find it. > > It is required for generating the Slackware installation package. > > (Gambas 2.13 on Debian 5.0.1) > > Regards > > Pino I think you're talking about tar-1.13. It's still maintained by Slackware because this is the version used to generate Slackware packages. It's still in current, even if Slackware is going to change the package archiver. Anyway, you find the source here: ftp://elektroni.phys.tut.fi/slackware-12.2/source/a/tar/ In order to use it, you have to apply the patch you find there, then compile it and rename the tar executable as tar-1.13, because for sure you've already a tar installed on your system. I suggest, you *don't* install tar-1.13, but only copy the renamed executable somewhere in your PATH so Gambas can find it. Ciao, Stefano? ------------------------------ ------------------------------------------------------------------------------ ------------------------------ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user End of Gambas-user Digest, Vol 37, Issue 42 ******************************************* _______________________________________ ???????????? http://cn.mail.yahoo.com From steven at ...2097... Thu Jun 25 10:04:55 2009 From: steven at ...2097... (Steven James Drinnan) Date: Thu, 25 Jun 2009 16:04:55 +0800 Subject: [Gambas-user] =?utf-8?q?RE=EF=BC=9A_Gambas-user_Digest=2C_Vol_37?= =?utf-8?q?=2C_Issue_42?= In-Reply-To: <717557.8568.qm@...2213...> References: <717557.8568.qm@...2213...> Message-ID: <1245917096.7416.43.camel@...2011...> Part one loading multiple text boxes. there is no simple way but there is this you can go through all the controls of a form and see if is a text box. Example: You need one form, create 10 text boxes and one button rename the text boxes to txt01 txt02 ..... txt10 this is important so the program can keep track double click the button and put this code in it DIM mycontrol AS Object DIM mytxtbox AS TextBox DIM sname AS NEW String[10] DIM i AS Integer DIM ctrlNumber AS Integer 'add some data to the string FOR i = 65 TO 74 sname[i - 65] = Chr(i) 'this is just to fill data NEXT 'find each control and check it's type FOR EACH mycontrol IN ME.Controls IF mycontrol IS TextBox THEN mytxtbox = mycontrol ctrlNumber = Val(Right(mytxtbox.Name, -3)) 'returns the number part 3 being the length of the text mytxtbox.Tag = sname[ctrlNumber - 1] 'needs to be one less because of the array numbering you could just number your text boxes from 00 though. mytxtbox.Text = sname[ctrlNumber - 1] i = i + 1 END IF NEXT END Or just look at the example. By the way a tag on a control is a variant object type and therefore can contain anything. As for part 2, does any else know? To my knowledge that is limitation of Gambas sorry. On Wed, 2009-06-24 at 23:39 -0700, sktan007 at ...43... wrote: > Dear Sir, > Thank you for Mr. Steven solve my problem, my program can work now!!! > But I've another two problem, the first is that I've a input form , there is > ten textbox belong to a group, I wish to initial the the ten textbox by a string > array, like this > dim sName[10] as string > dim i as integer > .. > .. > .. > for i = 0 to 9 > textBox[i].tag.text = sName[i] > next > How do I write it ?, the tag can't work here. > The second is about string define style, usually we define a string array like > that, > public ss as string[] = ["jjk", "000", "hjkh", "y9879"] > if there is just a little string element, It can work normally, but if I've 50 or 100 > string to initial the array, the program become hard to write, like this > public ss as string[] = ["jkl||", "uoiu", "rew", "tw", "vvvc", "trt||", "uiou", "qe09", "jkfl;", "r8dvh"......"jkljl=u9r"] > Gambas can't write to the next line, just write to one line, If there is something > wrong, > it hard to edit. I can write it like this > public ss[100] as string > ss[0] = "lkjl" > ss[1] = "j8r" > ss[2] = "mn" > .. > .. > .. > -. > .. > ss[50] = "4ioj" > .. > .. > .. > ss[99] = "4nlk" > This style can work, but it is very stupid, How do I wirte it smart ? > Thank you > > -- 09/6/24 (?)?gambas-user-request at lists.sourceforge.net ??? > > ???: gambas-user-request at lists.sourceforge.net > ??: Gambas-user Digest, Vol 37, Issue 42 > ???: gambas-user at lists.sourceforge.net > ??: 2009?6?24?,?,??8:09 > > Send Gambas-user mailing list submissions to > gambas-user at lists.sourceforge.net > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/gambas-user > or, via email, send a message with subject or body 'help' to > gambas-user-request at lists.sourceforge.net > > You can reach the person managing the list at > gambas-user-owner at lists.sourceforge.net > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Gambas-user digest..." > > > Today's > Topics: > > 1. Swee Kwang Tan: postgresql (Steven James Drinnan) > 2. Charlie Reinl: postgresql (sorry wrong name) > (Steven James Drinnan) > 3. Format$ with different LANG (Pino Zollo) > 4. Tar-1.3 for Slackware (Pino Zollo) > 5. Re: Format$ with different LANG (Beno?t Minisini) > 6. Access a property via string (Introspection like) > (Juan Jose Costello Levien) > 7. Re: Access a property via string (Introspection like) > (Beno?t Minisini) > 8. Re: Tar-1.3 for Slackware (Stefano Palmeri) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Wed, 24 Jun 2009 09:33:35 +0800 > From: Steven James Drinnan > Subject: [Gambas-user] Swee Kwang Tan: postgresql > To: mailing list for gambas users > Message-ID: <1245807217.2966.71.camel at ...2011...> > Content-Type: text/plain > > Hi, > > What is exactly happening. I use F11 and running gambas2.13.1 > > As I never used postgresql before I prefer mysql but never mind. > > I tried to use the example "Picture Database' and changed to postgresql > by opening the main forms code and uncommenting the postgresql part. > > It did not work - but I realized that postgresql was not installed. > > So I installed postgresql and postgresql server > by > > su > yum install postgresql postgresql-server > > then once installed i ran > code: > chkconfig postgresql on > service postgresql initdb > service postgresql start > endcode: > > to make sure it was started i ran > service postgresql restart > > I ran the example again but still no luck, but after some digging I > found this. > > Need to change this file to 'trust' > > as su > code: > gedit /var/lib/pgsql/data/pg_hba.conf > end code: > > find this section > > # TYPE DATABASE USER CIDR-ADDRESS METHOD > > # "local" is for Unix domain socket connections only > local all all ident > sameuser > # IPv4 local connections: > host all all 127.0.0.1/32 ident sameuser > # IPv6 local connections: > host all all ::1/128 ident sameuser > > and change ident to trust like so > > # TYPE DATABASE USER CIDR-ADDRESS METHOD > > # "local" is for Unix domain socket connections only > local all all trust sameuser > # IPv4 local connections: > host all all > 127.0.0.1/32 trust sameuser > # IPv6 local connections: > host all all ::1/128 ident sameuser > > > Restart postgresql > code: > service postgresql restart > end code: > > I tried again and now I can connect. > > So have a look at your setup. Fedora may have the rpm packages set up > wrong but they do all work i.e they are complete. Just make sure you > have the gambas db component installed > > Tell me how you get on. > > Steven > > > > > > > > > On Tue, \ > 2009-06-23 at 13:01 +0200, Charlie Reinl wrote: > > Am Dienstag, den 23.06.2009, 03:25 -0700 schrieb Swee Kwang Tan: > > > fedora 11 > > > > Salut, > > > > I do not know where fedora 11 stores its' gambas lib files > > > (normaly /usr/local/lib/gambas) > > nor witch gambas version you use ? > > > > but look at your box if this files or links : > > gb.db.postgresql.component > > gb.db.postgresql.la > > gb.db.postgresql.so -> gb.db.postgresql.so.0.0.0 > > gb.db.postgresql.so.0 -> gb.db.postgresql.so.0.0.0 > > gb.db.postgresql.so.0.0.0 > > > > If not you can not open a postgresql DB. > > > > > > > ------------------------------ > > Message: 2 > Date: Wed, 24 Jun 2009 09:35:08 +0800 > From: Steven James Drinnan > Subject: [Gambas-user] Charlie Reinl: postgresql (sorry wrong name) > To: mailing list for gambas users > Message-ID: <1245807310.2966.72.camel at ...2011...> > Content-Type: text/plain > > Hi, > > What is exactly happening. I use F11 and running gambas2.13.1 > > As I never used postgresql before I prefer mysql but never mind. > > I tried to use the example "Picture Database' and changed to postgresql > by opening the main forms code and uncommenting the postgresql part. > > It did not work - but I realized that postgresql was not installed. > > So I installed postgresql and postgresql server by > > su > yum install postgresql postgresql-server > > then once installed i ran > code: > chkconfig postgresql on > service postgresql initdb > > service postgresql start > endcode: > > to make sure it was started i ran > service postgresql restart > > I ran the example again but still no luck, but after some digging I > found this. > > Need to change this file to 'trust' > > as su > code: > gedit /var/lib/pgsql/data/pg_hba.conf > end code: > > find this section > > # TYPE DATABASE USER CIDR-ADDRESS METHOD > > # "local" is for Unix domain socket connections only > local all all ident sameuser > # IPv4 local connections: > host all all 127.0.0.1/32 ident sameuser > # IPv6 local > connections: > host all all ::1/128 ident sameuser > > and change ident to trust like so > > # TYPE DATABASE USER CIDR-ADDRESS METHOD > > # "local" is for Unix domain socket connections only > local all all trust sameuser > # IPv4 local connections: > host all all 127.0.0.1/32 trust sameuser > # IPv6 local connections: > host all all > ::1/128 ident sameuser > > > Restart postgresql > code: > service postgresql restart > end code: > > I tried again and now I can connect. > > So have a look at your setup. Fedora may have the rpm packages set up > wrong but they do all work i.e they are complete. Just make sure you > have the gambas db component installed > > Tell me how you get on. > > Steven > > > > > > > > > On Tue, \ > 2009-06-23 at 13:01 +0200, Charlie Reinl wrote: > > Am Dienstag, den 23.06.2009, 03:25 -0700 schrieb Swee Kwang Tan: > > > fedora 11 > > > > Salut, > > > > I do not know where fedora 11 stores its' gambas lib files > > (normaly /usr/local/lib/gambas) > > nor witch gambas version you use ? > > > > but look at your box if this files or links : > > > gb.db.postgresql.component > > gb.db.postgresql.la > > gb.db.postgresql.so -> gb.db.postgresql.so.0.0.0 > > gb.db.postgresql.so.0 -> gb.db.postgresql.so.0.0.0 > > gb.db.postgresql.so.0.0.0 > > > > If not you can not open a postgresql DB. > > > > > > > ------------------------------ > > Message: 3 > Date: Wed, 24 Jun 2009 09:54:52 -0400 > From: Pino Zollo > Subject: [Gambas-user] Format$ with different LANG > To: mailing list for gambas users > Message-ID: <200906240954.52914.pinozollo at ...626...> > Content-Type: text/plain; charset="us-ascii" > > > For LANG="POSIX" > > ? Format$(Val("14555888") / 1000, "#,###.000") > 14,555.888 > > ....this is OK > > LANG="es_ES.utf8" and for LANG="it_IT.utf8" > > ? Format$(Val("14555888") / 1000, "#,###.000") > 14 555,888 > > There is a space where should be a . but I can cope with it > > For LANG="ru_RU.utf8" > > ? Format$(Val("14555888") / 1000, "#,###.000") > 14??555,888 > > where ?? are 3F3F . These are not recognised as UTF-8 valid characters. > > In my GAMBAS program actually the two "3F" are rapresented by squares. > > ( http://www.qsl.nqt/zp4kfx/Linux/dblog.html ) > > Best regards > > Pino > -- > Key ID: 0xF6768208 > Key fingerprint = B16D 0A7C 5B29 > A334 CE6A 71F6 EAF8 3D88 F676 8208 > Key server: hkp://wwwkeys.eu.pgp.net > > > > ------------------------------ > > Message: 4 > Date: Wed, 24 Jun 2009 10:19:31 -0400 > From: Pino Zollo > Subject: [Gambas-user] Tar-1.3 for Slackware > To: mailing list for gambas users > Message-ID: <200906241019.31535.pinozollo at ...626...> > Content-Type: text/plain; charset="us-ascii" > > Please where can I find tar-1.3 ? > > yahoo and google did not find it. > > It is required for generating the Slackware installation > package. > > (Gambas 2.13 on Debian 5.0.1) > > Regards > > Pino > -- > Key ID: 0xF6768208 > Key fingerprint = B16D 0A7C 5B29 A334 CE6A 71F6 EAF8 3D88 F676 8208 > Key server: hkp://wwwkeys.eu.pgp.net > > > > ------------------------------ > > Message: 5 > Date: Wed, 24 Jun 2009 16:45:08 +0200 > From: Beno?t Minisini > Subject: Re: [Gambas-user] Format$ with different LANG > To: pinozollo at ...626..., mailing list for gambas users > > Message-ID: <200906241645.09067.gambas at ...1...> > Content-Type: Text/Plain; charset="iso-8859-1" > > > For LANG="POSIX" > > > > ? Format$(Val("14555888") / 1000, "#,###.000") > > 14,555.888 > > > > ...this is OK > > > > LANG="es_ES.utf8" and for LANG="it_IT.utf8" > > > > ? Format$(Val("14555888") / 1000, "#,###.000") > > 14 555,888 > > > > There is a space where should be a . but I can cope with it > > > > For LANG="ru_RU.utf8" > > > > ? Format$(Val("14555888") / 1000, "#,###.000") > > 14??555,888 > > > > where ?? are 3F3F . These are not recognised as UTF-8 valid characters. > > > > In my GAMBAS program actually the two "3F" are rapresented by squares. > > > > ( http://www.qsl.nqt/zp4kfx/Linux/dblog.html ) > > > > Best regards > > > > Pino > > On my Mandriva 2009, for es_ES.UTF-8, it_IT.UTF-8 and ru_RU.UTF-8 I get "14 > 555,888". > > Maybe this is a bug in the GNU spanish locale if you get a space whereas you > want a point. I'm not spanish, so I can't be sure. > > And "3F3F" is a perfect valid UTF-8 byte sequence. It is actually ascii: "??" > > -- > Beno?t > > > > ------------------------------ > > Message: 6 > Date: Wed, 24 Jun 2009 13:41:43 -0300 > From: Juan Jose Costello Levien > Subject: [Gambas-user] Access a property via string (Introspection > like) > To: mailing list for gambas users > Message-ID: <1245861703.14499.84.camel at ...2222...> > Content-Type: text/plain > > Hello, > > I want to set a property value using strings for, accesing a form, then > a grid, then a cell inside the grid, the text property and finally set > the value for it. > > Here a wannabe code that obviously is failing to do the idea: > > > PUBLIC SUB setMatrix(path AS String, dims AS Integer[], prop AS String, > Valor AS String) > > ' Divido a path por los puntos > > DIM s AS String[] > DIM cad AS String > DIM c AS Control > DIM g AS GridView > DIM f AS Form > DIM o AS Object > DIM i AS Integer > > > s = Split(path, ".") > > > > IF s.Count = 0 THEN > Message("Revisar argumentos") > END IF > > FOR i = 0 TO Windows.Count - 1 > IF (Lower(s[0]) = Lower(Windows[i].Name)) THEN > f = Windows[i] > EXIT > END IF > NEXT > > IF NOT IsNull(f) THEN > > g = f[s[1]] > > > g.row = dims[0] > g.column = dims[1] > > > > Object.SetProperty(g.Current, prop, Valor) > END IF > > > > END > > As you can imagine, Gambas > stops on the "Object.SetProperty" line, > complaining about that it cannot use the "virtual" class that g.Current > belongs to. > > I need this because the idea is to access in runtime to any > object/property/method from outside gambas (for example, a Python > script). > > Any help would be greatly appreciated. > > > > > -- > Juan Jose Costello Levien > jclevien at ...626... > > "Not good, not bad, only reasonable" > "Ni bueno ni malo, solo razonable" > > ASCII ribbon campaign ( ) > against HTML e-mail X > / \ > > > > > > > ------------------------------ > > Message: 7 > Date: Wed, 24 Jun 2009 18:51:17 +0200 > From: Beno?t Minisini > Subject: Re: [Gambas-user] Access a property via string (Introspection > like) > To: jclevien at ...626..., mailing list for gambas users > > Message-ID: <200906241851.17948.gambas at ...1...> > Content-Type: Text/Plain; charset="iso-8859-1" > > > Hello, > > > > I want to set a property value using strings for, accesing a form, then > > a grid, then a cell inside the grid, the text property > and finally set > > the value for it. > > > > Here a wannabe code that obviously is failing to do the idea: > > > > > > PUBLIC SUB setMatrix(path AS String, dims AS Integer[], prop AS String, > > Valor AS String) > > > > ' Divido a path por los puntos > > > > DIM s AS String[] > > DIM cad AS String > > DIM c AS Control > > DIM g AS GridView > > DIM f AS Form > > DIM o AS Object > > DIM i AS Integer > > > > > > s = Split(path, ".") > > > > > > IF s.Count = 0 THEN > > Message("Revisar argumentos") > > END IF > > > > FOR i = 0 TO > Windows.Count - 1 > > IF (Lower(s[0]) = Lower(Windows[i].Name)) THEN > > f = Windows[i] > > EXIT > > END IF > > NEXT > > > > IF NOT IsNull(f) THEN > > > > g = f[s[1]] > > > > > > g.row = dims[0] > > g.column = dims[1] > > > > > > > > Object.SetProperty(g.Current, prop, Valor) > > END IF > > > > > > > > END > > > > As you can imagine, Gambas stops on the "Object.SetProperty" line, > > complaining about that it cannot use the "virtual" class that > g.Current > > belongs to. > > > > I need this because the idea is to access in runtime to any > > object/property/method from outside gambas (for example, a Python > > script). > > > > Any help would be greatly appreciated. > > In the development version, you have an Assign() function that evaluates an > assignment expression. It allows you to do what you want. > > -- > Beno?t > > > > ------------------------------ > > Message: 8 > Date: Wed, 24 Jun 2009 22:08:58 +0200 > From: Stefano Palmeri > Subject: Re: [Gambas-user] Tar-1.3 for Slackware > To: pinozollo at ...626..., mailing list for gambas users > > Message-ID: <200906242208.58662.rospolosco at ...152...> > Content-Type: text/plain; charset="iso-8859-1" > > Il mercoled? 24 giugno 2009 16:19:31 Pino Zollo ha scritto: > > Please where can I find tar-1.3 ? > > > > yahoo and google did not find it. > > > > It is required for generating the Slackware installation package. > > > > (Gambas 2.13 on Debian 5.0.1) > > > > Regards > > > > Pino > > I think you're talking about tar-1.13. It's still maintained > by Slackware because this is the version used to generate > Slackware packages. It's still in current, even if Slackware is going to > change the package archiver. Anyway, you find the source here: > > ftp://elektroni.phys.tut.fi/slackware-12.2/source/a/tar/ > > In order to use it, you have to apply the patch you find there, then > compile it and rename the tar executable as tar-1.13, because for > sure you've already a tar installed on your system. I suggest, > you *don't* install tar-1.13, but only copy the renamed executable somewhere > in your PATH so Gambas can find it. > > Ciao, > > Stefano > > > > ------------------------------ > > ------------------------------------------------------------------------------ > > > ------------------------------ > > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > End of Gambas-user Digest, Vol 37, Issue 42 > ******************************************* > > > _______________________________________ > ???????????? > http://cn.mail.yahoo.com > ------------------------------------------------------------------------------ > _______________________________________________ > 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: txtboxexample.tar.gz Type: application/x-compressed-tar Size: 9522 bytes Desc: not available URL: From juergen.linder at ...17... Thu Jun 25 12:10:43 2009 From: juergen.linder at ...17... (juelin) Date: Thu, 25 Jun 2009 03:10:43 -0700 (PDT) Subject: [Gambas-user] rotating point Message-ID: <24200570.post@...1379...> hi, I use Gambas 2.12 (at this version "draw.rotate" does not work) I want to rotate a market area (Top=207, Left=207, High=110, Width=110) in a drawingarea (High=512, Width=512) image1 = Drawingarea.Grab().Image image2 = image1.Copy(Top, Left, Width, High) from market area image2.rotate(Rad(degrees)) may be dregree=1-359 Draw.Begin(Drawingarea) Draw.Image(Top, Left) from market area Draw.End It work well, but how can I assign where the rotating point is???? I want rotate in the middle of market area Can give someone an idea? kind regards J?rgen -- View this message in context: http://www.nabble.com/rotating-point-tp24200570p24200570.html Sent from the gambas-user mailing list archive at Nabble.com. From ihaywood at ...1979... Thu Jun 25 13:04:58 2009 From: ihaywood at ...1979... (Ian Haywood) Date: Thu, 25 Jun 2009 21:04:58 +1000 Subject: [Gambas-user] 2040 build gui observations In-Reply-To: <200906251452.18931.rterry@...1946...> References: <200906251452.18931.rterry@...1946...> Message-ID: <200906252104.58360.ihaywood@...1979...> On Thursday 25 June 2009 14:52:18 richard terry wrote: > I presume this is the new qt4 IDE. > > Must say this sucks a bit - very indistinct. I find it visually hard to > ascertain which tab is the current one I'm working on as there is no clear > difference. > > also, down the bottom in the search in sub, file, project buttons, they are > very indistinct and hard to tell which one is depressed. Qt4 allows you to customise the appearance of widgets to a very fine degree using a separate stylesheet http://doc.trolltech.com/4.3/stylesheet.html Ian From gambas at ...1... Thu Jun 25 14:11:14 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Thu, 25 Jun 2009 14:11:14 +0200 Subject: [Gambas-user] Format$ with different LANG In-Reply-To: <4A4312E0.7030304@...1909...> References: <200906240954.52914.pinozollo@...626...> <200906241645.09067.gambas@...1...> <4A4312E0.7030304@...1909...> Message-ID: <200906251411.14769.gambas@...1...> > Beno?t Minisini ha scritto: > >> For LANG="POSIX" > >> > >> ? Format$(Val("14555888") / 1000, "#,###.000") > >> 14,555.888 > >> > >> ...this is OK > >> > >> LANG="es_ES.utf8" and for LANG="it_IT.utf8" > >> > >> ? Format$(Val("14555888") / 1000, "#,###.000") > >> 14 555,888 > >> > >> There is a space where should be a . but I can cope with it > >> > >> For LANG="ru_RU.utf8" > >> > >> ? Format$(Val("14555888") / 1000, "#,###.000") > >> 14??555,888 > >> > >> where ?? are 3F3F . These are not recognised as UTF-8 valid > >> characters. > >> > >> In my GAMBAS program actually the two "3F" are rapresented by squares. > >> > >> ( http://www.qsl.nqt/zp4kfx/Linux/dblog.html ) > >> > >> Best regards > >> > >> Pino > > > > On my Mandriva 2009, for es_ES.UTF-8, it_IT.UTF-8 and ru_RU.UTF-8 I get > > "14 555,888". > > > > Maybe this is a bug in the GNU spanish locale if you get a space whereas > > you want a point. I'm not spanish, so I can't be sure. > > > > And "3F3F" is a perfect valid UTF-8 byte sequence. It is actually ascii: > > "??" > > I confirm that number formatting (and perhaps dates too - can't remember > well) don't work as expected in italian locale (tried on Debian systems > and recent Ubuntu's); I had to implement my specialized routines to do > that. Particularly annoying was the space instead of dot, but also the > date as MM/DD/YYYY in some situation. > > This is not to say that gambas has some kind of problem, but perhaps > some investigation (and some improvement) can be done. When writing my > formatting routines, at the time, I didn't want to ignore completely the > system settings, so I tried first to deduce the correct character to use > and the correct order for D/M/Y querying the system. It was tought (no > straight way to that), and lastly I had to do ugly tricks. > > Regards, Gambas takes the data from the standard glib functions. So I think, but I can be wrong, that the glibc locale data may be wrong. I know that for sure because the thousand separator returned for French is false. I added an hack in Gambas to fix that, but if other locales have incorrect data too, a better solution must be found. I will check (again) what the interpreter does. At the same time, it would be cool if some people can check the locale data returned by Gambas for their own language (mainly date, time and thousand separator, and currency characters) and tell me what is wrong. I know French and US locale only! Regards, -- Beno?t From leonardo at ...1237... Thu Jun 25 14:47:27 2009 From: leonardo at ...1237... (Leonardo Miliani) Date: Thu, 25 Jun 2009 14:47:27 +0200 Subject: [Gambas-user] Bug in package creator? Message-ID: <4A4371DF.6040408@...1237...> An user of my site notified me that he could have found a bug in the Gambas package creator. When he uses the gb.db.sqlite component and creates a .Deb package of his application, that component is not considered as a dependency, so when he installs his application on a different system, the package manager doesn't require it, with the result that the application crashes as soon as launched with a fatal error. Does anybody know about this? -- Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Scegli software opensource - Choose opensource software Co-fondatore di Gambas-it.org Il sito di riferimento della comunit? italiana degli utenti di Gambas www.gambas-it.org From gambas at ...1... Thu Jun 25 15:10:29 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Thu, 25 Jun 2009 15:10:29 +0200 Subject: [Gambas-user] Bug in package creator? In-Reply-To: <4A4371DF.6040408@...1237...> References: <4A4371DF.6040408@...1237...> Message-ID: <200906251510.29344.gambas@...1...> > An user of my site notified me that he could have found a bug in the > Gambas package creator. > When he uses the gb.db.sqlite component and creates a .Deb package of > his application, that component is not considered as a dependency, so > when he installs his application on a different system, the package > manager doesn't require it, with the result that the application crashes > as soon as launched with a fatal error. > > Does anybody know about this? This bug has been fixed recently in the development version. Which version of Gambas does it use? I may backport the fix to Gambas2. -- Beno?t From nando at ...2137... Thu Jun 25 13:58:18 2009 From: nando at ...2137... (Nando) Date: Thu, 25 Jun 2009 13:58:18 +0200 Subject: [Gambas-user] datasource filter Message-ID: <200906251358.18652.nando@...2137...> Hello, how can i set the filter property of a datasource for 2 fields. Example: filter where id =value and nprice>dat id and nprice are fields, and value and dat are variables I can filter one of them but not them together Thank you an d sorry for my little english From gambas at ...1... Thu Jun 25 16:28:16 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Thu, 25 Jun 2009 16:28:16 +0200 Subject: [Gambas-user] 2040 build gui observations In-Reply-To: <200906251452.18931.rterry@...1946...> References: <200906251452.18931.rterry@...1946...> Message-ID: <200906251628.16830.gambas@...1...> > I presume this is the new qt4 IDE. > > Must say this sucks a bit - very indistinct. I find it visually hard to > ascertain which tab is the current one I'm working on as there is no clear > difference. > > also, down the bottom in the search in sub, file, project buttons, they are > very indistinct and hard to tell which one is depressed. > > Certainly if this is qt4 looks very much like clunky gtk!!! > > Regards > > Richard > You should use the Qt4 qtconfig program to define the style of Qt4 programs. Setting the KDE4 style has no effect (no idea why). Note that only a few style work correctly. Clearlooks is the best at the moment. Plastik is good, but very slow, no idea why. Regards, -- Beno?t From gambas at ...1... Thu Jun 25 16:34:11 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Thu, 25 Jun 2009 16:34:11 +0200 Subject: [Gambas-user] IDE Improvement Suggestion In-Reply-To: <200906170744.15092.rterry@...1946...> References: <200906170744.15092.rterry@...1946...> Message-ID: <200906251634.11908.gambas@...1...> > I'm always harping on about the difficulty of accessing forms on the side > tree when one has many many dozens of forms, takees to scroll down and for > your eye to locate them, then have to either click or ctrl_click to load. > > Suggestion: Emulate a firefox folder bookmark button on the IDE bar, put > a 'bookmark this file' option on the popup menu and add the module name to > the list which appears when you click the bookmark button. > > That way when working on a smalish number of forms from within your > project, access would be quick and easy. > > Regards > > Richard. > I think I will actually allow the user to organize his source files as he likes. To do that, I will have to store source files in their own sub- directory, not inside the project root directly. Then it will be possible to create folders, sub-folders, and so on. The compiler must be aware of that too. Regards, -- Beno?t From gambas at ...1... Thu Jun 25 16:47:53 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Thu, 25 Jun 2009 16:47:53 +0200 Subject: [Gambas-user] rotating point In-Reply-To: <24200570.post@...1379...> References: <24200570.post@...1379...> Message-ID: <200906251647.53879.gambas@...1...> > hi, > I use Gambas 2.12 (at this version "draw.rotate" does not work) > I want to rotate a market area (Top=207, Left=207, High=110, Width=110) > in a drawingarea (High=512, Width=512) > > image1 = Drawingarea.Grab().Image > image2 = image1.Copy(Top, Left, Width, High) from market area > image2.rotate(Rad(degrees)) may be dregree=1-359 > Draw.Begin(Drawingarea) > Draw.Image(Top, Left) from market area > Draw.End > > It work well, but how can I assign where the rotating point is???? > I want rotate in the middle of market area > > Can give someone an idea? > > kind regards > J?rgen Draw.Rotate() does not exist because it is a lot of work to implement it in gb.gtk (Qt supports it natively). Image.Rotate() rotates the image around its center. The image size is extended so that the rotated image is not clipped. But beware that Image.Rotate() *does not* modify the original image. The rotated image is returned as a new image! Can you provide real source code so that we can see what you are really doing? -- Beno?t From oceanosoftlapalma at ...626... Thu Jun 25 17:04:34 2009 From: oceanosoftlapalma at ...626... (=?ISO-8859-1?Q?Ricardo_D=EDaz_Mart=EDn?=) Date: Thu, 25 Jun 2009 17:04:34 +0200 Subject: [Gambas-user] Format$ with different LANG In-Reply-To: <200906251411.14769.gambas@...1...> References: <200906240954.52914.pinozollo@...626...> <200906241645.09067.gambas@...1...> <4A4312E0.7030304@...1909...> <200906251411.14769.gambas@...1...> Message-ID: I confirm I'm have got the same problem in Spanish configuration. For decimals we use "," (coma) and gambas returns "," (coma - it's ok) but for milliar we use "." (point) and gambas returns " " (blank). All the rest of locale data (date, time and currency are fine) I'm working with ubuntu 9.04x86_64 and Gambas 2.0 r2034 Regards, Ricardo D?az 2009/6/25 Beno?t Minisini > > Beno?t Minisini ha scritto: > > >> For LANG="POSIX" > > >> > > >> ? Format$(Val("14555888") / 1000, "#,###.000") > > >> 14,555.888 > > >> > > >> ...this is OK > > >> > > >> LANG="es_ES.utf8" and for LANG="it_IT.utf8" > > >> > > >> ? Format$(Val("14555888") / 1000, "#,###.000") > > >> 14 555,888 > > >> > > >> There is a space where should be a . but I can cope with it > > >> > > >> For LANG="ru_RU.utf8" > > >> > > >> ? Format$(Val("14555888") / 1000, "#,###.000") > > >> 14??555,888 > > >> > > >> where ?? are 3F3F . These are not recognised as UTF-8 valid > > >> characters. > > >> > > >> In my GAMBAS program actually the two "3F" are rapresented by squares. > > >> > > >> ( http://www.qsl.nqt/zp4kfx/Linux/dblog.html ) > > >> > > >> Best regards > > >> > > >> Pino > > > > > > On my Mandriva 2009, for es_ES.UTF-8, it_IT.UTF-8 and ru_RU.UTF-8 I get > > > "14 555,888". > > > > > > Maybe this is a bug in the GNU spanish locale if you get a space > whereas > > > you want a point. I'm not spanish, so I can't be sure. > > > > > > And "3F3F" is a perfect valid UTF-8 byte sequence. It is actually > ascii: > > > "??" > > > > I confirm that number formatting (and perhaps dates too - can't remember > > well) don't work as expected in italian locale (tried on Debian systems > > and recent Ubuntu's); I had to implement my specialized routines to do > > that. Particularly annoying was the space instead of dot, but also the > > date as MM/DD/YYYY in some situation. > > > > This is not to say that gambas has some kind of problem, but perhaps > > some investigation (and some improvement) can be done. When writing my > > formatting routines, at the time, I didn't want to ignore completely the > > system settings, so I tried first to deduce the correct character to use > > and the correct order for D/M/Y querying the system. It was tought (no > > straight way to that), and lastly I had to do ugly tricks. > > > > Regards, > > Gambas takes the data from the standard glib functions. So I think, but I > can > be wrong, that the glibc locale data may be wrong. I know that for sure > because the thousand separator returned for French is false. I added an > hack > in Gambas to fix that, but if other locales have incorrect data too, a > better > solution must be found. > > I will check (again) what the interpreter does. At the same time, it would > be > cool if some people can check the locale data returned by Gambas for their > own > language (mainly date, time and thousand separator, and currency > characters) > and tell me what is wrong. I know French and US locale only! > > Regards, > > -- > Beno?t > > > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From ronstk at ...239... Thu Jun 25 18:59:54 2009 From: ronstk at ...239... (Ron_1st) Date: Thu, 25 Jun 2009 18:59:54 +0200 Subject: [Gambas-user] IDE Improvement Suggestion In-Reply-To: <200906251634.11908.gambas@...1...> References: <200906170744.15092.rterry@...1946...> <200906251634.11908.gambas@...1...> Message-ID: <200906251859.54484.ronstk@...239...> On Thursday 25 June 2009, Beno?t Minisini wrote: > > I'm always harping on about the difficulty of accessing forms on the side > > tree when one has many many dozens of forms, takees to scroll down and for > > your eye to locate them, then have to either click or ctrl_click to load. > > > > Suggestion: Emulate a firefox folder bookmark button on the IDE bar, put > > a 'bookmark this file' option on the popup menu and add the module name to > > the list which appears when you click the bookmark button. > > > > That way when working on a smalish number of forms from within your > > project, access would be quick and easy. > > > > Regards > > > > Richard. > > > > I think I will actually allow the user to organize his source files as he > likes. To do that, I will have to store source files in their own sub- > directory, not inside the project root directly. Then it will be possible to > create folders, sub-folders, and so on. The compiler must be aware of that > too. > > Regards, > Using subdirectories inside the project would be very nice. Can you take care that it is allowed to use symbolic links to directories somewhere else on th box? That way you can build rapid a new project on snippit code blocks by symlinks and a new main form in the project itself. Best regards, Ron_1st -- 111.111111 x 111.111111 = 12345.678987654321 From gambas at ...1... Thu Jun 25 20:27:39 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Thu, 25 Jun 2009 20:27:39 +0200 Subject: [Gambas-user] IDE Improvement Suggestion In-Reply-To: <200906251859.54484.ronstk@...239...> References: <200906170744.15092.rterry@...1946...> <200906251634.11908.gambas@...1...> <200906251859.54484.ronstk@...239...> Message-ID: <200906252027.39366.gambas@...1...> > On Thursday 25 June 2009, Beno?t Minisini wrote: > > > I'm always harping on about the difficulty of accessing forms on the > > > side tree when one has many many dozens of forms, takees to scroll down > > > and for your eye to locate them, then have to either click or > > > ctrl_click to load. > > > > > > Suggestion: Emulate a firefox folder bookmark button on the IDE bar, > > > put a 'bookmark this file' option on the popup menu and add the module > > > name to the list which appears when you click the bookmark button. > > > > > > That way when working on a smalish number of forms from within your > > > project, access would be quick and easy. > > > > > > Regards > > > > > > Richard. > > > > I think I will actually allow the user to organize his source files as he > > likes. To do that, I will have to store source files in their own sub- > > directory, not inside the project root directly. Then it will be possible > > to create folders, sub-folders, and so on. The compiler must be aware of > > that too. > > > > Regards, > > Using subdirectories inside the project would be very nice. > Can you take care that it is allowed to use symbolic links > to directories somewhere else on th box? > That way you can build rapid a new project on snippit code blocks > by symlinks and a new main form in the project itself. > > > Best regards, > > Ron_1st It would be possible to do that, as the IDE already supports symbolic links on source files. -- Beno?t From Juergen.Linder at ...17... Thu Jun 25 21:15:51 2009 From: Juergen.Linder at ...17... (Juergen Linder) Date: Thu, 25 Jun 2009 21:15:51 +0200 Subject: [Gambas-user] rotating point Message-ID: <20090625191551.199880@...18...> Hi, thank you for answering of my question. enclosed is the source you want as attachment. hope you have a solution. PS: I'm writting a program for making lasershow under linux thank you and kind regards J?rgen -------- Original-Nachricht -------- > Datum: Thu, 25 Jun 2009 16:47:53 +0200 > Von: "Beno?t Minisini" > An: mailing list for gambas users > Betreff: Re: [Gambas-user] rotating point > > hi, > > I use Gambas 2.12 (at this version "draw.rotate" does not work) > > I want to rotate a market area (Top=207, Left=207, High=110, Width=110) > > in a drawingarea (High=512, Width=512) > > > > image1 = Drawingarea.Grab().Image > > image2 = image1.Copy(Top, Left, Width, High) from market area > > image2.rotate(Rad(degrees)) may be dregree=1-359 > > Draw.Begin(Drawingarea) > > Draw.Image(Top, Left) from market area > > Draw.End > > > > It work well, but how can I assign where the rotating point is???? > > I want rotate in the middle of market area > > > > Can give someone an idea? > > > > kind regards > > J?rgen > > Draw.Rotate() does not exist because it is a lot of work to implement it > in > gb.gtk (Qt supports it natively). > > Image.Rotate() rotates the image around its center. The image size is > extended > so that the rotated image is not clipped. But beware that Image.Rotate() > *does > not* modify the original image. The rotated image is returned as a new > image! > > Can you provide real source code so that we can see what you are really > doing? > > -- > Beno?t > > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- viele Gr??e e vy 73 w?nscht J?rgen -------------- next part -------------- A non-text attachment was scrubbed... Name: source.class Type: application/x-java Size: 1272 bytes Desc: not available URL: From gambas at ...1... Thu Jun 25 21:25:14 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Thu, 25 Jun 2009 21:25:14 +0200 Subject: [Gambas-user] rotating point In-Reply-To: <20090625191551.199880@...18...> References: <20090625191551.199880@...18...> Message-ID: <200906252125.14818.gambas@...1...> > Hi, > thank you for answering of my question. > enclosed is the source you want as attachment. > > hope you have a solution. > > PS: I'm writting a program for making lasershow under linux > > thank you and kind regards > J?rgen > First, you must not use DrawingArea.Grab(), because it is very slow, and don't work if the DrawingArea is covered by another window or widget. You must draw inside a Picture instead. Then, rotating an image is always done around its center. Which GUI component do you use? And I suggest you send a full project, not just the internal of a function. Regards, -- Beno?t From gambas at ...1... Thu Jun 25 21:31:02 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Thu, 25 Jun 2009 21:31:02 +0200 Subject: [Gambas-user] datasource filter In-Reply-To: <200906251358.18652.nando@...2137...> References: <200906251358.18652.nando@...2137...> Message-ID: <200906252131.02510.gambas@...1...> > Hello, > how can i set the filter property of a datasource for 2 fields. > Example: > filter where id =value and nprice>dat > id and nprice are fields, and value and dat are variables > > > I can filter one of them but not them together > > Thank you an d sorry for my little english > You can do that: the filter is a SQL where clause. MyDataSource.Filter = DB.Subst("id = &1 AND nprice > &2", value, dat) -- Beno?t From david_villalobos_c at ...43... Thu Jun 25 21:47:14 2009 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Thu, 25 Jun 2009 12:47:14 -0700 (PDT) Subject: [Gambas-user] Blob management Message-ID: <72933.43198.qm@...1655...> Hi, is there a problem with this instuction? hResultado = $hConn.Exec("SELECT Pic FROM Pics") File.Save("/tmp/1.jpg", hResultado["Pic"].Data) I can't get them work! Regards -- David From Karl.Reinl at ...9... Thu Jun 25 23:22:41 2009 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Thu, 25 Jun 2009 23:22:41 +0200 Subject: [Gambas-user] Blob management In-Reply-To: <72933.43198.qm@...1655...> References: <72933.43198.qm@...1655...> Message-ID: <1245964961.6990.7.camel@...40...> Am Donnerstag, den 25.06.2009, 12:47 -0700 schrieb David Villalobos Cambronero: > Hi, is there a problem with this instuction? > > hResultado = $hConn.Exec("SELECT Pic FROM Pics") > File.Save("/tmp/1.jpg", hResultado["Pic"].Data) > Don't know nothing about Blob'S, but I'm not sure, even if you have only one record in table 'Pics', that the DB-engine knows where to store ? Don't you have a Key ? -- Amicalment Charlie From gambas at ...1... Thu Jun 25 23:29:20 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Thu, 25 Jun 2009 23:29:20 +0200 Subject: [Gambas-user] Blob management In-Reply-To: <72933.43198.qm@...1655...> References: <72933.43198.qm@...1655...> Message-ID: <200906252329.21085.gambas@...1...> > Hi, is there a problem with this instuction? > > hResultado = $hConn.Exec("SELECT Pic FROM Pics") > File.Save("/tmp/1.jpg", hResultado["Pic"].Data) > > > I can't get them work! > > Regards > > > -- > David > Can you give more details? (versions, database driver)... Does the PictureDatabase example work? -- Beno?t From david_villalobos_c at ...43... Thu Jun 25 23:44:01 2009 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Thu, 25 Jun 2009 14:44:01 -0700 (PDT) Subject: [Gambas-user] Blob management In-Reply-To: <200906252329.21085.gambas@...1...> References: <72933.43198.qm@...1655...> <200906252329.21085.gambas@...1...> Message-ID: <578119.25302.qm@...1667...> Forgot to add more details. And yes, the example works fine but I don't get it to work in my app. Here is the senario: I got a table with a picture (just a record) and I want to save it to the disk, (PictureDatabase does it by the PictureBox not directly). Driver: mysql, Mandriva 2009.1 32 bits, Gambas 2 Here are my statements DIM hResultado AS Result IF NOT Exist("/tmp/mas") THEN MKDIR "/tmp/mas" hResultado = $hConn.Exec("SELECT * FROM `Pics`") File.Save("/tmp/1.jpg", hResultado["Pic"].Data) Or can you provide me an example of saving to disk an image stored in a database? Regards -- David ----- Original Message ---- From: Beno?t Minisini To: mailing list for gambas users Sent: Thursday, June 25, 2009 3:29:20 PM Subject: Re: [Gambas-user] Blob management > Hi, is there a problem with this instuction? > > hResultado = $hConn.Exec("SELECT Pic FROM Pics") > File.Save("/tmp/1.jpg", hResultado["Pic"].Data) > > > I can't get them work! > > Regards > > > -- > David > Can you give more details? (versions, database driver)... Does the PictureDatabase example work? -- Beno?t ------------------------------------------------------------------------------ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From sktan007 at ...43... Fri Jun 26 00:40:53 2009 From: sktan007 at ...43... (Swee Kwang Tan) Date: Thu, 25 Jun 2009 15:40:53 -0700 (PDT) Subject: [Gambas-user] The define style of many element string array Message-ID: <507194.14101.qm@...2198...> Dear Sir, Thank you for your reading. I have a string array, there is many element string. like this dim ss as string[] = ["jkl", "9080|", "jim", "ren", "mu8", "vcnm", "m83d", "m09nc", "n83f", "iiop'", "qiop"......] a longl long line, it have 65 sub-string. How do I write it smart ? If someone type error or change someone, editor hard to edit ? Thank you _______________________________________ ???????????? http://cn.mail.yahoo.com From gambas at ...1... Fri Jun 26 01:12:36 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Fri, 26 Jun 2009 01:12:36 +0200 Subject: [Gambas-user] Bug in package creator? In-Reply-To: <200906251510.29344.gambas@...1...> References: <4A4371DF.6040408@...1237...> <200906251510.29344.gambas@...1...> Message-ID: <200906260112.36143.gambas@...1...> > > An user of my site notified me that he could have found a bug in the > > Gambas package creator. > > When he uses the gb.db.sqlite component and creates a .Deb package of > > his application, that component is not considered as a dependency, so > > when he installs his application on a different system, the package > > manager doesn't require it, with the result that the application crashes > > as soon as launched with a fatal error. > > > > Does anybody know about this? > > This bug has been fixed recently in the development version. Which version > of Gambas does it use? I may backport the fix to Gambas2. In revision #2044, you can now use any database driver as a component and check it in the IDE project property dialog. This way, they can be an explicit dependency when generating a package. So you will get it in the upcoming 2.14 version. Regards, -- Beno?t From steven at ...2097... Fri Jun 26 03:28:39 2009 From: steven at ...2097... (Steven James Drinnan) Date: Fri, 26 Jun 2009 09:28:39 +0800 Subject: [Gambas-user] Feature request Message-ID: <1245979720.3239.2.camel@...2011...> Hi, In relation to RPM creation in Gambas. Is there a way of adding other dependencies. Say for example I have a program that needs the program 'barcode' to run it would be good to manually add that requirement to the package when creating a package. Just a thought Steven From steven at ...2097... Fri Jun 26 03:35:55 2009 From: steven at ...2097... (Steven James Drinnan) Date: Fri, 26 Jun 2009 09:35:55 +0800 Subject: [Gambas-user] The define style of many element string array In-Reply-To: <507194.14101.qm@...2198...> References: <507194.14101.qm@...2198...> Message-ID: <1245980155.4602.8.camel@...2011...> As far as I know just one by one. Write one line by one line. ss[0] = "jkl" ss[1] = "9080|" ss[2] = "jim" ss[3] = "ren" ss[4] = "mu8" I may be wrong and others can give there 2 cents worth. Steven On Thu, 2009-06-25 at 15:40 -0700, Swee Kwang Tan wrote: > Dear Sir, > Thank you for your reading. I have a string array, there is many element string. like this > dim ss as string[] = ["jkl", "9080|", "jim", "ren", "mu8", "vcnm", "m83d", "m09nc", "n83f", "iiop'", "qiop"......] > a longl long line, it have 65 sub-string. How do I write it smart ? If someone type error or > change someone, editor hard to edit ? > Thank you > > > _______________________________________ > ???????????? > http://cn.mail.yahoo.com > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From wdahn at ...1000... Fri Jun 26 05:39:52 2009 From: wdahn at ...1000... (Werner) Date: Fri, 26 Jun 2009 11:39:52 +0800 Subject: [Gambas-user] Blob management In-Reply-To: <578119.25302.qm@...1667...> References: <72933.43198.qm@...1655...> <200906252329.21085.gambas@...1...> <578119.25302.qm@...1667...> Message-ID: <4A444308.9050707@...1000...> David Villalobos Cambronero wrote: > Forgot to add more details. > > And yes, the example works fine but I don't get it to work in my app. > > Here is the senario: > > I got a table with a picture (just a record) and I want to save it to the disk, (PictureDatabase does it by the PictureBox not directly). > > Driver: mysql, Mandriva 2009.1 32 bits, Gambas 2 > > > Here are my statements > > DIM hResultado AS Result > > IF NOT Exist("/tmp/mas") THEN MKDIR "/tmp/mas" > hResultado = $hConn.Exec("SELECT * FROM `Pics`") > File.Save("/tmp/1.jpg", hResultado["Pic"].Data) > > Or can you provide me an example of saving to disk an image stored in a database? > > > Regards > > > -- > David > > > > ----- Original Message ---- > From: Beno?t Minisini > To: mailing list for gambas users > Sent: Thursday, June 25, 2009 3:29:20 PM > Subject: Re: [Gambas-user] Blob management > > >> Hi, is there a problem with this instuction? >> >> hResultado = $hConn.Exec("SELECT Pic FROM Pics") >> File.Save("/tmp/1.jpg", hResultado["Pic"].Data) >> >> >> I can't get them work! >> >> Regards >> >> >> -- >> David >> >> > > Can you give more details? (versions, database driver)... > > Does the PictureDatabase example work? > > You are using constructs that I have never seen before. Would this be better? DIM hResultado AS Result IF NOT Exist("/tmp/mas") THEN MKDIR "/tmp/mas" hResultado = $hConn.Exec("SELECT * FROM `Pics`") File.Save("/tmp/mas/1.jpg", hResultado!fieldname) From simonart.dominique at ...11... Fri Jun 26 05:43:30 2009 From: simonart.dominique at ...11... (Simonart Dominique) Date: Fri, 26 Jun 2009 05:43:30 +0200 Subject: [Gambas-user] The define style of many element string array In-Reply-To: <1245980155.4602.8.camel@...2011...> References: <507194.14101.qm@...2198...> <1245980155.4602.8.camel@...2011...> Message-ID: <4A4443E2.8050302@...11...> Steven James Drinnan a ?crit : > As far as I know just one by one. Write one line by one line. > > ss[0] = "jkl" > ss[1] = "9080|" > ss[2] = "jim" > ss[3] = "ren" > ss[4] = "mu8" > > I may be wrong and others can give there 2 cents worth. > > Steven > > > On Thu, 2009-06-25 at 15:40 -0700, Swee Kwang Tan wrote: >> Dear Sir, >> Thank you for your reading. I have a string array, there is many element string. like this >> dim ss as string[] = ["jkl", "9080|", "jim", "ren", "mu8", "vcnm", "m83d", "m09nc", "n83f", "iiop'", "qiop"......] >> a longl long line, it have 65 sub-string. How do I write it smart ? If someone type error or >> change someone, editor hard to edit ? >> Thank you >> may be like this Dim sChain AS String Dim ss AS String[] sChain = "jkl,9080,jim,ren,mu8,vcnm,m83d,m09nc," sChain &= "n83f,iiop,qiop,aaa1,bbb1,ccc1,ddd1,eee1," sChain &= "fff1,ggg1,hhh1,iii1,j1j1,k1k2,l1a2" ' etc ss = SPLIT(sChain,",") hope this help Dominique From doriano.blengino at ...1909... Fri Jun 26 07:12:38 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Fri, 26 Jun 2009 07:12:38 +0200 Subject: [Gambas-user] Format$ with different LANG In-Reply-To: References: <200906240954.52914.pinozollo@...626...> <200906241645.09067.gambas@...1...> <4A4312E0.7030304@...1909...> <200906251411.14769.gambas@...1...> Message-ID: <4A4458C6.5040502@...1909...> Ricardo D?az Mart?n ha scritto: > I confirm I'm have got the same problem in Spanish configuration. For > decimals we use "," (coma) and gambas returns "," (coma - it's ok) but for > milliar we use "." (point) and gambas returns " " (blank). All the rest of > locale data (date, time and currency are fine) > ... >>>>> ? Format$(Val("14555888") / 1000, "#,###.000") >>>>> 14,555.888 >>>>> >>>>> ...this is OK >>>>> >>>>> LANG="es_ES.utf8" and for LANG="it_IT.utf8" >>>>> >>>>> ? Format$(Val("14555888") / 1000, "#,###.000") >>>>> 14 555,888 >>>>> >>>>> There is a space where should be a . but I can cope with it >>>>> >>>>> For LANG="ru_RU.utf8" >>>>> >>>>> ? Format$(Val("14555888") / 1000, "#,###.000") >>>>> 14??555,888 >>>>> >>>>> where ?? are 3F3F . These are not recognised as UTF-8 valid >>>>> characters. >>>>> >>>>> ... >>> I confirm that number formatting (and perhaps dates too - can't remember >>> well) don't work as expected in italian locale (tried on Debian systems >>> ... >>> >> Gambas takes the data from the standard glib functions. So I think, but I >> can >> be wrong, that the glibc locale data may be wrong. I know that for sure >> because the thousand separator returned for French is false. I added an >> hack >> in Gambas to fix that, but if other locales have incorrect data too, a >> better >> solution must be found. >> >> I will check (again) what the interpreter does. At the same time, it would >> be >> cool if some people can check the locale data returned by Gambas for their >> own >> language (mainly date, time and thousand separator, and currency >> characters) >> and tell me what is wrong. I know French and US locale only! >> >> Regards, >> Pino Zollo let me know that there is probably an error in /usr/share/i18n/locales/it_IT.utf8 ------- LC_NUMERIC decimal_point "" thousands_sep "" <---------- (empty string, not SPACE) grouping 0;0 END LC_NUMERIC -------------- I do not have that file, but instead other two, but with the same error. Perhaps we can contact the author, It seems strange to me that a danish guy (the author of that file is danish) made the same mistake on spanish, italian, french (and probably all the rest of Europe...) which, I think, share the same conventions about numbers; so someone who knows glibc better than me could verify, before contact him. I will try to correct it_IT file and verify, just for curiosity, but if someone else knows the matter better, please let me know... Another question is this. I was misguided by the fact that KDE has its own locale management: it lets you to change locale settings, and I played with those settings to investigate - but gambas does not seem to use them. Should gambas use KDE settings when using QT, or when using the GUI switcher? Regards, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From Juergen.Linder at ...17... Fri Jun 26 08:14:08 2009 From: Juergen.Linder at ...17... (Juergen Linder) Date: Fri, 26 Jun 2009 08:14:08 +0200 Subject: [Gambas-user] rotating point In-Reply-To: <200906252125.14818.gambas@...1...> References: <20090625191551.199880@...18...> <200906252125.14818.gambas@...1...> Message-ID: <20090626061408.52190@...18...> hi Benoit, thank you for quick answering. I use SuSE Linux 11.1 with KDE 4 Do you realy want have the FULL project? That are 102 files. If you want all Files plaese write me a mail. kind regards J?rgen -------- Original-Nachricht -------- > Then, rotating an image is always done around its center. Which GUI > component > do you use? > > And I suggest you send a full project, not just the internal of a > function. > > Regards, > > -- > Beno?t -- viele Gr??e e vy 73 w?nscht J?rgen From Juergen.Linder at ...17... Fri Jun 26 08:21:45 2009 From: Juergen.Linder at ...17... (Juergen Linder) Date: Fri, 26 Jun 2009 08:21:45 +0200 Subject: [Gambas-user] rotating point In-Reply-To: <200906252125.14818.gambas@...1...> References: <20090625191551.199880@...18...> <200906252125.14818.gambas@...1...> Message-ID: <20090626062145.54890@...18...> hi Benoit, just a qustion. Can you explain what you mean with don't use Grab()? How copy I the Drawingarea into a Image? Kind regards J?rgen -------- Original-Nachricht -------- > Datum: Thu, 25 Jun 2009 21:25:14 +0200 > Von: "Beno?t Minisini" > An: mailing list for gambas users > Betreff: Re: [Gambas-user] rotating point > > Hi, > > thank you for answering of my question. > > enclosed is the source you want as attachment. > > > > hope you have a solution. > > > > PS: I'm writting a program for making lasershow under linux > > > > thank you and kind regards > > J?rgen > > > > First, you must not use DrawingArea.Grab(), because it is very slow, and > don't > work if the DrawingArea is covered by another window or widget. > > You must draw inside a Picture instead. > > Then, rotating an image is always done around its center. Which GUI > component > do you use? > > And I suggest you send a full project, not just the internal of a > function. > > Regards, > > -- > Beno?t > > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- viele Gr??e e vy 73 w?nscht J?rgen From kobolds at ...2041... Fri Jun 26 10:34:54 2009 From: kobolds at ...2041... (kobolds) Date: Fri, 26 Jun 2009 01:34:54 -0700 (PDT) Subject: [Gambas-user] I create a new function to share Message-ID: <24216805.post@...1379...> I create a function call FormatX() for easy formatting number, date and string . read the cctools.html for detail on how to use it . post your opinion what you think about it http://www.nabble.com/file/p24216805/cctools.tar cctools.tar -- View this message in context: http://www.nabble.com/I-create-a-new-function-to-share-tp24216805p24216805.html Sent from the gambas-user mailing list archive at Nabble.com. From Juergen.Linder at ...17... Fri Jun 26 11:26:36 2009 From: Juergen.Linder at ...17... (Juergen Linder) Date: Fri, 26 Jun 2009 11:26:36 +0200 Subject: [Gambas-user] datasource filter In-Reply-To: <200906252131.02510.gambas@...1...> References: <200906251358.18652.nando@...2137...> <200906252131.02510.gambas@...1...> Message-ID: <20090626092636.43450@...18...> hi Benoit, I think there was a missunderstanding. What I mean: the instruction: image2 = image1.Rotate(45) rotating the image on the middle. But the middlepoint of image2 is not the middlepoint of image1. that is my problem. at 90? it was rigth. kind regards J?rgen -- viele Gr??e e vy 73 w?nscht J?rgen From gambas at ...1... Fri Jun 26 12:17:56 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Fri, 26 Jun 2009 12:17:56 +0200 Subject: [Gambas-user] Feature request In-Reply-To: <1245979720.3239.2.camel@...2011...> References: <1245979720.3239.2.camel@...2011...> Message-ID: <200906261217.56533.gambas@...1...> > Hi, > > In relation to RPM creation in Gambas. Is there a way of adding other > dependencies. > > Say for example I have a program that needs the program 'barcode' to run > it would be good to manually add that requirement to the package when > creating a package. > > Just a thought > > Steven > This is done in Gambas 3, where you can add dependencies on other packages. Regards, -- Beno?t From gambas at ...1... Fri Jun 26 12:19:24 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Fri, 26 Jun 2009 12:19:24 +0200 Subject: [Gambas-user] rotating point In-Reply-To: <20090626062145.54890@...18...> References: <20090625191551.199880@...18...> <200906252125.14818.gambas@...1...> <20090626062145.54890@...18...> Message-ID: <200906261219.24224.gambas@...1...> > hi Benoit, > > just a qustion. > Can you explain what you mean with don't use Grab()? > How copy I the Drawingarea into a Image? > > Kind regards > J?rgen > You can't. This is the reason why you must do your work inside a Picture. -- Beno?t From gambas at ...1... Fri Jun 26 12:35:44 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Fri, 26 Jun 2009 12:35:44 +0200 Subject: [Gambas-user] Format$ with different LANG In-Reply-To: <4A4458C6.5040502@...1909...> References: <200906240954.52914.pinozollo@...626...> <4A4458C6.5040502@...1909...> Message-ID: <200906261235.44995.gambas@...1...> > > Pino Zollo let me know that there is probably an error in > /usr/share/i18n/locales/it_IT.utf8 > > ------- > LC_NUMERIC > decimal_point "" > thousands_sep "" <---------- (empty string, not > SPACE) grouping 0;0 > END LC_NUMERIC > -------------- > > I do not have that file, but instead other two, but with the same error. > Perhaps we can contact the author, > It seems strange to me that a danish guy (the author of that file is > danish) made the same mistake on spanish, italian, french (and probably > all the rest of Europe...) which, I think, share the same conventions > about numbers; so someone who knows glibc better than me could verify, > before contact him. > I will try to correct it_IT file and verify, just for curiosity, but if > someone else knows the matter better, please let me know... > > Another question is this. I was misguided by the fact that KDE has its > own locale management: it lets you to change locale settings, and I > played with those settings to investigate - but gambas does not seem to > use them. Should gambas use KDE settings when using QT, or when using > the GUI switcher? > > Regards, The better would be fixing the glibc locales. An there is hope as I noticed that the french data separator has been fixed! To everyone: Do not hesitate to report bugs to bug-glibc-locales at ...181... (the mail is . Use the "locale" program to list the locale data associated with your country. For example: $ locale -k LC_TIME fr_FR.UTF-8 And check Wikipedia before to verify that you are really right about your country's standards (sometimes we are surprised!) Regards, -- Beno?t From pinozollo at ...626... Fri Jun 26 14:27:22 2009 From: pinozollo at ...626... (Pino Zollo) Date: Fri, 26 Jun 2009 08:27:22 -0400 Subject: [Gambas-user] I create a new function to share In-Reply-To: <24216805.post@...1379...> References: <24216805.post@...1379...> Message-ID: <200906260827.22677.pinozollo@...626...> Il venerd? 26 giugno 2009 04:34:54 kobolds ha scritto: > I create a function call FormatX() for easy formatting number, date and > string . read the cctools.html for detail on how to use it . > > post your opinion what you think about it > > http://www.nabble.com/file/p24216805/cctools.tar cctools.tar Hi, I have tried in "it_IT.utf8" environment and I get: FMain.Form_Open.396: comma is decimal separator True FMain.Form_Open.397: 2 347,25 Actually puts a space in place of . This is the code: ---------- IF InStr(Str(Pi), ",") THEN ' check the locale...has it comma or point as separator ? comma = TRUE ELSE comma = FALSE END IF DEBUG "comma is decimal separator ", comma DEBUG CCtools.formatx(-2347.25, "@N9.2") ---------- I am going to try it in other LANG environment. Thank you Pino -- Key ID: 0xF6768208 Key fingerprint = B16D 0A7C 5B29 A334 CE6A 71F6 EAF8 3D88 F676 8208 Key server: hkp://wwwkeys.eu.pgp.net From pinozollo at ...626... Fri Jun 26 14:50:06 2009 From: pinozollo at ...626... (Pino Zollo) Date: Fri, 26 Jun 2009 08:50:06 -0400 Subject: [Gambas-user] I create a new function to share In-Reply-To: <24216805.post@...1379...> References: <24216805.post@...1379...> Message-ID: <200906260850.06902.pinozollo@...626...> Il venerd? 26 giugno 2009 04:34:54 kobolds ha scritto: > I create a function call FormatX() for easy formatting number, date and > string . read the cctools.html for detail on how to use it . > > post your opinion what you think about it > > http://www.nabble.com/file/p24216805/cctools.tar cctools.tar Tied in ru_RU.utf8 and got exactly the same GAMBAS problem.... See the attached image. Ciao 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: FX-RU.xcf.zip Type: application/x-zip Size: 7470 bytes Desc: not available URL: From sktan007 at ...43... Fri Jun 26 15:59:21 2009 From: sktan007 at ...43... (Swee Kwang Tan) Date: Fri, 26 Jun 2009 06:59:21 -0700 (PDT) Subject: [Gambas-user] =?utf-8?q?RE=EF=BC=9A_Gambas-user_Digest=2C_Vol_37?= =?utf-8?q?=2C_Issue_47?= Message-ID: <317583.46552.qm@...2209...> Dear Sir, You are so smart!!!!!! The code Dim sChain AS String Dim ss AS String[] sChain = "jkl,9080,jim,ren,mu8,vcnm,m83d,m09nc," sChain &= "n83f,iiop,qiop,aaa1,bbb1,ccc1,ddd1,eee1," sChain &= "fff1,ggg1,hhh1,iii1,j1j1,k1k2,l1a2" ' etc ss = SPLIT(sChain,",") can work as what I want. Thank you --- 09/6/26 (?)?gambas-user-request at lists.sourceforge.net ??? ???: gambas-user-request at lists.sourceforge.net ??: Gambas-user Digest, Vol 37, Issue 47 ???: gambas-user at lists.sourceforge.net ??: 2009?6?26?,?,??5:10 Send Gambas-user mailing list submissions to ??? gambas-user at lists.sourceforge.net To subscribe or unsubscribe via the World Wide Web, visit ??? https://lists.sourceforge.net/lists/listinfo/gambas-user or, via email, send a message with subject or body 'help' to ??? gambas-user-request at lists.sourceforge.net You can reach the person managing the list at ??? gambas-user-owner at lists.sourceforge.net When replying, please edit your Subject line so it is more specific than "Re: Contents of Gambas-user digest..." Today's Topics: ???1. Re: Blob management (Beno?t Minisini) ???2. Re: Blob management (David Villalobos Cambronero) ???3. The define style of many element string array (Swee Kwang Tan) ???4. Re: Bug in package creator? (Beno?t Minisini) ???5. Feature request (Steven James Drinnan) ???6. Re: The define style of many element string array ? ? ? (Steven James Drinnan) ???7. Re: Blob management (Werner) ???8. Re: The define style of many element string array ? ? ? (Simonart Dominique) ???9. Re: Format$ with different LANG (Doriano Blengino) ---------------------------------------------------------------------- Message: 1 Date: Thu, 25 Jun 2009 23:29:20 +0200 From: Beno?t Minisini Subject: Re: [Gambas-user] Blob management To: mailing list for gambas users Message-ID: <200906252329.21085.gambas at ...1...> Content-Type: Text/Plain;? charset="iso-8859-1" > Hi, is there a problem with this instuction? > >???hResultado = $hConn.Exec("SELECT Pic FROM Pics") >???File.Save("/tmp/1.jpg", hResultado["Pic"].Data) > > > I can't get them work! > >? Regards > > > -- > David > Can you give more details? (versions, database driver)... Does the PictureDatabase example work? -- Beno?t ------------------------------ Message: 2 Date: Thu, 25 Jun 2009 14:44:01 -0700 (PDT) From: David Villalobos Cambronero Subject: Re: [Gambas-user] Blob management To: mailing list for gambas users Message-ID: <578119.25302.qm at ...1667...> Content-Type: text/plain; charset=iso-8859-1 Forgot to add more details. And yes, the example works fine but I don't get it to work in my app. Here is the senario: I got a table with a picture (just a record) and I want to save it to the disk, (PictureDatabase does it by the PictureBox not directly). Driver: mysql, Mandriva 2009.1 32 bits, Gambas 2 Here are my statements ? DIM hResultado AS Result ? IF NOT Exist("/tmp/mas") THEN MKDIR "/tmp/mas" ? hResultado = $hConn.Exec("SELECT * FROM `Pics`") ? File.Save("/tmp/1.jpg", hResultado["Pic"].Data) Or can you provide me an example of saving to disk an image stored in a database? Regards -- David ----- Original Message ---- From: Beno?t Minisini To: mailing list for gambas users Sent: Thursday, June 25, 2009 3:29:20 PM Subject: Re: [Gambas-user] Blob management > Hi, is there a problem with this instuction? > >???hResultado = $hConn.Exec("SELECT Pic FROM Pics") >???File.Save("/tmp/1.jpg", hResultado["Pic"].Data) > > > I can't get them work! > >? Regards > > > -- > David > Can you give more details? (versions, database driver)... Does the PictureDatabase example work? -- Beno?t ------------------------------------------------------------------------------ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user ? ? ? ------------------------------ Message: 3 Date: Thu, 25 Jun 2009 15:40:53 -0700 (PDT) From: Swee Kwang Tan Subject: [Gambas-user] The define style of many element string array To: gambas-user at lists.sourceforge.net Message-ID: <507194.14101.qm at ...2198...> Content-Type: text/plain; charset=utf-8 Dear Sir, Thank you for your reading. I have a string array, there is many element string. like this dim ss as string[] = ["jkl", "9080|", "jim", "ren", "mu8", "vcnm", "m83d", "m09nc", "n83f", "iiop'", "qiop"......] a longl long line, it have 65 sub-string. How do I write it smart ? If someone type error or change someone, editor hard to edit ? Thank you _______________________________________ ???????????? http://cn.mail.yahoo.com ------------------------------ Message: 4 Date: Fri, 26 Jun 2009 01:12:36 +0200 From: Beno?t Minisini Subject: Re: [Gambas-user] Bug in package creator? To: mailing list for gambas users Message-ID: <200906260112.36143.gambas at ...1...> Content-Type: Text/Plain;? charset="iso-8859-1" > > An user of my site notified me that he could have found a bug in the > > Gambas package creator. > > When he uses the gb.db.sqlite component and creates a .Deb package of > > his application, that component is not considered as a dependency, so > > when he installs his application on a different system, the package > > manager doesn't require it, with the result that the application crashes > > as soon as launched with a fatal error. > > > > Does anybody know about this? > > This bug has been fixed recently in the development version. Which version > of Gambas does it use? I may backport the fix to Gambas2. In revision #2044, you can now use any database driver as a component and check it in the IDE project property dialog. This way, they can be an explicit dependency when generating a package. So you will get it in the upcoming 2.14 version. Regards, -- Beno?t ------------------------------ Message: 5 Date: Fri, 26 Jun 2009 09:28:39 +0800 From: Steven James Drinnan Subject: [Gambas-user] Feature request To: gambas-user at lists.sourceforge.net Message-ID: <1245979720.3239.2.camel at ...2011...> Content-Type: text/plain Hi, In relation to RPM creation in Gambas. Is there a way of adding other dependencies. Say for example I have a program that needs the program 'barcode' to run it would be good to manually add that requirement to the package when creating a package. Just a thought Steven ------------------------------ Message: 6 Date: Fri, 26 Jun 2009 09:35:55 +0800 From: Steven James Drinnan Subject: Re: [Gambas-user] The define style of many element string ??? array To: mailing list for gambas users Message-ID: <1245980155.4602.8.camel at ...2011...> Content-Type: text/plain; charset="UTF-8" As far as I know just one by one. Write one line by one line. ss[0] = "jkl" ss[1] = "9080|" ss[2] = "jim" ss[3] = "ren" ss[4] = "mu8" I may be wrong and others can give there 2 cents worth. Steven On Thu, 2009-06-25 at 15:40 -0700, Swee Kwang Tan wrote: > Dear Sir, > Thank you for your reading. I have a string array, there is many element string. like this > dim ss as string[] = ["jkl", "9080|", "jim", "ren", "mu8", "vcnm", "m83d", "m09nc", "n83f", "iiop'", "qiop"......] > a longl long line, it have 65 sub-string. How do I write it smart ? If someone type error or > change someone, editor hard to edit ? > Thank you > > > _______________________________________ >? ???????????? >? http://cn.mail.yahoo.com > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------------------------------ Message: 7 Date: Fri, 26 Jun 2009 11:39:52 +0800 From: Werner Subject: Re: [Gambas-user] Blob management To: mailing list for gambas users Message-ID: <4A444308.9050707 at ...1000...> Content-Type: text/plain; charset=ISO-8859-1 David Villalobos Cambronero wrote: > Forgot to add more details. > > And yes, the example works fine but I don't get it to work in my app. > > Here is the senario: > > I got a table with a picture (just a record) and I want to save it to the disk, (PictureDatabase does it by the PictureBox not directly). > > Driver: mysql, Mandriva 2009.1 32 bits, Gambas 2 > >? > Here are my statements > >???DIM hResultado AS Result > >???IF NOT Exist("/tmp/mas") THEN MKDIR "/tmp/mas" >???hResultado = $hConn.Exec("SELECT * FROM `Pics`") >???File.Save("/tmp/1.jpg", hResultado["Pic"].Data) > > Or can you provide me an example of saving to disk an image stored in a database? > > > Regards > > > -- > David > > > > ----- Original Message ---- > From: Beno?t Minisini > To: mailing list for gambas users > Sent: Thursday, June 25, 2009 3:29:20 PM > Subject: Re: [Gambas-user] Blob management > >??? >> Hi, is there a problem with this instuction? >> >>???hResultado = $hConn.Exec("SELECT Pic FROM Pics") >>???File.Save("/tmp/1.jpg", hResultado["Pic"].Data) >> >> >> I can't get them work! >> >>? Regards >> >> >> -- >> David >> >>? ??? > > Can you give more details? (versions, database driver)... > > Does the PictureDatabase example work? > >??? You are using constructs that I have never seen before. Would this be better? ? DIM hResultado AS Result ? IF NOT Exist("/tmp/mas") THEN MKDIR "/tmp/mas" ? hResultado = $hConn.Exec("SELECT * FROM `Pics`") ? File.Save("/tmp/mas/1.jpg", hResultado!fieldname) ------------------------------ Message: 8 Date: Fri, 26 Jun 2009 05:43:30 +0200 From: Simonart Dominique Subject: Re: [Gambas-user] The define style of many element string ??? array To: mailing list for gambas users Message-ID: <4A4443E2.8050302 at ...11...> Content-Type: text/plain; charset=UTF-8; format=flowed Steven James Drinnan a ?crit : > As far as I know just one by one. Write one line by one line. > > ss[0] = "jkl" > ss[1] = "9080|" > ss[2] = "jim" > ss[3] = "ren" > ss[4] = "mu8" > > I may be wrong and others can give there 2 cents worth. > > Steven > > > On Thu, 2009-06-25 at 15:40 -0700, Swee Kwang Tan wrote: >> Dear Sir, >> Thank you for your reading. I have a string array, there is many element string. like this >> dim ss as string[] = ["jkl", "9080|", "jim", "ren", "mu8", "vcnm", "m83d", "m09nc", "n83f", "iiop'", "qiop"......] >> a longl long line, it have 65 sub-string. How do I write it smart ? If someone type error or >> change someone, editor hard to edit ? >> Thank you >> may be like this Dim sChain AS String Dim ss AS String[] sChain = "jkl,9080,jim,ren,mu8,vcnm,m83d,m09nc," sChain &= "n83f,iiop,qiop,aaa1,bbb1,ccc1,ddd1,eee1," sChain &= "fff1,ggg1,hhh1,iii1,j1j1,k1k2,l1a2" ' etc ss = SPLIT(sChain,",") hope this help Dominique ------------------------------ Message: 9 Date: Fri, 26 Jun 2009 07:12:38 +0200 From: Doriano Blengino Subject: Re: [Gambas-user] Format$ with different LANG To: mailing list for gambas users Message-ID: <4A4458C6.5040502 at ...1909...> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Ricardo D?az Mart?n ha scritto: > I confirm I'm have got the same problem in Spanish configuration. For > decimals we use "," (coma) and gambas returns "," (coma - it's ok) but for > milliar we use "." (point) and gambas returns " " (blank). All the rest of > locale data (date, time and currency are fine) > ... >>>>> ? Format$(Val("14555888") / 1000, "#,###.000") >>>>> 14,555.888 >>>>> >>>>> ...this is OK >>>>> >>>>> LANG="es_ES.utf8" and for LANG="it_IT.utf8" >>>>> >>>>> ? Format$(Val("14555888") / 1000, "#,###.000") >>>>> 14 555,888 >>>>> >>>>> There is a space? where should be a . but I can cope with it >>>>> >>>>> For LANG="ru_RU.utf8" >>>>> >>>>> ? Format$(Val("14555888") / 1000, "#,###.000") >>>>> 14??555,888 >>>>> >>>>>???where ?? are 3F3F . These are not recognised as UTF-8 valid >>>>> characters. >>>>> >>>>> ... >>> I confirm that number formatting (and perhaps dates too - can't remember >>> well) don't work as expected in italian locale (tried on Debian systems >>> ... >>>? ? ??? >> Gambas takes the data from the standard glib functions. So I think, but I >> can >> be wrong, that the glibc locale data may be wrong. I know that for sure >> because the thousand separator returned for French is false. I added an >> hack >> in Gambas to fix that, but if other locales have incorrect data too, a >> better >> solution must be found. >> >> I will check (again) what the interpreter does. At the same time, it would >> be >> cool if some people can check the locale data returned by Gambas for their >> own >> language (mainly date, time and thousand separator, and currency >> characters) >> and tell me what is wrong. I know French and US locale only! >> >> Regards, >>? ??? Pino Zollo let me know that there is probably an error in /usr/share/i18n/locales/it_IT.utf8 ------- LC_NUMERIC decimal_point? ? ? ? ? ???"" thousands_sep? ? ? ? ? ???""? ? ? ? ? ???<---------- (empty string, not SPACE) grouping? ? ? ? ? ? ? ? ? 0;0 END LC_NUMERIC -------------- I do not have that file, but instead other two, but with the same error. Perhaps we can contact the author, It seems strange to me that a danish guy (the author of that file is danish) made the same mistake on spanish, italian, french (and probably all the rest of Europe...) which, I think, share the same conventions about numbers; so someone who knows glibc better than me could verify, before contact him. I will try to correct it_IT file and verify, just for curiosity, but if someone else knows the matter better, please let me know... Another question is this. I was misguided by the fact that KDE has its own locale management: it lets you to change locale settings, and I played with those settings to investigate - but gambas does not seem to use them. Should gambas use KDE settings when using QT, or when using the GUI switcher? Regards, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." ------------------------------ ------------------------------------------------------------------------------ ------------------------------ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user End of Gambas-user Digest, Vol 37, Issue 47 ******************************************* _______________________________________ ???????????? http://cn.mail.yahoo.com From david_villalobos_c at ...43... Fri Jun 26 15:59:11 2009 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Fri, 26 Jun 2009 06:59:11 -0700 (PDT) Subject: [Gambas-user] Blob management In-Reply-To: <4A444308.9050707@...1000...> References: <72933.43198.qm@...1655...> <200906252329.21085.gambas@...1...> <578119.25302.qm@...1667...> <4A444308.9050707@...1000...> Message-ID: <892657.10000.qm@...1782...> It doesn't work, the file is saved emty. Benoit, any idea? Regards -- David ----- Original Message ---- From: Werner To: mailing list for gambas users Sent: Thursday, June 25, 2009 9:39:52 PM Subject: Re: [Gambas-user] Blob management David Villalobos Cambronero wrote: > Forgot to add more details. > > And yes, the example works fine but I don't get it to work in my app. > > Here is the senario: > > I got a table with a picture (just a record) and I want to save it to the disk, (PictureDatabase does it by the PictureBox not directly). > > Driver: mysql, Mandriva 2009.1 32 bits, Gambas 2 > > > Here are my statements > > DIM hResultado AS Result > > IF NOT Exist("/tmp/mas") THEN MKDIR "/tmp/mas" > hResultado = $hConn.Exec("SELECT * FROM `Pics`") > File.Save("/tmp/1.jpg", hResultado["Pic"].Data) > > Or can you provide me an example of saving to disk an image stored in a database? > > > Regards > > > -- > David > > > > ----- Original Message ---- > From: Beno?t Minisini > To: mailing list for gambas users > Sent: Thursday, June 25, 2009 3:29:20 PM > Subject: Re: [Gambas-user] Blob management > > >> Hi, is there a problem with this instuction? >> >> hResultado = $hConn.Exec("SELECT Pic FROM Pics") >> File.Save("/tmp/1.jpg", hResultado["Pic"].Data) >> >> >> I can't get them work! >> >> Regards >> >> >> -- >> David >> >> > > Can you give more details? (versions, database driver)... > > Does the PictureDatabase example work? > > You are using constructs that I have never seen before. Would this be better? DIM hResultado AS Result IF NOT Exist("/tmp/mas") THEN MKDIR "/tmp/mas" hResultado = $hConn.Exec("SELECT * FROM `Pics`") File.Save("/tmp/mas/1.jpg", hResultado!fieldname) ------------------------------------------------------------------------------ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From jussi.lahtinen at ...626... Fri Jun 26 16:09:21 2009 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Fri, 26 Jun 2009 17:09:21 +0300 Subject: [Gambas-user] The define style of many element string array In-Reply-To: <4A4443E2.8050302@...11...> References: <507194.14101.qm@...2198...> <1245980155.4602.8.camel@...2011...> <4A4443E2.8050302@...11...> Message-ID: <384d3900906260709o13c7baceq7fc73434c30914d@...627...> I recommend to write your data to text file and read it from there to String[]. http://gambasdoc.org/help/lang/open Jussi On Fri, Jun 26, 2009 at 06:43, Simonart Dominique wrote: > Steven James Drinnan a ?crit : >> As far as I know just one by one. Write one line by one line. >> >> ss[0] = "jkl" >> ss[1] = "9080|" >> ss[2] = "jim" >> ss[3] = "ren" >> ss[4] = "mu8" >> >> I may be wrong and others can give there 2 cents worth. >> >> Steven >> >> >> On Thu, 2009-06-25 at 15:40 -0700, Swee Kwang Tan wrote: >>> Dear Sir, >>> Thank you for your reading. I have a string array, there is many element string. like this >>> dim ss as string[] = ["jkl", "9080|", "jim", "ren", "mu8", "vcnm", "m83d", "m09nc", "n83f", "iiop'", "qiop"......] >>> a longl long line, it have 65 sub-string. How do I write it smart ? If someone type error or >>> change someone, editor hard to edit ? >>> Thank you >>> > > may be like this > > Dim sChain AS String > Dim ss AS String[] > > sChain = "jkl,9080,jim,ren,mu8,vcnm,m83d,m09nc," > sChain &= "n83f,iiop,qiop,aaa1,bbb1,ccc1,ddd1,eee1," > sChain &= "fff1,ggg1,hhh1,iii1,j1j1,k1k2,l1a2" > > ' etc > > ss = SPLIT(sChain,",") > > hope this help > Dominique > > > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Fri Jun 26 16:21:41 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Fri, 26 Jun 2009 16:21:41 +0200 Subject: [Gambas-user] Blob management In-Reply-To: <892657.10000.qm@...1782...> References: <72933.43198.qm@...1655...> <4A444308.9050707@...1000...> <892657.10000.qm@...1782...> Message-ID: <200906261621.41810.gambas@...1...> > It doesn't work, the file is saved emty. > > Benoit, any idea? > > Regards > > > -- > David > > What happens if you put the blob data into a string variable before using File.Save() ? -- Beno?t From doriano.blengino at ...1909... Fri Jun 26 15:52:47 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Fri, 26 Jun 2009 15:52:47 +0200 Subject: [Gambas-user] I create a new function to share In-Reply-To: <200906260827.22677.pinozollo@...626...> References: <24216805.post@...1379...> <200906260827.22677.pinozollo@...626...> Message-ID: <4A44D2AF.3050006@...1909...> Pino Zollo ha scritto: > Il venerd? 26 giugno 2009 04:34:54 kobolds ha scritto: > >> I create a function call FormatX() for easy formatting number, date and >> string . read the cctools.html for detail on how to use it . >> >> post your opinion what you think about it >> >> http://www.nabble.com/file/p24216805/cctools.tar cctools.tar >> > > Hi, > I have tried in "it_IT.utf8" environment and I get: > > FMain.Form_Open.396: comma is decimal separator True > FMain.Form_Open.397: 2 347,25 > > Actually puts a space in place of . > With default Debian configuration, LANG=it_IT at ...33..., tried this: label2.Text = Format(22505.6, "#,#.00") Results in "22 505,6" <- there is a space. ----------------- Changed file "/usr/share/i18n/locales/it_IT" so the section: LC_NUMERIC decimal_point "" thousands_sep "" <------------ empty string grouping 0;0 END LC_NUMERIC results in: LC_NUMERIC decimal_point "" thousands_sep "" <------- dot simbol grouping 0;0 END LC_NUMERIC ...and now it works ok. I don't know why there is this error - don't even know if this *is* an error, but now it works as expected. If somebody confirms to me that the value of *thousand_sep* should not be empty, I can post a bug to the maintainer of the file *BUT*: It is worth to note that in that file, a few lines above, in the section LC_MONETARY, the thousand separator is correctly indicated. As Benoit says, all this could be correct - if we want thousand separators perhaps we have to use the monetary notation and not a "general number" one. In fact, to separate the thousands is more a commercial habit than a general/scientific one. But if this is true, then perhaps gambas lacks a CURRENCY data type, or a mean to use a currency/monetary representation inside format$(). By the way, a CURRENCY data type could come handy by itself - I had some problems with rounding floating point values and, in all the places where calculations were done (simple additions and subtraction of numbers with only two decimals of precision, normal for currency), I had to modify the code and round down values myself - tired of "1.999,99999998" numbers... In other languages the CURRENCY datatype is defined as an INT64 which, when printed or mixed with other numerical types, is first divided (or multiplied) by 10000 (ten thousands). In other words, the number 22,5 (twentytwo and a half) is stored as the integer 225000. This way, all rounding errors are get rid of. Regards, Doriano From gambas at ...1... Fri Jun 26 16:27:55 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Fri, 26 Jun 2009 16:27:55 +0200 Subject: [Gambas-user] I create a new function to share In-Reply-To: <4A44D2AF.3050006@...1909...> References: <24216805.post@...1379...> <200906260827.22677.pinozollo@...626...> <4A44D2AF.3050006@...1909...> Message-ID: <200906261627.55733.gambas@...1...> > Pino Zollo ha scritto: > > Il venerd? 26 giugno 2009 04:34:54 kobolds ha scritto: > >> I create a function call FormatX() for easy formatting number, date and > >> string . read the cctools.html for detail on how to use it . > >> > >> post your opinion what you think about it > >> > >> http://www.nabble.com/file/p24216805/cctools.tar cctools.tar > > > > Hi, > > I have tried in "it_IT.utf8" environment and I get: > > > > FMain.Form_Open.396: comma is decimal separator True > > FMain.Form_Open.397: 2 347,25 > > > > Actually puts a space in place of . > > With default Debian configuration, LANG=it_IT at ...33..., tried this: > > label2.Text = Format(22505.6, "#,#.00") > > > Results in "22 505,6" <- there is a space. > > ----------------- > > Changed file "/usr/share/i18n/locales/it_IT" so the section: > > LC_NUMERIC > decimal_point "" > thousands_sep "" <------------ empty string > grouping 0;0 > END LC_NUMERIC > > > results in: > > LC_NUMERIC > decimal_point "" > thousands_sep "" <------- dot simbol > grouping 0;0 > END LC_NUMERIC > > > ...and now it works ok. > > I don't know why there is this error - don't even know if this *is* an > error, but now it works as expected. If somebody confirms to me that the > value of *thousand_sep* should not be empty, I can post a bug to the > maintainer of the file *BUT*: > > It is worth to note that in that file, a few lines above, in the section > LC_MONETARY, the thousand separator is correctly indicated. As Benoit > says, all this could be correct - if we want thousand separators perhaps > we have to use the monetary notation and not a "general number" one. In > fact, to separate the thousands is more a commercial habit than a > general/scientific one. But if this is true, then perhaps gambas lacks a > CURRENCY data type, or a mean to use a currency/monetary representation > inside format$(). By the way, a CURRENCY data type could come handy by > itself - I had some problems with rounding floating point values and, in > all the places where calculations were done (simple additions and > subtraction of numbers with only two decimals of precision, normal for > currency), I had to modify the code and round down values myself - tired > of "1.999,99999998" numbers... > > In other languages the CURRENCY datatype is defined as an INT64 which, > when printed or mixed with other numerical types, is first divided (or > multiplied) by 10000 (ten thousands). In other words, the number 22,5 > (twentytwo and a half) is stored as the integer 225000. This way, all > rounding errors are get rid of. > > Regards, > Doriano > I won't make a Currency data type, but you can do: Print Format$(Amount, "$0,###.##") to format currencies (see the documentation of Format). Regards, -- Beno?t From david_villalobos_c at ...43... Fri Jun 26 16:42:22 2009 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Fri, 26 Jun 2009 07:42:22 -0700 (PDT) Subject: [Gambas-user] Blob management In-Reply-To: <200906261621.41810.gambas@...1...> References: <72933.43198.qm@...1655...> <4A444308.9050707@...1000...> <892657.10000.qm@...1782...> <200906261621.41810.gambas@...1...> Message-ID: <868268.54248.qm@...1678...> I do this: DIM hResultado AS Result DIM sImagen AS String IF NOT Exist("/tmp/mas") THEN MKDIR "/tmp/mas" hResultado = $hConn.Exec("SELECT * FROM `Imagenes`") sImagen = hResultado["Imagen"].Data <----------------------- Fails here "Not an object" File.Save("/tmp/mas/1.jpg", sImagen) and DIM hResultado AS Result DIM sImagen AS String IF NOT Exist("/tmp/mas") THEN MKDIR "/tmp/mas" hResultado = $hConn.Exec("SELECT * FROM `Imagenes`") sImagen = hResultado["Imagen"] File.Save("/tmp/mas/1.jpg", sImagen) Saves an empty file. Regards -- David ----- Original Message ---- From: Beno?t Minisini To: mailing list for gambas users Sent: Friday, June 26, 2009 8:21:41 AM Subject: Re: [Gambas-user] Blob management > It doesn't work, the file is saved emty. > > Benoit, any idea? > > Regards > > > -- > David > > What happens if you put the blob data into a string variable before using File.Save() ? -- Beno?t ------------------------------------------------------------------------------ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From ron at ...1740... Fri Jun 26 16:57:12 2009 From: ron at ...1740... (Ron) Date: Fri, 26 Jun 2009 16:57:12 +0200 Subject: [Gambas-user] Blob management In-Reply-To: <868268.54248.qm@...1678...> References: <72933.43198.qm@...1655...> <4A444308.9050707@...1000...> <892657.10000.qm@...1782...> <200906261621.41810.gambas@...1...> <868268.54248.qm@...1678...> Message-ID: <4A44E1C8.9010005@...1740...> David Villalobos Cambronero wrote: > I do this: > > DIM hResultado AS Result > DIM sImagen AS String > > IF NOT Exist("/tmp/mas") THEN MKDIR "/tmp/mas" > hResultado = $hConn.Exec("SELECT * FROM `Imagenes`") > sImagen = hResultado["Imagen"].Data <----------------------- Fails here "Not an object" > File.Save("/tmp/mas/1.jpg", sImagen) > > > and > > DIM hResultado AS Result > DIM sImagen AS String > > IF NOT Exist("/tmp/mas") THEN MKDIR "/tmp/mas" > hResultado = $hConn.Exec("SELECT * FROM `Imagenes`") > sImagen = hResultado["Imagen"] > File.Save("/tmp/mas/1.jpg", sImagen) > > Saves an empty file I guess you have a problem with more then one/or false result being returned, or with the syntax you use. Does the following line work??: sImagen = hResultado!Imagen.Data The code beneath is part of my project which does something similar and works 24/7. Regards, Ron_2nd. PUBLIC SUB SendCaptureByMail(sSubject AS String, sBody AS String, iCam AS Integer, OPTIONAL sTo AS String) DIM hMsg AS NEW SmtpClient DIM rResult AS Result DIM sTable AS String = "capture_camera" DIM sTempFile AS String = Temp() & ".jpg" DIM hFile AS File DIM sImage AS String IF NOT Main.bEmailEnabled THEN RETURN sTable = sTable & iCam ' get last image rResult = Main.hDB.Exec(Subst("SELECT * FROM &1 ORDER BY stamp DESC LIMIT 1", sTable)) IF rResult.Available THEN IF rResult.Count = 1 THEN TRY File.Save(sTempFile, rResult!image.Data) END IF END IF IF Exist(sTempFile) THEN hMsg.Add(File.Load(sTempFile), "image/jpeg", "FrontDoor" & Format(Now(), "yyyy-mm-dd-hh-nn-ss") & ".jpg ") KILL sTempFile END IF ' sent msg to alternate address instead of default one IF (Len(sTo)) THEN hMsg.To.Add(sTo) ELSE hMsg.To.Add(Main.sEmailToAddress) END IF IF Main.bEMailDebug THEN Main.WriteDebugLog(Main.sEmailFromAddress) Main.WriteDebugLog(Main.sEmailSMTPServer) Main.WriteDebugLog(Main.iEmailSMTPPort) END IF hMsg.Subject = sSubject hMsg.Add(sBody & "\n\n" & "-- \nPowered by " & Application.Name & " V" & Application.Version & "\n") hMsg.From = Main.sEmailFromAddress hMsg.Host = Main.sEmailSMTPServer hMsg.Port = Main.iEmailSMTPPort hMsg.Send() IF Main.bEMailDebug THEN Main.WriteDebugLog("[e-mail] Message is sent.") CATCH Main.WriteLog("e-mail Error: Sending e-mail message failed!") END Table is defined with: tableCaptures = Main.hDB.Tables.Add("capture_camera") tableCaptures.Fields.Add("id", db.Serial) tableCaptures.Fields.Add("stamp", db.Date, 32) tableCaptures.Fields.Add("image", db.Blob) tableCaptures.PrimaryKey = ["id"] tableCaptures.Update() From gambas at ...1... Fri Jun 26 17:15:43 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Fri, 26 Jun 2009 17:15:43 +0200 Subject: [Gambas-user] Blob management In-Reply-To: <868268.54248.qm@...1678...> References: <72933.43198.qm@...1655...> <200906261621.41810.gambas@...1...> <868268.54248.qm@...1678...> Message-ID: <200906261715.43577.gambas@...1...> > I do this: > > DIM hResultado AS Result > DIM sImagen AS String > > IF NOT Exist("/tmp/mas") THEN MKDIR "/tmp/mas" > hResultado = $hConn.Exec("SELECT * FROM `Imagenes`") > sImagen = hResultado["Imagen"].Data <----------------------- Fails here > "Not an object" Well, that means that hResultado["Imagen"] returns NULL. Are you sure that your field is interpreted as a "Blob" by Gambas? I remind you that MySQL has no blob field type, only string field types. So Gambas has to make a choice, and only string field types whose maximum length is greater then 2^24 is a blob. -- Beno?t From kobolds at ...2041... Fri Jun 26 17:34:04 2009 From: kobolds at ...2041... (kobolds) Date: Fri, 26 Jun 2009 08:34:04 -0700 (PDT) Subject: [Gambas-user] I create a new function to share In-Reply-To: <200906260827.22677.pinozollo@...626...> References: <24216805.post@...1379...> <200906260827.22677.pinozollo@...626...> Message-ID: <24222407.post@...1379...> Pino Zollo wrote: > > Il venerd? 26 giugno 2009 04:34:54 kobolds ha scritto: >> I create a function call FormatX() for easy formatting number, date and >> string . read the cctools.html for detail on how to use it . >> >> post your opinion what you think about it >> >> http://www.nabble.com/file/p24216805/cctools.tar cctools.tar > > Hi, > I have tried in "it_IT.utf8" environment and I get: > > FMain.Form_Open.396: comma is decimal separator True > FMain.Form_Open.397: 2 347,25 > > Actually puts a space in place of . > > This is the code: > ---------- > IF InStr(Str(Pi), ",") THEN ' check the locale...has it comma or point as > separator ? > comma = TRUE > ELSE > comma = FALSE > END IF > DEBUG "comma is decimal separator ", comma > DEBUG CCtools.formatx(-2347.25, "@N9.2") > > ---------- > > I am going to try it in other LANG environment. > > Thank you > > Pino > > -- > Key ID: 0xF6768208 > Key fingerprint = B16D 0A7C 5B29 A334 CE6A 71F6 EAF8 3D88 F676 8208 > Key server: hkp://wwwkeys.eu.pgp.net > > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > thanks for trying the function . I never try other language before so right now I don't know how to resolve the problem . I design this function to make difficult formatting that gambas programmer might encounter become easy. you will probably using it more in situation that need fix size for example you need to write program to export data to text file in fix size in following format. 1. item_no type:integer size = 10 character , leading zero 2. item name type:string size = 20 character, trailing space 3. item_qty type:integer size = 5 character , leading zero 4. item_price type:float size = 10 character , 2 decimal , leading zero, no thousand and decimal separator you can easily do this by : 1. formatx(item_no , "@n010") 2. formatx(item_name, "@s20") 3. formatx(item_qty, "@n05") 4 formatx(item_price, "@n010vv2") you can see that how this function simplify your code that you will need more code without it? -- View this message in context: http://www.nabble.com/I-create-a-new-function-to-share-tp24216805p24222407.html Sent from the gambas-user mailing list archive at Nabble.com. From david_villalobos_c at ...43... Fri Jun 26 17:38:00 2009 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Fri, 26 Jun 2009 08:38:00 -0700 (PDT) Subject: [Gambas-user] Blob management In-Reply-To: <200906261715.43577.gambas@...1...> References: <72933.43198.qm@...1655...> <200906261621.41810.gambas@...1...> <868268.54248.qm@...1678...> <200906261715.43577.gambas@...1...> Message-ID: <39845.95831.qm@...1658...> Hi, first of all thanks to Benoit, Ron and Wener for help me. Just to be clear if someone reads this in the future, these statementst are correct: DIM hResultado AS Result IF NOT Exist("/tmp/mas") THEN MKDIR "/tmp/mas" hResultado = $hConn.Exec("SELECT * FROM `Imagenes`") File.Save("/tmp/mas/1.jpg", hResultado["Imagen"].Data) The problem is that gambas espect a longblob and my field is mediumblob, if I change the datatype to longblob the statements above work fine. So, I think this was the problem, BUT, the problem is that the pictures I want to storage are not that big, so I will waste some space, Bonoit, can you (actualy you) change this interpretation of the Gambas database component? to use more optimal datatypes? Maybe for Gambas3? Regards -- David ----- Original Message ---- From: Beno?t Minisini To: mailing list for gambas users Sent: Friday, June 26, 2009 9:15:43 AM Subject: Re: [Gambas-user] Blob management > I do this: > > DIM hResultado AS Result > DIM sImagen AS String > > IF NOT Exist("/tmp/mas") THEN MKDIR "/tmp/mas" > hResultado = $hConn.Exec("SELECT * FROM `Imagenes`") > sImagen = hResultado["Imagen"].Data <----------------------- Fails here > "Not an object" Well, that means that hResultado["Imagen"] returns NULL. Are you sure that your field is interpreted as a "Blob" by Gambas? I remind you that MySQL has no blob field type, only string field types. So Gambas has to make a choice, and only string field types whose maximum length is greater then 2^24 is a blob. -- Beno?t ------------------------------------------------------------------------------ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Fri Jun 26 18:04:27 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Fri, 26 Jun 2009 18:04:27 +0200 Subject: [Gambas-user] Blob management In-Reply-To: <39845.95831.qm@...1658...> References: <72933.43198.qm@...1655...> <200906261715.43577.gambas@...1...> <39845.95831.qm@...1658...> Message-ID: <200906261804.27430.gambas@...1...> > Hi, first of all thanks to Benoit, Ron and Wener for help me. > > Just to be clear if someone reads this in the future, these statementst are > correct: > > DIM hResultado AS Result > > IF NOT Exist("/tmp/mas") THEN MKDIR "/tmp/mas" > hResultado = $hConn.Exec("SELECT * FROM `Imagenes`") > File.Save("/tmp/mas/1.jpg", hResultado["Imagen"].Data) > > > > The problem is that gambas espect a longblob and my field is mediumblob, if > I change the datatype to longblob the statements above work fine. > > So, I think this was the problem, BUT, the problem is that the pictures I > want to storage are not that big, so I will waste some space, Bonoit, can > you (actualy you) change this interpretation of the Gambas database > component? to use more optimal datatypes? Maybe for Gambas3? > > Regards > > > -- > David > > I don't think you will waste any space by using longblob (or longtext) instead of mediumblob (or mediumtext). Why do you think that? -- Beno?t From david_villalobos_c at ...43... Fri Jun 26 18:14:30 2009 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Fri, 26 Jun 2009 09:14:30 -0700 (PDT) Subject: [Gambas-user] Blob management In-Reply-To: <200906261804.27430.gambas@...1...> References: <72933.43198.qm@...1655...> <200906261715.43577.gambas@...1...> <39845.95831.qm@...1658...> <200906261804.27430.gambas@...1...> Message-ID: <713280.440.qm@...1655...> Form MySQL 5.1 Manual, page 603: - Data Type - - Storage Required - BLOB, TEXT L+2 bytes, where L < 2^16 MEDIUMBLOB, MEDIUMTEXT L+3 bytes, where L < 2^24 LONGBLOB, LONGTEXT L+4 bytes, where L < 2^32 I just need 2^24 not 2^32. Since LONGBLOB is not a VARBLOB I thnik it will take all the space. But I'm not a mysql expert. Regards -- David ----- Original Message ---- From: Beno?t Minisini To: mailing list for gambas users Sent: Friday, June 26, 2009 10:04:27 AM Subject: Re: [Gambas-user] Blob management > Hi, first of all thanks to Benoit, Ron and Wener for help me. > > Just to be clear if someone reads this in the future, these statementst are > correct: > > DIM hResultado AS Result > > IF NOT Exist("/tmp/mas") THEN MKDIR "/tmp/mas" > hResultado = $hConn.Exec("SELECT * FROM `Imagenes`") > File.Save("/tmp/mas/1.jpg", hResultado["Imagen"].Data) > > > > The problem is that gambas espect a longblob and my field is mediumblob, if > I change the datatype to longblob the statements above work fine. > > So, I think this was the problem, BUT, the problem is that the pictures I > want to storage are not that big, so I will waste some space, Bonoit, can > you (actualy you) change this interpretation of the Gambas database > component? to use more optimal datatypes? Maybe for Gambas3? > > Regards > > > -- > David > > I don't think you will waste any space by using longblob (or longtext) instead of mediumblob (or mediumtext). Why do you think that? -- Beno?t ------------------------------------------------------------------------------ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Fri Jun 26 18:29:38 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 26 Jun 2009 18:29:38 +0200 Subject: [Gambas-user] Blob management In-Reply-To: <713280.440.qm@...1655...> References: <72933.43198.qm@...1655...> <200906261804.27430.gambas@...1...> <713280.440.qm@...1655...> Message-ID: <200906261829.39024.gambas@...1...> > Form MySQL 5.1 Manual, page 603: > > - Data Type - - Storage Required - > BLOB, TEXT L+2 bytes, where L < 2^16 > MEDIUMBLOB, MEDIUMTEXT L+3 bytes, where L < 2^24 > LONGBLOB, LONGTEXT L+4 bytes, where L < 2^32 > > > I just need 2^24 not 2^32. Since LONGBLOB is not a VARBLOB I thnik it will > take all the space. > > But I'm not a mysql expert. > > Regards > > > -- > David > Accorging to http://dev.mysql.com/doc/refman/5.0/en/storage-requirements.html: Data Type Storage Required TINYBLOB, TINYTEXT L + 1 bytes, where L < 28 BLOB, TEXT L + 2 bytes, where L < 216 MEDIUMBLOB, MEDIUMTEXT L + 3 bytes, where L < 224 LONGBLOB, LONGTEXT L + 4 bytes, where L < 232 [...] TEXT and BLOB columns are implemented differently in the NDB Cluster storage engine, wherein each row in a TEXT column is made up of two separate parts. One of these is of fixed size (256 bytes), and is actually stored in the original table. The other consists of any data in excess of 256 bytes, which is stored in a hidden table. The rows in this second table are always 2,000 bytes long. This means that the size of a TEXT column is 256 if size <= 256 (where size represents the size of the row); otherwise, the size is 256 + size + (2000 ? (size ? 256) % 2000). So you will lose one byte by using a LONGBLOB instead of a MEDIUMBLOB. Regards, -- Beno?t From pinozollo at ...626... Fri Jun 26 18:33:40 2009 From: pinozollo at ...626... (Pino Zollo) Date: Fri, 26 Jun 2009 12:33:40 -0400 Subject: [Gambas-user] I create a new function to share In-Reply-To: <24222407.post@...1379...> References: <24216805.post@...1379...> <200906260827.22677.pinozollo@...626...> <24222407.post@...1379...> Message-ID: <200906261233.40542.pinozollo@...626...> Il venerd? 26 giugno 2009 11:34:04 kobolds ha scritto: > for example > you need to write program to export data to text file in fix size in > following format. > 1. item_no ? ? ?type:integer ? ?size = 10 character , leading zero > 2. item name ? type:string ? ? ?size = 20 character, trailing space > 3. item_qty ? ? type:integer ? ?size = 5 character , leading zero > 4. item_price ? type:float ? ? ? size = 10 character , 2 decimal , leading > zero, no thousand and decimal separator > > you can easily do this by : > 1. formatx(item_no , "@n010") > 2. formatx(item_name, "@s20") > 3. formatx(item_qty, "@n05") > 4 formatx(item_price, "@n010vv2") > ? > you can see that how this function simplify your code that you will need > more code without it? Thanks for sharing your code. Yes I am going to use it into my project as it simplifies my code quite a lot. Any how I have to solve also the other problem as my code is supposed to be used under any 'locale'. If I get a space in place of a point I can make a work-around...it is actually what I have done up to now.... The problem now is with Russian language. The code produces a point as thousand separator, but the form and the console of GAMBAS show two squares...i.e. 2 not recognised utf-8 characters. You can test it making a test user on your system and put into his .profile the command LANG="ru_RU.utf8" and run your program as this user. Best 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 doriano.blengino at ...1909... Fri Jun 26 18:50:41 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Fri, 26 Jun 2009 18:50:41 +0200 Subject: [Gambas-user] I create a new function to share In-Reply-To: <200906261627.55733.gambas@...1...> References: <24216805.post@...1379...> <200906260827.22677.pinozollo@...626...> <4A44D2AF.3050006@...1909...> <200906261627.55733.gambas@...1...> Message-ID: <4A44FC61.4040102@...1909...> Beno?t Minisini ha scritto: >> Changed file "/usr/share/i18n/locales/it_IT" so the section: >> >> LC_NUMERIC >> decimal_point "" >> thousands_sep "" <------------ empty string >> grouping 0;0 >> END LC_NUMERIC >> >> >> results in: >> >> LC_NUMERIC >> decimal_point "" >> thousands_sep "" <------- dot simbol >> grouping 0;0 >> END LC_NUMERIC >> >> >> ...and now it works ok. >> >> I don't know why there is this error - don't even know if this *is* an >> error, but now it works as expected. If somebody confirms to me that the >> value of *thousand_sep* should not be empty, I can post a bug to the >> maintainer of the file *BUT*: >> >> It is worth to note that in that file, a few lines above, in the section >> LC_MONETARY, the thousand separator is correctly indicated. As Benoit >> says, all this could be correct - if we want thousand separators perhaps >> we have to use the monetary notation and not a "general number" one. In >> fact, to separate the thousands is more a commercial habit than a >> general/scientific one. But if this is true, then perhaps gambas lacks a >> CURRENCY data type, or a mean to use a currency/monetary representation >> inside format$(). By the way, a CURRENCY data type could come handy by >> itself - I had some problems with rounding floating point values and, in >> all the places where calculations were done (simple additions and >> subtraction of numbers with only two decimals of precision, normal for >> currency), I had to modify the code and round down values myself - tired >> of "1.999,99999998" numbers... >> >> In other languages the CURRENCY datatype is defined as an INT64 which, >> when printed or mixed with other numerical types, is first divided (or >> multiplied) by 10000 (ten thousands). In other words, the number 22,5 >> (twentytwo and a half) is stored as the integer 225000. This way, all >> rounding errors are get rid of. >> >> Regards, >> Doriano >> >> > > I won't make a Currency data type, but you can do: > > Print Format$(Amount, "$0,###.##") > > to format currencies (see the documentation of Format). > > Regards, > > I saw the documentation, but not always I want to have the currency symbol printed... is there a way to use the thousand separator without putting a currency symbol in? Thanks anyway and regards, Doriano From gambas at ...1... Fri Jun 26 19:11:57 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Fri, 26 Jun 2009 19:11:57 +0200 Subject: [Gambas-user] I create a new function to share In-Reply-To: <4A44FC61.4040102@...1909...> References: <24216805.post@...1379...> <200906261627.55733.gambas@...1...> <4A44FC61.4040102@...1909...> Message-ID: <200906261911.57639.gambas@...1...> > Beno?t Minisini ha scritto: > >> Changed file "/usr/share/i18n/locales/it_IT" so the section: > >> > >> LC_NUMERIC > >> decimal_point "" > >> thousands_sep "" <------------ empty string > >> grouping 0;0 > >> END LC_NUMERIC > >> > >> > >> results in: > >> > >> LC_NUMERIC > >> decimal_point "" > >> thousands_sep "" <------- dot simbol > >> grouping 0;0 > >> END LC_NUMERIC > >> > >> > >> ...and now it works ok. > >> > >> I don't know why there is this error - don't even know if this *is* an > >> error, but now it works as expected. If somebody confirms to me that the > >> value of *thousand_sep* should not be empty, I can post a bug to the > >> maintainer of the file *BUT*: > >> > >> It is worth to note that in that file, a few lines above, in the section > >> LC_MONETARY, the thousand separator is correctly indicated. As Benoit > >> says, all this could be correct - if we want thousand separators perhaps > >> we have to use the monetary notation and not a "general number" one. In > >> fact, to separate the thousands is more a commercial habit than a > >> general/scientific one. But if this is true, then perhaps gambas lacks a > >> CURRENCY data type, or a mean to use a currency/monetary representation > >> inside format$(). By the way, a CURRENCY data type could come handy by > >> itself - I had some problems with rounding floating point values and, in > >> all the places where calculations were done (simple additions and > >> subtraction of numbers with only two decimals of precision, normal for > >> currency), I had to modify the code and round down values myself - tired > >> of "1.999,99999998" numbers... > >> > >> In other languages the CURRENCY datatype is defined as an INT64 which, > >> when printed or mixed with other numerical types, is first divided (or > >> multiplied) by 10000 (ten thousands). In other words, the number 22,5 > >> (twentytwo and a half) is stored as the integer 225000. This way, all > >> rounding errors are get rid of. > >> > >> Regards, > >> Doriano > > > > I won't make a Currency data type, but you can do: > > > > Print Format$(Amount, "$0,###.##") > > > > to format currencies (see the documentation of Format). > > > > Regards, > > I saw the documentation, but not always I want to have the currency > symbol printed... is there a way to use the thousand separator without > putting a currency symbol in? > > Thanks anyway and regards, > Doriano > Don't put the '$' sign. But beware that then the thousand separator used won't be the "currency" one but the normal one. Regards, -- Beno?t From gambas at ...1... Fri Jun 26 19:23:25 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Fri, 26 Jun 2009 19:23:25 +0200 Subject: [Gambas-user] I create a new function to share In-Reply-To: <200906260850.06902.pinozollo@...626...> References: <24216805.post@...1379...> <200906260850.06902.pinozollo@...626...> Message-ID: <200906261923.25896.gambas@...1...> > Il venerd? 26 giugno 2009 04:34:54 kobolds ha scritto: > > I create a function call FormatX() for easy formatting number, date and > > string . read the cctools.html for detail on how to use it . > > > > post your opinion what you think about it > > > > http://www.nabble.com/file/p24216805/cctools.tar cctools.tar > > Tied in ru_RU.utf8 and got exactly the same GAMBAS problem.... > > See the attached image. > > Ciao > Pino I think there is a bug in Gambas in that specific case. I will release the 2.14 first, and then investigate to fix what should be the problem, and then I will release a 2.14.1. Regards, -- Beno?t From doriano.blengino at ...1909... Fri Jun 26 23:18:28 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Fri, 26 Jun 2009 23:18:28 +0200 Subject: [Gambas-user] I create a new function to share In-Reply-To: <200906261911.57639.gambas@...1...> References: <24216805.post@...1379...> <200906261627.55733.gambas@...1...> <4A44FC61.4040102@...1909...> <200906261911.57639.gambas@...1...> Message-ID: <4A453B24.9010903@...1909...> Beno?t Minisini ha scritto: >> Beno?t Minisini ha scritto: >> >>>> Changed file "/usr/share/i18n/locales/it_IT" so the section: >>>> >>>> LC_NUMERIC >>>> decimal_point "" >>>> thousands_sep "" <------------ empty string >>>> grouping 0;0 >>>> END LC_NUMERIC >>>> >>>> >>>> results in: >>>> >>>> LC_NUMERIC >>>> decimal_point "" >>>> thousands_sep "" <------- dot simbol >>>> grouping 0;0 >>>> END LC_NUMERIC >>>> >>>> >>>> ...and now it works ok. >>>> >>>> I don't know why there is this error - don't even know if this *is* an >>>> error, but now it works as expected. If somebody confirms to me that the >>>> value of *thousand_sep* should not be empty, I can post a bug to the >>>> maintainer of the file *BUT*: >>>> >>>> It is worth to note that in that file, a few lines above, in the section >>>> LC_MONETARY, the thousand separator is correctly indicated. As Benoit >>>> says, all this could be correct - if we want thousand separators perhaps >>>> we have to use the monetary notation and not a "general number" one. In >>>> fact, to separate the thousands is more a commercial habit than a >>>> general/scientific one. But if this is true, then perhaps gambas lacks a >>>> CURRENCY data type, or a mean to use a currency/monetary representation >>>> inside format$(). By the way, a CURRENCY data type could come handy by >>>> itself - I had some problems with rounding floating point values and, in >>>> all the places where calculations were done (simple additions and >>>> subtraction of numbers with only two decimals of precision, normal for >>>> currency), I had to modify the code and round down values myself - tired >>>> of "1.999,99999998" numbers... >>>> >>>> In other languages the CURRENCY datatype is defined as an INT64 which, >>>> when printed or mixed with other numerical types, is first divided (or >>>> multiplied) by 10000 (ten thousands). In other words, the number 22,5 >>>> (twentytwo and a half) is stored as the integer 225000. This way, all >>>> rounding errors are get rid of. >>>> >>>> Regards, >>>> Doriano >>>> >>> I won't make a Currency data type, but you can do: >>> >>> Print Format$(Amount, "$0,###.##") >>> >>> to format currencies (see the documentation of Format). >>> >>> Regards, >>> >> I saw the documentation, but not always I want to have the currency >> symbol printed... is there a way to use the thousand separator without >> putting a currency symbol in? >> >> Thanks anyway and regards, >> Doriano >> >> > > Don't put the '$' sign. But beware that then the thousand separator used won't > be the "currency" one but the normal one. > > ...and this leads again to the starting point... I don't know i18n enough, and perhaps Gambas neither, but this is what I have understood until now: 1. i18n says that a "normal" number has no thousand separator; instead a currency ("monetary") has it. Thinking again and again, this could make sense. 2. KDE desktop has its own management. Don't know how and why - perhaps those guys want to run KDE without i18n dependency. Gambas uses much of KDE, but not its locale settings. This again could make sense. 3. Using native Gambas functions there is no way to format a number like a monetary one, without putting the currency symbol in place. 4. Anyway, i18n says that the thousand separator is _nothing_, not a space. Which is different. 5. I *could* modify the relevant file, just to see it overwritten the next time a system update takes place. Anyway, I think that that file is correct. All the things make sense, but I can not believe that one can not format a currency without putting the monetary symbol in. Sounds strange, true? Regards, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From sktan007 at ...43... Sat Jun 27 00:41:34 2009 From: sktan007 at ...43... (Swee Kwang Tan) Date: Fri, 26 Jun 2009 15:41:34 -0700 (PDT) Subject: [Gambas-user] How do you set text for a group of textbox ? Message-ID: <538056.32894.qm@...2227...> Dear Sir, If I have a group of textbox, a string array access data from database, How do I write a program to set text for each textbox sepqrately ? like the following dim str[10] as string dim i as integer ..... .....????? 'after this line, str get the data from database for i = 0 to 9 ???????? myTextBoxGroup[tag].text = str[i] next This is the last question, I have't other problem now. Thank? you _______________________________________ ???????????? http://cn.mail.yahoo.com From gambas at ...1... Sat Jun 27 02:57:29 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Sat, 27 Jun 2009 02:57:29 +0200 Subject: [Gambas-user] I create a new function to share In-Reply-To: <4A453B24.9010903@...1909...> References: <24216805.post@...1379...> <200906261911.57639.gambas@...1...> <4A453B24.9010903@...1909...> Message-ID: <200906270257.29257.gambas@...1...> > Beno?t Minisini ha scritto: > >> Beno?t Minisini ha scritto: > >>>> Changed file "/usr/share/i18n/locales/it_IT" so the section: > >>>> > >>>> LC_NUMERIC > >>>> decimal_point "" > >>>> thousands_sep "" <------------ empty string > >>>> grouping 0;0 > >>>> END LC_NUMERIC > >>>> > >>>> > >>>> results in: > >>>> > >>>> LC_NUMERIC > >>>> decimal_point "" > >>>> thousands_sep "" <------- dot simbol > >>>> grouping 0;0 > >>>> END LC_NUMERIC > >>>> > >>>> > >>>> ...and now it works ok. > >>>> > >>>> I don't know why there is this error - don't even know if this *is* an > >>>> error, but now it works as expected. If somebody confirms to me that > >>>> the value of *thousand_sep* should not be empty, I can post a bug to > >>>> the maintainer of the file *BUT*: > >>>> > >>>> It is worth to note that in that file, a few lines above, in the > >>>> section LC_MONETARY, the thousand separator is correctly indicated. As > >>>> Benoit says, all this could be correct - if we want thousand > >>>> separators perhaps we have to use the monetary notation and not a > >>>> "general number" one. In fact, to separate the thousands is more a > >>>> commercial habit than a general/scientific one. But if this is true, > >>>> then perhaps gambas lacks a CURRENCY data type, or a mean to use a > >>>> currency/monetary representation inside format$(). By the way, a > >>>> CURRENCY data type could come handy by itself - I had some problems > >>>> with rounding floating point values and, in all the places where > >>>> calculations were done (simple additions and subtraction of numbers > >>>> with only two decimals of precision, normal for currency), I had to > >>>> modify the code and round down values myself - tired of > >>>> "1.999,99999998" numbers... > >>>> > >>>> In other languages the CURRENCY datatype is defined as an INT64 which, > >>>> when printed or mixed with other numerical types, is first divided (or > >>>> multiplied) by 10000 (ten thousands). In other words, the number 22,5 > >>>> (twentytwo and a half) is stored as the integer 225000. This way, all > >>>> rounding errors are get rid of. > >>>> > >>>> Regards, > >>>> Doriano > >>> > >>> I won't make a Currency data type, but you can do: > >>> > >>> Print Format$(Amount, "$0,###.##") > >>> > >>> to format currencies (see the documentation of Format). > >>> > >>> Regards, > >> > >> I saw the documentation, but not always I want to have the currency > >> symbol printed... is there a way to use the thousand separator without > >> putting a currency symbol in? > >> > >> Thanks anyway and regards, > >> Doriano > > > > Don't put the '$' sign. But beware that then the thousand separator used > > won't be the "currency" one but the normal one. > > ...and this leads again to the starting point... > > I don't know i18n enough, and perhaps Gambas neither, but this is what I > have understood until now: > > 1. i18n says that a "normal" number has no thousand separator; instead a > currency ("monetary") has it. Thinking again and again, this could make > sense. > > 2. KDE desktop has its own management. Don't know how and why - perhaps > those guys want to run KDE without i18n dependency. Gambas uses much of > KDE, but not its locale settings. This again could make sense. > > 3. Using native Gambas functions there is no way to format a number like > a monetary one, without putting the currency symbol in place. > > 4. Anyway, i18n says that the thousand separator is _nothing_, not a > space. Which is different. > > 5. I *could* modify the relevant file, just to see it overwritten the > next time a system update takes place. Anyway, I think that that file is > correct. > > All the things make sense, but I can not believe that one can not format > a currency without putting the monetary symbol in. Sounds strange, true? > > Regards, Sorry, I didn't understand that you wanted to format a currency value without the currency symbol. Strange anyway... As a workaround, you can use the following function: PRIVATE SUB FormatCurrency(eValue AS Float, sFormat AS String) AS String DIM sCurr AS String DIM sResult AS String DIM iPos AS Integer sCurr = Format(0, "$0") sCurr = Replace(sCurr, "0", "") FOR iPos = 1 TO Len(sFormat) IF InStr("0#", Mid$(sFormat, iPos, 1)) THEN BREAK NEXT sResult = Format(eValue, Left(sFormat, iPos - 1) & "$" & Mid$(sFormat, iPos + 1)) sResult = Replace(sResult, sCurr, "") RETURN sResult END Regards, -- Beno?t From doriano.blengino at ...1909... Sat Jun 27 08:52:52 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Sat, 27 Jun 2009 08:52:52 +0200 Subject: [Gambas-user] I create a new function to share In-Reply-To: <200906270257.29257.gambas@...1...> References: <24216805.post@...1379...> <200906261911.57639.gambas@...1...> <4A453B24.9010903@...1909...> <200906270257.29257.gambas@...1...> Message-ID: <4A45C1C4.4010304@...1909...> Beno?t Minisini ha scritto: >> 1. i18n says that a "normal" number has no thousand separator; instead a >> currency ("monetary") has it. Thinking again and again, this could make >> sense. >> >> 2. KDE desktop has its own management. Don't know how and why - perhaps >> those guys want to run KDE without i18n dependency. Gambas uses much of >> KDE, but not its locale settings. This again could make sense. >> >> 3. Using native Gambas functions there is no way to format a number like >> a monetary one, without putting the currency symbol in place. >> >> 4. Anyway, i18n says that the thousand separator is _nothing_, not a >> space. Which is different. >> >> 5. I *could* modify the relevant file, just to see it overwritten the >> next time a system update takes place. Anyway, I think that that file is >> correct. >> >> All the things make sense, but I can not believe that one can not format >> a currency without putting the monetary symbol in. Sounds strange, true? >> >> Regards, >> > > Sorry, I didn't understand that you wanted to format a currency value without > the currency symbol. Strange anyway... > It is not strange at all... think at those reports commercials do for taxes purposes (balance?) after every quarter, or a bank report where everything reported is money. money, money and always money. Being all filled with numbers, all of them signifying currency, it is better to not repeat the "$" or "?" every time - the report is more readable. To be precise, what I wanted (and failed) to say is a little different. Often I want to print a number (a quantity of some material, for example, or a long distance expressed in Km). According to i18n such number should not have a thousand separator, but it is common practice to use those separators anyway: try to do a calculation in KCalc - it will show the separators (without currency symbol). > As a workaround, you can use the following function: > > PRIVATE SUB FormatCurrency(eValue AS Float, sFormat AS String) AS String > > DIM sCurr AS String > DIM sResult AS String > DIM iPos AS Integer > > sCurr = Format(0, "$0") > sCurr = Replace(sCurr, "0", "") > > FOR iPos = 1 TO Len(sFormat) > IF InStr("0#", Mid$(sFormat, iPos, 1)) THEN BREAK > NEXT > > sResult = Format(eValue, Left(sFormat, iPos - 1) & "$" & > Mid$(sFormat, iPos + 1)) > > sResult = Replace(sResult, sCurr, "") > > RETURN sResult > > END > > I did already solve my problem, but your routine is more general and I will use it in the future. Thanks and regards. -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From kobolds at ...2041... Sat Jun 27 10:16:10 2009 From: kobolds at ...2041... (kobolds) Date: Sat, 27 Jun 2009 01:16:10 -0700 (PDT) Subject: [Gambas-user] I create a new function to share In-Reply-To: <4A45C1C4.4010304@...1909...> References: <24216805.post@...1379...> <200906260827.22677.pinozollo@...626...> <4A44D2AF.3050006@...1909...> <200906261627.55733.gambas@...1...> <4A44FC61.4040102@...1909...> <200906261911.57639.gambas@...1...> <4A453B24.9010903@...1909...> <200906270257.29257.gambas@...1...> <4A45C1C4.4010304@...1909...> Message-ID: <24231246.post@...1379...> Doriano Blengino wrote: > > Beno?t Minisini ha scritto: >>> 1. i18n says that a "normal" number has no thousand separator; instead a >>> currency ("monetary") has it. Thinking again and again, this could make >>> sense. >>> >>> 2. KDE desktop has its own management. Don't know how and why - perhaps >>> those guys want to run KDE without i18n dependency. Gambas uses much of >>> KDE, but not its locale settings. This again could make sense. >>> >>> 3. Using native Gambas functions there is no way to format a number like >>> a monetary one, without putting the currency symbol in place. >>> >>> 4. Anyway, i18n says that the thousand separator is _nothing_, not a >>> space. Which is different. >>> >>> 5. I *could* modify the relevant file, just to see it overwritten the >>> next time a system update takes place. Anyway, I think that that file is >>> correct. >>> >>> All the things make sense, but I can not believe that one can not format >>> a currency without putting the monetary symbol in. Sounds strange, true? >>> >>> Regards, >>> >> >> Sorry, I didn't understand that you wanted to format a currency value >> without >> the currency symbol. Strange anyway... >> > It is not strange at all... think at those reports commercials do for > taxes purposes (balance?) after every quarter, or a bank report where > everything reported is money. money, money and always money. Being all > filled with numbers, all of them signifying currency, it is better to > not repeat the "$" or "?" every time - the report is more readable. > > To be precise, what I wanted (and failed) to say is a little different. > Often I want to print a number (a quantity of some material, for > example, or a long distance expressed in Km). According to i18n such > number should not have a thousand separator, but it is common practice > to use those separators anyway: try to do a calculation in KCalc - it > will show the separators (without currency symbol). > >> As a workaround, you can use the following function: >> >> PRIVATE SUB FormatCurrency(eValue AS Float, sFormat AS String) AS String >> >> DIM sCurr AS String >> DIM sResult AS String >> DIM iPos AS Integer >> >> sCurr = Format(0, "$0") >> sCurr = Replace(sCurr, "0", "") >> >> FOR iPos = 1 TO Len(sFormat) >> IF InStr("0#", Mid$(sFormat, iPos, 1)) THEN BREAK >> NEXT >> >> sResult = Format(eValue, Left(sFormat, iPos - 1) & "$" & >> Mid$(sFormat, iPos + 1)) >> >> sResult = Replace(sResult, sCurr, "") >> >> RETURN sResult >> >> END >> >> > I did already solve my problem, but your routine is more general and I > will use it in the future. Thanks and regards. > > -- > Doriano Blengino > > "Listen twice before you speak. > This is why we have two ears, but only one mouth." > > > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > try use formatx . 1. to not print currency sign formatx(9123.12 , "@n9.2") ---> 9,123.12 2. to print currency sign just put the currency sign between (~) formatx(9123.12 , "@n~? ~9.2") ---> ? 9,123.12 formatx(9123.12 , "@n9.2~ ?~") ---> 9,123.12 ? as you can see you only need to type 1 line -- View this message in context: http://www.nabble.com/I-create-a-new-function-to-share-tp24216805p24231246.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Sat Jun 27 16:45:25 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Sat, 27 Jun 2009 16:45:25 +0200 Subject: [Gambas-user] Release of Gambas 2.14 Message-ID: <200906271645.25952.gambas@...1...> Hi, This release fixes the following problems: - All database drivers became components so that they can be an explicit project dependency. - File watch management routines were fixed in the interpreter, in gb.qt and gb.gtk. - Static variables are correctly inherited now. - Focus and clipboard management in gb.qt were fixed. - A lot of gb.gtk bugs was fixed too. And here is the full ChangeLog: ------------------------------------------------------------------------------- [CONFIGURATION] * NEW: All database drivers became components so that they can be an explicit project dependency. [INTERPRETER] * NEW: Backport memory debugging routines from Gambas 3. * BUG: Fix uninitialized flags in streams, which made INPUT mad on 64 bits systems. * BUG: Fix the file watch management routines. * BUG: Freeing a collection does not crash anymore if a collection item is removed during the process. * BUG: Static variables are correctly inherited now. * BUG: Fix compilation on 64 bits systems. * BUG: Standard streams are not closed at exit anymore. [COMPILER] * BUG: Unexpected END SUB or END FUNCTION are detected now. [GB.CORBA] * BUG: Fix building with gcc 4.4.0 [GB.DB.SQLITE2] * BUG: Fix strchr() casting with next gcc 4.4 release. [GB.DB.SQLITE3] * BUG: Fix strchr() casting with next gcc 4.4 release. [GB.FORM] * BUG: The ValueBox.ReadOnly now works as expected. * BUG: DirView now supports an hidden directory as root. [GB.GTK] * BUG: Controls using the base style color (like TextBox, TextArea...) do not take the background color of their parent by default. * BUG: Reparenting a top-level window, or putting it inside a Workspace does not show hidden menus anymore. * BUG: Fix the Cursor class, and the Control.Cursor property. * BUG: Handle focus events the same way as in gb.qt. * BUG: Fix focus handling when SetFocus is called inside a GotFocus or LostFocus event handler. * BUG: Fix the file watch management routines. * BUG: Font management was redesigned. It does not leak memory anymore, and now behaves like in gb.qt. * BUG: Tristate CheckBox controls now work as expected. * BUG: Destroy pending deleted controls before entering the event loop, to avoid some memory leaks if the event loop is immediately aborted. * BUG: Detach destroyed controls from their event listener, as in gb.qt. * BUG: Fix a possible crash when setting the TextBox.Text property with a null string. [GB.NET.CURL] * BUG: The first header string was not nul terminated. [GB.QT] * BUG: Fix GotFocus and LostFocus events generation. * BUG: Fix focus handling when SetFocus is called inside a GotFocus or LostFocus event handler. * BUG: Fix the file watch management routines. * BUG: Fix the Clipboard class. Data copied into the clipboard was not visible to other applications in some cases. * BUG: Font properties are correctly inherited between containers and children controls. * BUG: Showing a tray icon does not eat focus events anymore. ------------------------------------------------------------------------------- Enjoy it! -- Beno?t From rterry at ...1946... Sun Jun 28 00:56:01 2009 From: rterry at ...1946... (richard terry) Date: Sun, 28 Jun 2009 08:56:01 +1000 Subject: [Gambas-user] Apparent new Feature in IDe subroutine combo Message-ID: <200906280856.01921.rterry@...1946...> On my 2050 build when I click on the subroutines list I get a top-to bottom of IDE list which means I can pretty much instantly see all the routines on my form. Beats scrolling. Hope it stays and is not a 'bug'! From gambas at ...1... Sun Jun 28 01:03:29 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Sun, 28 Jun 2009 01:03:29 +0200 Subject: [Gambas-user] Apparent new Feature in IDe subroutine combo In-Reply-To: <200906280856.01921.rterry@...1946...> References: <200906280856.01921.rterry@...1946...> Message-ID: <200906280103.29361.gambas@...1...> > On my 2050 build when I click on the subroutines list I get a top-to bottom > of IDE list which means I can pretty much instantly see all the routines on > my form. Beats scrolling. > > Hope it stays and is not a 'bug'! > Hem...I don't see what you are talking about. -- Beno?t From steven at ...2097... Mon Jun 29 07:21:22 2009 From: steven at ...2097... (Steven James Drinnan) Date: Mon, 29 Jun 2009 13:21:22 +0800 Subject: [Gambas-user] How do you set text for a group of textbox ? In-Reply-To: <538056.32894.qm@...2227...> References: <538056.32894.qm@...2227...> Message-ID: <1246252882.3059.13.camel@...2011...> On Fri, 2009-06-26 at 15:41 -0700, Swee Kwang Tan wrote: > Dear Sir, > If I have a group of textbox, a string array access data from database, How do I write a > program to set text for each textbox sepqrately ? like the following > dim str[10] as string > dim i as integer > ..... > ..... 'after this line, str get the data from database > for i = 0 to 9 > myTextBoxGroup[tag].text = str[i] > next > This is the last question, I have't other problem now. > Thank you > > > _______________________________________ > ???????????? > http://cn.mail.yahoo.com > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user Group is used to assassin a common event handler any control that has that group name will that code first. i.e if a group is named 'n' then the key press event would be public sub n_keypress() to find the control that fired this event use the LAST key word But this may help. You could try putting the controls into an object array like this Dim myTextBoxGroup as Object[10] 'this makes an array of 10 for ten text boxes. DIM mycontrol AS Object FOR EACH mycontrol IN ME.Controls IF mycontrol IS TextBox THEN 'you can put other conditionals here TRY myTextBoxGroup.Add mycontrol END IF then you can use your code below. Dim curTextBox as Textbox dim str[10] as string dim i as integer for i = 0 to 9 curTextBox = myTextBoxGroup[tag] 'changes it to the correct type curtextBox.text = str[i] next P.S what is tag From kobolds at ...2041... Mon Jun 29 19:29:23 2009 From: kobolds at ...2041... (kobolds) Date: Mon, 29 Jun 2009 10:29:23 -0700 (PDT) Subject: [Gambas-user] something very strange with the compiler Message-ID: <24258395.post@...1379...> I found something very strange with the compiler . I have a variable that I declare it public in a module . I use the variable in a form code . then I change the name of the variable and select compile all and make . no error show up . but when I run the program and hit the line where I using the variable , an exception show up . is gambas suppose to be like that ? -- View this message in context: http://www.nabble.com/something-very-strange-with-the-compiler-tp24258395p24258395.html Sent from the gambas-user mailing list archive at Nabble.com. From pinozollo at ...626... Mon Jun 29 23:21:23 2009 From: pinozollo at ...626... (Pino Zollo) Date: Mon, 29 Jun 2009 17:21:23 -0400 Subject: [Gambas-user] How to report signal #11 Message-ID: <200906291721.23258.pinozollo@...626...> Hi, In certain circumstances my project ends with signal #11 I am trying to follow the following instructions but I am confused about the complete sequence: -------------------------------------- 3. Reporting a crash (a segmentation fault, or a signal #11) If Gambas crashes, you can trace it and tell me where it crashed exactly. It is very helpful for me. If you don't know how to do that, read the following carefully: * Open a terminal, and go to the directory of the project that crashes. If the IDE crashes, go to the IDE sources in the appsrcgambas2 directory of the source package. For example: $ cd ~/gambas2-2.XX.Y/app/src/gambas2 * Then compile all the IDE. $ gbc2 -agt * Launch the GNU debugger. $ gdb gbx2 GNU gdb 6.6-3mdv2008.0 (Mandriva Linux release 2008.0) Copyright (C) 2006 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i586-mandriva-linux-gnu". (gdb) --------------------------------------- I get the following: ----------------------------- IK1CHE:/home/pino/GAMBAS/dblog# IK1CHE:/usr/src/gambas2-2.13.1/app/src/gambas2# gbc2 -agt OK IK1CHE:/usr/src/gambas2-2.13.1/app/src/gambas2# gdb gbx2 GNU gdb 6.8-debian Copyright (C) 2008 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 "i486-linux-gnu"... (gdb) set args -p (gdb) run Starting program: /usr/local/bin/gbx2 -p [Thread debugging using libthread_db enabled] [2]+ Stopped gdb gbx2 -------------------------- and gdb ends. Please, how do I compile my project with debugging informations in ? Shell I also recompile the IDE ? Thanks Pino -- Key ID: 0xF6768208 Key fingerprint = B16D 0A7C 5B29 A334 CE6A 71F6 EAF8 3D88 F676 8208 Key server: hkp://wwwkeys.eu.pgp.net From diego at ...1942... Tue Jun 30 00:30:49 2009 From: diego at ...1942... (=?ISO-8859-1?Q?Diego_Fern=E1ndez?=) Date: Mon, 29 Jun 2009 16:30:49 -0600 Subject: [Gambas-user] gb.net.smtp doubt!! Message-ID: <4A494099.3090906@...1942...> Hi all, I am implementing a notification system on an app. The thing is i need to be able to conect to a mail server with authentication. Ive been playing around with the component all day but seems i cant do that. Correct me if i am wrong. Also if someone has any suggestion it will be well received. Thanks From gambas at ...1... Tue Jun 30 00:59:03 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Mon, 29 Jun 2009 22:59:03 +0000 Subject: [Gambas-user] gb.net.smtp doubt!! In-Reply-To: <4A494099.3090906@...1942...> References: <4A494099.3090906@...1942...> Message-ID: <200906300059.04390.gambas@...1...> > Hi all, > > I am implementing a notification system on an app. The thing is i need > to be able to conect to a mail server with authentication. Ive been > playing around with the component all day but seems i cant do that. > Correct me if i am wrong. > > Also if someone has any suggestion it will be well received. > > Thanks > I'm afraid the rudimentary gb.net.smtp is not able to do that. I have found a better smtp library to do the job in the past, but I don't remember it! -- Beno?t From guido.iodice at ...626... Tue Jun 30 07:48:25 2009 From: guido.iodice at ...626... (guiodic) Date: Mon, 29 Jun 2009 22:48:25 -0700 (PDT) Subject: [Gambas-user] Using gb.web in my own gambas web server Message-ID: <24266408.post@...1379...> Hi Benoit, hi to all. You kwon I'm the author of BaShare, a simple web server with a GUI useful in file sharing. I'm trying to implement file reception in BaShare from a web form like this:



So it was very useful if was possible to use gb.web in my application. I tryed this: PUBLIC SUB Socket_Read() PRINT Request.Fields.Count TRY LAST.Close TRY client.Remove(client.Find(LAST)) END but Request.Fields.Count is 0 The alternative is to parse manually the stream... but is very tedious. Have you some suggests? Thank you very much. -- View this message in context: http://www.nabble.com/Using-gb.web-in-my-own-gambas-web-server-tp24266408p24266408.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Tue Jun 30 11:48:22 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Tue, 30 Jun 2009 11:48:22 +0200 Subject: [Gambas-user] Using gb.web in my own gambas web server In-Reply-To: <24266408.post@...1379...> References: <24266408.post@...1379...> Message-ID: <200906301148.22905.gambas@...1...> > Hi Benoit, hi to all. > > You kwon I'm the author of BaShare, a simple web server with a GUI useful > in file sharing. > > I'm trying to implement file reception in BaShare from a web form like > this: > >
enctype='multipart/form-data'> >

type='submit'>
> >
> > So it was very useful if was possible to use gb.web in my application. I > tryed this: > > PUBLIC SUB Socket_Read() > > > PRINT Request.Fields.Count > > TRY LAST.Close > TRY client.Remove(client.Find(LAST)) > > END > > but Request.Fields.Count is 0 > > The alternative is to parse manually the stream... but is very tedious. > > Have you some suggests? > > Thank you very much. As stated in the documentation, gb.web allows you to implement *CGI* scripts, i.e. executables that are run by the HTTP server and that return the HTTP response on their standard output stream. Regards, -- Beno?t From guido.iodice at ...626... Tue Jun 30 12:09:15 2009 From: guido.iodice at ...626... (guiodic) Date: Tue, 30 Jun 2009 03:09:15 -0700 (PDT) Subject: [Gambas-user] Using gb.web in my own gambas web server In-Reply-To: <200906301148.22905.gambas@...1...> References: <24266408.post@...1379...> <200906301148.22905.gambas@...1...> Message-ID: <24269316.post@...1379...> Beno?t Minisini wrote: > > As stated in the documentation, gb.web allows you to implement *CGI* > scripts, > i.e. executables that are run by the HTTP server and that return the HTTP > response on their standard output stream. > > Regards, > > -- > Beno?t > > > yes, of course. So, the solution could be to make a separate executable which I send the raw stream and receive the output. Is it a good idea in you opinion? Best regards and thank you. -- View this message in context: http://www.nabble.com/Using-gb.web-in-my-own-gambas-web-server-tp24266408p24269316.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Tue Jun 30 12:43:29 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Tue, 30 Jun 2009 12:43:29 +0200 Subject: [Gambas-user] Using gb.web in my own gambas web server In-Reply-To: <24269316.post@...1379...> References: <24266408.post@...1379...> <200906301148.22905.gambas@...1...> <24269316.post@...1379...> Message-ID: <200906301243.29145.gambas@...1...> > Beno?t Minisini wrote: > > As stated in the documentation, gb.web allows you to implement *CGI* > > scripts, > > i.e. executables that are run by the HTTP server and that return the HTTP > > response on their standard output stream. > > > > Regards, > > > > -- > > Beno?t > > yes, of course. So, the solution could be to make a separate executable > which I send the raw stream and receive the output. Is it a good idea in > you opinion? > > Best regards and thank you. Why shouldn't be a good idea? It depends on what you will do with your CGI script. -- Beno?t From guido.iodice at ...626... Tue Jun 30 12:51:18 2009 From: guido.iodice at ...626... (guiodic) Date: Tue, 30 Jun 2009 03:51:18 -0700 (PDT) Subject: [Gambas-user] Using gb.web in my own gambas web server In-Reply-To: <200906301243.29145.gambas@...1...> References: <24266408.post@...1379...> <200906301148.22905.gambas@...1...> <24269316.post@...1379...> <200906301243.29145.gambas@...1...> Message-ID: <24269830.post@...1379...> Beno?t Minisini wrote: > > It depends on what you will do with your CGI script. > my CGI must save the file that browser send via the form. -- View this message in context: http://www.nabble.com/Using-gb.web-in-my-own-gambas-web-server-tp24266408p24269830.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Tue Jun 30 12:52:19 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Tue, 30 Jun 2009 12:52:19 +0200 Subject: [Gambas-user] something very strange with the compiler In-Reply-To: <24258395.post@...1379...> References: <24258395.post@...1379...> Message-ID: <200906301252.19524.gambas@...1...> > I found something very strange with the compiler . I have a variable that I > declare it public in a module . I use the variable in a form code . then I > change the name of the variable and select compile all and make . no error > show up . but when I run the program and hit the line where I using the > variable , an exception show up . > > > is gambas suppose to be like that ? Yes, this is by design. All project files are compiled independently, and all linkage is done at runtime. -- Beno?t From diego at ...1942... Tue Jun 30 16:01:12 2009 From: diego at ...1942... (=?ISO-8859-1?Q?Diego_Fern=E1ndez?=) Date: Tue, 30 Jun 2009 08:01:12 -0600 Subject: [Gambas-user] gb.net.smtp doubt!! In-Reply-To: <200906300059.04390.gambas@...1...> References: <4A494099.3090906@...1942...> <200906300059.04390.gambas@...1...> Message-ID: <4A4A1AA8.2040506@...1942...> Beno?t Minisini escribi?: >> Hi all, >> >> I am implementing a notification system on an app. The thing is i need >> to be able to conect to a mail server with authentication. Ive been >> playing around with the component all day but seems i cant do that. >> Correct me if i am wrong. >> >> Also if someone has any suggestion it will be well received. >> >> Thanks >> >> > > I'm afraid the rudimentary gb.net.smtp is not able to do that. I have found a > better smtp library to do the job in the past, but I don't remember it! > > :S :( i am sadly to hear that. If you could do some memory please to remember what was the library you use in the past i will much apreciate that. thanks. From sbungay at ...981... Tue Jun 30 18:00:54 2009 From: sbungay at ...981... (Stephen Bungay) Date: Tue, 30 Jun 2009 12:00:54 -0400 Subject: [Gambas-user] Side panel example?? Message-ID: <4A4A36B6.9090103@...981...> Using Gambas 2.1.2 on KUbuntu 8.04. Perhaps I've been away from Gambas for far too long, either that or I'm just thick, but whichever it is I can't seem to get the side panel working as 'I' think it should, and that is perhaps the problem. Has anyone got a simple example of using the side panel that they would be willing to share, or perhaps cook up a small sample app showing it's usage? Nothing fancy, just the side panel hosting a push button would do, because whenever I try to use the sidepanel, it slides around just fine, but the control contained within it is not visible (kind of useless then)... and it has me somewhat perplexed as to the proper useage of this component. Being Thick.. perhaps needing some coffee... Steve. From ron at ...1740... Tue Jun 30 20:19:19 2009 From: ron at ...1740... (Ron) Date: Tue, 30 Jun 2009 20:19:19 +0200 Subject: [Gambas-user] V4L2 backport do-able? Message-ID: <4A4A5727.9080307@...1740...> Is it do-able to backport V4L2 to Gambas stable? I find a lot of video cams/devices using this version, and they do not seem to work with the current component. It gets a bit useless as time goes by.... Anyone has taken a shot at this yet? Kind regards, Ron_2nd. From prog at ...2177... Tue Jun 30 22:50:20 2009 From: prog at ...2177... (craf) Date: Tue, 30 Jun 2009 16:50:20 -0400 Subject: [Gambas-user] Example MoviePlayer in Black Message-ID: <1246395020.3425.3.camel@...651...> Hello. I'm trying the example that comes with Gambas, called movieplayer. When the executive, control Movieplay stays black, and only appears sound. System to use: Ubuntu Jaunty Jackalope Shrimp 2.14 mplayer 2.1.0 any idea? Regards From leonardo at ...1237... Tue Jun 30 23:26:06 2009 From: leonardo at ...1237... (Leonardo Miliani) Date: Tue, 30 Jun 2009 23:26:06 +0200 Subject: [Gambas-user] Bug in package creator? In-Reply-To: <200906260112.36143.gambas@...1...> References: <4A4371DF.6040408@...1237...> <200906251510.29344.gambas@...1...> <200906260112.36143.gambas@...1...> Message-ID: <4A4A82EE.6050500@...1237...> Beno?t Minisini ha scritto: > In revision #2044, you can now use any database driver as a component and > check it in the IDE project property dialog. This way, they can be an explicit > dependency when generating a package. > > So you will get it in the upcoming 2.14 version. Several users have confirmed me that the bug still persists... If they specify Connection.Type="sqlite3" inside their programs and then they compile them, on the destination computers the component gb.db.sqlite isn't marked as a dependency and so the application doesn't start/work. -- Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Scegli software opensource - Choose opensource software Co-fondatore di Gambas-it.org Il sito di riferimento della comunit? italiana degli utenti di Gambas www.gambas-it.org From lordheavym at ...626... Tue Jun 30 23:43:34 2009 From: lordheavym at ...626... (Laurent Carlier) Date: Tue, 30 Jun 2009 23:43:34 +0200 Subject: [Gambas-user] Bug in package creator? In-Reply-To: <4A4A82EE.6050500@...1237...> References: <4A4371DF.6040408@...1237...> <200906260112.36143.gambas@...1...> <4A4A82EE.6050500@...1237...> Message-ID: <200906302343.35063.lordheavym@...626...> Le mardi 30 juin 2009 23:26:06 Leonardo Miliani, vous avez ?crit : > Beno?t Minisini ha scritto: > > In revision #2044, you can now use any database driver as a component and > > check it in the IDE project property dialog. This way, they can be an > > explicit dependency when generating a package. > > > > So you will get it in the upcoming 2.14 version. > > Several users have confirmed me that the bug still persists... > If they specify Connection.Type="sqlite3" inside their programs and then > they compile them, on the destination computers the component > gb.db.sqlite isn't marked as a dependency and so the application doesn't > start/work. I guess you must add gb.db.sqlite3 in project property. project -> properties -> components tab ++ From rospolosco at ...152... Tue Jun 30 23:45:32 2009 From: rospolosco at ...152... (Stefano Palmeri) Date: Tue, 30 Jun 2009 23:45:32 +0200 Subject: [Gambas-user] Example MoviePlayer in Black In-Reply-To: <1246395020.3425.3.camel@...651...> References: <1246395020.3425.3.camel@...651...> Message-ID: <200906302345.32504.rospolosco@...152...> Il marted? 30 giugno 2009 22:50:20 craf ha scritto: > Hello. > > I'm trying the example that comes with Gambas, called movieplayer. When > the executive, control Movieplay stays black, and only appears sound. > > System to use: > > Ubuntu Jaunty Jackalope > Shrimp 2.14 > mplayer 2.1.0 > > any idea? > > Regards > --------------------------------------------------------------------------- >--- _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user It seems to be a gb.gtk problem. Save the MoviePlayer example in your home directory, then open it again and switch from gb.gtk to gb.qt in Project-->Properties-->Components. Stefano From rospolosco at ...152... Tue Jun 30 23:47:04 2009 From: rospolosco at ...152... (Stefano Palmeri) Date: Tue, 30 Jun 2009 23:47:04 +0200 Subject: [Gambas-user] TreeView example doesn't work Message-ID: <200906302347.04360.rospolosco@...152...> TreeView example doesn't work. It simply does nothing. Gambas 2.13.1. Stefano