From Karl.Reinl at ...9... Sun Mar 1 00:17:59 2009 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Sun, 01 Mar 2009 00:17:59 +0100 Subject: [Gambas-user] What dev package.... In-Reply-To: <49A9B19F.2040307@...981...> References: <49A9B19F.2040307@...981...> Message-ID: <1235863079.8350.0.camel@...40...> Am Samstag, den 28.02.2009, 16:50 -0500 schrieb Stephen Bungay: > Can someone shed some light on what dev package is required to > enable the gb.desktop component? > I've just moved over to kubuntu 8.04 from 7.04, I'm rebuilding > everything and this component is disabled (I've managed to hunt down all > the others I need). > > Steve. > http://gambasdoc.org/help/install/ubuntu For Hardy sudo apt-get install build-essential g++ automake autoconf libbz2-dev libgnorba-dev libfbclient2 libmysqlclient15-dev unixodbc-dev libpq-dev libsqlite0-dev libsqlite3-dev libgtk2.0-dev libldap2-dev libcurl3-dev libgtkglext1-dev libqt3-mt-dev kdebase-dev libpcre3-dev libsdl-sound1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev libsage-dev libxml2-dev libxslt1-dev build-essential libbonobo2-dev libcos4-dev libomniorb4-dev firebird2.0-dev librsvg2-dev libpoppler-dev libpoppler-dev libpoppler-glib-dev libasound2-dev libartsc0-dev libesd0-dev libesd-alsa0 libdirectfb-dev libaa1-dev libarts1-dev kdelibs4-dev libffi4-dev libxtst-dev gettext -- Amicalment Charlie From dosida at ...626... Sun Mar 1 03:08:02 2009 From: dosida at ...626... (Dimitris Anogiatis) Date: Sat, 28 Feb 2009 19:08:02 -0700 Subject: [Gambas-user] question about gambas2-runtime In-Reply-To: <6324a42a0902281319n7dbc26f1r88c7d28e6a0697d3@...627...> References: <4247f5440902251228y5db92db4w4e6329e97214ef87@...627...> <6324a42a0902281319n7dbc26f1r88c7d28e6a0697d3@...627...> Message-ID: <82bffccf0902281808y35f3c0e1lc2d3d452c79f04c0@...627...> to see what gambas packages you need to install a gambas binary you can press ctrl + p in the IDE and select the components tab the ones that are clicked are the ones your program requires to be present when you install the final deb package Hope it helps Dimitris On Sat, Feb 28, 2009 at 2:19 PM, Fabien Bodard wrote: > yes > > 2009/2/25 Joshua Higgins : > > I'm assuming that installing gambas2-runtime in Ubuntu, I'd still need to > > install gambas2-gb-net package to work if my program uses a UDP server, > for > > example? > > > > -- > > joshua higgins > >>>>>>>------ > > > ------------------------------------------------------------------------------ > > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, > CA > > -OSBC tackles the biggest issue in open source: Open Sourcing the > Enterprise > > -Strategies to boost innovation and cut costs with open source > participation > > -Receive a $600 discount off the registration fee with the source code: > SFAD > > http://p.sf.net/sfu/XcvMzF8H > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, > CA > -OSBC tackles the biggest issue in open source: Open Sourcing the > Enterprise > -Strategies to boost innovation and cut costs with open source > participation > -Receive a $600 discount off the registration fee with the source code: > SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From ihaywood at ...1979... Sun Mar 1 13:35:43 2009 From: ihaywood at ...1979... (Ian Haywood) Date: Sun, 1 Mar 2009 23:35:43 +1100 Subject: [Gambas-user] String[] initialisation Message-ID: <200903012335.43654.ihaywood@...1979...> I would like to initialise a String array to an array of zero elements. Setting to [] seems to be the same as NULL, which fires an error if .Length or .Push are called. Setting to ["foo"] (i.e. to an array of one dummy element), and then calling .Clear () does what I want, but this doesn't look right. Ian Haywood From gambas at ...1... Sun Mar 1 14:27:36 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Sun, 1 Mar 2009 14:27:36 +0100 Subject: [Gambas-user] Missing gambas2-gb-settings in OpenSuse In-Reply-To: <49A70C5C.4060509@...2035...> References: <49A70C5C.4060509@...2035...> Message-ID: <200903011427.36990.gambas@...1...> > Hello > > I'm trying to test my application (which uses gb.settings) into a > virtualized OpenSuse. > > All dependencies are found, except gambas2-gb-settings. I've browsed > repositories manually and also had no luck. > > Even if I install the whole Gambas IDE into OpenSuSe, debugging the > application or making an executable runs fine, but creating a RPM > package and trying to install it, gives the same error. > > Am I missing something, or is there a reason for so? > > Thanks > > Jesus > No reason. You should contact the person who made the package, and tell him that one package is missing. Regards, -- Beno?t From jguardon at ...2035... Sun Mar 1 14:43:56 2009 From: jguardon at ...2035... (Jesus Guardon) Date: Sun, 01 Mar 2009 14:43:56 +0100 Subject: [Gambas-user] Missing gambas2-gb-settings in OpenSuse In-Reply-To: <200903011427.36990.gambas@...1...> References: <49A70C5C.4060509@...2035...> <200903011427.36990.gambas@...1...> Message-ID: <49AA911C.3000405@...2035...> Thanks, Beno?t I think he's Guillermo Ballester Valor, so I will contact him. Regards Jes?s Guard?n Beno?t Minisini escribi?: >> Hello >> >> I'm trying to test my application (which uses gb.settings) into a >> virtualized OpenSuse. >> >> All dependencies are found, except gambas2-gb-settings. I've browsed >> repositories manually and also had no luck. >> >> Even if I install the whole Gambas IDE into OpenSuSe, debugging the >> application or making an executable runs fine, but creating a RPM >> package and trying to install it, gives the same error. >> >> Am I missing something, or is there a reason for so? >> >> Thanks >> >> Jesus >> > > No reason. You should contact the person who made the package, and tell him > that one package is missing. > > Regards, > From doriano.blengino at ...1909... Sun Mar 1 15:59:02 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Sun, 01 Mar 2009 15:59:02 +0100 Subject: [Gambas-user] String[] initialisation In-Reply-To: <200903012335.43654.ihaywood@...1979...> References: <200903012335.43654.ihaywood@...1979...> Message-ID: <49AAA2B6.30201@...1909...> Ian Haywood ha scritto: > I would like to initialise a String array to an array of zero elements. > > Setting to [] seems to be the same as NULL, which fires an error if .Length or .Push are called. > Setting to ["foo"] (i.e. to an array of one dummy element), and then calling .Clear () > does what I want, but this doesn't look right. > I my be wrong, but I think that: after having created an array, it is void (ie, it has no elements), so you have what you want. If, after having used it, you want to have it empty again, call Clear(); this empties it again. You are true in that "[]" should designate an empty array, not NULL. Anyway, the previous statements should work. Hope it helps -- regards, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From gambas at ...1... Sun Mar 1 18:37:28 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Sun, 1 Mar 2009 18:37:28 +0100 Subject: [Gambas-user] Probable bug in Postgres db driver In-Reply-To: <200902261428.43085.gambas@...1...> References: <200902260749.00396.rterry@...1946...> <200902261428.43085.gambas@...1...> Message-ID: <200903011837.28245.gambas@...1...> > > I've posted about this before in regards to the PictureDatabase example, > > as in postgres though you can save the picture, it dosn't retreive. I had > > asked someone to test it, though no-one appears to have had the time. > > > > This driver is pretty critical to my medical records project, as I used > > to be able to save images of skin lesions/Xrays, diagrams, line drawings, > > back to my database and now can save but the retreived image is chopped > > losing a number of bytes from the end and won't display. > > > > I want to be able to present my program at a medical computing > > conference in July as a prototype version reasonably fully complete by > > then, so I need it to work. All this work of mine by the way will be > > open-sourced if I can get it to a state of functional completeness. > > > > So I asked my mate Ian Haywood, who is quite an accomplished programmer > > and far far brighter and more computer literate than I by sending him > > this message > > > > > If you updated the latest ?gambas - you don't need my program to test > > > this - just change a couple of lines of code in the picturedatabase > > > sample program to use postgres and you will see the error. Maybe, it is > > > only on my machine. > > > > and this was his reply: > > > > ================================================= > > I can reproduce this. It is only postgres, only gambas, and only with the > > BYTEA type, TEXT doesn't do this (but you can't put a png in text, at > > least not easily). > > > > So, it's definitely a bug in the postgres drivers for gambas. > > Has this been reported to the gambas list? > > > > There is a workaround: convert the png to text and store, then convert > > back on reading. this works b/c our images are small, but big images will > > waste space and cause slowness. this solution is fairly easy to whip up, > > I can do this if the underlying bug can't be fixed and we want this > > functionality for 10240cc[conference]. > > > > Ian > > ================================================= > > > > So I wondered if somone could test the postgres driver again, just to > > make sure it is not a library on my machine, although I know Ian runs a > > debian flavour so probably not. > > > > Regards > > > > Richard > > I promise, I will look at that bug as soon as I finish my removal! > > Regards, It should be fixed in revision #1888, thanks to Ian Haywood. But I am not 100% sure, so please check! Regards, -- Beno?t From dosida at ...626... Mon Mar 2 00:08:31 2009 From: dosida at ...626... (Dimitris Anogiatis) Date: Sun, 1 Mar 2009 16:08:31 -0700 Subject: [Gambas-user] PRINT #process Example Message-ID: <82bffccf0903011508x5d1d97a5p27db2a392e427aaa@...627...> hey guys I've read the documentation on Process_Read() but I can't find a way to detect when the process has stopped and it's waiting for an input; to my understanding I can provide that input with PRINT #Process, "input" but so far I haven't found a full example of how that is done. can someone augment the process_read example to show me where and how the PRINT #process, "input" fits in the picture? I'm using Gambas 2.10 on Debian Lenny Thanks in advance Dimitris From marcel.duffau at ...626... Mon Mar 2 00:22:08 2009 From: marcel.duffau at ...626... (Vackoy) Date: Sun, 1 Mar 2009 15:22:08 -0800 (PST) Subject: [Gambas-user] question about gambas2-runtime In-Reply-To: <82bffccf0902281808y35f3c0e1lc2d3d452c79f04c0@...627...> References: <4247f5440902251228y5db92db4w4e6329e97214ef87@...627...> <6324a42a0902281319n7dbc26f1r88c7d28e6a0697d3@...627...> <82bffccf0902281808y35f3c0e1lc2d3d452c79f04c0@...627...> Message-ID: <22279540.post@...1379...> When I make an installation package (in Ubuntu), it doesn't generate the necessary dependences for the modules that I need for my program to run. I want to install my program in another computer by I don't want to install/compile gambas as a whole. Can this be done? Thanks Marcel Dimitris Anogiatis wrote: > > to see what gambas packages you need to install a gambas binary > you can press ctrl + p in the IDE and select the components tab > > the ones that are clicked are the ones your program requires to be present > when you install the final deb package > > Hope it helps > Dimitris > > On Sat, Feb 28, 2009 at 2:19 PM, Fabien Bodard > wrote: > >> yes >> >> 2009/2/25 Joshua Higgins : >> > I'm assuming that installing gambas2-runtime in Ubuntu, I'd still need >> to >> > install gambas2-gb-net package to work if my program uses a UDP server, >> for >> > example? >> > >> > -- >> > joshua higgins >> >>>>>>>------ >> > >> ------------------------------------------------------------------------------ >> > Open Source Business Conference (OSBC), March 24-25, 2009, San >> Francisco, >> CA >> > -OSBC tackles the biggest issue in open source: Open Sourcing the >> Enterprise >> > -Strategies to boost innovation and cut costs with open source >> participation >> > -Receive a $600 discount off the registration fee with the source code: >> SFAD >> > http://p.sf.net/sfu/XcvMzF8H >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > >> >> >> ------------------------------------------------------------------------------ >> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, >> CA >> -OSBC tackles the biggest issue in open source: Open Sourcing the >> Enterprise >> -Strategies to boost innovation and cut costs with open source >> participation >> -Receive a $600 discount off the registration fee with the source code: >> SFAD >> http://p.sf.net/sfu/XcvMzF8H >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, > CA > -OSBC tackles the biggest issue in open source: Open Sourcing the > Enterprise > -Strategies to boost innovation and cut costs with open source > participation > -Receive a $600 discount off the registration fee with the source code: > SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://www.nabble.com/question-about-gambas2-runtime-tp22211061p22279540.html Sent from the gambas-user mailing list archive at Nabble.com. From dosida at ...626... Mon Mar 2 01:00:30 2009 From: dosida at ...626... (Dimitris Anogiatis) Date: Sun, 1 Mar 2009 17:00:30 -0700 Subject: [Gambas-user] question about gambas2-runtime In-Reply-To: <22279540.post@...1379...> References: <4247f5440902251228y5db92db4w4e6329e97214ef87@...627...> <6324a42a0902281319n7dbc26f1r88c7d28e6a0697d3@...627...> <82bffccf0902281808y35f3c0e1lc2d3d452c79f04c0@...627...> <22279540.post@...1379...> Message-ID: <82bffccf0903011600u71e75497r7edb6b5a08f934e1@...627...> When gambas generates the debian/ubuntu package it takes care of all the gambas-related dependencies. attached is a png screenshot of what kpackage says about a dummy deb package I created with gambas. You'll see all the gambas related dependencies are there. if your program shell's or exec's to other programs that you might need to make sure they are installed or need any external dependencies that's a different story. They way I deal with something like that in my programs is that I use shell to check whether the program is installed or not, with something like this: SHELL("which amixer") TO tmpRes if I get a response it's there if not It's not and I message the user to install it before continuing Hope it helps. Dimitris On Sun, Mar 1, 2009 at 4:22 PM, Vackoy wrote: > > When I make an installation package (in Ubuntu), it doesn't generate the > necessary dependences for the modules that I need for my program to run. I > want to install my program in another computer by I don't want to > install/compile gambas as a whole. > > Can this be done? > > Thanks > > Marcel > > > > Dimitris Anogiatis wrote: > > > > to see what gambas packages you need to install a gambas binary > > you can press ctrl + p in the IDE and select the components tab > > > > the ones that are clicked are the ones your program requires to be > present > > when you install the final deb package > > > > Hope it helps > > Dimitris > > > > On Sat, Feb 28, 2009 at 2:19 PM, Fabien Bodard > > wrote: > > > >> yes > >> > >> 2009/2/25 Joshua Higgins : > >> > I'm assuming that installing gambas2-runtime in Ubuntu, I'd still need > >> to > >> > install gambas2-gb-net package to work if my program uses a UDP > server, > >> for > >> > example? > >> > > >> > -- > >> > joshua higgins > >> >>>>>>>------ > >> > > >> > ------------------------------------------------------------------------------ > >> > Open Source Business Conference (OSBC), March 24-25, 2009, San > >> Francisco, > >> CA > >> > -OSBC tackles the biggest issue in open source: Open Sourcing the > >> Enterprise > >> > -Strategies to boost innovation and cut costs with open source > >> participation > >> > -Receive a $600 discount off the registration fee with the source > code: > >> SFAD > >> > http://p.sf.net/sfu/XcvMzF8H > >> > _______________________________________________ > >> > Gambas-user mailing list > >> > Gambas-user at lists.sourceforge.net > >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > >> > >> > >> > ------------------------------------------------------------------------------ > >> Open Source Business Conference (OSBC), March 24-25, 2009, San > Francisco, > >> CA > >> -OSBC tackles the biggest issue in open source: Open Sourcing the > >> Enterprise > >> -Strategies to boost innovation and cut costs with open source > >> participation > >> -Receive a $600 discount off the registration fee with the source code: > >> SFAD > >> http://p.sf.net/sfu/XcvMzF8H > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > > ------------------------------------------------------------------------------ > > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, > > CA > > -OSBC tackles the biggest issue in open source: Open Sourcing the > > Enterprise > > -Strategies to boost innovation and cut costs with open source > > participation > > -Receive a $600 discount off the registration fee with the source code: > > SFAD > > http://p.sf.net/sfu/XcvMzF8H > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > -- > View this message in context: > http://www.nabble.com/question-about-gambas2-runtime-tp22211061p22279540.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, > CA > -OSBC tackles the biggest issue in open source: Open Sourcing the > Enterprise > -Strategies to boost innovation and cut costs with open source > participation > -Receive a $600 discount off the registration fee with the source code: > SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > 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: kpackage on gambas deb.png Type: image/png Size: 82589 bytes Desc: not available URL: From marc at ...2086... Mon Mar 2 08:06:17 2009 From: marc at ...2086... (Marc Carson) Date: Sun, 01 Mar 2009 23:06:17 -0800 Subject: [Gambas-user] Making an image button launch an executable? Message-ID: <49AB8569.5080801@...2086...> I'm just starting to learn Gambas and I'd like to know how to make an image-button launch an executable or a Bash script. I'd like to make a grid of buttons that I can customize in this way, each button with its own icon, sort of like how launchers work on the GNOME panel. Is this doable? If so I'd love to hear any advice on how. Thanks. -- *Marc Carson* From rterry at ...1946... Mon Mar 2 08:17:21 2009 From: rterry at ...1946... (richard terry) Date: Mon, 2 Mar 2009 18:17:21 +1100 Subject: [Gambas-user] Making an image button launch an executable? In-Reply-To: <49AB8569.5080801@...2086...> References: <49AB8569.5080801@...2086...> Message-ID: <200903021817.21125.rterry@...1946...> On Mon, 2 Mar 2009 06:06:17 pm Marc Carson wrote: > I'm just starting to learn Gambas and I'd like to know how to make an > image-button launch an executable or a Bash script. I'd like to make a > grid of buttons that I can customize in this way, each button with its > own icon, sort of like how launchers work on the GNOME panel. > > Is this doable? If so I'd love to hear any advice on how. > > Thanks. Not sure what you want, but sounds like its probably the shell command, look it up in the help Put under the click event public sub mybutton_click() Shell "kcalc" would run a calculator etc. end Lots of options, I'm not expert and struggle with knowing when a process finishes, and intend to ask some questions on that myself soon, but you can at least do simple things to start. Hope this is 'on topic' for you. Richard From doriano.blengino at ...1909... Mon Mar 2 09:48:27 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Mon, 02 Mar 2009 09:48:27 +0100 Subject: [Gambas-user] PRINT #process Example In-Reply-To: <82bffccf0903011508x5d1d97a5p27db2a392e427aaa@...627...> References: <82bffccf0903011508x5d1d97a5p27db2a392e427aaa@...627...> Message-ID: <49AB9D5B.5090106@...1909...> Dimitris Anogiatis ha scritto: > hey guys > > I've read the documentation on Process_Read() but I can't find a way to > detect > when the process has stopped and it's waiting for an input; to my > understanding > I can provide that input with PRINT #Process, "input" but so far I haven't > found > a full example of how that is done. > > can someone augment the process_read example to show me where and how > the PRINT #process, "input" fits in the picture? > All the thing starts by invoking an external command: PRIVATE hProc AS Process ... hProc = EXEC ["/bin/sh", "-c", "\"" & command & "\" load " & FMain.myfm_version] FOR INPUT OUTPUT AS "plugin" In the statement above an external command is invoked using /bin/sh, and passing it the command to execute along with its parameters. The clauses "FOR INPUT OUTPUT AS ..." are necessary to name an event which handles data received from standard output. At any time you can know the state of the external command peeking at hProc properties. You can also kill the command using "hProc.Kill". The event handler for reading is: PUBLIC SUB plugin_read() DIM st AS String LINE INPUT #hProc, st PRINT "Plugin: read "; st pluginlastread.Add(st) END The subroutine above is automatically invoked when a line can be read from the output of the command. This works when the output is made of entire lines, I am not sure what happens if a command does not output whole lines. At any time you can "print #hProc" to send data to the external process standard input. In my program I poll the hProc.State to see if the command is terminated or not; I think you can do it in the event handler, or outside (with a timer or something else). Also, I think that the input and output channels can be closed without issuing a Kill, and probably closing a channel also kills the external process, but I didn't try. At home I should have a small test program to demonstrates how pipes work. If you still need more info I can send you that project. Regards, Doriano From gambas at ...1... Mon Mar 2 12:34:21 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Mon, 2 Mar 2009 12:34:21 +0100 Subject: [Gambas-user] baloon size In-Reply-To: <200902261431.38069.gambas@...1...> References: <1f1e8c1b0902231041v4eb0e39la87d2b5b08b7696e@...627...> <200902261431.38069.gambas@...1...> Message-ID: <200903021234.23589.gambas@...1...> > > Is there any way to get a balloon to resize to what I need? > > > > I'm using aballoon to display about 12 lines of text (each line about > > 70 characters long) > > Is there any way to make the baloon resize to fit such a thing? > > > > Using Gambas2-2.11.1 > > Mmm. It seems there is a bug in gb.gtk, as with gb.qt the balloon displays > 12 lines of text without problems. > > Regards, OK, this bug is fixed in revision #1891 for Gambas 2 and revison #1892 for Gambas 3. Regards, -- Beno?t From jussi.lahtinen at ...626... Mon Mar 2 18:55:02 2009 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 2 Mar 2009 19:55:02 +0200 Subject: [Gambas-user] Two little bugs in gambas3 Message-ID: <384d3900903020955s10e96120ndfad15bcffaf3924@...627...> Hi! Two little bugs in Gambas3 IDE. 1. Missing "Each" command causes wrong error message (loop variable must be local); For SHmh In SHmhCollect Should be something like "expected Each or TO". 2. Renaming non empty sub folder causes mouse pointer to show wait icon for ever. When closing gambas, there will be message; WARNING: 2 allocation(s) non freed. No other ill effects noticed... How can I check revision number of installed gambas3 trunk? I can't remember what it was... maybe 1885. Jussi From m0e.lnx at ...626... Mon Mar 2 17:47:06 2009 From: m0e.lnx at ...626... (M0E Lnx) Date: Tue, 3 Mar 2009 10:46:06 +1759 Subject: [Gambas-user] baloon size In-Reply-To: <200903021234.23589.gambas@...1...> References: <1f1e8c1b0902231041v4eb0e39la87d2b5b08b7696e@...627...> <200902261431.38069.gambas@...1...> <200903021234.23589.gambas@...1...> Message-ID: <1f1e8c1b0903020847l43d29bc3q8990decad446f271@...627...> Thank you. Will it automagically resize or does it have a .width and .height property that I need to adjust? On Tue, Mar 3, 2009 at 5:33 AM, Beno?t Minisini wrote: >> > Is there any way to get a balloon to resize to what I need? >> > >> > I'm using aballoon to display about 12 lines of text (each line about >> > 70 characters long) >> > Is there any way to make the baloon resize to fit such a thing? >> > >> > Using Gambas2-2.11.1 >> >> Mmm. It seems there is a bug in gb.gtk, as with gb.qt the balloon displays >> 12 lines of text without problems. >> >> Regards, > > OK, this bug is fixed in revision #1891 for Gambas 2 and revison #1892 for > Gambas 3. > > Regards, > > -- > Beno?t > > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA > -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise > -Strategies to boost innovation and cut costs with open source participation > -Receive a $600 discount off the registration fee with the source code: SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Mon Mar 2 21:09:24 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Mon, 2 Mar 2009 21:09:24 +0100 Subject: [Gambas-user] baloon size In-Reply-To: <1f1e8c1b0903020847l43d29bc3q8990decad446f271@...627...> References: <1f1e8c1b0902231041v4eb0e39la87d2b5b08b7696e@...627...> <200903021234.23589.gambas@...1...> <1f1e8c1b0903020847l43d29bc3q8990decad446f271@...627...> Message-ID: <200903022109.24591.gambas@...1...> > Thank you. > Will it automagically resize or does it have a .width and .height > property that I need to adjust? > It will automagically resize. -- Beno?t From dosida at ...626... Tue Mar 3 00:40:34 2009 From: dosida at ...626... (Dimitris Anogiatis) Date: Mon, 2 Mar 2009 16:40:34 -0700 Subject: [Gambas-user] PRINT #process Example In-Reply-To: <49AB9D5B.5090106@...1909...> References: <82bffccf0903011508x5d1d97a5p27db2a392e427aaa@...627...> <49AB9D5B.5090106@...1909...> Message-ID: <82bffccf0903021540o2309e161g396b91cf259bdb91@...627...> Thanks for the quick reply Doriano, I got it working after experimenting a bit with your suggested solutions :) I tried using a timer but I soon found out that using the LINE INPUT from within the Process_Read works way better. Keep rockin :) Regards, Dimitris On Mon, Mar 2, 2009 at 1:48 AM, Doriano Blengino < doriano.blengino at ...1909...> wrote: > Dimitris Anogiatis ha scritto: > > hey guys > > > > I've read the documentation on Process_Read() but I can't find a way to > > detect > > when the process has stopped and it's waiting for an input; to my > > understanding > > I can provide that input with PRINT #Process, "input" but so far I > haven't > > found > > a full example of how that is done. > > > > can someone augment the process_read example to show me where and how > > the PRINT #process, "input" fits in the picture? > > > All the thing starts by invoking an external command: > > PRIVATE hProc AS Process > ... > hProc = EXEC ["/bin/sh", "-c", "\"" & command & "\" load " & > FMain.myfm_version] FOR INPUT OUTPUT AS "plugin" > > In the statement above an external command is invoked using /bin/sh, and > passing it the command to execute along with its parameters. > The clauses "FOR INPUT OUTPUT AS ..." are necessary to name an event which > handles data received from standard output. > > At any time you can know the state of the external command peeking at hProc > properties. > You can also kill the command using "hProc.Kill". > > The event handler for reading is: > > > PUBLIC SUB plugin_read() > > DIM st AS String > > LINE INPUT #hProc, st > > PRINT "Plugin: read "; st > > pluginlastread.Add(st) > > END > > The subroutine above is automatically invoked when a line can be read from > the output of the command. This works when the output is made of entire > lines, I am not sure what happens if a command does not output whole lines. > At any time you can "print #hProc" to send data to the external process > standard input. > In my program I poll the hProc.State to see if the command is terminated or > not; I think you can do it in the event handler, or outside (with a timer or > something else). > > Also, I think that the input and output channels can be closed without > issuing a Kill, and probably closing a channel also kills the external > process, but I didn't try. > > At home I should have a small test program to demonstrates how pipes work. > If you still need more info I can send you that project. > > Regards, > Doriano > > > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, > CA > -OSBC tackles the biggest issue in open source: Open Sourcing the > Enterprise > -Strategies to boost innovation and cut costs with open source > participation > -Receive a $600 discount off the registration fee with the source code: > SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From ron at ...1740... Tue Mar 3 01:43:55 2009 From: ron at ...1740... (Ron) Date: Tue, 03 Mar 2009 01:43:55 +0100 Subject: [Gambas-user] XMLRpc maybe a Bug In-Reply-To: <200808130058.00235.massenpost@...1093...> References: <200808130058.00235.massenpost@...1093...> Message-ID: <49AC7D4B.9000308@...1740...> Peter Lang wrote: > Hi, > > After investigating the Source of xmlrpc i thought i know how to use it... > Everything work so far, but the last Step does not work. > The line: myStruc.Value(a) has to return the result, but instead of giving > back an int i get an RpcStruct again and again. > > The sample does not much useful, but when it ends it throws the following > Errors to the Console: > WARNING: circular references detected > RpcStruct (1) > WARNING: 9 allocation(s) non freed. > > Is there any additional Documentation i missed? > > > PUBLIC SUB Main() > > DIM RpcF AS RpcFunction > DIM myStruc AS RpcStruct > DIM client AS RpcClient > DIM hVar AS NEW Variant[] > DIM ret AS Variant > DIM a AS Integer > DIM name AS String > DIM dType AS Integer > > a = 0 > > RpcF = NEW RpcFunction("sample.sumAndDifference", [XmlRpc.xInteger, > XmlRpc.xInteger], XmlRpc.xStruct) > client = NEW RpcClient(RpcF) > client.URL = "http://xmlrpc-c.sourceforge.net/api/sample.php" > hVar.Add(5) > hVar.Add(3) > > myStruc = client.Call(hVar) > DO WHILE a < myStruc.Count > name = myStruc.Key(a) > dType = myStruc.dataType(a) > ret = myStruc.Value(a) > INC a > LOOP > > END > Peter and all, I think I may have found the problem, it looks like a bug in the gb.xml.rpc component. BUT i'm not a xml guru nor a gambas component wizard, so it could be a bogus fix, and break things. Anyway with this change your example code works without errors and returns the correct values as well ;-) I have added some debug statements to your code to prove this, see below. Just change line 194 in "gambas/2.0/gb.xml/src/rpc/gb.xml.rpc/Tools.module" from: hAtom.Data.Add(Name, hAtom.Data, hAtom.Type) to: hAtom.Data.Add(Name, bAtom.Data, bAtom.Type) It looks like two typos to me... Then type sudo make install from dir "gambas/2.0/gb.xml/src/" to install it. Run code: --- ' Gambas module file PUBLIC SUB Main() DIM RpcF AS RpcFunction DIM myStruc AS RpcStruct DIM client AS RpcClient DIM hVar AS NEW Variant[] DIM ret AS Variant DIM a AS Integer DIM name AS String DIM dType AS Integer a = 0 RpcF = NEW RpcFunction("sample.sumAndDifference", [XmlRpc.xInteger, XmlRpc.xInteger], XmlRpc.xStruct) client = NEW RpcClient(RpcF) client.URL = "http://xmlrpc-c.sourceforge.net/api/sample.php" hVar.Add(5) hVar.Add(3) myStruc = client.Call(hVar) DO WHILE a < myStruc.Count name = myStruc.Key(a) dType = myStruc.dataType(a) ret = myStruc.Value(a) DEBUG "Name = " & name DEBUG "Type = " & dType DEBUG "Value = " & ret INC a LOOP END It returns: MMain.Main.28: Name = sum MMain.Main.29: Type = 0 MMain.Main.30: Value = 8 MMain.Main.28: Name = difference MMain.Main.29: Type = 0 MMain.Main.30: Value = 2 ;-) Regards, Ron_2nd. From ron at ...1740... Tue Mar 3 09:10:17 2009 From: ron at ...1740... (Ron) Date: Tue, 03 Mar 2009 09:10:17 +0100 Subject: [Gambas-user] XMLRpc maybe a Bug In-Reply-To: <200808130058.00235.massenpost@...1093...> References: <200808130058.00235.massenpost@...1093...> Message-ID: <49ACE5E9.4030707@...1740...> Sent it tonight, and still don't see it on the list, so reporting the bug fix again. See below. Peter Lang wrote: > Hi, > > After investigating the Source of xmlrpc i thought i know how to use it... > Everything work so far, but the last Step does not work. > The line: myStruc.Value(a) has to return the result, but instead of giving > back an int i get an RpcStruct again and again. > > The sample does not much useful, but when it ends it throws the following > Errors to the Console: > WARNING: circular references detected > RpcStruct (1) > WARNING: 9 allocation(s) non freed. > > Is there any additional Documentation i missed? Peter and all, I think I may have found the problem, it looks like a bug in the gb.xml.rpc component. BUT i'm not a xml guru nor a gambas component wizard, so it could be a bogus fix, and break things. Anyway with this change your example code works without errors and returns the correct values as well ;-) I have added some debug statements to your code to prove this, see below. Just change line 194 in "gambas/2.0/gb.xml/src/rpc/gb.xml.rpc/Tools.module" from: hAtom.Data.Add(Name, hAtom.Data, hAtom.Type) to: hAtom.Data.Add(Name, bAtom.Data, bAtom.Type) It looks like two typos to me... Then type sudo make install from dir "gambas/2.0/gb.xml/src/" to install it. Run code: --- ' Gambas module file PUBLIC SUB Main() DIM RpcF AS RpcFunction DIM myStruc AS RpcStruct DIM client AS RpcClient DIM hVar AS NEW Variant[] DIM ret AS Variant DIM a AS Integer DIM name AS String DIM dType AS Integer a = 0 RpcF = NEW RpcFunction("sample.sumAndDifference", [XmlRpc.xInteger, XmlRpc.xInteger], XmlRpc.xStruct) client = NEW RpcClient(RpcF) client.URL = "http://xmlrpc-c.sourceforge.net/api/sample.php" hVar.Add(5) hVar.Add(3) myStruc = client.Call(hVar) DO WHILE a < myStruc.Count name = myStruc.Key(a) dType = myStruc.dataType(a) ret = myStruc.Value(a) DEBUG "Name = " & name DEBUG "Type = " & dType DEBUG "Value = " & ret INC a LOOP END It returns: MMain.Main.28: Name = sum MMain.Main.29: Type = 0 MMain.Main.30: Value = 8 MMain.Main.28: Name = difference MMain.Main.29: Type = 0 MMain.Main.30: Value = 2 ;-) Regards, Ron_2nd. From m0e.lnx at ...626... Tue Mar 3 16:52:56 2009 From: m0e.lnx at ...626... (M0E Lnx) Date: Wed, 4 Mar 2009 09:51:56 +1759 Subject: [Gambas-user] baloon size In-Reply-To: <200903022109.24591.gambas@...1...> References: <1f1e8c1b0902231041v4eb0e39la87d2b5b08b7696e@...627...> <200903021234.23589.gambas@...1...> <1f1e8c1b0903020847l43d29bc3q8990decad446f271@...627...> <200903022109.24591.gambas@...1...> Message-ID: <1f1e8c1b0903030752x16612b39lcc288b4b1729ec54@...627...> When do you expect the next gambas2 release to be? I'm trying to figure out if it's worth it for me to build the svn tree or wait a bit for the next release. On Tue, Mar 3, 2009 at 2:08 PM, Beno?t Minisini wrote: >> Thank you. >> Will it automagically resize or does it have a .width and .height >> property that I need to adjust? >> > > It will automagically resize. > > -- > Beno?t > > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA > -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise > -Strategies to boost innovation and cut costs with open source participation > -Receive a $600 discount off the registration fee with the source code: SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From m0e.lnx at ...626... Tue Mar 3 16:53:24 2009 From: m0e.lnx at ...626... (M0E Lnx) Date: Wed, 4 Mar 2009 09:52:24 +1759 Subject: [Gambas-user] baloon size In-Reply-To: <200903022109.24591.gambas@...1...> References: <1f1e8c1b0902231041v4eb0e39la87d2b5b08b7696e@...627...> <200903021234.23589.gambas@...1...> <1f1e8c1b0903020847l43d29bc3q8990decad446f271@...627...> <200903022109.24591.gambas@...1...> Message-ID: <1f1e8c1b0903030753w774d2315td86bcb7be7f6db50@...627...> When do you expect the next gambas2 release to be? I'm trying to figure out if it's worth it for me to build the svn tree or wait a bit for the next release. On Tue, Mar 3, 2009 at 2:08 PM, Beno?t Minisini wrote: >> Thank you. >> Will it automagically resize or does it have a .width and .height >> property that I need to adjust? >> > > It will automagically resize. > > -- > Beno?t > > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA > -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise > -Strategies to boost innovation and cut costs with open source participation > -Receive a $600 discount off the registration fee with the source code: SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From 5t3c7w4r at ...1092... Tue Mar 3 23:25:31 2009 From: 5t3c7w4r at ...1092... (A Person) Date: Tue, 03 Mar 2009 18:55:31 -0330 Subject: [Gambas-user] No EXEC Output but Works in Terminal Message-ID: <49ADAE5B.7030106@...1092...> Good Day . . . I am using Gambas 2.8.2-1ubuntu1. I wrote a program that randomly displays a line from a text file. The code worked in pure Gambas but then I tried to improve it! (Ho Ho Ho) I searched around and I came up with and modified an executable BASH script (test.sh) that worked substantially faster than my code so I tried to incorporate it into the source code. During my testing I continuously ran tests in a terminal and everything worked perfectly with the script. I tried it in my code using ## EXEC ["~/test.sh"] to sOutPut or EXEC ["~/./test.sh"] to sOutPut and nothing worked. sOutPut was always "". The attached tar file contained a small program that contains an example EXEC problem code. A modified test.sh script is included along with a dummy data file, words.txt. Any ideas about the EXEC problem? Thanks Paul -------------- next part -------------- A non-text attachment was scrubbed... Name: EXEC-problem.tar Type: application/x-tar Size: 20480 bytes Desc: not available URL: From doriano.blengino at ...1909... Tue Mar 3 23:35:48 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Tue, 03 Mar 2009 23:35:48 +0100 Subject: [Gambas-user] No EXEC Output but Works in Terminal In-Reply-To: <49ADAE5B.7030106@...1092...> References: <49ADAE5B.7030106@...1092...> Message-ID: <49ADB0C4.7010102@...1909...> A Person ha scritto: > Good Day . . . > > I am using Gambas 2.8.2-1ubuntu1. > > I wrote a program that randomly displays a line from a text file. The > code worked in pure Gambas but then I tried to improve it! (Ho Ho Ho) > > I searched around and I came up with and modified an executable BASH > script (test.sh) that worked substantially faster than my code so I > tried to incorporate it into the source code. > > During my testing I continuously ran tests in a terminal and > everything worked perfectly with the script. I tried it in my code using > > ## EXEC ["~/test.sh"] to sOutPut or EXEC ["~/./test.sh"] to sOutPut > > and nothing worked. sOutPut was always "". > > The attached tar file contained a small program that contains an > example EXEC problem code. A modified test.sh script is included along > with a dummy data file, words.txt. > > Any ideas about the EXEC problem? Hi, "A person"... read about the EXEC statement. You need to specify the WAIT clause, otherwise your script is launched in background, and gambas goes ahead without waiting for your script to output anything - so sOutput remains empty. Regards, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From richard at ...2079... Tue Mar 3 23:52:59 2009 From: richard at ...2079... (Richard Gladman) Date: Tue, 03 Mar 2009 22:52:59 +0000 Subject: [Gambas-user] No EXEC Output but Works in Terminal In-Reply-To: <49ADAE5B.7030106@...1092...> References: <49ADAE5B.7030106@...1092...> Message-ID: <49ADB4CB.1010101@...2079...> A Person wrote: > Good Day . . . > > I am using Gambas 2.8.2-1ubuntu1. > > I wrote a program that randomly displays a line from a text file. The > code worked in pure Gambas but then I tried to improve it! (Ho Ho Ho) > > I searched around and I came up with and modified an executable BASH > script (test.sh) that worked substantially faster than my code so I > tried to incorporate it into the source code. > > During my testing I continuously ran tests in a terminal and > everything worked perfectly with the script. I tried it in my code using > > ## EXEC ["~/test.sh"] to sOutPut or EXEC ["~/./test.sh"] to sOutPut > > and nothing worked. sOutPut was always "". > > The attached tar file contained a small program that contains an > example EXEC problem code. A modified test.sh script is included along > with a dummy data file, words.txt. > > Any ideas about the EXEC problem? > > Thanks > > Paul > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA > -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise > -Strategies to boost innovation and cut costs with open source participation > -Receive a $600 discount off the registration fee with the source code: SFAD > http://p.sf.net/sfu/XcvMzF8H > ------------------------------------------------------------------------ > > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > I tried your code and got the same results as you did. Changing the To sOutPut to a WAIT revealed an error message that it couldn't find the script. I corrected the path to the script in the EXEC line and it worked. Hope this helps Richard. -- Quantum materiae materietur marmota monax si marmota monax materiam possit materiari? (How much wood would a woodchuck chuck if a woodchuck could chuck wood?) Registered Linux User: #459086 From the.at.robert at ...626... Wed Mar 4 07:03:39 2009 From: the.at.robert at ...626... (Robert Moss) Date: Tue, 3 Mar 2009 22:03:39 -0800 Subject: [Gambas-user] Two minor "bugs" In-Reply-To: <200902261901.23290.ronstk@...239...> References: <4965C7AE.8030501@...221...> <200901141102.29955.ronstk@...239...> <49A6B424.4010409@...221...> <200902261901.23290.ronstk@...239...> Message-ID: I agree an option would be nice, the screenshot is beautiful in this regard. @ Ron: Lazy "coder" On Thu, Feb 26, 2009 at 10:01 AM, Ron_1st wrote: > On Thursday 26 February 2009, Rolf-Werner Eilert wrote: > > ---8<--- > > > > > > > Best regards, > > > > > > Ron_1st > > > > > > > Hi Ron, > > > > just FYI, I found where it is and just switched it off. Here is what I > did: > > > > Download the source, unpack and ./configure. > > > > Then look for /gb.qt/src/CGridView.cpp and open it in an > > editor. Look for > > > > void MyTable::updateLastColumn() > > > > and quote the line > > > > if (!_last_col_width) > > > > as well as the two lines > > > > if (((columnPos(n) ... > > setColumnWidth(n, ... > > > > by just setting a // at their beginnings. > > > > Then make > > and make install > > > > and the feature has gone... :-) > > > > Rolf > > > > LOL, sneaky hacker :):) > > Thats the beauty of opensource. > > You are not only learn programming/reading the Basic code > but also learn to read C code at least. > And for me is the code Benoit is writing good stuff to learn. > > For me he did make _the_ example how to use the macros in C code > to use them in the gambas project. > For me it is a good frame work and I can still learn from. > > Thank for the hint. I did not realised to do it that way. > Now I should read the 'patch' documentation so I can > easy patch the next version of the source code when released. > > > -- > A: Delete the text you reply on. > Q: What to do to get my post on top? > --- > A: Because it messes up the order in which people normally read text. > Q: Why is top-posting such a bad thing? > --- > A: Top-posting. > Q: What is the most annoying thing in e-mail? > > > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, > CA > -OSBC tackles the biggest issue in open source: Open Sourcing the > Enterprise > -Strategies to boost innovation and cut costs with open source > participation > -Receive a $600 discount off the registration fee with the source code: > SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From eilert-sprachen at ...221... Wed Mar 4 08:21:20 2009 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Wed, 04 Mar 2009 08:21:20 +0100 Subject: [Gambas-user] Two minor "bugs" In-Reply-To: <200902261901.23290.ronstk@...239...> References: <4965C7AE.8030501@...221...> <200901141102.29955.ronstk@...239...> <49A6B424.4010409@...221...> <200902261901.23290.ronstk@...239...> Message-ID: <49AE2BF0.2020007@...221...> Ron_1st schrieb: > On Thursday 26 February 2009, Rolf-Werner Eilert wrote: > > ---8<--- > >>> Best regards, >>> >>> Ron_1st >>> >> Hi Ron, >> >> just FYI, I found where it is and just switched it off. Here is what I did: >> >> Download the source, unpack and ./configure. >> >> Then look for /gb.qt/src/CGridView.cpp and open it in an >> editor. Look for >> >> void MyTable::updateLastColumn() >> >> and quote the line >> >> if (!_last_col_width) >> >> as well as the two lines >> >> if (((columnPos(n) ... >> setColumnWidth(n, ... >> >> by just setting a // at their beginnings. >> >> Then make >> and make install >> >> and the feature has gone... :-) >> >> Rolf >> > > LOL, sneaky hacker :):) Thanks :-) > > Thats the beauty of opensource. This was just my own thought when I had the idea to look for the thing in Benoit's code. > > You are not only learn programming/reading the Basic code > but also learn to read C code at least. > And for me is the code Benoit is writing good stuff to learn. Yes, I thought "rarely seen such a clearly structured code" and just found what I was looking for within a few minutes. > Now I should read the 'patch' documentation so I can > easy patch the next version of the source code when released. Errrm - you don't need to wait for the next one, just patch the one you've got. I just deleted the gambas2... subdir, unpacked the source again and started over. I didn't even "make uninstall" before... Rolf From gambas at ...1... Wed Mar 4 11:10:24 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Wed, 4 Mar 2009 11:10:24 +0100 Subject: [Gambas-user] No EXEC Output but Works in Terminal In-Reply-To: <49ADB4CB.1010101@...2079...> References: <49ADAE5B.7030106@...1092...> <49ADB4CB.1010101@...2079...> Message-ID: <200903041110.24359.gambas@...1...> > A Person wrote: > > Good Day . . . > > > > I am using Gambas 2.8.2-1ubuntu1. > > > > I wrote a program that randomly displays a line from a text file. The > > code worked in pure Gambas but then I tried to improve it! (Ho Ho Ho) > > > > I searched around and I came up with and modified an executable BASH > > script (test.sh) that worked substantially faster than my code so I > > tried to incorporate it into the source code. > > > > During my testing I continuously ran tests in a terminal and > > everything worked perfectly with the script. I tried it in my code using > > > > ## EXEC ["~/test.sh"] to sOutPut or EXEC ["~/./test.sh"] to sOutPut > > > > and nothing worked. sOutPut was always "". > > > > The attached tar file contained a small program that contains an > > example EXEC problem code. A modified test.sh script is included along > > with a dummy data file, words.txt. > > > > Any ideas about the EXEC problem? > > > > Thanks > > > > Paul > > ------------------------------------------------------------------------ > > > > ------------------------------------------------------------------------- > >----- Open Source Business Conference (OSBC), March 24-25, 2009, San > > Francisco, CA -OSBC tackles the biggest issue in open source: Open > > Sourcing the Enterprise -Strategies to boost innovation and cut costs > > with open source participation -Receive a $600 discount off the > > registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > I tried your code and got the same results as you did. Changing the To > sOutPut to a WAIT revealed an error message that it couldn't find the > script. I corrected the path to the script in the EXEC line and it worked. > > Hope this helps > > Richard. Yes. The tilde character "~" means your home directory only inside a shell or inside a Gambas file open command. EXEC executes your command by using the exec system call, and so "~" is not translated to your home directory. Regards, -- Beno?t From bbruen at ...2090... Wed Mar 4 11:55:44 2009 From: bbruen at ...2090... (Bruce) Date: Wed, 4 Mar 2009 21:55:44 +1100 Subject: [Gambas-user] simple replace question Message-ID: <200903042155.44325.bbruen@...2090...> Hi guys, I'm trying to convert a string to float. The string contents are "56?". I've tried both replace(st,"?",".5") and replace(st, Chr$(194), ".5 ") neither helps. Any ideas? tia ted From rospolosco at ...152... Wed Mar 4 13:00:00 2009 From: rospolosco at ...152... (Stefano Palmeri) Date: Wed, 4 Mar 2009 13:00:00 +0100 Subject: [Gambas-user] simple replace question In-Reply-To: <200903042155.44325.bbruen@...2090...> References: <200903042155.44325.bbruen@...2090...> Message-ID: <200903041300.00387.rospolosco@...152...> Il mercoled? 4 marzo 2009 11:55:44 Bruce ha scritto: > Hi guys, > > I'm trying to convert a string to float. The string contents are "56?". > I've tried both > > replace(st,"?",".5") and > replace(st, Chr$(194), ".5 ") > > neither helps. > > Any ideas? > > tia > ted > Strange. replace(st,"?",".5") works on my system. Gambas 2.11.1 Saluti, Stefano > --------------------------------------------------------------------------- >--- Open Source Business Conference (OSBC), March 24-25, 2009, San > Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing > the Enterprise -Strategies to boost innovation and cut costs with open > source participation -Receive a $600 discount off the registration fee with > the source code: SFAD http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From emil at ...1913... Wed Mar 4 14:40:11 2009 From: emil at ...1913... (Emil Tchekov) Date: Wed, 4 Mar 2009 14:40:11 +0100 Subject: [Gambas-user] simple replace question In-Reply-To: <200903042155.44325.bbruen@...2090...> References: <200903042155.44325.bbruen@...2090...> Message-ID: <200903041440.11198.emil@...1913...> Is your string UTF encoded? You should check if your character code is exactly 194 and not wider... 16 Bits perhaps? Any Hex-Viewer will help. regards Emil On Wednesday 04 March 2009 11:55:44 Bruce wrote: > Hi guys, > > I'm trying to convert a string to float. The string contents are "56?". > I've tried both > > replace(st,"?",".5") and > replace(st, Chr$(194), ".5 ") > > neither helps. > > Any ideas? > > tia > ted > > --------------------------------------------------------------------------- >--- Open Source Business Conference (OSBC), March 24-25, 2009, San > Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing > the Enterprise -Strategies to boost innovation and cut costs with open > source participation -Receive a $600 discount off the registration fee with > the source code: SFAD http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From bbruen at ...2090... Wed Mar 4 14:54:24 2009 From: bbruen at ...2090... (Bruce) Date: Thu, 5 Mar 2009 00:54:24 +1100 Subject: [Gambas-user] simple replace question In-Reply-To: <200903041300.00387.rospolosco@...152...> References: <200903042155.44325.bbruen@...2090...> <200903041300.00387.rospolosco@...152...> Message-ID: <200903050054.24517.bbruen@...2090...> On Wednesday 04 March 2009 23:00:00 Stefano Palmeri wrote: > Strange. replace(st,"?",".5") works on my system. > > Gambas 2.11.1 > > Saluti, > > Stefano Damn! And I still can't get it working. The only thing I've been able to decipher is that Len(st)=4 not 3. Using gambas 2.9.?? as its the latest available for PCLinuxOS (see below). It's now worse as the quoted prices also show quarters and eighths as well. Is there some localization/encoding/lang option somewhere that I should be looking for? thanks anyway ted From eilert-sprachen at ...221... Wed Mar 4 15:34:29 2009 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Wed, 04 Mar 2009 15:34:29 +0100 Subject: [Gambas-user] simple replace question In-Reply-To: <200903050054.24517.bbruen@...2090...> References: <200903042155.44325.bbruen@...2090...> <200903041300.00387.rospolosco@...152...> <200903050054.24517.bbruen@...2090...> Message-ID: <49AE9175.807@...221...> Bruce schrieb: > On Wednesday 04 March 2009 23:00:00 Stefano Palmeri wrote: > >> Strange. replace(st,"?",".5") works on my system. >> >> Gambas 2.11.1 >> >> Saluti, >> >> Stefano > > Damn! And I still can't get it working. The only thing I've been able to > decipher is that Len(st)=4 not 3. Using gambas 2.9.?? as its the latest > available for PCLinuxOS (see below). > The version will not matter, I guess. Try converting your string into ASCII before replacing: newString = Conv(st, "UTF-8", "ASCII") Replace(st, "?", ".5") On my old ASCII-table ? is chr$(171). So it should work with this one, as it's known in ASCII. If you get an error 32, your string wasn't UTF-8. Next idea: use String.Code to find out the Hex-code of each single character in "st". Then rewrite the replace function for this combination of characters - something like Replace(st, chr$(30) & chr$(1) & chr$(123), ".5")... Hope it helps... Rolf From bbruen at ...2090... Wed Mar 4 16:08:10 2009 From: bbruen at ...2090... (Bruce) Date: Thu, 5 Mar 2009 02:08:10 +1100 Subject: [Gambas-user] simple replace question In-Reply-To: <49AE9175.807@...221...> References: <200903042155.44325.bbruen@...2090...> <200903050054.24517.bbruen@...2090...> <49AE9175.807@...221...> Message-ID: <200903050208.10538.bbruen@...2090...> On Thursday 05 March 2009 01:34:29 Rolf-Werner Eilert wrote: > newString = Conv(st, "UTF-8", "ASCII") > > Replace(st, "?", ".5") Thanks RW, That got me started at least. So far: TRY wx = Conv(lp1[5], "UTF-8", "ASCII") TRY wx = Replace(wx, "?", ".5") TRY wx = Replace(wx, "?", ".25") TRY wx = Replace(wx, "?", ".75") seems to work. I had to put the TRY's in because 3/4 doesn't seem to handle properly otherwise. If I ever get my hands around the throat of the smart little programmer that put these chars in the input text file I'll ..... regards ted From 5t3c7w4r at ...1092... Wed Mar 4 16:24:20 2009 From: 5t3c7w4r at ...1092... (A Person) Date: Wed, 04 Mar 2009 11:54:20 -0330 Subject: [Gambas-user] Reply: No EXEC Output but Works in Terminal Message-ID: <49AE9D24.9020804@...1092...> Good Day . . . Thank You all except the one that told me to read the EXEC docs. I read that many times and tried many variations including trying getting INPUT and OUTPUT to work. But nothing worked. The one problem that I have with Gambas is that the docs are not adequate to a novice user. I tried writing docs for a project but I did not know enough. Before I submitted this I used the full path but I changed it in the demo so that a tester would not have to change anything. I tried EXEC ["full path/test.sh"] WAIT to sOutPut but it died. top showed nothing running. Can you show me an example of EXEC . . . WAIT with a variable returned? Thanks Paul From m0e.lnx at ...626... Wed Mar 4 16:26:07 2009 From: m0e.lnx at ...626... (M0E Lnx) Date: Thu, 5 Mar 2009 09:25:07 +1759 Subject: [Gambas-user] Feature requests Message-ID: <1f1e8c1b0903040726m5beff296h6724f5bf8343e753@...627...> I have a couple of requests for the gb.gtk component (and maybe even the gb.qt as well) It's about progressbars. I'd like to use a progressbar like alternating progressbar (like the one used in the gparted windows while executing changes (top one)) alternates from left to right I'd like to be able to display some text inside the progressbar ... not just the value, but a way to display my own string in there Is this at all possible? From ac_rivvin at ...43... Wed Mar 4 16:26:42 2009 From: ac_rivvin at ...43... (Achmad Arifin) Date: Wed, 4 Mar 2009 07:26:42 -0800 (PST) Subject: [Gambas-user] [Help] Package created with autotools Message-ID: <581591.59401.qm@...2091...> I have gambas package created with autotools under ubuntu hardy, I want to install it to zenwalk. When I run configure command, it shows an error: --------------------------------------------------------------------------------- root[tes-0.0]# ./configure checking for a BSD-compatible install... /bin/ginstall -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for gambas2 binaries... ./configure: line 2140: gbx2: command not found No configure: error: Failed to find gambas2 utilities ./configure: line 2146: exit: check: numeric argument required ./configure: line 2146: exit: check: numeric argument required root[tes-0.0]# --------------------------------------------------------------------------------------- Do I have to install dependencies (gambas2 utilities) before compile my package? Or, is dependencies can be include to my package? Sorry I am a newbie in gambas. From gambas at ...1... Wed Mar 4 16:42:09 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Wed, 4 Mar 2009 16:42:09 +0100 Subject: [Gambas-user] Two little bugs in gambas3 In-Reply-To: <384d3900903020955s10e96120ndfad15bcffaf3924@...627...> References: <384d3900903020955s10e96120ndfad15bcffaf3924@...627...> Message-ID: <200903041642.09559.gambas@...1...> > Hi! > Two little bugs in Gambas3 IDE. > > 1. > Missing "Each" command causes wrong error message (loop variable must be > local); > > For SHmh In SHmhCollect > Should be something like "expected Each or TO". > > > 2. > Renaming non empty sub folder causes mouse pointer to show wait icon for > ever. When closing gambas, there will be message; > WARNING: 2 allocation(s) non freed. > No other ill effects noticed... > > > How can I check revision number of installed gambas3 trunk? > I can't remember what it was... maybe 1885. > > > Jussi > Which version of Gambas do you use? Gambas 3? To check the revision, just type "svn info". Regards, -- Beno?t From gambas at ...1... Wed Mar 4 16:34:06 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Wed, 4 Mar 2009 16:34:06 +0100 Subject: [Gambas-user] XMLRpc maybe a Bug In-Reply-To: <49AC7D4B.9000308@...1740...> References: <200808130058.00235.massenpost@...1093...> <49AC7D4B.9000308@...1740...> Message-ID: <200903041634.07094.gambas@...1...> > Peter Lang wrote: > > Hi, > > > > After investigating the Source of xmlrpc i thought i know how to use > > it... Everything work so far, but the last Step does not work. > > The line: myStruc.Value(a) has to return the result, but instead of > > giving back an int i get an RpcStruct again and again. > > > > The sample does not much useful, but when it ends it throws the following > > Errors to the Console: > > WARNING: circular references detected > > RpcStruct (1) > > WARNING: 9 allocation(s) non freed. > > > > Is there any additional Documentation i missed? > > > > > > PUBLIC SUB Main() > > > > DIM RpcF AS RpcFunction > > DIM myStruc AS RpcStruct > > DIM client AS RpcClient > > DIM hVar AS NEW Variant[] > > DIM ret AS Variant > > DIM a AS Integer > > DIM name AS String > > DIM dType AS Integer > > > > a = 0 > > > > RpcF = NEW RpcFunction("sample.sumAndDifference", [XmlRpc.xInteger, > > XmlRpc.xInteger], XmlRpc.xStruct) > > client = NEW RpcClient(RpcF) > > client.URL = "http://xmlrpc-c.sourceforge.net/api/sample.php" > > hVar.Add(5) > > hVar.Add(3) > > > > myStruc = client.Call(hVar) > > DO WHILE a < myStruc.Count > > name = myStruc.Key(a) > > dType = myStruc.dataType(a) > > ret = myStruc.Value(a) > > INC a > > LOOP > > > > END > > Peter and all, > > I think I may have found the problem, it looks like a bug in the > gb.xml.rpc component. > BUT i'm not a xml guru nor a gambas component wizard, so it could be a > bogus fix, and break things. > > Anyway with this change your example code works without errors and > returns the correct values as well ;-) > I have added some debug statements to your code to prove this, see below. > > Just change line 194 in "gambas/2.0/gb.xml/src/rpc/gb.xml.rpc/Tools.module" > from: > hAtom.Data.Add(Name, hAtom.Data, hAtom.Type) > to: > hAtom.Data.Add(Name, bAtom.Data, bAtom.Type) > > It looks like two typos to me... > > Then type sudo make install from dir "gambas/2.0/gb.xml/src/" to install > it. > > Run code: > --- > ' Gambas module file > PUBLIC SUB Main() > > DIM RpcF AS RpcFunction > DIM myStruc AS RpcStruct > DIM client AS RpcClient > DIM hVar AS NEW Variant[] > DIM ret AS Variant > DIM a AS Integer > DIM name AS String > DIM dType AS Integer > > a = 0 > > RpcF = NEW RpcFunction("sample.sumAndDifference", [XmlRpc.xInteger, > XmlRpc.xInteger], XmlRpc.xStruct) > client = NEW RpcClient(RpcF) > client.URL = "http://xmlrpc-c.sourceforge.net/api/sample.php" > hVar.Add(5) > hVar.Add(3) > > myStruc = client.Call(hVar) > DO WHILE a < myStruc.Count > name = myStruc.Key(a) > dType = myStruc.dataType(a) > ret = myStruc.Value(a) > > DEBUG "Name = " & name > DEBUG "Type = " & dType > DEBUG "Value = " & ret > > INC a > LOOP > > END > > It returns: > > MMain.Main.28: Name = sum > MMain.Main.29: Type = 0 > MMain.Main.30: Value = 8 > MMain.Main.28: Name = difference > MMain.Main.29: Type = 0 > MMain.Main.30: Value = 2 > > ;-) > > Regards, > Ron_2nd. > Thanks for the patch. I will put it in the next commit. Regards, -- Beno?t From jussi.lahtinen at ...626... Wed Mar 4 17:15:00 2009 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 4 Mar 2009 18:15:00 +0200 Subject: [Gambas-user] Reply: No EXEC Output but Works in Terminal In-Reply-To: <49AE9D24.9020804@...1092...> References: <49AE9D24.9020804@...1092...> Message-ID: <384d3900903040815n204ada40w7398182101acf6e1@...627...> I tried your code... (first I did move test.sh to execution folder). With me, this; EXEC ["sh", Application.Path &/ "test.sh"] TO sOutPut works well. But this; EXEC ["sh " & Application.Path &/ "test.sh"] TO sOutPut does NOT work (no output). So EXEC command is pretty picky. Benoit, comments? Also, if words.txt is in wrong place, execution freeze. Do this; PRINT "sh " & Application.Path &/ "test.sh" Put the output to terminal to see if you got right paths. Cannot say more... Jussi On Wed, Mar 4, 2009 at 5:24 PM, A Person <5t3c7w4r at ...1092...> wrote: > Good Day . . . > > Thank You all except the one that told me to read the EXEC docs. I read > that many times and tried many variations including trying getting INPUT > and OUTPUT to work. But nothing worked. The one problem that I have with > Gambas is that the docs are not adequate to a novice user. I tried > writing docs for a project but I did not know enough. > > Before I submitted this I used the full path but I changed it in the > demo so that a tester would not have to change anything. > > I tried EXEC ["full path/test.sh"] WAIT to sOutPut but it died. top > showed nothing running. > > Can you show me an example of EXEC . . . WAIT with a variable returned? > > Thanks > > Paul > > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA > -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise > -Strategies to boost innovation and cut costs with open source participation > -Receive a $600 discount off the registration fee with the source code: SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From eilert-sprachen at ...221... Wed Mar 4 17:20:31 2009 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Wed, 04 Mar 2009 17:20:31 +0100 Subject: [Gambas-user] simple replace question In-Reply-To: <200903050208.10538.bbruen@...2090...> References: <200903042155.44325.bbruen@...2090...> <200903050054.24517.bbruen@...2090...> <49AE9175.807@...221...> <200903050208.10538.bbruen@...2090...> Message-ID: <49AEAA4F.4040804@...221...> Bruce schrieb: > On Thursday 05 March 2009 01:34:29 Rolf-Werner Eilert wrote: >> newString = Conv(st, "UTF-8", "ASCII") >> >> Replace(st, "?", ".5") > > Thanks RW, > > That got me started at least. > > So far: > TRY wx = Conv(lp1[5], "UTF-8", "ASCII") > TRY wx = Replace(wx, "?", ".5") > TRY wx = Replace(wx, "?", ".25") > TRY wx = Replace(wx, "?", ".75") > seems to work. > > I had to put the TRY's in because 3/4 doesn't seem to handle properly > otherwise. > No wonder, because 3/4 doesn't exist in ASCII. This is what my character table program says about this character: UTF-8: 0xC2 0xBE UTF-16: 0x00BE C-Oktal terminiertes UTF-8: \302\276 Dezimale XML-Entit?t: ¾ So you should look for a string consisting of C2 and BE, that is chr$(194) and chr$(190) as we can presume this is UTF-8. Try this: xStr = chr$(194) & chr$(190) wx = Replace(wx, xStr, ".75") Does this run? Or even wx = Replace(wx, chr$(194) & chr$(190), ".75") should work. At least if I'm right, but I never tried this. Rolf From eilert-sprachen at ...221... Wed Mar 4 17:26:48 2009 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Wed, 04 Mar 2009 17:26:48 +0100 Subject: [Gambas-user] simple replace question In-Reply-To: <200903050208.10538.bbruen@...2090...> References: <200903042155.44325.bbruen@...2090...> <200903050054.24517.bbruen@...2090...> <49AE9175.807@...221...> <200903050208.10538.bbruen@...2090...> Message-ID: <49AEABC8.2040805@...221...> Bruce schrieb: > On Thursday 05 March 2009 01:34:29 Rolf-Werner Eilert wrote: >> newString = Conv(st, "UTF-8", "ASCII") >> >> Replace(st, "?", ".5") > > Thanks RW, > > That got me started at least. > > So far: > TRY wx = Conv(lp1[5], "UTF-8", "ASCII") > TRY wx = Replace(wx, "?", ".5") > TRY wx = Replace(wx, "?", ".25") > TRY wx = Replace(wx, "?", ".75") > seems to work. > > I had to put the TRY's in because 3/4 doesn't seem to handle properly > otherwise. > Sorry, I forgot this: you must replace 3/4 to something else before you can Conv to ASCII. Arrrgh - this will not run. Next idea: Look into the string and find out what Conv makes out of "3/4" in ASCII - maybe it just makes "3/4" out of it? This is what you will have to look for. Your thing would then read as follows: > TRY wx = Conv(lp1[5], "UTF-8", "ASCII") > TRY wx = Replace(wx, "?", ".5") > TRY wx = Replace(wx, "?", ".25") > TRY wx = Replace(wx, "3/4", ".75") We would need a String.Replace() function here... Rolf From minterior at ...626... Wed Mar 4 17:34:15 2009 From: minterior at ...626... (Jaume Casado) Date: Wed, 4 Mar 2009 17:34:15 +0100 Subject: [Gambas-user] last instert ID in sqlite3 Message-ID: <499ea6ce0903040834t13fce8d7gde2d07686422dc13@...627...> Hi there. I'm looking for a function or method in the gb.db component to obtain the ID of the last element inserted into the database. With the methods Create, Edit y Find, we can run our Gambas app independently from the chosen engine database. That's why I wanna know if there is any similar solution to get the last insert id (of an autoincrement field in a table). Now I am working with sqlite3 and I don't find the manner. Thus, I did it with the specific sql query: hResult = hConn.Exec("SELECT last_insert_rowid() AS id") RETURN CInt(hResult["id"]) But doing it like this is not database engine independent, because in MySQL the query was: SELECT LAST_INSERT_ID(); Searching a little, I've found that the MySQL component includes it already: 22:23 on Oct 25, 2008 gambas Commit by dvillalobos :: r1652 /gambas/trunk/gb.db.mysql/src/gb.db.mysql/ (.component .info .project _MySQL.class): (link) [GB.DB.MYSQL] NEW: Added the function LastInsertId to _MySQL class, that returns the last insert id for the current user. Then, Gambas lets you to get the "last insert id" in a transparent manner? Thank you a lot, Jaume -----BEGIN GEEK CODE BLOCK----- Version: 3.12 GCS/E/IT/M/TW d-- s: a- C+++$ UL++ P L+++ E- W+++$ N- !o(--) K- w--(---) !O M-(+) V?(-) PS PE Y+ PGP>+ t@ 5? X+ R tv- b+@ DI-- D G++ e h++(--) r++>+++ y? ------END GEEK CODE BLOCK------ -- -- Free software my friend ;-) -- From jussi.lahtinen at ...626... Wed Mar 4 17:34:48 2009 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 4 Mar 2009 18:34:48 +0200 Subject: [Gambas-user] Two little bugs in gambas3 In-Reply-To: <200903041642.09559.gambas@...1...> References: <384d3900903020955s10e96120ndfad15bcffaf3924@...627...> <200903041642.09559.gambas@...1...> Message-ID: <384d3900903040834y6d71ebffhfb76aedf33237f11@...627...> Gambas 3 revision 1885. Jussi On Wed, Mar 4, 2009 at 5:42 PM, Beno?t Minisini wrote: >> Hi! >> Two little bugs in Gambas3 IDE. >> >> 1. >> Missing "Each" command causes wrong error message (loop variable must be >> local); >> >> For SHmh In SHmhCollect >> ?Should be something like "expected Each or TO". >> >> >> 2. >> Renaming non empty sub folder causes mouse pointer to show wait icon for >> ever. When closing gambas, there will be message; >> WARNING: 2 allocation(s) non freed. >> No other ill effects noticed... >> >> >> How can I check revision number of installed gambas3 trunk? >> I can't remember what it was... maybe 1885. >> >> >> Jussi >> > > Which version of Gambas do you use? Gambas 3? To check the revision, just type > "svn info". > > Regards, > > -- > Beno?t > > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA > -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise > -Strategies to boost innovation and cut costs with open source participation > -Receive a $600 discount off the registration fee with the source code: SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Wed Mar 4 17:53:53 2009 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 4 Mar 2009 18:53:53 +0200 Subject: [Gambas-user] Two little bugs in gambas3 In-Reply-To: <384d3900903040834y6d71ebffhfb76aedf33237f11@...627...> References: <384d3900903020955s10e96120ndfad15bcffaf3924@...627...> <200903041642.09559.gambas@...1...> <384d3900903040834y6d71ebffhfb76aedf33237f11@...627...> Message-ID: <384d3900903040853p2c414cf6j45c87a3dc26608a1@...627...> Hmmm.... why rechecking? Everything seems to work with my installation, so I assumed it is uncorrupted. I did send message about my compilation problems with outputs attached, but it was rejected as too big (> 256 kb). I forget to zip it... So again if necessary, the whole message: I tried to compile Gambas3 at Ubuntu 8.10 (64bit). First I tried it with libtool 2.2.4, it won't work. Then with libtool 1.5.26. ( ./reconf-all ) > reconf.txt 2>&1 This fails!! So I tried this; ( autoreconf --install ) > autoreconf.txt 2>&1 Success, I think... Then; ( ./configure -C; make; sudo make install ) > output.txt 2>&1 Success, I think... at least everything seems to work! See attachments. Please, someone who understands this better than me, quickly check if my install is OK. Do anyone know why "./reconf-all" fails? Then one more thing, please tell me your honest opinion, how stupid idea is me to move to gambas3 (with big project) at this moment? Am I begging for troubles? Jussi On Wed, Mar 4, 2009 at 6:34 PM, Jussi Lahtinen wrote: > Gambas 3 revision 1885. > > > Jussi > > > On Wed, Mar 4, 2009 at 5:42 PM, Beno?t Minisini > wrote: >>> Hi! >>> Two little bugs in Gambas3 IDE. >>> >>> 1. >>> Missing "Each" command causes wrong error message (loop variable must be >>> local); >>> >>> For SHmh In SHmhCollect >>> ?Should be something like "expected Each or TO". >>> >>> >>> 2. >>> Renaming non empty sub folder causes mouse pointer to show wait icon for >>> ever. When closing gambas, there will be message; >>> WARNING: 2 allocation(s) non freed. >>> No other ill effects noticed... >>> >>> >>> How can I check revision number of installed gambas3 trunk? >>> I can't remember what it was... maybe 1885. >>> >>> >>> Jussi >>> >> >> Which version of Gambas do you use? Gambas 3? To check the revision, just type >> "svn info". >> >> Regards, >> >> -- >> Beno?t >> >> >> ------------------------------------------------------------------------------ >> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA >> -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise >> -Strategies to boost innovation and cut costs with open source participation >> -Receive a $600 discount off the registration fee with the source code: SFAD >> http://p.sf.net/sfu/XcvMzF8H >> _______________________________________________ >> 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: outputfiles.tar.bz2 Type: application/x-bzip2 Size: 39726 bytes Desc: not available URL: From ronstk at ...239... Wed Mar 4 17:56:42 2009 From: ronstk at ...239... (Ron_1st) Date: Wed, 4 Mar 2009 17:56:42 +0100 Subject: [Gambas-user] simple replace question In-Reply-To: <49AEAA4F.4040804@...221...> References: <200903042155.44325.bbruen@...2090...> <200903050208.10538.bbruen@...2090...> <49AEAA4F.4040804@...221...> Message-ID: <200903041756.42840.ronstk@...239...> On Wednesday 04 March 2009, Rolf-Werner Eilert wrote: > Bruce schrieb: > > On Thursday 05 March 2009 01:34:29 Rolf-Werner Eilert wrote: > >> newString = Conv(st, "UTF-8", "ASCII") > >> > >> Replace(st, "?", ".5") > > > > Thanks RW, > > > > That got me started at least. > > > > So far: > > TRY wx = Conv(lp1[5], "UTF-8", "ASCII") > > TRY wx = Replace(wx, "?", ".5") > > TRY wx = Replace(wx, "?", ".25") > > TRY wx = Replace(wx, "?", ".75") > > seems to work. > > > > I had to put the TRY's in because 3/4 doesn't seem to handle properly > > otherwise. > > > > No wonder, because 3/4 doesn't exist in ASCII. This is what my character > table program says about this character: > > UTF-8: 0xC2 0xBE > UTF-16: 0x00BE > > C-Oktal terminiertes UTF-8: \302\276 > Dezimale XML-Entit?t: ¾ > > So you should look for a string consisting of C2 and BE, that is > chr$(194) and chr$(190) as we can presume this is UTF-8. Try this: > > xStr = chr$(194) & chr$(190) > wx = Replace(wx, xStr, ".75") > > Does this run? Or even > > wx = Replace(wx, chr$(194) & chr$(190), ".75") > > should work. At least if I'm right, but I never tried this. > > > Rolf > http://www.eki.ee/letter/chardata.cgi?ucode=00BE found in charsets: 8859-1 (BE); 8859-13 (BE); 8859-8 (BE); 8859-9 (BE); CP1116 (F3); CP1122 (B9); CP1252 (BE); CP1254 (BE); CP1255 (BE); CP1256 (BE); CP1257 (BE); CP1258 (BE); CP775 (F3); CP850 (F3); CP857 (F3); CP863 (AD); Dangerous the differences between char sets. I was suprised it is not in ASCII also. I know my Epson fX80 with IBM supplied ROM did have it. (ancient history :) ) Ron > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA > -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise > -Strategies to boost innovation and cut costs with open source participation > -Receive a $600 discount off the registration fee with the source code: SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > Best regards, Ron_1st -- From gambas at ...1... Wed Mar 4 18:02:02 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Wed, 4 Mar 2009 18:02:02 +0100 Subject: [Gambas-user] simple replace question In-Reply-To: <49AEABC8.2040805@...221...> References: <200903042155.44325.bbruen@...2090...> <200903050208.10538.bbruen@...2090...> <49AEABC8.2040805@...221...> Message-ID: <200903041802.02876.gambas@...1...> > Bruce schrieb: > > On Thursday 05 March 2009 01:34:29 Rolf-Werner Eilert wrote: > >> newString = Conv(st, "UTF-8", "ASCII") > >> > >> Replace(st, "?", ".5") > > > > Thanks RW, > > > > That got me started at least. > > > > So far: > > TRY wx = Conv(lp1[5], "UTF-8", "ASCII") > > TRY wx = Replace(wx, "?", ".5") > > TRY wx = Replace(wx, "?", ".25") > > TRY wx = Replace(wx, "?", ".75") > > seems to work. > > > > I had to put the TRY's in because 3/4 doesn't seem to handle properly > > otherwise. > > Sorry, I forgot this: you must replace 3/4 to something else before you > can Conv to ASCII. Arrrgh - this will not run. > > Next idea: Look into the string and find out what Conv makes out of > "3/4" in ASCII - maybe it just makes "3/4" out of it? This is what you > > will have to look for. Your thing would then read as follows: > > TRY wx = Conv(lp1[5], "UTF-8", "ASCII") > > TRY wx = Replace(wx, "?", ".5") > > TRY wx = Replace(wx, "?", ".25") > > TRY wx = Replace(wx, "3/4", ".75") > > We would need a String.Replace() function here... > > Rolf > String.Replace() is not needed, because there is no difference between ASCII and UTF-8 when replacing strings. There is no reason why Replace(st, "?", ".5") won't work, unless the st string is not UTF-8 of course. Regards, -- Beno?t From gambas at ...1... Wed Mar 4 18:09:48 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Wed, 4 Mar 2009 18:09:48 +0100 Subject: [Gambas-user] Feature requests In-Reply-To: <1f1e8c1b0903040726m5beff296h6724f5bf8343e753@...627...> References: <1f1e8c1b0903040726m5beff296h6724f5bf8343e753@...627...> Message-ID: <200903041809.48666.gambas@...1...> > I have a couple of requests for the gb.gtk component (and maybe even > the gb.qt as well) > > It's about progressbars. > I'd like to use a progressbar like alternating progressbar (like the > one used in the gparted windows while executing changes (top one)) > alternates from left to right > I'd like to be able to display some text inside the progressbar ... > not just the value, but a way to display my own string in there > > Is this at all possible? > That's something you can do in Gambas easily, isn't it? -- Beno?t From jussi.lahtinen at ...626... Wed Mar 4 18:33:37 2009 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 4 Mar 2009 19:33:37 +0200 Subject: [Gambas-user] Custom mouse cursor Message-ID: <384d3900903040933t6d8743e5laa4760cab6e84fb5@...627...> Hi! Me.Mouse = Mouse.Cross Works fine, but I need custom cursor. Me.Mouse = Mouse.Custom Me.Cursor = Picture.Load("pic.png") This is not working, of course... class cursor has only two properties x, y. Where do I put the picture? Thanks! Jussi From gambas at ...1... Wed Mar 4 18:42:17 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Wed, 4 Mar 2009 18:42:17 +0100 Subject: [Gambas-user] Two minor "bugs" In-Reply-To: <4965C7AE.8030501@...221...> References: <4965C7AE.8030501@...221...> Message-ID: <200903041842.17494.gambas@...1...> > Hi everyone! > > When converting one of my apps from Gambas1 to Gambas2, I found 2 minor > items: > > 1. The status of Tool Box Collection is not saved and always starts as > "switched off" when starting the Gambas2 IDE. But maybe this is wanted? > This bug is now fixed in revision #1894 (for Gambas 2) and #1895 (for Gambas 3). > 2. The last (rightmost) column of a TableView is stretched to the > ultimate width of the tableview and ignores if a Width value is given > for it. > > Well, it just looks sort of ugly, but I found it worth mentioning anyway. > > Have a nice day! > > Rolf > I (finally) created a new property in the GridView class (and so in its child class TableView): GridView.AutoResize. When this property is not set, the last column is not automatically stretched anymore. You get it in the revision #1895. The gb.gtk version has not been implemented yet. Enjoy it. :-) -- Beno?t From m0e.lnx at ...626... Wed Mar 4 19:09:15 2009 From: m0e.lnx at ...626... (M0E Lnx) Date: Wed, 4 Mar 2009 12:09:15 -0600 Subject: [Gambas-user] Feature requests In-Reply-To: <200903041809.48666.gambas@...1...> References: <1f1e8c1b0903040726m5beff296h6724f5bf8343e753@...627...> <200903041809.48666.gambas@...1...> Message-ID: <1f1e8c1b0903041009o33434842p53d47d17609bc205@...627...> I'm not sure how to do this... THe progressbar only moves in one direction, and the .label property is a boolean... Dont know how to change any of that. On Wed, Mar 4, 2009 at 11:09 AM, Beno?t Minisini wrote: >> I have a couple of requests for the gb.gtk component (and maybe even >> the gb.qt as well) >> >> It's about progressbars. >> I'd like to use a progressbar like alternating progressbar (like the >> one used in the gparted windows while executing changes (top one)) >> alternates from left to right >> I'd like to be able to display some text inside the progressbar ... >> not just the value, but a way to display my own string in there >> >> Is this at all possible? >> > > That's something you can do in Gambas easily, isn't it? > > -- > Beno?t > > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA > -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise > -Strategies to boost innovation and cut costs with open source participation > -Receive a $600 discount off the registration fee with the source code: SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From ronstk at ...239... Wed Mar 4 19:10:10 2009 From: ronstk at ...239... (Ron_1st) Date: Wed, 4 Mar 2009 19:10:10 +0100 Subject: [Gambas-user] Reply: No EXEC Output but Works in Terminal In-Reply-To: <49AE9D24.9020804@...1092...> References: <49AE9D24.9020804@...1092...> Message-ID: <200903041910.10341.ronstk@...239...> On Wednesday 04 March 2009, A Person wrote: > Good Day . . . > > Thank You all except the one that told me to read the EXEC docs. Despite I understand it a little it is not fair. Still he was right. > I read that many times and tried many variations including trying getting INPUT > and OUTPUT to work. Reading and understanding are two things. > But nothing worked. What did not work exactly. > The one problem that I have with > Gambas is that the docs are not adequate to a novice user. I do agree there is something missing :( > I tried writing docs for a project but I did not know enough. > Before I submitted this I used the full path but I changed it in the > demo so that a tester would not have to change anything. Bad thing to change the basic code. That could just show what was wrong in your case. However I remove in case of a mass of code also parts but do not change the relevant parts _where_ it goes wrong. > > I tried EXEC ["full path/test.sh"] WAIT to sOutPut but it died. top > showed nothing running. If you did read the wiki doc you should have seen: If WAIT is specified, then the interpreter waits for the command ending. Otherwise, the command is executed in background. It a bit logic to me that if 'the interpreter waits for the command ending' there can be no (or less) process events for READ or WRITE. So I will try with and without the WAIT. Did you do that? What was the result in both cases and what did you expect? > > Can you show me an example of EXEC . . . WAIT with a variable returned? > > Thanks > > Paul > > Did you try the examples on the wiki help page . What was the result? Have you browse the examples included in gambas. This is a good source to get some ideas. Special the movieplayer is worth to read. If you do you wil see why. :) The Examples included contains a lot of tricks on how to do some coding. Every one needs to learn when he start using something new. Even for the time I did play with gambas 5year back v 0.46 I do still today see new tips/tricks to use. And a real good source is the gambas IDE from source. My only problem is the fragmented, with good reason, code. But reading the class and module files to see how things are solved can deliver many good hints for my own code. So, just try to use the movieplayer and look the code. Hope this will answer your question for a example usage. Happy gambas eating:) Best regards, Ron_1st -- A: Delete the text you reply on. Q: What to do to get my post on top? --- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? --- A: Top-posting. Q: What is the most annoying thing in e-mail? From ronstk at ...239... Wed Mar 4 19:18:58 2009 From: ronstk at ...239... (Ron_1st) Date: Wed, 4 Mar 2009 19:18:58 +0100 Subject: [Gambas-user] Reply: No EXEC Output but Works in Terminal In-Reply-To: <384d3900903040815n204ada40w7398182101acf6e1@...627...> References: <49AE9D24.9020804@...1092...> <384d3900903040815n204ada40w7398182101acf6e1@...627...> Message-ID: <200903041918.58581.ronstk@...239...> On Wednesday 04 March 2009, Jussi Lahtinen wrote: > I tried your code... (first I did move test.sh to execution folder). > With me, this; > EXEC ["sh", Application.Path &/ "test.sh"] TO sOutPut > works well. > > But this; > EXEC ["sh " & Application.Path &/ "test.sh"] TO sOutPut > does NOT work (no output). > So EXEC command is pretty picky. Benoit, comments? > > Also, if words.txt is in wrong place, execution freeze. > Do this; > > PRINT "sh " & Application.Path &/ "test.sh" > Put the output to terminal to see if you got right paths. > > Cannot say more... > > > Jussi > > > > On Wed, Mar 4, 2009 at 5:24 PM, A Person <5t3c7w4r at ...1092...> wrote: > > Good Day . . . > > > > Thank You all except the one that told me to read the EXEC docs. I read > > that many times and tried many variations including trying getting INPUT > > and OUTPUT to work. But nothing worked. The one problem that I have with > > Gambas is that the docs are not adequate to a novice user. I tried > > writing docs for a project but I did not know enough. > > > > Before I submitted this I used the full path but I changed it in the > > demo so that a tester would not have to change anything. > > > > I tried EXEC ["full path/test.sh"] WAIT to sOutPut but it died. top > > showed nothing running. > > > > Can you show me an example of EXEC . . . WAIT with a variable returned? > > > > Thanks > > > > Paul > > > > BTW What is the content of the test.sh? Does it start with '#!/bin/bash' or '#!/bin/sh' ? If not your command shouls be '/bin/bash /full path/test.sh' Just a tip, use as command "(/home/usr/paul/bin/text.sh)" Yes indeed surround your command with () This force all output by bash and command to 1 output for process_read Best regards, Ron_1st -- A: Delete the text you reply on. Q: What to do to get my post on top? --- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? --- A: Top-posting. Q: What is the most annoying thing in e-mail? From ronstk at ...239... Wed Mar 4 19:20:43 2009 From: ronstk at ...239... (Ron_1st) Date: Wed, 4 Mar 2009 19:20:43 +0100 Subject: [Gambas-user] Feature requests In-Reply-To: <1f1e8c1b0903040726m5beff296h6724f5bf8343e753@...627...> References: <1f1e8c1b0903040726m5beff296h6724f5bf8343e753@...627...> Message-ID: <200903041920.43761.ronstk@...239...> On Wednesday 04 March 2009, M0E Lnx wrote: > I have a couple of requests for the gb.gtk component (and maybe even > the gb.qt as well) > > It's about progressbars. > I'd like to use a progressbar like alternating progressbar (like the > one used in the gparted windows while executing changes (top one)) > alternates from left to right > I'd like to be able to display some text inside the progressbar ... > not just the value, but a way to display my own string in there > > Is this at all possible? > Yes!! Best regards, Ron_1st -- From m0e.lnx at ...626... Wed Mar 4 19:24:54 2009 From: m0e.lnx at ...626... (M0E Lnx) Date: Wed, 4 Mar 2009 12:24:54 -0600 Subject: [Gambas-user] Feature requests In-Reply-To: <200903041920.43761.ronstk@...239...> References: <1f1e8c1b0903040726m5beff296h6724f5bf8343e753@...627...> <200903041920.43761.ronstk@...239...> Message-ID: <1f1e8c1b0903041024p19b2d2bftd9f4e15642e49fb1@...627...> ????????????????????????? From ronstk at ...239... Wed Mar 4 19:26:33 2009 From: ronstk at ...239... (Ron_1st) Date: Wed, 4 Mar 2009 19:26:33 +0100 Subject: [Gambas-user] Feature requests In-Reply-To: <1f1e8c1b0903041009o33434842p53d47d17609bc205@...627...> References: <1f1e8c1b0903040726m5beff296h6724f5bf8343e753@...627...> <200903041809.48666.gambas@...1...> <1f1e8c1b0903041009o33434842p53d47d17609bc205@...627...> Message-ID: <200903041926.34108.ronstk@...239...> On Wednesday 04 March 2009, M0E Lnx wrote: > I'm not sure how to do this... > > THe progressbar only moves in one direction, and the .label property > is a boolean... > > Dont know how to change any of that. > > On Wed, Mar 4, 2009 at 11:09 AM, Beno?t Minisini > wrote: > >> I have a couple of requests for the gb.gtk component (and maybe even > >> the gb.qt as well) > >> > >> It's about progressbars. > >> I'd like to use a progressbar like alternating progressbar (like the > >> one used in the gparted windows while executing changes (top one)) > >> alternates from left to right > >> I'd like to be able to display some text inside the progressbar ... > >> not just the value, but a way to display my own string in there > >> > >> Is this at all possible? > >> > > > > That's something you can do in Gambas easily, isn't it? > > > > -- > > Beno?t > > > > Just try to extract your wished control to several parts. Take a container object, i.e. panel Put a label in it with same width as the panel. For shift left/right use a timer and control the label.left value from 0 to -width and back Put a second label with transparent background color above the first label. Write you message in the label.text happpyyyyyyyyyyyy MOE? Best regards, Ron_1st -- A: Delete the text you reply on. Q: What to do to get my post on top? --- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? --- A: Top-posting. Q: What is the most annoying thing in e-mail? From ronstk at ...239... Wed Mar 4 19:33:41 2009 From: ronstk at ...239... (Ron_1st) Date: Wed, 4 Mar 2009 19:33:41 +0100 Subject: [Gambas-user] [Help] Package created with autotools In-Reply-To: <581591.59401.qm@...2091...> References: <581591.59401.qm@...2091...> Message-ID: <200903041933.41834.ronstk@...239...> On Wednesday 04 March 2009, Achmad Arifin wrote: > I have gambas package created with autotools under ubuntu hardy, I want to install it to zenwalk. When I run configure command, it shows an error: > --------------------------------------------------------------------------------- > root[tes-0.0]# ./configure > checking for a BSD-compatible install... /bin/ginstall -c > checking whether build environment is sane... yes > checking for a thread-safe mkdir -p... /bin/mkdir -p > checking for gawk... gawk > checking whether make sets $(MAKE)... yes > checking for gambas2 binaries... ./configure: line 2140: gbx2: command not found > No > configure: error: Failed to find gambas2 utilities > ./configure: line 2146: exit: check: numeric argument required > ./configure: line 2146: exit: check: numeric argument required > root[tes-0.0]# > --------------------------------------------------------------------------------------- > Do I have to install dependencies (gambas2 utilities) before compile my package? Or, is dependencies can be include to my package? Sorry I am a newbie in gambas. > If zenwalk is on different computer then the one you did make the package you may need to install gambas-runtime at least. Question is what do you mean with 'gambas package'? Is it a application you made? Is it the gambas source code for compiling the gambas system? Look this because you try ./configure command. Best regards, Ron_1st -- A: Delete the text you reply on. Q: What to do to get my post on top? --- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? --- A: Top-posting. Q: What is the most annoying thing in e-mail? From ronstk at ...239... Wed Mar 4 19:42:40 2009 From: ronstk at ...239... (Ron_1st) Date: Wed, 4 Mar 2009 19:42:40 +0100 Subject: [Gambas-user] last instert ID in sqlite3 In-Reply-To: <499ea6ce0903040834t13fce8d7gde2d07686422dc13@...627...> References: <499ea6ce0903040834t13fce8d7gde2d07686422dc13@...627...> Message-ID: <200903041942.40948.ronstk@...239...> On Wednesday 04 March 2009, Jaume Casado wrote: > Hi there. > > I'm looking for a function or method in the gb.db component to obtain the ID > of the last element inserted into the database. With the methods Create, > Edit y Find, we can run our Gambas app independently from the chosen engine > database. That's why I wanna know if there is any similar solution to get > the last insert id (of an autoincrement field in a table). Now I am working > with sqlite3 and I don't find the manner. Thus, I did it with the specific > sql query: > > hResult = hConn.Exec("SELECT last_insert_rowid() AS id") > RETURN CInt(hResult["id"]) > > But doing it like this is not database engine independent, because in MySQL > the query was: > > SELECT LAST_INSERT_ID(); > > Searching a little, I've found that the MySQL component includes it already: > 22:23 on Oct 25, 2008 gambas Commit by dvillalobos :: r1652 > /gambas/trunk/gb.db.mysql/src/gb.db.mysql/ (.component .info .project > _MySQL.class): (link) > > > [GB.DB.MYSQL] > NEW: Added the function LastInsertId to _MySQL class, that returns the last > insert id for the current user. > > Then, Gambas lets you to get the "last insert id" in a transparent manner? > > Thank you a lot, > Jaume > > I do belive dvillalobos did use 'LastInsertId' for the gambas name. It is translated in background to the MySQL 'SELECT LAST_INSERT_ID();' and the mantainer of the sqlite version can/should use the same gambas name and translate it to 'SELECT last_insert_rowid()'. Result will be a common name not conflicting with the sql command itself. Best regards, Ron_1st -- A: Delete the text you reply on. Q: What to do to get my post on top? --- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? --- A: Top-posting. Q: What is the most annoying thing in e-mail? From doriano.blengino at ...1909... Wed Mar 4 19:54:23 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Wed, 04 Mar 2009 19:54:23 +0100 Subject: [Gambas-user] Reply: No EXEC Output but Works in Terminal In-Reply-To: <384d3900903040815n204ada40w7398182101acf6e1@...627...> References: <49AE9D24.9020804@...1092...> <384d3900903040815n204ada40w7398182101acf6e1@...627...> Message-ID: <49AECE5F.50208@...1909...> Jussi Lahtinen ha scritto: ... Well, I have to be more precise. Sorry mr. Person to have been too concise. I understand that docs are not the best, but I did understand them with just a little effort, thanks to other knowledges you perhaps miss. And I made a mistake when speaking of WAIT in combination of "TO xxx". But in the docs this is explained. EXEC takes a number of parameters from 1 to "n". The first is the executable to launch, and it must be a true executable. As "test.sh" is not a true executable, but a shell script, the "sh" has to be used. Normally, sh is used with parameter "-c" to execute a command. So I would use: EXEC ["/bin/sh", "-c", Application.path &/ "test.sh"] TO sOutPut Pay attention to where test.sh is, and files needed by it. > I tried your code... (first I did move test.sh to execution folder). > With me, this; > EXEC ["sh", Application.Path &/ "test.sh"] TO sOutPut > works well. > This seems to work also, ok... > But this; > EXEC ["sh " & Application.Path &/ "test.sh"] TO sOutPut > does NOT work (no output). > So EXEC command is pretty picky. Benoit, comments? > This is erroneous, because the first parameter has to be an executable. The above statement tries to launch a file named "sh /home/test/test.sh" or something like that. That's why it does not work. I would be a little surprise to see a file with slash characters in its name... (if someone wonders, well, it is possible even if is almost never used). As it happens, the "sh -c" is so useful that gambas has a shorter way to call it: SHELL. "SHELL sCommand" is nothing else than "EXEC ["/bin/sh", "-c", sCommand]". >> I tried EXEC ["full path/test.sh"] WAIT to sOutPut but it died. top >> showed nothing running. >> >> Can you show me an example of EXEC . . . WAIT with a variable returned? >> There are examples in the documentation, anyway my file manager removes files using: SHELL "rm -r \"" & fname & "\" 2>&1" TO name IF name <> "" THEN Message.Info(name) ........ This example works. Notice that the notation 2>&1 works only for SHELL (or for sh -c), because is /bin/sh syntax. It works like this: file manager simply pass the dirty work to the shell. The shell executes "rm -r", and catches both normal output and standard error in one single channel, which gambas read and stores in variable "name". If this variable is not empty, then something went wrong, and the message is showed to the user. If no errors happen, "name" is empty and the deletion went well. Regards, Doriano From ronstk at ...239... Wed Mar 4 20:30:21 2009 From: ronstk at ...239... (Ron_1st) Date: Wed, 4 Mar 2009 20:30:21 +0100 Subject: [Gambas-user] Two minor "bugs" In-Reply-To: <200903041842.17494.gambas@...1...> References: <4965C7AE.8030501@...221...> <200903041842.17494.gambas@...1...> Message-ID: <200903042030.21291.ronstk@...239...> On Wednesday 04 March 2009, Beno?t Minisini wrote: > I (finally) created a new property in the GridView class (and so in its child > class TableView): GridView.AutoResize. > > When this property is not set, the last column is not automatically stretched > anymore. > > You get it in the revision #1895. The gb.gtk version has not been implemented > yet. > > Enjoy it. :-) > > -- > Beno?t > Thank you master of universe :) Best regards, Ron_1st -- From ron at ...1740... Wed Mar 4 20:40:34 2009 From: ron at ...1740... (Ron) Date: Wed, 04 Mar 2009 20:40:34 +0100 Subject: [Gambas-user] Two minor "bugs" In-Reply-To: <200903042030.21291.ronstk@...239...> References: <4965C7AE.8030501@...221...> <200903041842.17494.gambas@...1...> <200903042030.21291.ronstk@...239...> Message-ID: <49AED932.4000708@...1740...> Ron_1st schreef: > On Wednesday 04 March 2009, Beno?t Minisini wrote: > > Enjoy it. :-) > > -- > Beno?t > > Thank you master of universe :) > > > Best regards, > > Ron_1st > I bet Beno?t's donkeys are called "patch", "fix", "bug" and "commit" ;-) Regards, Ron_2nd. From joe1962 at ...626... Wed Mar 4 21:36:21 2009 From: joe1962 at ...626... (Jose J. Rodriguez) Date: Wed, 4 Mar 2009 15:36:21 -0500 Subject: [Gambas-user] GIS component Message-ID: <6c208f950903041236o19769017w35a6fb4998f031fe@...627...> Has anybody worked on or thought about a mapping/GIS component for Gambas? There are several open source libraries about with the functionality, unfortunately, I have no clue when it comes to java or C/C++, lol. Regards, Joe1962 From nxgtrturbo at ...626... Thu Mar 5 02:42:24 2009 From: nxgtrturbo at ...626... (CARLOS GTR) Date: Wed, 4 Mar 2009 17:42:24 -0800 Subject: [Gambas-user] Nested Socket Write does not work Message-ID: <688afe140903041742x67e745b7o150c049d28e9fa1a@...627...> Hi, I am working in chat program in Gambas that works with TCP sockets. The problem is that the clients that connect to the server need to receive the list of the contacts that are online (as any chat), The Server has the list but cant send it. This is the code: DIM y, x AS Integer FOR x = 0 TO Client.Max FOR y = 0 TO listacontactos.Count - 1 ' Message(?dgdsgfds?) If I uncomment this line everything works WRITE #Client[x], "[" & y & "]" & listacontactos[y].Text, Len(listacontactos[y].Text) + 4 NEXT NEXT That code with the message instruction commented only send 1 contact, when I uncomment that dummy message line everything works perfect. Another interesting fact is that If I put break points for the nested FORs and see what happens the programs runs perfect even without the dummy message instruction. Hope somebody could help. Thanks in advance -- Nx GTR From eilert-sprachen at ...221... Thu Mar 5 08:20:59 2009 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Thu, 05 Mar 2009 08:20:59 +0100 Subject: [Gambas-user] Two minor "bugs" In-Reply-To: <49AED932.4000708@...1740...> References: <4965C7AE.8030501@...221...> <200903041842.17494.gambas@...1...> <200903042030.21291.ronstk@...239...> <49AED932.4000708@...1740...> Message-ID: <49AF7D5B.20401@...221...> Ron schrieb: > Ron_1st schreef: >> On Wednesday 04 March 2009, Beno?t Minisini wrote: >> >> Enjoy it. :-) >> >> -- >> Beno?t >> >> Thank you master of universe :) >> >> >> Best regards, >> >> Ron_1st >> > I bet Beno?t's donkeys are called "patch", "fix", "bug" and "commit" > ;-) > > Regards, > Ron_2nd. > ROTFL :-) Rolf From eilert-sprachen at ...221... Thu Mar 5 08:23:20 2009 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Thu, 05 Mar 2009 08:23:20 +0100 Subject: [Gambas-user] Two minor "bugs" In-Reply-To: <200903041842.17494.gambas@...1...> References: <4965C7AE.8030501@...221...> <200903041842.17494.gambas@...1...> Message-ID: <49AF7DE8.8060806@...221...> Beno?t Minisini schrieb: >> Hi everyone! >> >> When converting one of my apps from Gambas1 to Gambas2, I found 2 minor >> items: >> >> 1. The status of Tool Box Collection is not saved and always starts as >> "switched off" when starting the Gambas2 IDE. But maybe this is wanted? >> > > This bug is now fixed in revision #1894 (for Gambas 2) and #1895 (for Gambas > 3). Wow! Thank you. > >> 2. The last (rightmost) column of a TableView is stretched to the >> ultimate width of the tableview and ignores if a Width value is given >> for it. >> >> Well, it just looks sort of ugly, but I found it worth mentioning anyway. >> >> Have a nice day! >> >> Rolf >> > > I (finally) created a new property in the GridView class (and so in its child > class TableView): GridView.AutoResize. > > When this property is not set, the last column is not automatically stretched > anymore. > > You get it in the revision #1895. The gb.gtk version has not been implemented > yet. > > Enjoy it. :-) > Oh, I will, I will enjoy :-) Thank you very much indeed! Regards Rolf From eilert-sprachen at ...221... Thu Mar 5 10:37:12 2009 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Thu, 05 Mar 2009 10:37:12 +0100 Subject: [Gambas-user] Two minor "bugs" In-Reply-To: <200903041842.17494.gambas@...1...> References: <4965C7AE.8030501@...221...> <200903041842.17494.gambas@...1...> Message-ID: <49AF9D48.7040509@...221...> Beno?t Minisini schrieb: >> Hi everyone! >> >> When converting one of my apps from Gambas1 to Gambas2, I found 2 minor >> items: >> >> 1. The status of Tool Box Collection is not saved and always starts as >> "switched off" when starting the Gambas2 IDE. But maybe this is wanted? >> > > This bug is now fixed in revision #1894 (for Gambas 2) and #1895 (for Gambas > 3). > >> 2. The last (rightmost) column of a TableView is stretched to the >> ultimate width of the tableview and ignores if a Width value is given >> for it. >> >> Well, it just looks sort of ugly, but I found it worth mentioning anyway. >> >> Have a nice day! >> >> Rolf >> > > I (finally) created a new property in the GridView class (and so in its child > class TableView): GridView.AutoResize. > > When this property is not set, the last column is not automatically stretched > anymore. > > You get it in the revision #1895. The gb.gtk version has not been implemented > yet. > > Enjoy it. :-) > Hmmmm - just tried it in Gambas2 - no reaction. What I did: Getting the svn into 2.0 (said it's #1896), reconf-all, configure, make, make install. Called Gambas2, opened the project I'm working with. The GridViews in question are called tbd and tbk, so I tried tbd.AutoResize = False tbk.AutoResize = False but there was no input help, and AutoResize does not appear in the Properties list. Running the program, Gambas said "Unknown symbol "AutoResize" in class GridView. What have I done wrong? Regards Rolf From ihaywood at ...1979... Thu Mar 5 10:54:43 2009 From: ihaywood at ...1979... (Ian Haywood) Date: Thu, 5 Mar 2009 20:54:43 +1100 Subject: [Gambas-user] segfault on PDF In-Reply-To: <49AF7D5B.20401@...221...> References: <4965C7AE.8030501@...221...> <49AED932.4000708@...1740...> <49AF7D5B.20401@...221...> Message-ID: <200903052054.44132.ihaywood@...1979...> Currently the gambas PDF viewer segfaults when loading this PDF. The PDF probably has a corrupted index, but I think gambas could deal with more gracefully (by not displaying the index, but still the pages of the PDF) which is what other poppler-based tools can do. This patch (to both the pdf component and the example viewer) fixes the issue. Ian Haywood -------------- next part -------------- A non-text attachment was scrubbed... Name: warfarin.pdf Type: application/pdf Size: 188089 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: fix-pdf.diff Type: text/x-patch Size: 1502 bytes Desc: not available URL: From gambas at ...1... Thu Mar 5 11:02:55 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Thu, 5 Mar 2009 11:02:55 +0100 Subject: [Gambas-user] Two minor "bugs" In-Reply-To: <49AF9D48.7040509@...221...> References: <4965C7AE.8030501@...221...> <200903041842.17494.gambas@...1...> <49AF9D48.7040509@...221...> Message-ID: <200903051102.55627.gambas@...1...> > Beno?t Minisini schrieb: > >> Hi everyone! > >> > >> When converting one of my apps from Gambas1 to Gambas2, I found 2 minor > >> items: > >> > >> 1. The status of Tool Box Collection is not saved and always starts as > >> "switched off" when starting the Gambas2 IDE. But maybe this is wanted? > > > > This bug is now fixed in revision #1894 (for Gambas 2) and #1895 (for > > Gambas 3). > > > >> 2. The last (rightmost) column of a TableView is stretched to the > >> ultimate width of the tableview and ignores if a Width value is given > >> for it. > >> > >> Well, it just looks sort of ugly, but I found it worth mentioning > >> anyway. > >> > >> Have a nice day! > >> > >> Rolf > > > > I (finally) created a new property in the GridView class (and so in its > > child class TableView): GridView.AutoResize. > > > > When this property is not set, the last column is not automatically > > stretched anymore. > > > > You get it in the revision #1895. The gb.gtk version has not been > > implemented yet. > > > > Enjoy it. :-) > > Hmmmm - just tried it in Gambas2 - no reaction. > > What I did: Getting the svn into 2.0 (said it's #1896), reconf-all, > configure, make, make install. > > > Called Gambas2, opened the project I'm working with. The GridViews in > question are called tbd and tbk, so I tried > > tbd.AutoResize = False > tbk.AutoResize = False > > but there was no input help, and AutoResize does not appear in the > Properties list. Running the program, Gambas said "Unknown symbol > "AutoResize" in class GridView. > > What have I done wrong? > > Regards > > Rolf > You won't see it in Gambas 2, only in Gambas 3. Gambas 2 components and interpreter only have bug fixes. Regards, -- Beno?t From eilert-sprachen at ...221... Thu Mar 5 11:37:33 2009 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Thu, 05 Mar 2009 11:37:33 +0100 Subject: [Gambas-user] Two minor "bugs" In-Reply-To: <200903051102.55627.gambas@...1...> References: <4965C7AE.8030501@...221...> <200903041842.17494.gambas@...1...> <49AF9D48.7040509@...221...> <200903051102.55627.gambas@...1...> Message-ID: <49AFAB6D.2020607@...221...> Beno?t Minisini schrieb: >> Beno?t Minisini schrieb: >>>> Hi everyone! >>>> >>>> When converting one of my apps from Gambas1 to Gambas2, I found 2 minor >>>> items: >>>> >>>> 1. The status of Tool Box Collection is not saved and always starts as >>>> "switched off" when starting the Gambas2 IDE. But maybe this is wanted? >>> This bug is now fixed in revision #1894 (for Gambas 2) and #1895 (for >>> Gambas 3). >>> >>>> 2. The last (rightmost) column of a TableView is stretched to the >>>> ultimate width of the tableview and ignores if a Width value is given >>>> for it. >>>> >>>> Well, it just looks sort of ugly, but I found it worth mentioning >>>> anyway. >>>> >>>> Have a nice day! >>>> >>>> Rolf >>> I (finally) created a new property in the GridView class (and so in its >>> child class TableView): GridView.AutoResize. >>> >>> When this property is not set, the last column is not automatically >>> stretched anymore. >>> >>> You get it in the revision #1895. The gb.gtk version has not been >>> implemented yet. >>> >>> Enjoy it. :-) >> Hmmmm - just tried it in Gambas2 - no reaction. >> >> What I did: Getting the svn into 2.0 (said it's #1896), reconf-all, >> configure, make, make install. >> >> >> Called Gambas2, opened the project I'm working with. The GridViews in >> question are called tbd and tbk, so I tried >> >> tbd.AutoResize = False >> tbk.AutoResize = False >> >> but there was no input help, and AutoResize does not appear in the >> Properties list. Running the program, Gambas said "Unknown symbol >> "AutoResize" in class GridView. >> >> What have I done wrong? >> >> Regards >> >> Rolf >> > > You won't see it in Gambas 2, only in Gambas 3. Gambas 2 components and > interpreter only have bug fixes. > > Regards, > Aaah ok, I got confused by the revision numbers :-) Regards Rolf From gambas at ...1... Thu Mar 5 12:20:23 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 5 Mar 2009 12:20:23 +0100 Subject: [Gambas-user] Nested Socket Write does not work In-Reply-To: <688afe140903041742x67e745b7o150c049d28e9fa1a@...627...> References: <688afe140903041742x67e745b7o150c049d28e9fa1a@...627...> Message-ID: <200903051220.23802.gambas@...1...> > Hi, I am working in chat program in Gambas that works with TCP sockets. > The problem is that the clients that connect to the server need to receive > the list of the contacts that are online (as any chat), The Server has the > list but cant send it. > > This is the code: > DIM y, x AS Integer > FOR x = 0 TO Client.Max > FOR y = 0 TO listacontactos.Count - 1 > ' Message(?dgdsgfds?) If I uncomment this line everything works > WRITE #Client[x], "[" & y & "]" & listacontactos[y].Text, > Len(listacontactos[y].Text) + 4 > NEXT > NEXT > > That code with the message instruction commented only send 1 contact, when > I uncomment that dummy message line everything works perfect. > > Another interesting fact is that If I put break points for the nested FORs > and see what happens the programs runs perfect even without the dummy > message instruction. > > Hope somebody could help. Thanks in advance Can you give more details? Which version of Gambas do you use? Can you send the source code of the client and the server ? -- Beno?t From gambas at ...1... Thu Mar 5 14:17:10 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Thu, 5 Mar 2009 14:17:10 +0100 Subject: [Gambas-user] segfault on PDF In-Reply-To: <200903052054.44132.ihaywood@...1979...> References: <4965C7AE.8030501@...221...> <49AF7D5B.20401@...221...> <200903052054.44132.ihaywood@...1979...> Message-ID: <200903051417.10620.gambas@...1...> > Currently the gambas PDF viewer segfaults when loading this PDF. > The PDF probably has a corrupted index, but I think gambas could deal with > more gracefully (by not displaying the index, but still the pages of the > PDF) which is what other poppler-based tools can do. > > This patch (to both the pdf component and the example viewer) fixes the > issue. > > Ian Haywood Thanks for the patch. I didn't use them, because actually the problem is only in PdfDocument.cpp, which did not check that the getDest() method could return NULL. I modified PdfDocument.cpp to check the return value of getDest() everywhere. To fix the PdfViewer example error, I modified The PdfDocument.HasIndex property, the PdfIndex.HasChildren property and the PdfIndex.MoveChild() method to take into account that having an index with zero elements is the same thing as having no index. The fix is in revision #1899 (Gambas 2) and #1900 (Gambas 3) Best regards, -- Beno?t From ac_rivvin at ...43... Thu Mar 5 14:31:07 2009 From: ac_rivvin at ...43... (Achmad Arifin) Date: Thu, 5 Mar 2009 05:31:07 -0800 (PST) Subject: [Gambas-user] [Help] Package created with autotools Message-ID: <199031.37799.qm@...2053...> >>On Wednesday 04 March 2009, Achmad Arifin wrote: >> I have gambas package created with autotools under ubuntu hardy, I want to install it to zenwalk. When I run configure command, it shows an error: >> --------------------------------------------------------------------------------- >>root[tes-0.0]# ./configure >> checking for a BSD-compatible install... /bin/ginstall -c >> checking whether build environment is sane... yes >> checking for a thread-safe mkdir -p... /bin/mkdir -p >> checking for gawk... gawk >> checking whether make sets $(MAKE)... yes >> checking for gambas2 binaries... ./configure: line 2140: gbx2: command not found >> No >> configure: error: Failed to find gambas2 utilities >> ./configure: line 2146: exit: check: numeric argument required >> ./configure: line 2146: exit: check: numeric argument required >> root[tes-0.0]# >> --------------------------------------------------------------------------------------- >> Do I have to install dependencies (gambas2 utilities) before compile my package? Or, is dependencies can be include to my package? Sorry I am a newbie in gambas. >> >If zenwalk is on different computer then the one you did make the package >you may need to install gambas-runtime at least. >Question is what do you mean with 'gambas package'? >Is it a application you made? >Is it the gambas source code for compiling the gambas system? >Look this because you try ./configure command. I mean my gambas installation package, I made it using autotools. Is there any way to include gambas-runtime to my installation package? Can autotools included those file automatically? From rterry at ...1946... Thu Mar 5 22:06:26 2009 From: rterry at ...1946... (richard terry) Date: Fri, 6 Mar 2009 08:06:26 +1100 Subject: [Gambas-user] segfault on PDF In-Reply-To: <200903051417.10620.gambas@...1...> References: <4965C7AE.8030501@...221...> <200903052054.44132.ihaywood@...1979...> <200903051417.10620.gambas@...1...> Message-ID: <200903060806.26851.rterry@...1946...> On Fri, 6 Mar 2009 12:17:10 am Beno?t Minisini wrote: > > Currently the gambas PDF viewer segfaults when loading this PDF. > > The PDF probably has a corrupted index, but I think gambas could deal > > with more gracefully (by not displaying the index, but still the pages of > > the PDF) which is what other poppler-based tools can do. > > > > This patch (to both the pdf component and the example viewer) fixes the > > issue. > > > > Ian Haywood > > Thanks for the patch. > > I didn't use them, because actually the problem is only in PdfDocument.cpp, > which did not check that the getDest() method could return NULL. > > I modified PdfDocument.cpp to check the return value of getDest() > everywhere. > > To fix the PdfViewer example error, I modified The PdfDocument.HasIndex > property, the PdfIndex.HasChildren property and the PdfIndex.MoveChild() > method to take into account that having an index with zero elements is the > same thing as having no index. > > The fix is in revision #1899 (Gambas 2) and #1900 (Gambas 3) > > Best regards, Thanks Ian/Benoit, I've compiled 1900 and indeed the patch works as promised and I can view my warfarin pdf in my Library tree. Richard From doriano.blengino at ...1909... Fri Mar 6 09:52:48 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Fri, 06 Mar 2009 09:52:48 +0100 Subject: [Gambas-user] Nested Socket Write does not work In-Reply-To: <688afe140903041742x67e745b7o150c049d28e9fa1a@...627...> References: <688afe140903041742x67e745b7o150c049d28e9fa1a@...627...> Message-ID: <49B0E460.3090805@...1909...> CARLOS GTR ha scritto: > Hi, I am working in chat program in Gambas that works with TCP sockets. > The problem is that the clients that connect to the server need to receive > the list of the contacts that are online (as any chat), The Server has the > list but cant send it. > > This is the code: > DIM y, x AS Integer > FOR x = 0 TO Client.Max > FOR y = 0 TO listacontactos.Count - 1 > ' Message(?dgdsgfds?) If I uncomment this line everything works > WRITE #Client[x], "[" & y & "]" & listacontactos[y].Text, > Len(listacontactos[y].Text) + 4 > NEXT > NEXT > > That code with the message instruction commented only send 1 contact, when I > uncomment that dummy message line everything works perfect. > > Another interesting fact is that If I put break points for the nested FORs > and see what happens the programs runs perfect even without the dummy > message instruction. > Sorry, I don't know how gambas works with sockets, but instead I noticed something else that perhaps is worth to be investigated. When you write on socket, you send something like "[0]text". The length of this example string is 7 characters, but your formula gives 8 because you add 4 to the length of the original text. Perhaps, this code tries to access past the end of the string. In other languages this could lead to an exception - don't know what happens in gambas: who knows... may be it does strange things... Regards, Doriano From eilert-sprachen at ...221... Fri Mar 6 10:17:06 2009 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Fri, 06 Mar 2009 10:17:06 +0100 Subject: [Gambas-user] Compiling problems of Gambas3 Message-ID: <49B0EA12.5090308@...221...> Hi all, hi Benoit, did you solve the compile problem with Gambas3? Yesterday I tried to let it run through, everything compiled without error, but make install failed due to this missing library again. Regards Rolf From gambas at ...1... Fri Mar 6 12:59:04 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Fri, 6 Mar 2009 12:59:04 +0100 Subject: [Gambas-user] Nested Socket Write does not work In-Reply-To: <49B0E460.3090805@...1909...> References: <688afe140903041742x67e745b7o150c049d28e9fa1a@...627...> <49B0E460.3090805@...1909...> Message-ID: <200903061259.04871.gambas@...1...> > > Sorry, I don't know how gambas works with sockets, but instead I noticed > something else that perhaps is worth to be investigated. When you write > on socket, you send something like "[0]text". The length of this example > string is 7 characters, but your formula gives 8 because you add 4 to > the length of the original text. Perhaps, this code tries to access past > the end of the string. In other languages this could lead to an > exception - don't know what happens in gambas: who knows... may be it > does strange things... > It is not a problem. The real length of the string is used then. -- Beno?t From ronstk at ...239... Fri Mar 6 13:09:08 2009 From: ronstk at ...239... (Ron_1st) Date: Fri, 6 Mar 2009 13:09:08 +0100 Subject: [Gambas-user] Nested Socket Write does not work In-Reply-To: <688afe140903041742x67e745b7o150c049d28e9fa1a@...627...> References: <688afe140903041742x67e745b7o150c049d28e9fa1a@...627...> Message-ID: <200903061309.08509.ronstk@...239...> On Thursday 05 March 2009, CARLOS GTR wrote: > Hi, I am working in chat program in Gambas that works with TCP sockets. > The problem is that the clients that connect to the server need to receive > the list of the contacts that are online (as any chat), The Server has the > list but cant send it. > > This is the code: > DIM y, x AS Integer > FOR x = 0 TO Client.Max > FOR y = 0 TO listacontactos.Count - 1 > ' Message(?dgdsgfds?) If I uncomment this line everything works > WRITE #Client[x], "[" & y & "]" & listacontactos[y].Text, > Len(listacontactos[y].Text) + 4 > NEXT > NEXT > > That code with the message instruction commented only send 1 contact, when I > uncomment that dummy message line everything works perfect. > > Another interesting fact is that If I put break points for the nested FORs > and see what happens the programs runs perfect even without the dummy > message instruction. > > Hope somebody could help. Thanks in advance > What happens if listacontactos.Count is 200 items? You do Len(listacontactos[y].Text) + 4 but that does not fit for item 100 DIM y, x AS Integer DIM towrite AS String FOR x = 0 TO Client.Max FOR y = 0 TO listacontactos.Count - 1 ' Message(?dgdsgfds?) If I uncomment this line everything works towrite="[" & y & "]" & listacontactos[y].Text WRITE #Client[x], towrite , Len(towrite) NEXT NEXT would do the job more correct. Best regards, Ron_1st -- From marc at ...2086... Sat Mar 7 06:51:10 2009 From: marc at ...2086... (Marc Carson) Date: Fri, 06 Mar 2009 21:51:10 -0800 Subject: [Gambas-user] Save file dialog prepends path to Name field? Message-ID: <49B20B4E.8090100@...2086...> I noticed that the typical GTK "save" dialog shows the file name in the "Name" field, but my simple test in Gambas prepends a path, such as "/home/user/," to the file name in that field. Is this correct behavior? It seems like it needs to be "fixed" because no matter which folder icon I click in the Save dialog, the prepended path will overrule it until I type the path in myself. Here's the code I'm working with, from a tutorial: PUBLIC SUB btnSave_Click() Dialog.Filter = ["*.txt", "Text Files"] IF Dialog.SaveFile() THEN RETURN File.Save(Dialog.Path, TextAreaEdit.Text) CATCH Message.Error(Error.Text) END Gambas version 2.0.0, Ubuntu 8.04. -- *Marc Carson* Web Designer, Illustrator Web: friendlyskies.net Email: marc at ...2086... From gambas at ...1... Sat Mar 7 10:50:26 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Sat, 7 Mar 2009 10:50:26 +0100 Subject: [Gambas-user] Save file dialog prepends path to Name field? In-Reply-To: <49B20B4E.8090100@...2086...> References: <49B20B4E.8090100@...2086...> Message-ID: <200903071050.26682.gambas@...1...> > I noticed that the typical GTK "save" dialog shows the file name in the > "Name" field, but my simple test in Gambas prepends a path, such as > "/home/user/," to the file name in that field. > > Is this correct behavior? It seems like it needs to be "fixed" because > no matter which folder icon I click in the Save dialog, the prepended > path will overrule it until I type the path in myself. > > Here's the code I'm working with, from a tutorial: > > PUBLIC SUB btnSave_Click() > > Dialog.Filter = ["*.txt", "Text Files"] > IF Dialog.SaveFile() THEN RETURN > File.Save(Dialog.Path, TextAreaEdit.Text) > CATCH > Message.Error(Error.Text) > END > > > > Gambas version 2.0.0, Ubuntu 8.04. Oops, a very old bug! I fixed it in revision #1901. Regards, -- Beno?t From jguardon at ...2035... Sat Mar 7 14:07:28 2009 From: jguardon at ...2035... (Jesus Guardon) Date: Sat, 07 Mar 2009 14:07:28 +0100 Subject: [Gambas-user] Pointer[] error in Ubuntu 8.04 Message-ID: <49B27190.2060203@...2035...> Hi all Since I'm testing my application in several distributions, I've noticed a bug? with pointer class in Ubuntu 8.04 only. This is related to embedder, so it's better to show my code based on the example provided by Gambas. Note that the example doesn't work, too. PUBLIC SUB Form_Open() DIM sTitle AS String DIM aHandle AS NEW Pointer[] DIM iHandle AS Integer sTitle = "DX Map" 'this is a xplanet window ME.Title = sTitle WHILE aHandle.Count < 1 aHandle = Desktop.find(Trim(sTitle)) WAIT 0.1 WEND iHandle = aHandle[0] TRY Embedder1.Embed(iHandle) FMain.Controls["btnMap"].Enabled = FALSE loadSettings() END The error shown is: [2] Cannot load class 'Pointer[]': Unable to load class file. FMap.?.0 I've attached a capture of it. Using Gambas 2.9, and deployed Ubuntu .deb package. Any hints? Best regards Jes?s -------------- next part -------------- A non-text attachment was scrubbed... Name: pointer_error.png Type: image/png Size: 10201 bytes Desc: not available URL: From jussi.lahtinen at ...626... Sun Mar 8 17:22:13 2009 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 8 Mar 2009 18:22:13 +0200 Subject: [Gambas-user] ListView Message-ID: <384d3900903080922s7e3ef3daje67f5dfc5ab9bc29@...627...> Hi! I'm using Gambas3 revision 1885 and Qt. I noticed that ListView horizontal scrollbar is missing! No matter how long text. Vertical scrollbar is working. Then question... or something to wish list. Is it possible to determine order of which is first in line, picture or text? I'd like to use status symbols (urgent, broken, done, etc.), and they should be last, not first. See attachment. In my opinion it's little messy in that way. Jussi -------------- next part -------------- A non-text attachment was scrubbed... Name: pic.png Type: image/png Size: 3320 bytes Desc: not available URL: From jussi.lahtinen at ...626... Sun Mar 8 18:30:09 2009 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 8 Mar 2009 19:30:09 +0200 Subject: [Gambas-user] How to access labels etc from module? Message-ID: <384d3900903081030j7a02debdn834952d10604dadf@...627...> Hi! Might be pretty novice question, but it didn't find answer... What would be the best way to access labels etc. from module? I'm converting vb6 project in to gambas. And the code has lines like this in modules (also a lot more complicated); MainForm.LblStatus.Caption = "OK" But it doesn't work (Unknown symbol 'LblStatus' in class 'MainForm'). Is there easier way to access, than make sub for every control in form? Thanks! Jussi From wdahn at ...1000... Sun Mar 8 19:08:32 2009 From: wdahn at ...1000... (Werner) Date: Mon, 09 Mar 2009 02:08:32 +0800 Subject: [Gambas-user] How to access labels etc from module? In-Reply-To: <384d3900903081030j7a02debdn834952d10604dadf@...627...> References: <384d3900903081030j7a02debdn834952d10604dadf@...627...> Message-ID: <49B409A0.2040102@...1000...> Jussi Lahtinen wrote: > Hi! > > Might be pretty novice question, but it didn't find answer... > What would be the best way to access labels etc. from module? > I'm converting vb6 project in to gambas. > And the code has lines like this in modules (also a lot more complicated); > MainForm.LblStatus.Caption = "OK" > But it doesn't work (Unknown symbol 'LblStatus' in class 'MainForm'). > Is there easier way to access, than make sub for every control in form? > Thanks! > > > Jussi > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA > -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise > -Strategies to boost innovation and cut costs with open source participation > -Receive a $600 discount off the registration fee with the source code: SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > My Gambas is a bit rusty because I'm doing other things right now. But you might want to try Menu: Project-->Properties Properties Dialog Tab: Options--> Form Controls are Public set to Yes Regards Werner From jussi.lahtinen at ...626... Sun Mar 8 19:39:32 2009 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 8 Mar 2009 20:39:32 +0200 Subject: [Gambas-user] How to access labels etc from module? In-Reply-To: <49B409A0.2040102@...1000...> References: <384d3900903081030j7a02debdn834952d10604dadf@...627...> <49B409A0.2040102@...1000...> Message-ID: <384d3900903081139w153d45f8w26ebb4c97b50025a@...627...> Thanks! Exactly what I needed! Jussi On Sun, Mar 8, 2009 at 8:08 PM, Werner wrote: > Jussi Lahtinen wrote: >> Hi! >> >> Might be pretty novice question, but it didn't find answer... >> What would be the best way to access labels etc. from module? >> I'm converting vb6 project in to gambas. >> And the code has lines like this in modules (also a lot more complicated); >> MainForm.LblStatus.Caption = "OK" >> But it doesn't work (Unknown symbol 'LblStatus' in class 'MainForm'). >> Is there easier way to access, than make sub for every control in form? >> Thanks! >> >> >> Jussi >> >> ------------------------------------------------------------------------------ >> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA >> -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise >> -Strategies to boost innovation and cut costs with open source participation >> -Receive a $600 discount off the registration fee with the source code: SFAD >> http://p.sf.net/sfu/XcvMzF8H >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> > My Gambas is a bit rusty because I'm doing other things right now. > But you might want to try > Menu: Project-->Properties > ? ?Properties Dialog Tab: Options--> Form Controls are Public > ? ? ? set to Yes > > Regards > Werner > > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA > -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise > -Strategies to boost innovation and cut costs with open source participation > -Receive a $600 discount off the registration fee with the source code: SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From rterry at ...1946... Sun Mar 8 22:34:15 2009 From: rterry at ...1946... (richard terry) Date: Mon, 9 Mar 2009 08:34:15 +1100 Subject: [Gambas-user] Feature Request Message-ID: <200903090834.15303.rterry@...1946...> Benoit, Thanks for previous buttons for the pastes, are you going to amalgamate these to a single button with drop down list as I suggested like in kmail? This would leave room for my next request. I've dozens of forms, too many to be able to see without scrolling up and down. As my project is in constant development and I'm often testing one or more forms, opening and closing tabs, there is no easy way to go back to the 'master form', ie the main start up form. Having button on the toolbar one could allocate to this main start up form would be wonderful. Regards Richard From rterry at ...1946... Sun Mar 8 22:36:54 2009 From: rterry at ...1946... (richard terry) Date: Mon, 9 Mar 2009 08:36:54 +1100 Subject: [Gambas-user] Global Error Handing Message-ID: <200903090836.54557.rterry@...1946...> Question: Does gambas have any mechanism for global error handling -e.g error rigging an entire project including all subroutines with a master error handler, which would catch all un-handled fatal errors, and do something like pop up a dialog box with options for user to type in what they were doing, write to log file, email the developer? If not, how are other people handling this - I know there is the CATCH statement. If not, are there any plans to do this. Regards Richard From mohareve at ...626... Sun Mar 8 22:45:26 2009 From: mohareve at ...626... (M. Cs.) Date: Sun, 8 Mar 2009 22:45:26 +0100 Subject: [Gambas-user] How to write a multilingual application Message-ID: I've seen the built-in translator for Gambas, but I don't know how could I switch languages inside an application. Is it possible to use multiple translations inside a package, or I have to create package for English, German... version? Is it possible to pack some additional text or language files inside the packages? Thanks! Csaba From steven at ...2097... Mon Mar 9 03:14:11 2009 From: steven at ...2097... (Steven Drinnan) Date: Mon, 09 Mar 2009 10:14:11 +0800 Subject: [Gambas-user] GTK problems In-Reply-To: <200903090836.54557.rterry@...1946...> References: <200903090836.54557.rterry@...1946...> Message-ID: <1236564851.18225.12.camel@...2011...> Hi all, I am developing a student management system. Up till now I have been using QT. But in reading the licensing decided I need to switch to GTK components. But I have found the following problems. 1. Scaling and item placing will change when the form is scaled and when it is not scaled it appears a little different than in the development environment. (changing the form not to scale to size helps but the appearance is different) 2. When controls are disabled they do not retain their background colour. Regardless of weather the background is set or not. 3. Controls do not inherit the parents background and foreground font etc correctly. ( need to set each control manually) 4. Menu items do not work when form is loaded in a workspace. Any help to work around these problems would be appreciated. Steven From rterry at ...1946... Mon Mar 9 04:38:46 2009 From: rterry at ...1946... (richard terry) Date: Mon, 9 Mar 2009 14:38:46 +1100 Subject: [Gambas-user] GTK problems In-Reply-To: <1236564851.18225.12.camel@...2011...> References: <200903090836.54557.rterry@...1946...> <1236564851.18225.12.camel@...2011...> Message-ID: <200903091438.46642.rterry@...1946...> On Mon, 9 Mar 2009 01:14:11 pm Steven Drinnan wrote: > Hi all, > > I am developing a student management system. Up till now I have been > using QT. But in reading the licensing decided I need to switch to GTK > components. I thought the revised licence was quite liberal? regards Richard > But I have found the following problems. > > 1. Scaling and item placing will change when the form is scaled and when > it is not scaled it appears a little different than in the development > environment. (changing the form not to scale to size helps but the > appearance is different) > > 2. When controls are disabled they do not retain their background > colour. Regardless of weather the background is set or not. > > 3. Controls do not inherit the parents background and foreground font > etc correctly. ( need to set each control manually) > > 4. Menu items do not work when form is loaded in a workspace. > > Any help to work around these problems would be appreciated. > > > Steven > > > > > > > > > --------------------------------------------------------------------------- >--- Open Source Business Conference (OSBC), March 24-25, 2009, San > Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing > the Enterprise -Strategies to boost innovation and cut costs with open > source participation -Receive a $600 discount off the registration fee with > the source code: SFAD http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From wig at ...1809... Mon Mar 9 10:53:48 2009 From: wig at ...1809... (wig) Date: Mon, 9 Mar 2009 10:53:48 +0100 (CET) Subject: [Gambas-user] GTK problems (License) In-Reply-To: <200903091438.46642.rterry@...1946...> References: <200903090836.54557.rterry@...1946...> <1236564851.18225.12.camel@...2011...> <200903091438.46642.rterry@...1946...> Message-ID: <55649.81.245.220.223.1236592428.squirrel@...1810...> Older versions: "QPL" "It captures the general meaning of the GNU General Public Licence (GPL), but is incompatible with it" (Wikipedia) Later: "Trolltech toolkit version 4.0 was released under GPL version 2." (Wikipedia) "Version 4.5.0 will be the first release of Qt licensed under the LGPL, commercial license, and GPL v3. We intend to release all subsequent Qt releases under the LGPL, commercial, and GPL v3 licenses." "The LGPL is less restrictive and enables the development of closed source applications. We will be releasing Qt under the LGPL version 2.1 license, plus continuing to offer Qt under the GPL version 3.0." http://www.qtsoftware.com/about/licensing/frequently-asked-questions GPL and LGPL ... no reason any more to "avoid" QT as far as I know. > On Mon, 9 Mar 2009 01:14:11 pm Steven Drinnan wrote: >> Hi all, >> >> I am developing a student management system. Up till now I have been >> using QT. But in reading the licensing decided I need to switch to GTK >> components. > > I thought the revised licence was quite liberal? > > regards > > Richard > >> But I have found the following problems. >> >> 1. Scaling and item placing will change when the form is scaled and when >> it is not scaled it appears a little different than in the development >> environment. (changing the form not to scale to size helps but the >> appearance is different) >> >> 2. When controls are disabled they do not retain their background >> colour. Regardless of weather the background is set or not. >> >> 3. Controls do not inherit the parents background and foreground font >> etc correctly. ( need to set each control manually) >> >> 4. Menu items do not work when form is loaded in a workspace. >> >> Any help to work around these problems would be appreciated. >> >> >> Steven >> >> >> >> >> >> >> >> >> --------------------------------------------------------------------------- >>--- Open Source Business Conference (OSBC), March 24-25, 2009, San >> Francisco, CA -OSBC tackles the biggest issue in open source: Open >> Sourcing >> the Enterprise -Strategies to boost innovation and cut costs with open >> source participation -Receive a $600 discount off the registration fee >> with >> the source code: SFAD http://p.sf.net/sfu/XcvMzF8H >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, > CA > -OSBC tackles the biggest issue in open source: Open Sourcing the > Enterprise > -Strategies to boost innovation and cut costs with open source > participation > -Receive a $600 discount off the registration fee with the source code: > SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From wig at ...1809... Mon Mar 9 10:33:35 2009 From: wig at ...1809... (wig) Date: Mon, 9 Mar 2009 10:33:35 +0100 (CET) Subject: [Gambas-user] How to write a multilingual application In-Reply-To: References: Message-ID: <39705.81.245.220.223.1236591215.squirrel@...1810...> The language is selected on project start; it depends on the language of the system you work on (shell: echo $LANG) If you programmed your project in English, and made translations for French and German then a French system runs the French version, a German system runs the German version If the language is not available (or the translation for a particular string is missing) you get the English version/string. The language files are stored in .po files in the .lang directory of the project (as is said in http://gambasdoc.org/help/howto/translate); all are included if you make a source archive etc. If a language seems to miss, check the language name (e.g. nl_BE for Dutch in Belgium might not be found, while being the same translation as nl_NL for Dutch of the Netherlands, that might be available). You can force gambas to start with a language; start gambas with a parameter as this: LANG=nl_NL.UTF-8 to start in Dutch. Switching only works "from then on" when you change the language under program control with System.Language = "de_DE" But all Forms that are open already (e.g. Main) will stay in startup language. I tend to let the user choose a language (at first start-up and later changeable from a menu) and store it with the system of settings: (http://gambasdoc.org/help/comp/gb.settings) Settings["Language"] = fr_FR First thing to do is read the language setting and use it, only then start to load Forms that display text. It is a little bit more comfortable than to multi-boot Linux systems with other languages installed, just to check the languages as developer... Hope this gets you started! > I've seen the built-in translator for Gambas, but I don't know how could I > switch languages inside an application. Is it possible to use multiple > translations inside a package, or I have to create package for English, > German... version? > Is it possible to pack some additional text or language files inside the > packages? > Thanks! > Csaba > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, > CA > -OSBC tackles the biggest issue in open source: Open Sourcing the > Enterprise > -Strategies to boost innovation and cut costs with open source > participation > -Receive a $600 discount off the registration fee with the source code: > SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From sourceforge-raindog2 at ...94... Mon Mar 9 15:10:02 2009 From: sourceforge-raindog2 at ...94... (Rob) Date: Mon, 9 Mar 2009 09:10:02 -0500 Subject: [Gambas-user] GTK problems (License) In-Reply-To: <55649.81.245.220.223.1236592428.squirrel@...1810...> References: <200903090836.54557.rterry@...1946...> <200903091438.46642.rterry@...1946...> <55649.81.245.220.223.1236592428.squirrel@...1810...> Message-ID: <200903091010.03078.sourceforge-raindog2@...94...> On Monday 09 March 2009 05:53, wig wrote: > GPL and LGPL ... no reason any more to "avoid" QT as far as I know. Well, once Gambas starts using Qt 4.5. I haven't avoided Qt since the GPL dual-licensing kicked in years ago, but I can understand why someone who wants to make proprietary software with Gambas would do so. Rob From gambas at ...1... Mon Mar 9 16:12:26 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Mon, 9 Mar 2009 16:12:26 +0100 Subject: [Gambas-user] Pointer[] error in Ubuntu 8.04 In-Reply-To: <49B27190.2060203@...2035...> References: <49B27190.2060203@...2035...> Message-ID: <200903091612.26379.gambas@...1...> > Hi all > > Since I'm testing my application in several distributions, I've noticed > a bug? with pointer class in Ubuntu 8.04 only. > > This is related to embedder, so it's better to show my code based on the > example provided by Gambas. Note that the example doesn't work, too. > > PUBLIC SUB Form_Open() > > DIM sTitle AS String > DIM aHandle AS NEW Pointer[] > DIM iHandle AS Integer > > sTitle = "DX Map" 'this is a xplanet window > ME.Title = sTitle > WHILE aHandle.Count < 1 > > aHandle = Desktop.find(Trim(sTitle)) > > WAIT 0.1 > WEND > iHandle = aHandle[0] > TRY Embedder1.Embed(iHandle) > FMain.Controls["btnMap"].Enabled = FALSE > > loadSettings() > > END > > The error shown is: > > [2] Cannot load class 'Pointer[]': > Unable to load class file. > FMap.?.0 > > I've attached a capture of it. > Using Gambas 2.9, and deployed Ubuntu .deb package. > > Any hints? > > Best regards > > Jes?s You are not very clear: on which system do you get the error. Which version of Gambas is installed on this system? -- Beno?t From gambas at ...1... Mon Mar 9 16:13:05 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Mon, 9 Mar 2009 16:13:05 +0100 Subject: [Gambas-user] GTK problems In-Reply-To: <1236564851.18225.12.camel@...2011...> References: <200903090836.54557.rterry@...1946...> <1236564851.18225.12.camel@...2011...> Message-ID: <200903091613.05527.gambas@...1...> > Hi all, > > I am developing a student management system. Up till now I have been > using QT. But in reading the licensing decided I need to switch to GTK > components. But I have found the following problems. > > 1. Scaling and item placing will change when the form is scaled and when > it is not scaled it appears a little different than in the development > environment. (changing the form not to scale to size helps but the > appearance is different) > > 2. When controls are disabled they do not retain their background > colour. Regardless of weather the background is set or not. > > 3. Controls do not inherit the parents background and foreground font > etc correctly. ( need to set each control manually) > > 4. Menu items do not work when form is loaded in a workspace. > > Any help to work around these problems would be appreciated. > > > Steven > Which version of Gambas do you use? -- Beno?t From gambas at ...1... Mon Mar 9 16:15:14 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Mon, 9 Mar 2009 16:15:14 +0100 Subject: [Gambas-user] Global Error Handing In-Reply-To: <200903090836.54557.rterry@...1946...> References: <200903090836.54557.rterry@...1946...> Message-ID: <200903091615.14991.gambas@...1...> > Question: > > Does gambas have any mechanism for global error handling -e.g error rigging > an entire project including all subroutines with a master error handler, > which would catch all un-handled fatal errors, and do something like pop up > a dialog box with options for user to type in what they were doing, write > to log file, email the developer? > > If not, how are other people handling this - I know there is the CATCH > statement. > > If not, are there any plans to do this. > > Regards > > Richard > The mechanism exist internally - i.e. you can write a global error handler for uncatched errors in a C/C++ component. But you cannot do that in Gambas. Apparently it could be a good feature to implement, but I'm not sure there is no logical problems. For example, what to do if there is an error during the global error event handler? -- Beno?t From mohareve at ...626... Mon Mar 9 16:19:14 2009 From: mohareve at ...626... (M. Cs.) Date: Mon, 9 Mar 2009 16:19:14 +0100 Subject: [Gambas-user] How to write a multilingual application In-Reply-To: <39705.81.245.220.223.1236591215.squirrel@...1810...> References: <39705.81.245.220.223.1236591215.squirrel@...1810...> Message-ID: Once more, if I understood you correctly: 1.) If I make translations into different languages, during the compilation time it will pack them all into .RPM or .DEB or source package, and when installed, it will use the system language if available, or the English. Is it correct? 2). I can use a command System.Language="hu_HU" to switch to the Hungarian, then in another line System.Language="en_EN" to get back the English? Am I right? Csaba From gambas at ...1... Mon Mar 9 16:21:28 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Mon, 9 Mar 2009 16:21:28 +0100 Subject: [Gambas-user] How to write a multilingual application In-Reply-To: References: <39705.81.245.220.223.1236591215.squirrel@...1810...> Message-ID: <200903091621.28715.gambas@...1...> > Once more, if I understood you correctly: > 1.) If I make translations into different languages, during the compilation > time it will pack them all into .RPM or .DEB or source package, and when > installed, it will use the system language if available, or the English. Is > it correct? > > 2). I can use a command System.Language="hu_HU" to switch to the Hungarian, > then in another line System.Language="en_EN" to get back the English? > > Am I right? > Csaba Yes! -- Beno?t From mohareve at ...626... Mon Mar 9 16:44:06 2009 From: mohareve at ...626... (M. Cs.) Date: Mon, 9 Mar 2009 16:44:06 +0100 Subject: [Gambas-user] How to write a multilingual application In-Reply-To: <200903091621.28715.gambas@...1...> References: <39705.81.245.220.223.1236591215.squirrel@...1810...> <200903091621.28715.gambas@...1...> Message-ID: Thank you! I have one more question: Is it possible to list all available languages (translations) through a Gambas command? How? I would plainly do the translations, create the package, but after that at first run ask the user to choose between available languages...How could I get the list to offer them? Csaba From gambas at ...1... Mon Mar 9 16:45:25 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Mon, 9 Mar 2009 16:45:25 +0100 Subject: [Gambas-user] How to write a multilingual application In-Reply-To: References: <200903091621.28715.gambas@...1...> Message-ID: <200903091645.26001.gambas@...1...> > Thank you! > I have one more question: Is it possible to list all available languages > (translations) through a Gambas command? How? > I would plainly do the translations, create the package, but after that at > first run ask the user to choose between available languages...How could I > get the list to offer them? > Csaba At the moment the only way is Dir(".lang") to get the list of all translation files stored in the executable. Regards, -- Beno?t From jguardon at ...2035... Mon Mar 9 17:44:19 2009 From: jguardon at ...2035... (Jesus Guardon) Date: Mon, 09 Mar 2009 17:44:19 +0100 Subject: [Gambas-user] Pointer[] error in Ubuntu 8.04 In-Reply-To: <200903091612.26379.gambas@...1...> References: <49B27190.2060203@...2035...> <200903091612.26379.gambas@...1...> Message-ID: <49B54763.9040904@...2035...> Sorry if I was unclear. I have released an Ubuntu package of my own application in my development machine running Ubuntu 8.10 and Gambas 2.9. No problems at all, so far on this configuration. Later, I've installed such .deb package into a *clean* Ubuntu 8.04, which complains about pointer[] class. All dependencies are satisfied correctly, but when I call this method, my program crashes with the explained message. Note this PC has not Gambas2 IDE installed nor any component, previously to install my own package. Also this behavior is the same with all users who has 8.04 (3 different users at least has reported to me this error). Hope this clarify my question (sorry for my messy English, lol) Thanks Jes?s Beno?t Minisini escribi?: >> Hi all >> >> Since I'm testing my application in several distributions, I've noticed >> a bug? with pointer class in Ubuntu 8.04 only. >> >> This is related to embedder, so it's better to show my code based on the >> example provided by Gambas. Note that the example doesn't work, too. >> >> PUBLIC SUB Form_Open() >> >> DIM sTitle AS String >> DIM aHandle AS NEW Pointer[] >> DIM iHandle AS Integer >> >> sTitle = "DX Map" 'this is a xplanet window >> ME.Title = sTitle >> WHILE aHandle.Count < 1 >> >> aHandle = Desktop.find(Trim(sTitle)) >> >> WAIT 0.1 >> WEND >> iHandle = aHandle[0] >> TRY Embedder1.Embed(iHandle) >> FMain.Controls["btnMap"].Enabled = FALSE >> >> loadSettings() >> >> END >> >> The error shown is: >> >> [2] Cannot load class 'Pointer[]': >> Unable to load class file. >> FMap.?.0 >> >> I've attached a capture of it. >> Using Gambas 2.9, and deployed Ubuntu .deb package. >> >> Any hints? >> >> Best regards >> >> Jes?s > > You are not very clear: on which system do you get the error. Which version of > Gambas is installed on this system? > From wspinto at ...1405... Mon Mar 9 18:53:52 2009 From: wspinto at ...1405... (Wellington de Souza Pinto) Date: Mon, 09 Mar 2009 14:53:52 -0300 Subject: [Gambas-user] Gambas and FluxBox In-Reply-To: References: Message-ID: <1236621232.49b557b0e73cf@...1825...> Hi every one! I'm using gambas3 svn version with linux kubuntu and fluxbox window manager. The captions bar of forms without captions bar (border = none), not work. Continue with captions bar. The ballons class show with caption bar in fluxbox. Any idea about this problem? Reguards, Wellington PS: My english is not very well. ___________________________________________________________________________________ Para fazer uma liga??o DDD pra perto ou pra longe, faz um 21. A Embratel tem tarifas muito baratas esperando por voc?. Aproveite! From mohareve at ...626... Mon Mar 9 22:12:12 2009 From: mohareve at ...626... (M. Cs.) Date: Mon, 9 Mar 2009 22:12:12 +0100 Subject: [Gambas-user] How to pause the execution Message-ID: O.K. There's another problem: I have a FMain form, with all the program codes. I would like to insert a temporary form into _new() subrutine, which is not a child form of FMain. I can create the form, with a combo box and a button, and I want to pause the execution of the program in FMain until the button is pressed inside the temporary form. How to do that? From dosida at ...626... Mon Mar 9 22:42:39 2009 From: dosida at ...626... (Dimitris Anogiatis) Date: Mon, 9 Mar 2009 15:42:39 -0600 Subject: [Gambas-user] How to pause the execution In-Reply-To: References: Message-ID: <82bffccf0903091442w6aa195cbuef3295912a83313f@...627...> Off the top of my head (although I could be totally wrong) I would say you could show the temporary form as a modal form. It's the same as showing a dialog box and waiting for the ok or cancel buttons to be pressed. Dimitris On Mon, Mar 9, 2009 at 3:12 PM, M. Cs. wrote: > O.K. There's another problem: > > I have a FMain form, with all the program codes. I would like to insert a > temporary form into _new() subrutine, which is not a child form of FMain. > I can create the form, with a combo box and a button, and I want to pause > the execution of the program in FMain until the button is pressed inside > the > temporary form. How to do that? > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, > CA > -OSBC tackles the biggest issue in open source: Open Sourcing the > Enterprise > -Strategies to boost innovation and cut costs with open source > participation > -Receive a $600 discount off the registration fee with the source code: > SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From lars at ...2100... Mon Mar 9 23:09:35 2009 From: lars at ...2100... (Lars Vogdt) Date: Mon, 09 Mar 2009 23:09:35 +0100 Subject: [Gambas-user] Missing gambas2-gb-settings in OpenSuse In-Reply-To: <49A70C5C.4060509@...2035...> References: <49A70C5C.4060509@...2035...> Message-ID: <49B5939F.3080100@...2100...> Hi Jesus Guardon schrieb: > All dependencies are found, except gambas2-gb-settings. I've browsed > repositories manually and also had no luck. > > Even if I install the whole Gambas IDE into OpenSuSe, debugging the > application or making an executable runs fine, but creating a RPM > package and trying to install it, gives the same error. > > Am I missing something, or is there a reason for so? I can see gb.settings-components in the gambas2-runtime package. Is this what you want/need? With kind regards, Lars From jguardon at ...2035... Mon Mar 9 23:42:01 2009 From: jguardon at ...2035... (Jesus Guardon) Date: Mon, 09 Mar 2009 23:42:01 +0100 Subject: [Gambas-user] Missing gambas2-gb-settings in OpenSuse In-Reply-To: <49B5939F.3080100@...2100...> References: <49A70C5C.4060509@...2035...> <49B5939F.3080100@...2100...> Message-ID: <49B59B39.2030706@...2035...> I am not a SuSe user, but Ubuntu one. When I create an OpenSuSE RPM package which uses this class, gambas2-gb-settings appears as a required dependency/component. I don't know if for some reason it was included into gambas2-runtime, but trying to install this RPM (in a VM OpenSuSe 11.1) fires a dependency error about missing 'gambas2-gb-settings', so it is unable to install. Is gambas2-gb-settings embedded into gambas2-runtime? I don't think so..., at least in Debian/Ubuntu packages. As Beno?t said, there is not reason for so. Please, correct me if I'm wrong. Regards Jesus Lars Vogdt escribi?: > Hi > > Jesus Guardon schrieb: >> All dependencies are found, except gambas2-gb-settings. I've browsed >> repositories manually and also had no luck. >> >> Even if I install the whole Gambas IDE into OpenSuSe, debugging the >> application or making an executable runs fine, but creating a RPM >> package and trying to install it, gives the same error. >> >> Am I missing something, or is there a reason for so? > > I can see gb.settings-components in the gambas2-runtime package. Is this > what you want/need? > > With kind regards, > Lars > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA > -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise > -Strategies to boost innovation and cut costs with open source participation > -Receive a $600 discount off the registration fee with the source code: SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From steven at ...2097... Tue Mar 10 01:28:38 2009 From: steven at ...2097... (Steven Drinnan) Date: Tue, 10 Mar 2009 08:28:38 +0800 Subject: [Gambas-user] GTK problems In-Reply-To: <200903091613.05527.gambas@...1...> References: <200903090836.54557.rterry@...1946...> <1236564851.18225.12.camel@...2011...> <200903091613.05527.gambas@...1...> Message-ID: <1236644918.12652.2.camel@...2011...> I use 2.11 from the fedora repos. On Mon, 2009-03-09 at 16:13 +0100, Beno?t Minisini wrote: > > Hi all, > > > > I am developing a student management system. Up till now I have been > > using QT. But in reading the licensing decided I need to switch to GTK > > components. But I have found the following problems. > > > > 1. Scaling and item placing will change when the form is scaled and when > > it is not scaled it appears a little different than in the development > > environment. (changing the form not to scale to size helps but the > > appearance is different) > > > > 2. When controls are disabled they do not retain their background > > colour. Regardless of weather the background is set or not. > > > > 3. Controls do not inherit the parents background and foreground font > > etc correctly. ( need to set each control manually) > > > > 4. Menu items do not work when form is loaded in a workspace. > > > > Any help to work around these problems would be appreciated. > > > > > > Steven > > > > Which version of Gambas do you use? > From rterry at ...1946... Tue Mar 10 02:48:37 2009 From: rterry at ...1946... (richard terry) Date: Tue, 10 Mar 2009 12:48:37 +1100 Subject: [Gambas-user] Menu and toobutton question Message-ID: <200903101248.37897.rterry@...1946...> I think I've missed this, but can if one uses the same group name in a menu and for the toolbuttons, and the same tag in both, can you just use the group_click event to execute the same code? Regards Richard From rterry at ...1946... Tue Mar 10 04:43:16 2009 From: rterry at ...1946... (richard terry) Date: Tue, 10 Mar 2009 14:43:16 +1100 Subject: [Gambas-user] Centering a dialog on a parent Message-ID: <200903101443.16889.rterry@...1946...> Is this possible to change:. If the main form is 'off centre' of the screen, the dialog itself pops up in the centre of the screen, instead of the centre of the parent. regards richard From jshackney at ...626... Tue Mar 10 16:57:39 2009 From: jshackney at ...626... (Jason Hackney) Date: Tue, 10 Mar 2009 11:57:39 -0400 Subject: [Gambas-user] HTML in Text Label Message-ID: <799be1690903100857p53b21be6rafec024ce6500d98@...627...> I'm trying to insert some basic HTML into a text label and from the docs, "
" should work, but it displays the text
. Meanwhile , , etc. seems to work well. Also, TextLabel1.alignment = 3 has the result I want. Am I missing something? Jason From nando_f at ...951... Tue Mar 10 18:31:54 2009 From: nando_f at ...951... (nando) Date: Tue, 10 Mar 2009 12:31:54 -0500 Subject: [Gambas-user] Global Error Handing In-Reply-To: <200903091615.14991.gambas@...1...> References: <200903090836.54557.rterry@...1946...> <200903091615.14991.gambas@...1...> Message-ID: <20090310172106.M61825@...951...> Benoit, I was thinking about the same thing. What is there was a method: _error (the brother to _new) If present in a class, a class error falls into it as a default handler Any error here most-liekly will implement Try/Catch by the programmer but _error will not catch itself: an internal flag set the first time _error runs, if it attempted to catch itself would notice the flag set, return, and the immediately notice it returned with an error, thus returning, exiting the class. -Nando ---------- Original Message ----------- From: Beno?t Minisini To: richard terry , mailing list for gambas users Sent: Mon, 9 Mar 2009 16:15:14 +0100 Subject: Re: [Gambas-user] Global Error Handing > > Question: > > > > Does gambas have any mechanism for global error handling -e.g error rigging > > an entire project including all subroutines with a master error handler, > > which would catch all un-handled fatal errors, and do something like pop up > > a dialog box with options for user to type in what they were doing, write > > to log file, email the developer? > > > > If not, how are other people handling this - I know there is the CATCH > > statement. > > > > If not, are there any plans to do this. > > > > Regards > > > > Richard > > > > The mechanism exist internally - i.e. you can write a global error handler for > uncatched errors in a C/C++ component. > > But you cannot do that in Gambas. > > Apparently it could be a good feature to implement, but I'm not sure there is > no logical problems. For example, what to do if there is an error during the > global error event handler? > > -- > Beno?t > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA > -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise > -Strategies to boost innovation and cut costs with open source participation > -Receive a $600 discount off the registration fee with the source code: SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From david_villalobos_c at ...43... Tue Mar 10 20:44:07 2009 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Tue, 10 Mar 2009 12:44:07 -0700 (PDT) Subject: [Gambas-user] Help using gb.pcre Message-ID: <556166.69428.qm@...1782...> Hi, I need to match some regular expresions, I think I can use Gambas to do it, in the documentation says somethig like this: (?i)\b[a-z0-9._%\-]+@[a-z0-9._%\-]+\.[A-Z]{2,4}\b But how can I use it, any idea? Any help need thanks. Regards -- David From mohareve at ...626... Tue Mar 10 21:43:25 2009 From: mohareve at ...626... (M. Cs.) Date: Tue, 10 Mar 2009 21:43:25 +0100 Subject: [Gambas-user] How to write a multilingual application In-Reply-To: <200903091645.26001.gambas@...1...> References: <200903091621.28715.gambas@...1...> <200903091645.26001.gambas@...1...> Message-ID: Dear Benoit, unfortunatelly that doesn't work with the created package! During the development and test-run I could retrieve the list of translations with Dir(".lang"), but not with the installed program. I need another method to enable forced language switching with the installed package. Could you help me? In theory I would like to have an installed program, which would "know" the list of available languages, and let the user choose between them. Thanks! From sourceforge-raindog2 at ...94... Tue Mar 10 21:53:08 2009 From: sourceforge-raindog2 at ...94... (Rob) Date: Tue, 10 Mar 2009 16:53:08 -0400 Subject: [Gambas-user] Help using gb.pcre In-Reply-To: <556166.69428.qm@...1782...> References: <556166.69428.qm@...1782...> Message-ID: <200903101653.09367.sourceforge-raindog2@...94...> On Tuesday 10 March 2009 15:44, David Villalobos Cambronero wrote: > Hi, I need to match some regular expresions, I think I can use Gambas to > do it, in the documentation says somethig like this: > (?i)\b[a-z0-9._%\-]+@[a-z0-9._%\-]+\.[A-Z]{2,4}\b > But how can I use it, any idea? That regular expression is meant to extract a valid email address. (It may not be a working email address, but it should at least be legal.) One thing I should probably make clearer in the documentation is that due to the way Gambas uses character constants like \n, you need to double up on backslashes when you're specifying a regular expression as a constant. So if the user is entering it or you're reading it from a file, it might be a\s+(b\S+) but if you're hardcoding it into your program it needs to be "a\\s+(b\\S+)". Here is a Gambas script to demonstrate (just tried it in my own console and it runs in 2.9, but watch out for my email client's word wrap.) USE "gb.pcre" DIM myemail AS String DIM validemail AS String DIM re AS RegExp myemail = "foo at ...2101..." re = new RegExp(myemail, "(?i)\\b[a-z0-9\\._%\\-]+@[a-z0-9._%\\-]+\\.[A-Z] {2,4}\\b") validemail = re.Text if not validemail then print myemail & " is not a legal email address.\n" else print myemail & "\n" end if Rob From jguardon at ...2035... Tue Mar 10 22:10:02 2009 From: jguardon at ...2035... (Jesus Guardon) Date: Tue, 10 Mar 2009 22:10:02 +0100 Subject: [Gambas-user] Help using gb.pcre In-Reply-To: <556166.69428.qm@...1782...> References: <556166.69428.qm@...1782...> Message-ID: <49B6D72A.6010901@...2035...> Hi David This is what I did: PUBLIC FUNCTION chkEmail(sEmail AS String) AS Boolean DIM bMail AS Boolean DIM regx as Regexp IF sEmail THEN regx = NEW Regexp(sEmail,"(?i)\b[a-z0-9._%\-]+@[a-z0-9._%\-]+\.[A-Z]{2,4}\b") IF regx.Text THEN 'DEBUG regx.Text bMail = TRUE ELSE bMail = FALSE ENDIF ENDIF RETURN bMail END I your text matches, it will return true. Sorry for ugly indentation due to plain text formatting email. Jesus David Villalobos Cambronero escribi?: > Hi, I need to match some regular expresions, I think I can use Gambas to do it, in the documentation says somethig like this: > > > (?i)\b[a-z0-9._%\-]+@[a-z0-9._%\-]+\.[A-Z]{2,4}\b > > > But how can I use it, any idea? > > Any help need thanks. > Regards > > > -- > David > > > > > > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From david_villalobos_c at ...43... Tue Mar 10 22:50:38 2009 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Tue, 10 Mar 2009 14:50:38 -0700 (PDT) Subject: [Gambas-user] Help using gb.pcre References: <556166.69428.qm@...1782...> <200903101653.09367.sourceforge-raindog2@...94...> Message-ID: <380996.23482.qm@...1655...> Many thanks, maybe a little example in the wiki could help. Regards -- David ----- Original Message ---- From: Rob To: gambas-user at lists.sourceforge.net Sent: Tuesday, March 10, 2009 2:53:08 PM Subject: Re: [Gambas-user] Help using gb.pcre On Tuesday 10 March 2009 15:44, David Villalobos Cambronero w > Hi, I need to match some regular expresions, I think I can use Gambas to > do it, in the documentation says somethig like this: > (?i)\b[a-z0-9._%\-]+@[a-z0-9._%\-]+\.[A-Z]{2,4}\b > But how can I use it, any idea? That regular expression is meant to extract a valid email address. (It may not be a working email address, but it should at least be legal.) One thing I should probably make clearer in the documentation is that due to the way Gambas uses character constants like \n, you need to double up on backslashes when you're specifying a regular expression as a constant. So if the user is entering it or you're reading it from a file, it might be a\s+(b\S+) but if you're hardcoding it into your program it needs to be "a\\s+(b\\S+)". Here is a Gambas script to demonstrate (just tried it in my own console and it runs in 2.9, but watch out for my email client's word wrap.) USE "gb.pcre" DIM myemail AS String DIM validemail AS String DIM re AS RegExp myemail = "foo at ...2101..." re = new RegExp(myemail, "(?i)\\b[a-z0-9\\._%\\-]+@[a-z0-9._%\\-]+\\.[A-Z] {2,4}\\b") validemail = re.Text if not validemail then print myemail & " is not a legal email address.\n" else print myemail & "\n" end if Rob ------------------------------------------------------------------------------ Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-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... Tue Mar 10 22:51:42 2009 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Tue, 10 Mar 2009 14:51:42 -0700 (PDT) Subject: [Gambas-user] Help using gb.pcre References: <556166.69428.qm@...1782...> <49B6D72A.6010901@...2035...> Message-ID: <894791.31855.qm@...1782...> Thanks Jesus I really appreciate your help. Regards -- David ----- Original Message ---- From: Jesus Guardon To: mailing list for gambas users Sent: Tuesday, March 10, 2009 3:10:02 PM Subject: Re: [Gambas-user] Help using gb.pcre Hi David This is what I did: PUBLIC FUNCTION chkEmail(sEmail AS String) AS Boolean DIM bMail AS Boolean DIM regx as Regexp IF sEmail THEN regx = NEW Regexp(sEmail,"(?i)\b[a-z0-9._%\-]+@[a-z0-9._%\-]+\.[A-Z]{2,4}\b") IF regx.Text THEN 'DEBUG regx.Text bMail = TRUE ELSE bMail = FALSE ENDIF ENDIF RETURN bMail END I your text matches, it will return true. Sorry for ugly indentation due to plain text formatting email. Jesus David Villalobos Cambronero escribi?: > Hi, I need to match some regular expresions, I think I can use Gambas to do it, in the documentation says somethig like this: > > > (?i)\b[a-z0-9._%\-]+@[a-z0-9._%\-]+\.[A-Z]{2,4}\b > > > But how can I use it, any idea? > > Any help need thanks. > Regards > > > -- > David > > > > > > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > ------------------------------------------------------------------------------ Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Wed Mar 11 11:08:45 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Wed, 11 Mar 2009 11:08:45 +0100 Subject: [Gambas-user] Menu and toobutton question In-Reply-To: <200903101248.37897.rterry@...1946...> References: <200903101248.37897.rterry@...1946...> Message-ID: <200903111108.45978.gambas@...1...> > I think I've missed this, but can if one uses the same group name in a menu > and for the toolbuttons, and the same tag in both, can you just use the > group_click event to execute the same code? > > Regards > > Richard > Yes. Controls having the same "group name" (i.e. "event name") can have different types. -- Beno?t From gambas at ...1... Wed Mar 11 11:10:39 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Wed, 11 Mar 2009 11:10:39 +0100 Subject: [Gambas-user] How to write a multilingual application In-Reply-To: References: <200903091645.26001.gambas@...1...> Message-ID: <200903111110.40014.gambas@...1...> > Dear Benoit, > unfortunatelly that doesn't work with the created package! During the > development and test-run I could retrieve the list of translations with > Dir(".lang"), but not with the installed program. I need another method to > enable forced language switching with the installed package. Could you help > me? In theory I would like to have an installed program, which would "know" > the list of available languages, and let the user choose between them. > Thanks! Dir(".lang") should work at least in the most recent version of Gambas 2. There was a bug in older ones that prevented it from working as expected. Regards, -- Beno?t From gambas at ...1... Wed Mar 11 11:12:09 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Wed, 11 Mar 2009 11:12:09 +0100 Subject: [Gambas-user] Global Error Handing In-Reply-To: <20090310172106.M61825@...951...> References: <200903090836.54557.rterry@...1946...> <200903091615.14991.gambas@...1...> <20090310172106.M61825@...951...> Message-ID: <200903111112.09459.gambas@...1...> > Benoit, I was thinking about the same thing. > What is there was a method: _error (the brother to _new) > If present in a class, a class error falls into it as a default handler > Any error here most-liekly will implement Try/Catch by the programmer but > _error will not catch itself: an internal flag set the first time > _error runs, if it attempted to catch itself would notice > the flag set, return, and the immediately notice it returned > with an error, thus returning, exiting the class. > -Nando > The error handler has to be global, it cannot be specific to a class. And what for? -- Beno?t From wig at ...1809... Wed Mar 11 13:07:03 2009 From: wig at ...1809... (wig) Date: Wed, 11 Mar 2009 13:07:03 +0100 (CET) Subject: [Gambas-user] How to write a multilingual application In-Reply-To: References: <200903091621.28715.gambas@...1...> <200903091645.26001.gambas@...1...> Message-ID: <49370.81.245.53.34.1236773223.squirrel@...1810...> To "M. Cs": Before .lang... In older versions I read the languages by reading the .po files in de .lang directory: PUBLIC SUB ChooseLanguage() Dialog.Title = ("Choose a language file") Dialog.Path = Application.Path &/ ".lang" DEBUG Dialog.Path Dialog.Filter = ["*.po", "Language files", "*.mo", "Also Language files", "*.*", "All files"] IF Dialog.OpenFile() THEN RETURN ELSE txbxLanguage.Text = File.BaseName(Dialog.Path) ENDIF END I should change to Dir(".lang") now ... And I used MMain to start the application: PUBLIC SUB Main() IF Settings["General/Language"] <> "" TRY System.Language = Settings["General/Language"] ELSE Message.Info("No language set - see Tools, Preferences, General") ENDIF FMain.Show END Where FMain is the real Main screen, which has the right language setting from that moment on ... So you can change the language in the interface and it will be active for new windows, and completely active next program startup. Wig ------------------------------------------------- Dir(".lang") should work at least in the most recent version of Gambas 2. There was a bug in older ones that prevented it from working as expected. Regards, -- Beno?t > Dear Benoit, > unfortunatelly that doesn't work with the created package! During the > development and test-run I could retrieve the list of translations with > Dir(".lang"), but not with the installed program. I need another method to > enable forced language switching with the installed package. Could you > help > me? In theory I would like to have an installed program, which would > "know" > the list of available languages, and let the user choose between them. > Thanks! > > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From mohareve at ...626... Wed Mar 11 14:39:59 2009 From: mohareve at ...626... (M. Cs.) Date: Wed, 11 Mar 2009 14:39:59 +0100 Subject: [Gambas-user] How to write a multilingual application In-Reply-To: <49370.81.245.53.34.1236773223.squirrel@...1810...> References: <200903091621.28715.gambas@...1...> <200903091645.26001.gambas@...1...> <49370.81.245.53.34.1236773223.squirrel@...1810...> Message-ID: For instant language switching I found a better solution: System.Language=... FMain.Delete() FMain.Raise() This works fine. Still, even if I've updated it to version 2.11, which is the most recent version for Mandriva, I can't use this in the .rpm package. The installed version doesn't know what to do. The code, which works at testing but not as installed from an .rpm : PUBLIC SUB FirstRun() DIM trans AS String[] DIM i AS Integer DIM x AS String trans = Dir(".lang") FOR i = 0 TO trans.Length - 1 IF ((Len(trans[i]) = 5) AND (InStr(trans[i], ".mo") = 0)) THEN // *I need to clean the list from other files contained in the .lang folder* x = Mid$(trans[i], 1, 2) langBox.Add(x) ENDIF NEXT END PUBLIC SUB langBox_Click() DIM ezt AS String DIM what AS Integer ezt = langBox.Current.Text what = Message.Question("Do you really want to switch the language to " & Chr$(34) & ezt & Chr$(34) & " ?", "Yes", "No") IF what = 1 THEN System.Language = ezt & "_" & Upper$(ezt) FMain.Delete() FMain.Raise() ENDIF END I don't know why. maybe there aren't .lang folder in compiled package? Csaba From mohareve at ...626... Wed Mar 11 15:40:22 2009 From: mohareve at ...626... (M. Cs.) Date: Wed, 11 Mar 2009 15:40:22 +0100 Subject: [Gambas-user] How to write a multilingual application In-Reply-To: References: <200903091621.28715.gambas@...1...> <200903091645.26001.gambas@...1...> <49370.81.245.53.34.1236773223.squirrel@...1810...> Message-ID: I also cannot use the translations into language which locales aren't installed on the system. Is that O.K? Csaba From gambas at ...1... Wed Mar 11 17:20:38 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Wed, 11 Mar 2009 17:20:38 +0100 Subject: [Gambas-user] How to write a multilingual application In-Reply-To: References: Message-ID: <200903111720.38989.gambas@...1...> > I also cannot use the translations into language which locales aren't > installed on the system. Is that O.K? > Csaba Yes. The translation system is based on the standard defined by the GNU translation tools, and so you need to install the locale first before being able to use the translation. -- Beno?t From gambas at ...1... Wed Mar 11 19:10:57 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Wed, 11 Mar 2009 19:10:57 +0100 Subject: [Gambas-user] GTK problems In-Reply-To: <1236564851.18225.12.camel@...2011...> References: <200903090836.54557.rterry@...1946...> <1236564851.18225.12.camel@...2011...> Message-ID: <200903111910.57830.gambas@...1...> > Hi all, > > I am developing a student management system. Up till now I have been > using QT. But in reading the licensing decided I need to switch to GTK > components. But I have found the following problems. > > 1. Scaling and item placing will change when the form is scaled and when > it is not scaled it appears a little different than in the development > environment. (changing the form not to scale to size helps but the > appearance is different) The development environment uses QT. So running your project with GTK+ may displays forms differently. Forms are scaled by using Desktop.Scale, which is proportional to the default font height. Alas, QT and GTK+ do not return the same height for the same font family & size! If (Scaled) is not set, then control dimension use absolute pixel size, and so you should get the same control dimensions. If you don't, please provide some screenshot. > > 2. When controls are disabled they do not retain their background > colour. Regardless of weather the background is set or not. > I will fix that in a next release. > 3. Controls do not inherit the parents background and foreground font > etc correctly. ( need to set each control manually) Can you give me examples? > > 4. Menu items do not work when form is loaded in a workspace. Can you give more details, and (better) a project example that can show me the problem? Regards, -- Beno?t From mohareve at ...626... Wed Mar 11 21:19:24 2009 From: mohareve at ...626... (M. Cs.) Date: Wed, 11 Mar 2009 21:19:24 +0100 Subject: [Gambas-user] How to write a multilingual application In-Reply-To: <200903111720.38989.gambas@...1...> References: <200903111720.38989.gambas@...1...> Message-ID: Unfortunatelly, this doesn't work either: I've translated my program into Hungarian and Serbian, and did install locales and KDE support for Serbian, but the Serbian translation just doesn't load. Csaba From rterry at ...1946... Wed Mar 11 21:45:04 2009 From: rterry at ...1946... (richard terry) Date: Thu, 12 Mar 2009 07:45:04 +1100 Subject: [Gambas-user] HTML in Text Label In-Reply-To: <799be1690903100857p53b21be6rafec024ce6500d98@...627...> References: <799be1690903100857p53b21be6rafec024ce6500d98@...627...> Message-ID: <200903120745.04665.rterry@...1946...> On Wed, 11 Mar 2009 02:57:39 am Jason Hackney wrote: > I'm trying to insert some basic HTML into a text label and from the docs, > "
" should work, but it displays the text
align=center>. Meanwhile , , etc. seems to work well. Also, > TextLabel1.alignment = 3 has the result I want. Am I missing something? > > Jason > --------------------------------------------------------------------------- >--- _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user Jason I had a play with this last night. I ran open office. Created a html file. Wrote a few paragraphs including using the open office buttons to centre/bold/dot point. Put a couple of paragraphs in between, Cut and pasted the html into gambas and despite it being all open office html it all came out correctly on the text label. Hope that helps. Richard From steven at ...2097... Thu Mar 12 03:16:54 2009 From: steven at ...2097... (Steven Drinnan) Date: Thu, 12 Mar 2009 10:16:54 +0800 Subject: [Gambas-user] GTK problems In-Reply-To: <200903111910.57830.gambas@...1...> References: <200903090836.54557.rterry@...1946...> <1236564851.18225.12.camel@...2011...> <200903111910.57830.gambas@...1...> Message-ID: <1236824214.5310.4.camel@...2011...> Please find sample project. Revised symptoms, In workspases no menu present at all even though one has been set in IDE on that form. Controls do not inherit the parents font and colour settings. (not all controls) Tab strip for one Also I can not change the background AND foreground colours buttons chkboxes + prob others AS well. Back ground colour is not set in embedded forms in work space. Please feel free to ask for any other help or testing with this. Steven On Wed, 2009-03-11 at 19:10 +0100, Beno?t Minisini wrote: > > Hi all, > > > > I am developing a student management system. Up till now I have been > > using QT. But in reading the licensing decided I need to switch to GTK > > components. But I have found the following problems. > > > > 1. Scaling and item placing will change when the form is scaled and when > > it is not scaled it appears a little different than in the development > > environment. (changing the form not to scale to size helps but the > > appearance is different) > > The development environment uses QT. So running your project with GTK+ may > displays forms differently. > > Forms are scaled by using Desktop.Scale, which is proportional to the default > font height. Alas, QT and GTK+ do not return the same height for the same font > family & size! > > If (Scaled) is not set, then control dimension use absolute pixel size, and so > you should get the same control dimensions. If you don't, please provide some > screenshot. > > > > > 2. When controls are disabled they do not retain their background > > colour. Regardless of weather the background is set or not. > > > > I will fix that in a next release. > > > 3. Controls do not inherit the parents background and foreground font > > etc correctly. ( need to set each control manually) > > Can you give me examples? > > > > > 4. Menu items do not work when form is loaded in a workspace. > > Can you give more details, and (better) a project example that can show me the > problem? > > Regards, > -------------- next part -------------- A non-text attachment was scrubbed... Name: GTKExample.tar.gz Type: application/x-compressed-tar Size: 9817 bytes Desc: not available URL: From eilert-sprachen at ...221... Thu Mar 12 11:33:31 2009 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Thu, 12 Mar 2009 11:33:31 +0100 Subject: [Gambas-user] Isn't this a clear error? Message-ID: <49B8E4FB.3060608@...221...> When programming, I typed IF String.Left(1) = "?" THEN txt$ = "?.." instead of IF String.Left(txt$, 1) = "?" THEN txt$ = "?.." but Gambas2 didn't show a mistake - is String.left() possible at all, I mean without giving the string? The program ran through, it just did not react to the condition and so stayed out of the THEN branch. Rolf From jeff at ...2103... Thu Mar 12 14:46:05 2009 From: jeff at ...2103... (Jeff) Date: Thu, 12 Mar 2009 23:46:05 +1000 Subject: [Gambas-user] Combo box Message-ID: <1236865565.5984.28.camel@...2104...> Hi All, First post, so forgive me newbie-ness. If I use the add method to add rows to a combo box I specify an index: Eg: ComboBoxProjects.Add("ZZ", 0) ComboBoxProjects.Add("AA", 1) Then in a button click event I use the index property to get the selected row: PRINT ComboBoxProjects.Index This is fine until I set the sort property to true on the combo box. The order of the text changes but the index remains the same, so selecting the AA row gives me an index of 0, not 1 as expected. Any ideas? What am I doing wrong? I am using Gambas 2.7.1 on Ubuntu Ibex From eilert-sprachen at ...221... Thu Mar 12 16:22:59 2009 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Thu, 12 Mar 2009 16:22:59 +0100 Subject: [Gambas-user] Combo box In-Reply-To: <1236865565.5984.28.camel@...2104...> References: <1236865565.5984.28.camel@...2104...> Message-ID: <49B928D3.60207@...221...> Jeff schrieb: > Hi All, > First post, so forgive me newbie-ness. > > If I use the add method to add rows to a combo box I specify an index: > Eg: > ComboBoxProjects.Add("ZZ", 0) > ComboBoxProjects.Add("AA", 1) > > Then in a button click event I use the index property to get the > selected row: > > PRINT ComboBoxProjects.Index > > This is fine until I set the sort property to true on the combo box. The > order of the text changes but the index remains the same, so selecting > the AA row gives me an index of 0, not 1 as expected. > > Any ideas? What am I doing wrong? > > I am using Gambas 2.7.1 on Ubuntu Ibex > > Presumably not much wrong - as far as I know, there's no Tag property for each item in a ComboBox like e. g. in a TreeView. Such a tag could be used to overcome this drawback of sorting-and-confusing the list. In my projects I have been using two approaches to solve the problem: 1) Make a second array with the same contents, unsorted, and search for the item clicked on in the ComboBox. This will deliver proper results only when the items are unique. (You don't need to give an index if you sort it anyway.) ComboBoxProjects.Add("ZZ") Background.Add("ZZ") ComboBoxProjects.Add("AA") Background.Add("AA") ComboBoxProjects.Sort() ...when clicked: PRINT Background.Index(Background.Find(ComboBoxProjects.Current.Text)) (CAUTION: I didn't test this, it's written from memory...) 2) Don't sort the ComboBox list but feed it with a readily sorted and indexed list from you. Hope it helps... Rolf From jussi.lahtinen at ...626... Thu Mar 12 16:23:42 2009 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 12 Mar 2009 17:23:42 +0200 Subject: [Gambas-user] Isn't this a clear error? In-Reply-To: <49B8E4FB.3060608@...221...> References: <49B8E4FB.3060608@...221...> Message-ID: <384d3900903120823o23d3a049icadeb31cd236bd3@...627...> String.Left(String as String [, Length as Integer]) Length is optional, then the only argument, 1 is taken as string. So result is "1". Everything seems to be correct... although it is little confusing that number 1 is taken as string without "". Jussi On Thu, Mar 12, 2009 at 12:33 PM, Rolf-Werner Eilert wrote: > When programming, I typed > > IF String.Left(1) = "?" THEN txt$ = "?.." > > instead of > > IF String.Left(txt$, 1) = "?" THEN txt$ = "?.." > > but Gambas2 didn't show a mistake - is String.left() possible at > all, I mean without giving the string? The program ran through, it just > did not react to the condition and so stayed out of the THEN branch. > > Rolf > > ------------------------------------------------------------------------------ > Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are > powering Web 2.0 with engaging, cross-platform capabilities. Quickly and > easily build your RIAs with Flex Builder, the Eclipse(TM)based development > software that enables intelligent coding and step-through debugging. > Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Thu Mar 12 16:28:39 2009 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 12 Mar 2009 17:28:39 +0200 Subject: [Gambas-user] Isn't this a clear error? In-Reply-To: <384d3900903120823o23d3a049icadeb31cd236bd3@...627...> References: <49B8E4FB.3060608@...221...> <384d3900903120823o23d3a049icadeb31cd236bd3@...627...> Message-ID: <384d3900903120828n23c83f37xc164aaec1d08c2ad@...627...> Forgot to say... Taking arguments like in example you described can be useful too. Example; SomeObject = ThisCollection[IntegerVariable] You don't need to convert IntegerVariable to string before using it as key! Jussi On Thu, Mar 12, 2009 at 5:23 PM, Jussi Lahtinen wrote: > String.Left(String as String [, Length as Integer]) > > Length is optional, then the only argument, 1 is taken as string. > So result is "1". > Everything seems to be correct... although it is little confusing that > number 1 is taken as string without "". > > > Jussi > > > > On Thu, Mar 12, 2009 at 12:33 PM, Rolf-Werner Eilert > wrote: >> When programming, I typed >> >> IF String.Left(1) = "?" THEN txt$ = "?.." >> >> instead of >> >> IF String.Left(txt$, 1) = "?" THEN txt$ = "?.." >> >> but Gambas2 didn't show a mistake - is String.left() possible at >> all, I mean without giving the string? The program ran through, it just >> did not react to the condition and so stayed out of the THEN branch. >> >> Rolf >> >> ------------------------------------------------------------------------------ >> Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are >> powering Web 2.0 with engaging, cross-platform capabilities. Quickly and >> easily build your RIAs with Flex Builder, the Eclipse(TM)based development >> software that enables intelligent coding and step-through debugging. >> Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > From rterry at ...1946... Thu Mar 12 21:35:28 2009 From: rterry at ...1946... (richard terry) Date: Fri, 13 Mar 2009 07:35:28 +1100 Subject: [Gambas-user] Combo box In-Reply-To: <1236865565.5984.28.camel@...2104...> References: <1236865565.5984.28.camel@...2104...> Message-ID: <200903130735.28371.rterry@...1946...> On Fri, 13 Mar 2009 12:46:05 am Jeff wrote: > Hi All, > First post, so forgive me newbie-ness. > > If I use the add method to add rows to a combo box I specify an index: > Eg: > ComboBoxProjects.Add("ZZ", 0) > ComboBoxProjects.Add("AA", 1) > > Then in a button click event I use the index property to get the > selected row: > > PRINT ComboBoxProjects.Index > > This is fine until I set the sort property to true on the combo box. The > order of the text changes but the index remains the same, so selecting > the AA row gives me an index of 0, not 1 as expected. > > Any ideas? What am I doing wrong? No, I doubt it, this is the annoying thing about a combo box - it dosn't matter what you put in the index, gambas will label them 0-n I've struggled with the same problem as I wanted to use database keys as the indexes. perhaps we are both doing something wrong. richard > > I am using Gambas 2.7.1 on Ubuntu Ibex > > > > > --------------------------------------------------------------------------- >--- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are > powering Web 2.0 with engaging, cross-platform capabilities. Quickly and > easily build your RIAs with Flex Builder, the Eclipse(TM)based development > software that enables intelligent coding and step-through debugging. > Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From doriano.blengino at ...1909... Thu Mar 12 22:31:47 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Thu, 12 Mar 2009 22:31:47 +0100 Subject: [Gambas-user] Combo box In-Reply-To: <1236865565.5984.28.camel@...2104...> References: <1236865565.5984.28.camel@...2104...> Message-ID: <49B97F43.2020908@...1909...> Jeff ha scritto: > Hi All, > First post, so forgive me newbie-ness. > > If I use the add method to add rows to a combo box I specify an index: > Eg: > ComboBoxProjects.Add("ZZ", 0) > ComboBoxProjects.Add("AA", 1) > > Then in a button click event I use the index property to get the > selected row: > > PRINT ComboBoxProjects.Index > > This is fine until I set the sort property to true on the combo box. The > order of the text changes but the index remains the same, so selecting > the AA row gives me an index of 0, not 1 as expected. > I think there is nothing wrong... if you set the Sort property to true, you expect that items are sorted while you are adding them. So, no matter in which order/index you add them, "AA" will be 0 (the first), and "ZZ" will be 1 (the second). If this breaks your logic, then you must change the logic elsewhere; for example, if you add filenames to a such ordered combobox, then rely on ComboBoxProjects.Text instead of its index. If the underlying logic is more complicated, then sort things before adding them to the combobox (and don't use the combobox sorting). Or use an ancillary array, like Rolf-Werner suggested. In effect, the combobox logic should be to rely on its text (think at it as a "controlled" input box), not on its index. The fact it can be automatically ordered refers to its "text" items... Hope this could help you, best regards, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From jbskaggs at ...1871... Thu Mar 12 22:34:57 2009 From: jbskaggs at ...1871... (jbskaggs) Date: Thu, 12 Mar 2009 14:34:57 -0700 (PDT) Subject: [Gambas-user] Gambas and Aspell Message-ID: <22485767.post@...1379...> Could someone post me an example of using apsell with an textedit box? I asume I would save a tmp file run aspell and then reload the changed file. but when I try and call aspell from shell I get weird errors. Does anyone have experience running aspell from a shell? If so how do I pass on quotes properly? I assume that's the problem. JB -- View this message in context: http://www.nabble.com/Gambas-and-Aspell-tp22485767p22485767.html Sent from the gambas-user mailing list archive at Nabble.com. From rterry at ...1946... Thu Mar 12 23:00:54 2009 From: rterry at ...1946... (richard terry) Date: Fri, 13 Mar 2009 09:00:54 +1100 Subject: [Gambas-user] Gambas and Aspell In-Reply-To: <22485767.post@...1379...> References: <22485767.post@...1379...> Message-ID: <200903130900.55185.rterry@...1946...> On Fri, 13 Mar 2009 08:34:57 am jbskaggs wrote: > Could someone post me an example of using apsell with an textedit box? > > I asume I would save a tmp file run aspell and then reload the changed > file. > > but when I try and call aspell from shell I get weird errors. > > Does anyone have experience running aspell from a shell? If so how do I > pass on quotes properly? I assume that's the problem. > JB speak to max, I'm sure he won't mind, he did alot of work on this a while ago and is probably still on the list. Maximillian Von Kloisterheim It runs really well from a shell. At one stage I had it working in a text-edit control and popping up a list of mis-spelt words in a list box underneath the current line - Max gave me the code - but unfortunately I somehow lost my adapation of it to my great chagrin, but I will have to re-visit this in the next 12 months, so if you do figure it out can you email the list/me with your knowledge. Thanks Richard From bbruen at ...2090... Fri Mar 13 03:08:34 2009 From: bbruen at ...2090... (Bruce) Date: Fri, 13 Mar 2009 13:08:34 +1100 Subject: [Gambas-user] database updates with "&" in personname field Message-ID: <200903131308.34888.bbruen@...2090...> Hi guys, I am having a lot of trouble with this. I am trying to update a "temporary" table, say "tmp" in postgresql on a name matching basis using the gb.db.form databrowser control. Essentially I have a little app where the user opts to add a name or match a name. This app updates "tmp" setting flags based on the user's choice for a row. It works fine and dandy most of the time and I have even figured out how to successfully cope with the O'Sullivans and O'Briens. However, I am not winning at all when it comes to names like "Dick & Jane Smith". When the databrowser tries to update the row I get a busy cursor and the row update never completes. The composite name field is the primary key on the tmp table by the way. I can update the row using the gambas database manager (which OK is not using the databrowser). Also what is important here is that it is not the name field that is being updated, just the two boolean fields for add and match. Can anyone give me some pointers here? tia Bruce From rterry at ...1946... Fri Mar 13 03:55:25 2009 From: rterry at ...1946... (richard terry) Date: Fri, 13 Mar 2009 13:55:25 +1100 Subject: [Gambas-user] database updates with "&" in personname field In-Reply-To: <200903131308.34888.bbruen@...2090...> References: <200903131308.34888.bbruen@...2090...> Message-ID: <200903131355.25148.rterry@...1946...> On Fri, 13 Mar 2009 01:08:34 pm Bruce wrote: > Hi guys, > > I am having a lot of trouble with this. > > I am trying to update a "temporary" table, say "tmp" in postgresql on a > name matching basis using the gb.db.form databrowser control. Essentially > I have a little app where the user opts to add a name or match a name. > This app updates "tmp" setting flags based on the user's choice for a row. > > It works fine and dandy most of the time and I have even figured out how to > successfully cope with the O'Sullivans and O'Briens. However, I am not > winning at all when it comes to names like "Dick & Jane Smith". > When the databrowser tries to update the row I get a busy cursor and the > row update never completes. > The composite name field is the primary key on > the tmp table by the way. > > I can update the row using the gambas database manager (which OK is not > using the databrowser). Also what is important here is that it is not the > name field that is being updated, just the two boolean fields for add and > match. > > Can anyone give me some pointers here? Some code would help. I use postgres extensively - my base database with lookup tables/data/structure is about 100MB and I've 26 Schema's probably 100's of normalised tables/views and never have trouble. I don't however use the database manager as I found it wouldn't read my database properly, thowing up an error, so I do it all by hand. Logon, and post the queries in code. I don't use databound controls either, but load the data into whatever I want. Perhaps a hangover from my original Vb/access days when I didn't use the data controls. If you post you code as a min-project (save it on the menu and attatch it) plus a dump of your database structure from pgadmin (with options plain, no owner eg to a file mydb.sql I could have a look at what you are trying to do. Regards richard > > tia > Bruce > --------------------------------------------------------------------------- >--- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are > powering Web 2.0 with engaging, cross-platform capabilities. Quickly and > easily build your RIAs with Flex Builder, the Eclipse(TM)based development > software that enables intelligent coding and step-through debugging. > Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From bbruen at ...2090... Fri Mar 13 05:44:08 2009 From: bbruen at ...2090... (Bruce) Date: Fri, 13 Mar 2009 15:44:08 +1100 Subject: [Gambas-user] Who is putting advertising in my mail? Message-ID: <200903131544.09447.bbruen@...2090...> -- From bbruen at ...2090... Fri Mar 13 05:50:20 2009 From: bbruen at ...2090... (Bruce) Date: Fri, 13 Mar 2009 15:50:20 +1100 Subject: [Gambas-user] database updates with "&" in personname field In-Reply-To: <200903131355.25148.rterry@...1946...> References: <200903131308.34888.bbruen@...2090...> <200903131355.25148.rterry@...1946...> Message-ID: <200903131550.20564.bbruen@...2090...> On Friday 13 March 2009 13:55:25 richard terry wrote: > > Some code would help. > richard, That's the problem - there is no code. The update "just happens" when the row in the databrowser changes, i.e. the user clicks on another row in the gridview. I just can't seem to figure a way of trapping it before the update is sent to the server. xxx_Validate() doesn't help. My other comments re the database manager were just to indicate that 1) it is gambas not postgresql that is not behaving 2) it is possible somehow to get around this. regards bruce From bbruen at ...2090... Fri Mar 13 07:22:30 2009 From: bbruen at ...2090... (Bruce) Date: Fri, 13 Mar 2009 17:22:30 +1100 Subject: [Gambas-user] LET ME MAKE THIS VERY CLEAR Message-ID: <200903131722.30945.bbruen@...2090...> IN NO WAY DO I ENDORSE OR SUGGEST THAT ANYONE SHOULD CONSTRUE THAT I ENDORSE IN ANY WAY ANY ADVERTISEMENT APPEARING UNDER MY SIGNATURE. STEPS ARE BEING TAKEN. From gambas at ...1... Fri Mar 13 16:30:19 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Fri, 13 Mar 2009 16:30:19 +0100 Subject: [Gambas-user] Who is putting advertising in my mail? In-Reply-To: <200903131544.09447.bbruen@...2090...> References: <200903131544.09447.bbruen@...2090...> Message-ID: <200903131630.19447.gambas@...1...> Sourceforge. -- Beno?t From gambas.fr at ...626... Sat Mar 14 18:28:53 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 14 Mar 2009 18:28:53 +0100 Subject: [Gambas-user] Feature Request In-Reply-To: <200903090834.15303.rterry@...1946...> References: <200903090834.15303.rterry@...1946...> Message-ID: <6324a42a0903141028kb747a9dna7428d1709130fe8@...627...> a better thing will be a filter textbox... like kopete 2009/3/8 richard terry : > Benoit, > > Thanks for previous buttons for the pastes, are you going to amalgamate these > to a single button with drop down list as I suggested like in kmail? > > This would leave room for my next request. > > I've dozens of forms, too many to be able to see without scrolling up and > down. As my project is in constant development and I'm often testing one or > more forms, opening and closing tabs, there is no easy way to go back to > the 'master form', ie the main start up form. Having button on the toolbar > one could allocate to this main start up form would be wonderful. > > Regards > > Richard > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA > -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise > -Strategies to boost innovation and cut costs with open source participation > -Receive a $600 discount off the registration fee with the source code: SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From rterry at ...1946... Sun Mar 15 07:10:39 2009 From: rterry at ...1946... (richard terry) Date: Sun, 15 Mar 2009 17:10:39 +1100 Subject: [Gambas-user] Feature Request In-Reply-To: <6324a42a0903141028kb747a9dna7428d1709130fe8@...627...> References: <200903090834.15303.rterry@...1946...> <6324a42a0903141028kb747a9dna7428d1709130fe8@...627...> Message-ID: <200903151710.39503.rterry@...1946...> On Sun, 15 Mar 2009 04:28:53 am Fabien Bodard wrote: > a better thing will be a filter textbox... like kopete Problem with that Fabian, is it dosn't acheive what putting the buttons on the toolbar does - one click and you've got your choice - having a filter text box is probably worse than the already good option of select paste special, then click the option box on the pop up menu The only problem with the toolbuttons at the moment (as Benoit kindly put them up as an interim measure) is that they have text and are too wide. With a text box wouldn't you have to type in what you wanted - isn't this d more steps for the user? If Benoit would allow slightly large non-standard icons and someone with a modicum of graphic art skills, then something like these I've quickly knocked up in kicon_edit could be used. Regards Richard >>>> > 2009/3/8 richard terry : > > Benoit, > > > > Thanks for previous buttons for the pastes, are you going to amalgamate > > these to a single button with drop down list as I suggested like in > > kmail? > > > > This would leave room for my next request. > > > > I've dozens of forms, too many to be able to see without scrolling up and > > down. As my project is in constant development and I'm often testing one > > or more forms, opening and closing tabs, there is no easy way to go back > > to the 'master form', ie the main start up form. Having button on the > > toolbar one could allocate to this main start up form would be wonderful. > > > > Regards > > > > Richard > > > > ------------------------------------------------------------------------- > >----- Open Source Business Conference (OSBC), March 24-25, 2009, San > > Francisco, CA -OSBC tackles the biggest issue in open source: Open > > Sourcing the Enterprise -Strategies to boost innovation and cut costs > > with open source participation -Receive a $600 discount off the > > registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H > > _______________________________________________ > > 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: past_commented.png Type: image/png Size: 819 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: past_multi_line.png Type: image/png Size: 875 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: past_quoted.png Type: image/png Size: 847 bytes Desc: not available URL: From gambas at ...1... Sun Mar 15 11:33:10 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Sun, 15 Mar 2009 11:33:10 +0100 Subject: [Gambas-user] GTK problems In-Reply-To: <1236824214.5310.4.camel@...2011...> References: <200903090836.54557.rterry@...1946...> <200903111910.57830.gambas@...1...> <1236824214.5310.4.camel@...2011...> Message-ID: <200903151133.10727.gambas@...1...> > Please find sample project. > > Revised symptoms, > > In workspases no menu present at all even though one has been set in IDE > on that form. > > Controls do not inherit the parents font and colour settings. (not all > controls) Tab strip for one > > Also I can not change the background AND foreground colours buttons > chkboxes + prob others AS well. > > Back ground colour is not set in embedded forms in work space. > > Please feel free to ask for any other help or testing with this. > > Steven > Hi, All these bugs should have been fixed in revision #1903. If you can test it, please confirm that they are gone for you! Regards, -- Beno?t From jguardon at ...2035... Sun Mar 15 11:39:01 2009 From: jguardon at ...2035... (Jesus Guardon) Date: Sun, 15 Mar 2009 11:39:01 +0100 Subject: [Gambas-user] gridview count how many are selected In-Reply-To: <4247f5440902091009r23001067o2a246a33a93ccbbf@...627...> References: <4247f5440902091009r23001067o2a246a33a93ccbbf@...627...> Message-ID: <49BCDAC5.9070309@...2035...> I ask the same question, but with *gridview* (mode=multiple). I'm able to select rows by code but, is there a way to retrieve the selected rows? Thanks! Jes?s Joshua Higgins escribi?: > Hello, > > I'm using a columnview with the property Mode set to Multiple. What code do > I need to let me count how many are currently selected. I tried > > ColumnView1.Current.Count but that always prints 0. > > Thanks. > From jguardon at ...2035... Sun Mar 15 11:57:27 2009 From: jguardon at ...2035... (Jesus Guardon) Date: Sun, 15 Mar 2009 11:57:27 +0100 Subject: [Gambas-user] gridview count how many are selected In-Reply-To: <49BCDAC5.9070309@...2035...> References: <4247f5440902091009r23001067o2a246a33a93ccbbf@...627...> <49BCDAC5.9070309@...2035...> Message-ID: <49BCDF17.7060709@...2035...> Sorry, I answer myself. I've found a way to do this... PUBLIC SUB getSelectedRows() DIM i AS Integer DIM s AS String FOR i = 0 TO gv.Rows.Count - 1 IF gv.Rows[i].Selected = TRUE THEN s &= i & "," NEXT PRINT s END Starting from here, it may be easy to get an specific row data. Thanks anyway Jesus Jesus Guardon escribi?: > I ask the same question, but with *gridview* (mode=multiple). > I'm able to select rows by code but, is there a way to retrieve the > selected rows? > > Thanks! > > Jes?s From rterry at ...1946... Sun Mar 15 21:38:55 2009 From: rterry at ...1946... (richard terry) Date: Mon, 16 Mar 2009 07:38:55 +1100 Subject: [Gambas-user] Changing text on Tabstrip Message-ID: <200903160738.55957.rterry@...1946...> If one has say three tabs tab1 tab2 tab3 and the contents of Tab1 are showing. Is it possible to change the text on either tab2 or 3 without the display changing. If one does : tabstrip1.index = 2 and tabstrip1.text = "sometext" Then this has the same effect as a tabstrip1_click() event, and the 3rd tab becomes the active tab. Regards Richard From richard at ...2079... Sun Mar 15 22:38:15 2009 From: richard at ...2079... (Richard Gladman) Date: Sun, 15 Mar 2009 21:38:15 +0000 Subject: [Gambas-user] Changing text on Tabstrip In-Reply-To: <200903160738.55957.rterry@...1946...> References: <200903160738.55957.rterry@...1946...> Message-ID: <49BD7547.20408@...2079...> richard terry wrote: > If one has say three tabs > > tab1 tab2 tab3 > > and the contents of Tab1 are showing. > > Is it possible to change the text on either tab2 or 3 without the display > changing. > > If one does : tabstrip1.index = 2 and tabstrip1.text = "sometext" > > Then this has the same effect as a tabstrip1_click() event, and the 3rd tab > becomes the active tab. > > Regards > > Richard > > ------------------------------------------------------------------------------ > Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are > powering Web 2.0 with engaging, cross-platform capabilities. Quickly and > easily build your RIAs with Flex Builder, the Eclipse(TM)based development > software that enables intelligent coding and step-through debugging. > Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > Try this TabStrip1[1].Caption = "Test" -- Quantum materiae materietur marmota monax si marmota monax materiam possit materiari? (How much wood would a woodchuck chuck if a woodchuck could chuck wood?) Registered Linux User: #459086 From rterry at ...1946... Sun Mar 15 23:53:23 2009 From: rterry at ...1946... (richard terry) Date: Mon, 16 Mar 2009 09:53:23 +1100 Subject: [Gambas-user] Changing text on Tabstrip In-Reply-To: <49BD7547.20408@...2079...> References: <200903160738.55957.rterry@...1946...> <49BD7547.20408@...2079...> Message-ID: <200903160953.23778.rterry@...1946...> On Mon, 16 Mar 2009 08:38:15 am Richard Gladman wrote: > richard terry wrote: > > If one has say three tabs > > > > tab1 tab2 tab3 > > > > and the contents of Tab1 are showing. > > > > Is it possible to change the text on either tab2 or 3 without the display > > changing. > > > > If one does : tabstrip1.index = 2 and tabstrip1.text = "sometext" > > > > Then this has the same effect as a tabstrip1_click() event, and the 3rd > > tab becomes the active tab. > > > > Regards > > > > Richard > > > > ------------------------------------------------------------------------- > >----- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) > > are powering Web 2.0 with engaging, cross-platform capabilities. Quickly > > and easily build your RIAs with Flex Builder, the Eclipse(TM)based > > development software that enables intelligent coding and step-through > > debugging. Download the free 60 day trial. > > http://p.sf.net/sfu/www-adobe-com > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > Try this > > TabStrip1[1].Caption = "Test" Thanks, that works plus it dosn't trigger the tabstrip1_click() event which was a nuisance. I'll put this in my knowledge base! Richard From ron at ...1740... Mon Mar 16 14:52:37 2009 From: ron at ...1740... (Ron) Date: Mon, 16 Mar 2009 14:52:37 +0100 Subject: [Gambas-user] more than one array in a struct (gb.xml.rpc) Message-ID: <49BE59A5.8030502@...1740...> Hmm... hopefully someone can kick me in the right direction on this one: I have a struct (RpcStruct) and I want to insert multiple arrays (RpcArray) in it which are filled by a for each loop. (number of arrays is variable) If I clear the array each time at the end of the loop with .Clear() it removes the array data which is already added to the sList struct, so thats not what I want, anyone has an idea how to cope with this? Thanks a lot in advance. I'm running Gambas 2.11 Regards, Ron_2nd. DIM aTmpArray AS NEW RpcArray DIM sList AS NEW RpcStruct rResult = Main.hDB.Exec("SELECT * FROM devices") FOR EACH rResult aTmpArray.Add(rResult!name, XmlRpc.xString) aTmpArray.Add(rResult!value, XmlRpc.xString) aTmpArray.Add(rResult!label, XmlRpc.xString) sList.Add(rResult!name, aTmpArray, XmlRpc.xArray) ' aTmpArray.Clear() NEXT hXMLRPC.SetReply(sList) From steven at ...2097... Tue Mar 17 01:13:40 2009 From: steven at ...2097... (Steven Drinnan) Date: Tue, 17 Mar 2009 08:13:40 +0800 Subject: [Gambas-user] GTK problems In-Reply-To: <200903151133.10727.gambas@...1...> References: <200903090836.54557.rterry@...1946...> <200903111910.57830.gambas@...1...> <1236824214.5310.4.camel@...2011...> <200903151133.10727.gambas@...1...> Message-ID: <1237248820.4600.1.camel@...2011...> Will do may take awhile as I normally use RPM's and I am not sure if I have installed all the ness libs on my pc. On Sun, 2009-03-15 at 11:33 +0100, Beno?t Minisini wrote: > > Please find sample project. > > > > Revised symptoms, > > > > In workspases no menu present at all even though one has been set in IDE > > on that form. > > > > Controls do not inherit the parents font and colour settings. (not all > > controls) Tab strip for one > > > > Also I can not change the background AND foreground colours buttons > > chkboxes + prob others AS well. > > > > Back ground colour is not set in embedded forms in work space. > > > > Please feel free to ask for any other help or testing with this. > > > > Steven > > > > Hi, > > All these bugs should have been fixed in revision #1903. If you can test it, > please confirm that they are gone for you! > > Regards, > From rwatts32 at ...401... Wed Mar 18 04:48:55 2009 From: rwatts32 at ...401... (rwatts32 at ...401...) Date: Tue, 17 Mar 2009 23:48:55 -0400 Subject: [Gambas-user] Child Forms Message-ID: <20090318034856.99GJB.324732.root@...2107...> I am running version 2.11. I installed from source on my Ubuntu 8.10 computer. I have gone in and enables gb.qt and gb.qt.ext in the Components section under Project Properties. I do not see anywhere that shows a control for a workpace. What do I need to to to get child forms running? Your help is greatly appreciated. -Ricky P.S. I have read http://gambasdoc.org/help/comp/gb.form.mdi/workspace/add and http://gambasdoc.org/help/comp/gb.form.mdi/workspace but these just confise me even more. Can someone explain it simpler? From rterry at ...1946... Wed Mar 18 07:21:54 2009 From: rterry at ...1946... (richard terry) Date: Wed, 18 Mar 2009 17:21:54 +1100 Subject: [Gambas-user] Child Forms In-Reply-To: <20090318034856.99GJB.324732.root@...2107...> References: <20090318034856.99GJB.324732.root@...2107...> Message-ID: <200903181721.54999.rterry@...1946...> On Wed, 18 Mar 2009 02:48:55 pm rwatts32 at ...401... wrote: > I am running version 2.11. I installed from source on my Ubuntu 8.10 > computer. I have gone in and enables gb.qt and gb.qt.ext in the Components > section under Project Properties. I do not see anywhere that shows a > control for a workpace. What do I need to to to get child forms running? > Your help is greatly appreciated. This is off the top of my head, but if it dos'nt work mail me and I'll do a little mini-project for you. You add whatever control you want to your workspace: E.g You have a form called FMyForm with whatever on it that you want to put on the workspace. Run it and make sure it loads. ON the form with the workspace control called workspace1: dim MyForm as FMyform (the form you created and tested) Public sub form_open() MyForm = New FMyForm Workspace1.Add(MyForm) end Regards richard > > -Ricky > > P.S. I have read http://gambasdoc.org/help/comp/gb.form.mdi/workspace/add > and http://gambasdoc.org/help/comp/gb.form.mdi/workspace but these just > confise me even more. Can someone explain it simpler? > > --------------------------------------------------------------------------- >--- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are > powering Web 2.0 with engaging, cross-platform capabilities. Quickly and > easily build your RIAs with Flex Builder, the Eclipse(TM)based development > software that enables intelligent coding and step-through debugging. > Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From steven at ...2097... Wed Mar 18 07:47:07 2009 From: steven at ...2097... (Steven Drinnan) Date: Wed, 18 Mar 2009 14:47:07 +0800 Subject: [Gambas-user] Child Forms In-Reply-To: <20090318034856.99GJB.324732.root@...2107...> References: <20090318034856.99GJB.324732.root@...2107...> Message-ID: <1237358827.20731.10.camel@...2011...> You need to add another component. gb.form.mdi You will see the workspace control in your tool box now in the special tab. To populate it just use the add command like Dim myform as New ourForm myworkspace.Add(myform) Where myworkspace is the name of the control. See attached example. On Tue, 2009-03-17 at 23:48 -0400, rwatts32 at ...401... wrote: > I am running version 2.11. I installed from source on my Ubuntu 8.10 computer. I have gone in and enables gb.qt and gb.qt.ext in the Components section under Project Properties. I do not see anywhere that shows a control for a workpace. What do I need to to to get child forms running? Your help is greatly appreciated. > > -Ricky > > P.S. I have read http://gambasdoc.org/help/comp/gb.form.mdi/workspace/add and http://gambasdoc.org/help/comp/gb.form.mdi/workspace but these just confise me even more. Can someone explain it simpler? > > ------------------------------------------------------------------------------ > Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are > powering Web 2.0 with engaging, cross-platform capabilities. Quickly and > easily build your RIAs with Flex Builder, the Eclipse(TM)based development > software that enables intelligent coding and step-through debugging. > Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-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: mdiExample.tar.gz Type: application/x-compressed-tar Size: 8934 bytes Desc: not available URL: From rwatts32 at ...401... Wed Mar 18 10:56:06 2009 From: rwatts32 at ...401... (rwatts32 at ...401...) Date: Wed, 18 Mar 2009 5:56:06 -0400 Subject: [Gambas-user] Child Forms In-Reply-To: <200903181721.54999.rterry@...1946...> Message-ID: <20090318095606.V99LJ.330986.root@...2108...> I kind of had an epiphany a little bit ago and I went back and installed from source again. I get the message: THESE COMPONENTS ARE DISABLED: - gb.qte So obviously the workspace control won't show up for me. When I look through Synaptic it shows that libqt3-mt version 3:3.3.8 is installed. The instructions I followed are posted at http://gambasdoc.org/help/install/ubuntu?view. The only mention of qt is during sudo apt-get install libqt4-dev. How do I compile gq.qt and gb.qte? Thanks for the help. -Ricky ---- richard terry wrote: > On Wed, 18 Mar 2009 02:48:55 pm rwatts32 at ...401... wrote: > > I am running version 2.11. I installed from source on my Ubuntu 8.10 > > computer. I have gone in and enables gb.qt and gb.qt.ext in the Components > > section under Project Properties. I do not see anywhere that shows a > > control for a workpace. What do I need to to to get child forms running? > > Your help is greatly appreciated. > This is off the top of my head, but if it dos'nt work mail me and I'll do a > little mini-project for you. > > You add whatever control you want to your workspace: > > E.g You have a form called FMyForm with whatever on it that you want to put on > the workspace. Run it and make sure it loads. > > > > ON the form with the workspace control called workspace1: > > dim MyForm as FMyform (the form you created and tested) > > Public sub form_open() > MyForm = New FMyForm > Workspace1.Add(MyForm) > > end > > Regards > > richard > > > > > -Ricky > > > > P.S. I have read http://gambasdoc.org/help/comp/gb.form.mdi/workspace/add > > and http://gambasdoc.org/help/comp/gb.form.mdi/workspace but these just > > confise me even more. Can someone explain it simpler? > > > > --------------------------------------------------------------------------- > >--- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are > > powering Web 2.0 with engaging, cross-platform capabilities. Quickly and > > easily build your RIAs with Flex Builder, the Eclipse(TM)based development > > software that enables intelligent coding and step-through debugging. > > Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are > powering Web 2.0 with engaging, cross-platform capabilities. Quickly and > easily build your RIAs with Flex Builder, the Eclipse(TM)based development > software that enables intelligent coding and step-through debugging. > Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From Karl.Reinl at ...9... Wed Mar 18 11:52:05 2009 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Wed, 18 Mar 2009 11:52:05 +0100 Subject: [Gambas-user] Child Forms In-Reply-To: <20090318095606.V99LJ.330986.root@...2108...> References: <20090318095606.V99LJ.330986.root@...2108...> Message-ID: <1237373525.7128.2.camel@...40...> Am Mittwoch, den 18.03.2009, 05:56 -0400 schrieb rwatts32 at ...401...: > I kind of had an epiphany a little bit ago and I went back and installed from source again. I get the message: > > THESE COMPONENTS ARE DISABLED: > - gb.qte > > So obviously the workspace control won't show up for me. When I look through Synaptic it shows that libqt3-mt version 3:3.3.8 is installed. The instructions I followed are posted at http://gambasdoc.org/help/install/ubuntu?view. The only mention of qt is during sudo apt-get install libqt4-dev. How do I compile gq.qt and gb.qte? Thanks for the help. > > -Ricky Salut, not sure you need it ! As for gb.qte, this component needs the QT/Embedded libraries -- Amicalment Charlie From ron at ...1740... Wed Mar 18 12:08:54 2009 From: ron at ...1740... (Ron) Date: Wed, 18 Mar 2009 12:08:54 +0100 Subject: [Gambas-user] Child Forms In-Reply-To: <1237373525.7128.2.camel@...40...> References: <20090318095606.V99LJ.330986.root@...2108...> <1237373525.7128.2.camel@...40...> Message-ID: <49C0D646.4060402@...1740...> Charlie Reinl schreef: > Am Mittwoch, den 18.03.2009, 05:56 -0400 schrieb rwatts32 at ...401...: > >> I kind of had an epiphany a little bit ago and I went back and installed from source again. I get the message: >> >> THESE COMPONENTS ARE DISABLED: >> - gb.qte >> >> So obviously the workspace control won't show up for me. When I look through Synaptic it shows that libqt3-mt version 3:3.3.8 is installed. The instructions I followed are posted at http://gambasdoc.org/help/install/ubuntu?view. The only mention of qt is during sudo apt-get install libqt4-dev. How do I compile gq.qt and gb.qte? Thanks for the help. >> >> -Ricky >> > Salut, > > not sure you need it ! > > As for gb.qte, this component needs the QT/Embedded libraries > Didn't read the whole thread, but you need gb.form.mdi enabled as component in your project to be able use workspaces. http://gambasdoc.org/help/comp/gb.form.mdi/workspace Regards, Ron_2nd From rospolosco at ...152... Fri Mar 20 12:28:06 2009 From: rospolosco at ...152... (Stefano Palmeri) Date: Fri, 20 Mar 2009 12:28:06 +0100 Subject: [Gambas-user] 'su -c command' inside Gambas, how do I? Message-ID: <200903201228.06975.rospolosco@...152...> Hi, Benoit. Hi all. I've a little problem here. I can't feed the root password to a "su -c" process invocation. I've attached a little example. In a form there's a textbox. You type the root password, then you press 'Confirm' and you should be able to execute su -c 'cat /etc/sudoers'. But I can't. Any help appreciated. Thanks. Gambas 2.11.1 Slackware 12.2 Stefano -------------- next part -------------- A non-text attachment was scrubbed... Name: su-0.0.2.tar.gz Type: application/x-tgz Size: 7987 bytes Desc: not available URL: From doriano.blengino at ...1909... Fri Mar 20 12:41:48 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Fri, 20 Mar 2009 12:41:48 +0100 Subject: [Gambas-user] 'su -c command' inside Gambas, how do I? In-Reply-To: <200903201228.06975.rospolosco@...152...> References: <200903201228.06975.rospolosco@...152...> Message-ID: <49C380FC.3010707@...1909...> Stefano Palmeri ha scritto: > Hi, Benoit. Hi all. > > I've a little problem here. I can't feed the root password > to a "su -c" process invocation. I've attached a little example. > In a form there's a textbox. You type the root password, > then you press 'Confirm' and you should be able to execute > su -c 'cat /etc/sudoers'. But I can't. > Any help appreciated. Thanks. > Try using "FOR INPUT OUTPUT" instead of "FOR READ WRITE". There has been some time ago a discussion on this forum about this difference. READ+WRITE is buffered, while INPUT+OUTPUT is not; perhaps, what happens is that you write on process stdin, but data never reaches it because it waits to fill up its buffer. Using INPUT OUTPUT should not try to fill the buffer, but pass the data as soon as it arrives. See the docs for (few) more details. Regards, Doriano. From gambas at ...1... Fri Mar 20 12:48:10 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Fri, 20 Mar 2009 12:48:10 +0100 Subject: [Gambas-user] 'su -c command' inside Gambas, how do I? In-Reply-To: <49C380FC.3010707@...1909...> References: <200903201228.06975.rospolosco@...152...> <49C380FC.3010707@...1909...> Message-ID: <200903201248.10614.gambas@...1...> > Stefano Palmeri ha scritto: > > Hi, Benoit. Hi all. > > > > I've a little problem here. I can't feed the root password > > to a "su -c" process invocation. I've attached a little example. > > In a form there's a textbox. You type the root password, > > then you press 'Confirm' and you should be able to execute > > su -c 'cat /etc/sudoers'. But I can't. > > Any help appreciated. Thanks. > > Try using "FOR INPUT OUTPUT" instead of "FOR READ WRITE". > > There has been some time ago a discussion on this forum about this > difference. READ+WRITE is buffered, while INPUT+OUTPUT is not; perhaps, > what happens is that you write on process stdin, but data never reaches > it because it waits to fill up its buffer. Using INPUT OUTPUT should not > try to fill the buffer, but pass the data as soon as it arrives. > See the docs for (few) more details. > > Regards, > Doriano. > > This is explained in the documentation: for the SHELL and EXEC instructions, using INPUT/OUTPUT instead of READ/WRITE runs the process inside a unix virtual terminal, which is needed by commands that ask for a password. Regards, -- Beno?t From rospolosco at ...152... Fri Mar 20 13:16:13 2009 From: rospolosco at ...152... (Stefano Palmeri) Date: Fri, 20 Mar 2009 13:16:13 +0100 Subject: [Gambas-user] 'su -c command' inside Gambas, how do I? In-Reply-To: <200903201248.10614.gambas@...1...> References: <200903201228.06975.rospolosco@...152...> <49C380FC.3010707@...1909...> <200903201248.10614.gambas@...1...> Message-ID: <200903201316.13442.rospolosco@...152...> Il venerd? 20 marzo 2009 12:48:10 Beno?t Minisini ha scritto: > > Stefano Palmeri ha scritto: > > > Hi, Benoit. Hi all. > > > > > > I've a little problem here. I can't feed the root password > > > to a "su -c" process invocation. I've attached a little example. > > > In a form there's a textbox. You type the root password, > > > then you press 'Confirm' and you should be able to execute > > > su -c 'cat /etc/sudoers'. But I can't. > > > Any help appreciated. Thanks. > > > > Try using "FOR INPUT OUTPUT" instead of "FOR READ WRITE". > > > > There has been some time ago a discussion on this forum about this > > difference. READ+WRITE is buffered, while INPUT+OUTPUT is not; perhaps, > > what happens is that you write on process stdin, but data never reaches > > it because it waits to fill up its buffer. Using INPUT OUTPUT should not > > try to fill the buffer, but pass the data as soon as it arrives. > > See the docs for (few) more details. > > > > Regards, > > Doriano. > > This is explained in the documentation: for the SHELL and EXEC > instructions, using INPUT/OUTPUT instead of READ/WRITE runs the process > inside a unix virtual terminal, which is needed by commands that ask for a > password. > > Regards, Thanks Benoit, thanks Doriano (strictly a-z ordered :-) ). It works and I feel deeply stupid :-) , fortunately I'm not a professional programmer :-) Saluti, Stefano From ronstk at ...239... Fri Mar 20 17:18:34 2009 From: ronstk at ...239... (Ron_1st) Date: Fri, 20 Mar 2009 17:18:34 +0100 Subject: [Gambas-user] 'su -c command' inside Gambas, how do I? In-Reply-To: <200903201228.06975.rospolosco@...152...> References: <200903201228.06975.rospolosco@...152...> Message-ID: <200903201718.34432.ronstk@...239...> On Friday 20 March 2009, Stefano Palmeri wrote: > Hi, Benoit. Hi all. > > I've a little problem here. I can't feed the root password > to a "su -c" process invocation. I've attached a little example. > In a form there's a textbox. You type the root password, > then you press 'Confirm' and you should be able to execute > su -c 'cat /etc/sudoers'. But I can't. > Any help appreciated. Thanks. > > Gambas 2.11.1 > Slackware 12.2 > > Stefano > > > If you use KDE Desktop use 'kdesu -c 'cat /etc/sudoers' and for gnome there was/is 'gtksu -c 'cat /etc/sudoers' (SuSE) both should ask for the password of the guy that wants/need to do sudo on the command line. Best regards, Ron_1st From rospolosco at ...152... Fri Mar 20 17:37:46 2009 From: rospolosco at ...152... (Stefano Palmeri) Date: Fri, 20 Mar 2009 17:37:46 +0100 Subject: [Gambas-user] 'su -c command' inside Gambas, how do I? In-Reply-To: <200903201718.34432.ronstk@...239...> References: <200903201228.06975.rospolosco@...152...> <200903201718.34432.ronstk@...239...> Message-ID: <200903201737.46514.rospolosco@...152...> Il venerd? 20 marzo 2009 17:18:34 Ron_1st ha scritto: > On Friday 20 March 2009, Stefano Palmeri wrote: > > Hi, Benoit. Hi all. > > > > I've a little problem here. I can't feed the root password > > to a "su -c" process invocation. I've attached a little example. > > In a form there's a textbox. You type the root password, > > then you press 'Confirm' and you should be able to execute > > su -c 'cat /etc/sudoers'. But I can't. > > Any help appreciated. Thanks. > > > > Gambas 2.11.1 > > Slackware 12.2 > > > > Stefano > > If you use KDE Desktop use 'kdesu -c 'cat /etc/sudoers' > and for gnome there was/is 'gtksu -c 'cat /etc/sudoers' (SuSE) > > both should ask for the password of the guy that wants/need to do sudo > on the command line. > > > > Best regards, > > Ron_1st > Yes, Ron. I knew about kdesu or gtksu, but I wanted a pure Gambas solution, just like the one Benoit and Doriano explained. Thanks anyway. Saluti, Stefano > > --------------------------------------------------------------------------- >--- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are > powering Web 2.0 with engaging, cross-platform capabilities. Quickly and > easily build your RIAs with Flex Builder, the Eclipse(TM)based development > software that enables intelligent coding and step-through debugging. > Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From rterry at ...1946... Sat Mar 21 07:15:37 2009 From: rterry at ...1946... (richard terry) Date: Sat, 21 Mar 2009 17:15:37 +1100 Subject: [Gambas-user] pdf control suggestion Message-ID: <200903211715.37572.rterry@...1946...> I just noticed their is no selection tool as in say kpdf, don't know how hard that would be to put in, just a suggestion, as i went to use it in the pdf control I'd put into my program and noticed it wasn't there. Regards Richard From gambas at ...1... Sat Mar 21 12:19:52 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Sat, 21 Mar 2009 12:19:52 +0100 Subject: [Gambas-user] Release of Gambas 2.12 Message-ID: <200903211219.52242.gambas@...1...> Hi, Here is a new release of the stable version. This release fixes many bugs in the interpreter, the GTK+ component, the networking component, the PDF component, and the XML/RPC component. Here is the full changelog: --8<--------------------------------------------------------------------------- [CONFIGURATION] * NEW: Switch to 2.12 version. [DEVELOPMENT ENVIRONMENT] * BUG: Gambas version should be always displayed correctly in the about and welcome dialogs now. * NEW: Japanese translation updated. * NEW: Support for Malayalam language. * NEW: The toolbox now remembers if it is opened or closed. [INTERPRETER] * BUG: Fix two possible bugs in 64 bits support. * BUG: MOD works again with Long values. * BUG: Array.Clear() now does not crash anymore on multi-dimensional arrays. It just voids the array contents. Array.Clear() behaviour on single dimensional arrays did not change: it removes all elements from the array. [GB.DB.SQLITE2] * BUG: Fix a compilation warning. [GB.GTK] * BUG: Fix the container arrangement and the ClientX / ClientY properties. * BUG: GridView Row and Column properties can be set independently. * BUG: The TabStrip.Font property works as expected. * BUG: Image.Draw() now works correctly if X or Y are negative. * BUG: TextLabel.Adjust() now works as expected. * BUG: Dialog.SaveFile() now correctly initializes the file name in the file chooser dialog. * BUG: Disabled controls correctly honor the Background property. * BUG: The Foreground and Background properties of TabStrip, CheckBox, RadioButton and other Button controls work as expected. * BUG: Setting the Font property does not create a memory leak anymore. * BUG: The menu bar of a reparented window does not disappear anymore. * BUG: Fix the ComboBox.Add() method slowness. * BUG: Fix the corruption of the Text property in editable combo-boxes. * BUG: Fix again the Font property for non-control classes. [GB.NET] * BUG: UdpSocket.TargetPort returns the accurate value now. * BUG: Too many connections on a ServerSocket does not take 100% CPU anymore. [GB.PDF] * BUG: PdfDocument.HasIndex does not return TRUE anymore when there is an index whose length is null. * BUG: Fix PdfIndex.HasChildren that sometimes returned TRUE when there was no children. * BUG: Fix PdfIndex.MoveChild() accordingly. [GB.QT] * BUG: Borderless windows do not have a border anymore with Metacity. * BUG: The Window.Mask property works correctly now. * BUG: Draw.Image() and Draw.Picture() now work correctly on transparent pictures. * BUG: The minimum size of modal dialog is correctly set again. [GB.XML.RPC] * BUG: RpcStruct.Value() should work as expected now. * BUG: Event management was fixed, thanks to Ron. * BUG: RcpArray.Copy() now returns an RpcArray object. --8<--------------------------------------------------------------------------- Note that there is a little "bug" in the package: the version number and the package name is 2.12, and not 2.12.0. If it leads to any problem, I will make a 2.12.1 release. Enjoy it! -- Beno?t From linuxos at ...1896... Sat Mar 21 16:47:11 2009 From: linuxos at ...1896... (Olivier Cruilles) Date: Sat, 21 Mar 2009 16:47:11 +0100 Subject: [Gambas-user] Release of Gambas 2.12 In-Reply-To: <200903211219.52242.gambas@...1...> References: <200903211219.52242.gambas@...1...> Message-ID: <239840E8-D064-407C-AF14-CDC843BC69C4@...1896...> Great. It compiles and works fine. Olivier Cruilles Mail: linuxos at ...1896... Le 21 mars 09 ? 12:19, Beno?t Minisini a ?crit : > Hi, > > Here is a new release of the stable version. This release fixes many > bugs in > the interpreter, the GTK+ component, the networking component, the PDF > component, and the XML/RPC component. > > Here is the full changelog: > > --8 > < > --------------------------------------------------------------------------- > > [CONFIGURATION] > * NEW: Switch to 2.12 version. > > [DEVELOPMENT ENVIRONMENT] > * BUG: Gambas version should be always displayed correctly in the > about and > welcome dialogs now. > * NEW: Japanese translation updated. > * NEW: Support for Malayalam language. > * NEW: The toolbox now remembers if it is opened or closed. > > [INTERPRETER] > * BUG: Fix two possible bugs in 64 bits support. > * BUG: MOD works again with Long values. > * BUG: Array.Clear() now does not crash anymore on multi-dimensional > arrays. It just voids the array contents. Array.Clear() behaviour on > single dimensional arrays did not change: it removes all elements > from > the array. > > [GB.DB.SQLITE2] > * BUG: Fix a compilation warning. > > [GB.GTK] > * BUG: Fix the container arrangement and the ClientX / ClientY > properties. > * BUG: GridView Row and Column properties can be set independently. > * BUG: The TabStrip.Font property works as expected. > * BUG: Image.Draw() now works correctly if X or Y are negative. > * BUG: TextLabel.Adjust() now works as expected. > * BUG: Dialog.SaveFile() now correctly initializes the file name in > the > file chooser dialog. > * BUG: Disabled controls correctly honor the Background property. > * BUG: The Foreground and Background properties of TabStrip, CheckBox, > RadioButton and other Button controls work as expected. > * BUG: Setting the Font property does not create a memory leak > anymore. > * BUG: The menu bar of a reparented window does not disappear anymore. > * BUG: Fix the ComboBox.Add() method slowness. > * BUG: Fix the corruption of the Text property in editable combo- > boxes. > * BUG: Fix again the Font property for non-control classes. > > [GB.NET] > * BUG: UdpSocket.TargetPort returns the accurate value now. > * BUG: Too many connections on a ServerSocket does not take 100% CPU > anymore. > > [GB.PDF] > * BUG: PdfDocument.HasIndex does not return TRUE anymore when there > is an > index whose length is null. > * BUG: Fix PdfIndex.HasChildren that sometimes returned TRUE when > there was > no children. > * BUG: Fix PdfIndex.MoveChild() accordingly. > > [GB.QT] > * BUG: Borderless windows do not have a border anymore with Metacity. > * BUG: The Window.Mask property works correctly now. > * BUG: Draw.Image() and Draw.Picture() now work correctly on > transparent > pictures. > * BUG: The minimum size of modal dialog is correctly set again. > > [GB.XML.RPC] > * BUG: RpcStruct.Value() should work as expected now. > * BUG: Event management was fixed, thanks to Ron. > * BUG: RcpArray.Copy() now returns an RpcArray object. > > --8 > < > --------------------------------------------------------------------------- > > Note that there is a little "bug" in the package: the version number > and the > package name is 2.12, and not 2.12.0. If it leads to any problem, I > will make > a 2.12.1 release. > > Enjoy it! > > -- > Beno?t > > > ------------------------------------------------------------------------------ > Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) > are > powering Web 2.0 with engaging, cross-platform capabilities. Quickly > and > easily build your RIAs with Flex Builder, the Eclipse(TM)based > development > software that enables intelligent coding and step-through debugging. > Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From leonardo at ...1237... Sun Mar 22 16:12:12 2009 From: leonardo at ...1237... (Leonardo Miliani) Date: Sun, 22 Mar 2009 16:12:12 +0100 Subject: [Gambas-user] Release of Gambas 2.12 In-Reply-To: <200903211219.52242.gambas@...1...> References: <200903211219.52242.gambas@...1...> Message-ID: <49C6554C.1010506@...1237...> Beno?t Minisini ha scritto: > Hi, > > Here is a new release of the stable version. This release fixes many bugs in > the interpreter, the GTK+ component, the networking component, the PDF > component, and the XML/RPC component. > > Here is the full changelog: > > --8<--------------------------------------------------------------------------- > > [CONFIGURATION] > * NEW: Switch to 2.12 version. > > [DEVELOPMENT ENVIRONMENT] > * BUG: Gambas version should be always displayed correctly in the about and > welcome dialogs now. > * NEW: Japanese translation updated. > * NEW: Support for Malayalam language. > * NEW: The toolbox now remembers if it is opened or closed. > > [INTERPRETER] > * BUG: Fix two possible bugs in 64 bits support. > * BUG: MOD works again with Long values. > * BUG: Array.Clear() now does not crash anymore on multi-dimensional > arrays. It just voids the array contents. Array.Clear() behaviour on > single dimensional arrays did not change: it removes all elements from > the array. > > [GB.DB.SQLITE2] > * BUG: Fix a compilation warning. > > [GB.GTK] > * BUG: Fix the container arrangement and the ClientX / ClientY properties. > * BUG: GridView Row and Column properties can be set independently. > * BUG: The TabStrip.Font property works as expected. > * BUG: Image.Draw() now works correctly if X or Y are negative. > * BUG: TextLabel.Adjust() now works as expected. > * BUG: Dialog.SaveFile() now correctly initializes the file name in the > file chooser dialog. > * BUG: Disabled controls correctly honor the Background property. > * BUG: The Foreground and Background properties of TabStrip, CheckBox, > RadioButton and other Button controls work as expected. > * BUG: Setting the Font property does not create a memory leak anymore. > * BUG: The menu bar of a reparented window does not disappear anymore. > * BUG: Fix the ComboBox.Add() method slowness. > * BUG: Fix the corruption of the Text property in editable combo-boxes. > * BUG: Fix again the Font property for non-control classes. > > [GB.NET] > * BUG: UdpSocket.TargetPort returns the accurate value now. > * BUG: Too many connections on a ServerSocket does not take 100% CPU > anymore. > > [GB.PDF] > * BUG: PdfDocument.HasIndex does not return TRUE anymore when there is an > index whose length is null. > * BUG: Fix PdfIndex.HasChildren that sometimes returned TRUE when there was > no children. > * BUG: Fix PdfIndex.MoveChild() accordingly. > > [GB.QT] > * BUG: Borderless windows do not have a border anymore with Metacity. > * BUG: The Window.Mask property works correctly now. > * BUG: Draw.Image() and Draw.Picture() now work correctly on transparent > pictures. > * BUG: The minimum size of modal dialog is correctly set again. > > [GB.XML.RPC] > * BUG: RpcStruct.Value() should work as expected now. > * BUG: Event management was fixed, thanks to Ron. > * BUG: RcpArray.Copy() now returns an RpcArray object. > > --8<--------------------------------------------------------------------------- > > Note that there is a little "bug" in the package: the version number and the > package name is 2.12, and not 2.12.0. If it leads to any problem, I will make > a 2.12.1 release. > > Enjoy it! > I noticed 2 bugs: 1) the borderless windows with gb.qt on Gnome do work only if they are main windows. But form shown in Modal mode still continue to manifest borders. Try this: create a simply application with 2 forms, FMain and Form1. FMain is a normal window, for Form1 set the Border to None. Then, in the Form_Open() event of FMain put this code: ME.Visible = FALSE Form1.ShowModal and run the application. The Form1 window that will appear will still continue to show borders (of cource, only using gb.qt on Gnome: gb.gtk works properly). 2) The second bug is related to the IDE, and in particular to the Properties area. It seems that using the IDE, made with Qt, on a Gnome DM manifest errors of rendering. In the screenshot you can see that the comboboxes of the properties seem to exit out of the IDE border. But if I click on a different combobox, we can understand: the list of the properties are moved to the left because the combobox seem just to have fixed width. -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Scegli software opensource - Choose opensource software Co-fondatore di Gambas-it.org Il sito di riferimento della comunit? italiana degli utenti di Gambas www.gambas-it.org -------------- next part -------------- A non-text attachment was scrubbed... Name: screenshot.jpg Type: image/jpeg Size: 20858 bytes Desc: not available URL: From gambas at ...1... Sun Mar 22 18:21:18 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Sun, 22 Mar 2009 18:21:18 +0100 Subject: [Gambas-user] Release of Gambas 2.12 In-Reply-To: <49C6554C.1010506@...1237...> References: <200903211219.52242.gambas@...1...> <49C6554C.1010506@...1237...> Message-ID: <200903221821.18102.gambas@...1...> > Beno?t Minisini ha scritto: > > Hi, > > > > Here is a new release of the stable version. This release fixes many bugs > > in the interpreter, the GTK+ component, the networking component, the PDF > > component, and the XML/RPC component. > > > > Here is the full changelog: > > > > --8<--------------------------------------------------------------------- > >------ > > > > [CONFIGURATION] > > * NEW: Switch to 2.12 version. > > > > [DEVELOPMENT ENVIRONMENT] > > * BUG: Gambas version should be always displayed correctly in the about > > and welcome dialogs now. > > * NEW: Japanese translation updated. > > * NEW: Support for Malayalam language. > > * NEW: The toolbox now remembers if it is opened or closed. > > > > [INTERPRETER] > > * BUG: Fix two possible bugs in 64 bits support. > > * BUG: MOD works again with Long values. > > * BUG: Array.Clear() now does not crash anymore on multi-dimensional > > arrays. It just voids the array contents. Array.Clear() behaviour on > > single dimensional arrays did not change: it removes all elements from > > the array. > > > > [GB.DB.SQLITE2] > > * BUG: Fix a compilation warning. > > > > [GB.GTK] > > * BUG: Fix the container arrangement and the ClientX / ClientY > > properties. * BUG: GridView Row and Column properties can be set > > independently. * BUG: The TabStrip.Font property works as expected. > > * BUG: Image.Draw() now works correctly if X or Y are negative. > > * BUG: TextLabel.Adjust() now works as expected. > > * BUG: Dialog.SaveFile() now correctly initializes the file name in the > > file chooser dialog. > > * BUG: Disabled controls correctly honor the Background property. > > * BUG: The Foreground and Background properties of TabStrip, CheckBox, > > RadioButton and other Button controls work as expected. > > * BUG: Setting the Font property does not create a memory leak anymore. > > * BUG: The menu bar of a reparented window does not disappear anymore. > > * BUG: Fix the ComboBox.Add() method slowness. > > * BUG: Fix the corruption of the Text property in editable combo-boxes. > > * BUG: Fix again the Font property for non-control classes. > > > > [GB.NET] > > * BUG: UdpSocket.TargetPort returns the accurate value now. > > * BUG: Too many connections on a ServerSocket does not take 100% CPU > > anymore. > > > > [GB.PDF] > > * BUG: PdfDocument.HasIndex does not return TRUE anymore when there is an > > index whose length is null. > > * BUG: Fix PdfIndex.HasChildren that sometimes returned TRUE when there > > was no children. > > * BUG: Fix PdfIndex.MoveChild() accordingly. > > > > [GB.QT] > > * BUG: Borderless windows do not have a border anymore with Metacity. > > * BUG: The Window.Mask property works correctly now. > > * BUG: Draw.Image() and Draw.Picture() now work correctly on transparent > > pictures. > > * BUG: The minimum size of modal dialog is correctly set again. > > > > [GB.XML.RPC] > > * BUG: RpcStruct.Value() should work as expected now. > > * BUG: Event management was fixed, thanks to Ron. > > * BUG: RcpArray.Copy() now returns an RpcArray object. > > > > --8<--------------------------------------------------------------------- > >------ > > > > Note that there is a little "bug" in the package: the version number and > > the package name is 2.12, and not 2.12.0. If it leads to any problem, I > > will make a 2.12.1 release. > > > > Enjoy it! > > I noticed 2 bugs: > > 1) > the borderless windows with gb.qt on Gnome do work only if they are main > windows. But form shown in Modal mode still continue to manifest > borders. Try this: create a simply application with 2 forms, FMain and > Form1. FMain is a normal window, for Form1 set the Border to None. > Then, in the Form_Open() event of FMain put this code: > ME.Visible = FALSE > Form1.ShowModal > > and run the application. The Form1 window that will appear will still > continue to show borders (of cource, only using gb.qt on Gnome: gb.gtk > works properly). > > 2) > The second bug is related to the IDE, and in particular to the > Properties area. It seems that using the IDE, made with Qt, on a Gnome > DM manifest errors of rendering. In the screenshot you can see that the > comboboxes of the properties seem to exit out of the IDE border. But if > I click on a different combobox, we can understand: the list of the > properties are moved to the left because the combobox seem just to have > fixed width. Fixed in revision #1916. Regards, -- Beno?t From eilert-sprachen at ...221... Mon Mar 23 10:56:01 2009 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Mon, 23 Mar 2009 10:56:01 +0100 Subject: [Gambas-user] Release of Gambas 2.12 In-Reply-To: <200903211219.52242.gambas@...1...> References: <200903211219.52242.gambas@...1...> Message-ID: <49C75CB1.6010005@...221...> Beno?t Minisini schrieb: > Hi, > > Here is a new release of the stable version. This release fixes many bugs in > the interpreter, the GTK+ component, the networking component, the PDF > component, and the XML/RPC component. > > Here is the full changelog: > > --8<--------------------------------------------------------------------------- > > [CONFIGURATION] > * NEW: Switch to 2.12 version. > > [DEVELOPMENT ENVIRONMENT] > * BUG: Gambas version should be always displayed correctly in the about and > welcome dialogs now. > * NEW: Japanese translation updated. > * NEW: Support for Malayalam language. > * NEW: The toolbox now remembers if it is opened or closed. > > [INTERPRETER] > * BUG: Fix two possible bugs in 64 bits support. > * BUG: MOD works again with Long values. > * BUG: Array.Clear() now does not crash anymore on multi-dimensional > arrays. It just voids the array contents. Array.Clear() behaviour on > single dimensional arrays did not change: it removes all elements from > the array. > > [GB.DB.SQLITE2] > * BUG: Fix a compilation warning. > > [GB.GTK] > * BUG: Fix the container arrangement and the ClientX / ClientY properties. > * BUG: GridView Row and Column properties can be set independently. > * BUG: The TabStrip.Font property works as expected. > * BUG: Image.Draw() now works correctly if X or Y are negative. > * BUG: TextLabel.Adjust() now works as expected. > * BUG: Dialog.SaveFile() now correctly initializes the file name in the > file chooser dialog. > * BUG: Disabled controls correctly honor the Background property. > * BUG: The Foreground and Background properties of TabStrip, CheckBox, > RadioButton and other Button controls work as expected. > * BUG: Setting the Font property does not create a memory leak anymore. > * BUG: The menu bar of a reparented window does not disappear anymore. > * BUG: Fix the ComboBox.Add() method slowness. > * BUG: Fix the corruption of the Text property in editable combo-boxes. > * BUG: Fix again the Font property for non-control classes. > > [GB.NET] > * BUG: UdpSocket.TargetPort returns the accurate value now. > * BUG: Too many connections on a ServerSocket does not take 100% CPU > anymore. > > [GB.PDF] > * BUG: PdfDocument.HasIndex does not return TRUE anymore when there is an > index whose length is null. > * BUG: Fix PdfIndex.HasChildren that sometimes returned TRUE when there was > no children. > * BUG: Fix PdfIndex.MoveChild() accordingly. > > [GB.QT] > * BUG: Borderless windows do not have a border anymore with Metacity. > * BUG: The Window.Mask property works correctly now. > * BUG: Draw.Image() and Draw.Picture() now work correctly on transparent > pictures. > * BUG: The minimum size of modal dialog is correctly set again. > > [GB.XML.RPC] > * BUG: RpcStruct.Value() should work as expected now. > * BUG: Event management was fixed, thanks to Ron. > * BUG: RcpArray.Copy() now returns an RpcArray object. > > --8<--------------------------------------------------------------------------- > > Note that there is a little "bug" in the package: the version number and the > package name is 2.12, and not 2.12.0. If it leads to any problem, I will make > a 2.12.1 release. > > Enjoy it! > Thank you Benoit! Seems to run flawlessly here. Regards Rolf From ron at ...1740... Mon Mar 23 13:25:22 2009 From: ron at ...1740... (Ron) Date: Mon, 23 Mar 2009 13:25:22 +0100 Subject: [Gambas-user] file read and growing logfile Message-ID: <49C77FB2.40501@...1740...> How to watch new data that's added to a logfile? I want to make an apache log monitor, so I thought I could do that with FILE READ WATCH, but thats not suited it seems, that one only seems keep generating File_Read events continuous. In short: I want to open a file readonly. Then seek to end of file (or just before it) Then only get file_read events when new lines/data are added (by apache).. Anyone has any ideas? Regards, Ron_2nd. From ron at ...1740... Mon Mar 23 15:11:17 2009 From: ron at ...1740... (Ron) Date: Mon, 23 Mar 2009 15:11:17 +0100 Subject: [Gambas-user] file read and growing logfile In-Reply-To: <49C77FB2.40501@...1740...> References: <49C77FB2.40501@...1740...> Message-ID: <49C79885.9080502@...1740...> Ron schreef: > > How to watch new data that's added to a logfile? > > I want to make an apache log monitor, so I thought I could do that with > FILE READ WATCH, but thats not suited it seems, that one only seems keep > generating File_Read events continuous. > > In short: > I want to open a file readonly. > Then seek to end of file (or just before it) > Then only get file_read events when new lines/data are added (by apache).. > > Anyone has any ideas? In response to my own question I have tested with this: It creates a file and reads it, event File_Read() keeps getting raised, even after end of file. ' Gambas module file PRIVATE hFile AS File PRIVATE hFile2 AS File PUBLIC SUB Main() ' create test file hFile = OPEN "/tmp/file" FOR WRITE CREATE PRINT #hFile, "0123456789"; CLOSE #hFile ' watch it hFile2 = OPEN "/tmp/file" FOR READ WATCH END PUBLIC SUB File_Read() DIM iByte AS Byte READ #hFile2, iByte PRINT " "; iByte; END It prints: 48 49 50 51 52 53 54 55 56 57 And then gives error "End of File" This is not what I expected, shouldn't it stop before end of file? Gambas 2.12, gb.qt Regards, Ron_2nd. From gambas at ...1... Mon Mar 23 15:49:22 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Mon, 23 Mar 2009 15:49:22 +0100 Subject: [Gambas-user] file read and growing logfile In-Reply-To: <49C79885.9080502@...1740...> References: <49C77FB2.40501@...1740...> <49C79885.9080502@...1740...> Message-ID: <200903231549.22176.gambas@...1...> > Ron schreef: > > How to watch new data that's added to a logfile? > > > > I want to make an apache log monitor, so I thought I could do that with > > FILE READ WATCH, but thats not suited it seems, that one only seems keep > > generating File_Read events continuous. > > > > In short: > > I want to open a file readonly. > > Then seek to end of file (or just before it) > > Then only get file_read events when new lines/data are added (by > > apache).. > > > > Anyone has any ideas? > > In response to my own question I have tested with this: > > It creates a file and reads it, event File_Read() keeps getting raised, > even after end of file. > > ' Gambas module file > PRIVATE hFile AS File > PRIVATE hFile2 AS File > > PUBLIC SUB Main() > > ' create test file > hFile = OPEN "/tmp/file" FOR WRITE CREATE > PRINT #hFile, "0123456789"; > CLOSE #hFile > > ' watch it > hFile2 = OPEN "/tmp/file" FOR READ WATCH > > END > > PUBLIC SUB File_Read() > > DIM iByte AS Byte > > READ #hFile2, iByte > PRINT " "; iByte; > > END > > It prints: > 48 49 50 51 52 53 54 55 56 57 > > And then gives error "End of File" > > This is not what I expected, shouldn't it stop before end of file? > > Gambas 2.12, gb.qt > > Regards, > Ron_2nd. > It should, but alas this is not the way Linux works as explained in the man page of the select() system call. A file descriptor is ready to read if the read() system call won't block. And this is the case even if the end of file is reached, as then read() returns an error (and so does not block!). If you actually want to do what the "tail" command (watching a file and print its contents), you should do that: - Get the file size every second. - If the file size has changed since the last time, read the file from its last position until the end of the file. Regards, -- Beno?t From ron at ...1740... Mon Mar 23 16:52:37 2009 From: ron at ...1740... (Ron) Date: Mon, 23 Mar 2009 16:52:37 +0100 Subject: [Gambas-user] file read and growing logfile In-Reply-To: <200903231549.22176.gambas@...1...> References: <49C77FB2.40501@...1740...> <49C79885.9080502@...1740...> <200903231549.22176.gambas@...1...> Message-ID: <49C7B045.8060301@...1740...> Beno?t Minisini schreef: >> Ron schreef: >>> How to watch new data that's added to a logfile? >>> >>> I want to make an apache log monitor, so I thought I could do that with >>> FILE READ WATCH, but thats not suited it seems, that one only seems keep >>> generating File_Read events continuous. >>> >>> In short: >>> I want to open a file readonly. >>> Then seek to end of file (or just before it) >>> Then only get file_read events when new lines/data are added (by >>> apache).. >>> >>> Anyone has any ideas? >> In response to my own question I have tested with this: >> >> It creates a file and reads it, event File_Read() keeps getting raised, >> even after end of file. >> >> ' Gambas module file >> PRIVATE hFile AS File >> PRIVATE hFile2 AS File >> >> PUBLIC SUB Main() >> >> ' create test file >> hFile = OPEN "/tmp/file" FOR WRITE CREATE >> PRINT #hFile, "0123456789"; >> CLOSE #hFile >> >> ' watch it >> hFile2 = OPEN "/tmp/file" FOR READ WATCH >> >> END >> >> PUBLIC SUB File_Read() >> >> DIM iByte AS Byte >> >> READ #hFile2, iByte >> PRINT " "; iByte; >> >> END >> >> It prints: >> 48 49 50 51 52 53 54 55 56 57 >> >> And then gives error "End of File" >> >> This is not what I expected, shouldn't it stop before end of file? >> >> Gambas 2.12, gb.qt >> >> Regards, >> Ron_2nd. >> > > It should, but alas this is not the way Linux works as explained in the man > page of the select() system call. > > A file descriptor is ready to read if the read() system call won't block. And > this is the case even if the end of file is reached, as then read() returns an > error (and so does not block!). > > If you actually want to do what the "tail" command (watching a file and print > its contents), you should do that: > > - Get the file size every second. > > - If the file size has changed since the last time, read the file from its > last position until the end of the file. > Had something build, but it was using a bit more cpu cycles than I wanted, ones every second is a nice compromise... will try, thanks. Regards, Ron_2nd. From the.at.robert at ...626... Mon Mar 23 20:37:37 2009 From: the.at.robert at ...626... (Mr. Robert) Date: Mon, 23 Mar 2009 12:37:37 -0700 Subject: [Gambas-user] 'su -c command' inside Gambas, how do I? In-Reply-To: <200903201737.46514.rospolosco@...152...> References: <200903201228.06975.rospolosco@...152...> <200903201718.34432.ronstk@...239...> <200903201737.46514.rospolosco@...152...> Message-ID: ????? ? ???????? ?????? ? ??? ????????, ??? ???????? ???? ????????? ???? ?????. On Fri, Mar 20, 2009 at 9:37 AM, Stefano Palmeri wrote: > Il venerd? 20 marzo 2009 17:18:34 Ron_1st ha scritto: > > On Friday 20 March 2009, Stefano Palmeri wrote: > > > Hi, Benoit. Hi all. > > > > > > I've a little problem here. I can't feed the root password > > > to a "su -c" process invocation. I've attached a little example. > > > In a form there's a textbox. You type the root password, > > > then you press 'Confirm' and you should be able to execute > > > su -c 'cat /etc/sudoers'. But I can't. > > > Any help appreciated. Thanks. > > > > > > Gambas 2.11.1 > > > Slackware 12.2 > > > > > > Stefano > > > > If you use KDE Desktop use 'kdesu -c 'cat /etc/sudoers' > > and for gnome there was/is 'gtksu -c 'cat /etc/sudoers' (SuSE) > > > > both should ask for the password of the guy that wants/need to do sudo > > on the command line. > > > > > > > > Best regards, > > > > Ron_1st > > > > Yes, Ron. I knew about kdesu or gtksu, but I wanted a > pure Gambas solution, just like the one Benoit and Doriano explained. > > Thanks anyway. > > Saluti, > > Stefano > > > > > > > > --------------------------------------------------------------------------- > >--- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) > are > > powering Web 2.0 with engaging, cross-platform capabilities. Quickly and > > easily build your RIAs with Flex Builder, the Eclipse(TM)based > development > > software that enables intelligent coding and step-through debugging. > > Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > ------------------------------------------------------------------------------ > Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are > powering Web 2.0 with engaging, cross-platform capabilities. Quickly and > easily build your RIAs with Flex Builder, the Eclipse(TM)based development > software that enables intelligent coding and step-through debugging. > Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From m0e.lnx at ...626... Mon Mar 23 21:02:41 2009 From: m0e.lnx at ...626... (M0E Lnx) Date: Mon, 23 Mar 2009 15:02:41 -0500 Subject: [Gambas-user] New annoyances on gambas2-2.12 Message-ID: <1f1e8c1b0903231302s46b69abfhb7c70356de475e6d@...627...> Just upgraded to gambas2-2.12 and noticed an annoyance on the IDE On the right panel, where you set the object properties, appears to be a gridview where other objects move into the cells and stuff. The dropdown boxes, textboxes width property seems out of proportion see attached screenie. This is annoying because in the case of dropdowns, you canot see the [...] button anymore. The one that pops up a new window to set the text property of an object. This is new in this release. 2.11.2 did not have this problem. -------------- next part -------------- A non-text attachment was scrubbed... Name: image.png Type: image/png Size: 176076 bytes Desc: not available URL: From m0e.lnx at ...626... Mon Mar 23 21:07:58 2009 From: m0e.lnx at ...626... (M0E Lnx) Date: Mon, 23 Mar 2009 15:07:58 -0500 Subject: [Gambas-user] adjusting objects .width property in proportion to their .text property Message-ID: <1f1e8c1b0903231307p75b80394w468dc68c8029aa08@...627...> I've always had this problem in gambas. Using gb.gtk I have buttons, textlabels and such objects on a form. My project is translatable, which means that the space needed for the their .text property is not always the same. Is there a way gambas could figure out exacly object's width needed to fit their .text property? FWIW, I've done just a bit of pygtk reading and practicing.. and in their case, the objects are always as wide as they need to be.. no need to adjust their .width property. Maybe gambas can implement something like that? From gambas at ...1... Mon Mar 23 21:08:28 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Mon, 23 Mar 2009 21:08:28 +0100 Subject: [Gambas-user] New annoyances on gambas2-2.12 In-Reply-To: <1f1e8c1b0903231302s46b69abfhb7c70356de475e6d@...627...> References: <1f1e8c1b0903231302s46b69abfhb7c70356de475e6d@...627...> Message-ID: <200903232108.28250.gambas@...1...> > Just upgraded to gambas2-2.12 and noticed an annoyance on the IDE > On the right panel, where you set the object properties, appears to be > a gridview where other objects move into the cells and stuff. > The dropdown boxes, textboxes width property seems out of proportion > > see attached screenie. > > This is annoying because in the case of dropdowns, you canot see the > [...] button anymore. The one that pops up a new window to set the > text property of an object. > This is new in this release. 2.11.2 did not have this problem. This has been fixed in revison #1916. I will wait a little for other possible problems, and then make a 2.12.1 version. Regards, -- Beno?t From gambas at ...1... Mon Mar 23 21:15:29 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Mon, 23 Mar 2009 21:15:29 +0100 Subject: [Gambas-user] adjusting objects .width property in proportion to their .text property In-Reply-To: <1f1e8c1b0903231307p75b80394w468dc68c8029aa08@...627...> References: <1f1e8c1b0903231307p75b80394w468dc68c8029aa08@...627...> Message-ID: <200903232115.29751.gambas@...1...> > I've always had this problem in gambas. Using gb.gtk > I have buttons, textlabels and such objects on a form. > My project is translatable, which means that the space needed for the > their .text property is not always the same. > > Is there a way gambas could figure out exacly object's width needed to > fit their .text property? > > FWIW, I've done just a bit of pygtk reading and practicing.. and in > their case, the objects are always as wide as they need to be.. no > need to adjust their .width property. > Maybe gambas can implement something like that? > At the moment, you have to provide enough space to controls, and I agree this is not the good way. Some controls (Label and TextLabel) have an AutoResize property if you need them. I will think about that. I don't like the wat QT and GTK+ behave (when buttons do not have all the same size for example), and I want to find something better. This will need some new containers... Regards, -- Beno?t From m0e.lnx at ...626... Mon Mar 23 21:22:14 2009 From: m0e.lnx at ...626... (M0E Lnx) Date: Mon, 23 Mar 2009 15:22:14 -0500 Subject: [Gambas-user] New annoyances on gambas2-2.12 In-Reply-To: <200903232108.28250.gambas@...1...> References: <1f1e8c1b0903231302s46b69abfhb7c70356de475e6d@...627...> <200903232108.28250.gambas@...1...> Message-ID: <1f1e8c1b0903231322u6acc8963of620247d45fda753@...627...> good to know 2009/3/23 Beno?t Minisini : >> Just upgraded to gambas2-2.12 and noticed an annoyance on the IDE >> On the right panel, where you set the object properties, appears to be >> a gridview where other objects move into the cells and stuff. >> The dropdown boxes, textboxes width property seems out of proportion >> >> see attached screenie. >> >> This is annoying because in the case of dropdowns, you canot see the >> [...] button anymore. The one that pops up a new window to set the >> text property of an object. >> This is new in this release. 2.11.2 did not have this problem. > > This has been fixed in revison #1916. I will wait a little for other possible > problems, and then make a 2.12.1 version. > > Regards, > > -- > Beno?t > > > ------------------------------------------------------------------------------ > Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are > powering Web 2.0 with engaging, cross-platform capabilities. Quickly and > easily build your RIAs with Flex Builder, the Eclipse(TM)based development > software that enables intelligent coding and step-through debugging. > Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From m0e.lnx at ...626... Mon Mar 23 21:29:54 2009 From: m0e.lnx at ...626... (M0E Lnx) Date: Mon, 23 Mar 2009 15:29:54 -0500 Subject: [Gambas-user] adjusting objects .width property in proportion to their .text property In-Reply-To: <200903232115.29751.gambas@...1...> References: <1f1e8c1b0903231307p75b80394w468dc68c8029aa08@...627...> <200903232115.29751.gambas@...1...> Message-ID: <1f1e8c1b0903231329x12b82734u35eba1f742fa7aa2@...627...> Does the AutoResize property work when the object is a child to something like an hbox whose .expand property is set to true? I'm having a hard time getting this to work on mine here. I have an HBOX set expand=true All child objects of this hbox have their .expand property set to true but textlabels still dont shrink/expand to their .text property. how is this supossed to work? From gambas at ...1... Mon Mar 23 21:31:44 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Mon, 23 Mar 2009 21:31:44 +0100 Subject: [Gambas-user] adjusting objects .width property in proportion to their .text property In-Reply-To: <1f1e8c1b0903231329x12b82734u35eba1f742fa7aa2@...627...> References: <1f1e8c1b0903231307p75b80394w468dc68c8029aa08@...627...> <200903232115.29751.gambas@...1...> <1f1e8c1b0903231329x12b82734u35eba1f742fa7aa2@...627...> Message-ID: <200903232131.44687.gambas@...1...> > Does the AutoResize property work when the object is a child to > something like an hbox whose .expand property is set to true? > I'm having a hard time getting this to work on mine here. > > I have an HBOX set expand=true > All child objects of this hbox have their .expand property set to true > but textlabels still dont shrink/expand to their .text property. > > how is this supossed to work? > Do not set the Expand property if you want a Label or TextLabel to autoresize. -- Beno?t From m0e.lnx at ...626... Mon Mar 23 21:43:59 2009 From: m0e.lnx at ...626... (M0E Lnx) Date: Mon, 23 Mar 2009 15:43:59 -0500 Subject: [Gambas-user] adjusting objects .width property in proportion to their .text property In-Reply-To: <200903232131.44687.gambas@...1...> References: <1f1e8c1b0903231307p75b80394w468dc68c8029aa08@...627...> <200903232115.29751.gambas@...1...> <1f1e8c1b0903231329x12b82734u35eba1f742fa7aa2@...627...> <200903232131.44687.gambas@...1...> Message-ID: <1f1e8c1b0903231343obd57450ud5aea88834d886b9@...627...> On the object itself or it's parent? or both? 'cuz I'm trying it here, and none of these combos work From iecltd at ...2113... Tue Mar 24 07:52:53 2009 From: iecltd at ...2113... (Rodney Rundstrom) Date: Tue, 24 Mar 2009 19:52:53 +1300 Subject: [Gambas-user] Dynamic objects Message-ID: <94DA15C043E543E581E25CC74A815DDF@...2114...> I wish to create objects in code. For example I wish to create a textbox and populate it from a mysql table. Repositioning it in code each time. The number of instances would depend on the Number of records in the table. I then need to index through the items to reset the names from time to time. Can anyone show me some sample code. I am new to linux/gambas/mysql most thing appear straightforward but this has me stumpt. My background is windows/VB6/MSSQL Thank From m0e.lnx at ...626... Tue Mar 24 14:02:41 2009 From: m0e.lnx at ...626... (M0E Lnx) Date: Tue, 24 Mar 2009 08:02:41 -0500 Subject: [Gambas-user] Dynamic objects In-Reply-To: <94DA15C043E543E581E25CC74A815DDF@...2114...> References: <94DA15C043E543E581E25CC74A815DDF@...2114...> Message-ID: <1f1e8c1b0903240602n731c7edboe56e6e10f49eeb5c@...627...> I have no experience with mysql at all, but you can easily create this textbox PUBLIC SUB Read_DBASE() DIM sList as string DIM sResults as String[] DIM tb as TextBox DIM sItem as String DIM i as integer dim y as integer ' This is where you get your values from mysql and let's assume you put them into a raw string (sList) ' After that you creat an array with the results sResults = split(sList," ") ' or however your values may be separated FOR i = 0 to sResults.Max tb = new TextBox(me) as "Textbox" WITH tb .Text = sResults[i] .width = 100 .height = 24 .x = 4 .y = y END WITH y = y + tb.height + 4 NEXT END From m0e.lnx at ...626... Tue Mar 24 18:24:32 2009 From: m0e.lnx at ...626... (M0E.lnx) Date: Tue, 24 Mar 2009 12:24:32 -0500 Subject: [Gambas-user] Ugly gtk warnings with tabstrip object Message-ID: <20090324122432.3c06de73.M0E.lnx@...626...> I Just noticed when I added a tabstrip to my form, when the form loads I see this output on the terminal (speedy:14712): Gtk-WARNING **: gtk_widget_size_allocate(): attempt to allocate widget with width -5 and height 0 This appears to be related to the tabstrip only. If I remove the tabstrip from the form, I dont get this message. This is gambas2-2.12 running on GTK+2-2.14.7 I know it's just warning.. but it's annoying and i'm trying to keep my stdout as clean as possible for debugging purposes. -- From rterry at ...1946... Tue Mar 24 21:38:59 2009 From: rterry at ...1946... (richard terry) Date: Wed, 25 Mar 2009 07:38:59 +1100 Subject: [Gambas-user] Printing direct to printer Message-ID: <200903250738.59227.rterry@...1946...> I wondered if anyone could show me how to print direct to a printer at co-ordinates x-y I have to a sheet divided into four sections (not quarters), the top two are 2/3 of the page height, and I need to print to exactly specifica locations on an A4 page. Any help appreciated. Richard From m0e.lnx at ...626... Tue Mar 24 21:49:15 2009 From: m0e.lnx at ...626... (M0E.lnx) Date: Tue, 24 Mar 2009 15:49:15 -0500 Subject: [Gambas-user] My first rodeo in using the network component Message-ID: <20090324154915.15f48a46.M0E.lnx@...626...> So i've decided to try out the network component in gambas. I'm trying to get a listing of the contents of an FTP URL so I'm using a FTPclient object. I've set it's .URL and since it's anon access, I figured I'd leave the user and pass properties empty. >From what I read in the documentation, I should be able to use it's peek() method and it should return a string. but it's not working... anyone ever done anything like this? -- From linuxos at ...1896... Tue Mar 24 22:34:38 2009 From: linuxos at ...1896... (Olivier Cruilles) Date: Tue, 24 Mar 2009 22:34:38 +0100 Subject: [Gambas-user] My first rodeo in using the network component In-Reply-To: <20090324154915.15f48a46.M0E.lnx@...626...> References: <20090324154915.15f48a46.M0E.lnx@...626...> Message-ID: Hi, I don't use the FTP component but I do FTP transfert by building an FTP command file and I use it by the unix command line FTP command. It's not really interactive and It's necessary to analyse the ftp command log result but It work in any case. Olivier Cruilles Mail: linuxos at ...1896... Le 24 mars 09 ? 21:49, M0E.lnx a ?crit : > So i've decided to try out the network component in gambas. > > I'm trying to get a listing of the contents of an FTP URL > so I'm using a FTPclient object. > I've set it's .URL > and since it's anon access, I figured I'd leave the user and pass > properties empty. > >> From what I read in the documentation, I should be able to use it's >> peek() method and it should return a string. > > but it's not working... anyone ever done anything like this? > > -- > > > ------------------------------------------------------------------------------ > Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) > are > powering Web 2.0 with engaging, cross-platform capabilities. Quickly > and > easily build your RIAs with Flex Builder, the Eclipse(TM)based > development > software that enables intelligent coding and step-through debugging. > Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > Olivier Cruilles Mail: linuxos at ...1896... From m0e.lnx at ...626... Wed Mar 25 00:36:02 2009 From: m0e.lnx at ...626... (M0E Lnx) Date: Tue, 24 Mar 2009 18:35:02 -0501 Subject: [Gambas-user] My first rodeo in using the network component In-Reply-To: References: <20090324154915.15f48a46.M0E.lnx@...626...> Message-ID: <1f1e8c1b0903241636ra22317eq5573ff736d416037@...627...> How exactly do you do this? What I need is to get the listing of a FTP directory and analyze it.. I can do that in gambas code, but I thought I could use the net component to get the listing. Would you mind explaining how your method works? From steven at ...2097... Wed Mar 25 03:16:59 2009 From: steven at ...2097... (Steven Drinnan) Date: Wed, 25 Mar 2009 10:16:59 +0800 Subject: [Gambas-user] Printing direct to printer In-Reply-To: <200903250738.59227.rterry@...1946...> References: <200903250738.59227.rterry@...1946...> Message-ID: <1237947419.22143.5.camel@...2011...> Home use the draw cmd. Each object has it's own x,y position. see the example below IF Printer.Setup() THEN RETURN 'You need to set up your printer first. Draw.Begin(Printer) ' Initializes the draw Draw.Text(TextArea1.Text, 200, 200) ' Prints the contents of a TextArea in the upper left hand corner Printer.NewPage ' Prints a new page Draw.Foreground = Color.Red Draw.Rectangle(500, 200, 32, 32) ' Draws a small red rectangle Draw.End ' Then send page to the printer This example is in the help files. have a look to get a better feel .Goto the gtk.ext or qt.ext find the 'Draw' object. For a preview change the object of the draw command to a drawing area. Steven On Wed, 2009-03-25 at 07:38 +1100, richard terry wrote: > I wondered if anyone could show me how to print direct to a printer at > co-ordinates x-y > > I have to a sheet divided into four sections (not quarters), the top two are > 2/3 of the page height, and I need to print to exactly specifica locations on > an A4 page. > > Any help appreciated. > > Richard > > ------------------------------------------------------------------------------ > Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are > powering Web 2.0 with engaging, cross-platform capabilities. Quickly and > easily build your RIAs with Flex Builder, the Eclipse(TM)based development > software that enables intelligent coding and step-through debugging. > Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From wdahn at ...1000... Wed Mar 25 05:44:18 2009 From: wdahn at ...1000... (Werner) Date: Wed, 25 Mar 2009 12:44:18 +0800 Subject: [Gambas-user] My first rodeo in using the network component In-Reply-To: <20090324154915.15f48a46.M0E.lnx@...626...> References: <20090324154915.15f48a46.M0E.lnx@...626...> Message-ID: <49C9B6A2.8050702@...1000...> M0E.lnx wrote: > So i've decided to try out the network component in gambas. > > I'm trying to get a listing of the contents of an FTP URL > so I'm using a FTPclient object. > I've set it's .URL > and since it's anon access, I figured I'd leave the user and pass properties empty. > > >From what I read in the documentation, I should be able to use it's peek() method and it should return a string. > > but it's not working... anyone ever done anything like this? > > ISTR that in Ye Olde days anonymous ftp was user:anonymous password:email address (as a courtesy but optional) From jbskaggs at ...1871... Wed Mar 25 07:50:43 2009 From: jbskaggs at ...1871... (jbskaggs) Date: Tue, 24 Mar 2009 23:50:43 -0700 (PDT) Subject: [Gambas-user] Sdl.sound and Qt dependencies not satisfiable Message-ID: <22696057.post@...1379...> I am running ubuntu 8.10 64 bit, Gambas 2.7 (highest packaged for 64bit 8.1). I add the gb.sdl.sound and now cannot install packages because I get Dependencies not satisfiable for gb.sdl.sound. So I figured maybe I need to add gb.sdl but I can't because my program is qt based and it says qt and sdl incompatible. When I run my program without gb.sdl installed and with gb.sdl.sound installed it runs fun from IDE. I can create executable, and I can package it but I cannot install the package without the error popping about dependencies. All I want to do is have a wav file played without having to call an external shell. How can I do that with qt? Or how do I fix this dependency issue? JB SKaggs -- View this message in context: http://www.nabble.com/Sdl.sound-and-Qt-dependencies-not-satisfiable-tp22696057p22696057.html Sent from the gambas-user mailing list archive at Nabble.com. From m0e.lnx at ...626... Wed Mar 25 14:03:31 2009 From: m0e.lnx at ...626... (M0E.lnx) Date: Wed, 25 Mar 2009 08:03:31 -0500 Subject: [Gambas-user] My first rodeo in using the network component In-Reply-To: <49C9B6A2.8050702@...1000...> References: <20090324154915.15f48a46.M0E.lnx@...626...> <49C9B6A2.8050702@...1000...> Message-ID: <20090325080331.4d445dc6.M0E.lnx@...626...> But it's not even reporting an authentication error... It doesn't even try to connect. All I need it to do is to get me something like the result of "curl -G ftp://ftp.some.ftp.site.com/" From m0e.lnx at ...626... Wed Mar 25 16:07:11 2009 From: m0e.lnx at ...626... (M0E.lnx) Date: Wed, 25 Mar 2009 10:07:11 -0500 Subject: [Gambas-user] analyzing version numbers in gambas Message-ID: <20090325100711.309cfba3.M0E.lnx@...626...> I need a way to logically analize version numbers in gambas. For instance, I have a list of available versions of the same program, let's say the list is 1.2 1.4 1.6 1.10 1.16 1.20 1.35 1.5 1.3 1.1 These are of course in no particular order. A human knows that out of all of these, version 1.35 would be the greater value. How can I make gambas analyze this? -- From lordheavym at ...626... Wed Mar 25 16:25:26 2009 From: lordheavym at ...626... (Laurent Carlier) Date: Wed, 25 Mar 2009 16:25:26 +0100 Subject: [Gambas-user] analyzing version numbers in gambas In-Reply-To: <20090325100711.309cfba3.M0E.lnx@...626...> References: <20090325100711.309cfba3.M0E.lnx@...626...> Message-ID: <200903251625.27489.lordheavym@...626...> Le mercredi 25 mars 2009 16:07:11 M0E.lnx, vous avez ?crit : > I need a way to logically analize version numbers in gambas. > > For instance, I have a list of available versions of the same program, > let's say the list is > > 1.2 > 1.4 > 1.6 > 1.10 > 1.16 > 1.20 > 1.35 > 1.5 > 1.3 > 1.1 > > These are of course in no particular order. A human knows that out of all > of these, version 1.35 would be the greater value. > > How can I make gambas analyze this? I guess, in these cases, you can use the Val() function. http://64.128.110.55/help/lang/val Regards, From ron at ...1740... Wed Mar 25 16:29:29 2009 From: ron at ...1740... (Ron) Date: Wed, 25 Mar 2009 16:29:29 +0100 Subject: [Gambas-user] analyzing version numbers in gambas In-Reply-To: <200903251625.27489.lordheavym@...626...> References: <20090325100711.309cfba3.M0E.lnx@...626...> <200903251625.27489.lordheavym@...626...> Message-ID: <49CA4DD9.8070304@...1740...> Laurent Carlier schreef: > Le mercredi 25 mars 2009 16:07:11 M0E.lnx, vous avez ?crit : >> I need a way to logically analize version numbers in gambas. >> >> For instance, I have a list of available versions of the same program, >> let's say the list is >> >> 1.2 >> 1.4 >> 1.6 >> 1.10 >> 1.16 >> 1.20 >> 1.35 >> 1.5 >> 1.3 >> 1.1 >> >> These are of course in no particular order. A human knows that out of all >> of these, version 1.35 would be the greater value. >> >> How can I make gambas analyze this? > > I guess, in these cases, you can use the Val() function. > > http://64.128.110.55/help/lang/val > > Regards, > Do a replace to remove the . then 12 is less(older) then 135. Regards, Ron_2nd. From sourceforge-raindog2 at ...94... Wed Mar 25 16:59:56 2009 From: sourceforge-raindog2 at ...94... (Rob) Date: Wed, 25 Mar 2009 11:59:56 -0400 Subject: [Gambas-user] analyzing version numbers in gambas In-Reply-To: <49CA4DD9.8070304@...1740...> References: <20090325100711.309cfba3.M0E.lnx@...626...> <200903251625.27489.lordheavym@...626...> <49CA4DD9.8070304@...1740...> Message-ID: <200903251159.57414.sourceforge-raindog2@...94...> On Wednesday 25 March 2009 11:29, Ron wrote: > > I guess, in these cases, you can use the Val() function. > Do a replace to remove the . then 12 is less(older) then 135. That only works if all the versions are part of the same major release. 21 is less than 135 too... In Perl, I would do something like this: ($maj, $min) = split(/\./, $version); $sortableversion = sprintf("%05d.%05d", $maj, $min); I think you could do much the same in Gambas but it would take more lines, two Format() calls instead of just a sprintf, and you'd be using an array rather than two strings. Rob From m0e.lnx at ...626... Wed Mar 25 17:04:14 2009 From: m0e.lnx at ...626... (M0E.lnx) Date: Wed, 25 Mar 2009 11:04:14 -0500 Subject: [Gambas-user] analyzing version numbers in gambas In-Reply-To: <49CA4DD9.8070304@...1740...> References: <20090325100711.309cfba3.M0E.lnx@...626...> <200903251625.27489.lordheavym@...626...> <49CA4DD9.8070304@...1740...> Message-ID: <20090325110414.f3227a63.M0E.lnx@...626...> The replace(".","") thing works, but it rus into problems with you get to something like 1.3b vs 1.3c Some developers have a different way of numbering their releases. From jguardon at ...2035... Wed Mar 25 17:04:26 2009 From: jguardon at ...2035... (Jesus Guardon) Date: Wed, 25 Mar 2009 17:04:26 +0100 Subject: [Gambas-user] analyzing version numbers in gambas In-Reply-To: <20090325100711.309cfba3.M0E.lnx@...626...> References: <20090325100711.309cfba3.M0E.lnx@...626...> Message-ID: <49CA560A.8060102@...2035...> Hi all This is the way I did it: First, I've setup an asynchronous httpclient. PUBLIC SUB _getVer_Finished() DIM myVersion, verUpdate AS Integer DIM sMyVer AS String = "1" & Replace(Application.Version, ".", "") ver = "1" & Replace(ver, ".", "") myVersion = CInt(sMyVer) IF ver THEN verUpdate = CInt(ver) IF verUpdate > myVersion THEN IF Message.Question(("There is a new version of yourProgram.\nDo you want to visit the download page?"), ("Yes"), "No") = 2 THEN RETURN Desktop.Open("http://yourProjectWebPage.com") ENDIF END Regards Jes?s M0E.lnx escribi?: > I need a way to logically analize version numbers in gambas. > > For instance, I have a list of available versions of the same program, let's say the list is > > 1.2 > 1.4 > 1.6 > 1.10 > 1.16 > 1.20 > 1.35 > 1.5 > 1.3 > 1.1 > > These are of course in no particular order. A human knows that out of all of these, version 1.35 would be the greater value. > > How can I make gambas analyze this? > > From m0e.lnx at ...626... Wed Mar 25 18:19:21 2009 From: m0e.lnx at ...626... (M0E.lnx) Date: Wed, 25 Mar 2009 12:19:21 -0500 Subject: [Gambas-user] analyzing version numbers in gambas In-Reply-To: <49CA560A.8060102@...2035...> References: <20090325100711.309cfba3.M0E.lnx@...626...> <49CA560A.8060102@...2035...> Message-ID: <20090325121921.86d225dd.M0E.lnx@...626...> Yeah... and like I said, this works, but I'm not dealing with my own version numbering here... I'm trying to analize all versioning schemes if at all possible. I guess I could split the version string into an array and figure out manually from there... But I was kind of hoping not to do that. ;) From sourceforge-raindog2 at ...94... Wed Mar 25 18:32:28 2009 From: sourceforge-raindog2 at ...94... (Rob) Date: Wed, 25 Mar 2009 13:32:28 -0400 Subject: [Gambas-user] analyzing version numbers in gambas In-Reply-To: <20090325121921.86d225dd.M0E.lnx@...626...> References: <20090325100711.309cfba3.M0E.lnx@...626...> <49CA560A.8060102@...2035...> <20090325121921.86d225dd.M0E.lnx@...626...> Message-ID: <200903251332.29015.sourceforge-raindog2@...94...> On Wednesday 25 March 2009 13:19, M0E.lnx wrote: > I'm not dealing with my own version numbering here... I'm trying to > analize all versioning schemes if at all possible. It's not possible. 2.5 and 2.10 in the Gambas numbering scheme mean different things than 2.10 and 2.5 in some other developers' schemes, and you can't derive it without observation and manual intervention. Then you have the projects who change their numbering schemes in midstream, like pan (0.133 is newer than 0.142) and others have done. Rob From m0e.lnx at ...626... Wed Mar 25 18:54:12 2009 From: m0e.lnx at ...626... (M0E.lnx) Date: Wed, 25 Mar 2009 12:54:12 -0500 Subject: [Gambas-user] analyzing version numbers in gambas In-Reply-To: <200903251332.29015.sourceforge-raindog2@...94...> References: <20090325100711.309cfba3.M0E.lnx@...626...> <49CA560A.8060102@...2035...> <20090325121921.86d225dd.M0E.lnx@...626...> <200903251332.29015.sourceforge-raindog2@...94...> Message-ID: <20090325125412.5214182d.M0E.lnx@...626...> True... It's impossible to catch all of them. Not all developers stick to the standards.. I understand. FWIW, I've stated a class that takes the 2 strings and then splits them at the separator (".") After that it analizes each object in the array and determines which one of the two arguments is the larger value then returns that Of couse, the more values in the arrays, the more complex this gets. I guess I would have thoutht there was something that could analize something like "2.12" and "2.5" as floats and see which one is the largest of the 2 From jbskaggs at ...1871... Wed Mar 25 19:36:12 2009 From: jbskaggs at ...1871... (jbskaggs) Date: Wed, 25 Mar 2009 11:36:12 -0700 (PDT) Subject: [Gambas-user] Sdl.sound and Qt dependencies not satisfiable In-Reply-To: <22696057.post@...1379...> References: <22696057.post@...1379...> Message-ID: <22707549.post@...1379...> I have discovered that Gambas2 for ubuntu does not have a gambas2-gb-sdl-sound package like the other distros. BUT I can install my program with dpkg -i and it works fine and accesses the sdl.sound drivers okay. Although the Ubuntu system keeps pointing out that my program package is broken. (such as the synaptic package manager) Is this a bug in Ubuntu 8.1 or what am I missing? JB SKaggs jbskaggs wrote: > > I am running ubuntu 8.10 64 bit, Gambas 2.7 (highest packaged for 64bit > 8.1). > > I add the gb.sdl.sound and now cannot install packages because I get > Dependencies not satisfiable for gb.sdl.sound. > > So I figured maybe I need to add gb.sdl but I can't because my program is > qt based and it says qt and sdl incompatible. > > When I run my program without gb.sdl installed and with gb.sdl.sound > installed it runs fun from IDE. I can create executable, and I can package > it but I cannot install the package without the error popping about > dependencies. > > All I want to do is have a wav file played without having to call an > external shell. > > How can I do that with qt? Or how do I fix this dependency issue? > > > JB SKaggs > -- View this message in context: http://www.nabble.com/Sdl.sound-and-Qt-dependencies-not-satisfiable-tp22696057p22707549.html Sent from the gambas-user mailing list archive at Nabble.com. From pastrano at ...431... Wed Mar 25 21:05:00 2009 From: pastrano at ...431... (Gianni Piccini) Date: Wed, 25 Mar 2009 21:05:00 +0100 Subject: [Gambas-user] My first rodeo in using the network component In-Reply-To: <20090324154915.15f48a46.M0E.lnx@...626...> References: <20090324154915.15f48a46.M0E.lnx@...626...> Message-ID: <20090325210500.5f6c5e98@...431...> On Tue, 24 Mar 2009 15:49:15 -0500 "M0E.lnx" wrote: > and since it's anon access, I figured I'd leave the user and pass > properties empty. Sure? If I don't err, you should put "anonymous" as user and your email (or fake email) for password... From m0e.lnx at ...626... Wed Mar 25 21:48:52 2009 From: m0e.lnx at ...626... (M0E.lnx) Date: Wed, 25 Mar 2009 15:48:52 -0500 Subject: [Gambas-user] My first rodeo in using the network component In-Reply-To: <20090325210500.5f6c5e98@...431...> References: <20090324154915.15f48a46.M0E.lnx@...626...> <20090325210500.5f6c5e98@...431...> Message-ID: <20090325154852.2422ffab.M0E.lnx@...626...> Even after feeding it user name and passwords, the peek() method returns nothing From piresl at ...626... Wed Mar 25 23:21:58 2009 From: piresl at ...626... (lawrence pires) Date: Wed, 25 Mar 2009 15:21:58 -0700 Subject: [Gambas-user] lawrence pires wants to chat Message-ID: <37c460f60903251521y7febd22ao@...627...> ----------------------------------------------------------------------- lawrence pires wants to stay in better touch using some of Google's coolest new products. If you already have Gmail or Google Talk, visit: http://mail.google.com/mail/b-292bbd72fc-6e149919c0-3bb0df9d2f93b250 You'll need to click this link to be able to chat with lawrence pires. To get Gmail - a free email account from Google with over 2,800 megabytes of storage - and chat with lawrence pires, visit: http://mail.google.com/mail/a-292bbd72fc-6e149919c0-4ac2365209 Gmail offers: - Instant messaging right inside Gmail - Powerful spam protection - Built-in search for finding your messages and a helpful way of organizing emails into "conversations" - No pop-up ads or untargeted banners - just text ads and related information that are relevant to the content of your messages All this, and its yours for free. But wait, there's more! By opening a Gmail account, you also get access to Google Talk, Google's instant messaging service: http://www.google.com/talk/ Google Talk offers: - Web-based chat that you can use anywhere, without a download - A contact list that's synchronized with your Gmail account - Free, high quality PC-to-PC voice calls when you download the Google Talk client Gmail and Google Talk are still in beta. We're working hard to add new features and make improvements, so we might also ask for your comments and suggestions periodically. We appreciate your help in making our products even better! Thanks, The Google Team To learn more about Gmail and Google Talk, visit: http://mail.google.com/mail/help/about.html http://www.google.com/talk/about.html (If clicking the URLs in this message does not work, copy and paste them into the address bar of your browser). From pastrano at ...431... Thu Mar 26 02:49:15 2009 From: pastrano at ...431... (Gianni Piccini) Date: Thu, 26 Mar 2009 02:49:15 +0100 Subject: [Gambas-user] My first rodeo in using the network component In-Reply-To: <1f1e8c1b0903241636ra22317eq5573ff736d416037@...627...> References: <20090324154915.15f48a46.M0E.lnx@...626...> <1f1e8c1b0903241636ra22317eq5573ff736d416037@...627...> Message-ID: <20090326024915.3446fccb@...431...> On Tue, 24 Mar 2009 18:35:02 -0501 M0E Lnx wrote: > Would you mind explaining how your method works? After the late reply, I can be probably more useful :-), also if it is not Gambas stuff... You can run a bash script with ftp. For example, I put every night some files on my site. Access is not anonymous, so I put username and password. They are defined in /home/username/.netrc, in this way. I think you should use command dir, because it permits to get a locale file with listing (see man ftp). Sorry if I don't test script now, but it's very late here. --- .netrc machine host.ftpserver.com login yourusername password yourpwd Then, the bash script to run #! /bin/sh ftp <<** open host.ftpserver.com dir hostdir/hostfiles /home/username/listing.txt bye ** From sourceforge-raindog2 at ...94... Thu Mar 26 02:36:32 2009 From: sourceforge-raindog2 at ...94... (Rob) Date: Wed, 25 Mar 2009 21:36:32 -0400 Subject: [Gambas-user] analyzing version numbers in gambas In-Reply-To: <20090325125412.5214182d.M0E.lnx@...626...> References: <20090325100711.309cfba3.M0E.lnx@...626...> <200903251332.29015.sourceforge-raindog2@...94...> <20090325125412.5214182d.M0E.lnx@...626...> Message-ID: <200903252136.32384.sourceforge-raindog2@...94...> On Wednesday 25 March 2009 13:54, M0E.lnx wrote: > I guess I would have thoutht there was something that could analize > something like "2.12" and "2.5" as floats and see which one is the > largest of the 2 Well, the problem with that is that 2.5 really is the larger of the two if you treat them as floats, but is the earlier version number in the numbering schemes that are currently in fashion. Rob From dosida at ...626... Thu Mar 26 04:02:51 2009 From: dosida at ...626... (Dimitris Anogiatis) Date: Wed, 25 Mar 2009 21:02:51 -0600 Subject: [Gambas-user] analyzing version numbers in gambas In-Reply-To: <200903252136.32384.sourceforge-raindog2@...94...> References: <20090325100711.309cfba3.M0E.lnx@...626...> <200903251332.29015.sourceforge-raindog2@...94...> <20090325125412.5214182d.M0E.lnx@...626...> <200903252136.32384.sourceforge-raindog2@...94...> Message-ID: <82bffccf0903252002j2728647fk32a688f1071806be@...627...> Just brainstorming here, but if you add format the float in a 2 decimal string then replace "." with "" and reconvert the string to an integer you might be able to get the right kind of comparison results. like 2.05 and 2.10 would turn into 205 and 210 In which case using max would give you the latter as the larger of the two. In the case of 2.05a and 2.05c then you'd prolly have to see which string is the larger of the two. I'd use a simple "IF a > b then print b else print a" kind of statement or the comp function to compare the 2 strings. Hope this helps Dimitris Wed, Mar 25, 2009 at 7:36 PM, Rob wrote: > On Wednesday 25 March 2009 13:54, M0E.lnx wrote: > > I guess I would have thoutht there was something that could analize > > something like "2.12" and "2.5" as floats and see which one is the > > largest of the 2 > > Well, the problem with that is that 2.5 really is the larger of the two if > you treat them as floats, but is the earlier version number in the > numbering schemes that are currently in fashion. > > Rob > > > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jbskaggs at ...1871... Thu Mar 26 06:51:51 2009 From: jbskaggs at ...1871... (jbskaggs) Date: Wed, 25 Mar 2009 22:51:51 -0700 (PDT) Subject: [Gambas-user] Odd colorchooser behavior between Gambas 2 on Ubuntu vs Wolvix (slackware 12.2) Message-ID: <22716326.post@...1379...> This should be an easy question: On ubuntu 8.1 when my program executes either: FChandScn.TextLabel1.BackColor = ColorChooser1.SelectedColor FChandScn.TextLabel2.Background = ColorChooser1.Value Then I can change the background color of me textlabels. But the same command does not work on Wolvix 1.1 or 2.0 beta- nothing happens. (this is on Gambas 2.12 and 2.11) I can change all the colors for all the components (form.background, buttons, boxes, lists, etc) except for those and form.foreground (I can change the Textlabel.foreground though). I know I had to install qt to run Gambas2 on Wolvix was there something I am missing? JB SKaggs -- View this message in context: http://www.nabble.com/Odd-colorchooser-behavior-between-Gambas-2-on-Ubuntu-vs-Wolvix-%28slackware-12.2%29-tp22716326p22716326.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Thu Mar 26 11:09:38 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Thu, 26 Mar 2009 11:09:38 +0100 Subject: [Gambas-user] Sdl.sound and Qt dependencies not satisfiable In-Reply-To: <22707549.post@...1379...> References: <22696057.post@...1379...> <22707549.post@...1379...> Message-ID: <200903261109.38531.gambas@...1...> > I have discovered that Gambas2 for ubuntu does not have a > gambas2-gb-sdl-sound package like the other distros. > > BUT I can install my program with dpkg -i and it works fine and accesses > the sdl.sound drivers okay. > > Although the Ubuntu system keeps pointing out that my program package is > broken. (such as the synaptic package manager) > > Is this a bug in Ubuntu 8.1 or what am I missing? > > JB SKaggs > I guess this is a bug in the Ubuntu packages. Maybe they put gb.sdl.sound inside the gb.sdl package? Did you try to remove the Ubuntu package and install the Debian ones instead? -- Beno?t From o.s.p at ...69... Thu Mar 26 12:45:06 2009 From: o.s.p at ...69... (o.s.p) Date: Thu, 26 Mar 2009 12:45:06 +0100 Subject: [Gambas-user] operator precedence Message-ID: <49CB6AC2.1050901@...69...> hi something is changed lately (gambas2-1916)? ' Gambas module file PUBLIC SUB Main() DIM a AS Integer = 1 DIM b AS Integer = 2 DIM r AS Integer r = TRUE PRINT NOT a, r r = a > b PRINT r r = NOT a > b PRINT r r = NOT (a > b) PRINT r END seems the not operator comes before the > evaluation... is there a reference in the docs? thanks From gambas at ...1... Thu Mar 26 13:41:35 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Thu, 26 Mar 2009 13:41:35 +0100 Subject: [Gambas-user] operator precedence In-Reply-To: <49CB6AC2.1050901@...69...> References: <49CB6AC2.1050901@...69...> Message-ID: <200903261341.35767.gambas@...1...> > hi > something is changed lately (gambas2-1916)? > > ' Gambas module file > > PUBLIC SUB Main() > > DIM a AS Integer = 1 > DIM b AS Integer = 2 > DIM r AS Integer > > r = TRUE > PRINT NOT a, r > r = a > b > PRINT r > r = NOT a > b > PRINT r > r = NOT (a > b) > PRINT r > > END > > seems the not operator comes before the > evaluation... > is there a reference in the docs? > > thanks > Nothing changed for a while. The NOT operator was always stronger than '>'. I have updated the documentation wiki with a page about "Operator Evaluation Order". Regards, -- Beno?t From weldon_gary at ...67... Thu Mar 26 15:49:51 2009 From: weldon_gary at ...67... (CelticBhoy) Date: Thu, 26 Mar 2009 07:49:51 -0700 (PDT) Subject: [Gambas-user] Unable to change valuebox contents after selecting record from combobox Message-ID: <22723578.post@...1379...> I am new to Gambas & am having a small problem with a simple stock control program. When th program starts a file is read and each record is loaded and broken down and the element values are assigned to separate arrays, a combobox is loaded with the names of the stock items. On my form when running the program I can select what record I want to change with the combobox, and the correct details for each record are displayed where they are meant to be, the problem is that I cant edit the contents of the on screen information other than the combobox contents. All the other info is stored in valuebox's with type number. Why wont it let me edit the other contents ?? -- View this message in context: http://www.nabble.com/Unable-to-change-valuebox-contents-after-selecting-record-from-combobox-tp22723578p22723578.html Sent from the gambas-user mailing list archive at Nabble.com. From jguardon at ...2035... Thu Mar 26 16:13:06 2009 From: jguardon at ...2035... (Jesus Guardon) Date: Thu, 26 Mar 2009 16:13:06 +0100 Subject: [Gambas-user] Slow Gridview creation In-Reply-To: <200901282155.37660.gambas@...1...> References: <200901282155.37660.gambas@...1...> Message-ID: <49CB9B82.6070309@...2035...> Hi all I'm trying to implement the Data event handler, but I cannot understand the way it must be done. I am locked out, sorry for my awkwardness. Can anyone provide a basic working example? I need to fill a gridview with 16000+ rows. Thanks in advance! Jes?s Benoit Minisini escribi?: > > You must do exactly what is written in the documentation: instead of setting > the data explicitely, you must implement the Data event handler. In this > event handler, you will receive the Row and Column of the cell to fill, and > in return you set the properties of the GridView.Data property to define the > cell contents. > > PUBLIC SUB MyGridView_Data(Row AS Integer, Column AS Integer) > > MyGridView.Data.Text = Row & " : " & Column > > END > From gambas.fr at ...626... Thu Mar 26 17:46:23 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 26 Mar 2009 17:46:23 +0100 Subject: [Gambas-user] Slow Gridview creation In-Reply-To: <49CB9B82.6070309@...2035...> References: <200901282155.37660.gambas@...1...> <49CB9B82.6070309@...2035...> Message-ID: <6324a42a0903260946l5dc0cce9ib68f49d883697fbd@...627...> in fact jesus , you don't feel the grid, the grid just call the visible cells content via the event. dim myarray[16000,16000] public sub _New() gridview1.Rows.Count = 16000 gridView1.Columns.Count = 16000 end public sub gridview1_data(row as integer, column as integer) gridview1.data.text = myarray[row, column] end so you don't make any change in the data in the gridview but in the array it self... it's a data/view model. a variable that store the datas and a widget that just walk on the content. 2009/3/26 Jesus Guardon : > Hi all > > I'm trying to implement the Data event handler, but I cannot understand > the way it must be done. I am locked out, sorry for my awkwardness. > Can anyone provide a basic working example? I need to fill a gridview > with 16000+ rows. > > Thanks in advance! > > Jes?s > > Benoit Minisini escribi?: > >> >> You must do exactly what is written in the documentation: instead of setting >> the data explicitely, you must implement the Data event handler. In this >> event handler, you will receive the Row and Column of the cell to fill, and >> in return you set the properties of the GridView.Data property to define the >> cell contents. >> >> PUBLIC SUB MyGridView_Data(Row AS Integer, Column AS Integer) >> >> ? MyGridView.Data.Text = Row & " : " & Column >> >> END >> > > > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Thu Mar 26 17:59:42 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 26 Mar 2009 17:59:42 +0100 Subject: [Gambas-user] analyzing version numbers in gambas In-Reply-To: <82bffccf0903252002j2728647fk32a688f1071806be@...627...> References: <20090325100711.309cfba3.M0E.lnx@...626...> <200903251332.29015.sourceforge-raindog2@...94...> <20090325125412.5214182d.M0E.lnx@...626...> <200903252136.32384.sourceforge-raindog2@...94...> <82bffccf0903252002j2728647fk32a688f1071806be@...627...> Message-ID: <6324a42a0903260959t1f47105ew65521d51bfd7f044@...627...> Dim arf As New Float[] Dim f As Float Dim s As String For Each s In Split("1.2,1.4,1.6,1.10,1.16,1.20,1.35,1.5,1.3,1.1") arf.add(s) Next arf.Sort For Each f In arf Print f Next Regards, Fabien Bodard From weldon_gary at ...67... Thu Mar 26 18:16:11 2009 From: weldon_gary at ...67... (CelticBhoy) Date: Thu, 26 Mar 2009 10:16:11 -0700 (PDT) Subject: [Gambas-user] Unable to change valuebox contents after selecting record from combobox In-Reply-To: <22723578.post@...1379...> References: <22723578.post@...1379...> Message-ID: <22726729.post@...1379...> This is the code I have used to assign the values to the valuebox's :- PUBLIC SUB Amend_Change() DIM iRef AS Integer iRef = ItemName.Index PackSize = PSize[iRef] SalesDiv.Value = SDiv[iRef] StockOnHand.Value = SOnHand[iRef] ItemCost1.Value = ICost1[iRef] ItemCost2.Value = ICost2[iRef] ItemCost3.Value = ICost3[iRef] ItemCost4.Value = ICost4[iRef] BarSelling.Value = BSell[iRef] OSSelling.Value = OSSell[iRef] OSMulti.Value = OSMult[iRef] MultiSize.Value = MSize[iRef] END All the arrays are defined as FLOAT type. -- View this message in context: http://www.nabble.com/Unable-to-change-valuebox-contents-after-selecting-record-from-combobox-tp22723578p22726729.html Sent from the gambas-user mailing list archive at Nabble.com. From m0e.lnx at ...626... Thu Mar 26 18:07:13 2009 From: m0e.lnx at ...626... (M0E.lnx) Date: Thu, 26 Mar 2009 12:07:13 -0500 Subject: [Gambas-user] analyzing version numbers in gambas In-Reply-To: <6324a42a0903260959t1f47105ew65521d51bfd7f044@...627...> References: <20090325100711.309cfba3.M0E.lnx@...626...> <200903251332.29015.sourceforge-raindog2@...94...> <20090325125412.5214182d.M0E.lnx@...626...> <200903252136.32384.sourceforge-raindog2@...94...> <82bffccf0903252002j2728647fk32a688f1071806be@...627...> <6324a42a0903260959t1f47105ew65521d51bfd7f044@...627...> Message-ID: <20090326120713.e7eea3ab.M0E.lnx@...626...> I get this when I run this code 1.1 1.1 1.16 1.2 1.2 1.3 1.35 1.4 1.5 1.6 Notice how it's listing "1.1" and "1.2" twice, this is because of the entries "1.1" and "1.10" These would in fact need to be different I guess there really is no easy way other than splitting each version string into an array. For instance DIM arg1, arg2 as string[] dim s as string arg1 = split("1.1", ".") arg2 = split("1.16",".") if val(arg1[0]) = val(arg2[0]) THEN ' same major version number IF val(arg1[1]) > val(arg2[1]) then return val(arg1[1]) ELSE return val(arg2[1]) END IF Maybe some extended version of something like that From jussi.lahtinen at ...626... Thu Mar 26 19:01:07 2009 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 26 Mar 2009 20:01:07 +0200 Subject: [Gambas-user] Floodfill / pie chart Message-ID: <384d3900903261101pc28a344mdb219f4dca7a6a3@...627...> Hi! I need pie chart in my application, and I have old vb6 code that does what I need, but it is based on floodfill. Do Gambas have any equivalent function? Or alternatively, method to draw filled sectors? I'm using Gambas3. Thanks! Jussi From linuxos at ...1896... Thu Mar 26 19:54:17 2009 From: linuxos at ...1896... (Olivier Cruilles) Date: Thu, 26 Mar 2009 19:54:17 +0100 Subject: [Gambas-user] PB using tableview object Message-ID: Hi, I'm trying to use the Tableview object in a project and I have 2 Columns configured. I have configured the TableView to be able to edit each Cell in the right column and lock the left Column but in real, by using the key, in edition mode, I can always acces to the left Column that is locked and write text inside. I don't know how to lock completly the left column as in the Gambas IDE => Object Properties Panel ? Does anyone can help me please ? Olivier Cruilles Mail: linuxos at ...1896... From jbskaggs at ...1871... Thu Mar 26 20:57:56 2009 From: jbskaggs at ...1871... (jbskaggs) Date: Thu, 26 Mar 2009 12:57:56 -0700 (PDT) Subject: [Gambas-user] Sdl.sound and Qt dependencies not satisfiable In-Reply-To: <200903261109.38531.gambas@...1...> References: <22696057.post@...1379...> <22707549.post@...1379...> <200903261109.38531.gambas@...1...> Message-ID: <22729920.post@...1379...> I checked the Deban contents and theses are the components listed below: I do not see gambas2-gb-sdl-sound gambas2 Complete visual development environment for Gambas gambas2-dev Gambas compilation tools gambas2-doc Gambas documentation gambas2-gb-chart The Gambas charting component gambas2-gb-compress The Gambas compression component gambas2-gb-compress-bzlib2 The Gambas bzlib2 component gambas2-gb-compress-zlib The Gambas zlib compression component gambas2-gb-crypt The Gambas crypt encription component gambas2-gb-db Gambas database access common libraries gambas2-gb-db-firebird The Firebird driver for the Gambas database component gambas2-gb-db-form Gambas database bound controls gambas2-gb-db-mysql The MySQL driver for the Gambas database component gambas2-gb-db-odbc The Gambas ODBC driver database component gambas2-gb-db-postgresql The PostgreSQL driver for the Gambas database component gambas2-gb-db-sqlite The Gambas sqlite3 driver database component gambas2-gb-db-sqlite2 The Gambas sqlite2 driver database component gambas2-gb-desktop Gambas Portland project compatibility component gambas2-gb-form A gambas native form component gambas2-gb-form-dialog A gambas native mdi form component gambas2-gb-form-mdi A gambas native mdi form component gambas2-gb-gtk The Gambas gtk component gambas2-gb-gtk-ext The Gambas extended gtk GUI component gambas2-gb-gtk-svg The Gambas SVG importing component gambas2-gb-gui The graphical toolkit selector component gambas2-gb-image A Gambas image effects component gambas2-gb-info A Gambas information component gambas2-gb-net The Gambas networking component gambas2-gb-net-curl The Gambas advanced networking component gambas2-gb-net-smtp Gambas component to use smtp protocol gambas2-gb-opengl The OpenGL component for Gambas gambas2-gb-pcre The Gambas regexp component gambas2-gb-pdf The Gambas pdf component gambas2-gb-qt The Gambas Qt GUI component gambas2-gb-qt-ext The Gambas extended Qt GUI component gambas2-gb-qt-kde The Gambas KDE component gambas2-gb-qt-kde-html The Gambas KHTML component gambas2-gb-qt-opengl OpenGL with QT toolkit Gambas component gambas2-gb-report Gambas report component gambas2-gb-sdl The Gambas SDL component gambas2-gb-settings Gambas utilities class gambas2-gb-v4l The Gambas video for Linux component gambas2-gb-vb The Gambas to Visual Basic(tm) compatibility component gambas2-gb-web Gambas CGI for web applications component gambas2-gb-xml Gambas XML component gambas2-gb-xml-rpc Gambas RPC component gambas2-gb-xml-xslt Gambas XSLT component gambas2-ide Visual development environment for the Gambas programming language gambas2-runtime The Gambas runtime gambas2-script The Gambas scripter JB Skaggs Bugzilla from gambas at ...1... wrote: > >> I have discovered that Gambas2 for ubuntu does not have a >> gambas2-gb-sdl-sound package like the other distros. >> >> BUT I can install my program with dpkg -i and it works fine and accesses >> the sdl.sound drivers okay. >> >> Although the Ubuntu system keeps pointing out that my program package is >> broken. (such as the synaptic package manager) >> >> Is this a bug in Ubuntu 8.1 or what am I missing? >> >> JB SKaggs >> > > I guess this is a bug in the Ubuntu packages. Maybe they put gb.sdl.sound > inside the gb.sdl package? Did you try to remove the Ubuntu package and > install the Debian ones instead? > > -- > Beno?t > > > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://www.nabble.com/Sdl.sound-and-Qt-dependencies-not-satisfiable-tp22696057p22729920.html Sent from the gambas-user mailing list archive at Nabble.com. From charles at ...1784... Thu Mar 26 22:46:43 2009 From: charles at ...1784... (charlesg) Date: Thu, 26 Mar 2009 14:46:43 -0700 (PDT) Subject: [Gambas-user] Unable to change valuebox contents after selecting record from combobox In-Reply-To: <22726729.post@...1379...> References: <22723578.post@...1379...> <22726729.post@...1379...> Message-ID: <22731764.post@...1379...> Hi Until your post I was not aware of valuebox at all! After looking at the documentation I am not sure I am much the wiser.:-(( Valuebox is a specialisation of a textbox to allow for formatted input. I think it is easier, in your case, to use textboxes and control your own formatting with format(), str(), val() and suchlike. rgds -- View this message in context: http://www.nabble.com/Unable-to-change-valuebox-contents-after-selecting-record-from-combobox-tp22723578p22731764.html Sent from the gambas-user mailing list archive at Nabble.com. From jguardon at ...2035... Fri Mar 27 00:17:07 2009 From: jguardon at ...2035... (Jesus Guardon) Date: Fri, 27 Mar 2009 00:17:07 +0100 Subject: [Gambas-user] Slow Gridview creation In-Reply-To: <6324a42a0903260946l5dc0cce9ib68f49d883697fbd@...627...> References: <200901282155.37660.gambas@...1...> <49CB9B82.6070309@...2035...> <6324a42a0903260946l5dc0cce9ib68f49d883697fbd@...627...> Message-ID: <49CC0CF3.8010500@...2035...> Thanks for reply, but still not clear... Your example only draws a grid with empty cells. I can't figure out how to fill the grid with a database result object, even with a simple array. Please, open my eyes!! :-(( Jesus Fabien Bodard escribi?: > in fact jesus , you don't feel the grid, > the grid just call the visible cells content via the event. > > dim myarray[16000,16000] > > public sub _New() > > gridview1.Rows.Count = 16000 > gridView1.Columns.Count = 16000 > > end > > > public sub gridview1_data(row as integer, column as integer) > > gridview1.data.text = myarray[row, column] > > end > > > so you don't make any change in the data in the gridview but in the > array it self... > > it's a data/view model. a variable that store the datas and a widget > that just walk on the content. > > 2009/3/26 Jesus Guardon : >> Hi all >> >> I'm trying to implement the Data event handler, but I cannot understand >> the way it must be done. I am locked out, sorry for my awkwardness. >> Can anyone provide a basic working example? I need to fill a gridview >> with 16000+ rows. >> >> Thanks in advance! >> >> Jes?s >> >> Benoit Minisini escribi?: >> >>> You must do exactly what is written in the documentation: instead of setting >>> the data explicitely, you must implement the Data event handler. In this >>> event handler, you will receive the Row and Column of the cell to fill, and >>> in return you set the properties of the GridView.Data property to define the >>> cell contents. >>> >>> PUBLIC SUB MyGridView_Data(Row AS Integer, Column AS Integer) >>> >>> MyGridView.Data.Text = Row & " : " & Column >>> >>> END >>> >> >> ------------------------------------------------------------------------------ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From carlitos.hllh at ...626... Fri Mar 27 01:29:35 2009 From: carlitos.hllh at ...626... (Carlos Humberto Llumiquinga Hidalgo) Date: Thu, 26 Mar 2009 19:29:35 -0500 Subject: [Gambas-user] Problem with gambas.. Message-ID: Hi all.... I have a problem with a code on gambas.. I'm trying.. this code.. EXEC ["rm", application.Path & "/imagenes/*.*"] ... just I wanna erase the content of images folder. But I got an error.. on console... rm: can't erase ?/home/carlosh/Prueba/imagenes/*.*?: File don't exists Help Please.. what's wrong.. ???? Thanks... Carlos H. From dosida at ...626... Fri Mar 27 03:36:52 2009 From: dosida at ...626... (Dimitris Anogiatis) Date: Thu, 26 Mar 2009 20:36:52 -0600 Subject: [Gambas-user] Problem with gambas.. In-Reply-To: References: Message-ID: <82bffccf0903261936x6e7cd821v302d81e8d71ffde4@...627...> You either are trying to delete a folder that doesn't exist or it exists but you didn't spell it correctly try the isDIR function to determine if the folder you're looking exists indeed Documentation for the isDIR function is located here: http://gambasdoc.org/help/lang/isdir?v3 Hope that helps. Dimitris On Thu, Mar 26, 2009 at 6:29 PM, Carlos Humberto Llumiquinga Hidalgo < carlitos.hllh at ...626...> wrote: > Hi all.... > > I have a problem with a code on gambas.. > > I'm trying.. this code.. EXEC ["rm", application.Path & "/imagenes/*.*"] > ... just I wanna erase the content of images folder. > > But I got an error.. on console... rm: can't erase > ?/home/carlosh/Prueba/imagenes/*.*?: File don't exists > > Help Please.. what's wrong.. ???? > > Thanks... > Carlos H. > > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From carlitos.hllh at ...626... Fri Mar 27 04:13:27 2009 From: carlitos.hllh at ...626... (Carlos Humberto Llumiquinga Hidalgo) Date: Thu, 26 Mar 2009 22:13:27 -0500 Subject: [Gambas-user] Problem with gambas.. In-Reply-To: <82bffccf0903261936x6e7cd821v302d81e8d71ffde4@...627...> References: <82bffccf0903261936x6e7cd821v302d81e8d71ffde4@...627...> Message-ID: Hi Dimitris... the folder exist.. and the spell is correctly... that was the first what I checked.. By the way it's not empty... 2009/3/26 Dimitris Anogiatis > You either are trying to delete a folder that doesn't exist or it exists > but > you didn't spell it correctly > > try the isDIR function to determine if the folder you're looking exists > indeed > > Documentation for the isDIR function is located here: > http://gambasdoc.org/help/lang/isdir?v3 > > Hope that helps. > Dimitris > > On Thu, Mar 26, 2009 at 6:29 PM, Carlos Humberto Llumiquinga Hidalgo < > carlitos.hllh at ...626...> wrote: > > > Hi all.... > > > > I have a problem with a code on gambas.. > > > > I'm trying.. this code.. EXEC ["rm", application.Path & "/imagenes/*.*"] > > ... just I wanna erase the content of images folder. > > > > But I got an error.. on console... rm: can't erase > > ?/home/carlosh/Prueba/imagenes/*.*?: File don't exists > > > > Help Please.. what's wrong.. ???? > > > > Thanks... > > Carlos H. > > > > > ------------------------------------------------------------------------------ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From rterry at ...1946... Fri Mar 27 04:26:52 2009 From: rterry at ...1946... (richard terry) Date: Fri, 27 Mar 2009 14:26:52 +1100 Subject: [Gambas-user] Problem with gambas.. In-Reply-To: References: <82bffccf0903261936x6e7cd821v302d81e8d71ffde4@...627...> Message-ID: <200903271426.52702.rterry@...1946...> On Fri, 27 Mar 2009 02:13:27 pm Carlos Humberto Llumiquinga Hidalgo wrote: > Hi Dimitris... the folder exist.. and the spell is correctly... that was > the first what I checked.. > By the way it's not empty... > > 2009/3/26 Dimitris Anogiatis > > > You either are trying to delete a folder that doesn't exist or it exists > > but > > you didn't spell it correctly > > > > try the isDIR function to determine if the folder you're looking exists > > indeed > > > > Documentation for the isDIR function is located here: > > http://gambasdoc.org/help/lang/isdir?v3 > > > > Hope that helps. > > Dimitris > > > > On Thu, Mar 26, 2009 at 6:29 PM, Carlos Humberto Llumiquinga Hidalgo < > > > > carlitos.hllh at ...626...> wrote: > > > Hi all.... > > > > > > I have a problem with a code on gambas.. > > > > > > I'm trying.. this code.. EXEC ["rm", application.Path & > > > "/imagenes/*.*"] ... just I wanna erase the content of images folder. > > > > > > But I got an error.. on console... rm: can't erase > > > ?/home/carlosh/Prueba/imagenes/*.*?: File don't exists > > > > > > Help Please.. what's wrong.. ???? Try putting a print statement in there e.g PRINT "rm " & application.Path & "/imagenes/*.*" copy the terminal output from this into a real linux terminal and see what error message you get. or try your exact command out first in a terminal before putting it into a gambas string. Also check the file permissions on the files in that directory. Just a suggestion in case you've not tried it. richard . > > > > > > Thanks... > > > Carlos H. > > > > ------------------------------------------------------------------------- > >----- > > > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------- > >----- _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > --------------------------------------------------------------------------- >--- _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From iecltd at ...2113... Fri Mar 27 07:13:42 2009 From: iecltd at ...2113... (Rodney Rundstrom) Date: Fri, 27 Mar 2009 19:13:42 +1300 Subject: [Gambas-user] Dynamic objects In-Reply-To: <1f1e8c1b0903240602n731c7edboe56e6e10f49eeb5c@...627...> Message-ID: <3E4AA9C9DD6D4E7899E7059BA4944540@...2114...> Thanks I now can dynamically create object not sure where the me in Textbox(me) come from but it all works well -----Original Message----- From: M0E Lnx [mailto:m0e.lnx at ...626...] Sent: Wednesday, 25 March 2009 2:03 a.m. To: mailing list for gambas users Subject: Re: [Gambas-user] Dynamic objects I have no experience with mysql at all, but you can easily create this textbox PUBLIC SUB Read_DBASE() DIM sList as string DIM sResults as String[] DIM tb as TextBox DIM sItem as String DIM i as integer dim y as integer ' This is where you get your values from mysql and let's assume you put them into a raw string (sList) ' After that you creat an array with the results sResults = split(sList," ") ' or however your values may be separated FOR i = 0 to sResults.Max tb = new TextBox(me) as "Textbox" WITH tb .Text = sResults[i] .width = 100 .height = 24 .x = 4 .y = y END WITH y = y + tb.height + 4 NEXT END ---------------------------------------------------------------------------- -- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From eilert-sprachen at ...221... Fri Mar 27 08:48:56 2009 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Fri, 27 Mar 2009 08:48:56 +0100 Subject: [Gambas-user] Slow Gridview creation In-Reply-To: <49CC0CF3.8010500@...2035...> References: <200901282155.37660.gambas@...1...> <49CB9B82.6070309@...2035...> <6324a42a0903260946l5dc0cce9ib68f49d883697fbd@...627...> <49CC0CF3.8010500@...2035...> Message-ID: <49CC84E8.3000206@...221...> No, you don't fill it, it fills itself :-) As soon as you change anything in the gridview (number of rows/columns for instance) or there is any event forcing it to rewrite its contents (the user switching screens or a .Refresh by your code), it jumps into the _Data event for every cell and reloads them. So you just have to keep the contents prepared for it in the array in the background as Fabien has shown: dim myarray[16000,16000] Here is where you store your data for each cell. As soon as you or your code gives the gridview a reason to start updating (in Fabien's example: Rows.Count and Columns.Count), it will jump into the _Data event and fetch its data for every cell from there: public sub gridview1_data(row as integer, column as integer) gridview1.data.text = myarray[row, column] end Hope it helps... Rolf Jesus Guardon schrieb: > Thanks for reply, but still not clear... > > Your example only draws a grid with empty cells. I can't figure out how > to fill the grid with a database result object, even with a simple > array. Please, open my eyes!! :-(( > > Jesus > > Fabien Bodard escribi?: >> in fact jesus , you don't feel the grid, >> the grid just call the visible cells content via the event. >> >> dim myarray[16000,16000] >> >> public sub _New() >> >> gridview1.Rows.Count = 16000 >> gridView1.Columns.Count = 16000 >> >> end >> >> >> public sub gridview1_data(row as integer, column as integer) >> >> gridview1.data.text = myarray[row, column] >> >> end >> >> >> so you don't make any change in the data in the gridview but in the >> array it self... >> >> it's a data/view model. a variable that store the datas and a widget >> that just walk on the content. >> >> 2009/3/26 Jesus Guardon : >>> Hi all >>> >>> I'm trying to implement the Data event handler, but I cannot understand >>> the way it must be done. I am locked out, sorry for my awkwardness. >>> Can anyone provide a basic working example? I need to fill a gridview >>> with 16000+ rows. >>> >>> Thanks in advance! >>> >>> Jes?s >>> >>> Benoit Minisini escribi?: >>> >>>> You must do exactly what is written in the documentation: instead of setting >>>> the data explicitely, you must implement the Data event handler. In this >>>> event handler, you will receive the Row and Column of the cell to fill, and >>>> in return you set the properties of the GridView.Data property to define the >>>> cell contents. >>>> >>>> PUBLIC SUB MyGridView_Data(Row AS Integer, Column AS Integer) >>>> >>>> MyGridView.Data.Text = Row & " : " & Column >>>> >>>> END >>>> >>> ------------------------------------------------------------------------------ >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> ------------------------------------------------------------------------------ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From Mike at ...680... Fri Mar 27 09:43:19 2009 From: Mike at ...680... (Mike Keehan) Date: Fri, 27 Mar 2009 08:43:19 +0000 Subject: [Gambas-user] Problem with gambas.. In-Reply-To: References: Message-ID: <49CC91A7.1040403@...680...> Carlos Humberto Llumiquinga Hidalgo wrote: > Hi all.... > > I have a problem with a code on gambas.. > > I'm trying.. this code.. EXEC ["rm", application.Path & "/imagenes/*.*"] > ... just I wanna erase the content of images folder. > > But I got an error.. on console... rm: can't erase > ?/home/carlosh/Prueba/imagenes/*.*?: File don't exists > > Help Please.. what's wrong.. ???? > Hi Carlos, Try using SHELL instead of EXEC. The *.* expression gets expanded by the Shell not by individual programs like rm. Mike. From gambas at ...1... Fri Mar 27 11:28:44 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Fri, 27 Mar 2009 11:28:44 +0100 Subject: [Gambas-user] PB using tableview object In-Reply-To: References: Message-ID: <200903271128.45054.gambas@...1...> > Hi, > > I'm trying to use the Tableview object in a project and I have 2 > Columns configured. > > I have configured the TableView to be able to edit each Cell in the > right column and lock the left Column > but in real, by using the key, in edition mode, I can always acces to > the left Column that is locked and write text inside. > > > I don't know how to lock completly the left column as in the Gambas > IDE => Object Properties Panel ? > > Does anyone can help me please ? > > Olivier Cruilles > Mail: linuxos at ...1896... > You are not very clear: please provide your source code! The TableView won't edit any cell unless you explicitely call its Edit (or EditWith) method during a Select event. Just don't call Edit() if the current column is zero. And the object properties panel uses a GridView, not a TableView. Regards, -- Beno?t From gambas at ...1... Fri Mar 27 11:31:48 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Fri, 27 Mar 2009 11:31:48 +0100 Subject: [Gambas-user] Floodfill / pie chart In-Reply-To: <384d3900903261101pc28a344mdb219f4dca7a6a3@...627...> References: <384d3900903261101pc28a344mdb219f4dca7a6a3@...627...> Message-ID: <200903271131.48283.gambas@...1...> > Hi! > > I need pie chart in my application, and I have old vb6 code that does > what I need, but it is based on floodfill. > Do Gambas have any equivalent function? Or alternatively, method to > draw filled sectors? > I'm using Gambas3. > Thanks! > > > Jussi > I think that Draw.Ellipse() will draw what you need by using its last two optional arguments. Regards, -- Beno?t From gambas at ...1... Fri Mar 27 11:32:41 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Fri, 27 Mar 2009 11:32:41 +0100 Subject: [Gambas-user] Unable to change valuebox contents after selecting record from combobox In-Reply-To: <22723578.post@...1379...> References: <22723578.post@...1379...> Message-ID: <200903271132.42007.gambas@...1...> > I am new to Gambas & am having a small problem with a simple stock control > program. When th program starts a file is read and each record is loaded > and broken down and the element values are assigned to separate arrays, a > combobox is loaded with the names of the stock items. On my form when > running the program I can select what record I want to change with the > combobox, and the correct details for each record are displayed where they > are meant to be, the problem is that I cant edit the contents of the on > screen information other than the combobox contents. All the other info is > stored in valuebox's with type number. Why wont it let me edit the other > contents ?? Can you provide your full source code? -- Beno?t From gambas at ...1... Fri Mar 27 11:35:38 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Fri, 27 Mar 2009 11:35:38 +0100 Subject: [Gambas-user] Sdl.sound and Qt dependencies not satisfiable In-Reply-To: <22729920.post@...1379...> References: <22696057.post@...1379...> <200903261109.38531.gambas@...1...> <22729920.post@...1379...> Message-ID: <200903271135.38939.gambas@...1...> > I checked the Deban contents and theses are the components listed below: > > I do not see gambas2-gb-sdl-sound > > gambas2 > Complete visual development environment for Gambas > gambas2-dev > Gambas compilation tools > gambas2-doc > Gambas documentation > gambas2-gb-chart > The Gambas charting component > gambas2-gb-compress > The Gambas compression component > gambas2-gb-compress-bzlib2 > The Gambas bzlib2 component > gambas2-gb-compress-zlib > The Gambas zlib compression component > gambas2-gb-crypt > The Gambas crypt encription component > gambas2-gb-db > Gambas database access common libraries > gambas2-gb-db-firebird > The Firebird driver for the Gambas database component > gambas2-gb-db-form > Gambas database bound controls > gambas2-gb-db-mysql > The MySQL driver for the Gambas database component > gambas2-gb-db-odbc > The Gambas ODBC driver database component > gambas2-gb-db-postgresql > The PostgreSQL driver for the Gambas database component > gambas2-gb-db-sqlite > The Gambas sqlite3 driver database component > gambas2-gb-db-sqlite2 > The Gambas sqlite2 driver database component > gambas2-gb-desktop > Gambas Portland project compatibility component > gambas2-gb-form > A gambas native form component > gambas2-gb-form-dialog > A gambas native mdi form component > gambas2-gb-form-mdi > A gambas native mdi form component > gambas2-gb-gtk > The Gambas gtk component > gambas2-gb-gtk-ext > The Gambas extended gtk GUI component > gambas2-gb-gtk-svg > The Gambas SVG importing component > gambas2-gb-gui > The graphical toolkit selector component > gambas2-gb-image > A Gambas image effects component > gambas2-gb-info > A Gambas information component > gambas2-gb-net > The Gambas networking component > gambas2-gb-net-curl > The Gambas advanced networking component > gambas2-gb-net-smtp > Gambas component to use smtp protocol > gambas2-gb-opengl > The OpenGL component for Gambas > gambas2-gb-pcre > The Gambas regexp component > gambas2-gb-pdf > The Gambas pdf component > gambas2-gb-qt > The Gambas Qt GUI component > gambas2-gb-qt-ext > The Gambas extended Qt GUI component > gambas2-gb-qt-kde > The Gambas KDE component > gambas2-gb-qt-kde-html > The Gambas KHTML component > gambas2-gb-qt-opengl > OpenGL with QT toolkit Gambas component > gambas2-gb-report > Gambas report component > gambas2-gb-sdl > The Gambas SDL component > gambas2-gb-settings > Gambas utilities class > gambas2-gb-v4l > The Gambas video for Linux component > gambas2-gb-vb > The Gambas to Visual Basic(tm) compatibility component > gambas2-gb-web > Gambas CGI for web applications component > gambas2-gb-xml > Gambas XML component > gambas2-gb-xml-rpc > Gambas RPC component > gambas2-gb-xml-xslt > Gambas XSLT component > gambas2-ide > Visual development environment for the Gambas programming language > gambas2-runtime > The Gambas runtime > gambas2-script > The Gambas scripter > > JB Skaggs > This is a forgotten package: in the Gambas source code directory, one package must me made for each gb.* directory, and there is a gb.sdl.sound directory. Why this package is missing, I don't know. You must ask the Debian packager! -- Beno?t From gambas.fr at ...626... Fri Mar 27 12:22:00 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 27 Mar 2009 12:22:00 +0100 Subject: [Gambas-user] Floodfill / pie chart In-Reply-To: <200903271131.48283.gambas@...1...> References: <384d3900903261101pc28a344mdb219f4dca7a6a3@...627...> <200903271131.48283.gambas@...1...> Message-ID: <6324a42a0903270422n5b4d9bc4oe83950f9498bcae0@...627...> hi jussi, can you send me the vb code ? i'm working on gb.chart component... it may interest me just to complete my component (this component work fine only on svn version) thanks Le 27 mars 2009 11:31, Beno?t Minisini a ?crit : >> Hi! >> >> I need pie chart in my application, and I have old vb6 code that does >> what I need, but it is based on floodfill. >> Do Gambas have any equivalent function? Or alternatively, method to >> draw filled sectors? >> I'm using Gambas3. >> Thanks! >> >> >> Jussi >> > > I think that Draw.Ellipse() will draw what you need by using its last two > optional arguments. > > Regards, > > -- > Beno?t > > > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Fri Mar 27 12:56:11 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 27 Mar 2009 12:56:11 +0100 Subject: [Gambas-user] Slow Gridview creation In-Reply-To: <49CC84E8.3000206@...221...> References: <200901282155.37660.gambas@...1...> <49CB9B82.6070309@...2035...> <6324a42a0903260946l5dc0cce9ib68f49d883697fbd@...627...> <49CC0CF3.8010500@...2035...> <49CC84E8.3000206@...221...> Message-ID: <6324a42a0903270456u7bcc005ft467ad35886c5ac39@...627...> i hope this help you , it's a short example of the gridview capabilities in dynamic mode. (at my feel, it's more powerfull than the static one) -------------- next part -------------- A non-text attachment was scrubbed... Name: demotableview-0.0.1.tar.gz Type: application/x-gzip Size: 8401 bytes Desc: not available URL: From jguardon at ...2035... Fri Mar 27 14:24:12 2009 From: jguardon at ...2035... (Jesus Guardon) Date: Fri, 27 Mar 2009 14:24:12 +0100 Subject: [Gambas-user] Slow Gridview creation In-Reply-To: <6324a42a0903270456u7bcc005ft467ad35886c5ac39@...627...> References: <200901282155.37660.gambas@...1...> <49CB9B82.6070309@...2035...> <6324a42a0903260946l5dc0cce9ib68f49d883697fbd@...627...> <49CC0CF3.8010500@...2035...> <49CC84E8.3000206@...221...> <6324a42a0903270456u7bcc005ft467ad35886c5ac39@...627...> Message-ID: <49CCD37C.7000901@...2035...> Hi again Now it's much clearer. Thanks Rolf and Fabien for your help, I think now I will be able to get it working. Sorry for my ignorance. Best regards Jes?s Fabien Bodard escribi?: > i hope this help you , it's a short example of the gridview > capabilities in dynamic mode. (at my feel, it's more powerfull than > the static one) > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > > > ------------------------------------------------------------------------ > > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From rolf.frogs at ...221... Fri Mar 27 16:03:29 2009 From: rolf.frogs at ...221... (Rolf Schmidt) Date: Fri, 27 Mar 2009 16:03:29 +0100 Subject: [Gambas-user] Problem with gambas.. In-Reply-To: References: Message-ID: <200903271603.32977.rolf.frogs@...221...> Hi Carlos > I have a problem with a code on gambas.. > > I'm trying.. this code.. EXEC ["rm", application.Path & "/imagenes/*.*"] > ... just I wanna erase the content of images folder. > > But I got an error.. on console... rm: can't erase > ?/home/carlosh/Prueba/imagenes/*.*?: File don't exists The exex comand runs without a shell and so there is no envrionment and "rm" will not be found in the local directory. Either you use rm with a full path or use the shell command. HTH Rolf -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part. URL: From weldon_gary at ...67... Fri Mar 27 16:12:02 2009 From: weldon_gary at ...67... (CelticBhoy) Date: Fri, 27 Mar 2009 08:12:02 -0700 (PDT) Subject: [Gambas-user] Unable to change valuebox contents after selecting record from combobox In-Reply-To: <200903271132.42007.gambas@...1...> References: <22723578.post@...1379...> <200903271132.42007.gambas@...1...> Message-ID: <22743699.post@...1379...> Thanx for the reply's but I managed to sort it, it was a problem with the combobox.index returning a negative number, and using the wrong event ( I had used change, worked with click ). After finding the problems it was simple to sort. Thanx again for quick reply's. -- View this message in context: http://www.nabble.com/Unable-to-change-valuebox-contents-after-selecting-record-from-combobox-tp22723578p22743699.html Sent from the gambas-user mailing list archive at Nabble.com. From jguardon at ...2035... Fri Mar 27 17:29:43 2009 From: jguardon at ...2035... (Jesus Guardon) Date: Fri, 27 Mar 2009 17:29:43 +0100 Subject: [Gambas-user] Slow Gridview creation In-Reply-To: <49CCD37C.7000901@...2035...> References: <200901282155.37660.gambas@...1...> <49CB9B82.6070309@...2035...> <6324a42a0903260946l5dc0cce9ib68f49d883697fbd@...627...> <49CC0CF3.8010500@...2035...> <49CC84E8.3000206@...221...> <6324a42a0903270456u7bcc005ft467ad35886c5ac39@...627...> <49CCD37C.7000901@...2035...> Message-ID: <49CCFEF7.3070805@...2035...> Still nothing... Data event seems to be not fired. Please, check the modified example: http://www.ea7dfh.es/demotableview.tar.gz This includes the sqlite3 database and is too big to attach in the e-mail.( ~600 Kb) What I'm doing wrong? Regards and thanks for your patience Jes?s From gambas.fr at ...626... Fri Mar 27 19:18:11 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 27 Mar 2009 19:18:11 +0100 Subject: [Gambas-user] Slow Gridview creation In-Reply-To: <49CCFEF7.3070805@...2035...> References: <200901282155.37660.gambas@...1...> <49CB9B82.6070309@...2035...> <6324a42a0903260946l5dc0cce9ib68f49d883697fbd@...627...> <49CC0CF3.8010500@...2035...> <49CC84E8.3000206@...221...> <6324a42a0903270456u7bcc005ft467ad35886c5ac39@...627...> <49CCD37C.7000901@...2035...> <49CCFEF7.3070805@...2035...> Message-ID: <6324a42a0903271118r20a1fc0di317f9d58a9beadc8@...627...> simply the handle name is not good... you have named your gridview "gv" and not "GridView1"... it's an usual copy&paste error ;-) PUBLIC SUB gv_Data(Row as integer, Column as integer) you have put the column between comma... this pactice is for the translated strings... but if you translate column headers ... they will not match with the db entries... i think it will be better to use a separate string array to store the fields name. private $aMyFields as string[]= ["field1", "field2", "Field3", "Field4"] public sub _new() gv.columns.count = $aMyFields.count gv.columns[0].text = "id" gv.Columns[1].text = ("name") ' that can be "nom" in french etc... public sub gv_data(... result.moveto(row) gv.data.text=result[$aMyFields[column]] Regards, Fabien 2009/3/27 Jesus Guardon : > Still nothing... Data event seems to be not fired. > > Please, check the modified example: > > http://www.ea7dfh.es/demotableview.tar.gz > > This includes the sqlite3 database and is too big to attach in the > e-mail.( ~600 Kb) > > What I'm doing wrong? > > Regards and thanks for your patience > > Jes?s > > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From m0e.lnx at ...626... Fri Mar 27 19:40:07 2009 From: m0e.lnx at ...626... (M0E.lnx) Date: Fri, 27 Mar 2009 13:40:07 -0500 Subject: [Gambas-user] My first rodeo in using the network component In-Reply-To: <20090326024915.3446fccb@...431...> References: <20090324154915.15f48a46.M0E.lnx@...626...> <1f1e8c1b0903241636ra22317eq5573ff736d416037@...627...> <20090326024915.3446fccb@...431...> Message-ID: <20090327134007.d761efac.M0E.lnx@...626...> But there has to be a way to do this using gambas objects, at least I would imagine. Of couse, I could use external commands to to get the results I want. Like curl -G store the output in a string or string[] and work my way off of there. but I was kind of hoping there was a way to do this internally using pure gambas objects/code. From jguardon at ...2035... Fri Mar 27 21:05:42 2009 From: jguardon at ...2035... (Jesus Guardon) Date: Fri, 27 Mar 2009 21:05:42 +0100 Subject: [Gambas-user] Slow Gridview creation In-Reply-To: <6324a42a0903271118r20a1fc0di317f9d58a9beadc8@...627...> References: <200901282155.37660.gambas@...1...> <49CB9B82.6070309@...2035...> <6324a42a0903260946l5dc0cce9ib68f49d883697fbd@...627...> <49CC0CF3.8010500@...2035...> <49CC84E8.3000206@...221...> <6324a42a0903270456u7bcc005ft467ad35886c5ac39@...627...> <49CCD37C.7000901@...2035...> <49CCFEF7.3070805@...2035...> <6324a42a0903271118r20a1fc0di317f9d58a9beadc8@...627...> Message-ID: <49CD3196.5040200@...2035...> Fabien Bodard escribi?: > simply the handle name is not good... you have named your gridview > "gv" and not "GridView1"... it's an usual copy&paste error ;-) > Ha ha... it's my mistake. Finally I get it working, really really fast method. A lot of thanks for your help, I was mind-closed for a while! Here is the final class: Thanks again Jes?s -------------- next part -------------- A non-text attachment was scrubbed... Name: frmGridView.class Type: application/java-vm Size: 2142 bytes Desc: not available URL: From jbskaggs at ...1871... Fri Mar 27 21:06:41 2009 From: jbskaggs at ...1871... (jbskaggs) Date: Fri, 27 Mar 2009 13:06:41 -0700 (PDT) Subject: [Gambas-user] Sdl.sound and Qt dependencies not satisfiable In-Reply-To: <22696057.post@...1379...> References: <22696057.post@...1379...> Message-ID: <22746201.post@...1379...> Well I install 2.12 on 64 bit ubuntu via ./configure /make install and My LORD what a pain if your are missing dependencies! Its like some type of fraternity treasure hunt and the dependencies are not easy to find or even neccessarily easy to define especially if the install is looking for a certian version no longer maintained. Anyway it is all up and running again and I now have 2.12 on Ubuntu 64bit Wolvix 2.0 beta and Wolvix 1.10. The wolvix distributor has created a Wolvix package on his repository that is slackware 12.2 based. www.wolvix.org Though I think he did not have Corba configured. There was another slackware 12.2 package at: http://darkstar.ist.utl.pt/slackware/addon/slacky/slackware-12.2/development/gambas/ JB SKaggs jbskaggs wrote: > > I am running ubuntu 8.10 64 bit, Gambas 2.7 (highest packaged for 64bit > 8.1). > > I add the gb.sdl.sound and now cannot install packages because I get > Dependencies not satisfiable for gb.sdl.sound. > > So I figured maybe I need to add gb.sdl but I can't because my program is > qt based and it says qt and sdl incompatible. > > When I run my program without gb.sdl installed and with gb.sdl.sound > installed it runs fun from IDE. I can create executable, and I can package > it but I cannot install the package without the error popping about > dependencies. > > All I want to do is have a wav file played without having to call an > external shell. > > How can I do that with qt? Or how do I fix this dependency issue? > > > JB SKaggs > -- View this message in context: http://www.nabble.com/Sdl.sound-and-Qt-dependencies-not-satisfiable-tp22696057p22746201.html Sent from the gambas-user mailing list archive at Nabble.com. From jbskaggs at ...1871... Fri Mar 27 21:07:08 2009 From: jbskaggs at ...1871... (jbskaggs) Date: Fri, 27 Mar 2009 13:07:08 -0700 (PDT) Subject: [Gambas-user] Sdl.sound and Qt dependencies not satisfiable In-Reply-To: <22696057.post@...1379...> References: <22696057.post@...1379...> Message-ID: <22746202.post@...1379...> Well I install 2.12 on 64 bit ubuntu via ./configure /make install and My LORD what a pain if your are missing dependencies! Its like some type of fraternity treasure hunt and the dependencies are not easy to find or even neccessarily easy to define especially if the install is looking for a certian version no longer maintained. Anyway it is all up and running again and I now have 2.12 on Ubuntu 64bit Wolvix 2.0 beta and Wolvix 1.10. The wolvix distributor has created a Wolvix package on his repository that is slackware 12.2 based. www.wolvix.org Though I think he did not have Corba configured. There was another slackware 12.2 package at: http://darkstar.ist.utl.pt/slackware/addon/slacky/slackware-12.2/development/gambas/ JB SKaggs jbskaggs wrote: > > I am running ubuntu 8.10 64 bit, Gambas 2.7 (highest packaged for 64bit > 8.1). > > I add the gb.sdl.sound and now cannot install packages because I get > Dependencies not satisfiable for gb.sdl.sound. > > So I figured maybe I need to add gb.sdl but I can't because my program is > qt based and it says qt and sdl incompatible. > > When I run my program without gb.sdl installed and with gb.sdl.sound > installed it runs fun from IDE. I can create executable, and I can package > it but I cannot install the package without the error popping about > dependencies. > > All I want to do is have a wav file played without having to call an > external shell. > > How can I do that with qt? Or how do I fix this dependency issue? > > > JB SKaggs > -- View this message in context: http://www.nabble.com/Sdl.sound-and-Qt-dependencies-not-satisfiable-tp22696057p22746202.html Sent from the gambas-user mailing list archive at Nabble.com. From jbskaggs at ...1871... Fri Mar 27 21:09:06 2009 From: jbskaggs at ...1871... (jbskaggs) Date: Fri, 27 Mar 2009 13:09:06 -0700 (PDT) Subject: [Gambas-user] Missing Component Directory in Ubuntu and Debian packages Message-ID: <22746203.post@...1379...> Could whoever packages the Ubuntu and / or Debian Packages look into fixing the gb-sdl-sound directories? They are missing and do not get installed. JB Skaggs -- View this message in context: http://www.nabble.com/Missing-Component-Directory-in-Ubuntu-and-Debian-packages-tp22746203p22746203.html Sent from the gambas-user mailing list archive at Nabble.com. From jredrejo at ...626... Fri Mar 27 22:31:04 2009 From: jredrejo at ...626... (=?UTF-8?Q?Jos=C3=A9_Luis_Redrejo?=) Date: Fri, 27 Mar 2009 22:31:04 +0100 Subject: [Gambas-user] Missing Component Directory in Ubuntu and Debian packages In-Reply-To: <22746203.post@...1379...> References: <22746203.post@...1379...> Message-ID: <8eb28a500903271431g11318894i1d5b681910ffd408@...627...> 2009/3/27 jbskaggs > > Could whoever packages the Ubuntu and / or Debian Packages look into fixing > the gb-sdl-sound directories? They are missing and do not get installed. > Which one is missed? : http://packages.debian.org/squeeze/i386/gambas2-gb-sdl/filelist Jos? L. From marc at ...2075... Sat Mar 28 00:33:26 2009 From: marc at ...2075... (Marc Miralles) Date: Sat, 28 Mar 2009 00:33:26 +0100 Subject: [Gambas-user] How to compile Gambas in Fedora 10 Message-ID: <49CD6246.1000305@...2075...> Hi all: Some idea or link about how to compile Gambas 2.12 or Gambas 3 in Fedora 10 In gambas website don't have information about what packages are necessaries for compile Gambas in Fedora 10 and some components are disabled when compile in Fedora 10. Please, I'm seek for this information in Internet and don't have exit. Some people have this information? thanks Marc From jbskaggs at ...1871... Sat Mar 28 00:37:36 2009 From: jbskaggs at ...1871... (jbskaggs) Date: Fri, 27 Mar 2009 16:37:36 -0700 (PDT) Subject: [Gambas-user] Missing Component Directory in Ubuntu and Debian packages In-Reply-To: <22746203.post@...1379...> References: <22746203.post@...1379...> Message-ID: <22751883.post@...1379...> gb-sdl and gb-sdl-sound are two seperate components and should have their own directories. I discovered this by accident when I ran Gambas on slackware and noticed it installed sdl-sound seperate form sdl. And sdl.sound component did not work on my Gambas package or the debian package and Benoit said they should have seperate directories and to ask the package makers. So I have. :) JB Skaggs jbskaggs wrote: > > Could whoever packages the Ubuntu and / or Debian Packages look into > fixing the gb-sdl-sound directories? They are missing and do not get > installed. > > JB Skaggs > -- View this message in context: http://www.nabble.com/Missing-Component-Directory-in-Ubuntu-and-Debian-packages-tp22746203p22751883.html Sent from the gambas-user mailing list archive at Nabble.com. From weldon_gary at ...67... Sat Mar 28 00:46:01 2009 From: weldon_gary at ...67... (CelticBhoy) Date: Fri, 27 Mar 2009 16:46:01 -0700 (PDT) Subject: [Gambas-user] Catch NULL character Message-ID: <22751957.post@...1379...> What is wrong with this line :- IF sElement[iLoop] = NULL THEN sElement[iLoop] = "0" I want to catch a null character and change it to "0". -- View this message in context: http://www.nabble.com/Catch-NULL-character-tp22751957p22751957.html Sent from the gambas-user mailing list archive at Nabble.com. From simonart.dominique at ...11... Sat Mar 28 02:09:05 2009 From: simonart.dominique at ...11... (Simonart Dominique) Date: Sat, 28 Mar 2009 02:09:05 +0100 Subject: [Gambas-user] How to compile Gambas in Fedora 10 In-Reply-To: <49CD6246.1000305@...2075...> References: <49CD6246.1000305@...2075...> Message-ID: <49CD78B1.8060609@...11...> Marc Miralles a ?crit : > Hi all: > > Some idea or link about how to compile Gambas 2.12 or Gambas 3 in Fedora 10 > > In gambas website don't have information about what packages are > necessaries for compile Gambas in Fedora 10 and some components are > disabled when compile in Fedora 10. > > Please, I'm seek for this information in Internet and don't have exit. > Some people have this information? thanks > > Marc > > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > Hi, I don't know about Fedora, but did you read this ? http://gambasdoc.org/help/readme hope this help Dominique Simonart From carlitos.hllh at ...626... Sat Mar 28 04:29:13 2009 From: carlitos.hllh at ...626... (Carlos Humberto Llumiquinga Hidalgo) Date: Fri, 27 Mar 2009 22:29:13 -0500 Subject: [Gambas-user] Problem with gambas.. In-Reply-To: <49CC91A7.1040403@...680...> References: <49CC91A7.1040403@...680...> Message-ID: SHELL is what I looking for... Thanks.. to all.. Regards from Ecuador... :) Carlos H. 2009/3/27 Mike Keehan > Carlos Humberto Llumiquinga Hidalgo wrote: > > Hi all.... > > > > I have a problem with a code on gambas.. > > > > I'm trying.. this code.. EXEC ["rm", application.Path & "/imagenes/*.*"] > > ... just I wanna erase the content of images folder. > > > > But I got an error.. on console... rm: can't erase > > ?/home/carlosh/Prueba/imagenes/*.*?: File don't exists > > > > Help Please.. what's wrong.. ???? > > > > Hi Carlos, > > Try using SHELL instead of EXEC. The *.* expression gets expanded by > the Shell not by individual programs like rm. > > Mike. > > > > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From doriano.blengino at ...1909... Sat Mar 28 08:18:16 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Sat, 28 Mar 2009 08:18:16 +0100 Subject: [Gambas-user] Catch NULL character In-Reply-To: <22751957.post@...1379...> References: <22751957.post@...1379...> Message-ID: <49CDCF38.4030508@...1909...> CelticBhoy ha scritto: > What is wrong with this line :- > > IF sElement[iLoop] = NULL THEN sElement[iLoop] = "0" > > I want to catch a null character and change it to "0". > You are using an array notation, ie, sElement[] designes an array of strings, each composed of many characters. Moreover, NULL is not the same as chr$(0), but refers to the null pointer (or an empty string), but this is different from C. if sElement is a simple string, and assuming iLoop goes from 1 to the length of the string, then you test like this: if mid$(sElement, iLoop, 1)=chr$(0) then sElement=left$(1,iLoop-1) & "0" & mid$(sElement, iLoop+1) Note two things here: gambas does not have indexing of strings, like C. Use left$(), mid$() and so on is the way to analyze strings. This also means that you can not change a single char in a string, but you have to reconstruct the string itself. Anyway, there are more powerful instruction - see the docs about string manipulation; a single replace() could do what you want: sElement = Replace$(sElement, chr$(0), "0") If is it true that sElement should be an array of strings, then perhaps you are not looking for chr$(0), or you need two indexes, or you should provide more information about what you want to do... Cheers, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From gambas at ...1... Sat Mar 28 10:20:04 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Sat, 28 Mar 2009 10:20:04 +0100 Subject: [Gambas-user] Catch NULL character In-Reply-To: <49CDCF38.4030508@...1909...> References: <22751957.post@...1379...> <49CDCF38.4030508@...1909...> Message-ID: <200903281020.04171.gambas@...1...> > CelticBhoy ha scritto: > > What is wrong with this line :- > > > > IF sElement[iLoop] = NULL THEN sElement[iLoop] = "0" > > > > I want to catch a null character and change it to "0". > > You are using an array notation, ie, sElement[] designes an array of > strings, each composed of many characters. > Moreover, NULL is not the same as chr$(0), but refers to the null > pointer (or an empty string), but this is different from C. > > if sElement is a simple string, and assuming iLoop goes from 1 to the > length of the string, then you test like this: > > if mid$(sElement, iLoop, 1)=chr$(0) then sElement=left$(1,iLoop-1) & > "0" & mid$(sElement, iLoop+1) > > Note two things here: gambas does not have indexing of strings, like C. > Use left$(), mid$() and so on is the way to analyze strings. This also > means that you can not change a single char in a string, but you have to > reconstruct the string itself. Note that now in Gambas 3 you can do: Mid$(SomeString, X, 5) = AnotherString Regards, -- Beno?t From weldon_gary at ...67... Sat Mar 28 13:54:11 2009 From: weldon_gary at ...67... (CelticBhoy) Date: Sat, 28 Mar 2009 05:54:11 -0700 (PDT) Subject: [Gambas-user] Catch NULL character In-Reply-To: <200903281020.04171.gambas@...1...> References: <22751957.post@...1379...> <49CDCF38.4030508@...1909...> <200903281020.04171.gambas@...1...> Message-ID: <22756585.post@...1379...> This is the code where the problem comes up :- PUBLIC SUB Seperate(sComponent AS String, iRec AS Integer) DIM sElement AS String[13] DIM iStart AS Integer DIM iFinish AS Integer DIM iLen AS Integer DIM iLoop AS Integer DIM iSlen AS Integer iLen = Len(sComponent) IF iLen > 1 THEN iStart = 1 FOR iLoop = 1 TO 11 iFinish = InStr(sComponent, ",", iStart) iSlen = iFinish - iStart sElement[iLoop] = Mid$(sComponent, iStart, iSlen) IF sElement[iLoop] = NULL THEN sElement[iLoop] = "0" iStart = iFinish + 1 NEXT sElement[12] = Right$(sComponent, (iLen - iFinish)) IName[iRec] = sElement[1] PSize[iRec] = Val(sElement[2]) SDiv[iRec] = Val(sElement[3]) SOnHand[iRec] = Val(sElement[4]) ICost1[iRec] = Val(sElement[5]) ICost2[iRec] = Val(sElement[6]) ICost3[iRec] = Val(sElement[7]) ICost4[iRec] = Val(sElement[8]) BSell[iRec] = Val(sElement[9]) OSSell[iRec] = Val(sElement[10]) OSMult[iRec] = Val(sElement[11]) MSize[iRec] = Val(sElement[12]) ENDIF END All arrays apart from IName[] & sElement[] are type float. example of file input :- Delour,1,20,0,0,7.95,,0,1.3,,0,0 Martell,1,20,0,15.59,13.17,13.94,0,1.9,16.99,0,0 Bacardi,1,42.8,0,23.99,23.15,24,0,1.55,0,0,0 Bacardi,1,20,0,10.61,11,10,,0,12.99,0,0 OVD,1,20,0,0,,23,0,1.5,13.75,0,0 Morgans,1,42.8,0,24.19,22.65,23,0,1.55,0,0,0 The text file was generated from a spreadsheet which has some empty cells, as you can see each record has twelve fields. The problem arises when trying to assign the empty fields to the float arrays. Thanx in advance for any help. PS I got round the problem by filling in the empty cells in the spreadsheet, but I would still like to know where I went wrong. PPS Where can I download Gambas 3 for Ubuntu ??? -- View this message in context: http://www.nabble.com/Catch-NULL-character-tp22751957p22756585.html Sent from the gambas-user mailing list archive at Nabble.com. From jussi.lahtinen at ...626... Sat Mar 28 16:40:18 2009 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sat, 28 Mar 2009 17:40:18 +0200 Subject: [Gambas-user] Floodfill / pie chart In-Reply-To: <6324a42a0903270422n5b4d9bc4oe83950f9498bcae0@...627...> References: <384d3900903261101pc28a344mdb219f4dca7a6a3@...627...> <200903271131.48283.gambas@...1...> <6324a42a0903270422n5b4d9bc4oe83950f9498bcae0@...627...> Message-ID: <384d3900903280840n437cd96ax2f8368d377d24703@...627...> Hi! I noticed Start and End options to make sector (also in circle), but how to fill them with color? Fabien, here it is, but I think it is not very useful. It is made only for my special case. It has fixed sizes, and it is limited to 8 sectors. Notice that Part() array have to sum up 100% to make this code to work. Vb6 code: Sub PieChart() Dim Angle As Single Dim prevAngle As Single Dim ii As Long With PieChartPic .Cls PieChartPic.Circle (104, 104), 104, vbBlack' Bug in vb6, can't use just .Line(... etc. PieChartPic.Line (104, 104)-(104, 104 + 105), vbBlack For ii = 0 To 7 Angle = (Part(ii) * 0.062831853) + prevAngle PieChartPic.Line (104, 104)-(104 + ((Sin(Angle)) * 105), 104 + ((Cos(Angle)) * 105)), vbBlack SelectObject .hdc, mBrush(ii)' Just for the colors. Call ExtFloodFill(.hdc, (104 + Sin((Angle + prevAngle) / 2) * 100), (104 + Cos((Angle + prevAngle) / 2) * 100), 13160660, 1) prevAngle = Angle Next ii .Refresh End With End Sub Jussi On Fri, Mar 27, 2009 at 13:22, Fabien Bodard wrote: > hi jussi, can you send me the vb code ? > > i'm working on gb.chart component... it may interest me just to > complete my component > > (this component work fine only on svn version) > > > thanks > Le 27 mars 2009 11:31, Beno?t Minisini a ?crit : >>> Hi! >>> >>> I need pie chart in my application, and I have old vb6 code that does >>> what I need, but it is based on floodfill. >>> Do Gambas have any equivalent function? Or alternatively, method to >>> draw filled sectors? >>> I'm using Gambas3. >>> Thanks! >>> >>> >>> Jussi >>> >> >> I think that Draw.Ellipse() will draw what you need by using its last two >> optional arguments. >> >> Regards, >> >> -- >> Beno?t >> >> >> ------------------------------------------------------------------------------ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From doriano.blengino at ...1909... Sat Mar 28 20:55:37 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Sat, 28 Mar 2009 20:55:37 +0100 Subject: [Gambas-user] Catch NULL character In-Reply-To: <22756585.post@...1379...> References: <22751957.post@...1379...> <49CDCF38.4030508@...1909...> <200903281020.04171.gambas@...1...> <22756585.post@...1379...> Message-ID: <49CE80B9.7000102@...1909...> CelticBhoy ha scritto: > This is the code where the problem comes up :- > > PUBLIC SUB Seperate(sComponent AS String, iRec AS Integer) > > DIM sElement AS String[13] > DIM iStart AS Integer > DIM iFinish AS Integer > DIM iLen AS Integer > DIM iLoop AS Integer > DIM iSlen AS Integer > > iLen = Len(sComponent) > IF iLen > 1 THEN > iStart = 1 > FOR iLoop = 1 TO 11 > iFinish = InStr(sComponent, ",", iStart) > iSlen = iFinish - iStart > sElement[iLoop] = Mid$(sComponent, iStart, iSlen) > IF sElement[iLoop] = NULL THEN sElement[iLoop] = "0" > iStart = iFinish + 1 > NEXT > ... > example of file input :- > > Delour,1,20,0,0,7.95,,0,1.3,,0,0 > Martell,1,20,0,15.59,13.17,13.94,0,1.9,16.99,0,0 > Bacardi,1,42.8,0,23.99,23.15,24,0,1.55,0,0,0 > Bacardi,1,20,0,10.61,11,10,,0,12.99,0,0 > OVD,1,20,0,0,,23,0,1.5,13.75,0,0 > Morgans,1,42.8,0,24.19,22.65,23,0,1.55,0,0,0 > So you are searching for empty strings/fields, not NUL characters! :-) The statement "if sElement[iLoop] = NULL" could be correct, but semantically ugly (it depends on the language; in C and others, a NULL and an empty string are different); I would prefer to test against an empty string: if sElement[iLoop] = "" then... The split() function could save code and CPU time: DIM sElement AS String[] <-- note, no dimension sElement = split(sComponent, ",") <-- this line does the work of "FOR iLoop" After separating elements, you want some float number. Perhaps, thanks to automatic conversions of gambas, you could avoid to use val(), and write things like "PSize[iRec] = sElement[2]". The statement TRY could help to facilitate the assignment; instead of testing for empty strings, you could simply TRY to do the assignment: this protects also from invalid numbers. Hope this helps - regards, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From jbskaggs at ...1871... Sat Mar 28 21:15:20 2009 From: jbskaggs at ...1871... (jbskaggs) Date: Sat, 28 Mar 2009 13:15:20 -0700 (PDT) Subject: [Gambas-user] SPawing pictureboxs Message-ID: <22760869.post@...1379...> I want to be able to spawn a series of indentical pictureboxes then if I click on an individual pixturebox get it to run code for that picturebox. I can genrate the pictureboxes just fine with the =new picturebox but then I cant use the picturebox with Public sub picturebox_mousedown() command as I would a picturebox I drew. How would I go about doing that and giving the pictureboxes unique names that I can use with the mouse. So could somebody give a little example that generates three or four identical pictureboxes and how I can use the _mousedown or _click events? Pretty please:jumping: JB SKaggs -- View this message in context: http://www.nabble.com/SPawing-pictureboxs-tp22760869p22760869.html Sent from the gambas-user mailing list archive at Nabble.com. From weldon_gary at ...67... Sat Mar 28 21:25:36 2009 From: weldon_gary at ...67... (CelticBhoy) Date: Sat, 28 Mar 2009 13:25:36 -0700 (PDT) Subject: [Gambas-user] Catch NULL character In-Reply-To: <22751957.post@...1379...> References: <22751957.post@...1379...> Message-ID: <22760874.post@...1379...> Thanx again for the help. I will have a look at your advice and try and implement it in my code. This is my first crack at programming since way back in the QuickBasic days, so I appreciate the help. -- View this message in context: http://www.nabble.com/Catch-NULL-character-tp22751957p22760874.html Sent from the gambas-user mailing list archive at Nabble.com. From richard at ...2079... Sat Mar 28 21:40:11 2009 From: richard at ...2079... (Richard Muir-Gladman) Date: Sat, 28 Mar 2009 20:40:11 +0000 Subject: [Gambas-user] SPawing pictureboxs In-Reply-To: <22760869.post@...1379...> References: <22760869.post@...1379...> Message-ID: <1238272811.7557.3.camel@...2119...> I use this code to create my "picture boxes" which are actually buttons. I did this because I couldn't find a click event for a picture box. PRIVATE SUB addPicture(pName AS String, title AS String, id AS Integer) DIM f AS Frame DIM p AS Button f = NEW Frame(scrPictures) f.Text = Left$(title, 15) f.w = 130 f.h = 130 p = NEW Button(f) AS "pictureItem" p.Name = pName p.tag = id p.ToolTip = title p.W = 100 p.h = 100 p.x = 14 p.y = 21 p.Picture = Picture.Load(Global.pictureCache &/ "thumbs" &/ pName) END This is the click handler for the button PUBLIC SUB pictureItem_Click() DIM f AS NEW PictureDetail f.id = LAST.tag f.ShowDialog END It's not exactly what you wanted but it does work quite nicely Richard. On Sat, 2009-03-28 at 13:15 -0700, jbskaggs wrote: > I want to be able to spawn a series of indentical pictureboxes then if I > click on an individual pixturebox get it to run code for that picturebox. > > I can genrate the pictureboxes just fine with the =new picturebox but then I > cant use the picturebox with Public sub picturebox_mousedown() command as I > would a picturebox I drew. How would I go about doing that and giving the > pictureboxes unique names that I can use with the mouse. > > So could somebody give a little example that generates three or four > identical pictureboxes and how I can use the _mousedown or _click events? > > Pretty please:jumping: > > JB SKaggs -- Quantum materiae materietur marmota monax si marmota monax materiam possit materiari? (How much wood would a woodchuck chuck if a woodchuck could chuck wood?) Registered Linux User: #459086 From jbskaggs at ...1871... Sat Mar 28 22:13:06 2009 From: jbskaggs at ...1871... (jbskaggs) Date: Sat, 28 Mar 2009 14:13:06 -0700 (PDT) Subject: [Gambas-user] SPawing pictureboxs In-Reply-To: <1238272811.7557.3.camel@...2119...> References: <22760869.post@...1379...> <1238272811.7557.3.camel@...2119...> Message-ID: <22761344.post@...1379...> I should have thought a 'Muir" would have come and helped! (I had a an old friend named Ted Muir who allways helped me in a bind- he's passed away now. You couldn't have a better name.) Thanks a bunch! JB Richard Muir-Gladman wrote: > > I use this code to create my "picture boxes" which are actually buttons. > I did this because I couldn't find a click event for a picture box. > > PRIVATE SUB addPicture(pName AS String, title AS String, id AS Integer) > DIM f AS Frame > DIM p AS Button > > f = NEW Frame(scrPictures) > f.Text = Left$(title, 15) > f.w = 130 > f.h = 130 > > p = NEW Button(f) AS "pictureItem" > p.Name = pName > p.tag = id > p.ToolTip = title > p.W = 100 > p.h = 100 > p.x = 14 > p.y = 21 > > p.Picture = Picture.Load(Global.pictureCache &/ "thumbs" &/ pName) > > END > > This is the click handler for the button > > PUBLIC SUB pictureItem_Click() > DIM f AS NEW PictureDetail > f.id = LAST.tag > f.ShowDialog > END > > It's not exactly what you wanted but it does work quite nicely > > Richard. > > On Sat, 2009-03-28 at 13:15 -0700, jbskaggs wrote: >> I want to be able to spawn a series of indentical pictureboxes then if I >> click on an individual pixturebox get it to run code for that picturebox. >> >> I can genrate the pictureboxes just fine with the =new picturebox but >> then I >> cant use the picturebox with Public sub picturebox_mousedown() command as >> I >> would a picturebox I drew. How would I go about doing that and giving >> the >> pictureboxes unique names that I can use with the mouse. >> >> So could somebody give a little example that generates three or four >> identical pictureboxes and how I can use the _mousedown or _click events? >> >> Pretty please:jumping: >> >> JB SKaggs > -- > Quantum materiae materietur marmota monax si marmota monax materiam > possit materiari? > (How much wood would a woodchuck chuck if a woodchuck could chuck wood?) > > Registered Linux User: #459086 > > > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://www.nabble.com/SPawing-pictureboxs-tp22760869p22761344.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas.fr at ...626... Sun Mar 29 12:28:30 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 29 Mar 2009 12:28:30 +0200 Subject: [Gambas-user] Floodfill / pie chart In-Reply-To: <384d3900903280840n437cd96ax2f8368d377d24703@...627...> References: <384d3900903261101pc28a344mdb219f4dca7a6a3@...627...> <200903271131.48283.gambas@...1...> <6324a42a0903270422n5b4d9bc4oe83950f9498bcae0@...627...> <384d3900903280840n437cd96ax2f8368d377d24703@...627...> Message-ID: <6324a42a0903290328i60f02f41v7baf2bd512246f54@...627...> i think you will better see at my source code in gb.chart. for that download the gambas source and look in ~/gambas/comp/src/gb.chart/_CStylePie.class. you need to use ellipse or circle 2009/3/28 Jussi Lahtinen : > Hi! > > I noticed Start and End options to make sector (also in circle), but > how to fill them with color? > > Fabien, here it is, but I think it is not very useful. > It is made only for my special case. It has fixed sizes, and it is > limited to 8 sectors. > > Notice that Part() array have to sum up 100% to make this code to work. > Vb6 code: > > Sub PieChart() > Dim Angle As Single > Dim prevAngle As Single > Dim ii As Long > > With PieChartPic > > .Cls > PieChartPic.Circle (104, 104), 104, vbBlack' Bug in vb6, can't use > just .Line(... etc. > PieChartPic.Line (104, 104)-(104, 104 + 105), vbBlack > > For ii = 0 To 7 > Angle = (Part(ii) * 0.062831853) + prevAngle > > PieChartPic.Line (104, 104)-(104 + ((Sin(Angle)) * 105), 104 + > ((Cos(Angle)) * 105)), vbBlack > > SelectObject .hdc, mBrush(ii)' Just for the colors. > Call ExtFloodFill(.hdc, (104 + Sin((Angle + prevAngle) / 2) * 100), > (104 + Cos((Angle + prevAngle) / 2) * 100), 13160660, 1) > > prevAngle = Angle > Next ii > > .Refresh > > End With > > End Sub > > > Jussi > > > > > On Fri, Mar 27, 2009 at 13:22, Fabien Bodard wrote: >> hi jussi, can you send me the vb code ? >> >> i'm working on gb.chart component... it may interest me just to >> complete my component >> >> (this component work fine only on svn version) >> >> >> thanks >> Le 27 mars 2009 11:31, Beno?t Minisini a ?crit : >>>> Hi! >>>> >>>> I need pie chart in my application, and I have old vb6 code that does >>>> what I need, but it is based on floodfill. >>>> Do Gambas have any equivalent function? Or alternatively, method to >>>> draw filled sectors? >>>> I'm using Gambas3. >>>> Thanks! >>>> >>>> >>>> Jussi >>>> >>> >>> I think that Draw.Ellipse() will draw what you need by using its last two >>> optional arguments. >>> >>> Regards, >>> >>> -- >>> Beno?t >>> >>> >>> ------------------------------------------------------------------------------ >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> >> ------------------------------------------------------------------------------ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Sun Mar 29 12:29:15 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 29 Mar 2009 12:29:15 +0200 Subject: [Gambas-user] Floodfill / pie chart In-Reply-To: <384d3900903280840n437cd96ax2f8368d377d24703@...627...> References: <384d3900903261101pc28a344mdb219f4dca7a6a3@...627...> <200903271131.48283.gambas@...1...> <6324a42a0903270422n5b4d9bc4oe83950f9498bcae0@...627...> <384d3900903280840n437cd96ax2f8368d377d24703@...627...> Message-ID: <6324a42a0903290329k1cef7d9cna0f88b835b1d2ddc@...627...> or simply the component itself if it work... (i'm not sure in v2) 2009/3/28 Jussi Lahtinen : > Hi! > > I noticed Start and End options to make sector (also in circle), but > how to fill them with color? > > Fabien, here it is, but I think it is not very useful. > It is made only for my special case. It has fixed sizes, and it is > limited to 8 sectors. > > Notice that Part() array have to sum up 100% to make this code to work. > Vb6 code: > > Sub PieChart() > Dim Angle As Single > Dim prevAngle As Single > Dim ii As Long > > With PieChartPic > > .Cls > PieChartPic.Circle (104, 104), 104, vbBlack' Bug in vb6, can't use > just .Line(... etc. > PieChartPic.Line (104, 104)-(104, 104 + 105), vbBlack > > For ii = 0 To 7 > Angle = (Part(ii) * 0.062831853) + prevAngle > > PieChartPic.Line (104, 104)-(104 + ((Sin(Angle)) * 105), 104 + > ((Cos(Angle)) * 105)), vbBlack > > SelectObject .hdc, mBrush(ii)' Just for the colors. > Call ExtFloodFill(.hdc, (104 + Sin((Angle + prevAngle) / 2) * 100), > (104 + Cos((Angle + prevAngle) / 2) * 100), 13160660, 1) > > prevAngle = Angle > Next ii > > .Refresh > > End With > > End Sub > > > Jussi > > > > > On Fri, Mar 27, 2009 at 13:22, Fabien Bodard wrote: >> hi jussi, can you send me the vb code ? >> >> i'm working on gb.chart component... it may interest me just to >> complete my component >> >> (this component work fine only on svn version) >> >> >> thanks >> Le 27 mars 2009 11:31, Beno?t Minisini a ?crit : >>>> Hi! >>>> >>>> I need pie chart in my application, and I have old vb6 code that does >>>> what I need, but it is based on floodfill. >>>> Do Gambas have any equivalent function? Or alternatively, method to >>>> draw filled sectors? >>>> I'm using Gambas3. >>>> Thanks! >>>> >>>> >>>> Jussi >>>> >>> >>> I think that Draw.Ellipse() will draw what you need by using its last two >>> optional arguments. >>> >>> Regards, >>> >>> -- >>> Beno?t >>> >>> >>> ------------------------------------------------------------------------------ >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> >> ------------------------------------------------------------------------------ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Sun Mar 29 20:55:15 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 29 Mar 2009 20:55:15 +0200 Subject: [Gambas-user] Slow Gridview creation In-Reply-To: <49CD3196.5040200@...2035...> References: <49CB9B82.6070309@...2035...> <6324a42a0903260946l5dc0cce9ib68f49d883697fbd@...627...> <49CC0CF3.8010500@...2035...> <49CC84E8.3000206@...221...> <6324a42a0903270456u7bcc005ft467ad35886c5ac39@...627...> <49CCD37C.7000901@...2035...> <49CCFEF7.3070805@...2035...> <6324a42a0903271118r20a1fc0di317f9d58a9beadc8@...627...> <49CD3196.5040200@...2035...> Message-ID: <6324a42a0903291155j2a578b7dvd61a12f9259b5fe9@...627...> good work ! 2009/3/27 Jesus Guardon : > Fabien Bodard escribi?: >> >> simply the handle name is not good... you have named your gridview >> "gv" and not "GridView1"... it's an usual copy&paste error ;-) >> > > Ha ha... it's my mistake. Finally I get it working, really really fast > method. A lot of thanks for your help, I was mind-closed for a while! > > Here is the final class: > > > Thanks again > > Jes?s > > ------------------------------------------------------------------------------ > > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From jussi.lahtinen at ...626... Sun Mar 29 21:43:44 2009 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 29 Mar 2009 22:43:44 +0300 Subject: [Gambas-user] Floodfill / pie chart In-Reply-To: <6324a42a0903290328i60f02f41v7baf2bd512246f54@...627...> References: <384d3900903261101pc28a344mdb219f4dca7a6a3@...627...> <200903271131.48283.gambas@...1...> <6324a42a0903270422n5b4d9bc4oe83950f9498bcae0@...627...> <384d3900903280840n437cd96ax2f8368d377d24703@...627...> <6324a42a0903290328i60f02f41v7baf2bd512246f54@...627...> Message-ID: <384d3900903291243w89712ceg7f6d39f84bd31227@...627...> Thanks Fabien! It was very useful! Now I got my code to work, and it's even simpler than the original vb6 version; Sub PieChart() Dim Angle As Float Dim prevAngle As Float Dim ii As Long With Draw .Begin(Me.PicPieChart) .ForeColor = Color.Black .LineWidth = 3 .Circle(105, 105, 105) .LineWidth = 1 .FillStyle = Fill.Solid For ii = 0 To 7 Select Case ii Case 0 .FillColor = Color.Red Case 1 .FillColor = Color.Yellow Case 2 .FillColor = Color.Magenta Case 3 .FillColor = Color.Cyan Case 4 .FillColor = Color.Green Case 5 .FillColor = Color.Blue Case 6 .FillColor = Color.White Case 7 .FillColor = Color.Black End Select If ii <> 7 Then Angle = Rad(3.6 * Osa[ii]) + prevAngle Else Angle = 0 Endif .Circle(105, 105, 105, prevAngle, Angle) prevAngle = Angle Next .End End With End Sub Jussi On Sun, Mar 29, 2009 at 13:28, Fabien Bodard wrote: > i think you will better see at my source code in gb.chart. for that > download the gambas source and look in > ~/gambas/comp/src/gb.chart/_CStylePie.class. > you need to use ellipse or circle > > 2009/3/28 Jussi Lahtinen : >> Hi! >> >> I noticed Start and End options to make sector (also in circle), but >> how to fill them with color? >> >> Fabien, here it is, but I think it is not very useful. >> It is made only for my special case. It has fixed sizes, and it is >> limited to 8 sectors. >> >> Notice that Part() array have to sum up 100% to make this code to work. >> Vb6 code: >> >> Sub PieChart() >> Dim Angle As Single >> Dim prevAngle As Single >> Dim ii As Long >> >> With PieChartPic >> >> .Cls >> PieChartPic.Circle (104, 104), 104, vbBlack' Bug in vb6, can't use >> just .Line(... etc. >> PieChartPic.Line (104, 104)-(104, 104 + 105), vbBlack >> >> For ii = 0 To 7 >> Angle = (Part(ii) * 0.062831853) + prevAngle >> >> PieChartPic.Line (104, 104)-(104 + ((Sin(Angle)) * 105), 104 + >> ((Cos(Angle)) * 105)), vbBlack >> >> SelectObject .hdc, mBrush(ii)' Just for the colors. >> Call ExtFloodFill(.hdc, (104 + Sin((Angle + prevAngle) / 2) * 100), >> (104 + Cos((Angle + prevAngle) / 2) * 100), 13160660, 1) >> >> prevAngle = Angle >> Next ii >> >> .Refresh >> >> End With >> >> End Sub >> >> >> Jussi >> >> >> >> >> On Fri, Mar 27, 2009 at 13:22, Fabien Bodard wrote: >>> hi jussi, can you send me the vb code ? >>> >>> i'm working on gb.chart component... it may interest me just to >>> complete my component >>> >>> (this component work fine only on svn version) >>> >>> >>> thanks >>> Le 27 mars 2009 11:31, Beno?t Minisini a ?crit : >>>>> Hi! >>>>> >>>>> I need pie chart in my application, and I have old vb6 code that does >>>>> what I need, but it is based on floodfill. >>>>> Do Gambas have any equivalent function? Or alternatively, method to >>>>> draw filled sectors? >>>>> I'm using Gambas3. >>>>> Thanks! >>>>> >>>>> >>>>> Jussi >>>>> >>>> >>>> I think that Draw.Ellipse() will draw what you need by using its last two >>>> optional arguments. >>>> >>>> Regards, >>>> >>>> -- >>>> Beno?t >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> >>> >>> ------------------------------------------------------------------------------ >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> >> ------------------------------------------------------------------------------ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jbskaggs at ...1871... Sun Mar 29 23:05:03 2009 From: jbskaggs at ...1871... (jbskaggs) Date: Sun, 29 Mar 2009 14:05:03 -0700 (PDT) Subject: [Gambas-user] Please help with color problem! Message-ID: <22772751.post@...1379...> I have asked this before, but I cannot change colors on may controls like Textlabel, or Progressbar for example: ProgressBar1.ForeColor = Color.DarkGreen This does nothing the bar remains black this happens with many of my controls in Slackware 12.2 but not Ubuntu 8.1. BUT ProgressBar1.BackColor = Color.DarkGreen does work. Although on TextLabel I can change forecolor but not backcolor. Why would that happen? And how do I fix it? JB Skaggs -- View this message in context: http://www.nabble.com/Please-help-with-color-problem%21-tp22772751p22772751.html Sent from the gambas-user mailing list archive at Nabble.com. From leonardo at ...1237... Sun Mar 29 23:31:58 2009 From: leonardo at ...1237... (Leonardo Miliani) Date: Sun, 29 Mar 2009 15:31:58 -0600 Subject: [Gambas-user] Maybe (still) a bug in bit manipulation functions Message-ID: <3bf28854f918a4e47aace0f2155cce39@...1237...> I made some tests on bit manipulation functions and I think I've found some bugs in them (Gambas 2.12.0). I read in the documentation that a function like SHL should keep care of the initial type of data. I.e., if I use a byte, it should work using 8 bits (the lenght of a byte), if I use an integer it should work using 32 bits and so on.... But I see that this is not the way it works. If you try SHL(197,3) you would think to espect 46 as result. Instead, you get 1576! 197 in binary format is 11000101, so a shift of 3 bit should give a result of 00101000 (40). It seems that the function doesn't check the initial type of the received data (in the example the byte type, with a lenght of 8 bits) and simply rolls on the left the bit, adding some zeros to the right. In fact, 1576 is 11000101000 in binary format, just the original number of 11000101 plus 3 zeros on the right. Same behaviour with ROL function. ROL(197,3) should give a result of 46 (00101110) but I still continue to get as result the value of 1576 (11000101 plus 3 zeros on the right)! -- Leonardo Miliani Web: http://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 http://www.gambas-it.org From leonardo at ...1237... Sun Mar 29 23:59:37 2009 From: leonardo at ...1237... (Leonardo Miliani) Date: Sun, 29 Mar 2009 23:59:37 +0200 Subject: [Gambas-user] Maybe (still) a bug in bit manipulation functions Message-ID: <49CFEF49.3070401@...1237...> I made some tests on bit manipulation functions and I think I've found some bugs in them (Gambas 2.12.0). I read in the documentation that a function like SHL should keep care of the initial type of data. I.e., if I use a byte, it should work using 8 bits (the lenght of a byte), if I use an integer it should work using 32 bits and so on.... But I see that this is not the way it works. If you try SHL(197,3) you would think to espect 46 as result. Instead, you get 1576! 197 in binary format is 11000101, so a shift of 3 bit should give a result of 00101000 (40). It seems that the function doesn't check the initial type of the received data (in the example the byte type, with a lenght of 8 bits) and simply rolls on the left the bit, adding some zeros to the right. In fact, 1576 is 11000101000 in binary format, just the original number of 11000101 plus 3 zeros on the right. Same behaviour with ROL function. ROL(197,3) should give a result of 46 (00101110) but I still continue to get as result the value of 1576 (11000101 plus 3 zeros on the right)! -- Leonardo Miliani Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Scegli software opensource - Choose opensource software Co-fondatore di Gambas-it.org Il sito di riferimento della comunit? italiana degli utenti di Gambas www.gambas-it.org From leonardo at ...1237... Mon Mar 30 00:40:16 2009 From: leonardo at ...1237... (Leonardo Miliani) Date: Mon, 30 Mar 2009 00:40:16 +0200 Subject: [Gambas-user] Maybe (still) a bug in bit manipulation functions In-Reply-To: <49CFEF49.3070401@...1237...> References: <49CFEF49.3070401@...1237...> Message-ID: <49CFF8D0.6020400@...1237...> It seems that there are bugs in the "Ror" function too. Using the same number, 197 (11000101), if I write ROR(197,3) I get -1610612712 ( 1111111111111111111111111111111110100000000000000000000000011000) instead of 10111000 (184). -- Leonardo Miliani 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 iecltd at ...2113... Mon Mar 30 08:28:40 2009 From: iecltd at ...2113... (Rodney Rundstrom) Date: Mon, 30 Mar 2009 19:28:40 +1300 Subject: [Gambas-user] Dynamic Objects Message-ID: <86FA170C128641E9A4236C7DF4B005EC@...2114...> Thanks to some of the member I can now create objects dynamically. If I create a number of buttons I can position and label them differently. I can also name them differently However I can have a number of objects with the same name on a form? I can access an event say click on any of the button but cannot write to a property of individual labels even using its created name being told it is not static. I looked at the group property but do not seem to be able to write to it in code! Can anyone help me! I come from a VB background and would in the past have used indices. Thanks Rodney From gambas at ...1... Mon Mar 30 10:36:09 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Mon, 30 Mar 2009 10:36:09 +0200 Subject: [Gambas-user] Maybe (still) a bug in bit manipulation functions In-Reply-To: <49CFF8D0.6020400@...1237...> References: <49CFEF49.3070401@...1237...> <49CFF8D0.6020400@...1237...> Message-ID: <200903301036.10593.gambas@...1...> > It seems that there are bugs in the "Ror" function too. > Using the same number, 197 (11000101), if I write ROR(197,3) I get > -1610612712 ( > 1111111111111111111111111111111110100000000000000000000000011000) > instead of 10111000 (184). 197 is not a Byte, it is an Integer. If you want a Byte, you have to do Shl(CByte(197), 3). Regards, -- Beno?t From gambas at ...1... Mon Mar 30 10:39:08 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Mon, 30 Mar 2009 10:39:08 +0200 Subject: [Gambas-user] Please help with color problem! In-Reply-To: <22772751.post@...1379...> References: <22772751.post@...1379...> Message-ID: <200903301039.08864.gambas@...1...> > I have asked this before, but I cannot change colors on may controls like > Textlabel, or Progressbar > > for example: > > ProgressBar1.ForeColor = Color.DarkGreen > > This does nothing the bar remains black this happens with many of my > controls in Slackware 12.2 but not Ubuntu 8.1. > > BUT ProgressBar1.BackColor = Color.DarkGreen does work. > > Although on TextLabel I can change forecolor but not backcolor. > > Why would that happen? And how do I fix it? > > JB Skaggs Do you use gb.qt or gb.gtk? Some bugs in the Foreground and Background properties were fixed for gb.gtk in the 2.12 version. Moreover, some Qt/Kde styles do not allow some changes in the color properties of some controls. Try to change the style and see if the control behave the same, and tell me the result. Regards, -- Beno?t From doriano.blengino at ...1909... Mon Mar 30 10:51:45 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Mon, 30 Mar 2009 10:51:45 +0200 Subject: [Gambas-user] Dynamic Objects In-Reply-To: <86FA170C128641E9A4236C7DF4B005EC@...2114...> References: <86FA170C128641E9A4236C7DF4B005EC@...2114...> Message-ID: <49D08821.8040205@...1909...> Rodney Rundstrom ha scritto: > Thanks to some of the member I can now create objects dynamically. > > If I create a number of buttons I can position and label them differently. I > can also name them differently > > However I can have a number of objects with the same name on a form? > > I can access an event say click on any of the button but cannot write to a > property of individual labels even using its created name > > being told it is not static. > When you create controls at design time, those controls obtain a field (or slot) in the compiled code; ie, they have a true name because they become members of the class you are creating - both the Name property of the control, and a variable named the same, are retained. When you create controls at run time, the class is already formed (it contains all the controls created at design time, but nothing else). So, they don't have a name in the class, and you can't access them that way. A control created in this way may or may not have a name assigned to its Name property - it is used for other purposes. But you can still access them by saving/keeping the variable you used to instanciate them, either as a global one, a class member one (public or private), or inside an array, or whatever: private lMyLabel as Label lMyLabel = new Label(fmMain) as "another" in this case, "another" is the name used for event management, but the real handle of the label will be "lMyLabel", and you can access "lMyLabel.text" in the usual way. But if lMylabel was DIMed as a local variable in a subroutine, then its handle gets lost after the subroutine terminates. You can access controls in two ways, even if their handle is lost. The first is using "LAST" pseudo-variable in a event handler; the second is to use the Children property of a container control. Regards, Doriano Blengino From jbskaggs at ...1871... Mon Mar 30 12:09:18 2009 From: jbskaggs at ...1871... (jbskaggs) Date: Mon, 30 Mar 2009 03:09:18 -0700 (PDT) Subject: [Gambas-user] Please help with color problem! In-Reply-To: <200903301039.08864.gambas@...1...> References: <22772751.post@...1379...> <200903301039.08864.gambas@...1...> Message-ID: <22779963.post@...1379...> I have only qt on my wolvix (slackware system). Well no I do have Kde base as well. But in Gambas I only have the qt.component selected This occurs on both gambas 2.11 and 2.12. Now qtconfig can change my colors (somewhat) but otherwise I get no change. Do you mean to change the qt styles? I will investigate that thanks. JB Bugzilla from gambas at ...1... wrote: > >> I have asked this before, but I cannot change colors on may controls like >> Textlabel, or Progressbar >> >> for example: >> >> ProgressBar1.ForeColor = Color.DarkGreen >> >> This does nothing the bar remains black this happens with many of my >> controls in Slackware 12.2 but not Ubuntu 8.1. >> >> BUT ProgressBar1.BackColor = Color.DarkGreen does work. >> >> Although on TextLabel I can change forecolor but not backcolor. >> >> Why would that happen? And how do I fix it? >> >> JB Skaggs > > Do you use gb.qt or gb.gtk? Some bugs in the Foreground and Background > properties were fixed for gb.gtk in the 2.12 version. > > Moreover, some Qt/Kde styles do not allow some changes in the color > properties > of some controls. Try to change the style and see if the control behave > the > same, and tell me the result. > > Regards, > > -- > Beno?t > > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://www.nabble.com/Please-help-with-color-problem%21-tp22772751p22779963.html Sent from the gambas-user mailing list archive at Nabble.com. From afroehlke at ...784... Mon Mar 30 13:00:30 2009 From: afroehlke at ...784... (=?iso-8859-1?Q?Andreas_Fr=F6hlke?=) Date: Mon, 30 Mar 2009 13:00:30 +0200 Subject: [Gambas-user] Gambas 2.11.1 Ubuntu 8.xx Socket Problem In-Reply-To: <200902201213.49246.gambas@...1...> References: <200902150841.00932.rterry@...1946...> <200902181955.34723.gambas@...1...> <8D42310D957CFB46AA11921A711D4D16022172120C@...1899...> <200902201213.49246.gambas@...1...> Message-ID: <8D42310D957CFB46AA11921A711D4D160227BF1B45@...1899...> Hello again, sorry for the long delay between your and my answer. I just don't see your answer until yet. But here it is. In the zip in the attachment you will find the project wich I use to test, two screenshots and two textfiles including the gdb backtrace, i hope. Both (the screenshots and the textfiles are made once don't connected to the server and once connected to server. Hope this will help Regards, A.Fr?hlke -----Urspr?ngliche Nachricht----- Von: Beno?t Minisini [mailto:gambas at ...1...] Gesendet: Freitag, 20. Februar 2009 12:14 An: mailing list for gambas users Betreff: Re: [Gambas-user] Gambas 2.11.1 Ubuntu 8.xx Socket Problem > Hello again, > > we don't use a gambas server on the other site. Just the application wich > connect to an server will take the cpu performance. > > Regards, > > A.Fr?hlke > Strange: I did a test, and the client took no CPU, but the server did. So I fixed it. If your client takes CPU while idle (it should not), please can you take a gdb backtrace and send it me? To do that: $ ps axf # to get the PID of the gbx2 process that takes CPU. $ gdb gbx2 ... (gdb) bt ... If you can compile Gambas 2 from sources to get the debugging information, it would be great. If you have debugging development packages on your distribution, you just have to install them instead. Regards, -- Beno?t ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ 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: networktest.zip Type: application/x-zip-compressed Size: 60049 bytes Desc: networktest.zip URL: From gambas at ...1... Mon Mar 30 13:33:54 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Mon, 30 Mar 2009 13:33:54 +0200 Subject: [Gambas-user] Gambas 2.11.1 Ubuntu 8.xx Socket Problem In-Reply-To: <8D42310D957CFB46AA11921A711D4D160227BF1B45@...1899...> References: <200902150841.00932.rterry@...1946...> <200902201213.49246.gambas@...1...> <8D42310D957CFB46AA11921A711D4D160227BF1B45@...1899...> Message-ID: <200903301333.54305.gambas@...1...> > Hello again, > > sorry for the long delay between your and my answer. I just don't see your > answer until yet. But here it is. In the zip in the attachment you will > find the project wich I use to test, two screenshots and two textfiles > including the gdb backtrace, i hope. > > Both (the screenshots and the textfiles are made once don't connected to > the server and once connected to server. > > Hope this will help > > Regards, > > A.Fr?hlke > Thanks, but you have to install gambas2 debugging packages, or compile Gambas2 from sources with debugging information enabled (this is the default). Otherwise, there is no information inside the backtrace! -- Beno?t From marc at ...2075... Mon Mar 30 14:16:08 2009 From: marc at ...2075... (Marc Miralles) Date: Mon, 30 Mar 2009 14:16:08 +0200 Subject: [Gambas-user] How to compile Gambas in Fedora 10 In-Reply-To: <49CD78B1.8060609@...11...> References: <49CD6246.1000305@...2075...> <49CD78B1.8060609@...11...> Message-ID: <49D0B808.5050509@...2075...> Hi Dominique; Thanks for page It's the solution. Marc En/na Simonart Dominique ha escrit: Marc Miralles a ??crit : Hi all: Some idea or link about how to compile Gambas 2.12 or Gambas 3 in Fedora 10 In gambas website don't have information about what packages are necessaries for compile Gambas in Fedora 10 and some components are disabled when compile in Fedora 10. Please, I'm seek for this information in Internet and don't have exit. Some people have this information? thanks Marc ------------------------------------------------------------------------------ _______________________________________________ Gambas-user mailing list [1]Gambas-user at lists.sourceforge.net [2]https://lists.sourceforge.net/lists/listinfo/gambas-user Hi, I don't know about Fedora, but did you read this ? [3]http://gambasdoc.org/help/readme hope this help Dominique Simonart ------------------------------------------------------------------------------ _______________________________________________ Gambas-user mailing list [4]Gambas-user at lists.sourceforge.net [5]https://lists.sourceforge.net/lists/listinfo/gambas-user References 1. mailto:Gambas-user at lists.sourceforge.net 2. https://lists.sourceforge.net/lists/listinfo/gambas-user 3. http://gambasdoc.org/help/readme 4. mailto:Gambas-user at lists.sourceforge.net 5. https://lists.sourceforge.net/lists/listinfo/gambas-user From leonardo at ...1237... Mon Mar 30 15:09:21 2009 From: leonardo at ...1237... (Leonardo Miliani) Date: Mon, 30 Mar 2009 15:09:21 +0200 Subject: [Gambas-user] Maybe (still) a bug in bit manipulation functions In-Reply-To: <200903301036.10593.gambas@...1...> References: <49CFEF49.3070401@...1237...> <49CFF8D0.6020400@...1237...> <200903301036.10593.gambas@...1...> Message-ID: <49D0C481.9060706@...1237...> Beno?t Minisini ha scritto: >> It seems that there are bugs in the "Ror" function too. >> Using the same number, 197 (11000101), if I write ROR(197,3) I get >> -1610612712 ( >> 1111111111111111111111111111111110100000000000000000000000011000) >> instead of 10111000 (184). > > 197 is not a Byte, it is an Integer. If you want a Byte, you have to do > Shl(CByte(197), 3). > > Regards, > Sorry. I was thinking that the function would find the type of the data by itself. -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Scegli software opensource - Choose opensource software Co-fondatore di Gambas-it.org Il sito di riferimento della comunit? italiana degli utenti di Gambas www.gambas-it.org From gambas at ...1... Mon Mar 30 19:32:44 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Mon, 30 Mar 2009 19:32:44 +0200 Subject: [Gambas-user] Maybe (still) a bug in bit manipulation functions In-Reply-To: <49D0C481.9060706@...1237...> References: <49CFEF49.3070401@...1237...> <200903301036.10593.gambas@...1...> <49D0C481.9060706@...1237...> Message-ID: <200903301932.44250.gambas@...1...> > Beno?t Minisini ha scritto: > >> It seems that there are bugs in the "Ror" function too. > >> Using the same number, 197 (11000101), if I write ROR(197,3) I get > >> -1610612712 ( > >> 1111111111111111111111111111111110100000000000000000000000011000) > >> instead of 10111000 (184). > > > > 197 is not a Byte, it is an Integer. If you want a Byte, you have to do > > Shl(CByte(197), 3). > > > > Regards, > > Sorry. > I was thinking that the function would find the type of the data by itself. How could it know that 197 is a Byte, and not a Short, or an Integer, or a Float... If nothing is specified, the compiler assumes an Integer constant, or a Long if the number is too big, or a Float if it cannot be a Long. Regards, -- Beno?t From jbskaggs at ...1871... Mon Mar 30 22:22:48 2009 From: jbskaggs at ...1871... (jbskaggs) Date: Mon, 30 Mar 2009 13:22:48 -0700 (PDT) Subject: [Gambas-user] We should offer online Gambas courses! Message-ID: <22792079.post@...1379...> I would like to set up a online gambas school where the more experienced users and coders here could offer an online workshop on Gambas for users. Make it an affordable cost (Like a $0 to $25 a course, depending on complexity, length, and time required. A course on making Forms should be free, but a all inclusive course on writing a mmorpg in gambas should have a fee attached) and offer a workshop for different fundamentals: I know for me a lot of Gambas is intuitive but much of it isn't. Im thinking it could be setup on a moodle or someother workshop / class software. With online lessons and quizzes for free but to get the actual coding graded it would require a live teacher to grade and comment thereby why a nominal fee would be justified. I could even host the moodle site and help admin it but my programming knowledge is so low I wouldn't make a good teacher. But I could help someone setup a course and host it and that person could charge a reasonable fee to teach the course. (Though in the spirit of linux the less money the better.) For example I would be willing to pay right now to be tutored in how to reference, manipulate, and check objects and controls via code (dynamically via nested loops and such). I read the documents- I look at the examples and still I get the wrong impressions and waste hours and hours on many different controls or functions. I helped setup an online bible college and the way it ran was every course had a different instructor (or most did) and those instructors set their own prerequisites and graded assignments on their own schedule (within reason). But the very basic courses were almost entirely automated - no need to have heavy instructor interaction. But as the courses became more in depth then instructors became paramount. Because students needed to ask questions and yes other students could answer and even grade (though their gradings were subject to instructor override.) I look at the number of basic questions on Nabbles and just think that a systematic instruction courses would make gambas bloom even more. Maybe something like: 1- Setting up your Gambas a. download and installation b. Defining preferences and intro to Gambas 2- Mastering the IDE interface: a. creating projects, forms, simple control, saving, compiling, and packaging 3- Gambas Programming fundamentals: A big unit broken into smaller courses a. Forms b. Controls c. Assignments, Operators, Strings, Numbers, and Booleans d. Comparisons, Loops, and nestings e. Good programming, coding practices, and the Gambas Programming language 4. Components: Another big unit a. gb b. gb.compress c. gb.chart etc... 5. FX a. BMP, JPG, PNG, GIF, etc what they are. Editing and making them. b. Animations and movies c. creating, editing, and sounds and music 6. Application specific courses: a. How to write a text editor b. How to write a scrolling shooter game etc and so on and so forth. And of course offer a Certificates for completing the courses. I know moodle and setting up the site would be easy- and if someone wanted to teach a course I could setup the course, forums, and quizzes etc. I could make some beginner courses on my own- but I would need help with more advanced subjects. Any thoughts? Objections? Volunteers? JB Skaggs -- View this message in context: http://www.nabble.com/We-should-offer-online-Gambas-courses%21-tp22792079p22792079.html Sent from the gambas-user mailing list archive at Nabble.com. From jbskaggs at ...1871... Mon Mar 30 22:25:38 2009 From: jbskaggs at ...1871... (jbskaggs) Date: Mon, 30 Mar 2009 13:25:38 -0700 (PDT) Subject: [Gambas-user] Re ferencing Message-ID: <22792128.post@...1379...> -- View this message in context: http://www.nabble.com/Referencing-tp22792128p22792128.html Sent from the gambas-user mailing list archive at Nabble.com. From rterry at ...1946... Mon Mar 30 22:32:58 2009 From: rterry at ...1946... (richard terry) Date: Tue, 31 Mar 2009 07:32:58 +1100 Subject: [Gambas-user] We should offer online Gambas courses! In-Reply-To: <22792079.post@...1379...> References: <22792079.post@...1379...> Message-ID: <200903310732.58766.rterry@...1946...> On Tue, 31 Mar 2009 07:22:48 am jbskaggs wrote: > I would like to set up a online gambas school where the more experienced > users and coders here could offer an online workshop on Gambas for users. > > Make it an affordable cost (Like a $0 to $25 a course, depending on > complexity, length, and time required. A course on making Forms should be > free, but a all inclusive course on writing a mmorpg in gambas should have > a fee attached) and offer a workshop for different fundamentals: > > I know for me a lot of Gambas is intuitive but much of it isn't. > > Im thinking it could be setup on a moodle or someother workshop / class > software. With online lessons and quizzes for free but to get the actual > coding graded it would require a live teacher to grade and comment thereby > why a nominal fee would be justified. I could even host the moodle site > and help admin it but my programming knowledge is so low I wouldn't make a > good teacher. But I could help someone setup a course and host it and that > person could charge a reasonable fee to teach the course. (Though in the > spirit of linux the less money the better.) > > For example I would be willing to pay right now to be tutored in how to > reference, manipulate, and check objects and controls via code (dynamically > via nested loops and such). I read the documents- I look at the examples > and still I get the wrong impressions and waste hours and hours on many > different controls or functions. > > I helped setup an online bible college and the way it ran was every course > had a different instructor (or most did) and those instructors set their > own prerequisites and graded assignments on their own schedule (within > reason). > > But the very basic courses were almost entirely automated - no need to have > heavy instructor interaction. But as the courses became more in depth then > instructors became paramount. Because students needed to ask questions and > yes other students could answer and even grade (though their gradings were > subject to instructor override.) > > I look at the number of basic questions on Nabbles and just think that a > systematic instruction courses would make gambas bloom even more. > > Maybe something like: > > 1- Setting up your Gambas > a. download and installation > b. Defining preferences and intro to Gambas > > 2- Mastering the IDE interface: > a. creating projects, forms, simple control, saving, compiling, and > packaging > > 3- Gambas Programming fundamentals: A big unit broken into smaller courses > a. Forms > b. Controls > c. Assignments, Operators, Strings, Numbers, and Booleans > d. Comparisons, Loops, and nestings > e. Good programming, coding practices, and the Gambas Programming > language > > 4. Components: Another big unit > a. gb > b. gb.compress > c. gb.chart etc... > > 5. FX > a. BMP, JPG, PNG, GIF, etc what they are. Editing and making them. > b. Animations and movies > c. creating, editing, and sounds and music > > 6. Application specific courses: > a. How to write a text editor > b. How to write a scrolling shooter game etc and so on > > and so forth. > > And of course offer a Certificates for completing the courses. > > I know moodle and setting up the site would be easy- and if someone wanted > to teach a course I could setup the course, forums, and quizzes etc. I > could make some beginner courses on my own- but I would need help with more > advanced subjects. > > Any thoughts? Objections? Volunteers? > > JB Skaggs Personally I think we should do what I've pushed for before - include extensively commented sample code along with gambas. We could all contribute on our own level - have a look at the wxPython demo as such an sample code-base of how to use the language. Richard From m0e.lnx at ...626... Mon Mar 30 22:44:26 2009 From: m0e.lnx at ...626... (M0E.lnx) Date: Mon, 30 Mar 2009 15:44:26 -0500 Subject: [Gambas-user] We should offer online Gambas courses! In-Reply-To: <22792079.post@...1379...> References: <22792079.post@...1379...> Message-ID: <20090330154426.19d83c7e.M0E.lnx@...626...> This sounds like a good idea, and I would support it if there were people interested. I tried something similar @ our vectorlinux forums where I offered to help anyone as much as I could get on the road with gambas. Did not pick up a whole lot of interested people, as I remember, only 2 people really got into it. One of them was able to write an application. The other one was getting really deep into the documentation before he got to the IDE, and something happened in his family, so he dropped it. I like the idea, I really think there is definitely a market for gambas in linux development, but dont expect to get a whole lot of interest. And i'm not being pesimistic, but rather realistic. From jbskaggs at ...1871... Mon Mar 30 22:55:00 2009 From: jbskaggs at ...1871... (jbskaggs) Date: Mon, 30 Mar 2009 13:55:00 -0700 (PDT) Subject: [Gambas-user] Re ferencing existing multiple controls in loops Message-ID: <22792680.post@...1379...> Okay I have a form with say 50 picturebox controls: How does one check each controls in a loop? So if I wanted to have a big picture box reference each of the previous pictureboxes In GML I could use this: a="PictureBox" for i = 0 to 50 step 1 b=a&i BigPicturebox.Picture=b.picture wait 2 next i But In gambas I cannot reference a control with a string. I have tried dozens of ways and spent eleven hours reading the docs, looking at examples, and so on. But the solution eludes me. It seems really inefficient to type out Bigpicturebox.picture=picturebox1.picture wait 2.0 Bigpicturebox.picture=picturebox2.picture wait 2.0 Bigpicturebox.picture=picturebox3.picture wait 2.0 Bigpicturebox.picture=picturebox4.picture wait 2.0 etc... fifty times I am using pictureboxes but it could be any existing control I would want to control from another event. -- View this message in context: http://www.nabble.com/Referencing-existing-multiple-controls-in-loops-tp22792680p22792680.html Sent from the gambas-user mailing list archive at Nabble.com. From jbskaggs at ...1871... Mon Mar 30 23:02:28 2009 From: jbskaggs at ...1871... (jbskaggs) Date: Mon, 30 Mar 2009 14:02:28 -0700 (PDT) Subject: [Gambas-user] We should offer online Gambas courses! In-Reply-To: <200903310732.58766.rterry@...1946...> References: <22792079.post@...1379...> <200903310732.58766.rterry@...1946...> Message-ID: <22792808.post@...1379...> We could all contribute on our own level - have a look at the wxPython demo as such an sample code-base of how to use the language. I agree with you, though I would also like to have the ability to have specific instruction in things. So why not do both? Which reminds me I probably should go back through my open source codes and comment them.:wistle: JB richard terry-5 wrote: > > On Tue, 31 Mar 2009 07:22:48 am jbskaggs wrote: >> I would like to set up a online gambas school where the more experienced >> users and coders here could offer an online workshop on Gambas for users. >> >> Make it an affordable cost (Like a $0 to $25 a course, depending on >> complexity, length, and time required. A course on making Forms should be >> free, but a all inclusive course on writing a mmorpg in gambas should >> have >> a fee attached) and offer a workshop for different fundamentals: >> >> I know for me a lot of Gambas is intuitive but much of it isn't. >> >> Im thinking it could be setup on a moodle or someother workshop / class >> software. With online lessons and quizzes for free but to get the actual >> coding graded it would require a live teacher to grade and comment >> thereby >> why a nominal fee would be justified. I could even host the moodle site >> and help admin it but my programming knowledge is so low I wouldn't make >> a >> good teacher. But I could help someone setup a course and host it and >> that >> person could charge a reasonable fee to teach the course. (Though in the >> spirit of linux the less money the better.) >> >> For example I would be willing to pay right now to be tutored in how to >> reference, manipulate, and check objects and controls via code >> (dynamically >> via nested loops and such). I read the documents- I look at the examples >> and still I get the wrong impressions and waste hours and hours on many >> different controls or functions. >> >> I helped setup an online bible college and the way it ran was every >> course >> had a different instructor (or most did) and those instructors set their >> own prerequisites and graded assignments on their own schedule (within >> reason). >> >> But the very basic courses were almost entirely automated - no need to >> have >> heavy instructor interaction. But as the courses became more in depth >> then >> instructors became paramount. Because students needed to ask questions >> and >> yes other students could answer and even grade (though their gradings >> were >> subject to instructor override.) >> >> I look at the number of basic questions on Nabbles and just think that a >> systematic instruction courses would make gambas bloom even more. >> >> Maybe something like: >> >> 1- Setting up your Gambas >> a. download and installation >> b. Defining preferences and intro to Gambas >> >> 2- Mastering the IDE interface: >> a. creating projects, forms, simple control, saving, compiling, and >> packaging >> >> 3- Gambas Programming fundamentals: A big unit broken into smaller >> courses >> a. Forms >> b. Controls >> c. Assignments, Operators, Strings, Numbers, and Booleans >> d. Comparisons, Loops, and nestings >> e. Good programming, coding practices, and the Gambas Programming >> language >> >> 4. Components: Another big unit >> a. gb >> b. gb.compress >> c. gb.chart etc... >> >> 5. FX >> a. BMP, JPG, PNG, GIF, etc what they are. Editing and making them. >> b. Animations and movies >> c. creating, editing, and sounds and music >> >> 6. Application specific courses: >> a. How to write a text editor >> b. How to write a scrolling shooter game etc and so on >> >> and so forth. >> >> And of course offer a Certificates for completing the courses. >> >> I know moodle and setting up the site would be easy- and if someone >> wanted >> to teach a course I could setup the course, forums, and quizzes etc. I >> could make some beginner courses on my own- but I would need help with >> more >> advanced subjects. >> >> Any thoughts? Objections? Volunteers? >> >> JB Skaggs > > Personally I think we should do what I've pushed for before - include > extensively commented sample code along with gambas. We could all > contribute > on our own level - have a look at the wxPython demo as such an sample > code-base of how to use the language. > > Richard > > > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://www.nabble.com/We-should-offer-online-Gambas-courses%21-tp22792079p22792808.html Sent from the gambas-user mailing list archive at Nabble.com. From ron at ...1740... Mon Mar 30 22:43:22 2009 From: ron at ...1740... (Ron) Date: Mon, 30 Mar 2009 22:43:22 +0200 Subject: [Gambas-user] We should offer online Gambas courses! In-Reply-To: <200903310732.58766.rterry@...1946...> References: <22792079.post@...1379...> <200903310732.58766.rterry@...1946...> Message-ID: <49D12EEA.2080207@...1740...> richard terry wrote: > On Tue, 31 Mar 2009 07:22:48 am jbskaggs wrote: > >> I would like to set up a online gambas school where the more experienced >> users and coders here could offer an online workshop on Gambas for users. >> >> Make it an affordable cost (Like a $0 to $25 a course, depending on >> complexity, length, and time required. A course on making Forms should be >> free, but a all inclusive course on writing a mmorpg in gambas should have >> a fee attached) and offer a workshop for different fundamentals: >> >> I know for me a lot of Gambas is intuitive but much of it isn't. >> >> Im thinking it could be setup on a moodle or someother workshop / class >> software. With online lessons and quizzes for free but to get the actual >> coding graded it would require a live teacher to grade and comment thereby >> why a nominal fee would be justified. I could even host the moodle site >> and help admin it but my programming knowledge is so low I wouldn't make a >> good teacher. But I could help someone setup a course and host it and that >> person could charge a reasonable fee to teach the course. (Though in the >> spirit of linux the less money the better.) >> >> For example I would be willing to pay right now to be tutored in how to >> reference, manipulate, and check objects and controls via code (dynamically >> via nested loops and such). I read the documents- I look at the examples >> and still I get the wrong impressions and waste hours and hours on many >> different controls or functions. >> >> I helped setup an online bible college and the way it ran was every course >> had a different instructor (or most did) and those instructors set their >> own prerequisites and graded assignments on their own schedule (within >> reason). >> >> But the very basic courses were almost entirely automated - no need to have >> heavy instructor interaction. But as the courses became more in depth then >> instructors became paramount. Because students needed to ask questions and >> yes other students could answer and even grade (though their gradings were >> subject to instructor override.) >> >> I look at the number of basic questions on Nabbles and just think that a >> systematic instruction courses would make gambas bloom even more. >> >> Maybe something like: >> >> 1- Setting up your Gambas >> a. download and installation >> b. Defining preferences and intro to Gambas >> >> 2- Mastering the IDE interface: >> a. creating projects, forms, simple control, saving, compiling, and >> packaging >> >> 3- Gambas Programming fundamentals: A big unit broken into smaller courses >> a. Forms >> b. Controls >> c. Assignments, Operators, Strings, Numbers, and Booleans >> d. Comparisons, Loops, and nestings >> e. Good programming, coding practices, and the Gambas Programming >> language >> >> 4. Components: Another big unit >> a. gb >> b. gb.compress >> c. gb.chart etc... >> >> 5. FX >> a. BMP, JPG, PNG, GIF, etc what they are. Editing and making them. >> b. Animations and movies >> c. creating, editing, and sounds and music >> >> 6. Application specific courses: >> a. How to write a text editor >> b. How to write a scrolling shooter game etc and so on >> >> and so forth. >> >> And of course offer a Certificates for completing the courses. >> >> I know moodle and setting up the site would be easy- and if someone wanted >> to teach a course I could setup the course, forums, and quizzes etc. I >> could make some beginner courses on my own- but I would need help with more >> advanced subjects. >> >> Any thoughts? Objections? Volunteers? >> >> JB Skaggs >> > > Personally I think we should do what I've pushed for before - include > extensively commented sample code along with gambas. We could all contribute > on our own level - have a look at the wxPython demo as such an sample > code-base of how to use the language. > > Richard > > I agree, an example code/snippets site or part on the official wiki for it would be much better. Ron_2nd. From jbskaggs at ...1871... Mon Mar 30 23:08:48 2009 From: jbskaggs at ...1871... (jbskaggs) Date: Mon, 30 Mar 2009 14:08:48 -0700 (PDT) Subject: [Gambas-user] We should offer online Gambas courses! In-Reply-To: <20090330154426.19d83c7e.M0E.lnx@...626...> References: <22792079.post@...1379...> <20090330154426.19d83c7e.M0E.lnx@...626...> Message-ID: <22792915.post@...1379...> Well the thing about moodle sites is you dont have to be there all the time you'd only be notified if a student registers and or submits something. Setting up the courses would be tougher as the most time intensive part is creating the quizzes and writing the course text- the Gambas docs can be used but would need more intense commentary, example and explanation. JB M0E.lnx wrote: > > This sounds like a good idea, and I would support it if there were people > interested. > > I tried something similar @ our vectorlinux forums where I offered to help > anyone as much as I could get on the road with gambas. > > Did not pick up a whole lot of interested people, as I remember, only 2 > people really got into it. One of them was able to write an application. > The other one was getting really deep into the documentation before he got > to the IDE, and something happened in his family, so he dropped it. > > I like the idea, I really think there is definitely a market for gambas in > linux development, but dont expect to get a whole lot of interest. And i'm > not being pesimistic, but rather realistic. > > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://www.nabble.com/We-should-offer-online-Gambas-courses%21-tp22792079p22792915.html Sent from the gambas-user mailing list archive at Nabble.com. From m0e.lnx at ...626... Mon Mar 30 23:14:13 2009 From: m0e.lnx at ...626... (M0E.lnx) Date: Mon, 30 Mar 2009 16:14:13 -0500 Subject: [Gambas-user] Re ferencing existing multiple controls in loops In-Reply-To: <22792680.post@...1379...> References: <22792680.post@...1379...> Message-ID: <20090330161413.c5b91841.M0E.lnx@...626...> What you want to do is a loop. For example. say this is a class file. And all your pictureboxes are already in objPboxes private objPboxes as object[] PUBLIC SUB Set_Pictures() DIM pb as picturebox for each pb in objPboxes pb.picture = "/path/to/picture" next END From richard at ...2079... Mon Mar 30 23:21:42 2009 From: richard at ...2079... (Richard Muir-Gladman) Date: Mon, 30 Mar 2009 22:21:42 +0100 Subject: [Gambas-user] Re ferencing existing multiple controls in loops In-Reply-To: <22792680.post@...1379...> References: <22792680.post@...1379...> Message-ID: <1238448102.7332.1.camel@...2119...> On Mon, 2009-03-30 at 13:55 -0700, jbskaggs wrote: > Okay I have a form with say 50 picturebox controls: > > How does one check each controls in a loop? > > So if I wanted to have a big picture box reference each of the previous > pictureboxes > > > In GML I could use this: > > a="PictureBox" > for i = 0 to 50 step 1 > b=a&i > BigPicturebox.Picture=b.picture > wait 2 > next i > > But In gambas I cannot reference a control with a string. I have tried > dozens of ways and spent eleven hours reading the docs, looking at examples, > and so on. But the solution eludes me. > > It seems really inefficient to type out > > Bigpicturebox.picture=picturebox1.picture > wait 2.0 > Bigpicturebox.picture=picturebox2.picture > wait 2.0 > Bigpicturebox.picture=picturebox3.picture > wait 2.0 > Bigpicturebox.picture=picturebox4.picture > wait 2.0 > > etc... fifty times > > I am using pictureboxes but it could be any existing control I would want to > control from another event. One way would be to put them in a container and access the children array FOR i = myContainer.Children.Count - 1 TO 0 STEP -1 myContainer.Children[i].DoWhatEver() NEXT -- Quantum materiae materietur marmota monax si marmota monax materiam possit materiari? (How much wood would a woodchuck chuck if a woodchuck could chuck wood?) Registered Linux User: #459086 From rterry at ...1946... Mon Mar 30 23:28:50 2009 From: rterry at ...1946... (richard terry) Date: Tue, 31 Mar 2009 08:28:50 +1100 Subject: [Gambas-user] We should offer online Gambas courses! In-Reply-To: <49D12EEA.2080207@...1740...> References: <22792079.post@...1379...> <200903310732.58766.rterry@...1946...> <49D12EEA.2080207@...1740...> Message-ID: <200903310828.50824.rterry@...1946...> On Tue, 31 Mar 2009 07:43:22 am Ron wrote: > richard terry wrote: > > On Tue, 31 Mar 2009 07:22:48 am jbskaggs wrote: > >> I would like to set up a online gambas school where the more experienced > >> users and coders here could offer an online workshop on Gambas for > >> users. > >> > >> Make it an affordable cost (Like a $0 to $25 a course, depending on > >> complexity, length, and time required. A course on making Forms should > >> be free, but a all inclusive course on writing a mmorpg in gambas should > >> have a fee attached) and offer a workshop for different fundamentals: > >> > >> I know for me a lot of Gambas is intuitive but much of it isn't. > >> > >> Im thinking it could be setup on a moodle or someother workshop / class > >> software. With online lessons and quizzes for free but to get the > >> actual coding graded it would require a live teacher to grade and > >> comment thereby why a nominal fee would be justified. I could even host > >> the moodle site and help admin it but my programming knowledge is so low > >> I wouldn't make a good teacher. But I could help someone setup a course > >> and host it and that person could charge a reasonable fee to teach the > >> course. (Though in the spirit of linux the less money the better.) > >> > >> For example I would be willing to pay right now to be tutored in how to > >> reference, manipulate, and check objects and controls via code > >> (dynamically via nested loops and such). I read the documents- I look > >> at the examples and still I get the wrong impressions and waste hours > >> and hours on many different controls or functions. > >> > >> I helped setup an online bible college and the way it ran was every > >> course had a different instructor (or most did) and those instructors > >> set their own prerequisites and graded assignments on their own schedule > >> (within reason). > >> > >> But the very basic courses were almost entirely automated - no need to > >> have heavy instructor interaction. But as the courses became more in > >> depth then instructors became paramount. Because students needed to ask > >> questions and yes other students could answer and even grade (though > >> their gradings were subject to instructor override.) > >> > >> I look at the number of basic questions on Nabbles and just think that a > >> systematic instruction courses would make gambas bloom even more. > >> > >> Maybe something like: > >> > >> 1- Setting up your Gambas > >> a. download and installation > >> b. Defining preferences and intro to Gambas > >> > >> 2- Mastering the IDE interface: > >> a. creating projects, forms, simple control, saving, compiling, and > >> packaging > >> > >> 3- Gambas Programming fundamentals: A big unit broken into smaller > >> courses a. Forms > >> b. Controls > >> c. Assignments, Operators, Strings, Numbers, and Booleans > >> d. Comparisons, Loops, and nestings > >> e. Good programming, coding practices, and the Gambas Programming > >> language > >> > >> 4. Components: Another big unit > >> a. gb > >> b. gb.compress > >> c. gb.chart etc... > >> > >> 5. FX > >> a. BMP, JPG, PNG, GIF, etc what they are. Editing and making them. > >> b. Animations and movies > >> c. creating, editing, and sounds and music > >> > >> 6. Application specific courses: > >> a. How to write a text editor > >> b. How to write a scrolling shooter game etc and so on > >> > >> and so forth. > >> > >> And of course offer a Certificates for completing the courses. > >> > >> I know moodle and setting up the site would be easy- and if someone > >> wanted to teach a course I could setup the course, forums, and quizzes > >> etc. I could make some beginner courses on my own- but I would need > >> help with more advanced subjects. > >> > >> Any thoughts? Objections? Volunteers? > >> > >> JB Skaggs > > > > Personally I think we should do what I've pushed for before - include > > extensively commented sample code along with gambas. We could all > > contribute on our own level - have a look at the wxPython demo as such an > > sample code-base of how to use the language. > > > > Richard > > I agree, an example code/snippets site or part on the official wiki for > it would be much better. > > Ron_2nd. I for one will put up my hand to contribute with simple sample programs if someone will do the co-ordination. My working day (I'm in general practice in Australia) starts at 7:30am and I finish around 6-630PM - it is so long that I have only a few hours at night for my life, so I can't volunteer the co-ordination role. If someone could take responsibility for that, I'd be happy to be organised and asked to contribute. Regards Richard > > --------------------------------------------------------------------------- >--- _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From jbskaggs at ...1871... Mon Mar 30 23:49:37 2009 From: jbskaggs at ...1871... (jbskaggs) Date: Mon, 30 Mar 2009 14:49:37 -0700 (PDT) Subject: [Gambas-user] We should offer online Gambas courses! In-Reply-To: <200903310828.50824.rterry@...1946...> References: <22792079.post@...1379...> <200903310732.58766.rterry@...1946...> <49D12EEA.2080207@...1740...> <200903310828.50824.rterry@...1946...> Message-ID: <22793736.post@...1379...> Like I said I'd admin the site so I guess that's what you mean by co-ordinate the samples. Ill setup a site tonite, so when you get a chance you can email me the samples to just remove the spaces: jbskaggs @ skaggs world . com Im in the states but Im in the office from noon central time till about 4 or 5 am. I work and live children's home (used to be called orphanages) so at night have time to program and write etc. I'm the one who makes sure kids don't run away, are comforted when scared or lonely, provide counseling, that kind of thing. jb skaggs richard terry-5 wrote: > > On Tue, 31 Mar 2009 07:43:22 am Ron wrote: >> richard terry wrote: >> > On Tue, 31 Mar 2009 07:22:48 am jbskaggs wrote: >> >> I would like to set up a online gambas school where the more >> experienced >> >> users and coders here could offer an online workshop on Gambas for >> >> users. >> >> >> >> Make it an affordable cost (Like a $0 to $25 a course, depending on >> >> complexity, length, and time required. A course on making Forms should >> >> be free, but a all inclusive course on writing a mmorpg in gambas >> should >> >> have a fee attached) and offer a workshop for different fundamentals: >> >> >> >> I know for me a lot of Gambas is intuitive but much of it isn't. >> >> >> >> Im thinking it could be setup on a moodle or someother workshop / >> class >> >> software. With online lessons and quizzes for free but to get the >> >> actual coding graded it would require a live teacher to grade and >> >> comment thereby why a nominal fee would be justified. I could even >> host >> >> the moodle site and help admin it but my programming knowledge is so >> low >> >> I wouldn't make a good teacher. But I could help someone setup a >> course >> >> and host it and that person could charge a reasonable fee to teach the >> >> course. (Though in the spirit of linux the less money the better.) >> >> >> >> For example I would be willing to pay right now to be tutored in how >> to >> >> reference, manipulate, and check objects and controls via code >> >> (dynamically via nested loops and such). I read the documents- I look >> >> at the examples and still I get the wrong impressions and waste hours >> >> and hours on many different controls or functions. >> >> >> >> I helped setup an online bible college and the way it ran was every >> >> course had a different instructor (or most did) and those instructors >> >> set their own prerequisites and graded assignments on their own >> schedule >> >> (within reason). >> >> >> >> But the very basic courses were almost entirely automated - no need to >> >> have heavy instructor interaction. But as the courses became more in >> >> depth then instructors became paramount. Because students needed to >> ask >> >> questions and yes other students could answer and even grade (though >> >> their gradings were subject to instructor override.) >> >> >> >> I look at the number of basic questions on Nabbles and just think that >> a >> >> systematic instruction courses would make gambas bloom even more. >> >> >> >> Maybe something like: >> >> >> >> 1- Setting up your Gambas >> >> a. download and installation >> >> b. Defining preferences and intro to Gambas >> >> >> >> 2- Mastering the IDE interface: >> >> a. creating projects, forms, simple control, saving, compiling, >> and >> >> packaging >> >> >> >> 3- Gambas Programming fundamentals: A big unit broken into smaller >> >> courses a. Forms >> >> b. Controls >> >> c. Assignments, Operators, Strings, Numbers, and Booleans >> >> d. Comparisons, Loops, and nestings >> >> e. Good programming, coding practices, and the Gambas Programming >> >> language >> >> >> >> 4. Components: Another big unit >> >> a. gb >> >> b. gb.compress >> >> c. gb.chart etc... >> >> >> >> 5. FX >> >> a. BMP, JPG, PNG, GIF, etc what they are. Editing and making >> them. >> >> b. Animations and movies >> >> c. creating, editing, and sounds and music >> >> >> >> 6. Application specific courses: >> >> a. How to write a text editor >> >> b. How to write a scrolling shooter game etc and so on >> >> >> >> and so forth. >> >> >> >> And of course offer a Certificates for completing the courses. >> >> >> >> I know moodle and setting up the site would be easy- and if someone >> >> wanted to teach a course I could setup the course, forums, and quizzes >> >> etc. I could make some beginner courses on my own- but I would need >> >> help with more advanced subjects. >> >> >> >> Any thoughts? Objections? Volunteers? >> >> >> >> JB Skaggs >> > >> > Personally I think we should do what I've pushed for before - include >> > extensively commented sample code along with gambas. We could all >> > contribute on our own level - have a look at the wxPython demo as such >> an >> > sample code-base of how to use the language. >> > >> > Richard >> >> I agree, an example code/snippets site or part on the official wiki for >> it would be much better. >> >> Ron_2nd. > > I for one will put up my hand to contribute with simple sample programs if > someone will do the co-ordination. My working day (I'm in general practice > in > Australia) starts at 7:30am and I finish around 6-630PM - it is so long > that > I have only a few hours at night for my life, so I can't volunteer the > co-ordination role. > > If someone could take responsibility for that, I'd be happy to be > organised > and asked to contribute. > > Regards > > Richard > >> >> --------------------------------------------------------------------------- >>--- _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://www.nabble.com/We-should-offer-online-Gambas-courses%21-tp22792079p22793736.html Sent from the gambas-user mailing list archive at Nabble.com. From weldon_gary at ...67... Mon Mar 30 23:50:32 2009 From: weldon_gary at ...67... (CelticBhoy) Date: Mon, 30 Mar 2009 14:50:32 -0700 (PDT) Subject: [Gambas-user] We should offer online Gambas courses! In-Reply-To: <22792079.post@...1379...> References: <22792079.post@...1379...> Message-ID: <22793757.post@...1379...> As someone who is new to Gambas and has not coded anything for roughly 20 years this seems like a fantastic idea to me. I would be especially interested in the suggestion of placing user code online for others to examine. I do however think that it would have to be tightly controlled over content regarding useful comment, and required versions. I think that the simple things should be covered to begin with ie printing (info is hard to find on this subject). As I say I would be a user of this system and look forward to you folks with the knowledge getting something running! -- View this message in context: http://www.nabble.com/We-should-offer-online-Gambas-courses%21-tp22792079p22793757.html Sent from the gambas-user mailing list archive at Nabble.com. From abarzuaf at ...626... Tue Mar 31 00:24:45 2009 From: abarzuaf at ...626... (cristian abarzua) Date: Mon, 30 Mar 2009 18:24:45 -0400 Subject: [Gambas-user] Package Files Message-ID: <7481ab230903301524s68369d22i4171e15cfd890fa2@...627...> Hello everyone. How deb package files, the sources of Gambas. Sorry for my bad English Greetings Cristian Abarz?a Temuco - Chile From rterry at ...1946... Tue Mar 31 01:33:23 2009 From: rterry at ...1946... (richard terry) Date: Tue, 31 Mar 2009 10:33:23 +1100 Subject: [Gambas-user] We should offer online Gambas courses! In-Reply-To: <22793736.post@...1379...> References: <22792079.post@...1379...> <200903310828.50824.rterry@...1946...> <22793736.post@...1379...> Message-ID: <200903311033.23477.rterry@...1946...> On Tue, 31 Mar 2009 08:49:37 am jbskaggs wrote: > Like I said I'd admin the site so I guess that's what you mean by > co-ordinate the samples. > > Ill setup a site tonite, so when you get a chance you can email me the > samples to just remove the spaces: Personally I think the samples should be part of a gambas program - an overview of gambas like I said wxPython demo does - and not part of a web site. I think there needs to be two parts of this 1) More detailed examples in the documentation wiki even for really simple things 2) Complete code examples as part of a larger demo included with the distribution of Gambas, and maintained as part of the source code in svn That way, if you or I get run over by a truck it is still there. Ive never experienced much joy looking for code on websites - it tends to be fragmented, difficult to maintain and I don't really want to contribute to it if that is the format. I enclose a screen dump of a very simple one for beginners (my code may be bad - so if so you can fix it), which shows the concept I think would work, and could be included as part of a whole demo. I've others I've done. > > jbskaggs @ skaggs world . com > > Im in the states but Im in the office from noon central time till about 4 > or 5 am. I work and live children's home (used to be called orphanages) so > at night have time to program and write etc. I'm the one who makes sure > kids don't run away, are comforted when scared or lonely, provide > counseling, that kind of thing. > > jb skaggs > > richard terry-5 wrote: > > On Tue, 31 Mar 2009 07:43:22 am Ron wrote: > >> richard terry wrote: > >> > On Tue, 31 Mar 2009 07:22:48 am jbskaggs wrote: > >> >> I would like to set up a online gambas school where the more > >> > >> experienced > >> > >> >> users and coders here could offer an online workshop on Gambas for > >> >> users. > >> >> > >> >> Make it an affordable cost (Like a $0 to $25 a course, depending on > >> >> complexity, length, and time required. A course on making Forms > >> >> should be free, but a all inclusive course on writing a mmorpg in > >> >> gambas > >> > >> should > >> > >> >> have a fee attached) and offer a workshop for different > >> >> fundamentals: > >> >> > >> >> I know for me a lot of Gambas is intuitive but much of it isn't. > >> >> > >> >> Im thinking it could be setup on a moodle or someother workshop / > >> > >> class > >> > >> >> software. With online lessons and quizzes for free but to get the > >> >> actual coding graded it would require a live teacher to grade and > >> >> comment thereby why a nominal fee would be justified. I could even > >> > >> host > >> > >> >> the moodle site and help admin it but my programming knowledge is so > >> > >> low > >> > >> >> I wouldn't make a good teacher. But I could help someone setup a > >> > >> course > >> > >> >> and host it and that person could charge a reasonable fee to teach > >> >> the course. (Though in the spirit of linux the less money the > >> >> better.) > >> >> > >> >> For example I would be willing to pay right now to be tutored in how > >> > >> to > >> > >> >> reference, manipulate, and check objects and controls via code > >> >> (dynamically via nested loops and such). I read the documents- I > >> >> look at the examples and still I get the wrong impressions and waste > >> >> hours and hours on many different controls or functions. > >> >> > >> >> I helped setup an online bible college and the way it ran was every > >> >> course had a different instructor (or most did) and those instructors > >> >> set their own prerequisites and graded assignments on their own > >> > >> schedule > >> > >> >> (within reason). > >> >> > >> >> But the very basic courses were almost entirely automated - no need > >> >> to have heavy instructor interaction. But as the courses became more > >> >> in depth then instructors became paramount. Because students needed > >> >> to > >> > >> ask > >> > >> >> questions and yes other students could answer and even grade (though > >> >> their gradings were subject to instructor override.) > >> >> > >> >> I look at the number of basic questions on Nabbles and just think > >> >> that > >> > >> a > >> > >> >> systematic instruction courses would make gambas bloom even more. > >> >> > >> >> Maybe something like: > >> >> > >> >> 1- Setting up your Gambas > >> >> a. download and installation > >> >> b. Defining preferences and intro to Gambas > >> >> > >> >> 2- Mastering the IDE interface: > >> >> a. creating projects, forms, simple control, saving, compiling, > >> > >> and > >> > >> >> packaging > >> >> > >> >> 3- Gambas Programming fundamentals: A big unit broken into smaller > >> >> courses a. Forms > >> >> b. Controls > >> >> c. Assignments, Operators, Strings, Numbers, and Booleans > >> >> d. Comparisons, Loops, and nestings > >> >> e. Good programming, coding practices, and the Gambas > >> >> Programming language > >> >> > >> >> 4. Components: Another big unit > >> >> a. gb > >> >> b. gb.compress > >> >> c. gb.chart etc... > >> >> > >> >> 5. FX > >> >> a. BMP, JPG, PNG, GIF, etc what they are. Editing and making > >> > >> them. > >> > >> >> b. Animations and movies > >> >> c. creating, editing, and sounds and music > >> >> > >> >> 6. Application specific courses: > >> >> a. How to write a text editor > >> >> b. How to write a scrolling shooter game etc and so on > >> >> > >> >> and so forth. > >> >> > >> >> And of course offer a Certificates for completing the courses. > >> >> > >> >> I know moodle and setting up the site would be easy- and if someone > >> >> wanted to teach a course I could setup the course, forums, and > >> >> quizzes etc. I could make some beginner courses on my own- but I > >> >> would need help with more advanced subjects. > >> >> > >> >> Any thoughts? Objections? Volunteers? > >> >> > >> >> JB Skaggs > >> > > >> > Personally I think we should do what I've pushed for before - include > >> > extensively commented sample code along with gambas. We could all > >> > contribute on our own level - have a look at the wxPython demo as such > >> > >> an > >> > >> > sample code-base of how to use the language. > >> > > >> > Richard > >> > >> I agree, an example code/snippets site or part on the official wiki for > >> it would be much better. > >> > >> Ron_2nd. > > > > I for one will put up my hand to contribute with simple sample programs > > if someone will do the co-ordination. My working day (I'm in general > > practice in > > Australia) starts at 7:30am and I finish around 6-630PM - it is so long > > that > > I have only a few hours at night for my life, so I can't volunteer the > > co-ordination role. > > > > If someone could take responsibility for that, I'd be happy to be > > organised > > and asked to contribute. > > > > Regards > > > > Richard > > > >> ------------------------------------------------------------------------ > >>--- --- _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------- > >----- _______________________________________________ > > 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: listview_multi_select.png Type: image/png Size: 104361 bytes Desc: not available URL: From jbskaggs at ...1871... Tue Mar 31 03:26:20 2009 From: jbskaggs at ...1871... (jbskaggs) Date: Mon, 30 Mar 2009 18:26:20 -0700 (PDT) Subject: [Gambas-user] We should offer online Gambas courses! In-Reply-To: <200903311033.23477.rterry@...1946...> References: <22792079.post@...1379...> <200903310732.58766.rterry@...1946...> <49D12EEA.2080207@...1740...> <200903310828.50824.rterry@...1946...> <22793736.post@...1379...> <200903311033.23477.rterry@...1946...> Message-ID: <22796604.post@...1379...> Thanks for the code! JB richard terry-5 wrote: > > On Tue, 31 Mar 2009 08:49:37 am jbskaggs wrote: >> Like I said I'd admin the site so I guess that's what you mean by >> co-ordinate the samples. >> >> Ill setup a site tonite, so when you get a chance you can email me the >> samples to just remove the spaces: > > Personally I think the samples should be part of a gambas program - an > overview of gambas like I said wxPython demo does - and not part of a web > site. I think there needs to be two parts of this > > 1) More detailed examples in the documentation wiki even for really simple > things > > 2) Complete code examples as part of a larger demo included with the > distribution of Gambas, and maintained as part of the source code in svn > > That way, if you or I get run over by a truck it is still there. > > Ive never experienced much joy looking for code on websites - it tends to > be > fragmented, difficult to maintain and I don't really want to contribute to > it > if that is the format. > > I enclose a screen dump of a very simple one for beginners (my code may be > bad - so if so you can fix it), which shows the concept I think would > work, > and could be included as part of a whole demo. I've others I've done. > > >> >> jbskaggs @ skaggs world . com >> >> Im in the states but Im in the office from noon central time till about 4 >> or 5 am. I work and live children's home (used to be called orphanages) >> so >> at night have time to program and write etc. I'm the one who makes sure >> kids don't run away, are comforted when scared or lonely, provide >> counseling, that kind of thing. >> >> jb skaggs >> >> richard terry-5 wrote: >> > On Tue, 31 Mar 2009 07:43:22 am Ron wrote: >> >> richard terry wrote: >> >> > On Tue, 31 Mar 2009 07:22:48 am jbskaggs wrote: >> >> >> I would like to set up a online gambas school where the more >> >> >> >> experienced >> >> >> >> >> users and coders here could offer an online workshop on Gambas for >> >> >> users. >> >> >> >> >> >> Make it an affordable cost (Like a $0 to $25 a course, depending on >> >> >> complexity, length, and time required. A course on making Forms >> >> >> should be free, but a all inclusive course on writing a mmorpg in >> >> >> gambas >> >> >> >> should >> >> >> >> >> have a fee attached) and offer a workshop for different >> >> >> fundamentals: >> >> >> >> >> >> I know for me a lot of Gambas is intuitive but much of it isn't. >> >> >> >> >> >> Im thinking it could be setup on a moodle or someother workshop / >> >> >> >> class >> >> >> >> >> software. With online lessons and quizzes for free but to get the >> >> >> actual coding graded it would require a live teacher to grade and >> >> >> comment thereby why a nominal fee would be justified. I could even >> >> >> >> host >> >> >> >> >> the moodle site and help admin it but my programming knowledge is >> so >> >> >> >> low >> >> >> >> >> I wouldn't make a good teacher. But I could help someone setup a >> >> >> >> course >> >> >> >> >> and host it and that person could charge a reasonable fee to teach >> >> >> the course. (Though in the spirit of linux the less money the >> >> >> better.) >> >> >> >> >> >> For example I would be willing to pay right now to be tutored in >> how >> >> >> >> to >> >> >> >> >> reference, manipulate, and check objects and controls via code >> >> >> (dynamically via nested loops and such). I read the documents- I >> >> >> look at the examples and still I get the wrong impressions and >> waste >> >> >> hours and hours on many different controls or functions. >> >> >> >> >> >> I helped setup an online bible college and the way it ran was every >> >> >> course had a different instructor (or most did) and those >> instructors >> >> >> set their own prerequisites and graded assignments on their own >> >> >> >> schedule >> >> >> >> >> (within reason). >> >> >> >> >> >> But the very basic courses were almost entirely automated - no need >> >> >> to have heavy instructor interaction. But as the courses became >> more >> >> >> in depth then instructors became paramount. Because students >> needed >> >> >> to >> >> >> >> ask >> >> >> >> >> questions and yes other students could answer and even grade >> (though >> >> >> their gradings were subject to instructor override.) >> >> >> >> >> >> I look at the number of basic questions on Nabbles and just think >> >> >> that >> >> >> >> a >> >> >> >> >> systematic instruction courses would make gambas bloom even more. >> >> >> >> >> >> Maybe something like: >> >> >> >> >> >> 1- Setting up your Gambas >> >> >> a. download and installation >> >> >> b. Defining preferences and intro to Gambas >> >> >> >> >> >> 2- Mastering the IDE interface: >> >> >> a. creating projects, forms, simple control, saving, >> compiling, >> >> >> >> and >> >> >> >> >> packaging >> >> >> >> >> >> 3- Gambas Programming fundamentals: A big unit broken into smaller >> >> >> courses a. Forms >> >> >> b. Controls >> >> >> c. Assignments, Operators, Strings, Numbers, and Booleans >> >> >> d. Comparisons, Loops, and nestings >> >> >> e. Good programming, coding practices, and the Gambas >> >> >> Programming language >> >> >> >> >> >> 4. Components: Another big unit >> >> >> a. gb >> >> >> b. gb.compress >> >> >> c. gb.chart etc... >> >> >> >> >> >> 5. FX >> >> >> a. BMP, JPG, PNG, GIF, etc what they are. Editing and making >> >> >> >> them. >> >> >> >> >> b. Animations and movies >> >> >> c. creating, editing, and sounds and music >> >> >> >> >> >> 6. Application specific courses: >> >> >> a. How to write a text editor >> >> >> b. How to write a scrolling shooter game etc and so on >> >> >> >> >> >> and so forth. >> >> >> >> >> >> And of course offer a Certificates for completing the courses. >> >> >> >> >> >> I know moodle and setting up the site would be easy- and if someone >> >> >> wanted to teach a course I could setup the course, forums, and >> >> >> quizzes etc. I could make some beginner courses on my own- but I >> >> >> would need help with more advanced subjects. >> >> >> >> >> >> Any thoughts? Objections? Volunteers? >> >> >> >> >> >> JB Skaggs >> >> > >> >> > Personally I think we should do what I've pushed for before - >> include >> >> > extensively commented sample code along with gambas. We could all >> >> > contribute on our own level - have a look at the wxPython demo as >> such >> >> >> >> an >> >> >> >> > sample code-base of how to use the language. >> >> > >> >> > Richard >> >> >> >> I agree, an example code/snippets site or part on the official wiki >> for >> >> it would be much better. >> >> >> >> Ron_2nd. >> > >> > I for one will put up my hand to contribute with simple sample programs >> > if someone will do the co-ordination. My working day (I'm in general >> > practice in >> > Australia) starts at 7:30am and I finish around 6-630PM - it is so long >> > that >> > I have only a few hours at night for my life, so I can't volunteer the >> > co-ordination role. >> > >> > If someone could take responsibility for that, I'd be happy to be >> > organised >> > and asked to contribute. >> > >> > Regards >> > >> > Richard >> > >> >> >> ------------------------------------------------------------------------ >> >>--- --- _______________________________________________ >> >> Gambas-user mailing list >> >> Gambas-user at lists.sourceforge.net >> >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > >> > >> ------------------------------------------------------------------------- >> >----- _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > ------------------------------------------------------------------------------ > > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://www.nabble.com/We-should-offer-online-Gambas-courses%21-tp22792079p22796604.html Sent from the gambas-user mailing list archive at Nabble.com. From iecltd at ...2113... Tue Mar 31 05:27:03 2009 From: iecltd at ...2113... (Rodney Rundstrom) Date: Tue, 31 Mar 2009 16:27:03 +1300 Subject: [Gambas-user] Dynamic Objects In-Reply-To: <49D08821.8040205@...1909...> Message-ID: <4EB89FE412344E14B58706304B87799C@...2114...> Thanks using last.text works in this case, can you clarify how I would access using parent/child can a form itself be the container or my I use another although a similar arrangement is available in VB I am not really sure how to use it? Thanks once again Rodney -----Original Message----- From: Doriano Blengino [mailto:doriano.blengino at ...1909...] Sent: Monday, 30 March 2009 9:52 p.m. To: mailing list for gambas users Subject: Re: [Gambas-user] Dynamic Objects Rodney Rundstrom ha scritto: > Thanks to some of the member I can now create objects dynamically. > > If I create a number of buttons I can position and label them differently. I > can also name them differently > > However I can have a number of objects with the same name on a form? > > I can access an event say click on any of the button but cannot write to a > property of individual labels even using its created name > > being told it is not static. > When you create controls at design time, those controls obtain a field (or slot) in the compiled code; ie, they have a true name because they become members of the class you are creating - both the Name property of the control, and a variable named the same, are retained. When you create controls at run time, the class is already formed (it contains all the controls created at design time, but nothing else). So, they don't have a name in the class, and you can't access them that way. A control created in this way may or may not have a name assigned to its Name property - it is used for other purposes. But you can still access them by saving/keeping the variable you used to instanciate them, either as a global one, a class member one (public or private), or inside an array, or whatever: private lMyLabel as Label lMyLabel = new Label(fmMain) as "another" in this case, "another" is the name used for event management, but the real handle of the label will be "lMyLabel", and you can access "lMyLabel.text" in the usual way. But if lMylabel was DIMed as a local variable in a subroutine, then its handle gets lost after the subroutine terminates. You can access controls in two ways, even if their handle is lost. The first is using "LAST" pseudo-variable in a event handler; the second is to use the Children property of a container control. Regards, Doriano Blengino ---------------------------------------------------------------------------- -- _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From rterry at ...1946... Tue Mar 31 06:20:16 2009 From: rterry at ...1946... (richard terry) Date: Tue, 31 Mar 2009 15:20:16 +1100 Subject: [Gambas-user] We should offer online Gambas courses! In-Reply-To: <22796604.post@...1379...> References: <22792079.post@...1379...> <200903311033.23477.rterry@...1946...> <22796604.post@...1379...> Message-ID: <200903311520.16157.rterry@...1946...> On Tue, 31 Mar 2009 12:26:20 pm jbskaggs wrote: > Thanks for the code! What code, is that a note oc cynicism? Richard > JB > > richard terry-5 wrote: > > On Tue, 31 Mar 2009 08:49:37 am jbskaggs wrote: > >> Like I said I'd admin the site so I guess that's what you mean by > >> co-ordinate the samples. > >> > >> Ill setup a site tonite, so when you get a chance you can email me the > >> samples to just remove the spaces: > > > > Personally I think the samples should be part of a gambas program - an > > overview of gambas like I said wxPython demo does - and not part of a web > > site. I think there needs to be two parts of this > > > > 1) More detailed examples in the documentation wiki even for really > > simple things > > > > 2) Complete code examples as part of a larger demo included with the > > distribution of Gambas, and maintained as part of the source code in svn > > > > That way, if you or I get run over by a truck it is still there. > > > > Ive never experienced much joy looking for code on websites - it tends to > > be > > fragmented, difficult to maintain and I don't really want to contribute > > to it > > if that is the format. > > > > I enclose a screen dump of a very simple one for beginners (my code may > > be bad - so if so you can fix it), which shows the concept I think would > > work, > > and could be included as part of a whole demo. I've others I've done. > > > >> jbskaggs @ skaggs world . com > >> > >> Im in the states but Im in the office from noon central time till about > >> 4 or 5 am. I work and live children's home (used to be called > >> orphanages) so > >> at night have time to program and write etc. I'm the one who makes > >> sure kids don't run away, are comforted when scared or lonely, provide > >> counseling, that kind of thing. > >> > >> jb skaggs > >> > >> richard terry-5 wrote: > >> > On Tue, 31 Mar 2009 07:43:22 am Ron wrote: > >> >> richard terry wrote: > >> >> > On Tue, 31 Mar 2009 07:22:48 am jbskaggs wrote: > >> >> >> I would like to set up a online gambas school where the more > >> >> > >> >> experienced > >> >> > >> >> >> users and coders here could offer an online workshop on Gambas for > >> >> >> users. > >> >> >> > >> >> >> Make it an affordable cost (Like a $0 to $25 a course, depending > >> >> >> on complexity, length, and time required. A course on making Forms > >> >> >> should be free, but a all inclusive course on writing a mmorpg in > >> >> >> gambas > >> >> > >> >> should > >> >> > >> >> >> have a fee attached) and offer a workshop for different > >> >> >> fundamentals: > >> >> >> > >> >> >> I know for me a lot of Gambas is intuitive but much of it isn't. > >> >> >> > >> >> >> Im thinking it could be setup on a moodle or someother workshop / > >> >> > >> >> class > >> >> > >> >> >> software. With online lessons and quizzes for free but to get the > >> >> >> actual coding graded it would require a live teacher to grade and > >> >> >> comment thereby why a nominal fee would be justified. I could > >> >> >> even > >> >> > >> >> host > >> >> > >> >> >> the moodle site and help admin it but my programming knowledge is > >> > >> so > >> > >> >> low > >> >> > >> >> >> I wouldn't make a good teacher. But I could help someone setup a > >> >> > >> >> course > >> >> > >> >> >> and host it and that person could charge a reasonable fee to teach > >> >> >> the course. (Though in the spirit of linux the less money the > >> >> >> better.) > >> >> >> > >> >> >> For example I would be willing to pay right now to be tutored in > >> > >> how > >> > >> >> to > >> >> > >> >> >> reference, manipulate, and check objects and controls via code > >> >> >> (dynamically via nested loops and such). I read the documents- I > >> >> >> look at the examples and still I get the wrong impressions and > >> > >> waste > >> > >> >> >> hours and hours on many different controls or functions. > >> >> >> > >> >> >> I helped setup an online bible college and the way it ran was > >> >> >> every course had a different instructor (or most did) and those > >> > >> instructors > >> > >> >> >> set their own prerequisites and graded assignments on their own > >> >> > >> >> schedule > >> >> > >> >> >> (within reason). > >> >> >> > >> >> >> But the very basic courses were almost entirely automated - no > >> >> >> need to have heavy instructor interaction. But as the courses > >> >> >> became > >> > >> more > >> > >> >> >> in depth then instructors became paramount. Because students > >> > >> needed > >> > >> >> >> to > >> >> > >> >> ask > >> >> > >> >> >> questions and yes other students could answer and even grade > >> > >> (though > >> > >> >> >> their gradings were subject to instructor override.) > >> >> >> > >> >> >> I look at the number of basic questions on Nabbles and just think > >> >> >> that > >> >> > >> >> a > >> >> > >> >> >> systematic instruction courses would make gambas bloom even more. > >> >> >> > >> >> >> Maybe something like: > >> >> >> > >> >> >> 1- Setting up your Gambas > >> >> >> a. download and installation > >> >> >> b. Defining preferences and intro to Gambas > >> >> >> > >> >> >> 2- Mastering the IDE interface: > >> >> >> a. creating projects, forms, simple control, saving, > >> > >> compiling, > >> > >> >> and > >> >> > >> >> >> packaging > >> >> >> > >> >> >> 3- Gambas Programming fundamentals: A big unit broken into smaller > >> >> >> courses a. Forms > >> >> >> b. Controls > >> >> >> c. Assignments, Operators, Strings, Numbers, and Booleans > >> >> >> d. Comparisons, Loops, and nestings > >> >> >> e. Good programming, coding practices, and the Gambas > >> >> >> Programming language > >> >> >> > >> >> >> 4. Components: Another big unit > >> >> >> a. gb > >> >> >> b. gb.compress > >> >> >> c. gb.chart etc... > >> >> >> > >> >> >> 5. FX > >> >> >> a. BMP, JPG, PNG, GIF, etc what they are. Editing and making > >> >> > >> >> them. > >> >> > >> >> >> b. Animations and movies > >> >> >> c. creating, editing, and sounds and music > >> >> >> > >> >> >> 6. Application specific courses: > >> >> >> a. How to write a text editor > >> >> >> b. How to write a scrolling shooter game etc and so on > >> >> >> > >> >> >> and so forth. > >> >> >> > >> >> >> And of course offer a Certificates for completing the courses. > >> >> >> > >> >> >> I know moodle and setting up the site would be easy- and if > >> >> >> someone wanted to teach a course I could setup the course, forums, > >> >> >> and quizzes etc. I could make some beginner courses on my own- > >> >> >> but I would need help with more advanced subjects. > >> >> >> > >> >> >> Any thoughts? Objections? Volunteers? > >> >> >> > >> >> >> JB Skaggs > >> >> > > >> >> > Personally I think we should do what I've pushed for before - > >> > >> include > >> > >> >> > extensively commented sample code along with gambas. We could all > >> >> > contribute on our own level - have a look at the wxPython demo as > >> > >> such > >> > >> >> an > >> >> > >> >> > sample code-base of how to use the language. > >> >> > > >> >> > Richard > >> >> > >> >> I agree, an example code/snippets site or part on the official wiki > >> > >> for > >> > >> >> it would be much better. > >> >> > >> >> Ron_2nd. > >> > > >> > I for one will put up my hand to contribute with simple sample > >> > programs if someone will do the co-ordination. My working day (I'm in > >> > general practice in > >> > Australia) starts at 7:30am and I finish around 6-630PM - it is so > >> > long that > >> > I have only a few hours at night for my life, so I can't volunteer the > >> > co-ordination role. > >> > > >> > If someone could take responsibility for that, I'd be happy to be > >> > organised > >> > and asked to contribute. > >> > > >> > Regards > >> > > >> > Richard > >> > >> ------------------------------------------------------------------------ > >> > >> >>--- --- _______________________________________________ > >> >> Gambas-user mailing list > >> >> Gambas-user at lists.sourceforge.net > >> >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > >> ------------------------------------------------------------------------ > >>- > >> > >> >----- _______________________________________________ > >> > Gambas-user mailing list > >> > Gambas-user at lists.sourceforge.net > >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------- > >----- > > > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user From dosida at ...626... Tue Mar 31 06:45:46 2009 From: dosida at ...626... (Dimitris Anogiatis) Date: Mon, 30 Mar 2009 22:45:46 -0600 Subject: [Gambas-user] We should offer online Gambas courses! In-Reply-To: <22796604.post@...1379...> References: <22792079.post@...1379...> <200903310732.58766.rterry@...1946...> <49D12EEA.2080207@...1740...> <200903310828.50824.rterry@...1946...> <22793736.post@...1379...> <200903311033.23477.rterry@...1946...> <22796604.post@...1379...> Message-ID: <82bffccf0903302145y4c3554ccv5013c78f4e18fc39@...627...> I got richard's code and turned it into a function that can be reused for any ONE Column listview control Here it is guys hope this helps PUBLIC FUNCTION ListViewSelected(lv AS ListView) AS String 'define temporary variables DIM incrementor AS Integer DIM tmpString AS String 'initialize temporary variables tmpString = "" incrementor = 0 'check to see if the listview is empty or not IF lv.count > 0 'move listview to first position lv.MoveFirst 'start loop DO 'if the item we're checking is selected then add that value to tmpString and a separating character IF lv.Item.selected = TRUE THEN tmpString &= lv.Item.text & "|" ENDIF 'increment loop terminating variable INC incrementor 'move one item down the listview lv.MoveNext 'run our loop until we have no more lines to check LOOP UNTIL incrementor = lv.Count 'end of the listview item count check ENDIF 'return our tmpString as the result of the function 'if listview has no items or no items are checked 'the function will still result in a string; an empty string RETURN Left(tmpString, Len(tmpString) - 1) END Try using it like this PRINT ListViewSelected(ListView1) the output of the function will be like this two|four you can then take it and break it down with split or whatever else you want to do with it I've been monitoring this thread and I think if this code repository idea is to work then the code we provide to each other must be reusable. that's my 2 cents work :) Regards Dimitris On Mon, Mar 30, 2009 at 7:26 PM, jbskaggs wrote: > > Thanks for the code! > > JB > > > > richard terry-5 wrote: > > > > On Tue, 31 Mar 2009 08:49:37 am jbskaggs wrote: > >> Like I said I'd admin the site so I guess that's what you mean by > >> co-ordinate the samples. > >> > >> Ill setup a site tonite, so when you get a chance you can email me the > >> samples to just remove the spaces: > > > > Personally I think the samples should be part of a gambas program - an > > overview of gambas like I said wxPython demo does - and not part of a web > > site. I think there needs to be two parts of this > > > > 1) More detailed examples in the documentation wiki even for really > simple > > things > > > > 2) Complete code examples as part of a larger demo included with the > > distribution of Gambas, and maintained as part of the source code in svn > > > > That way, if you or I get run over by a truck it is still there. > > > > Ive never experienced much joy looking for code on websites - it tends to > > be > > fragmented, difficult to maintain and I don't really want to contribute > to > > it > > if that is the format. > > > > I enclose a screen dump of a very simple one for beginners (my code may > be > > bad - so if so you can fix it), which shows the concept I think would > > work, > > and could be included as part of a whole demo. I've others I've done. > > > > > >> > >> jbskaggs @ skaggs world . com > >> > >> Im in the states but Im in the office from noon central time till about > 4 > >> or 5 am. I work and live children's home (used to be called orphanages) > >> so > >> at night have time to program and write etc. I'm the one who makes > sure > >> kids don't run away, are comforted when scared or lonely, provide > >> counseling, that kind of thing. > >> > >> jb skaggs > >> > >> richard terry-5 wrote: > >> > On Tue, 31 Mar 2009 07:43:22 am Ron wrote: > >> >> richard terry wrote: > >> >> > On Tue, 31 Mar 2009 07:22:48 am jbskaggs wrote: > >> >> >> I would like to set up a online gambas school where the more > >> >> > >> >> experienced > >> >> > >> >> >> users and coders here could offer an online workshop on Gambas for > >> >> >> users. > >> >> >> > >> >> >> Make it an affordable cost (Like a $0 to $25 a course, depending > on > >> >> >> complexity, length, and time required. A course on making Forms > >> >> >> should be free, but a all inclusive course on writing a mmorpg in > >> >> >> gambas > >> >> > >> >> should > >> >> > >> >> >> have a fee attached) and offer a workshop for different > >> >> >> fundamentals: > >> >> >> > >> >> >> I know for me a lot of Gambas is intuitive but much of it isn't. > >> >> >> > >> >> >> Im thinking it could be setup on a moodle or someother workshop / > >> >> > >> >> class > >> >> > >> >> >> software. With online lessons and quizzes for free but to get the > >> >> >> actual coding graded it would require a live teacher to grade and > >> >> >> comment thereby why a nominal fee would be justified. I could > even > >> >> > >> >> host > >> >> > >> >> >> the moodle site and help admin it but my programming knowledge is > >> so > >> >> > >> >> low > >> >> > >> >> >> I wouldn't make a good teacher. But I could help someone setup a > >> >> > >> >> course > >> >> > >> >> >> and host it and that person could charge a reasonable fee to teach > >> >> >> the course. (Though in the spirit of linux the less money the > >> >> >> better.) > >> >> >> > >> >> >> For example I would be willing to pay right now to be tutored in > >> how > >> >> > >> >> to > >> >> > >> >> >> reference, manipulate, and check objects and controls via code > >> >> >> (dynamically via nested loops and such). I read the documents- I > >> >> >> look at the examples and still I get the wrong impressions and > >> waste > >> >> >> hours and hours on many different controls or functions. > >> >> >> > >> >> >> I helped setup an online bible college and the way it ran was > every > >> >> >> course had a different instructor (or most did) and those > >> instructors > >> >> >> set their own prerequisites and graded assignments on their own > >> >> > >> >> schedule > >> >> > >> >> >> (within reason). > >> >> >> > >> >> >> But the very basic courses were almost entirely automated - no > need > >> >> >> to have heavy instructor interaction. But as the courses became > >> more > >> >> >> in depth then instructors became paramount. Because students > >> needed > >> >> >> to > >> >> > >> >> ask > >> >> > >> >> >> questions and yes other students could answer and even grade > >> (though > >> >> >> their gradings were subject to instructor override.) > >> >> >> > >> >> >> I look at the number of basic questions on Nabbles and just think > >> >> >> that > >> >> > >> >> a > >> >> > >> >> >> systematic instruction courses would make gambas bloom even more. > >> >> >> > >> >> >> Maybe something like: > >> >> >> > >> >> >> 1- Setting up your Gambas > >> >> >> a. download and installation > >> >> >> b. Defining preferences and intro to Gambas > >> >> >> > >> >> >> 2- Mastering the IDE interface: > >> >> >> a. creating projects, forms, simple control, saving, > >> compiling, > >> >> > >> >> and > >> >> > >> >> >> packaging > >> >> >> > >> >> >> 3- Gambas Programming fundamentals: A big unit broken into smaller > >> >> >> courses a. Forms > >> >> >> b. Controls > >> >> >> c. Assignments, Operators, Strings, Numbers, and Booleans > >> >> >> d. Comparisons, Loops, and nestings > >> >> >> e. Good programming, coding practices, and the Gambas > >> >> >> Programming language > >> >> >> > >> >> >> 4. Components: Another big unit > >> >> >> a. gb > >> >> >> b. gb.compress > >> >> >> c. gb.chart etc... > >> >> >> > >> >> >> 5. FX > >> >> >> a. BMP, JPG, PNG, GIF, etc what they are. Editing and making > >> >> > >> >> them. > >> >> > >> >> >> b. Animations and movies > >> >> >> c. creating, editing, and sounds and music > >> >> >> > >> >> >> 6. Application specific courses: > >> >> >> a. How to write a text editor > >> >> >> b. How to write a scrolling shooter game etc and so on > >> >> >> > >> >> >> and so forth. > >> >> >> > >> >> >> And of course offer a Certificates for completing the courses. > >> >> >> > >> >> >> I know moodle and setting up the site would be easy- and if > someone > >> >> >> wanted to teach a course I could setup the course, forums, and > >> >> >> quizzes etc. I could make some beginner courses on my own- but I > >> >> >> would need help with more advanced subjects. > >> >> >> > >> >> >> Any thoughts? Objections? Volunteers? > >> >> >> > >> >> >> JB Skaggs > >> >> > > >> >> > Personally I think we should do what I've pushed for before - > >> include > >> >> > extensively commented sample code along with gambas. We could all > >> >> > contribute on our own level - have a look at the wxPython demo as > >> such > >> >> > >> >> an > >> >> > >> >> > sample code-base of how to use the language. > >> >> > > >> >> > Richard > >> >> > >> >> I agree, an example code/snippets site or part on the official wiki > >> for > >> >> it would be much better. > >> >> > >> >> Ron_2nd. > >> > > >> > I for one will put up my hand to contribute with simple sample > programs > >> > if someone will do the co-ordination. My working day (I'm in general > >> > practice in > >> > Australia) starts at 7:30am and I finish around 6-630PM - it is so > long > >> > that > >> > I have only a few hours at night for my life, so I can't volunteer the > >> > co-ordination role. > >> > > >> > If someone could take responsibility for that, I'd be happy to be > >> > organised > >> > and asked to contribute. > >> > > >> > Regards > >> > > >> > Richard > >> > > >> >> > >> ------------------------------------------------------------------------ > >> >>--- --- _______________________________________________ > >> >> Gambas-user mailing list > >> >> Gambas-user at lists.sourceforge.net > >> >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > >> > > >> > ------------------------------------------------------------------------- > >> >----- _______________________________________________ > >> > Gambas-user mailing list > >> > Gambas-user at lists.sourceforge.net > >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > -- > View this message in context: > http://www.nabble.com/We-should-offer-online-Gambas-courses%21-tp22792079p22796604.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From dosida at ...626... Tue Mar 31 07:11:47 2009 From: dosida at ...626... (Dimitris Anogiatis) Date: Mon, 30 Mar 2009 23:11:47 -0600 Subject: [Gambas-user] We should offer online Gambas courses! In-Reply-To: <200903311520.16157.rterry@...1946...> References: <22792079.post@...1379...> <200903311033.23477.rterry@...1946...> <22796604.post@...1379...> <200903311520.16157.rterry@...1946...> Message-ID: <82bffccf0903302211v68d1a42bn70cf1ba2cf0f943e@...627...> I can't speak for anyone else but at least I intended No cynicism; I guess I saw your screenshot and just felt like changing it a bit... and I thought I read your statement right "I enclose a screen dump of a very simple one for beginners (my code may be bad - so if so you can fix it)" Regards Dimitris On Mon, Mar 30, 2009 at 10:20 PM, richard terry wrote: > On Tue, 31 Mar 2009 12:26:20 pm jbskaggs wrote: > > Thanks for the code! > What code, is that a note oc cynicism? > > Richard > > > JB > > > > richard terry-5 wrote: > > > On Tue, 31 Mar 2009 08:49:37 am jbskaggs wrote: > > >> Like I said I'd admin the site so I guess that's what you mean by > > >> co-ordinate the samples. > > >> > > >> Ill setup a site tonite, so when you get a chance you can email me the > > >> samples to just remove the spaces: > > > > > > Personally I think the samples should be part of a gambas program - an > > > overview of gambas like I said wxPython demo does - and not part of a > web > > > site. I think there needs to be two parts of this > > > > > > 1) More detailed examples in the documentation wiki even for really > > > simple things > > > > > > 2) Complete code examples as part of a larger demo included with the > > > distribution of Gambas, and maintained as part of the source code in > svn > > > > > > That way, if you or I get run over by a truck it is still there. > > > > > > Ive never experienced much joy looking for code on websites - it tends > to > > > be > > > fragmented, difficult to maintain and I don't really want to contribute > > > to it > > > if that is the format. > > > > > > I enclose a screen dump of a very simple one for beginners (my code may > > > be bad - so if so you can fix it), which shows the concept I think > would > > > work, > > > and could be included as part of a whole demo. I've others I've done. > > > > > >> jbskaggs @ skaggs world . com > > >> > > >> Im in the states but Im in the office from noon central time till > about > > >> 4 or 5 am. I work and live children's home (used to be called > > >> orphanages) so > > >> at night have time to program and write etc. I'm the one who makes > > >> sure kids don't run away, are comforted when scared or lonely, provide > > >> counseling, that kind of thing. > > >> > > >> jb skaggs > > >> > > >> richard terry-5 wrote: > > >> > On Tue, 31 Mar 2009 07:43:22 am Ron wrote: > > >> >> richard terry wrote: > > >> >> > On Tue, 31 Mar 2009 07:22:48 am jbskaggs wrote: > > >> >> >> I would like to set up a online gambas school where the more > > >> >> > > >> >> experienced > > >> >> > > >> >> >> users and coders here could offer an online workshop on Gambas > for > > >> >> >> users. > > >> >> >> > > >> >> >> Make it an affordable cost (Like a $0 to $25 a course, depending > > >> >> >> on complexity, length, and time required. A course on making > Forms > > >> >> >> should be free, but a all inclusive course on writing a mmorpg > in > > >> >> >> gambas > > >> >> > > >> >> should > > >> >> > > >> >> >> have a fee attached) and offer a workshop for different > > >> >> >> fundamentals: > > >> >> >> > > >> >> >> I know for me a lot of Gambas is intuitive but much of it isn't. > > >> >> >> > > >> >> >> Im thinking it could be setup on a moodle or someother workshop > / > > >> >> > > >> >> class > > >> >> > > >> >> >> software. With online lessons and quizzes for free but to get > the > > >> >> >> actual coding graded it would require a live teacher to grade > and > > >> >> >> comment thereby why a nominal fee would be justified. I could > > >> >> >> even > > >> >> > > >> >> host > > >> >> > > >> >> >> the moodle site and help admin it but my programming knowledge > is > > >> > > >> so > > >> > > >> >> low > > >> >> > > >> >> >> I wouldn't make a good teacher. But I could help someone setup > a > > >> >> > > >> >> course > > >> >> > > >> >> >> and host it and that person could charge a reasonable fee to > teach > > >> >> >> the course. (Though in the spirit of linux the less money the > > >> >> >> better.) > > >> >> >> > > >> >> >> For example I would be willing to pay right now to be tutored in > > >> > > >> how > > >> > > >> >> to > > >> >> > > >> >> >> reference, manipulate, and check objects and controls via code > > >> >> >> (dynamically via nested loops and such). I read the documents- > I > > >> >> >> look at the examples and still I get the wrong impressions and > > >> > > >> waste > > >> > > >> >> >> hours and hours on many different controls or functions. > > >> >> >> > > >> >> >> I helped setup an online bible college and the way it ran was > > >> >> >> every course had a different instructor (or most did) and those > > >> > > >> instructors > > >> > > >> >> >> set their own prerequisites and graded assignments on their own > > >> >> > > >> >> schedule > > >> >> > > >> >> >> (within reason). > > >> >> >> > > >> >> >> But the very basic courses were almost entirely automated - no > > >> >> >> need to have heavy instructor interaction. But as the courses > > >> >> >> became > > >> > > >> more > > >> > > >> >> >> in depth then instructors became paramount. Because students > > >> > > >> needed > > >> > > >> >> >> to > > >> >> > > >> >> ask > > >> >> > > >> >> >> questions and yes other students could answer and even grade > > >> > > >> (though > > >> > > >> >> >> their gradings were subject to instructor override.) > > >> >> >> > > >> >> >> I look at the number of basic questions on Nabbles and just > think > > >> >> >> that > > >> >> > > >> >> a > > >> >> > > >> >> >> systematic instruction courses would make gambas bloom even > more. > > >> >> >> > > >> >> >> Maybe something like: > > >> >> >> > > >> >> >> 1- Setting up your Gambas > > >> >> >> a. download and installation > > >> >> >> b. Defining preferences and intro to Gambas > > >> >> >> > > >> >> >> 2- Mastering the IDE interface: > > >> >> >> a. creating projects, forms, simple control, saving, > > >> > > >> compiling, > > >> > > >> >> and > > >> >> > > >> >> >> packaging > > >> >> >> > > >> >> >> 3- Gambas Programming fundamentals: A big unit broken into > smaller > > >> >> >> courses a. Forms > > >> >> >> b. Controls > > >> >> >> c. Assignments, Operators, Strings, Numbers, and Booleans > > >> >> >> d. Comparisons, Loops, and nestings > > >> >> >> e. Good programming, coding practices, and the Gambas > > >> >> >> Programming language > > >> >> >> > > >> >> >> 4. Components: Another big unit > > >> >> >> a. gb > > >> >> >> b. gb.compress > > >> >> >> c. gb.chart etc... > > >> >> >> > > >> >> >> 5. FX > > >> >> >> a. BMP, JPG, PNG, GIF, etc what they are. Editing and > making > > >> >> > > >> >> them. > > >> >> > > >> >> >> b. Animations and movies > > >> >> >> c. creating, editing, and sounds and music > > >> >> >> > > >> >> >> 6. Application specific courses: > > >> >> >> a. How to write a text editor > > >> >> >> b. How to write a scrolling shooter game etc and so on > > >> >> >> > > >> >> >> and so forth. > > >> >> >> > > >> >> >> And of course offer a Certificates for completing the courses. > > >> >> >> > > >> >> >> I know moodle and setting up the site would be easy- and if > > >> >> >> someone wanted to teach a course I could setup the course, > forums, > > >> >> >> and quizzes etc. I could make some beginner courses on my own- > > >> >> >> but I would need help with more advanced subjects. > > >> >> >> > > >> >> >> Any thoughts? Objections? Volunteers? > > >> >> >> > > >> >> >> JB Skaggs > > >> >> > > > >> >> > Personally I think we should do what I've pushed for before - > > >> > > >> include > > >> > > >> >> > extensively commented sample code along with gambas. We could all > > >> >> > contribute on our own level - have a look at the wxPython demo as > > >> > > >> such > > >> > > >> >> an > > >> >> > > >> >> > sample code-base of how to use the language. > > >> >> > > > >> >> > Richard > > >> >> > > >> >> I agree, an example code/snippets site or part on the official wiki > > >> > > >> for > > >> > > >> >> it would be much better. > > >> >> > > >> >> Ron_2nd. > > >> > > > >> > I for one will put up my hand to contribute with simple sample > > >> > programs if someone will do the co-ordination. My working day (I'm > in > > >> > general practice in > > >> > Australia) starts at 7:30am and I finish around 6-630PM - it is so > > >> > long that > > >> > I have only a few hours at night for my life, so I can't volunteer > the > > >> > co-ordination role. > > >> > > > >> > If someone could take responsibility for that, I'd be happy to be > > >> > organised > > >> > and asked to contribute. > > >> > > > >> > Regards > > >> > > > >> > Richard > > >> > > >> > ------------------------------------------------------------------------ > > >> > > >> >>--- --- _______________________________________________ > > >> >> Gambas-user mailing list > > >> >> Gambas-user at lists.sourceforge.net > > >> >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > >> > > >> > ------------------------------------------------------------------------ > > >>- > > >> > > >> >----- _______________________________________________ > > >> > Gambas-user mailing list > > >> > Gambas-user at lists.sourceforge.net > > >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > ------------------------------------------------------------------------- > > >----- > > > > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jbskaggs at ...1871... Tue Mar 31 07:51:07 2009 From: jbskaggs at ...1871... (jbskaggs) Date: Mon, 30 Mar 2009 22:51:07 -0700 (PDT) Subject: [Gambas-user] We should offer online Gambas courses! In-Reply-To: <22792079.post@...1379...> References: <22792079.post@...1379...> Message-ID: <22798789.post@...1379...> Here is the website I set up: http://gambas.wwmkr.com/ I have the front page setup and one course setup an intro to Gambas using the official doc's. And a small four question quiz. This is to get an idea of could be done. JB SKaggs jbskaggs wrote: > > I would like to set up a online gambas school where the more experienced > users and coders here could offer an online workshop on Gambas for users. > > Make it an affordable cost (Like a $0 to $25 a course, depending on > complexity, length, and time required. A course on making Forms should be > free, but a all inclusive course on writing a mmorpg in gambas should have > a fee attached) and offer a workshop for different fundamentals: > > I know for me a lot of Gambas is intuitive but much of it isn't. > > Im thinking it could be setup on a moodle or someother workshop / class > software. With online lessons and quizzes for free but to get the actual > coding graded it would require a live teacher to grade and comment thereby > why a nominal fee would be justified. I could even host the moodle site > and help admin it but my programming knowledge is so low I wouldn't make a > good teacher. But I could help someone setup a course and host it and > that person could charge a reasonable fee to teach the course. (Though in > the spirit of linux the less money the better.) > > For example I would be willing to pay right now to be tutored in how to > reference, manipulate, and check objects and controls via code > (dynamically via nested loops and such). I read the documents- I look at > the examples and still I get the wrong impressions and waste hours and > hours on many different controls or functions. > > I helped setup an online bible college and the way it ran was every course > had a different instructor (or most did) and those instructors set their > own prerequisites and graded assignments on their own schedule (within > reason). > > But the very basic courses were almost entirely automated - no need to > have heavy instructor interaction. But as the courses became more in > depth then instructors became paramount. Because students needed to ask > questions and yes other students could answer and even grade (though their > gradings were subject to instructor override.) > > I look at the number of basic questions on Nabbles and just think that a > systematic instruction courses would make gambas bloom even more. > > Maybe something like: > > 1- Setting up your Gambas > a. download and installation > b. Defining preferences and intro to Gambas > > 2- Mastering the IDE interface: > a. creating projects, forms, simple control, saving, compiling, and > packaging > > 3- Gambas Programming fundamentals: A big unit broken into smaller courses > a. Forms > b. Controls > c. Assignments, Operators, Strings, Numbers, and Booleans > d. Comparisons, Loops, and nestings > e. Good programming, coding practices, and the Gambas Programming > language > > 4. Components: Another big unit > a. gb > b. gb.compress > c. gb.chart etc... > > 5. FX > a. BMP, JPG, PNG, GIF, etc what they are. Editing and making them. > b. Animations and movies > c. creating, editing, and sounds and music > > 6. Application specific courses: > a. How to write a text editor > b. How to write a scrolling shooter game etc and so on > > and so forth. > > And of course offer a Certificates for completing the courses. > > I know moodle and setting up the site would be easy- and if someone wanted > to teach a course I could setup the course, forums, and quizzes etc. I > could make some beginner courses on my own- but I would need help with > more advanced subjects. > > Any thoughts? Objections? Volunteers? > > JB Skaggs > -- View this message in context: http://www.nabble.com/We-should-offer-online-Gambas-courses%21-tp22792079p22798789.html Sent from the gambas-user mailing list archive at Nabble.com. From doriano.blengino at ...1909... Tue Mar 31 08:12:38 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Tue, 31 Mar 2009 08:12:38 +0200 Subject: [Gambas-user] Dynamic Objects In-Reply-To: <4EB89FE412344E14B58706304B87799C@...2114...> References: <4EB89FE412344E14B58706304B87799C@...2114...> Message-ID: <49D1B456.2070103@...1909...> Rodney Rundstrom ha scritto: > Thanks using last.text works in this case, can you clarify how I would > access using parent/child can a form itself be the container or my I use > another although a similar arrangement is available in VB I am not really > sure how to use it? > The following routine iterates through all the controls inside a given container, recursively (included other containers), and returns its children one after another. ' Returns the i-th children of hContainer, recursively PUBLIC SUB ith_children_of(hContainer AS Container, i AS Integer) AS Object DIM hScan AS Object DIM hResult AS Object DIM counted AS Integer counted = 0 FOR EACH hScan IN hContainer.Children INC counted DEC i IF i = 0 THEN RETURN hScan IF hScan IS Container THEN ' traverse it hResult = ith_children_of(hScan, i) IF hResult THEN RETURN hResult ' function found the control ' function exhausted controls, but how many? counted += ith_controls_counted i -= ith_controls_counted ENDIF NEXT ith_controls_counted = counted END In one of my apps, I use it to fill TextBoxes associating ldap field names to textboxes names. It is slightly more complicated than necessary, but it shows what is possible to do. You can pass a form as first parameter, which is indeed a container: DIM hScan AS Object DIM i AS Integer i = 0 DO INC i hScan = ith_children_of(ME, i) IF NOT hScan THEN BREAK IF aname = "lDn" THEN hScan.text = dn IF object.Type(hScan) = "TextBox" OR object.Type(hScan) = "TextArea" THEN hScan.text = "" ' default ELSE IF object.Type(hScan) = "Button" THEN IF db_is_readonly AND hScan.name = "btModify" THEN hScan.Visible = FALSE IF db_is_readonly AND hScan.name = "btDelete" THEN hScan.Visible = FALSE ENDIF LOOP Here you see: I scan all the container (ME, the form where the subroutine resides), then I do several things depending on what I've got. You can test for the class of the object, or its name. A useful thing to test for is TAG, where you can store data serving no other purposes than your ones. As I said before, there is no need of such complication, I took it simply to show the variety of things. If you have a bunch of dynamically created controls scattered in a form, you can set the .Tag or .Name on each of them at the time of instanciation, and then use these kinds of routine. But if you put them all inside a single container, then you access them with for each hScan in hManyButtonsHbox.Children hScan.Enabled = false ' all the children of this hBox are disabled next The more effective way is to keep an array of handles when creating the controls, thought. I showed all this complication because you asked me about containers and childrens, but sometimes, especially in complex form, to operate this way saves time and errors. Regards, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From charles at ...1784... Tue Mar 31 09:44:29 2009 From: charles at ...1784... (charlesg) Date: Tue, 31 Mar 2009 00:44:29 -0700 (PDT) Subject: [Gambas-user] We should offer online Gambas courses! In-Reply-To: <22792079.post@...1379...> References: <22792079.post@...1379...> Message-ID: <22799956.post@...1379...> Hi all, As one of the great unwashed (i.e. less proficient) Gambas users, I must say that I prefer Richards approach using annotated code examples at a simple level. I don't really feel comfortable with the idea of a paid-for tutorial system and feel that 'we' as a user base should freely contribute to the project. There is no chance of us ever equaling the stupendous contribution of Benoit and to consider charging for any contribution that we make is, I feel, not in the spirit of Gambas. I wrote a small intro tutorial to Gambas which features quite well on a Google search. I put it on a Wordpress blog so that I could get some stats. It is currently viewed about 300 times a month. Benoit has also kindly used a program of mine as a Gambas example. The examples in Gambas could be extended with a beginners section although I could see this ending up as being yet more work for Benoit. rgds -- View this message in context: http://www.nabble.com/We-should-offer-online-Gambas-courses%21-tp22792079p22799956.html Sent from the gambas-user mailing list archive at Nabble.com. From jbskaggs at ...1871... Tue Mar 31 10:05:49 2009 From: jbskaggs at ...1871... (jbskaggs) Date: Tue, 31 Mar 2009 01:05:49 -0700 (PDT) Subject: [Gambas-user] We should offer online Gambas courses! In-Reply-To: <22799956.post@...1379...> References: <22792079.post@...1379...> <22799956.post@...1379...> Message-ID: <22800230.post@...1379...> I am not saying people should charge for tutorials, I am saying that it would not be unreasonable if they did. Benoit has done a momentous amount of work in creating Gambas. ANd Richard's idea about annodated code is a great one- except for one flaw. That flaw is for the beginner without a systematic method of learning the language the odds are stacked against him /her. But like I said earlier why not have both? SOme people can see an example and go OH that's how it works- and others need more help. Good example: Algebra why can't kids just look at the example and understand it? Even when the example has comments the children have a hard time following- but with guided instruction and guided questions and answers then child is more likely to understand the math. Same works for adults not everyone does well solo with a textbook. Plus another problem is when people just cut and paste code without knowing what all the code is for becuase they are told it does x but in reality it does xyz. As far as more work for Benoit I am trying to come up with a way to lighten the load. :) I rreally do understand what you are saying, but I think people are thinking I a looking to replace a current method. I am not I want to another resource to the same methods. For the dummies like my self. JB charlesg wrote: > > Hi all, > > As one of the great unwashed (i.e. less proficient) Gambas users, I must > say that I prefer Richards approach using annotated code examples at a > simple level. I don't really feel comfortable with the idea of a paid-for > tutorial system and feel that 'we' as a user base should freely contribute > to the project. There is no chance of us ever equaling the stupendous > contribution of Benoit and to consider charging for any contribution that > we make is, I feel, not in the spirit of Gambas. > > I wrote a small intro tutorial to Gambas which features quite well on a > Google search. I put it on a Wordpress blog so that I could get some > stats. It is currently viewed about 300 times a month. > > Benoit has also kindly used a program of mine as a Gambas example. The > examples in Gambas could be extended with a beginners section although I > could see this ending up as being yet more work for Benoit. > > rgds > -- View this message in context: http://www.nabble.com/We-should-offer-online-Gambas-courses%21-tp22792079p22800230.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Tue Mar 31 11:46:48 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Tue, 31 Mar 2009 11:46:48 +0200 Subject: [Gambas-user] We should offer online Gambas courses! In-Reply-To: <22800230.post@...1379...> References: <22792079.post@...1379...> <22799956.post@...1379...> <22800230.post@...1379...> Message-ID: <200903311146.48070.gambas@...1...> > I am not saying people should charge for tutorials, I am saying that it > would not be unreasonable if they did. Benoit has done a momentous amount > of work in creating Gambas. ANd Richard's idea about annodated code is a > great one- except for one flaw. > > That flaw is for the beginner without a systematic method of learning the > language the odds are stacked against him /her. > > But like I said earlier why not have both? > > SOme people can see an example and go OH that's how it works- and others > need more help. Good example: Algebra why can't kids just look at the > example and understand it? Even when the example has comments the > children have a hard time following- but with guided instruction and guided > questions and answers then child is more likely to understand the math. > > Same works for adults not everyone does well solo with a textbook. > > Plus another problem is when people just cut and paste code without knowing > what all the code is for becuase they are told it does x but in reality it > does xyz. > > As far as more work for Benoit I am trying to come up with a way to lighten > the load. :) > > I rreally do understand what you are saying, but I think people are > thinking I a looking to replace a current method. I am not I want to > another resource to the same methods. For the dummies like my self. > > JB > > charlesg wrote: > > Hi all, > > > > As one of the great unwashed (i.e. less proficient) Gambas users, I must > > say that I prefer Richards approach using annotated code examples at a > > simple level. I don't really feel comfortable with the idea of a paid-for > > tutorial system and feel that 'we' as a user base should freely > > contribute to the project. There is no chance of us ever equaling the > > stupendous contribution of Benoit and to consider charging for any > > contribution that we make is, I feel, not in the spirit of Gambas. > > > > I wrote a small intro tutorial to Gambas which features quite well on a > > Google search. I put it on a Wordpress blog so that I could get some > > stats. It is currently viewed about 300 times a month. > > > > Benoit has also kindly used a program of mine as a Gambas example. The > > examples in Gambas could be extended with a beginners section although I > > could see this ending up as being yet more work for Benoit. > > > > rgds Would it be possible to have both solutions? I mean: 1) A web site to enter well-commented and well-written pieces of code, tagged so that searching is easy. 2) An http interface so that the IDE can use these pieces of code as project examples automatically. We must have two types of examples. A full Gambas project that will be used as is by the IDE, or a little piece of code inside one Form, or a Module. Then the IDE will create a temporary project to open it. Guys, what do you think about that? -- Beno?t From afroehlke at ...784... Tue Mar 31 13:04:02 2009 From: afroehlke at ...784... (=?iso-8859-1?Q?Andreas_Fr=F6hlke?=) Date: Tue, 31 Mar 2009 13:04:02 +0200 Subject: [Gambas-user] Gambas 2.11.1 Ubuntu 8.xx Socket Problem In-Reply-To: <200903301333.54305.gambas@...1...> References: <200902150841.00932.rterry@...1946...> <200902201213.49246.gambas@...1...> <8D42310D957CFB46AA11921A711D4D160227BF1B45@...1899...> <200903301333.54305.gambas@...1...> Message-ID: <8D42310D957CFB46AA11921A711D4D160227BF1B72@...1899...> I have installed gambas2 with "./configure -C". The gb.debug-component is given in the project properties. What must I do exactly to get the backtrace? Just tried to compile my project with gb.debug enabled, try to Debug.Start() at Form_Open()-Event, but the backtrace seems to be always the same. Regards, A.Fr?hlke -----Urspr?ngliche Nachricht----- Von: Beno?t Minisini [mailto:gambas at ...1...] Gesendet: Montag, 30. M?rz 2009 13:34 An: mailing list for gambas users Betreff: Re: [Gambas-user] Gambas 2.11.1 Ubuntu 8.xx Socket Problem > Hello again, > > sorry for the long delay between your and my answer. I just don't see your > answer until yet. But here it is. In the zip in the attachment you will > find the project wich I use to test, two screenshots and two textfiles > including the gdb backtrace, i hope. > > Both (the screenshots and the textfiles are made once don't connected to > the server and once connected to server. > > Hope this will help > > Regards, > > A.Fr?hlke > Thanks, but you have to install gambas2 debugging packages, or compile Gambas2 from sources with debugging information enabled (this is the default). Otherwise, there is no information inside the backtrace! -- Beno?t ------------------------------------------------------------------------------ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Tue Mar 31 13:10:37 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Tue, 31 Mar 2009 13:10:37 +0200 Subject: [Gambas-user] Gambas 2.11.1 Ubuntu 8.xx Socket Problem In-Reply-To: <8D42310D957CFB46AA11921A711D4D160227BF1B72@...1899...> References: <200902150841.00932.rterry@...1946...> <200903301333.54305.gambas@...1...> <8D42310D957CFB46AA11921A711D4D160227BF1B72@...1899...> Message-ID: <200903311310.37116.gambas@...1...> > I have installed gambas2 with "./configure -C". The gb.debug-component is > given in the project properties. What must I do exactly to get the > backtrace? Just tried to compile my project with gb.debug enabled, try to > Debug.Start() at Form_Open()-Event, but the backtrace seems to be always > the same. > > Regards, > > A.Fr?hlke > I'm not talking about gb.debug, which is an internal component of Gambas. I'm talking about "debug packages", which are the debugging information of a binary package stored in another package to preserve your disk space. For example, on Mandriva, I have a gambas2-*.rpm packages, and a gambas2- debug.rpm package. But as you compiled Gambas from sources, you have nothing to do except doing again what you did. Then you should notice that your backtrace won't be the same. If you don't, then there was a problem in the compilation/installation process. You must: 1) Remove all your previous Gambas2 installation. 2) Do that in a shell (in the gambas2 source directory of course): ./reconf && ./configure -C && make 3) Check that you didn't get any error. 4) If everything is ok, then do that as root: make install Did you do that? -- Beno?t From gambas.fr at ...626... Tue Mar 31 13:17:53 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 31 Mar 2009 13:17:53 +0200 Subject: [Gambas-user] We should offer online Gambas courses! In-Reply-To: <200903311146.48070.gambas@...1...> References: <22792079.post@...1379...> <22799956.post@...1379...> <22800230.post@...1379...> <200903311146.48070.gambas@...1...> Message-ID: <6324a42a0903310417x29347cefj922ac1a175a90d5b@...627...> > > Would it be possible to have both solutions? I mean: > > 1) A web site to enter well-commented and well-written pieces of code, tagged > so that searching is easy. > Like my 3 year beginning project with gambasforge.net ... but i've really no time to purchass (the code is still available) a http://vbfrance.com style.. is a good exemple of well tagged system. > 2) An http interface so that the IDE can use these pieces of code as project > examples automatically. this is a good idea > > We must have two types of examples. A full Gambas project that will be used as > is by the IDE, or a little piece of code inside one Form, or a Module. Then > the IDE will create a temporary project to open it. I see how to doing that ... but not how to have time for that ... So to summarize a good site that allow user to store well commented and revised sources a tag system that simplify search an http external interface that return inline version (xml ?) of a registered piece of code for the ide well it's simple i think i can manage that in gambas but i need a server ! i can't continue on gambasforge because of the slow of the gambas maj... on it. - on this server there is the need of a db mysql or psql. - imagemagick - gambas2-3 - a way to send mail. that's all then there is different part donne in gambasforge -usermanagement -codemanagement -codeshower but i know there is many job to do... to perferct all of that. fabien > > Guys, what do you think about that? > > > > -- > Beno?t > > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From afroehlke at ...784... Tue Mar 31 14:13:34 2009 From: afroehlke at ...784... (=?iso-8859-1?Q?Andreas_Fr=F6hlke?=) Date: Tue, 31 Mar 2009 14:13:34 +0200 Subject: [Gambas-user] Gambas 2.11.1 Ubuntu 8.xx Socket Problem In-Reply-To: <200903311310.37116.gambas@...1...> References: <200902150841.00932.rterry@...1946...> <200903301333.54305.gambas@...1...> <8D42310D957CFB46AA11921A711D4D160227BF1B72@...1899...> <200903311310.37116.gambas@...1...> Message-ID: <8D42310D957CFB46AA11921A711D4D160227BF1B77@...1899...> Now i have it. Thanks and here it is. Regards A-Fr?hlke -----Urspr?ngliche Nachricht----- Von: Beno?t Minisini [mailto:gambas at ...1...] Gesendet: Dienstag, 31. M?rz 2009 13:11 An: mailing list for gambas users Betreff: Re: [Gambas-user] Gambas 2.11.1 Ubuntu 8.xx Socket Problem > I have installed gambas2 with "./configure -C". The gb.debug-component is > given in the project properties. What must I do exactly to get the > backtrace? Just tried to compile my project with gb.debug enabled, try to > Debug.Start() at Form_Open()-Event, but the backtrace seems to be always > the same. > > Regards, > > A.Fr?hlke > I'm not talking about gb.debug, which is an internal component of Gambas. I'm talking about "debug packages", which are the debugging information of a binary package stored in another package to preserve your disk space. For example, on Mandriva, I have a gambas2-*.rpm packages, and a gambas2- debug.rpm package. But as you compiled Gambas from sources, you have nothing to do except doing again what you did. Then you should notice that your backtrace won't be the same. If you don't, then there was a problem in the compilation/installation process. You must: 1) Remove all your previous Gambas2 installation. 2) Do that in a shell (in the gambas2 source directory of course): ./reconf && ./configure -C && make 3) Check that you didn't get any error. 4) If everything is ok, then do that as root: make install Did you do that? -- Beno?t ------------------------------------------------------------------------------ _______________________________________________ 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: gdb backtrace.zip Type: application/x-zip-compressed Size: 2797 bytes Desc: gdb backtrace.zip URL: From weldon_gary at ...67... Tue Mar 31 15:29:27 2009 From: weldon_gary at ...67... (CelticBhoy) Date: Tue, 31 Mar 2009 06:29:27 -0700 (PDT) Subject: [Gambas-user] We should offer online Gambas courses! In-Reply-To: <6324a42a0903310417x29347cefj922ac1a175a90d5b@...627...> References: <22792079.post@...1379...> <22799956.post@...1379...> <22800230.post@...1379...> <200903311146.48070.gambas@...1...> <6324a42a0903310417x29347cefj922ac1a175a90d5b@...627...> Message-ID: <22804928.post@...1379...> I have just had a look at your initial site jbskaggs, and I thought that it looked quite good. You should however put in place a request section where people can request either future tutorials, or documented code snipets. And also a way to submit code/lessons for the administrators to check & include. As I said in an earlier post I am the new user who will benefit from this idea. I hope that you can follow this through with quality tutorials and build up a large user and contributer base. Good luck. -- View this message in context: http://www.nabble.com/We-should-offer-online-Gambas-courses%21-tp22792079p22804928.html Sent from the gambas-user mailing list archive at Nabble.com. From saudi.unix at ...626... Tue Mar 31 16:34:02 2009 From: saudi.unix at ...626... (Abdullah Al-Sabi) Date: Tue, 31 Mar 2009 17:34:02 +0300 Subject: [Gambas-user] How to add a command output to the combo box list? Message-ID: <617bbcfb0903310734g71fe6dc2y11ae3d45445c0fd2@...627...> Hello every one I'm working in a control panel for a local debian-based distro which is mostly programmed using gambas2 some tools in that control is programmed using kommander in the network config all what i saw is that kommander passes this command ifconfig -a|grep Ethernet|grep -v ^vmnet|awk '! /^\s/{print $1}' to combobox list to give the user the ability to choose the network device how can i do that in gambas From tsopanotragi at ...67... Tue Mar 31 18:28:31 2009 From: tsopanotragi at ...67... (lol lolovic) Date: Tue, 31 Mar 2009 19:28:31 +0300 Subject: [Gambas-user] (no subject) Message-ID: Hi!First of all many thanks to the developer and everybody that helped to the creation and the now shape of this programming language... It was really was linux missed... Anyway... I have a problem or "bug" at programming with gambas...I really searched and googled to find out how to solve this one but nothing... Also in this e-mail i have a screenhost attached with the "error" tha appears and the source behind... I am quite sure that the problem is not at the code i wrote...the problem is that this error writes me that "there are too many nested control structures". So i guess that the language for some reason doesnt support more than a fixed number of line codes or more than a fixed number of IF THEN ELSE END IF... I really dont no what to do about this... Any reply helpful or not will be really appricieted...:D Here are information about my pc (maybe is my pc's problem...dunno) : * distribution : ubuntu 8.10 * kernel linux : 2.6.27-7-generic * gnome : 2.24.1 * memory : 2gb * processor : amd athlon 64 (3000+) * gambas version : 2.7 thank you in advance and if someone wants to send him my program's code to check out glad to do that and i am greek so a reply from another greek or in greek will be more apprecieted because i will understand the reply even easier :D thank you again _________________________________________________________________ Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy! http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot.png Type: image/png Size: 157684 bytes Desc: not available URL: From afroehlke at ...784... Tue Mar 31 18:30:34 2009 From: afroehlke at ...784... (=?iso-8859-1?Q?Andreas_Fr=F6hlke?=) Date: Tue, 31 Mar 2009 18:30:34 +0200 Subject: [Gambas-user] Gambas 2.11.1 Ubuntu 8.xx Socket Problem In-Reply-To: <8D42310D957CFB46AA11921A711D4D160227BF1B77@...1899...> References: <200902150841.00932.rterry@...1946...> <200903301333.54305.gambas@...1...> <8D42310D957CFB46AA11921A711D4D160227BF1B72@...1899...> <200903311310.37116.gambas@...1...> <8D42310D957CFB46AA11921A711D4D160227BF1B77@...1899...> Message-ID: <8D42310D957CFB46AA11921A711D4D160227BF1B7E@...1899...> Hello again, i'm very sorry for wasting your time. After completely uninstalling and reinstalling gambas, the problem has gone away. Probably pieces oft the old gambas versions are producing the error. Thanks and regards, A.Fr?hlke -----Urspr?ngliche Nachricht----- Von: Andreas Fr?hlke [mailto:afroehlke at ...784...] Gesendet: Dienstag, 31. M?rz 2009 14:14 An: mailing list for gambas users Betreff: Re: [Gambas-user] Gambas 2.11.1 Ubuntu 8.xx Socket Problem Now i have it. Thanks and here it is. Regards A-Fr?hlke -----Urspr?ngliche Nachricht----- Von: Beno?t Minisini [mailto:gambas at ...1...] Gesendet: Dienstag, 31. M?rz 2009 13:11 An: mailing list for gambas users Betreff: Re: [Gambas-user] Gambas 2.11.1 Ubuntu 8.xx Socket Problem > I have installed gambas2 with "./configure -C". The gb.debug-component > is given in the project properties. What must I do exactly to get the > backtrace? Just tried to compile my project with gb.debug enabled, try > to > Debug.Start() at Form_Open()-Event, but the backtrace seems to be > always the same. > > Regards, > > A.Fr?hlke > I'm not talking about gb.debug, which is an internal component of Gambas. I'm talking about "debug packages", which are the debugging information of a binary package stored in another package to preserve your disk space. For example, on Mandriva, I have a gambas2-*.rpm packages, and a gambas2- debug.rpm package. But as you compiled Gambas from sources, you have nothing to do except doing again what you did. Then you should notice that your backtrace won't be the same. If you don't, then there was a problem in the compilation/installation process. You must: 1) Remove all your previous Gambas2 installation. 2) Do that in a shell (in the gambas2 source directory of course): ./reconf && ./configure -C && make 3) Check that you didn't get any error. 4) If everything is ok, then do that as root: make install Did you do that? -- Beno?t ------------------------------------------------------------------------------ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From jussi.lahtinen at ...626... Tue Mar 31 18:46:03 2009 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Tue, 31 Mar 2009 19:46:03 +0300 Subject: [Gambas-user] (no subject) In-Reply-To: References: Message-ID: <384d3900903310946l71dd71d6o86c5460eedfcae0f@...627...> I can't say anything about error message, where is the limit etc. BUT I highly recommend that you use "select case" instead of "if then else"! I think you don't run into problems with select case, and also it is easier way... Jussi 2009/3/31 lol lolovic : > > Hi!First of all many thanks to the developer and everybody that helped to the creation and the now shape of this programming language... > It was really was linux missed... > Anyway... > I have a problem or "bug" at programming with gambas...I really searched and googled to find out how to solve this one but nothing... > Also in this e-mail i have a screenhost attached with the "error" tha appears and the source behind... > I am quite sure that the problem is not at the code i wrote...the problem is that this error writes me that "there are too many nested control structures". > So i guess that the language for some reason doesnt support more than a fixed number of line codes or more than a fixed number of > IF THEN ELSE END IF... > I really dont no what to do about this... > Any reply helpful or not will be really appricieted...:D > > Here are information about my pc (maybe is my pc's problem...dunno) : > > * distribution : ubuntu 8.10 > * kernel linux : 2.6.27-7-generic > * gnome : 2.24.1 > * memory : 2gb > * processor : amd athlon 64 (3000+) > * gambas version : 2.7 > > thank you in advance > and if someone wants to send him my program's code to check out glad to do that > and i am greek so a reply from another greek or in greek will be more apprecieted > because i will understand the reply even easier :D > thank you again > > _________________________________________________________________ > Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy! > http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us > ------------------------------------------------------------------------------ > > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From wdahn at ...1000... Tue Mar 31 19:09:19 2009 From: wdahn at ...1000... (Werner) Date: Wed, 01 Apr 2009 01:09:19 +0800 Subject: [Gambas-user] (no subject) In-Reply-To: References: Message-ID: <49D24E3F.6050408@...1000...> lol lolovic wrote: > Hi!First of all many thanks to the developer and everybody that helped to the creation and the now shape of this programming language... > It was really was linux missed... > Anyway... > I have a problem or "bug" at programming with gambas...I really searched and googled to find out how to solve this one but nothing... > Also in this e-mail i have a screenhost attached with the "error" tha appears and the source behind... > I am quite sure that the problem is not at the code i wrote...the problem is that this error writes me that "there are too many nested control structures". > So i guess that the language for some reason doesnt support more than a fixed number of line codes or more than a fixed number of > IF THEN ELSE END IF... > I really dont no what to do about this... > Any reply helpful or not will be really appricieted...:D > > Here are information about my pc (maybe is my pc's problem...dunno) : > > * distribution : ubuntu 8.10 > * kernel linux : 2.6.27-7-generic > * gnome : 2.24.1 > * memory : 2gb > * processor : amd athlon 64 (3000+) > * gambas version : 2.7 > > thank you in advance > and if someone wants to send him my program's code to check out glad to do that > and i am greek so a reply from another greek or in greek will be more apprecieted > because i will understand the reply even easier :D > thank you again > > _________________________________________________________________ > Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy! > http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------ This might be implemented more suitably as a Select statement http://gambasdoc.org/help/lang/select SELECT TextBox1.Text CASE "Y" TextBox2.Text="I" | | and so on | DEFAULT TextBox2.Text=TextBox1.Text END SELECT Best Regards Werner From Karl.Reinl at ...9... Tue Mar 31 19:10:44 2009 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Tue, 31 Mar 2009 19:10:44 +0200 Subject: [Gambas-user] (no subject) In-Reply-To: <384d3900903310946l71dd71d6o86c5460eedfcae0f@...627...> References: <384d3900903310946l71dd71d6o86c5460eedfcae0f@...627...> Message-ID: <1238519444.6462.15.camel@...40...> Salut, you have to close 'If Then Else' by an 'Endif' Or you could write : If TextBox1.Text = "T" then TextBox2.Text = "T" If TextBox1.Text = "Y" then TextBox2.Text = "I" ..... and so on or Select Case or If TextBox1.Text = "T" then TextBox2.Text = "T" Else If TextBox1.Text = "Y" then TextBox2.Text = "I" ...... Endif -- Amicalment Charlie Am Dienstag, den 31.03.2009, 19:46 +0300 schrieb Jussi Lahtinen: > I can't say anything about error message, where is the limit etc. > BUT I highly recommend that you use "select case" instead of "if then else"! > I think you don't run into problems with select case, and also it is > easier way... > > > Jussi > > > 2009/3/31 lol lolovic : > > > > Hi!First of all many thanks to the developer and everybody that helped to the creation and the now shape of this programming language... > > It was really was linux missed... > > Anyway... > > I have a problem or "bug" at programming with gambas...I really searched and googled to find out how to solve this one but nothing... > > Also in this e-mail i have a screenhost attached with the "error" tha appears and the source behind... > > I am quite sure that the problem is not at the code i wrote...the problem is that this error writes me that "there are too many nested control structures". > > So i guess that the language for some reason doesnt support more than a fixed number of line codes or more than a fixed number of > > IF THEN ELSE END IF... > > I really dont no what to do about this... > > Any reply helpful or not will be really appricieted...:D > > > > Here are information about my pc (maybe is my pc's problem...dunno) : > > > > * distribution : ubuntu 8.10 > > * kernel linux : 2.6.27-7-generic > > * gnome : 2.24.1 > > * memory : 2gb > > * processor : amd athlon 64 (3000+) > > * gambas version : 2.7 > > > > thank you in advance > > and if someone wants to send him my program's code to check out glad to do that > > and i am greek so a reply from another greek or in greek will be more apprecieted > > because i will understand the reply even easier :D > > thank you again > > > > _________________________________________________________________ > > Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy! > > http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us > > ------------------------------------------------------------------------------ > > > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jbskaggs at ...1871... Tue Mar 31 20:05:05 2009 From: jbskaggs at ...1871... (jbskaggs) Date: Tue, 31 Mar 2009 11:05:05 -0700 (PDT) Subject: [Gambas-user] What is the most asked question in gambas programming? Message-ID: <22805257.post@...1379...> To the oldtimers here: Out of curiousity what is the most common question asked by newcomers to gambas besides install problems? What causes them the most common problem? JB -- View this message in context: http://www.nabble.com/What-is-the-most-asked-question-in-gambas-programming--tp22805257p22805257.html Sent from the gambas-user mailing list archive at Nabble.com. From joshiggins at ...1601... Tue Mar 31 20:16:50 2009 From: joshiggins at ...1601... (Joshua Higgins) Date: Tue, 31 Mar 2009 19:16:50 +0100 Subject: [Gambas-user] How to add a command output to the combo box list? In-Reply-To: <617bbcfb0903310734g71fe6dc2y11ae3d45445c0fd2@...627...> References: <617bbcfb0903310734g71fe6dc2y11ae3d45445c0fd2@...627...> Message-ID: <4247f5440903311116m7db2fafejb113fb67d2f821e7@...627...> I think you'd need to DIM interfaceoutput AS String SHELL "ifconfig blah blah" to interfaceoutput Then you'll need to split it - is it space or return separated? E.g. (return separated) allinterfaces = Split(interfaceoutput, "\n") "allinterfaces" is an array that now contains all the interfaces. To add them to the combobox, its as simple as: For each interface in allinterfaces Comobox1.Add(interface) Next ** The only problem being is that command you have will probably need some backslashes in for it to be passed to shell properly. HTH -- joshua higgins >>>>>>------ From jussi.lahtinen at ...626... Tue Mar 31 21:00:45 2009 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Tue, 31 Mar 2009 22:00:45 +0300 Subject: [Gambas-user] Gambas 3 revision 1917 Message-ID: <384d3900903311200l6be2f66ct16b88391b57b44a7@...627...> Hi! I can't compile latest revision... First I got this: THESE COMPONENTS ARE DISABLED: - gb.opengl - gb.qte And make fails with error: gl.h: No such file or directory Gambas 2 and Gambas 3 revision 1885 compiled fine. I removed Gambas3 with commands: sudo rm -f /usr/local/bin/gbx3 /usr/local/bin/gbc3 /usr/local/bin/gba3 /usr/local/bin/gbi3 sudo rm -rf /usr/local/lib/gambas3 sudo rm -rf /usr/local/share/gambas3 Did I miss something? Or do I need to install something from somewhere? I did: ( ./configure; make; sudo make install ) > output.txt 2>&1 See attachment. I'm still badly in learning phase with GNU build system. Any hints? Thanks! Jussi Ubuntu 8.10 64bit -------------- next part -------------- A non-text attachment was scrubbed... Name: output.txt.tar.gz Type: application/x-gzip Size: 46486 bytes Desc: not available URL: From Karl.Reinl at ...9... Tue Mar 31 21:09:41 2009 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Tue, 31 Mar 2009 21:09:41 +0200 Subject: [Gambas-user] We should offer online Gambas courses! In-Reply-To: <200903311146.48070.gambas@...1...> References: <22792079.post@...1379...> <22799956.post@...1379...> <22800230.post@...1379...> <200903311146.48070.gambas@...1...> Message-ID: <1238526581.6462.28.camel@...40...> Am Dienstag, den 31.03.2009, 11:46 +0200 schrieb Beno?t Minisini: > > I am not saying people should charge for tutorials, I am saying that it > > would not be unreasonable if they did. Benoit has done a momentous amount > > of work in creating Gambas. ANd Richard's idea about annodated code is a > > great one- except for one flaw. > > > > That flaw is for the beginner without a systematic method of learning the > > language the odds are stacked against him /her. > > > > But like I said earlier why not have both? > > > > SOme people can see an example and go OH that's how it works- and others > > need more help. Good example: Algebra why can't kids just look at the > > example and understand it? Even when the example has comments the > > children have a hard time following- but with guided instruction and guided > > questions and answers then child is more likely to understand the math. > > > > Same works for adults not everyone does well solo with a textbook. > > > > Plus another problem is when people just cut and paste code without knowing > > what all the code is for becuase they are told it does x but in reality it > > does xyz. > > > > As far as more work for Benoit I am trying to come up with a way to lighten > > the load. :) > > > > I rreally do understand what you are saying, but I think people are > > thinking I a looking to replace a current method. I am not I want to > > another resource to the same methods. For the dummies like my self. > > > > JB > > > > charlesg wrote: > > > Hi all, > > > > > > As one of the great unwashed (i.e. less proficient) Gambas users, I must > > > say that I prefer Richards approach using annotated code examples at a > > > simple level. I don't really feel comfortable with the idea of a paid-for > > > tutorial system and feel that 'we' as a user base should freely > > > contribute to the project. There is no chance of us ever equaling the > > > stupendous contribution of Benoit and to consider charging for any > > > contribution that we make is, I feel, not in the spirit of Gambas. > > > > > > I wrote a small intro tutorial to Gambas which features quite well on a > > > Google search. I put it on a Wordpress blog so that I could get some > > > stats. It is currently viewed about 300 times a month. > > > > > > Benoit has also kindly used a program of mine as a Gambas example. The > > > examples in Gambas could be extended with a beginners section although I > > > could see this ending up as being yet more work for Benoit. > > > > > > rgds > > Would it be possible to have both solutions? I mean: > > 1) A web site to enter well-commented and well-written pieces of code, tagged > so that searching is easy. > > 2) An http interface so that the IDE can use these pieces of code as project > examples automatically. > > We must have two types of examples. A full Gambas project that will be used as > is by the IDE, or a little piece of code inside one Form, or a Module. Then > the IDE will create a temporary project to open it. > > Guys, what do you think about that? Salut, and what is, if you don't have no easy Internet-Access at home? Ok, first, stop: I find this is a good solution! But I think the IDE should have a downloaded repository for the "Snippets", that could be a simple database file, so everybody can get easily updates (from the internet). -- Amicalment Charlie From doriano.blengino at ...1909... Tue Mar 31 22:23:27 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Tue, 31 Mar 2009 22:23:27 +0200 Subject: [Gambas-user] (no subject) In-Reply-To: <1238519444.6462.15.camel@...40...> References: <384d3900903310946l71dd71d6o86c5460eedfcae0f@...627...> <1238519444.6462.15.camel@...40...> Message-ID: <49D27BBF.7080908@...1909...> Charlie Reinl ha scritto: > Salut, > > you have to close 'If Then Else' by an 'Endif' > Or you could write : > > If TextBox1.Text = "T" then TextBox2.Text = "T" > If TextBox1.Text = "Y" then TextBox2.Text = "I" > If it is so, then the gambas parser has a problem: if textbox1.text="0" then ' now a endif is expected... else ' where does this "else" bind to? ...and the message "too many nested control structure" is completely misguiding. Regards, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From rterry at ...1946... Tue Mar 31 22:39:31 2009 From: rterry at ...1946... (richard terry) Date: Wed, 1 Apr 2009 07:39:31 +1100 Subject: [Gambas-user] What is the most asked question in gambas programming? In-Reply-To: <22805257.post@...1379...> References: <22805257.post@...1379...> Message-ID: <200904010739.31876.rterry@...1946...> On Wed, 1 Apr 2009 05:05:05 am jbskaggs wrote: > To the oldtimers here: Out of curiousity what is the most common question > asked by newcomers to gambas besides install problems? What causes them > the most common problem? > > JB My first stuggle with gambas coming from wxPython and not being a programmer in my real life was the IDE designer and understanding how to get the gui to proportionally resize properly One I understood the Fill/exaand properties and how to use containers it turned out to be really simple. This is one area I'd be more than happy to write a tutorial on. Regards Richard From rterry at ...1946... Tue Mar 31 22:41:25 2009 From: rterry at ...1946... (richard terry) Date: Wed, 1 Apr 2009 07:41:25 +1100 Subject: [Gambas-user] We should offer online Gambas courses! In-Reply-To: <1238526581.6462.28.camel@...40...> References: <22792079.post@...1379...> <200903311146.48070.gambas@...1...> <1238526581.6462.28.camel@...40...> Message-ID: <200904010741.25274.rterry@...1946...> On Wed, 1 Apr 2009 06:09:41 am Charlie Reinl wrote: > Am Dienstag, den 31.03.2009, 11:46 +0200 schrieb Beno?t Minisini: > > > I am not saying people should charge for tutorials, I am saying that it > > > would not be unreasonable if they did. Benoit has done a momentous > > > amount of work in creating Gambas. ANd Richard's idea about annodated > > > code is a great one- except for one flaw. > > > > > > That flaw is for the beginner without a systematic method of learning > > > the language the odds are stacked against him /her. > > > > > > But like I said earlier why not have both? > > > > > > SOme people can see an example and go OH that's how it works- and > > > others need more help. Good example: Algebra why can't kids just look > > > at the example and understand it? Even when the example has comments > > > the children have a hard time following- but with guided instruction > > > and guided questions and answers then child is more likely to > > > understand the math. > > > > > > Same works for adults not everyone does well solo with a textbook. > > > > > > Plus another problem is when people just cut and paste code without > > > knowing what all the code is for becuase they are told it does x but in > > > reality it does xyz. > > > > > > As far as more work for Benoit I am trying to come up with a way to > > > lighten the load. :) > > > > > > I rreally do understand what you are saying, but I think people are > > > thinking I a looking to replace a current method. I am not I want to > > > another resource to the same methods. For the dummies like my self. > > > > > > JB > > > > > > charlesg wrote: > > > > Hi all, > > > > > > > > As one of the great unwashed (i.e. less proficient) Gambas users, I > > > > must say that I prefer Richards approach using annotated code > > > > examples at a simple level. I don't really feel comfortable with the > > > > idea of a paid-for tutorial system and feel that 'we' as a user base > > > > should freely contribute to the project. There is no chance of us > > > > ever equaling the stupendous contribution of Benoit and to consider > > > > charging for any contribution that we make is, I feel, not in the > > > > spirit of Gambas. > > > > > > > > I wrote a small intro tutorial to Gambas which features quite well on > > > > a Google search. I put it on a Wordpress blog so that I could get > > > > some stats. It is currently viewed about 300 times a month. > > > > > > > > Benoit has also kindly used a program of mine as a Gambas example. > > > > The examples in Gambas could be extended with a beginners section > > > > although I could see this ending up as being yet more work for > > > > Benoit. > > > > > > > > rgds > > > > Would it be possible to have both solutions? I mean: > > > > 1) A web site to enter well-commented and well-written pieces of code, > > tagged so that searching is easy. > > > > 2) An http interface so that the IDE can use these pieces of code as > > project examples automatically. > > > > We must have two types of examples. A full Gambas project that will be > > used as is by the IDE, or a little piece of code inside one Form, or a > > Module. Then the IDE will create a temporary project to open it. > > > > Guys, what do you think about that? > > Salut, > > and what is, if you don't have no easy Internet-Access at home? I really really agree. I live in the middle of a biggist city (Newastle NSW) and there are 6 houses in my street that cannot get ADSL, and even my mobile phone dosn't work properly in the house. Wireless is very flakey and very very expensive and I can't afford satellite, so yes, a downloadable repository, integrated with the IDE. Richard > > Ok, first, stop: I find this is a good solution! > > But I think the IDE should have a downloaded repository for the > "Snippets", that could be a simple database file, so everybody can get > easily updates (from the internet). From rterry at ...1946... Tue Mar 31 22:44:06 2009 From: rterry at ...1946... (richard terry) Date: Wed, 1 Apr 2009 07:44:06 +1100 Subject: [Gambas-user] Running external program > icon in tray Message-ID: <200904010744.06802.rterry@...1946...> Wondered if anyone could show me a mini gambas program which would start an external program and show that it is running, by putting an icon in the tray. Regards Richard From rterry at ...1946... Tue Mar 31 22:45:35 2009 From: rterry at ...1946... (richard terry) Date: Wed, 1 Apr 2009 07:45:35 +1100 Subject: [Gambas-user] Timer question Message-ID: <200904010745.35249.rterry@...1946...> I want to be able to reset the timers time to 0 at will, without stopping the timer, so that I can link it to the keypress of a textbox. Every time the user hits a key, the place the timer is up to is reset, once they lag, then the timer event fires. Dosn't seem to be such a property. Thanks. From Karl.Reinl at ...9... Tue Mar 31 22:54:24 2009 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Tue, 31 Mar 2009 22:54:24 +0200 Subject: [Gambas-user] (no subject) In-Reply-To: <49D27BBF.7080908@...1909...> References: <384d3900903310946l71dd71d6o86c5460eedfcae0f@...627...> <1238519444.6462.15.camel@...40...> <49D27BBF.7080908@...1909...> Message-ID: <1238532864.6462.36.camel@...40...> Am Dienstag, den 31.03.2009, 22:23 +0200 schrieb Doriano Blengino: > Charlie Reinl ha scritto: > > Salut, > > > > you have to close 'If Then Else' by an 'Endif' > > Or you could write : > > > > If TextBox1.Text = "T" then TextBox2.Text = "T" > > If TextBox1.Text = "Y" then TextBox2.Text = "I" > > > If it is so, then the gambas parser has a problem: > > if textbox1.text="0" then > ' now a endif is expected... > else ' where does this "else" bind to? > > ...and the message "too many nested control structure" is completely > misguiding. > > Regards, > Salut, you have to close 'If Then Else' by an 'Endif' .. I said! if textbox1.text="0" then ' do something for "0" Else if textbox1.text="1" then ' do something for "1" Else ' do something for all others (then "0" and "1") End if '<---------------- close your control structure -- Amicalment Charlie From jeff at ...2103... Tue Mar 31 23:58:24 2009 From: jeff at ...2103... (Jeff Gray) Date: Wed, 1 Apr 2009 07:58:24 +1000 Subject: [Gambas-user] Warning newby questions Message-ID: 1. Can anyone point me towards some help with splits, panels and expanders? THe help I have read doesn't seem to go into depth and I can't see any obvious methods to add items to them. 2. What's the difference between using qt or gtk? _________________________________________________________________ Need a new place to rent, share or buy? Let ninemsn property help. http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fninemsn%2Edomain%2Ecom%2Eau%2F%3Fs%5Fcid%3DFDMedia%3ANineMSN%5FHotmail%5FTagline&_t=774152450&_r=Domain_tagline&_m=EXT