From eilert-sprachen at ...221... Thu Jun 1 08:43:18 2006 From: eilert-sprachen at ...221... (Eilert) Date: Thu, 01 Jun 2006 08:43:18 +0200 Subject: [Gambas-user] Why 1.9.x doesn't show up In-Reply-To: <200605311053.12787.gambas@...1...> References: <4472C9E1.3050506@...221...> <200605301832.09099.gambas@...1...> <447D3883.1010304@...221...> <200605311053.12787.gambas@...1...> Message-ID: <447E8C86.4000209@...221...> > > Do you use exactly the same system since 1.9.24? Well, I thought I did, and then I tried to compile 1.9.24 again just to be sure that it compiled under the same conditions. And BANG! Making all in gb.pcre make[2]: Entering directory `/raid/home/tester/Downloads/gambas2/gambas2-1.9.24/gb.pcre' make all-recursive make[3]: Entering directory `/raid/home/tester/Downloads/gambas2/gambas2-1.9.24/gb.pcre' Making all in src make[4]: Entering directory `/raid/home/tester/Downloads/gambas2/gambas2-1.9.24/gb.pcre/src' if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -pipe -Wall -fno-strict-aliasing -Wno-unused-value -g -Os -MT main.lo -MD -MP -MF ".deps/main.Tpo" -c -o main.lo main.c; \ then mv -f ".deps/main.Tpo" ".deps/main.Plo"; else rm -f ".deps/main.Tpo"; exit 1; fi mkdir .libs gcc -DHAVE_CONFIG_H -I. -I. -I.. -pipe -Wall -fno-strict-aliasing -Wno-unused-value -g -Os -MT main.lo -MD -MP -MF .deps/main.Tpo -c main.c -fPIC -DPIC -o .libs/main.o if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -pipe -Wall -fno-strict-aliasing -Wno-unused-value -g -Os -MT regexp.lo -MD -MP -MF ".deps/regexp.Tpo" -c -o regexp.lo regexp.c; \ then mv -f ".deps/regexp.Tpo" ".deps/regexp.Plo"; else rm -f ".deps/regexp.Tpo"; exit 1; fi gcc -DHAVE_CONFIG_H -I. -I. -I.. -pipe -Wall -fno-strict-aliasing -Wno-unused-value -g -Os -MT regexp.lo -MD -MP -MF .deps/regexp.Tpo -c regexp.c -fPIC -DPIC -o .libs/regexp.o regexp.c:368: error: `PCRE_ERROR_BADUTF8_OFFSET' undeclared here (not in a function) regexp.c:368: error: initializer element is not constant regexp.c:368: error: (near initialization for `CRegexpDesc[29].val2') regexp.c:368: error: initializer element is not constant regexp.c:368: error: (near initialization for `CRegexpDesc[29]') regexp.c:370: error: initializer element is not constant regexp.c:370: error: (near initialization for `CRegexpDesc[30]') regexp.c:371: error: initializer element is not constant regexp.c:371: error: (near initialization for `CRegexpDesc[31]') regexp.c:372: error: initializer element is not constant regexp.c:372: error: (near initialization for `CRegexpDesc[32]') regexp.c:374: error: initializer element is not constant regexp.c:374: error: (near initialization for `CRegexpDesc[33]') make[4]: *** [regexp.lo] Fehler 1 make[4]: Leaving directory `/raid/home/tester/Downloads/gambas2/gambas2-1.9.24/gb.pcre/src' make[3]: *** [all-recursive] Fehler 1 make[3]: Leaving directory `/raid/home/tester/Downloads/gambas2/gambas2-1.9.24/gb.pcre' make[2]: *** [all] Fehler 2 make[2]: Leaving directory `/raid/home/tester/Downloads/gambas2/gambas2-1.9.24/gb.pcre' make[1]: *** [all-recursive] Fehler 1 make[1]: Leaving directory `/raid/home/tester/Downloads/gambas2/gambas2-1.9.24' make: *** [all] Fehler 2 Compiling stops here. Any idea why? > > Can you try again with this version, and if it works, can you send me the > strace output of both version so that I can compare? Does this still make sense now? I did a make uninstall with 1.9.31, then just make install with 1.9.24. It ran smoothly. Then I deleted the old source of 1.9.24 and started configure and make which crashed. The previous 1.9.24 binary is still installed, but would it issue any valuable hints if started with strace from the "new" source dir now? And 2nd question, do you need it from my office account (over X) or from the server directly? (I would have to copy the sources to a guest account and chown them and start from there?) Regards, Rolf From stefanopalmeri at ...152... Thu Jun 1 17:52:30 2006 From: stefanopalmeri at ...152... (Stefano Palmeri) Date: Thu, 1 Jun 2006 17:52:30 +0200 Subject: [Gambas-user] make executable old bug Message-ID: <200606011752.31075.stefanopalmeri@...152...> Hi, Benoit. Gambas2 always fails to create the executable of a project in a different directory than the project directory. This is due to a missing ".gambas" in the MakeExecutable FUNCTION in Project.module. TRY MOVE Project.Dir &/ Project.Name TO ExecPath should be: TRY MOVE Project.Dir &/ Project.Name & ".gambas" TO ExecPath The patch was posted by Fabien Bodard sometime ago, but the bug is still present in 1.9.31. Also, I added this code to MakeExecutable FUNCTION: IF Dialog.SaveFile() THEN RETURN TRUE ExecPath = Dialog.Path IF File.Ext(ExecPath) <> "gambas" THEN <----- ExecPath = ExecPath & ".gambas" <----- ENDIF <----- because when moving the file in a different folder, the suffix is lost (if the user did not set it in Dialog.Path). The extension ".gambas" is mandatory in Gambas2, isn't it? Regards, Stefano Palmeri From gambas at ...1... Thu Jun 1 20:51:04 2006 From: gambas at ...1... (Benoit Minisini) Date: Thu, 1 Jun 2006 20:51:04 +0200 Subject: [Gambas-user] Why 1.9.x doesn't show up In-Reply-To: <447E8C86.4000209@...221...> References: <4472C9E1.3050506@...221...> <200605311053.12787.gambas@...1...> <447E8C86.4000209@...221...> Message-ID: <200606012051.04459.gambas@...1...> On Thursday 01 June 2006 08:43, Eilert wrote: > > Do you use exactly the same system since 1.9.24? > > Well, I thought I did, and then I tried to compile 1.9.24 again just to > be sure that it compiled under the same conditions. And BANG! > > Making all in gb.pcre > make[2]: Entering directory > `/raid/home/tester/Downloads/gambas2/gambas2-1.9.24/gb.pcre' > make all-recursive > make[3]: Entering directory > `/raid/home/tester/Downloads/gambas2/gambas2-1.9.24/gb.pcre' > Making all in src > make[4]: Entering directory > `/raid/home/tester/Downloads/gambas2/gambas2-1.9.24/gb.pcre/src' > if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. > -I. -I.. -pipe -Wall -fno-strict-aliasing -Wno-unused-value -g -Os > -MT main.lo -MD -MP -MF ".deps/main.Tpo" -c -o main.lo main.c; \ > then mv -f ".deps/main.Tpo" ".deps/main.Plo"; else rm -f > ".deps/main.Tpo"; exit 1; fi > mkdir .libs > gcc -DHAVE_CONFIG_H -I. -I. -I.. -pipe -Wall -fno-strict-aliasing > -Wno-unused-value -g -Os -MT main.lo -MD -MP -MF .deps/main.Tpo -c > main.c -fPIC -DPIC -o .libs/main.o > if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. > -I. -I.. -pipe -Wall -fno-strict-aliasing -Wno-unused-value -g -Os > -MT regexp.lo -MD -MP -MF ".deps/regexp.Tpo" -c -o regexp.lo regexp.c; \ > then mv -f ".deps/regexp.Tpo" ".deps/regexp.Plo"; else rm -f > ".deps/regexp.Tpo"; exit 1; fi > gcc -DHAVE_CONFIG_H -I. -I. -I.. -pipe -Wall -fno-strict-aliasing > -Wno-unused-value -g -Os -MT regexp.lo -MD -MP -MF .deps/regexp.Tpo -c > regexp.c -fPIC -DPIC -o .libs/regexp.o > regexp.c:368: error: `PCRE_ERROR_BADUTF8_OFFSET' undeclared here (not in > a function) > regexp.c:368: error: initializer element is not constant > regexp.c:368: error: (near initialization for `CRegexpDesc[29].val2') > regexp.c:368: error: initializer element is not constant > regexp.c:368: error: (near initialization for `CRegexpDesc[29]') > regexp.c:370: error: initializer element is not constant > regexp.c:370: error: (near initialization for `CRegexpDesc[30]') > regexp.c:371: error: initializer element is not constant > regexp.c:371: error: (near initialization for `CRegexpDesc[31]') > regexp.c:372: error: initializer element is not constant > regexp.c:372: error: (near initialization for `CRegexpDesc[32]') > regexp.c:374: error: initializer element is not constant > regexp.c:374: error: (near initialization for `CRegexpDesc[33]') > make[4]: *** [regexp.lo] Fehler 1 > make[4]: Leaving directory > `/raid/home/tester/Downloads/gambas2/gambas2-1.9.24/gb.pcre/src' > make[3]: *** [all-recursive] Fehler 1 > make[3]: Leaving directory > `/raid/home/tester/Downloads/gambas2/gambas2-1.9.24/gb.pcre' > make[2]: *** [all] Fehler 2 > make[2]: Leaving directory > `/raid/home/tester/Downloads/gambas2/gambas2-1.9.24/gb.pcre' > make[1]: *** [all-recursive] Fehler 1 > make[1]: Leaving directory > `/raid/home/tester/Downloads/gambas2/gambas2-1.9.24' > make: *** [all] Fehler 2 > > Compiling stops here. Any idea why? > > > Can you try again with this version, and if it works, can you send me the > > strace output of both version so that I can compare? > > Does this still make sense now? I did a make uninstall with 1.9.31, then > just make install with 1.9.24. It ran smoothly. Then I deleted the old > source of 1.9.24 and started configure and make which crashed. The > previous 1.9.24 binary is still installed, but would it issue any > valuable hints if started with strace from the "new" source dir now? I need the strace of 'gbx2 -p' version 1.9.24 in the IDE source directory of the 1.9.24. If you succeeded in compiling it before, and if it fails now, then that means that something changed in your system installation. Check your development package! > > And 2nd question, do you need it from my office account (over X) or from > the server directly? (I would have to copy the sources to a guest > account and chown them and start from there?) If you can test both, it will be interesting to see if the strace output is different or not. Regards, -- Benoit Minisini From gambas at ...1... Fri Jun 2 00:57:16 2006 From: gambas at ...1... (Benoit Minisini) Date: Fri, 2 Jun 2006 00:57:16 +0200 Subject: [Gambas-user] make executable old bug In-Reply-To: <200606011752.31075.stefanopalmeri@...152...> References: <200606011752.31075.stefanopalmeri@...152...> Message-ID: <200606020057.17097.gambas@...1...> On Thursday 01 June 2006 17:52, Stefano Palmeri wrote: > Hi, Benoit. > > Gambas2 always fails to create the executable of a project > in a different directory than the project directory. This is due > to a missing ".gambas" in the MakeExecutable FUNCTION > in Project.module. > > TRY MOVE Project.Dir &/ Project.Name TO ExecPath > > should be: > > TRY MOVE Project.Dir &/ Project.Name & ".gambas" TO ExecPath > > The patch was posted by Fabien Bodard sometime ago, but the bug > is still present in 1.9.31. > > Also, I added this code to MakeExecutable FUNCTION: > > IF Dialog.SaveFile() THEN RETURN TRUE > ExecPath = Dialog.Path > IF File.Ext(ExecPath) <> "gambas" THEN <----- > ExecPath = ExecPath & ".gambas" <----- > ENDIF <----- > > because when moving the file in a different folder, > the suffix is lost (if the user did not set it in Dialog.Path). > The extension ".gambas" is mandatory in Gambas2, isn't it? > > Regards, > > Stefano Palmeri > OK, this should be fixed now... Check the next version! -- Benoit Minisini From gambas at ...1443... Fri Jun 2 10:28:26 2006 From: gambas at ...1443... (gambas at ...1443...) Date: Fri, 2 Jun 2006 03:28:26 -0500 (CDT) Subject: [Gambas-user] Display binary data from MySQL DB In-Reply-To: <200606011752.31075.stefanopalmeri@...152...> References: <200606011752.31075.stefanopalmeri@...152...> Message-ID: <2185.196.211.243.180.1149236906.squirrel@...1444...> Hey all, I was wodering if there is a way to view binary data from a mysql database in a drawing area? In php there is functionality to extrat the data and display it as an image. I have the data in a table but cannot think of a way to get it out (in Gambas) Cheers Shaun From sourceforge-raindog2 at ...94... Fri Jun 2 16:40:05 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Fri, 2 Jun 2006 10:40:05 -0400 Subject: [Gambas-user] Display binary data from MySQL DB In-Reply-To: <2185.196.211.243.180.1149236906.squirrel@...1444...> References: <200606011752.31075.stefanopalmeri@...152...> <2185.196.211.243.180.1149236906.squirrel@...1444...> Message-ID: <200606021040.06562.sourceforge-raindog2@...94...> On Fri June 2 2006 04:28, gambas at ...1443... wrote: > I was wodering if there is a way to view binary data from a > mysql database in a drawing area? > In php there is functionality to extrat the data and display > it as an image. Well, if you've done a select and have a row in a Result object, you could always do something like File.Save("somefilename.png", myResultObject["myBinaryField"]) ' change .png to whatever format is appropriate for ' your binary field, assuming it's one Qt/Gambas can display myPictureObject = Picture.Load("somefilename.png") Draw.Begin(myDrawingArea) Draw.Picture(myPictureObject) Draw.End I can't think of a reason why that wouldn't work.... Rob From ronstk at ...239... Sat Jun 3 08:35:04 2006 From: ronstk at ...239... (ron) Date: Sat, 3 Jun 2006 08:35:04 +0200 Subject: [Gambas-user] PRB:Connection.Exec() Message-ID: <200606030835.04774.ronstk@...239...> In the code I use: sql = "SELECT DISTINCT `kind` FROM `devices` WHERE `enabled`=true ORDER BY `kind` ASC" hResult = Global.Conn2.Exec(sql) I got a error "Query failed: Unknown column 'true' in 'where clause'" With or without the backticks did not solve the problem. Single quote arround true ( `enabled`=true) gives no error and no records. Double quote (`enabled`="true") Got error 'Unexpected TRUE at line 101 in Form2.class', stupid me must be `enabled`=\"true\" :( No error and no records as expected. The strange thing is MySQL get/find true as column name ? I have used the database-manager to create a table In the table is a field 'enabled' set as boolean. As far I know boolean is 'true' or 'false', they are the only options I got in the database manager. Using phpmyadmin I see it is stored as tinyint(1) and value of 0 or 1. Now I remember why I stopped using 'Enabled = True', and changed over to 'Disbaled = False' or 'Enable = NOT False'. Some use +1 as true and +0 as false and other use -1 (all bits set) as and 0(zero) (all bits reset) as false. Resulting in False = 0(zero) and True is not 0 (zero) and so the only thing common to all systems for True/False is the value for False=0 WHERE `enabled` = True WHERE `enabled` = NOT False WHERE `enabled` = NOT(FALSE) All are valid SQL but fails in gambas with unknown column 'True' or 'False' The Connection.Exec("select * from table where cond") is not passing the query to MySQL. So I did go reading the docs again and for Connection.Exec() it say's: FUNCTION Exec ( Request AS String, Arguments AS , ... ) AS Result where Request is a SQL WHERE clause used for filtering the table. Arguments are quoted as needed by the SQL syntax, and substituted inside the Request string public sub mysub() DIM hResult AS Result DIM sql AS String DIM Conn2 as Connection dim hResult2 as Result Conn2 = NEW Connection SetConnection(Conn2) ' this works only if I use `enabled`=1 'sql = "SELECT DISTINCT `kind` FROM `devices` WHERE `enabled`=1 ORDER BY `kind` ASC" 'hResult = Global.Conn2.Exec(sql) ' but after reading the doc again I changed it to hResult = Conn2.Create("devices") hResult.Connection.Exec("enabled", "1") '<-- MySQL error 'near enable = 1' mysql: 0x818bea8: show columns from `devices` like 'id' mysql: 0x818bea8: show columns from `devices` like 'enabled' mysql: 0x818bea8: show columns from `devices` like 'author' mysql: 0x818bea8: show columns from `devices` like 'date' mysql: 0x818bea8: show columns from `devices` like 'kind' mysql: 0x818bea8: show columns from `devices` like 'device' mysql: 0x818bea8: show columns from `devices` like 'description' mysql: 0x818bea8: enabled = 1 And this should be as doc say ??? quoted or not for [Arguments AS,...] Beside of that, I need only 1 field but the result set has all fields (and retrive all the data?) when I move from record to record. Can you confirm the doc is wrong at http://gambasdoc.org/help/comp/gb.db/connection/exec Ron From leonardo at ...1237... Sat Jun 3 22:17:12 2006 From: leonardo at ...1237... (Leonardo Miliani) Date: Sat, 03 Jun 2006 22:17:12 +0200 Subject: [Gambas-user] Offline documentation is out-of-date Message-ID: <4481EE48.7080300@...1237...> I would like to know if I can find an up-to-date documentation that I can install with Gambas to access offline. I have a notebook and I usually work offline with Gambas. A lot of times I cannot find helps because the embedded documentation is out of date or is not present. -- Ciao. Leo Visita il mio sito personale: www.leonardomiliani.com e-mail: leonardo at ...1237... From leonardo at ...1237... Sat Jun 3 22:20:40 2006 From: leonardo at ...1237... (Leonardo Miliani) Date: Sat, 03 Jun 2006 22:20:40 +0200 Subject: [Gambas-user] Problems compiling 1.9.31 Message-ID: <4481EF18.7030405@...1237...> I've had problems compiling the new release of Gamabas. Make stops with this message: ... Making all in gb.crypt make[2]: Entering directory `/home/leo/Documenti/Software/Programmazione/Gambas2b/1.9.31/gambas2-1.9.31/gb.crypt' make all-recursive make[3]: Entering directory `/home/leo/Documenti/Software/Programmazione/Gambas2b/1.9.31/gambas2-1.9.31/gb.crypt' Making all in src make[4]: Entering directory `/home/leo/Documenti/Software/Programmazione/Gambas2b/1.9.31/gambas2-1.9.31/gb.crypt/src' if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include/scribus/ -pipe -Wall -fno-strict-aliasing -Wno-unused-value -fvisibility=hidden -g -Os -MT c_crypt.lo -MD -MP -MF ".deps/c_crypt.Tpo" -c -o c_crypt.lo c_crypt.c; \ then mv -f ".deps/c_crypt.Tpo" ".deps/c_crypt.Plo"; else rm -f ".deps/c_crypt.Tpo"; exit 1; fi gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include/scribus/ -pipe -Wall -fno-strict-aliasing -Wno-unused-value -fvisibility=hidden -g -Os -MT c_crypt.lo -MD -MP -MF .deps/c_crypt.Tpo -c c_crypt.c -fPIC -DPIC -o .libs/c_crypt.o In file included from c_crypt.c:28: /usr/local/include/scribus/crypt.h:36:22: error: scconfig.h: No such file or directory c_crypt.c: In function 'do_crypt': c_crypt.c:91: warning: implicit declaration of function 'crypt' c_crypt.c:91: warning: assignment makes pointer from integer without a cast c_crypt.c: In function 'check_crypt': c_crypt.c:107: warning: initialization makes pointer from integer without a cast make[4]: *** [c_crypt.lo] Error 1 make[4]: Leaving directory `/home/leo/Documenti/Software/Programmazione/Gambas2b/1.9.31/gambas2-1.9.31/gb.crypt/src' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/home/leo/Documenti/Software/Programmazione/Gambas2b/1.9.31/gambas2-1.9.31/gb.crypt' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/leo/Documenti/Software/Programmazione/Gambas2b/1.9.31/gambas2-1.9.31/gb.crypt' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/leo/Documenti/Software/Programmazione/Gambas2b/1.9.31/gambas2-1.9.31' make: *** [all] Error 2 -- Ciao. Leo Visita il mio sito personale: www.leonardomiliani.com e-mail: leonardo at ...1237... From katsancat at ...11... Sat Jun 3 22:40:42 2006 From: katsancat at ...11... (Bertrand-Xavier M.) Date: Sat, 3 Jun 2006 22:40:42 +0200 Subject: [Gambas-user] Offline documentation is out-of-date In-Reply-To: <4481EE48.7080300@...1237...> References: <4481EE48.7080300@...1237...> Message-ID: <200606032240.42763.katsancat@...11...> On Saturday 03 June 2006 22:17, Leonardo Miliani wrote: > I would like to know if I can find an up-to-date documentation that I > can install with Gambas to access offline. I have a notebook and I > usually work offline with Gambas. A lot of times I cannot find helps > because the embedded documentation is out of date or is not present. Hi, I was thinking about some kind of tool to generate documentation directly from code, like doxygen. I think too much. From sourceforge-raindog2 at ...94... Sat Jun 3 23:36:27 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Sat, 3 Jun 2006 17:36:27 -0400 Subject: [Gambas-user] Offline documentation is out-of-date In-Reply-To: <200606032240.42763.katsancat@...11...> References: <4481EE48.7080300@...1237...> <200606032240.42763.katsancat@...11...> Message-ID: <200606031736.27241.sourceforge-raindog2@...94...> On Sat June 3 2006 16:40, Bertrand-Xavier M. wrote: > Hi, I was thinking about some kind of tool to generate > documentation directly from code, like doxygen. I think too > much. As far as I know, much of the new Gambas wiki is generated directly from the code. The same was true of the old wiki, but we had to do it in a really clunky and slow manner. I don't know if Benoit's new wiki software has a way to generate a static HTML version yet. Rob From brian at ...1334... Sun Jun 4 03:39:15 2006 From: brian at ...1334... (Christopher Brian Jack) Date: Sat, 03 Jun 2006 18:39:15 -0700 (PDT) Subject: [Gambas-user] Offline documentation is out-of-date In-Reply-To: <200606031736.27241.sourceforge-raindog2@...94...> References: <4481EE48.7080300@...1237...> <200606032240.42763.katsancat@...11...> <200606031736.27241.sourceforge-raindog2@...94...> Message-ID: <20060603183532.D10998@...1337...> On Sat, 3 Jun 2006, Rob Kudla wrote: > Date: Sat, 3 Jun 2006 17:36:27 -0400 > From: Rob Kudla > Reply-To: mailing list for gambas users > > To: gambas-user at lists.sourceforge.net > Subject: Re: [Gambas-user] Offline documentation is out-of-date > > On Sat June 3 2006 16:40, Bertrand-Xavier M. wrote: > > Hi, I was thinking about some kind of tool to generate > > documentation directly from code, like doxygen. I think too > > much. > > As far as I know, much of the new Gambas wiki is generated > directly from the code. The same was true of the old wiki, but > we had to do it in a really clunky and slow manner. > > I don't know if Benoit's new wiki software has a way to generate > a static HTML version yet. How hard would it be to produce an application that updated the offline documentation to match updates to the online documentation? Digests like MD5 or SHA1 would be sufficient for detecting file changes and the plus would be that documentation would always be up to date. Something like CVS that tracks modification could also be used and in this case the "repository" would be the online documentation tree. .=================================================. | Christopher BRIAN Jack aka "Gau of the Veldt" | +=================================================' | brian _AT_ brians-anime _DOT_ com `=================================================- Hi Spambots, my email address is sputnik at ...1334... From sourceforge-raindog2 at ...94... Sun Jun 4 06:31:35 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Sun, 4 Jun 2006 00:31:35 -0400 Subject: [Gambas-user] Offline documentation is out-of-date In-Reply-To: <20060603183532.D10998@...1337...> References: <4481EE48.7080300@...1237...> <200606031736.27241.sourceforge-raindog2@...94...> <20060603183532.D10998@...1337...> Message-ID: <200606040031.36210.sourceforge-raindog2@...94...> On Sat June 3 2006 21:39, Christopher Brian Jack wrote: > How hard would it be to produce an application that updated > the offline documentation to match updates to the online > documentation? Digests like MD5 or SHA1 would be sufficient > for detecting file changes and the plus would be that While the old wiki stored its data in files, the new one is MySQL-based. Further, as with all wikis, the offline version needs to contain HTML markup, while the data stored on the server side contains wiki code... so there needs to be a program that generates the HTML out of the wiki code. That program may be as simple as wget --mirror, but ideally you want something a little faster and nicer to the web server. The "publish" program provided that for TWiki; whether the current wiki Benoit wrote has such a utility, I don't know, but we can always use the wget method once in a while in a pinch (and if I were to catch people doing that a lot during the day, I'd have to put IP bandwidth restrictions in place.) Rob From brian at ...1334... Sun Jun 4 07:52:26 2006 From: brian at ...1334... (Christopher Brian Jack) Date: Sat, 03 Jun 2006 22:52:26 -0700 (PDT) Subject: [Gambas-user] Offline documentation is out-of-date In-Reply-To: <200606040031.36210.sourceforge-raindog2@...94...> References: <4481EE48.7080300@...1237...> <200606031736.27241.sourceforge-raindog2@...94...> <20060603183532.D10998@...1337...> <200606040031.36210.sourceforge-raindog2@...94...> Message-ID: <20060603222156.M11837@...1337...> On Sun, 4 Jun 2006, Rob Kudla wrote: > On Sat June 3 2006 21:39, Christopher Brian Jack wrote: > > How hard would it be to produce an application that updated > > the offline documentation to match updates to the online > > documentation? Digests like MD5 or SHA1 would be sufficient > > for detecting file changes and the plus would be that > While the old wiki stored its data in files, the new one is > MySQL-based. Further, as with all wikis, the offline version > needs to contain HTML markup, while the data stored on the > server side contains wiki code... so there needs to be a program > that generates the HTML out of the wiki code. > That program may be as simple as wget --mirror, but ideally you > want something a little faster and nicer to the web server. The > "publish" program provided that for TWiki; whether the current > wiki Benoit wrote has such a utility, I don't know, but we can > always use the wget method once in a while in a pinch (and if I > were to catch people doing that a lot during the day, I'd have > to put IP bandwidth restrictions in place.) Keep modification times at the remote in the DB so it answer queue hints in the HTTP headers such as If-Modified-Since which prevents serving content that hasn't changed. Something a little more complicated than wget would be needed in that scenario so maybe the helpsystem code itself would need to issue the HTTP requests and format the If-Modified-Since header based on file modification times. A further refinement is to add to the wiki code a way to generate a list of changed URLs (nodes) in the wiki tree and only request the pages that have changed, based on the list received: http://www.gambasdocs.org/updated-since? The resulting data would be a possibly-empty text/plain document containing a list of newline delimited URLs to wiki paths modified since the specified date. For each URL copy the location part of the URL to a string for the file pathname and wget the changed URL to the pathname saved in the string. .=================================================. | Christopher BRIAN Jack aka "Gau of the Veldt" | +=================================================' | brian _AT_ brians-anime _DOT_ com `=================================================- Hi Spambots, my email address is sputnik at ...1334... From gambas at ...1... Sun Jun 4 13:01:15 2006 From: gambas at ...1... (Benoit Minisini) Date: Sun, 4 Jun 2006 13:01:15 +0200 Subject: [Gambas-user] Offline documentation is out-of-date In-Reply-To: <200606031736.27241.sourceforge-raindog2@...94...> References: <4481EE48.7080300@...1237...> <200606032240.42763.katsancat@...11...> <200606031736.27241.sourceforge-raindog2@...94...> Message-ID: <200606041301.16109.gambas@...1...> On Saturday 03 June 2006 23:36, Rob Kudla wrote: > On Sat June 3 2006 16:40, Bertrand-Xavier M. wrote: > > Hi, I was thinking about some kind of tool to generate > > documentation directly from code, like doxygen. I think too > > much. > > As far as I know, much of the new Gambas wiki is generated > directly from the code. The same was true of the old wiki, but > we had to do it in a really clunky and slow manner. > > I don't know if Benoit's new wiki software has a way to generate > a static HTML version yet. > > Rob > I'm currently trying a recursive wget on your server. It seems to not take a too long time. I think you will be able to launch it regularly to get a static version of the wiki. I will tell you as soon as I succeed in getting something usable. Regards, -- Benoit Minisini From ronstk at ...239... Sun Jun 4 15:27:04 2006 From: ronstk at ...239... (ron) Date: Sun, 4 Jun 2006 15:27:04 +0200 Subject: [Gambas-user] Offline documentation is out-of-date In-Reply-To: <200606041301.16109.gambas@...1...> References: <4481EE48.7080300@...1237...> <200606031736.27241.sourceforge-raindog2@...94...> <200606041301.16109.gambas@...1...> Message-ID: <200606041527.04132.ronstk@...239...> On Sunday 04 June 2006 13:01, Benoit Minisini wrote: > On Saturday 03 June 2006 23:36, Rob Kudla wrote: > > On Sat June 3 2006 16:40, Bertrand-Xavier M. wrote: > > I'm currently trying a recursive wget on your server. It seems to not take a > too long time. > > I think you will be able to launch it regularly to get a static version of the > wiki. > > I will tell you as soon as I succeed in getting something usable. > > Regards, > I'm curious how you use wget in this case. For protection of the gamabas doc server, can you send it as email direct to me? I promise not to attack our doc server with it :) TIA Ron From ronstk at ...239... Sun Jun 4 15:19:42 2006 From: ronstk at ...239... (ron) Date: Sun, 4 Jun 2006 15:19:42 +0200 Subject: [Gambas-user] Offline documentation is out-of-date In-Reply-To: <200606040031.36210.sourceforge-raindog2@...94...> References: <4481EE48.7080300@...1237...> <20060603183532.D10998@...1337...> <200606040031.36210.sourceforge-raindog2@...94...> Message-ID: <200606041519.42836.ronstk@...239...> On Sunday 04 June 2006 06:31, Rob Kudla wrote: > On Sat June 3 2006 21:39, Christopher Brian Jack wrote: > > How hard would it be to produce an application that updated > > the offline documentation to match updates to the online > > documentation? Digests like MD5 or SHA1 would be sufficient > > for detecting file changes and the plus would be that > > While the old wiki stored its data in files, the new one is > MySQL-based. Further, as with all wikis, the offline version > needs to contain HTML markup, while the data stored on the > server side contains wiki code... so there needs to be a program > that generates the HTML out of the wiki code. > > That program may be as simple as wget --mirror, but ideally you > want something a little faster and nicer to the web server. The > "publish" program provided that for TWiki; whether the current > wiki Benoit wrote has such a utility, I don't know, but we can > always use the wget method once in a while in a pinch (and if I > were to catch people doing that a lot during the day, I'd have > to put IP bandwidth restrictions in place.) > > Rob Hi Rob Wel I did use HTTrack to get the english version from the site. By links in the pages for other languages he did follow them Result was over 100mb transfer and after cleanup 40Mb of data. I did stop myself for the reason you mention about bandwith. This can be done atmost once every two weeks for a single person but I'm not alone. The script for reading the MySQL database and a SGL dump of the database is more interesting. The only bad part for some is they need a local webserver to present it. This can be a perl script or even a gambas program. (doc.cgi in the source tarbal?) This program/script is already existing, as we can read the doc now. From ronstk at ...239... Sun Jun 4 15:47:28 2006 From: ronstk at ...239... (ron) Date: Sun, 4 Jun 2006 15:47:28 +0200 Subject: [Gambas-user] I found strange behaviour in .31 release. Message-ID: <200606041547.28689.ronstk@...239...> After compile and install of the latest gambas version I found some strange behaviour in the code editor. When I select a part of text from top to bottom and use the right mouse button for 'copy' the marked text is unmarked. Nothing to copy :) but sometimes marking from bottom to top it stays marked. Sometimes a click event looks as interpreted 2 times. Setting a checkbox is many times direct unset. The double click on a word to mark, marks and unmarks direct. If it stays marked the RMB unmarks it many times. The best marking of text is always from end to begin, otherwise the RMB unmarks before the popup menu comes up. I'm afraid the mouse events are changed to much to get the popup menu working inside the current event. BTW your tip of using wait was working well :) (as usual). It does is not the box I use of two, on both I have the same effects with the mouse. Only common is both running SuSE 9.2/KDE 3.5.2. Hardware is different. From brian at ...1334... Sun Jun 4 18:20:12 2006 From: brian at ...1334... (Christopher Brian Jack) Date: Sun, 04 Jun 2006 09:20:12 -0700 (PDT) Subject: [Gambas-user] Offline documentation is out-of-date In-Reply-To: <200606041519.42836.ronstk@...239...> References: <4481EE48.7080300@...1237...> <20060603183532.D10998@...1337...> <200606040031.36210.sourceforge-raindog2@...94...> <200606041519.42836.ronstk@...239...> Message-ID: <20060604091240.O14860@...1337...> On Sun, 4 Jun 2006, ron wrote: > > That program may be as simple as wget --mirror, but ideally you > > want something a little faster and nicer to the web server. The > > "publish" program provided that for TWiki; whether the current > > wiki Benoit wrote has such a utility, I don't know, but we can > > always use the wget method once in a while in a pinch (and if I > > were to catch people doing that a lot during the day, I'd have > > to put IP bandwidth restrictions in place.) Due to the birthday paradox (it only takes 70 people to be over 90% and there's a lot more than 70 people in any one time zone) and time zones (what is peak daytime hours for your server may be 3am for others) you'd be restricting a LOT of IP addresses on a regular basis. It would appear wget --mirror isn't really a good idea. Also one would want to grab just the part of the documentation that is in their desired language. wget --mirror will grab everything! .=================================================. | Christopher BRIAN Jack aka "Gau of the Veldt" | +=================================================' | brian _AT_ brians-anime _DOT_ com `=================================================- Hi Spambots, my email address is sputnik at ...1334... From ronstk at ...239... Sun Jun 4 18:52:47 2006 From: ronstk at ...239... (ron) Date: Sun, 4 Jun 2006 18:52:47 +0200 Subject: [Gambas-user] Offline documentation is out-of-date In-Reply-To: <20060604091240.O14860@...1337...> References: <4481EE48.7080300@...1237...> <200606041519.42836.ronstk@...239...> <20060604091240.O14860@...1337...> Message-ID: <200606041852.47922.ronstk@...239...> On Sunday 04 June 2006 18:20, Christopher Brian Jack wrote: > On Sun, 4 Jun 2006, ron wrote: > > > > That program may be as simple as wget --mirror, but ideally you > > > want something a little faster and nicer to the web server. The > > > "publish" program provided that for TWiki; whether the current > > > wiki Benoit wrote has such a utility, I don't know, but we can > > > always use the wget method once in a while in a pinch (and if I > > > were to catch people doing that a lot during the day, I'd have > > > to put IP bandwidth restrictions in place.) > That wasn't me :) > Due to the birthday paradox (it only takes 70 people to be over 90% and > there's a lot more than 70 people in any one time zone) and time zones > (what is peak daytime hours for your server may be 3am for others) you'd > be restricting a LOT of IP addresses on a regular basis. It would appear > wget --mirror isn't really a good idea. Also one would want to grab just > the part of the documentation that is in their desired language. wget > --mirror will grab everything! > wget --mirror would be indeed to much. The problem is by the way the language select is done For dutch: 'http://gambasdoc.org/help/changes?nl' It would be better using the mod_rewrite with apache 'http://gambasdoc.org/help/nl/changes' or 'http://gambasdoc.org/help/changes/nl' with mod_rewrite the url can be translated at the server to 'http://gambasdoc.org/help/changes?nl' to keep the current system working. or 'http://gambasdoc.org/help/{help_page}?lang=nl' 'http://gambasdoc.org/help/{help_page}?lang=nl' Take a look at 'http://82.171.66.79/www/ftp/Gambas_Dokumentation.war' Here I use mod_rewrite to start a script to present the content of a *.war (.tgz) file as web page. (the links does not work because this is only one page for demo) Ron From sourceforge-raindog2 at ...94... Sun Jun 4 19:24:47 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Sun, 4 Jun 2006 13:24:47 -0400 Subject: [Gambas-user] Offline documentation is out-of-date In-Reply-To: <20060604091240.O14860@...1337...> References: <4481EE48.7080300@...1237...> <200606041519.42836.ronstk@...239...> <20060604091240.O14860@...1337...> Message-ID: <200606041324.48206.sourceforge-raindog2@...94...> On Sun June 4 2006 12:20, Christopher Brian Jack wrote: > IP addresses on a regular basis. It would appear wget > --mirror isn't really a good idea. Also one would want to > grab just the part of the documentation that is in their > desired language. wget --mirror will grab everything! Yeah, when I said "that program may be as simple as wget --mirror", I was speaking of wikis in general (I have seen some wiki packages that actually suggest that method to generate a static version) and not the Gambas documentation wiki. We will provide a static version, probably a daily snapshot in tarball or maybe zip format, and I imagine we'll be shipping a copy of the new static wiki in the Gambas tarball itself before too long, as we have been with the old static wiki. Certainly, if a number of outside people or sites were to start mirroring the wiki independently I'd have to put in some flood controls, as I mentioned before. Rob From leonardo at ...1237... Sun Jun 4 21:43:29 2006 From: leonardo at ...1237... (Leonardo Miliani) Date: Sun, 04 Jun 2006 21:43:29 +0200 Subject: [Gambas-user] Problems compiling 1.9.31 In-Reply-To: <4481EF18.7030405@...1237...> References: <4481EF18.7030405@...1237...> Message-ID: <448337E1.8080200@...1237...> Nobody has had same problem? I cannot compile gb.crypt component in Gambas 1.9.31 but I compiled it with NO problems in 1.9.30 on the _same_ system... -- Ciao. Leo Visita il mio sito personale: www.leonardomiliani.com e-mail: leonardo at ...1237... From nando_f at ...1382... Sun Jun 4 23:22:03 2006 From: nando_f at ...1382... (nando) Date: Sun, 4 Jun 2006 17:22:03 -0400 Subject: [Gambas-user] Doc missing 'Message' Message-ID: <20060604211920.M97197@...1382...> Message.Delete .Error ... Keyword 'Message' ? Overview 'System Messages' ? If it is there, I couldn't find it -Fernando From nando_f at ...1382... Sun Jun 4 23:52:22 2006 From: nando_f at ...1382... (nando) Date: Sun, 4 Jun 2006 17:52:22 -0400 Subject: [Gambas-user] Issue/Problem with Serial Port Component Message-ID: <20060604213753.M22255@...1382...> I have tested this for hours... PUBLIC SPortReceiveString AS STRING SUB SPort_Read() DIM s AS STRING DIM ls AS INTEGER ls = LOF(SPort) 'IF ls > 1 THEN DEC ls '<---always read 1 less than what LOF offers READ # SPort, s, ls PRINT s '<--help to debug SPortReceiveString = SPortReceiveString & s 'accumulate input 'There is some testing of SPortReceiveString here END Comments: Serial Port data received is in groups of about 120 bytes every 10 minutes. Every READ event is a small bunch of characters received. I have found out that it consistently happens that the during the SPort_Read event of the second last bunch of chars, there are more data being receive by the kernel or SPort control but an event will not happen. If I unREM the REMed line... IF ls > 1 THEN DEC ls '<---always read 1 less than what LOF offers then it works perfect every time. An event will happen for the very past burst of serial data in. -Fernando From ronstk at ...239... Mon Jun 5 00:44:05 2006 From: ronstk at ...239... (ron) Date: Mon, 5 Jun 2006 00:44:05 +0200 Subject: [Gambas-user] Issue/Problem with Serial Port Component In-Reply-To: <20060604213753.M22255@...1382...> References: <20060604213753.M22255@...1382...> Message-ID: <200606050044.05279.ronstk@...239...> On Sunday 04 June 2006 23:52, nando wrote: > I have tested this for hours... > > PUBLIC SPortReceiveString AS STRING > > SUB SPort_Read() > > DIM s AS STRING > DIM ls AS INTEGER > > ls = LOF(SPort) > 'IF ls > 1 THEN DEC ls '<---always read 1 less than what LOF offers > > READ # SPort, s, ls > > PRINT s '<--help to debug > > SPortReceiveString = SPortReceiveString & s 'accumulate input > > 'There is some testing of SPortReceiveString here > > END > > Comments: > Serial Port data received is in groups of about 120 bytes every 10 minutes. > Every READ event is a small bunch of characters received. > > I have found out that it consistently happens that > the during the SPort_Read event of the second last bunch of chars, > there are more data being receive by the kernel or SPort control > but an event will not happen. > > If I unREM the REMed line... > > IF ls > 1 THEN DEC ls '<---always read 1 less than what LOF offers > > then it works perfect every time. > An event will happen for the very past burst of serial data in. > > -Fernando > What is the real content of those 120 bytes and what program send the data? I'm thinking on a CR/LF problem. *nix use normal only one of them and if both are used the are CR/LF (or LF/CR). Windows use always both but reverse to *nix. One of them is the line terminator in gambas and when I'm right not returned in the string With READ # SPort, s, ls you use a binairy transfer and this should include all bytes. From nando_f at ...951... Mon Jun 5 00:52:24 2006 From: nando_f at ...951... (nando) Date: Sun, 4 Jun 2006 18:52:24 -0400 Subject: [Gambas-user] Issue/Problem with Serial Port Component In-Reply-To: <200606050044.05279.ronstk@...239...> References: <20060604213753.M22255@...1382...> <200606050044.05279.ronstk@...239...> Message-ID: <20060604225129.M31819@...951...> There is no CR/LF The data is ASCII text ---------- Original Message ----------- From: ron To: nando_f at ...951..., mailing list for gambas users Sent: Mon, 5 Jun 2006 00:44:05 +0200 Subject: Re: [Gambas-user] Issue/Problem with Serial Port Component > On Sunday 04 June 2006 23:52, nando wrote: > > I have tested this for hours... > > > > PUBLIC SPortReceiveString AS STRING > > > > SUB SPort_Read() > > > > DIM s AS STRING > > DIM ls AS INTEGER > > > > ls = LOF(SPort) > > 'IF ls > 1 THEN DEC ls '<---always read 1 less than what LOF offers > > > > READ # SPort, s, ls > > > > PRINT s '<--help to debug > > > > SPortReceiveString = SPortReceiveString & s 'accumulate input > > > > 'There is some testing of SPortReceiveString here > > > > END > > > > Comments: > > Serial Port data received is in groups of about 120 bytes every 10 minutes. > > Every READ event is a small bunch of characters received. > > > > I have found out that it consistently happens that > > the during the SPort_Read event of the second last bunch of chars, > > there are more data being receive by the kernel or SPort control > > but an event will not happen. > > > > If I unREM the REMed line... > > > > IF ls > 1 THEN DEC ls '<---always read 1 less than what LOF offers > > > > then it works perfect every time. > > An event will happen for the very past burst of serial data in. > > > > -Fernando > > > > What is the real content of those 120 bytes and what program > send the data? > > I'm thinking on a CR/LF problem. > *nix use normal only one of them and if both are used > the are CR/LF (or LF/CR). > Windows use always both but reverse to *nix. > > One of them is the line terminator in gambas and when I'm right > not returned in the string > With READ # SPort, s, ls you use a binairy transfer and this > should include all bytes. > > >From the doc for READ > If Variable is a string, you can specify a length that indicates the > number of bytes to read. If the length is negative, then (- Length) > bytes are read up to the end of stream. > > If no length is specified for a string, it is is read from the > stream. The string then must have been written with the WRITE instruction. > > Maybe it helps to PRINT ASC(LEFT(s)) and PRINT ASC(left(s,-1)) > after each READ. > > Ron > > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From ronstk at ...239... Mon Jun 5 01:03:43 2006 From: ronstk at ...239... (ron) Date: Mon, 5 Jun 2006 01:03:43 +0200 Subject: [Gambas-user] Issue/Problem with Serial Port Component In-Reply-To: <20060604225129.M31819@...951...> References: <20060604213753.M22255@...1382...> <200606050044.05279.ronstk@...239...> <20060604225129.M31819@...951...> Message-ID: <200606050103.43381.ronstk@...239...> On Monday 05 June 2006 00:52, nando wrote: > There is no CR/LF > The data is ASCII text > > Yeah and how do you know the line is received and when a new line starts? This works only if the ASCII text is always a fixed length and send as one peace. And the sending machine/program can add it if you send it away automatic each line. In notepad I do not see them, they are CR/LF but when reversed I see square blocks for one of those. So it is importand to know who is what sending exactly. Special when it is ASCII text how stupid it sounds. Ron From nando_f at ...951... Mon Jun 5 01:22:05 2006 From: nando_f at ...951... (nando) Date: Sun, 4 Jun 2006 19:22:05 -0400 Subject: [Gambas-user] Issue/Problem with Serial Port Component In-Reply-To: <200606050103.43381.ronstk@...239...> References: <20060604213753.M22255@...1382...> <200606050044.05279.ronstk@...239...> <20060604225129.M31819@...951...> <200606050103.43381.ronstk@...239...> Message-ID: <20060604230953.M74828@...951...> The remark line after the READ does some testing to see if complete data received matches known formats. There is no CR/LF embedded within the stream. I am well practiced in ASCII/CL/LF stuff and binary over serial. The _read events fires and the bunch of chars already received in the kernel are appended to the accumulating string. The string is tested each _read event. The problem here is that if you read *ALL* LOF(SPort) every _read event, there will not be a _read event for the last bunch. Reading one less than LOF(SPort) ensures the _event one more time. I have tried it here over 100 times with the same results. It's fascinating! -Fernando ---------- Original Message ----------- From: ron To: nando_f at ...951..., mailing list for gambas users Sent: Mon, 5 Jun 2006 01:03:43 0200 Subject: Re: [Gambas-user] Issue/Problem with Serial Port Component > On Monday 05 June 2006 00:52, nando wrote: > > There is no CR/LF > > The data is ASCII text > > > > > Yeah and how do you know the line is > received and when a new line starts? > > This works only if the ASCII text is > always a fixed length and send as one peace. > > And the sending machine/program can add > it if you send it away automatic each line. > > In notepad I do not see them, they are CR/LF > but when reversed I see square blocks for one of those. > > So it is importand to know who is what sending exactly. > Special when it is ASCII text how stupid it sounds. > > Ron > > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists//gambas-user ------- End of Original Message ------- From ronstk at ...239... Mon Jun 5 01:33:08 2006 From: ronstk at ...239... (ron) Date: Mon, 5 Jun 2006 01:33:08 +0200 Subject: [Gambas-user] Issue/Problem with Serial Port Component In-Reply-To: <20060604230953.M74828@...951...> References: <20060604213753.M22255@...1382...> <200606050103.43381.ronstk@...239...> <20060604230953.M74828@...951...> Message-ID: <200606050133.08912.ronstk@...239...> On Monday 05 June 2006 01:22, nando wrote: > The remark line after the READ does some testing to see > if complete data received matches known formats. There is no CR/LF > embedded within the stream. I am well practiced in ASCII/CL/LF stuff > and binary over serial. > > The _read events fires and the bunch of chars already received in the kernel > are appended to the accumulating string. > > The string is tested each _read event. > > The problem here is that if you read *ALL* LOF(SPort) every _read event, > there will not be a _read event for the last bunch. > > Reading one less than LOF(SPort) ensures the _event one more time. > > I have tried it here over 100 times with the same results. > It's fascinating! > > -Fernando > Why don't you try SUB SPort_Read() ? DIM s AS STRING ? DIM ls AS INTEGER dim ssum as string ssum="" DO UNTIL EOF(SPort) ? READ # SPort, s, 1 ssum &= s Loop SPortReceiveString = SPortReceiveString & ssum END Ron From nando_f at ...951... Mon Jun 5 01:41:22 2006 From: nando_f at ...951... (nando) Date: Sun, 4 Jun 2006 19:41:22 -0400 Subject: [Gambas-user] Issue/Problem with Serial Port Component In-Reply-To: <200606050133.08912.ronstk@...239...> References: <20060604213753.M22255@...1382...> <200606050103.43381.ronstk@...239...> <20060604230953.M74828@...951...> <200606050133.08912.ronstk@...239...> Message-ID: <20060604233712.M52175@...951...> This example may work around the issue. It also uses the cpu more than the LOF method. It is more efficient to take a bunch or chars from the kernel in one shot than asking for one at a time. It is the same issue are reading a file one byte at a time or a bunch of bytes at a time. The first way is much slower. ---------- Original Message ----------- From: ron To: nando_f at ...951..., mailing list for gambas users Sent: Mon, 5 Jun 2006 01:33:08 +0200 Subject: Re: [Gambas-user] Issue/Problem with Serial Port Component > On Monday 05 June 2006 01:22, nando wrote: > > The remark line after the READ does some testing to see > > if complete data received matches known formats. There is no CR/LF > > embedded within the stream. I am well practiced in ASCII/CL/LF stuff > > and binary over serial. > > > > The _read events fires and the bunch of chars already received in the kernel > > are appended to the accumulating string. > > > > The string is tested each _read event. > > > > The problem here is that if you read *ALL* LOF(SPort) every _read event, > > there will not be a _read event for the last bunch. > > > > Reading one less than LOF(SPort) ensures the _event one more time. > > > > I have tried it here over 100 times with the same results. > > It's fascinating! > > > > -Fernando > > > > Why don't you try > > SUB SPort_Read() > > DIM s AS STRING > DIM ls AS INTEGER > dim ssum as string > ssum="" > DO UNTIL EOF(SPort) > READ # SPort, s, 1 > ssum &= s > Loop > SPortReceiveString = SPortReceiveString & ssum > END > > Ron > > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From ronstk at ...239... Mon Jun 5 01:44:28 2006 From: ronstk at ...239... (ron) Date: Mon, 5 Jun 2006 01:44:28 +0200 Subject: [Gambas-user] Issue/Problem with Serial Port Component In-Reply-To: <20060604230953.M74828@...951...> References: <20060604213753.M22255@...1382...> <200606050103.43381.ronstk@...239...> <20060604230953.M74828@...951...> Message-ID: <200606050144.28488.ronstk@...239...> On Monday 05 June 2006 01:22, nando wrote: > The problem here is that if you read *ALL* LOF(SPort) every _read event, > there will not be a _read event for the last bunch. > Interesting, Aren't those 120 bytes send in one block? Then the question is how is the _read event fired? There must be a byte given the length on start or a timeout for getting the next byte from serial device. If send in one part then a READ LOF() should read all and there is no more to read for a last bunch. So there must be something in the ASCII stream that triggers the _Read event before all 120 bytes as available. Is the first time the _Read event occur the LOF(SPort) the same as the ASC(left(s))-1 ??? Ron From nando_f at ...951... Mon Jun 5 01:58:11 2006 From: nando_f at ...951... (nando) Date: Sun, 4 Jun 2006 19:58:11 -0400 Subject: [Gambas-user] Issue/Problem with Serial Port Component In-Reply-To: <200606050144.28488.ronstk@...239...> References: <20060604213753.M22255@...1382...> <200606050103.43381.ronstk@...239...> <20060604230953.M74828@...951...> <200606050144.28488.ronstk@...239...> Message-ID: <20060604234817.M86644@...951...> The speed is 9600 baud. Yes they are sent in one block, but that block is at 9600 baud. The _read fires when there is at least one and by the time the code to actually READ there may be three or four or maybe many more. This means that there are some available to read when the event fires. If the event takes a long time to do something, then there will be more available the next time the event fires. Gambas/Serial component is responsible to fire _read - which I am lead to believe is when LOF > 0 for that device. Something inside the ASCII stream cannot trigger the event. It is the fact that there is at least something available which triggers the event. The following is totally false: > If send in one part then a READ LOF() should read all > and there is no more to read for a last bunch. ...because of differing speeds between the computer to process and the 9600 stream. When one char has arrived, Gambas can read it, put it in a string far before the second char has arrived. It is even more pronounced at slower speeds. The first LOF(s) only reads a few because only a few have arrived. The computer is much faster than a stream of 9600 baud chars. -Fernando ---------- Original Message ----------- From: ron To: nando_f at ...951..., mailing list for gambas users Sent: Mon, 5 Jun 2006 01:44:28 +0200 Subject: Re: [Gambas-user] Issue/Problem with Serial Port Component > On Monday 05 June 2006 01:22, nando wrote: > > The problem here is that if you read *ALL* LOF(SPort) every _read event, > > there will not be a _read event for the last bunch. > > > > Interesting, > > Aren't those 120 bytes send in one block? > Then the question is how is the _read event fired? > > There must be a byte given the length on start or > a timeout for getting the next byte from serial device. > > If send in one part then a READ LOF() should read all > and there is no more to read for a last bunch. > > So there must be something in the ASCII stream that > triggers the _Read event before all 120 bytes as available. > > Is the first time the _Read event occur the LOF(SPort) the > same as the ASC(left(s))-1 ??? > > Ron > > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From ronstk at ...239... Mon Jun 5 02:30:59 2006 From: ronstk at ...239... (ron) Date: Mon, 5 Jun 2006 02:30:59 +0200 Subject: [Gambas-user] Issue/Problem with Serial Port Component In-Reply-To: <20060604234817.M86644@...951...> References: <20060604213753.M22255@...1382...> <200606050144.28488.ronstk@...239...> <20060604234817.M86644@...951...> Message-ID: <200606050230.59437.ronstk@...239...> On Monday 05 June 2006 01:58, nando wrote: > The speed is 9600 baud. > Yes they are sent in one block, but that block is at 9600 baud. > The _read fires when there is at least one and by the time the code > to actually READ there may be three or four or maybe many more. > This means that there are some available to read when the event fires. > If the event takes a long time to do something, then there will > be more available the next time the event fires. > > Gambas/Serial component is responsible to fire _read - which > I am lead to believe is when LOF > 0 for that device. > > Something inside the ASCII stream cannot trigger the event. > It is the fact that there is at least something available which > triggers the event. > > The following is totally false: > > > If send in one part then a READ LOF() should read all > > and there is no more to read for a last bunch. > > ...because of differing speeds between > the computer to process and the 9600 stream. When one char has arrived, > Gambas can read it, put it in a string far before the second char has > arrived. It is even more pronounced at slower speeds. > > The first LOF(s) only reads a few because only a few have arrived. > The computer is much faster than a stream of 9600 baud chars. > > -Fernando > OK Now the problem is more clear. My idea is to start on the _Read event a timer with a delay time approx 9600/8 * 120+30. If the stream at 9600 is constant for those 120 bytes without gaps then after the delay the LOF(SPort) should have the correct count of bytes available. Drop Timer on the form. (gb.timer does not exist/works, completion?) PUBLIC SPortReceiveString AS STRING SUB SPort_Read() ? DIM s AS STRING ? DIM ls AS INTEGER Timer1.Delay=9600/8+2 * 120+30 ' start/stopbit and some spare bytes Timer1.Enable=true END public sub Timer1_Timer() Timer1.Enabled=False SPortMyRead end SUB SPortMyRead() DIM s AS STRING DIM ls AS INTEGER ls = LOF(SPort) READ # SPort, s, ls SPortReceiveString = SPortReceiveString & s ?'accumulate input END May be this could help Ron From timothy.marshal-nichols at ...247... Mon Jun 5 10:26:04 2006 From: timothy.marshal-nichols at ...247... (Timothy Marshal-Nichols) Date: Mon, 5 Jun 2006 09:26:04 +0100 Subject: [Gambas-user] Issue/Problem with Serial Port Component In-Reply-To: <20060604225129.M31819@...951...> Message-ID: > -----Original Message----- > From: gambas-user-bounces at lists.sourceforge.net > [mailto:gambas-user-bounces at lists.sourceforge.net]On Behalf Of nando > Sent: Sunday, 04 June 2006 23:52 > To: mailing list for gambas users > Subject: Re: [Gambas-user] Issue/Problem with Serial Port Component > > > There is no CR/LF > The data is ASCII text > > > ---------- Original Message ----------- > From: ron > To: nando_f at ...951..., mailing list for gambas users > > Sent: Mon, 5 Jun 2006 00:44:05 +0200 > Subject: Re: [Gambas-user] Issue/Problem with Serial Port Component > > > On Sunday 04 June 2006 23:52, nando wrote: > > > I have tested this for hours... > > > > > > PUBLIC SPortReceiveString AS STRING > > > > > > SUB SPort_Read() > > > > > > DIM s AS STRING > > > DIM ls AS INTEGER > > > > > > ls = LOF(SPort) > > > 'IF ls > 1 THEN DEC ls '<---always read 1 less than what > LOF offers > > > > > > READ # SPort, s, ls > > > > > > PRINT s '<--help to debug > > > > > > SPortReceiveString = SPortReceiveString & s 'accumulate input > > > > > > 'There is some testing of SPortReceiveString here > > > > > > END > > > > > > Comments: > > > Serial Port data received is in groups of about 120 bytes > every 10 minutes. > > > Every READ event is a small bunch of characters received. > > > > > > I have found out that it consistently happens that > > > the during the SPort_Read event of the second last bunch of chars, > > > there are more data being receive by the kernel or SPort control > > > but an event will not happen. > > > > > > If I unREM the REMed line... > > > > > > IF ls > 1 THEN DEC ls '<---always read 1 less than what LOF offers > > > > > > then it works perfect every time. > > > An event will happen for the very past burst of serial data in. > > > > > > -Fernando > > > > > > Why are you not reading the complete serial port stream? This is one of your problems. I showed you how to read a serial port in a previous email. So let spell it out for you. Here is a demo serial port application. Something like this is what you should be doing: PRIVATE buffer AS String PUBLIC SUB SerialPortDevice_Read() DIM s AS String DIM i AS Integer DIM lineItem AS String READ #SerialPortDevice, s, Lof(SerialPortDevice) buffer &= s i = InStr(buffer, "\r\n") WHILE (i > 0) ' Get next data item up to CrLf lineItem = Mid(buffer, 1, i + 1) ' Show last item in the label LabelLastDataItem.Text = lineItem ' Append data to text area TextAreaData.Pos = TextAreaData.Length ' The 'replace' in this line is simply because the text area ' does not look nice with a return char in it TextAreaData.Insert(Replace(lineItem, "\r", "")) ' Clear buffer up to CrLf buffer = Mid(buffer, i + 2) i = InStr(buffer, "\r\n") WEND TextAreaData.Pos = TextAreaData.Length TextAreaData.EnsureVisible() END Most devices you communicate with using a serial port append some kind of terminating characters to the end of the data they send. This version of a serial port read demo's this kind of serial communications. Here we are looking for a DOS/Windows type of carriage return/line feed pair. Each time the serial port transmits data we can not guarantee we have a complete line of data so we buffer the data received. We then look in the buffer to check if we have found our terminating characters. If it is found we process the line. If we are receiving lots of data we also need to be able to handle the situation where we have more than one line in our buffer. This could happen if a large text file was being sent to this application. For this reason we process the buffer up to the CrLf pair. and then clear the buffer up to the end of the CrLf pair. We place this in a loop to ensure all data is processed. A NOTE ON SPEED: When you are using this demo application you will find that serial communication take almost no CPU time to process. Try this with this demo application and with some utility running to see CPU usage: 1.Select the Settings tab. Send a large text file to this project. You will see CPU usage is very low. 2.Select the Data tab. Send the same text file to this application. You will see that CPU usage is a bit higher. This shows that most CPU usage is take up with redrawing the TextArea control AND NOT WITH SERIAL COMMUNICATIONS. The lesson is if you are doing lots of serial communications then ensure you are not continuously updating your user interface with each character sent!!!!!!!! Thanks 8-{)} Timothy Marshal-Nichols -------------- next part -------------- A non-text attachment was scrubbed... Name: SerialPort.tar.bz2 Type: application/octet-stream Size: 29936 bytes Desc: not available URL: From timothy.marshal-nichols at ...247... Mon Jun 5 11:19:58 2006 From: timothy.marshal-nichols at ...247... (Timothy Marshal-Nichols) Date: Mon, 5 Jun 2006 10:19:58 +0100 Subject: [Gambas-user] Issue/Problem with Serial Port Component In-Reply-To: <20060604225129.M31819@...951...> Message-ID: I have just remembered you have version 1 of Gambas. The demo in the previous email was of a Gambas 2 project. Here is a version of the project in version 1.0.16. Thanks 8-{)} Timothy Marshal-Nichols > -----Original Message----- > From: gambas-user-bounces at lists.sourceforge.net > [mailto:gambas-user-bounces at lists.sourceforge.net]On Behalf Of nando > Sent: Sunday, 04 June 2006 23:52 > To: mailing list for gambas users > Subject: Re: [Gambas-user] Issue/Problem with Serial Port Component > > > There is no CR/LF > The data is ASCII text > > > ---------- Original Message ----------- > From: ron > To: nando_f at ...951..., mailing list for gambas users > > Sent: Mon, 5 Jun 2006 00:44:05 +0200 > Subject: Re: [Gambas-user] Issue/Problem with Serial Port Component > > > On Sunday 04 June 2006 23:52, nando wrote: > > > I have tested this for hours... > > > > > > PUBLIC SPortReceiveString AS STRING > > > > > > SUB SPort_Read() > > > > > > DIM s AS STRING > > > DIM ls AS INTEGER > > > > > > ls = LOF(SPort) > > > 'IF ls > 1 THEN DEC ls '<---always read 1 less than what > LOF offers > > > > > > READ # SPort, s, ls > > > > > > PRINT s '<--help to debug > > > > > > SPortReceiveString = SPortReceiveString & s 'accumulate input > > > > > > 'There is some testing of SPortReceiveString here > > > > > > END > > > > > > Comments: > > > Serial Port data received is in groups of about 120 bytes > every 10 minutes. > > > Every READ event is a small bunch of characters received. > > > > > > I have found out that it consistently happens that > > > the during the SPort_Read event of the second last bunch of chars, > > > there are more data being receive by the kernel or SPort control > > > but an event will not happen. > > > > > > If I unREM the REMed line... > > > > > > IF ls > 1 THEN DEC ls '<---always read 1 less than what LOF offers > > > > > > then it works perfect every time. > > > An event will happen for the very past burst of serial data in. > > > > > > -Fernando > > > > > > > What is the real content of those 120 bytes and what program > > send the data? > > > > I'm thinking on a CR/LF problem. > > *nix use normal only one of them and if both are used > > the are CR/LF (or LF/CR). > > Windows use always both but reverse to *nix. > > > > One of them is the line terminator in gambas and when I'm right > > not returned in the string > > With READ # SPort, s, ls you use a binairy transfer and this > > should include all bytes. > > > > >From the doc for READ > > If Variable is a string, you can specify a length that indicates the > > number of bytes to read. If the length is negative, then (- Length) > > bytes are read up to the end of stream. > > > > If no length is specified for a string, it is is read from the > > stream. The string then must have been written with the WRITE > instruction. > > > > Maybe it helps to PRINT ASC(LEFT(s)) and PRINT ASC(left(s,-1)) > > after each READ. > > > > Ron > > > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > ------- End of Original Message ------- > > > > _______________________________________________ > 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: SerialPort.tar.bz2 Type: application/octet-stream Size: 30822 bytes Desc: not available URL: From nando_f at ...951... Mon Jun 5 18:27:00 2006 From: nando_f at ...951... (nando) Date: Mon, 5 Jun 2006 12:27:00 -0400 Subject: [Gambas-user] Issue/Problem with Serial Port Component In-Reply-To: References: <20060604225129.M31819@...951...> Message-ID: <20060605160111.M60176@...951...> Thank you. Many (other) things also communicate without CR/LF especially if a device (like a radio, or machine, etc) The things I use for communication do not use CR/LF for delineation. Humans like CR/LF though because it visually separates lines. For example, Chr$(2) and Chr$(3) are used by many devices for message delineation. Some devices are a binary stream and continuous parsing is the only method possible especially when messages arrive at unknown bursts and with varying formats. CR/LF or ONE specific sequence would certainly make things easiest, but this is not the case. Add to the mix that if a SUB does not exit because it is waiting for mor input to the delineator, there is no (other) event processing. Perhaps Benoit is thinking of a multi-threaded Gambas which would really be wild. Having each coded event a possible separate thread is a very new way to program. Each SUB would have the keyword THREADED to signify this and when the event fires..a new thread happens. ---------- Original Message ----------- From: "Timothy Marshal-Nichols" To: , "mailing list for gambas users" Sent: Mon, 5 Jun 2006 10:19:58 +0100 Subject: Re: [Gambas-user] Issue/Problem with Serial Port Component > I have just remembered you have version 1 of Gambas. The demo in the > previous email was of a Gambas 2 project. Here is a version of the project > in version 1.0.16. > > Thanks > > 8-{)} Timothy Marshal-Nichols > > > > -----Original Message----- > > From: gambas-user-bounces at lists.sourceforge.net > > [mailto:gambas-user-bounces at lists.sourceforge.net]On Behalf Of nando > > Sent: Sunday, 04 June 2006 23:52 > > To: mailing list for gambas users > > Subject: Re: [Gambas-user] Issue/Problem with Serial Port Component > > > > > > There is no CR/LF > > The data is ASCII text > > > > > > ---------- Original Message ----------- > > From: ron > > To: nando_f at ...951..., mailing list for gambas users > > > > Sent: Mon, 5 Jun 2006 00:44:05 +0200 > > Subject: Re: [Gambas-user] Issue/Problem with Serial Port Component > > > > > On Sunday 04 June 2006 23:52, nando wrote: > > > > I have tested this for hours... > > > > > > > > PUBLIC SPortReceiveString AS STRING > > > > > > > > SUB SPort_Read() > > > > > > > > DIM s AS STRING > > > > DIM ls AS INTEGER > > > > > > > > ls = LOF(SPort) > > > > 'IF ls > 1 THEN DEC ls '<---always read 1 less than what > > LOF offers > > > > > > > > READ # SPort, s, ls > > > > > > > > PRINT s '<--help to debug > > > > > > > > SPortReceiveString = SPortReceiveString & s 'accumulate input > > > > > > > > 'There is some testing of SPortReceiveString here > > > > > > > > END > > > > > > > > Comments: > > > > Serial Port data received is in groups of about 120 bytes > > every 10 minutes. > > > > Every READ event is a small bunch of characters received. > > > > > > > > I have found out that it consistently happens that > > > > the during the SPort_Read event of the second last bunch of chars, > > > > there are more data being receive by the kernel or SPort control > > > > but an event will not happen. > > > > > > > > If I unREM the REMed line... > > > > > > > > IF ls > 1 THEN DEC ls '<---always read 1 less than what LOF offers > > > > > > > > then it works perfect every time. > > > > An event will happen for the very past burst of serial data in. > > > > > > > > -Fernando > > > > > > > > > > What is the real content of those 120 bytes and what program > > > send the data? > > > > > > I'm thinking on a CR/LF problem. > > > *nix use normal only one of them and if both are used > > > the are CR/LF (or LF/CR). > > > Windows use always both but reverse to *nix. > > > > > > One of them is the line terminator in gambas and when I'm right > > > not returned in the string > > > With READ # SPort, s, ls you use a binairy transfer and this > > > should include all bytes. > > > > > > >From the doc for READ > > > If Variable is a string, you can specify a length that indicates the > > > number of bytes to read. If the length is negative, then (- Length) > > > bytes are read up to the end of stream. > > > > > > If no length is specified for a string, it is is read from the > > > stream. The string then must have been written with the WRITE > > instruction. > > > > > > Maybe it helps to PRINT ASC(LEFT(s)) and PRINT ASC(left(s,-1)) > > > after each READ. > > > > > > Ron > > > > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------- End of Original Message ------- > > > > > > > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------- End of Original Message ------- From gambas at ...1... Mon Jun 5 21:28:04 2006 From: gambas at ...1... (Benoit Minisini) Date: Mon, 5 Jun 2006 21:28:04 +0200 Subject: [Gambas-user] Problems compiling 1.9.31 In-Reply-To: <448337E1.8080200@...1237...> References: <4481EF18.7030405@...1237...> <448337E1.8080200@...1237...> Message-ID: <200606052128.04396.gambas@...1...> On Sunday 04 June 2006 21:43, Leonardo Miliani wrote: > Nobody has had same problem? > I cannot compile gb.crypt component in Gambas 1.9.31 but I compiled it > with NO problems in 1.9.30 on the _same_ system... Did you notice that the gb.crypt component found its crypt.h include file in /usr/local/include/scribus/ ? So I think you don't have the same system as with 1.9.30... To prevent gb.crypt to look inside /usr/local/include, you have to specify the gb.crypt include directory by hand with a configure option: $ ./configure --with-crypt-includes=/usr/include Tell me if it works. Regards, -- Benoit Minisini From gambas at ...1... Mon Jun 5 21:30:56 2006 From: gambas at ...1... (Benoit Minisini) Date: Mon, 5 Jun 2006 21:30:56 +0200 Subject: [Gambas-user] I found strange behaviour in .31 release. In-Reply-To: <200606041547.28689.ronstk@...239...> References: <200606041547.28689.ronstk@...239...> Message-ID: <200606052130.56476.gambas@...1...> On Sunday 04 June 2006 15:47, ron wrote: > After compile and install of the latest gambas version I found > some strange behaviour in the code editor. > > When I select a part of text from top to bottom and use the > right mouse button for 'copy' the marked text is unmarked. > Nothing to copy :) but sometimes marking from bottom to top > it stays marked. > Sometimes a click event looks as interpreted 2 times. > Setting a checkbox is many times direct unset. > > The double click on a word to mark, marks and unmarks direct. > If it stays marked the RMB unmarks it many times. > The best marking of text is always from end to begin, > otherwise the RMB unmarks before the popup menu comes up. > > I'm afraid the mouse events are changed to much to get > the popup menu working inside the current event. > BTW your tip of using wait was working well :) (as usual). > > It does is not the box I use of two, on both I have > the same effects with the mouse. > Only common is both running SuSE 9.2/KDE 3.5.2. > Hardware is different. > I have no problem there. Does somebody else have the same problems as ron? -- Benoit Minisini From timothy.marshal-nichols at ...247... Mon Jun 5 22:16:19 2006 From: timothy.marshal-nichols at ...247... (Timothy Marshal-Nichols) Date: Mon, 5 Jun 2006 21:16:19 +0100 Subject: [Gambas-user] Issue/Problem with Serial Port Component In-Reply-To: <20060605160111.M60176@...951...> Message-ID: I have had a great deal of experience in industry with serial communication. I started out using my programming life using MS Visual Basic 3 to communicate with gas analysers in data logging applications. I have used serial comms with all kinds in instruments in industry with PLC's, weigh scales, and even one time a washing machine (it was a research tool). I have even used Visual Basic for DOS (Ugh-Ugh-Ugh) for a portable unit to communicate with an analyser. I have not come across a unit that did not have some kind of end text terminating string . ARE YOU SURE. To be honest I do not believe there is not something of this kind. No sane programmer would do it. Thanks 8-{)} Timothy Marshal-Nichols > -----Original Message----- > From: gambas-user-bounces at lists.sourceforge.net > [mailto:gambas-user-bounces at lists.sourceforge.net]On Behalf Of nando > Sent: Monday, 05 June 2006 17:27 > To: mailing list for gambas users > Subject: Re: [Gambas-user] Issue/Problem with Serial Port Component > > > Thank you. > > Many (other) things also communicate without CR/LF > especially if a device (like a radio, or machine, etc) > > The things I use for communication do not use CR/LF for delineation. > Humans like CR/LF though because it visually separates lines. > > For example, Chr$(2) and Chr$(3) are used by many devices for message > delineation. > > Some devices are a binary stream and continuous parsing is the only > method possible especially when messages arrive at unknown bursts and > with varying formats. CR/LF or ONE specific sequence would certainly > make things easiest, but this is not the case. > > Add to the mix that if a SUB does not exit because it is waiting for > mor input to the delineator, there is no (other) event processing. > > Perhaps Benoit is thinking of a multi-threaded Gambas which would > really be wild. Having each coded event a possible separate thread > is a very new way to program. Each SUB would have the keyword THREADED > to signify this and when the event fires..a new thread happens. > > > > > ---------- Original Message ----------- > From: "Timothy Marshal-Nichols" > To: , "mailing list for gambas users" > > Sent: Mon, 5 Jun 2006 10:19:58 +0100 > Subject: Re: [Gambas-user] Issue/Problem with Serial Port Component > > > I have just remembered you have version 1 of Gambas. The demo in the > > previous email was of a Gambas 2 project. Here is a version of > the project > > in version 1.0.16. > > > > Thanks > > > > 8-{)} Timothy Marshal-Nichols > > > > > > > -----Original Message----- > > > From: gambas-user-bounces at lists.sourceforge.net > > > [mailto:gambas-user-bounces at lists.sourceforge.net]On Behalf Of nando > > > Sent: Sunday, 04 June 2006 23:52 > > > To: mailing list for gambas users > > > Subject: Re: [Gambas-user] Issue/Problem with Serial Port Component > > > > > > > > > There is no CR/LF > > > The data is ASCII text > > > > > > > > > ---------- Original Message ----------- > > > From: ron > > > To: nando_f at ...951..., mailing list for gambas users > > > > > > Sent: Mon, 5 Jun 2006 00:44:05 +0200 > > > Subject: Re: [Gambas-user] Issue/Problem with Serial Port Component > > > > > > > On Sunday 04 June 2006 23:52, nando wrote: > > > > > I have tested this for hours... > > > > > > > > > > PUBLIC SPortReceiveString AS STRING > > > > > > > > > > SUB SPort_Read() > > > > > > > > > > DIM s AS STRING > > > > > DIM ls AS INTEGER > > > > > > > > > > ls = LOF(SPort) > > > > > 'IF ls > 1 THEN DEC ls '<---always read 1 less than what > > > LOF offers > > > > > > > > > > READ # SPort, s, ls > > > > > > > > > > PRINT s '<--help to debug > > > > > > > > > > SPortReceiveString = SPortReceiveString & s 'accumulate input > > > > > > > > > > 'There is some testing of SPortReceiveString here > > > > > > > > > > END > > > > > > > > > > Comments: > > > > > Serial Port data received is in groups of about 120 bytes > > > every 10 minutes. > > > > > Every READ event is a small bunch of characters received. > > > > > > > > > > I have found out that it consistently happens that > > > > > the during the SPort_Read event of the second last bunch of chars, > > > > > there are more data being receive by the kernel or SPort control > > > > > but an event will not happen. > > > > > > > > > > If I unREM the REMed line... > > > > > > > > > > IF ls > 1 THEN DEC ls '<---always read 1 less than > what LOF offers > > > > > > > > > > then it works perfect every time. > > > > > An event will happen for the very past burst of serial data in. > > > > > > > > > > -Fernando > > > > > > > > > > > > > What is the real content of those 120 bytes and what program > > > > send the data? > > > > > > > > I'm thinking on a CR/LF problem. > > > > *nix use normal only one of them and if both are used > > > > the are CR/LF (or LF/CR). > > > > Windows use always both but reverse to *nix. > > > > > > > > One of them is the line terminator in gambas and when I'm right > > > > not returned in the string > > > > With READ # SPort, s, ls you use a binairy transfer and this > > > > should include all bytes. > > > > > > > > >From the doc for READ > > > > If Variable is a string, you can specify a length that > indicates the > > > > number of bytes to read. If the length is negative, then > (- Length) > > > > bytes are read up to the end of stream. > > > > > > > > If no length is specified for a string, it is is read from the > > > > stream. The string then must have been written with the WRITE > > > instruction. > > > > > > > > Maybe it helps to PRINT ASC(LEFT(s)) and PRINT ASC(left(s,-1)) > > > > after each READ. > > > > > > > > Ron > > > > > > > > _______________________________________________ > > > > Gambas-user mailing list > > > > Gambas-user at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------- End of Original Message ------- > > > > > > > > > > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------- End of Original Message ------- > > > > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From ronstk at ...239... Mon Jun 5 22:45:10 2006 From: ronstk at ...239... (ron) Date: Mon, 5 Jun 2006 22:45:10 +0200 Subject: [Gambas-user] I found strange behaviour in .31 release. In-Reply-To: <200606052130.56476.gambas@...1...> References: <200606041547.28689.ronstk@...239...> <200606052130.56476.gambas@...1...> Message-ID: <200606052245.11174.ronstk@...239...> On Monday 05 June 2006 21:30, Benoit Minisini wrote: > I have no problem there. Does somebody else have the same problems as ron? > I believe that you do not have a problem *here* :) I compile/make/install again after your message. The major difference between my post and now is 500MByte more free. Was below 100Mbyte after compile. But the other box has 4Gbyte free and I had the same problems. All looks OK now *here*. Will try other box later this week. Tanks Ron From ronstk at ...239... Mon Jun 5 23:15:41 2006 From: ronstk at ...239... (ron) Date: Mon, 5 Jun 2006 23:15:41 +0200 Subject: [Gambas-user] Issue/Problem with Serial Port Component In-Reply-To: References: Message-ID: <200606052315.41384.ronstk@...239...> On Monday 05 June 2006 22:16, Timothy Marshal-Nichols wrote: > I have not come across a unit that did not have some kind of end text > terminating string . ARE YOU SURE. To be honest I do not believe there is > not something of this kind. No sane programmer would do it. > The same experience here, except a few homebrew QaD projects. There are a few basic ways of serial data transport. 1) Simple ASCII with line termination. 2) Simple Binairy with fixed length. 3) Or packed by some protocol. The first byte(s) as length (LRL recording) as gambas does with WRITE or like X-MODEM with a protocol (NAK/ACK/RDY) between the both serial ports and using software handshake for the data bursts. Even in the ASCII table there are a few bytes for x-onn/x-off. The last one is used by me for a AX25 TNC with tcp/ip on a Z80 cpu :) And all above can use the hardware handshake as extra feature. If nando's gambas application is not quick enough to catch byte for byte then he should use a protocol form as the above 3 and/or use the hardware handshake to stream the bytes in time. I'm afraid nando can't have a influence on the way the remote appliccation sends the data, then he must use the best result he can get with single byte reading and a timer for time out situation. I had even to use the timeout to, despite there was a protocol used. (missing packets and the handshake is lost) Ron From gambas at ...1... Mon Jun 5 23:25:33 2006 From: gambas at ...1... (Benoit Minisini) Date: Mon, 5 Jun 2006 23:25:33 +0200 Subject: [Gambas-user] Doc missing 'Message' In-Reply-To: <20060604211920.M97197@...1382...> References: <20060604211920.M97197@...1382...> Message-ID: <200606052325.33615.gambas@...1...> On Sunday 04 June 2006 23:22, nando wrote: > Message.Delete .Error ... > > Keyword 'Message' ? > Overview 'System Messages' ? > > If it is there, I couldn't find it > > -Fernando > > What are you looking for exactly? -- Benoit Minisini From gambas at ...1... Mon Jun 5 23:32:41 2006 From: gambas at ...1... (Benoit Minisini) Date: Mon, 5 Jun 2006 23:32:41 +0200 Subject: [Gambas-user] Issue/Problem with Serial Port Component In-Reply-To: <20060604213753.M22255@...1382...> References: <20060604213753.M22255@...1382...> Message-ID: <200606052332.41892.gambas@...1...> On Sunday 04 June 2006 23:52, nando wrote: > I have tested this for hours... > > PUBLIC SPortReceiveString AS STRING > > SUB SPort_Read() > > DIM s AS STRING > DIM ls AS INTEGER > > ls = LOF(SPort) > 'IF ls > 1 THEN DEC ls '<---always read 1 less than what LOF offers > > READ # SPort, s, ls > > PRINT s '<--help to debug > > SPortReceiveString = SPortReceiveString & s 'accumulate input > > 'There is some testing of SPortReceiveString here > > END > > Comments: > Serial Port data received is in groups of about 120 bytes every 10 minutes. > Every READ event is a small bunch of characters received. > > I have found out that it consistently happens that > the during the SPort_Read event of the second last bunch of chars, > there are more data being receive by the kernel or SPort control > but an event will not happen. > > If I unREM the REMed line... > > IF ls > 1 THEN DEC ls '<---always read 1 less than what LOF offers > > then it works perfect every time. > An event will happen for the very past burst of serial data in. > > -Fernando > Do you use the SerialPort control or a device opened with OPEN ... FOR READ ? The first one use code written by Daniel Campos to read the data from the serial port, and the second code written by me. I don't know why, but there aren't the same... Regards, -- Benoit Minisini From ronstk at ...239... Tue Jun 6 00:21:08 2006 From: ronstk at ...239... (Ron) Date: Tue, 6 Jun 2006 00:21:08 +0200 Subject: [Gambas-user] I found strange behaviour in .31 release. In-Reply-To: <200606052245.11174.ronstk@...239...> References: <200606041547.28689.ronstk@...239...> <200606052130.56476.gambas@...1...> <200606052245.11174.ronstk@...239...> Message-ID: <200606060021.08691.ronstk@...239...> On Monday 05 June 2006 22:45, ron wrote: > On Monday 05 June 2006 21:30, Benoit Minisini wrote: > > I have no problem there. Does somebody else have the same problems as ron? > > > I believe that you do not have a problem *here* :) > > I compile/make/install again after your message. > > The major difference between my post and now is 500MByte more free. > Was below 100Mbyte after compile. But the other box has 4Gbyte free > and I had the same problems. > All looks OK now *here*. Will try other box later this week. > Correction. The click bouncing effects are gone. In the past I was able to select a part of text with the LMButton down. Release the mouse to end the selection. Press again the left mouse button and drag the marked block to new position with the LMB pressed. That functional behaviour is gone. :( Ron From ronstk at ...239... Tue Jun 6 08:53:23 2006 From: ronstk at ...239... (Ron Onstenk) Date: Tue, 6 Jun 2006 08:53:23 +0200 Subject: [Gambas-user] How do I delete a control on scrollview the correct way? Message-ID: <200606060853.24035.ronstk@...239...> on the forma Scrollview1 as SVFrames public function wsadd() fra = NEW Frame(SVFrames) AS "WSfra" lbl = NEW Label(fra) btn = NEW button(fra) tgb = NEW ToggleButton(fra) lv = NEW ListView(fra) AS "WStbl" end public wsdel(fra as frame) PRINT "fra.id="; fra.Id PRINT "children.count="; fra.Children.Count ' =4 FOR EACH ct IN fra.Children 'remove controls from frame ct.Delete '<--- does not work NEXT fra.Delete '<--- does not work PRINT "children.count="; fra.Children.Count 'is still 4 fra.Enabled = FALSE showfra end for both prints I get 4 children. More stupid is the second print. If the frame.delete is done it can't have children anymore. In the scrollview the count of frames add with wsadd stay the same after delete. It only grows with wsadd but never lower with wsdel. in showfra is the next WsTableGetFra used after wsdel has run the frame is not visible anymore but it is also not realy go to nothing PUBLIC FUNCTION WsTableGetFra() AS Object[] DIM ctl AS Control DIM fra AS Frame DIM objs AS NEW Object[] FOR EACH ctl IN SVFrames.Children IF object.Type(ctl) = "Frame" THEN fra = ctl PRINT "fra "; fra.tag <----- not changed after delete IF object.IsValid(fra) THEN '<--- stay valid after fra.delete PRINT "isValid "; fra.tag 'always IF NOT IsNull(fra) THEN '<--- should be null but isn't PRINT "NOT IsNull "; fra.tag '<------never PRINT "children.count="; fra.Children.Count '<--- stay at 4 IF fra.Enabled THEN objs.Add(fra) ENDIF ENDIF ENDIF NEXT end I have only a workaround with the frame.enabled but this should be imposible. Someone a tip what is wrong? Ron From nando_f at ...951... Tue Jun 6 17:35:23 2006 From: nando_f at ...951... (nando) Date: Tue, 6 Jun 2006 11:35:23 -0400 Subject: [Gambas-user] Issue/Problem with Serial Port Component In-Reply-To: <200606052332.41892.gambas@...1...> References: <20060604213753.M22255@...1382...> <200606052332.41892.gambas@...1...> Message-ID: <20060606153142.M81940@...951...> I use the Serial Port Control. I never considered OPENing the device. I do have the code working with the LOF() minus one to force another event after. It works 100% this way :) -Fernando ---------- Original Message ----------- From: Benoit Minisini To: nando_f at ...951..., mailing list for gambas users Sent: Mon, 5 Jun 2006 23:32:41 +0200 Subject: Re: [Gambas-user] Issue/Problem with Serial Port Component > On Sunday 04 June 2006 23:52, nando wrote: > > I have tested this for hours... > > > > PUBLIC SPortReceiveString AS STRING > > > > SUB SPort_Read() > > > > DIM s AS STRING > > DIM ls AS INTEGER > > > > ls = LOF(SPort) > > 'IF ls > 1 THEN DEC ls '<---always read 1 less than what LOF offers > > > > READ # SPort, s, ls > > > > PRINT s '<--help to debug > > > > SPortReceiveString = SPortReceiveString & s 'accumulate input > > > > 'There is some testing of SPortReceiveString here > > > > END > > > > Comments: > > Serial Port data received is in groups of about 120 bytes every 10 minutes. > > Every READ event is a small bunch of characters received. > > > > I have found out that it consistently happens that > > the during the SPort_Read event of the second last bunch of chars, > > there are more data being receive by the kernel or SPort control > > but an event will not happen. > > > > If I unREM the REMed line... > > > > IF ls > 1 THEN DEC ls '<---always read 1 less than what LOF offers > > > > then it works perfect every time. > > An event will happen for the very past burst of serial data in. > > > > -Fernando > > > > Do you use the SerialPort control or a device opened with OPEN ... FOR > READ ? > > The first one use code written by Daniel Campos to read the data from > the serial port, and the second code written by me. I don't know why, > but there aren't the same... > > Regards, > > -- > Benoit Minisini > > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From nando_f at ...951... Tue Jun 6 17:41:12 2006 From: nando_f at ...951... (nando) Date: Tue, 6 Jun 2006 11:41:12 -0400 Subject: [Gambas-user] Doc missing 'Message' In-Reply-To: <200606052325.33615.gambas@...1...> References: <20060604211920.M97197@...1382...> <200606052325.33615.gambas@...1...> Message-ID: <20060606153615.M24051@...951...> Message.Info Message.Delete Message.Error (there are a few more) I cannot find them in the docs ---------- Original Message ----------- From: Benoit Minisini To: nando_f at ...951..., mailing list for gambas users Sent: Mon, 5 Jun 2006 23:25:33 +0200 Subject: Re: [Gambas-user] Doc missing 'Message' > On Sunday 04 June 2006 23:22, nando wrote: > > Message.Delete .Error ... > > > > Keyword 'Message' ? > > Overview 'System Messages' ? > > > > If it is there, I couldn't find it > > > > -Fernando > > > > > > What are you looking for exactly? > > -- > Benoit Minisini > > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From gambas at ...1... Tue Jun 6 19:07:04 2006 From: gambas at ...1... (Benoit Minisini) Date: Tue, 6 Jun 2006 19:07:04 +0200 Subject: [Gambas-user] How do I delete a control on scrollview the correct way? In-Reply-To: <200606060853.24035.ronstk@...239...> References: <200606060853.24035.ronstk@...239...> Message-ID: <200606061907.04544.gambas@...1...> On Tuesday 06 June 2006 08:53, Ron Onstenk wrote: > on the forma Scrollview1 as SVFrames > > public function wsadd() > fra = NEW Frame(SVFrames) AS "WSfra" > lbl = NEW Label(fra) > btn = NEW button(fra) > tgb = NEW ToggleButton(fra) > lv = NEW ListView(fra) AS "WStbl" > end > > > public wsdel(fra as frame) > PRINT "fra.id="; fra.Id > PRINT "children.count="; fra.Children.Count ' =4 > FOR EACH ct IN fra.Children 'remove controls from frame > ct.Delete '<--- does not work > NEXT > fra.Delete '<--- does not work > PRINT "children.count="; fra.Children.Count 'is still 4 > > fra.Enabled = FALSE > showfra > end > > > for both prints I get 4 children. More stupid is the second print. > If the frame.delete is done it can't have children anymore. > > In the scrollview the count of frames add with wsadd > stay the same after delete. > It only grows with wsadd but never lower with wsdel. > > in showfra is the next WsTableGetFra used > after wsdel has run the frame is not visible anymore > but it is also not realy go to nothing > > > PUBLIC FUNCTION WsTableGetFra() AS Object[] > DIM ctl AS Control > DIM fra AS Frame > DIM objs AS NEW Object[] > > FOR EACH ctl IN SVFrames.Children > IF object.Type(ctl) = "Frame" THEN > fra = ctl > PRINT "fra "; fra.tag <----- not changed after delete > > IF object.IsValid(fra) THEN '<--- stay valid after fra.delete > PRINT "isValid "; fra.tag 'always > > IF NOT IsNull(fra) THEN '<--- should be null but isn't > PRINT "NOT IsNull "; fra.tag '<------never > PRINT "children.count="; fra.Children.Count '<--- stay at 4 > IF fra.Enabled THEN objs.Add(fra) > ENDIF > ENDIF > ENDIF > NEXT > > end > > I have only a workaround with the frame.enabled but this > should be imposible. > > Someone a tip what is wrong? > > Ron > > Object deletion are deferred: they are executed later, at the return of the event loop. I did that because Qt, and other toolkits, do not like deleting a control anywhere (especially inside an event handler). If you want to see the deletion immediately, you can add WAIT just after the call to the Delete method. Regards, -- Benoit Minisini From gambas at ...1... Tue Jun 6 19:18:28 2006 From: gambas at ...1... (Benoit Minisini) Date: Tue, 6 Jun 2006 19:18:28 +0200 Subject: [Gambas-user] Doc missing 'Message' In-Reply-To: <20060606153615.M24051@...951...> References: <20060604211920.M97197@...1382...> <200606052325.33615.gambas@...1...> <20060606153615.M24051@...951...> Message-ID: <200606061918.28621.gambas@...1...> On Tuesday 06 June 2006 17:41, nando wrote: > Message.Info > Message.Delete > Message.Error > (there are a few more) > > I cannot find them in the docs > I see them in the stable version, and in the development version at http://gambasdoc.org/help/comp/gb.qt/message Regards, -- Benoit Minisini From nando_f at ...951... Wed Jun 7 00:51:24 2006 From: nando_f at ...951... (nando) Date: Tue, 6 Jun 2006 18:51:24 -0400 Subject: [Gambas-user] Doc missing 'Message' In-Reply-To: <200606061918.28621.gambas@...1...> References: <20060604211920.M97197@...1382...> <200606052325.33615.gambas@...1...> <20060606153615.M24051@...951...> <200606061918.28621.gambas@...1...> Message-ID: <20060606224629.M27707@...951...> Aha! They are under QT. May it be an idea to list it with the keywords ? ('MESSAGE') I did not know it was specifically a QT thing, although it is graphical. Perhaps a new section called OBJECTS would list objects that are 'built-in' to Gambas. -Fernando ---------- Original Message ----------- From: Benoit Minisini To: nando_f at ...951..., mailing list for gambas users Sent: Tue, 6 Jun 2006 19:18:28 +0200 Subject: Re: [Gambas-user] Doc missing 'Message' > On Tuesday 06 June 2006 17:41, nando wrote: > > Message.Info > > Message.Delete > > Message.Error > > (there are a few more) > > > > I cannot find them in the docs > > > > I see them in the stable version, and in the development version at > http://gambasdoc.org/help/comp/gb.qt/message > > Regards, > > -- > Benoit Minisini > > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From lordheavy at ...512... Wed Jun 7 01:00:32 2006 From: lordheavy at ...512... (Laurent Carlier) Date: Wed, 7 Jun 2006 01:00:32 +0200 Subject: [Gambas-user] Doc missing 'Message' In-Reply-To: <20060606224629.M27707@...951...> References: <20060604211920.M97197@...1382...> <200606061918.28621.gambas@...1...> <20060606224629.M27707@...951...> Message-ID: <200606070100.32694.lordheavy@...512...> Le Mercredi 7 Juin 2006 00:51, nando a ?crit?: > Aha! They are under QT. > May it be an idea to list it with the keywords ? ('MESSAGE') > I did not know it was specifically a QT thing, although it is graphical. > Perhaps a new section called OBJECTS would list objects that are 'built-in' > to Gambas. > -Fernando > no, because it is part qt (or gtk+) component(s), not in the core. Regards, -- jabber : lordheavy at ...943... mail : lordheavymREMOVEME at ...626... From nando_f at ...951... Wed Jun 7 01:14:24 2006 From: nando_f at ...951... (nando) Date: Tue, 6 Jun 2006 19:14:24 -0400 Subject: [Gambas-user] Doc missing 'Message' In-Reply-To: <200606070100.32694.lordheavy@...512...> References: <20060604211920.M97197@...1382...> <200606061918.28621.gambas@...1...> <20060606224629.M27707@...951...> <200606070100.32694.lordheavy@...512...> Message-ID: <20060606231336.M87062@...951...> Yes, you're right. ---------- Original Message ----------- From: Laurent Carlier To: nando_f at ...951..., mailing list for gambas users Sent: Wed, 7 Jun 2006 01:00:32 +0200 Subject: Re: [Gambas-user] Doc missing 'Message' > Le Mercredi 7 Juin 2006 00:51, nando a ?crit : > > Aha! They are under QT. > > May it be an idea to list it with the keywords ? ('MESSAGE') > > I did not know it was specifically a QT thing, although it is graphical. > > Perhaps a new section called OBJECTS would list objects that are 'built-in' > > to Gambas. > > -Fernando > > > > no, because it is part qt (or gtk+) component(s), not in the core. > > Regards, > > -- > jabber : lordheavy at ...943... > mail : lordheavymREMOVEME at ...626... > > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From ronstk at ...239... Wed Jun 7 08:57:59 2006 From: ronstk at ...239... (Ron Onstenk) Date: Wed, 7 Jun 2006 08:57:59 +0200 Subject: [Gambas-user] How do I delete a control on scrollview the correct way? In-Reply-To: <200606061907.04544.gambas@...1...> References: <200606060853.24035.ronstk@...239...> <200606061907.04544.gambas@...1...> Message-ID: <200606070857.59643.ronstk@...239...> On Tuesday 06 June 2006 19:07, Benoit Minisini wrote: > On Tuesday 06 June 2006 08:53, Ron Onstenk wrote: > > on the forma Scrollview1 as SVFrames > > --8<-- > > > > I have only a workaround with the frame.enabled but this > > should be imposible. > > > > Someone a tip what is wrong? > > > > Ron > > > > > > Object deletion are deferred: they are executed later, at the return of the > event loop. I did that because Qt, and other toolkits, do not like deleting a > control anywhere (especially inside an event handler). > > If you want to see the deletion immediately, you can add WAIT just after the > call to the Delete method. > > Regards, > LOL I did try it with WAIT a short time after sending the request. The whole stuff was called from a button event I had the popup menu in mind with a simular problem and add the wait. It worked. My idea was because it was gone on the screen it should have been gone. But I thought it should with object.isValid() be not a valid object.? Thank you Ron From vb6programer at ...1456... Wed Jun 7 10:06:38 2006 From: vb6programer at ...1456... (ilias iliadis) Date: Wed, 07 Jun 2006 10:06:38 +0200 Subject: [Gambas-user] knoppix-knoppel Message-ID: <20060607080648.3703EE5BC7@...1457...> Sorry for the inconvenience but I do not have internet access so I do not read or write so many mails. Any way I would like to be informed if it is difficult to make a program in gambas (it will not use the disk which it might be an XP with NTFS) run from a knoppix -knoppel(greek knoppix) without much effort? Thanks anyway ilias iliadis -- _______________________________________________ Search for businesses by name, location, or phone number. -Lycos Yellow Pages http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp?SRC=lycos10 From nigel at ...38... Wed Jun 7 14:15:50 2006 From: nigel at ...38... (nigel at ...38...) Date: Wed, 7 Jun 2006 14:15:50 +0200 (CEST) Subject: [Gambas-user] PRB:Connection.Exec() Message-ID: <26881686.1149682550488.JavaMail.www@...1133...> Ron, I believe that the documentation is incorrect and that the request should just be a standard SQL statement, the only different thing is that you can parameterize some of the fields and then pass them as arguments. So your first attempt is the correct syntax. Have you tried where enabled = `true`. Setting DB.Debug = True before the exec statement may give you information on what is being passed to the database. Regards Nigel > Message Received: Jun 03 2006, 07:36 AM > From: "ron" > To: gambas-user at lists.sourceforge.net > Cc: > Subject: [Gambas-user] PRB:Connection.Exec() > > In the code I use: > > sql = "SELECT DISTINCT `kind` FROM `devices` WHERE `enabled`=true ORDER BY `kind` ASC" > hResult = Global.Conn2.Exec(sql) > > > I got a error "Query failed: Unknown column 'true' in 'where clause'" > > With or without the backticks did not solve the problem. > Single quote arround true ( `enabled`=true) gives no error and no records. > Double quote (`enabled`="true") > Got error 'Unexpected TRUE at line 101 in Form2.class', stupid me > must be `enabled`=\"true\" :( > No error and no records as expected. > > The strange thing is MySQL get/find true as column name ? > > I have used the database-manager to create a table > In the table is a field 'enabled' set as boolean. > As far I know boolean is 'true' or 'false', they are the > only options I got in the database manager. > > Using phpmyadmin I see it is stored as tinyint(1) and value of 0 or 1. > > Now I remember why I stopped using 'Enabled = True', > and changed over to 'Disbaled = False' or 'Enable = NOT False'. > > Some use +1 as true and +0 as false and other > use -1 (all bits set) as and 0(zero) (all bits reset) as false. > > Resulting in False = 0(zero) and True is not 0 (zero) and so the > only thing common to all systems for True/False is the value for False=0 > > WHERE `enabled` = True > WHERE `enabled` = NOT False > WHERE `enabled` = NOT(FALSE) > All are valid SQL but fails in gambas with unknown column 'True' or 'False' > The Connection.Exec("select * from table where cond") is not passing the query to MySQL. > > So I did go reading the docs again and for Connection.Exec() it say's: > > FUNCTION Exec ( Request AS String, Arguments AS , ... ) AS Result > where > Request is a SQL WHERE clause used for filtering the table. > Arguments are quoted as needed by the SQL syntax, and substituted inside the Request string > > > public sub mysub() > DIM hResult AS Result > DIM sql AS String > DIM Conn2 as Connection > dim hResult2 as Result > > Conn2 = NEW Connection > SetConnection(Conn2) > > ' this works only if I use `enabled`=1 > 'sql = "SELECT DISTINCT `kind` FROM `devices` WHERE `enabled`=1 ORDER BY `kind` ASC" > 'hResult = Global.Conn2.Exec(sql) > > ' but after reading the doc again I changed it to > > hResult = Conn2.Create("devices") > hResult.Connection.Exec("enabled", "1") '<-- MySQL error 'near enable = 1' > > mysql: 0x818bea8: show columns from `devices` like 'id' > mysql: 0x818bea8: show columns from `devices` like 'enabled' > mysql: 0x818bea8: show columns from `devices` like 'author' > mysql: 0x818bea8: show columns from `devices` like 'date' > mysql: 0x818bea8: show columns from `devices` like 'kind' > mysql: 0x818bea8: show columns from `devices` like 'device' > mysql: 0x818bea8: show columns from `devices` like 'description' > mysql: 0x818bea8: enabled = 1 > > And this should be as doc say ??? quoted or not for [Arguments AS,...] > Beside of that, I need only 1 field but the result set has all fields > (and retrive all the data?) when I move from record to record. > > Can you confirm the doc is wrong at > http://gambasdoc.org/help/comp/gb.db/connection/exec > > > Ron > > > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From Rodrigo.Azevedo at ...1458... Wed Jun 7 15:57:26 2006 From: Rodrigo.Azevedo at ...1458... (Rodrigo Azevedo) Date: Wed, 7 Jun 2006 09:57:26 -0400 Subject: [Gambas-user] Comunications Message-ID: <09B799B30337E84CBFC63F218374416FD6FCD9@...1459...> Hi everybody!!! I'm a new one to this list. I'm very interested to learn about GAMBAS. But I need understand one thing: Has Gambas support to serial (RS232) and socket (TCP/IP) communications or not? Coz my intention is update some softwares (in VB 6.0) to run over a Linux platform and Gambas look to be what I need. Thanks in advance... Rodrigo Bezerra -------------- next part -------------- An HTML attachment was scrubbed... URL: From ronstk at ...239... Wed Jun 7 17:13:03 2006 From: ronstk at ...239... (Ron Onstenk) Date: Wed, 7 Jun 2006 17:13:03 +0200 Subject: [Gambas-user] PRB:Connection.Exec() In-Reply-To: <26881686.1149682550488.JavaMail.www@...1133...> References: <26881686.1149682550488.JavaMail.www@...1133...> Message-ID: <200606071713.03394.ronstk@...239...> On Wednesday 07 June 2006 14:15, nigel at ...38... wrote: > > Ron, > I believe that the documentation is incorrect and that the request should just be a standard SQL statement, the only different thing is that you can parameterize some of the fields and then pass them as arguments. So your first attempt is the correct syntax. Have you tried where enabled = `true`. > > Setting DB.Debug = True before the exec statement may give you information on what is being passed to the database. > > Regards > > Nigel > Thanks Nigel, As I used it already in other project I did know my first should be the correct one. Because I did get the error I did look in the doc and found the difference. I do believe the major problem is when people declare a field as boolean they assume with good faith it is also in the (MySQL) table as boolean. The "enabled = `true`" I have try it but also an error occurs. Simple by that the field in the (MySQL) table is not boolean but tiny integer. DB.Debug = True shows me the sql line and that was valid syntax but the server could not match a boolean true/false on tiny integer found with phpMyAdmin. The difference shall have to do with the other database engines as SQLite, etc Using 1/0 for true/false works but knowing that I should not have declare the fields in the past (5 years back, no gambas at that time exists) with boolean. :) One thing I want to know. Is the Connection.Exec 100% transparent to the MySQL server, without intervention in the SQL line by gambas. Greets from, Ron From ronstk at ...239... Wed Jun 7 17:48:21 2006 From: ronstk at ...239... (Ron Onstenk) Date: Wed, 7 Jun 2006 17:48:21 +0200 Subject: [Gambas-user] knoppix-knoppel In-Reply-To: <20060607080648.3703EE5BC7@...1457...> References: <20060607080648.3703EE5BC7@...1457...> Message-ID: <200606071748.21814.ronstk@...239...> On Wednesday 07 June 2006 10:06, ilias iliadis wrote: > Sorry for the inconvenience > but I do not have internet access so I do not read or write so many mails. > Any way I would like to be informed if it is difficult to make a program in gambas > (it will not use the disk which it might be an XP with NTFS) run from a knoppix -knoppel(greek knoppix) without much effort? > Thanks anyway > ilias iliadis > Maybe a reformat of the question. > Any way I would like to be informed if it is difficult to make a program in gambas > without much effort? > > (it will not use the disk which it might be an XP with NTFS) run from a knoppix -knoppel(greek knoppix) The answer for the first part is what experience you have with programming technics, the same for the Basic language and for most things logical thinking is not unknown. So without much effort can't be really say'd. You need at least learn the proper syntax to use and for the graphical components the behaviour of the events fired by them. To say 'it is difficult' is not true but it is also not always easy. Depends on what you want to do. MS VB experience can help but as I found myself it can be many times also lead you to wrong things in program structure and assumptions. :( The working environment is total different, only the basics of Basic are more or less common. For the second part. During development there will be a directory used in the /tmp directory and some data in the users home directory. If you mean a Live CD of knoppix then that would be not a real problem. But be carefull anyway. But the bad thing is you need the runtime libraries and they must be created/compiled on the system, or 100% equivalent, that wants to run gambas. The source tarbal is between 7 and 9 MByte but decompressed you must count for at least 38Mbyte. After compiling there is around 100MBytes used. After the install phase think about 25MBytes/30MB This is for the Gambas2 version 1.9.31, Gambas(1) may a few MByte less. So before all is ready you need 8+38+100+25 is +/- 160Mbyte on disk/ramdisk. After install you can clean up and it will cost you around 28MBytes If you have 128Mbyte Ram I can save say "Do not even try it" If you have 512Mbyte Ram You got my well wishes to do. So for the second part, if the knoppix-knoppel does not have gambas for running included, do your own choice. If not then you must use a part of the alien OS NTFS disk for the compile and storage of gambas or do you want every time to download/compile/install again on each boot? Greets from Holland Ron From ronstk at ...239... Wed Jun 7 17:57:04 2006 From: ronstk at ...239... (Ron Onstenk) Date: Wed, 7 Jun 2006 17:57:04 +0200 Subject: [Gambas-user] Comunications In-Reply-To: <09B799B30337E84CBFC63F218374416FD6FCD9@...1459...> References: <09B799B30337E84CBFC63F218374416FD6FCD9@...1459...> Message-ID: <200606071757.04237.ronstk@...239...> On Wednesday 07 June 2006 15:57, Rodrigo Azevedo wrote: > Hi everybody!!! > > > > I'm a new one to this list. I'm very interested to learn about GAMBAS. > But I need understand one thing: Has Gambas support to serial (RS232) > and socket (TCP/IP) communications or not? Coz my intention is update > some softwares (in VB 6.0) to run over a Linux platform and Gambas look > to be what I need. > > > > Thanks in advance... > > > > > > Rodrigo Bezerra > > Yes gambas has serial support and TCP/IP via socket. Direct using an included but separate component interface and serial at least via the standard I/O routing supported internal by gambas. Ron From Rodrigo.Azevedo at ...1458... Wed Jun 7 19:32:17 2006 From: Rodrigo.Azevedo at ...1458... (Rodrigo Azevedo) Date: Wed, 7 Jun 2006 13:32:17 -0400 Subject: [Gambas-user] RES: Comunications Message-ID: <09B799B30337E84CBFC63F218374416FD940F7@...1459...> Ron, Thanks for your help. Do you know where could I find some information, like little examples programs or "how to" about Serial and Socket? Thanks again for your time!!! Rodrigo Bezerra ======= ======= -----Mensagem original----- De: gambas-user-bounces at lists.sourceforge.net [mailto:gambas-user-bounces at lists.sourceforge.net] Em nome de Ron Onstenk Enviada em: Wednesday, June 07, 2006 11:57 AM Para: mailing list for gambas users Assunto: Re: [Gambas-user] Comunications On Wednesday 07 June 2006 15:57, Rodrigo Azevedo wrote: > Hi everybody!!! > > > > I'm a new one to this list. I'm very interested to learn about GAMBAS. > But I need understand one thing: Has Gambas support to serial (RS232) > and socket (TCP/IP) communications or not? Coz my intention is update > some softwares (in VB 6.0) to run over a Linux platform and Gambas look > to be what I need. > > > > Thanks in advance... > > > > > > Rodrigo Bezerra > > Yes gambas has serial support and TCP/IP via socket. Direct using an included but separate component interface and serial at least via the standard I/O routing supported internal by gambas. Ron _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From ronstk at ...239... Wed Jun 7 20:13:50 2006 From: ronstk at ...239... (Ron Onstenk) Date: Wed, 7 Jun 2006 20:13:50 +0200 Subject: [Gambas-user] RES: Comunications In-Reply-To: <09B799B30337E84CBFC63F218374416FD940F7@...1459...> References: <09B799B30337E84CBFC63F218374416FD940F7@...1459...> Message-ID: <200606072013.50996.ronstk@...239...> On Wednesday 07 June 2006 19:32, Rodrigo Azevedo wrote: > Ron, > > Thanks for your help. Do you know where could I find some information, > like little examples programs or "how to" about Serial and Socket? > > Thanks again for your time!!! > > Rodrigo Bezerra > ======= ======= > The only I know ATM is in the examples included in the source. The examples handles serial port and a tcp/ip application. But a really how to does not exist. Some users post on forums samples. examples/Networking/WebBrowser examples/Networking/UDPServerClient examples/Networking/ServerSocket examples/Networking/SerialPort examples/Networking/HTTPPost examples/Networking/HTTPGet examples/Networking/DnsClient examples/Networking/ClientSocket Ron From nando_f at ...1382... Thu Jun 8 04:05:04 2006 From: nando_f at ...1382... (nando) Date: Wed, 7 Jun 2006 22:05:04 -0400 Subject: [Gambas-user] RES: Comunications In-Reply-To: <200606072013.50996.ronstk@...239...> References: <09B799B30337E84CBFC63F218374416FD940F7@...1459...> <200606072013.50996.ronstk@...239...> Message-ID: <20060608020255.M27462@...1382...> I have used the example Serial Port and extended/expanded it with tremedous success. It's working non-stop for 1 year now in one app I have. -Fernando ---------- Original Message ----------- From: Ron Onstenk To: mailing list for gambas users Sent: Wed, 7 Jun 2006 20:13:50 +0200 Subject: Re: [Gambas-user] RES: Comunications > On Wednesday 07 June 2006 19:32, Rodrigo Azevedo wrote: > > Ron, > > > > Thanks for your help. Do you know where could I find some information, > > like little examples programs or "how to" about Serial and Socket? > > > > Thanks again for your time!!! > > > > Rodrigo Bezerra > > ======= ======= > > > > The only I know ATM is in the examples included in the source. > The examples handles serial port and a tcp/ip application. > > But a really how to does not exist. Some users post on forums samples. > > examples/Networking/WebBrowser > examples/Networking/UDPServerClient > examples/Networking/ServerSocket > examples/Networking/SerialPort > examples/Networking/HTTPPost > examples/Networking/HTTPGet > examples/Networking/DnsClient > examples/Networking/ClientSocket > > Ron > > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From dcamposf at ...626... Tue Jun 6 14:28:32 2006 From: dcamposf at ...626... (Daniel Campos) Date: Tue, 6 Jun 2006 12:28:32 +0000 Subject: [Gambas-user] How do I delete a control on scrollview the correct way? In-Reply-To: <200606060853.24035.ronstk@...239...> References: <200606060853.24035.ronstk@...239...> Message-ID: <7259b5ae0606060528j346a7c9ei8282c8157352f44d@...627...> I'm not sure, but may be the control is not really deleted until the even loop happens, so you should add a WAIT instruction after the deletion. May be it helps... By the way, as "Delete" is a method, may be the "Delete()" syntax is more ellegant, even if Gambas allows to use the first one. Daniel 2006/6/6, Ron Onstenk : > > > on the forma Scrollview1 as SVFrames > > public function wsadd() > fra = NEW Frame(SVFrames) AS "WSfra" > lbl = NEW Label(fra) > btn = NEW button(fra) > tgb = NEW ToggleButton(fra) > lv = NEW ListView(fra) AS "WStbl" > end > > > public wsdel(fra as frame) > PRINT "fra.id="; fra.Id > PRINT "children.count="; fra.Children.Count ' =4 > FOR EACH ct IN fra.Children 'remove controls from frame > ct.Delete '<--- does not work > NEXT > fra.Delete '<--- does not work > PRINT "children.count="; fra.Children.Count 'is still 4 > > fra.Enabled = FALSE > showfra > end > > > for both prints I get 4 children. More stupid is the second print. > If the frame.delete is done it can't have children anymore. > > In the scrollview the count of frames add with wsadd > stay the same after delete. > It only grows with wsadd but never lower with wsdel. > > in showfra is the next WsTableGetFra used > after wsdel has run the frame is not visible anymore > but it is also not realy go to nothing > > > PUBLIC FUNCTION WsTableGetFra() AS Object[] > DIM ctl AS Control > DIM fra AS Frame > DIM objs AS NEW Object[] > > FOR EACH ctl IN SVFrames.Children > IF object.Type(ctl) = "Frame" THEN > fra = ctl > PRINT "fra "; fra.tag <----- not changed after delete > > IF object.IsValid(fra) THEN '<--- stay valid after fra.delete > PRINT "isValid "; fra.tag 'always > > IF NOT IsNull(fra) THEN '<--- should be null but isn't > PRINT "NOT IsNull "; fra.tag '<------never > PRINT "children.count="; fra.Children.Count '<--- stay at 4 > IF fra.Enabled THEN objs.Add(fra) > ENDIF > ENDIF > ENDIF > NEXT > > end > > I have only a workaround with the frame.enabled but this > should be imposible. > > Someone a tip what is wrong? > > Ron > > > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ronstk at ...239... Thu Jun 8 08:52:37 2006 From: ronstk at ...239... (Ron Onstenk) Date: Thu, 8 Jun 2006 08:52:37 +0200 Subject: [Gambas-user] How do I delete a control on scrollview the correct way? In-Reply-To: <7259b5ae0606060528j346a7c9ei8282c8157352f44d@...627...> References: <200606060853.24035.ronstk@...239...> <7259b5ae0606060528j346a7c9ei8282c8157352f44d@...627...> Message-ID: <200606080852.37874.ronstk@...239...> On Tuesday 06 June 2006 14:28, Daniel Campos wrote: > I'm not sure, but may be the control is not really deleted until the even > loop happens, so you should add a WAIT instruction after the deletion. May > be it helps... > > By the way, as "Delete" is a method, may be the "Delete()" syntax is more > ellegant, even if Gambas allows to use the first one. > > Daniel > Yes, the use of WAIT was the solution. Had similar problem with popup menu event. I use now a simple rule If the code during an event has a graphical change as end result then do not trust that it is already available/done after the code part that has done the change. If problems arise use a WAIT after the statement that does the change (try to keep the time as less as possible). I'm happy to announce this rule is most of the time false :) Adding control object works instant (as the experience is now) but deleting needs the WAIT and popup menu also. About '.Delete' or '.Delete()' , thats the question. I see example code with and without '()' Sometimes it looks to me they are optional, other times they are required or forbidden. The doc shows them almost always for methods, event if forbidden. Sorry, no direct example available out of my mind. Happy gambasian Ron From jankenbrandt at ...43... Thu Jun 8 17:31:46 2006 From: jankenbrandt at ...43... (James Ankenbrandt) Date: Thu, 8 Jun 2006 08:31:46 -0700 (PDT) Subject: [Gambas-user] Installing MySQL drivers Message-ID: <20060608153146.58806.qmail@...1460...> Really interesting software and the Linux Journal intro was very exciting, but... How/where do I get the latesest libmysqlclient libs for 1.0.16?. The Linux Journal project pukes on 'cannot load gb.db module'. I found an older version for my SuSE install but the RPM (.99) wrecked my compiled installation. (Latest stable ver from sourceforge). I am recompiling and reinstalling so the main program is ok, but there is still the MySQL. Is there a link or sum thin to get MySQL support? Have some VB project that would be great for this. Jim From ronstk at ...239... Thu Jun 8 20:38:45 2006 From: ronstk at ...239... (Ron Onstenk) Date: Thu, 8 Jun 2006 20:38:45 +0200 Subject: [Gambas-user] Installing MySQL drivers In-Reply-To: <20060608153146.58806.qmail@...1460...> References: <20060608153146.58806.qmail@...1460...> Message-ID: <200606082038.46188.ronstk@...239...> On Thursday 08 June 2006 17:31, James Ankenbrandt wrote: > Really interesting software and the Linux Journal intro was very exciting, but... > > How/where do I get the latesest libmysqlclient libs for 1.0.16?. The Linux Journal project pukes on 'cannot load gb.db module'. I found an older version for my SuSE install but the RPM (.99) wrecked my compiled installation. (Latest stable ver from sourceforge). I am recompiling and reinstalling so the main program is ok, but there is still the MySQL. > > > Is there a link or sum thin to get MySQL support? > > Have some VB project that would be great for this. > > Jim > > > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > Wich SuSE do you have? Normal it should be OK to install the MySQL server and client packages. For compiling the MySql client part of gambas it should be sufficient to install the mysql-x.x.xx-devel package. For SuSE 9.2 the packages I have installed with yast mysql-4.0.21-4.6 mysql - A true Multi-User, Multi-Threaded SQL Database Server mysql-client - MySQL Client mysql-devel - MySQL Development Header Files and Libraries mysql-shared - MySQL Shared Libraries and the last one provides mysqllib libmysqlclient.so.12 libmysqlclient_r.so.12 the mysql-devel is the extra you need for compiling gambas From jankenbrandt at ...43... Thu Jun 8 23:03:39 2006 From: jankenbrandt at ...43... (James Ankenbrandt) Date: Thu, 8 Jun 2006 14:03:39 -0700 (PDT) Subject: [Gambas-user] Installing MySQL drivers In-Reply-To: <200606082038.46188.ronstk@...239...> Message-ID: <20060608210339.53321.qmail@...1461...> Thanks I will try this tonight. After I fix my CD Rom and yast path. I doubt I have the devel packages Jim ----- Original Message ---- From: Ron Onstenk To: James Ankenbrandt ; mailing list for gambas users Sent: Thursday, June 8, 2006 2:38:45 PM Subject: Re: [Gambas-user] Installing MySQL drivers On Thursday 08 June 2006 17:31, James Ankenbrandt wrote: > Really interesting software and the Linux Journal intro was very exciting, but... > > How/where do I get the latesest libmysqlclient libs for 1.0.16?. The Linux Journal project pukes on 'cannot load gb.db module'. I found an older version for my SuSE install but the RPM (.99) wrecked my compiled installation. (Latest stable ver from sourceforge). I am recompiling and reinstalling so the main program is ok, but there is still the MySQL. > > > Is there a link or sum thin to get MySQL support? > > Have some VB project that would be great for this. > > Jim > > > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > Wich SuSE do you have? Normal it should be OK to install the MySQL server and client packages. For compiling the MySql client part of gambas it should be sufficient to install the mysql-x.x.xx-devel package. For SuSE 9.2 the packages I have installed with yast mysql-4.0.21-4.6 mysql - A true Multi-User, Multi-Threaded SQL Database Server mysql-client - MySQL Client mysql-devel - MySQL Development Header Files and Libraries mysql-shared - MySQL Shared Libraries and the last one provides mysqllib libmysqlclient.so.12 libmysqlclient_r.so.12 the mysql-devel is the extra you need for compiling gambas From wdahn at ...1000... Fri Jun 9 14:34:51 2006 From: wdahn at ...1000... (Werner) Date: Fri, 09 Jun 2006 20:34:51 +0800 Subject: [Gambas-user] Upgrading from 1.9.20 to 1.9.29 Different IDE In-Reply-To: <200606082038.46188.ronstk@...239...> References: <20060608153146.58806.qmail@...1460...> <200606082038.46188.ronstk@...239...> Message-ID: <44896AEB.8060203@...1000...> The IDE is now all windows within one window. I preferred it the other way (having it in seperate windows). Is there a way to configure the style you want? Thanks. Werner Dahn From ronstk at ...239... Fri Jun 9 15:40:50 2006 From: ronstk at ...239... (Ron Onstenk) Date: Fri, 9 Jun 2006 15:40:50 +0200 Subject: [Gambas-user] Upgrading from 1.9.20 to 1.9.29 Different IDE In-Reply-To: <44896AEB.8060203@...1000...> References: <20060608153146.58806.qmail@...1460...> <200606082038.46188.ronstk@...239...> <44896AEB.8060203@...1000...> Message-ID: <200606091540.51108.ronstk@...239...> On Friday 09 June 2006 14:34, Werner wrote: > The IDE is now all windows within one window. I preferred it the other > way (having it in seperate windows). Is there a way to configure the > style you want? > > Thanks. > > Werner Dahn > Two things. First your request should be send as a new message and not a reply to someones other request/answer about total different thing. Half of the readers will not see it this way. They use treaded view for maillist. Second If you have 1.9.29 you have luck in the /gambas-1.9.29/app/src there is a directory containing gambas2 and gambas2-old. Rename gambas2-old to gambas2-sdi Start gambas and select as project gambas2-sdi, Make executable and copy result to the place your gambas binary code is installed. Rename gambas2.gambas to gambas2-mdi.gambas Make here symlink with name 'gambas2.gambas' to 'gambas2-sdi.gambas' By changing this symlink you easly can switch between them. Big warning. This version works but is not 100% be in maintenance last time. The 1.9.30 is unknown and in 1.9.31 it is left out. In case of problems use the gambas2-sdi to test your project. If you do it carefull you can use the .29 SDI-IDE with .31 MDI-IDE but remember this is not supported. Benoit does not want maintenance two releases of the developer version with good reason. BTW that is where the developer version is for, to try and choose which one will be productive/favourite by user experience. But I hope it will be possible once to let the user make a choice. At my box (SuSE) with 1.9.29 and /opt/gb as the compiled location Did all as root. ./configure --prefix=/opt/gb make make install rename /opt/gb to /opt/gb29 make symlink in /opt for /opt/gb to /opt/gb29 with 'ln -s /opt/gb29 /opt/gb' copy symlink also to /opt/gb29 I did make a copy of the app/gambas2-old to /opt/gb29/gambas-sdi Started gambas2(-mdi) and made executable of the gambas2-sdi moved the gambas2-sdi.gambas to /opt/gb29/bin and renamed the gambas2.gambas to gambas2-mdi.gambas made symlink gambas2 to gambas2-sdi dumped /opt/gb29/app/gambas2-sdi compile the other version .31 if you want the same way but use 31 instead 29 Because 31 does not have the -sdi version use the 29 version. By copy the symlink from /opt/gbXX to /opt you can easy change version by recreate in /opt/gbXX/bin a symlink to -mdi or -sdi you can easy change the kind of IDE In case of problems, remember from .27? and up the sdi has no maintenance Use then always the -mdi first if you have IDE misbehaviour or project compile problems. Use the higher version and -mid to be save in any way. Ron From Rodrigo.Azevedo at ...1458... Fri Jun 9 23:56:43 2006 From: Rodrigo.Azevedo at ...1458... (Rodrigo Azevedo) Date: Fri, 9 Jun 2006 17:56:43 -0400 Subject: [Gambas-user] RES: RES: Comunications Message-ID: <09B799B30337E84CBFC63F218374416FDDBB0E@...1459...> Fernando / all, I don't know why, when I try to run "SerialPort Exemple". It Doesn't works, and shows the message: X Error: BadDevice, invalid or uninitialized input device 166 Major OpCode: 144 Minor OpCode: 3 Resource ID: 0x0 Failed to open device ERROR #2: Cannot load class 'FSerialPort': Unable to load class file Please, can some one to help-me? Thanks in advance!!! -----Mensagem original----- De: gambas-user-bounces at lists.sourceforge.net [mailto:gambas-user-bounces at lists.sourceforge.net] Em nome de nando Enviada em: Wednesday, June 07, 2006 10:05 PM Para: mailing list for gambas users Assunto: Re: [Gambas-user] RES: Comunications I have used the example Serial Port and extended/expanded it with tremedous success. It's working non-stop for 1 year now in one app I have. -Fernando ---------- Original Message ----------- From: Ron Onstenk To: mailing list for gambas users Sent: Wed, 7 Jun 2006 20:13:50 +0200 Subject: Re: [Gambas-user] RES: Comunications > On Wednesday 07 June 2006 19:32, Rodrigo Azevedo wrote: > > Ron, > > > > Thanks for your help. Do you know where could I find some information, > > like little examples programs or "how to" about Serial and Socket? > > > > Thanks again for your time!!! > > > > Rodrigo Bezerra > > ======= ======= > > > > The only I know ATM is in the examples included in the source. > The examples handles serial port and a tcp/ip application. > > But a really how to does not exist. Some users post on forums samples. > > examples/Networking/WebBrowser > examples/Networking/UDPServerClient > examples/Networking/ServerSocket > examples/Networking/SerialPort > examples/Networking/HTTPPost > examples/Networking/HTTPGet > examples/Networking/DnsClient > examples/Networking/ClientSocket > > Ron > > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From stefanopalmeri at ...152... Sat Jun 10 00:43:33 2006 From: stefanopalmeri at ...152... (Stefano Palmeri) Date: Sat, 10 Jun 2006 00:43:33 +0200 Subject: [Gambas-user] editor Find/Replace tool bug Message-ID: <200606100043.33229.stefanopalmeri@...152...> Hi, Benoit. In Gambas 1.9.31, when editing a class and using the Find/Replace tool to replace some text, I raise this error: FFind.?.0: #16: '.Editor.Selection.Text' is read only Gambas2 crashes at this line in FFind.class: .Selection.Text = $sReplace (of the 'DoSearch' function). Saluti, Stefano Palmeri From ronstk at ...239... Sat Jun 10 02:40:35 2006 From: ronstk at ...239... (Ron Onstenk) Date: Sat, 10 Jun 2006 02:40:35 +0200 Subject: [Gambas-user] RES: RES: Comunications In-Reply-To: <09B799B30337E84CBFC63F218374416FDDBB0E@...1459...> References: <09B799B30337E84CBFC63F218374416FDDBB0E@...1459...> Message-ID: <200606100240.36092.ronstk@...239...> On Friday 09 June 2006 23:56, Rodrigo Azevedo wrote: > > Fernando / all, > > I don't know why, when I try to run "SerialPort Exemple". It Doesn't > works, and shows the message: > X Error: BadDevice, invalid or uninitialized input device 166 > Major OpCode: 144 > Minor OpCode: 3 > Resource ID: 0x0 > Failed to open device > ERROR #2: Cannot load class 'FSerialPort': Unable to load class file > > Please, can some one to help-me? > > Thanks in advance!!! > Looks to me error with X in first place. And as result gambas is not able to his/her job Using google for the X Error gives many times unbuntu as distribution. http://www.ubuntuforums.org/showthread.php?t=176851 resolution 'fixed by deleted the /root/config directory.' Take note for theserial port you need to be root if I'm well. Or the serialport must be in group users or the user must be in group root I haven't figured out that matter yet. Ron From ronstk at ...239... Sat Jun 10 02:43:03 2006 From: ronstk at ...239... (Ron Onstenk) Date: Sat, 10 Jun 2006 02:43:03 +0200 Subject: [Gambas-user] editor Find/Replace tool bug In-Reply-To: <200606100043.33229.stefanopalmeri@...152...> References: <200606100043.33229.stefanopalmeri@...152...> Message-ID: <200606100243.03874.ronstk@...239...> On Saturday 10 June 2006 00:43, Stefano Palmeri wrote: > > Hi, Benoit. > > In Gambas 1.9.31, when editing a class and using the > Find/Replace tool to replace some text, I raise this error: > > FFind.?.0: #16: '.Editor.Selection.Text' is read only > > > Gambas2 crashes at this line in FFind.class: > > .Selection.Text = $sReplace > > (of the 'DoSearch' function). > > Saluti, > > Stefano Palmeri Are you try to do it on a readonly example? Ron From stefanopalmeri at ...152... Sat Jun 10 16:50:08 2006 From: stefanopalmeri at ...152... (Stefano Palmeri) Date: Sat, 10 Jun 2006 16:50:08 +0200 Subject: [Gambas-user] editor Find/Replace tool bug In-Reply-To: <200606100243.03874.ronstk@...239...> References: <200606100043.33229.stefanopalmeri@...152...> <200606100243.03874.ronstk@...239...> Message-ID: <200606101650.08397.stefanopalmeri@...152...> Alle 02:43, sabato 10 giugno 2006, Ron Onstenk ha scritto: > On Saturday 10 June 2006 00:43, Stefano Palmeri wrote: > > > > Hi, Benoit. > > > > In Gambas 1.9.31, when editing a class and using the > > Find/Replace tool to replace some text, I raise this error: > > > > FFind.?.0: #16: '.Editor.Selection.Text' is read only > > > > > > Gambas2 crashes at this line in FFind.class: > > > > .Selection.Text = $sReplace > > > > (of the 'DoSearch' function). > > > > Saluti, > > > > Stefano Palmeri > > Are you try to do it on a readonly example? > > Ron It seems that it's a general bug that you can observe in any project... Saluti, Stefano > > > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Sat Jun 10 17:02:09 2006 From: gambas at ...1... (Benoit Minisini) Date: Sat, 10 Jun 2006 17:02:09 +0200 Subject: [Gambas-user] editor Find/Replace tool bug In-Reply-To: <200606101650.08397.stefanopalmeri@...152...> References: <200606100043.33229.stefanopalmeri@...152...> <200606100243.03874.ronstk@...239...> <200606101650.08397.stefanopalmeri@...152...> Message-ID: <200606101702.10219.gambas@...1...> On Saturday 10 June 2006 16:50, Stefano Palmeri wrote: > Alle 02:43, sabato 10 giugno 2006, Ron Onstenk ha scritto: > > On Saturday 10 June 2006 00:43, Stefano Palmeri wrote: > > > Hi, Benoit. > > > > > > In Gambas 1.9.31, when editing a class and using the > > > Find/Replace tool to replace some text, I raise this error: > > > > > > FFind.?.0: #16: '.Editor.Selection.Text' is read only > > > > > > > > > Gambas2 crashes at this line in FFind.class: > > > > > > .Selection.Text = $sReplace > > > > > > (of the 'DoSearch' function). > > > > > > Saluti, > > > > > > Stefano Palmeri > > > > Are you try to do it on a readonly example? > > > > Ron > > It seems that it's a general bug that you can observe in any project... > > Saluti, > > Stefano > It is fixed in the next version. Replace every occurrence of ".Selection.Text = xxx" by ".Insert(xxx)" Regards, -- Benoit Minisini From nando_f at ...951... Sat Jun 10 19:42:03 2006 From: nando_f at ...951... (nando) Date: Sat, 10 Jun 2006 13:42:03 -0400 Subject: [Gambas-user] RES: RES: Comunications In-Reply-To: <09B799B30337E84CBFC63F218374416FDDBB0E@...1459...> References: <09B799B30337E84CBFC63F218374416FDDBB0E@...1459...> Message-ID: <20060610174009.M28683@...951...> The Serial Port Example should work as-is when Gambas is installed. Make sure you specify a device that is really a serial port like: /dev/ttyS0 /dev/ttyUSB0 -Fernando ---------- Original Message ----------- From: "Rodrigo Azevedo" To: , "mailing list for gambas users" Sent: Fri, 9 Jun 2006 17:56:43 -0400 Subject: [Gambas-user] RES: RES: Comunications > Fernando / all, > > I don't know why, when I try to run "SerialPort Exemple". It Doesn't > works, and shows the message: > X Error: BadDevice, invalid or uninitialized input device 166 > Major OpCode: 144 > Minor OpCode: 3 > Resource ID: 0x0 > Failed to open device > ERROR #2: Cannot load class 'FSerialPort': Unable to load class file > > Please, can some one to help-me? > > Thanks in advance!!! > > -----Mensagem original----- > De: gambas-user-bounces at lists.sourceforge.net > [mailto:gambas-user-bounces at lists.sourceforge.net] Em nome de nando > Enviada em: Wednesday, June 07, 2006 10:05 PM > Para: mailing list for gambas users > Assunto: Re: [Gambas-user] RES: Comunications > > I have used the example Serial Port and extended/expanded it with > tremedous success. It's working non-stop for 1 year now in one app > I have. > -Fernando > > ---------- Original Message ----------- > From: Ron Onstenk > To: mailing list for gambas users > Sent: Wed, 7 Jun 2006 20:13:50 +0200 > Subject: Re: [Gambas-user] RES: Comunications > > > On Wednesday 07 June 2006 19:32, Rodrigo Azevedo wrote: > > > Ron, > > > > > > Thanks for your help. Do you know where could I find some > information, > > > like little examples programs or "how to" about Serial and Socket? > > > > > > Thanks again for your time!!! > > > > > > Rodrigo Bezerra > > > ======= ======= > > > > > > > The only I know ATM is in the examples included in the source. > > The examples handles serial port and a tcp/ip application. > > > > But a really how to does not exist. Some users post on forums samples. > > > > examples/Networking/WebBrowser > > examples/Networking/UDPServerClient > > examples/Networking/ServerSocket > > examples/Networking/SerialPort > > examples/Networking/HTTPPost > > examples/Networking/HTTPGet > > examples/Networking/DnsClient > > examples/Networking/ClientSocket > > > > Ron > > > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > ------- End of Original Message ------- > > _______________________________________________ > 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 ------- End of Original Message ------- From gambas at ...1... Sun Jun 11 21:20:19 2006 From: gambas at ...1... (Benoit Minisini) Date: Sun, 11 Jun 2006 21:20:19 +0200 Subject: [Gambas-user] Release of gambas 1.9.32 Message-ID: <200606112120.19670.gambas@...1...> Hi, Here is the 1.9.32 release. Warning! The following changes will break your code: * An object cannot send or receive events inside its constructor anymore. You will have to move some code from the Form constructor to the Open event handler for example. * The LostFocus event is now posted, as the GotFocus event, so that you always get the LostFocus event after its corresponding GotFocus event. This may break some code based on this event. * The Draw.Picture, Draw.Image and Draw.Drawing methods now take optional width & height scaling parameters. This breaks he old syntax: For example, before was 'Draw.Image(Image, X, Y, SX, SY, SW, SH)' And now is 'Draw.Image(Image, X, Y, DW, DH, SX, SY, SW, SH)'. The image will be scaled so that it has the DW x DH dimension on the target drawing device. The other main changes are: * The Workspace control has been replaced by a new one. * The old help files have been replaced by a static version of the Gambas wiki. * The Draw class now support drawing transformation based on rotation, scaling and translation. Here is the full changelog: --8<----------------------------------------------------------------------- DEVELOPMENT ENVIRONMENT * NEW: The old Workspace control has been replaced by the new one. * NEW: Automatic completion of identifiers and keywords. * NEW: The help window now uses a static version of the wiki. * BUG: The find dialog should not crash anymore in replace mode. * BUG: The project tree shortcuts now are disabled when not having the focus, so that they do not conflict with the editor shortcuts. * NEW: The debug window is now docked on the bottom of the main window. * NEW: The project tree now displays modules first. * NEW: Making executable is faster now. DATABASE MANAGER * BUG: The CSV export was fixed. * NEW: The CSV export now uses TAB as separator character. EXAMPLES * BUG: The Notepad example was fixed. INTERPRETER * NEW: The Gambas API has a new GB.Post2() function to call a function later with two parameters. * BUG: All components are now forced to use string comparison functions that do not use localization settings. This is mqinly for Turkish people :-) * BUG: The GPL version was incorrect in the message displayed by the --help option. * NEW: An object cannot raise or receive events inside its contructor. This can break some code: for example, you may have to move code from the _new() method of a Form to the Form_Open event handler. * NEW: A locked object cannot receive events anymore. * BUG: Locked objects do not crash the interpreter anymore when trying to raise events. COMPILER * NEW: Events are not disabled anymore during the hidden method that creates the controls of a form. GB.EVAL COMPONENT * NEW: System.Keywords is a new property that returns the list of Gambas reserved keywords. GB.QT COMPONENT * NEW: Draw.Picture now can take optional width and height parameters that scales the Picture. This new syntax is incompatible with the old one! * NEW: Draw.Image now can take optional width and height parameters that scales the Image. This new syntax is incompatible with the old one! * NEW: Draw.Drawing now can take optional width and height parameters that scales the Drawing. This new syntax is incompatible with the old one! * NEW: Drawing transformation has been implemented: Draw.Rotate rotates what is drawn, Draw.Translate translates it, and Draw.Scale scales it. * NEW: Draw.Push saves the current transformation state. * NEW: Draw.Pop restores the current transformation state. * NEW: Draw.Reset resets the transformation state. * NEW: Menu raises the Hide event just after being hidden. * NEW: Setting Menu.Enabled to FALSE now disables all child menu shortcuts. * NEW: TabStrip[i].Delete now removes the i-th tab, if it is empty. * NEW: Watcher now raises the Title event when the watched control is a Window and its title changes. * NEW: Watcher now raises the Icon event when the watched control is a Window and its icon changes. * NEW: Watcher now raises the Close event when the watched control is a Window and it has been closed. * NEW: Watcher.Control is a new property that returns the watched control. * NEW: The LostFocus event is now posted, as the GotFocus event. This may break some code based on this event. GB.QT.EXT COMPONENT * NEW: The Workspace control, based on the QWorkspace widget, has been removed. * BUG: The Editor.Undo and Editor.Redo methods now correctly move they cursor. * BUG: The Editor automatic unindentation has been enhanced. GB.GTK COMPONENT * BUG: Some warning fixes sent by Stephan Binner from SuSE. GB.LDAP COMPONENT * BUG: Some warning fixes sent by Stephan Binner from SuSE. GB.FORM COMPONENT * NEW: DirChooser.Root is a new property to set the root of the directory list. * NEW: FileChooser.Root is a new property to set the root of the directory list. GB.FORM.MDI COMPONENT * This new component implements the new version of the Workspace control. GB.CRYPT COMPONENT * BUG: The crypt.h header is now searched only in /usr/include. --8<----------------------------------------------------------------------- Enjoy it! -- Benoit Minisini From lordheavy at ...512... Sun Jun 11 21:43:52 2006 From: lordheavy at ...512... (Laurent Carlier) Date: Sun, 11 Jun 2006 21:43:52 +0200 Subject: [Gambas-user] Release of gambas 1.9.32 In-Reply-To: <200606112120.19670.gambas@...1...> References: <200606112120.19670.gambas@...1...> Message-ID: <200606112143.52485.lordheavy@...512...> Le Dimanche 11 Juin 2006 21:20, Benoit Minisini a ?crit?: > Hi, > > Here is the 1.9.32 release. > > > * The Workspace control has been replaced by a new one. > * The old help files have been replaced by a static version of the Gambas > wiki. > * The Draw class now support drawing transformation based on rotation, > scaling and translation. problem ? Compiling gambas2... /home/lordh/gambas2-1.9.32/app/src/gambas2/Project.module:5: Unknown identifier: Workspace > Enjoy it! :) -- jabber : lordheavy at ...943... mail : lordheavymREMOVEME at ...626... From lordheavy at ...512... Sun Jun 11 22:13:55 2006 From: lordheavy at ...512... (Laurent Carlier) Date: Sun, 11 Jun 2006 22:13:55 +0200 Subject: [Gambas-user] Release of gambas 1.9.32 In-Reply-To: <200606112143.52485.lordheavy@...512...> References: <200606112120.19670.gambas@...1...> <200606112143.52485.lordheavy@...512...> Message-ID: <200606112213.55799.lordheavy@...512...> Le Dimanche 11 Juin 2006 21:43, Laurent Carlier a ?crit?: > Le Dimanche 11 Juin 2006 21:20, Benoit Minisini a ?crit?: > > Hi, > > > > Here is the 1.9.32 release. > > > > > > * The Workspace control has been replaced by a new one. > > * The old help files have been replaced by a static version of the Gambas > > wiki. > > * The Draw class now support drawing transformation based on rotation, > > scaling and translation. > > problem ? > > Compiling gambas2... > /home/lordh/gambas2-1.9.32/app/src/gambas2/Project.module:5: Unknown > identifier: Workspace > > > Enjoy it! > > > :) gb.form.mdi is missing from the file comp/src/order :) Regards, -- jabber : lordheavy at ...943... mail : lordheavymREMOVEME at ...626... From gambas at ...1... Sun Jun 11 22:17:56 2006 From: gambas at ...1... (Benoit Minisini) Date: Sun, 11 Jun 2006 22:17:56 +0200 Subject: [Gambas-user] Release of gambas 1.9.32 In-Reply-To: <200606112143.52485.lordheavy@...512...> References: <200606112120.19670.gambas@...1...> <200606112143.52485.lordheavy@...512...> Message-ID: <200606112217.56658.gambas@...1...> On Sunday 11 June 2006 21:43, Laurent Carlier wrote: > Le Dimanche 11 Juin 2006 21:20, Benoit Minisini a ?crit?: > > Hi, > > > > Here is the 1.9.32 release. > > > > > > * The Workspace control has been replaced by a new one. > > * The old help files have been replaced by a static version of the Gambas > > wiki. > > * The Draw class now support drawing transformation based on rotation, > > scaling and translation. > > problem ? > > Compiling gambas2... > /home/lordh/gambas2-1.9.32/app/src/gambas2/Project.module:5: Unknown > identifier: Workspace > > > Enjoy it! > > > :) I forgot to update a file... Replace the 'order' file located in ./comp/src by the joined one, and redo 'make install'. Regards, -- Benoit Minisini -------------- next part -------------- gb.settings gb.info gb.form gb.form.mdi gb.db.form From gambas at ...1... Sun Jun 11 22:23:39 2006 From: gambas at ...1... (Benoit Minisini) Date: Sun, 11 Jun 2006 22:23:39 +0200 Subject: [Gambas-user] Release of gambas 1.9.32 In-Reply-To: <200606112213.55799.lordheavy@...512...> References: <200606112120.19670.gambas@...1...> <200606112143.52485.lordheavy@...512...> <200606112213.55799.lordheavy@...512...> Message-ID: <200606112223.39964.gambas@...1...> On Sunday 11 June 2006 22:13, Laurent Carlier wrote: > Le Dimanche 11 Juin 2006 21:43, Laurent Carlier a ?crit?: > > Le Dimanche 11 Juin 2006 21:20, Benoit Minisini a ?crit?: > > > Hi, > > > > > > Here is the 1.9.32 release. > > > > > > > > > * The Workspace control has been replaced by a new one. > > > * The old help files have been replaced by a static version of the > > > Gambas wiki. > > > * The Draw class now support drawing transformation based on rotation, > > > scaling and translation. > > > > problem ? > > > > Compiling gambas2... > > /home/lordh/gambas2-1.9.32/app/src/gambas2/Project.module:5: Unknown > > identifier: Workspace > > > > > Enjoy it! > > > > > :) > > gb.form.mdi is missing from the file comp/src/order :) > > Regards, That's it :-) -- Benoit Minisini From gambas at ...1... Sun Jun 11 22:24:47 2006 From: gambas at ...1... (Benoit Minisini) Date: Sun, 11 Jun 2006 22:24:47 +0200 Subject: [Gambas-user] Upgrading from 1.9.20 to 1.9.29 Different IDE In-Reply-To: <44896AEB.8060203@...1000...> References: <20060608153146.58806.qmail@...1460...> <200606082038.46188.ronstk@...239...> <44896AEB.8060203@...1000...> Message-ID: <200606112224.48028.gambas@...1...> On Friday 09 June 2006 14:34, Werner wrote: > The IDE is now all windows within one window. I preferred it the other > way (having it in seperate windows). Is there a way to configure the > style you want? > > Thanks. > > Werner Dahn > The multiple window interface will return in the future, but not before the single window interface is finished. Regards, -- Benoit Minisini From gambas at ...1... Sun Jun 11 22:32:09 2006 From: gambas at ...1... (Benoit Minisini) Date: Sun, 11 Jun 2006 22:32:09 +0200 Subject: [Gambas-user] Release of gambas 1.9.32 In-Reply-To: <200606112143.52485.lordheavy@...512...> References: <200606112120.19670.gambas@...1...> <200606112143.52485.lordheavy@...512...> Message-ID: <200606112232.09474.gambas@...1...> On Sunday 11 June 2006 21:43, Laurent Carlier wrote: > Le Dimanche 11 Juin 2006 21:20, Benoit Minisini a ?crit?: > > Hi, > > > > Here is the 1.9.32 release. > > > > > > * The Workspace control has been replaced by a new one. > > * The old help files have been replaced by a static version of the Gambas > > wiki. > > * The Draw class now support drawing transformation based on rotation, > > scaling and translation. > > problem ? > > Compiling gambas2... > /home/lordh/gambas2-1.9.32/app/src/gambas2/Project.module:5: Unknown > identifier: Workspace > > > Enjoy it! > > > :) I have updated the package on sourceforge. I hope there is no other problem! -- Benoit Minisini From jredrejo at ...96... Mon Jun 12 00:06:38 2006 From: jredrejo at ...96... (=?ISO-8859-1?Q?Jos=E9?= L. Redrejo =?ISO-8859-1?Q?Rodr=EDguez?=) Date: Mon, 12 Jun 2006 00:06:38 +0200 Subject: [Gambas-user] [Gambas-devel] Release of gambas 1.9.32 In-Reply-To: <200606112120.19670.gambas@...1...> References: <200606112120.19670.gambas@...1...> Message-ID: <1150063598.6647.38.camel@...1468...> El dom, 11-06-2006 a las 21:20 +0200, Benoit Minisini escribi?: > Hi, > > Here is the 1.9.32 release. > > Warning! The following changes will break your code: > > * An object cannot send or receive events inside its constructor anymore. You > will have to move some code from the Form constructor to the Open event > handler for example. > > * The LostFocus event is now posted, as the GotFocus event, so that you always > get the LostFocus event after its corresponding GotFocus event. This may > break some code based on this event. > > * The Draw.Picture, Draw.Image and Draw.Drawing methods now take optional > width & height scaling parameters. This breaks he old syntax: > > For example, before was 'Draw.Image(Image, X, Y, SX, SY, SW, SH)' > And now is 'Draw.Image(Image, X, Y, DW, DH, SX, SY, SW, SH)'. > > The image will be scaled so that it has the DW x DH dimension on the target > drawing device. > > The other main changes are: > > * The Workspace control has been replaced by a new one. > * The old help files have been replaced by a static version of the Gambas > wiki. > * The Draw class now support drawing transformation based on rotation, scaling > and translation. Hi, as usual, Debian packages for sid and sarge are already available at http://apt.linex.org/linex/gambas/ They will uploaded to Debian a.s.a.p. From rohnny at ...1248... Mon Jun 12 07:11:27 2006 From: rohnny at ...1248... (R. Stormo) Date: Sun, 11 Jun 2006 22:11:27 -0700 (PDT) Subject: [Gambas-user] Release of gambas 1.9.32 In-Reply-To: <200606112232.09474.gambas@...1...> References: <200606112120.19670.gambas@...1...> <200606112143.52485.lordheavy@...512...> <200606112232.09474.gambas@...1...> Message-ID: <4823465.post@...1379...> I got also this problem. Downloaded 12-june 06.30. I'm running Ubuntu dapper. -- Regards R. Stormo ----------------------------------------- Gambas brings Basic to Linux. My Gambas Community http://forum.stormweb.no -- View this message in context: http://www.nabble.com/Release-of-gambas-1.9.32-t1770726.html#a4823465 Sent from the gambas-user forum at Nabble.com. From gambas at ...1... Mon Jun 12 07:18:03 2006 From: gambas at ...1... (Benoit Minisini) Date: Mon, 12 Jun 2006 07:18:03 +0200 Subject: [Gambas-user] Release of gambas 1.9.32 In-Reply-To: <4823465.post@...1379...> References: <200606112120.19670.gambas@...1...> <200606112232.09474.gambas@...1...> <4823465.post@...1379...> Message-ID: <200606120718.03574.gambas@...1...> On Monday 12 June 2006 07:11, R. Stormo wrote: > I got also this problem. Downloaded 12-june 06.30. I'm running Ubuntu > dapper. Can you check the contents of the ./comp/src/order file? -- Benoit Minisini From ronstk at ...239... Mon Jun 12 09:44:12 2006 From: ronstk at ...239... (Ron Onstenk) Date: Mon, 12 Jun 2006 09:44:12 +0200 Subject: [Gambas-user] Release of gambas 1.9.32 In-Reply-To: <200606112143.52485.lordheavy@...512...> References: <200606112120.19670.gambas@...1...> <200606112143.52485.lordheavy@...512...> Message-ID: <200606120944.12936.ronstk@...239...> Get the message about the order file during the make phase. I did put it in place before make install. Works perfect sofar, no problems. Found the tabs on the editor. :) Ron From ronstk at ...239... Mon Jun 12 10:16:56 2006 From: ronstk at ...239... (Ron Onstenk) Date: Mon, 12 Jun 2006 10:16:56 +0200 Subject: [Gambas-user] Delete content of property value deletes control on form Message-ID: <200606121016.56493.ronstk@...239...> Found Problem :( Using the latest .31 On my form a VBox previous set with a backcolor which bleed trough in other controls. I selected the VBox and in the property sheet Backcolor. Marked the text and press Delete key :( The Color was gone but the VBox also was gone. As like in the code editor a undo exists a similar should be nice in the form editor. Second, after placing a Sidepanel on the form I would with ctrl-X/ctrl-V transfer another container control in the side panel. This did not work. The ctrl-X did but I had to use the RMB-menu to place it back in SidePanel. Ron From nigel at ...38... Mon Jun 12 12:41:14 2006 From: nigel at ...38... (nigel at ...38...) Date: Mon, 12 Jun 2006 12:41:14 +0200 (CEST) Subject: [Gambas-user] PRB:Connection.Exec() Message-ID: <7643737.1150108874436.JavaMail.www@...1470...> Ron wrote: > One thing I want to know. Is the Connection.Exec 100% transparent to the MySQL > server, without intervention in the SQL line by gambas. Ron, It is not 100% transparent because the clause within the Exec is parsed for parameters first. That parsing relies on finding symbols such as '&' etc. Therefore there could be a danger that the parse does something unexpected. (Although every effort is made to avoid this :-) The Debug should always show you exactly what is being passed to the server. Nigel From rohnny at ...1248... Mon Jun 12 16:24:04 2006 From: rohnny at ...1248... (R. Stormo) Date: Mon, 12 Jun 2006 07:24:04 -0700 (PDT) Subject: [Gambas-user] Release of gambas 1.9.32 In-Reply-To: <200606120718.03574.gambas@...1...> References: <200606112120.19670.gambas@...1...> <200606112143.52485.lordheavy@...512...> <200606112232.09474.gambas@...1...> <4823465.post@...1379...> <200606120718.03574.gambas@...1...> Message-ID: <4829586.post@...1379...> This is the content of my order file gb.settings gb.info gb.form gb.form.mdi gb.db.form -- Regards R. Stormo ----------------------------------------- Gambas brings Basic to Linux. My Gambas Community http://forum.stormweb.no -- View this message in context: http://www.nabble.com/Release-of-gambas-1.9.32-t1770726.html#a4829586 Sent from the gambas-user forum at Nabble.com. From gambas at ...1... Mon Jun 12 18:23:46 2006 From: gambas at ...1... (Benoit Minisini) Date: Mon, 12 Jun 2006 18:23:46 +0200 Subject: [Gambas-user] Delete content of property value deletes control on form In-Reply-To: <200606121016.56493.ronstk@...239...> References: <200606121016.56493.ronstk@...239...> Message-ID: <200606121823.46802.gambas@...1...> On Monday 12 June 2006 10:16, Ron Onstenk wrote: > Found Problem :( > > Using the latest .31 > On my form a VBox previous set with a backcolor which > bleed trough in other controls. > I selected the VBox and in the property sheet Backcolor. > Marked the text and press Delete key :( > The Color was gone but the VBox also was gone. > > As like in the code editor a undo exists a similar > should be nice in the form editor. > > Second, after placing a Sidepanel on the form I would > with ctrl-X/ctrl-V transfer another container control > in the side panel. > This did not work. The ctrl-X did but I had to use > the RMB-menu to place it back in SidePanel. > > Ron > There is a problem with menu shorcuts when, like the IDE, many different forms with menus are mixed into only one window. The shortcuts mix themselves. It should be better with 1.9.32, but I have to think more to effectively find a way to fix this problem. Regards, -- Benoit Minisini From ronstk at ...239... Mon Jun 12 21:16:07 2006 From: ronstk at ...239... (Ron Onstenk) Date: Mon, 12 Jun 2006 21:16:07 +0200 Subject: [Gambas-user] PRB:Connection.Exec() (Solved) In-Reply-To: <7643737.1150108874436.JavaMail.www@...1470...> References: <7643737.1150108874436.JavaMail.www@...1470...> Message-ID: <200606122116.07828.ronstk@...239...> On Monday 12 June 2006 12:41, nigel at ...38... wrote: > Ron wrote: > > > One thing I want to know. Is the Connection.Exec 100% transparent to the MySQL > > server, without intervention in the SQL line by gambas. > > Ron, > > It is not 100% transparent because the clause within the Exec is parsed for parameters first. > That parsing relies on finding symbols such as '&' etc. Therefore there could be a danger that > the parse does something unexpected. (Although every effort is made to avoid this :-) > > The Debug should always show you exactly what is being passed to the server. > > Nigel > Thanks Nigel OK, understand the '&' stuff. I don't forsee a problem with it so the functions available in MYSQL should work on the fields. I will keep the Debug in the picture anyway. Just going to dance the gambas again :) Ron From ronstk at ...239... Mon Jun 12 21:46:26 2006 From: ronstk at ...239... (Ron Onstenk) Date: Mon, 12 Jun 2006 21:46:26 +0200 Subject: [Gambas-user] Delete content of property value deletes control on form In-Reply-To: <200606121823.46802.gambas@...1...> References: <200606121016.56493.ronstk@...239...> <200606121823.46802.gambas@...1...> Message-ID: <200606122146.26855.ronstk@...239...> On Monday 12 June 2006 18:23, Benoit Minisini wrote: > > There is a problem with menu shorcuts when, like the IDE, many different forms > with menus are mixed into only one window. The shortcuts mix themselves. > > It should be better with 1.9.32, but I have to think more to effectively find > a way to fix this problem. > > Regards, > A short hint can be that the focus was somewhere not correct. When I select something in the property sheet (window) it should have the focus in that window. In that case a key shortcut should be for that window and not the form in the editor. Both are client windows inside the main window. Shortcuts should proppegate(? not in speller) ( bubble up), if done, only to that main window and not leak to other clients of the main window. Carefull observation this afternoon did show me for the cut&paste problem that there is after the ctrl-x a time frame to wait before doing something else. Sometimes the ctrl-x is almost instant in few ms, other time it can be till a second, or more, before the cutted objects disappears. Doing the ctrl-x again in that time frame because you think you did not press the keys correctly does not find the still visible and marked objects on the form and _*_clears_*_ the clipboard. Using the ctrl-v in to paste the just cutted, after it it gone from the form, seams also need a little time before working. I think I'm a bit to fast in the handling the cut&paste shortcuts. :) Should not bad to have a undo anyway on editing forms. Ron From stefanopalmeri at ...152... Tue Jun 13 01:04:53 2006 From: stefanopalmeri at ...152... (Stefano Palmeri) Date: Tue, 13 Jun 2006 01:04:53 +0200 Subject: [Gambas-user] 1.9.32 little bugs... In-Reply-To: <200606112232.09474.gambas@...1...> References: <200606112120.19670.gambas@...1...> <200606112143.52485.lordheavy@...512...> <200606112232.09474.gambas@...1...> Message-ID: <200606130104.53742.stefanopalmeri@...152...> Hi, Benoit. Three little notes (bugs?) about the great 1.9.32: 1) Help links are broken. From BertOudshoorn at ...1472... Tue Jun 13 01:28:28 2006 From: BertOudshoorn at ...1472... (BertOudshoorn at ...1472...) Date: Mon, 12 Jun 2006 19:28:28 EDT Subject: [Gambas-user] Compilation of 1.9.32 on Suse 10.0 Message-ID: <4b4.2184bc7.31bf529c@...1472...> Version 1.9.17-2 works nice (included with SUSE 10.0), great, thanks Beno?t ! But 1.9.32 ? Installed with Yast most packages which are probably needed... My ./configure -C results now in (only) 8 components disabled: - gb.corba - gb.db.firebird - gb.db.mysql - gb.db.odbc - gb.db.postgresql - gb.ldap - gb.net.curl - gb.pdf Noticed the released gb.- directories in the download: Compiled the missing ones, however, no related ".so" files/libs can be found. Compiled also gb.gt (gb.qt.ext mentioned in the README could not be found, or is it the gb.qt.kde ?). By the way, gb.pdf is not included in 1.9.32 (?). Noticed some warnings during the configure, make, make install process but no errors. Tried gambas2, but no activity. Could not find a gambas2.bin Tried in a konsole: gambas2, but it results in ERROR: #27 Cannot load component 'gb.form.mdi': cannot find library file Thanks, Bert Oudshoorn -------------- next part -------------- An HTML attachment was scrubbed... URL: From ronstk at ...239... Tue Jun 13 01:47:17 2006 From: ronstk at ...239... (Ron Onstenk) Date: Tue, 13 Jun 2006 01:47:17 +0200 Subject: [Gambas-user] 1.9.32 little bugs... In-Reply-To: <200606130104.53742.stefanopalmeri@...152...> References: <200606112120.19670.gambas@...1...> <200606112232.09474.gambas@...1...> <200606130104.53742.stefanopalmeri@...152...> Message-ID: <200606130147.17270.ronstk@...239...> On Tuesday 13 June 2006 01:04, Stefano Palmeri wrote: > > Hi, Benoit. ----8<--- > > 3) > It seems that the Gambas2 IDE window doesn't fit completely in > Desktop dimensions, on start up. The scroll bar down arrow > of the project tree is badly displayed and the panStack buttons > are missing. > My English is bad, so please take a look at the attached screenshot. > > After resizing the window and maximizing again, the bug goes away. > Also, I tested that adding these two lines > in FMain Form_Open solves the bug: > > ME.Width = Desktop.Width > ME.Height = Desktop.Height > > My desktop size is 1024x768. > > Regards, > > Stefano Palmeri > The sidepanel bottom for debug is at my box also below the screenheight. Same solution with resize and there is a "status" bar on total width at bottom. From cjro99 at ...67... Tue Jun 13 15:16:10 2006 From: cjro99 at ...67... (javier romero) Date: Tue, 13 Jun 2006 13:16:10 +0000 Subject: [Gambas-user] (no subject) Message-ID: Hi, I have a doubt, when i push "close form" button in the form upper right the "X" button, the form is not closed, it disappears the form, but it seems to be even running and waiting to push the red button in the gambas IDE or open another window then just close the form When i used the "close"option in the control of the form, left upper, on the form, its close ok or when i use in a button "me.close" works correctly. Thanks Javier _________________________________________________________________ Puedes estar entre los primeros en probar el futuro de la mensajer?a: prueba la versi?n beta de Windows Live Messenger http://ideas.live.com/programpage.aspx?versionId=0eccd94b-eb48-497c-8e60-c6313f7ebb73 From wspinto at ...1405... Tue Jun 13 20:48:39 2006 From: wspinto at ...1405... (wspinto at ...1405...) Date: Tue, 13 Jun 2006 15:48:39 -0300 Subject: [Gambas-user] About workspace In-Reply-To: References: Message-ID: <1150224519.448f088760308@...1406...> Hi! I'm have one program with workspace object and in previous version show my midi in window formats, with caption, close button, minimine and restore button, and now my midi show expanded in workspace. Howto show in previous mode? my english is not very well. Wellington. ___________________________________________________________________________________ Agora todas as suas liga??es DDD e DDI com o 21 v?m junto com a conta do seu telefone de casa ou celular. Mais comodidade e praticidade para voc?. Faz um 21 e aproveite! From fidojones at ...805... Tue Jun 13 23:49:15 2006 From: fidojones at ...805... (Lorenzo) Date: Tue, 13 Jun 2006 23:49:15 +0200 Subject: [Gambas-user] About workspace In-Reply-To: <1150224519.448f088760308@...1406...> References: <1150224519.448f088760308@...1406...> Message-ID: <00840e0dc410b7208f219a98f80d3b94@...40...> I have the same problem, children windows appears maximized and without caption, close button and anything... Perhaps this is a preliminary version of workspace? and ray of light benoit? On Tue, 13 Jun 2006 15:48:39 -0300, wspinto at ...1405... wrote: > Hi! > I'm have one program with workspace object and in previous version show my > midi > in window formats, with caption, close button, minimine and restore > button, and > now my midi show expanded in workspace. > Howto show in previous mode? > > my english is not very well. > > Wellington. > ___________________________________________________________________________________ > Agora todas as suas liga??es DDD e DDI com o 21 v?m junto com a conta > do seu > telefone de casa ou celular. > Mais comodidade e praticidade para voc?. Faz um 21 e aproveite! > > > > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From cjro99 at ...67... Wed Jun 14 15:42:16 2006 From: cjro99 at ...67... (javier romero) Date: Wed, 14 Jun 2006 13:42:16 +0000 Subject: [Gambas-user] indexes in database Message-ID: I need to create a table named "Tabla010" in this table i need to indexed by name, I have this in my proyect: WITH Mdb .HCliente=.MysqlDB.Tables.Add(nombre) .HCliente.Fields.Add("010ruc", gb.String, 11,0) .HCliente.Fields.Add("010nom", gb.String, 45) .Hcliente.Fields.Add("010dir", gb.String, 45) .Hcliente.Fields.Add("010loc", gb.String, 20) .Hcliente.Fields.Add("010te1", gb.String, 7, 0) .Hcliente.Fields.Add("010te2", gb.String, 7, 0) .Hcliente.Fields.Add("010cor", gb.String, 30) .Hcliente.Fields.Add("010www", gb.String, 30) .Hcliente.Fields.Add("010fac", gb.String, 1) .Hcliente.Fields.Add("010rhp", gb.string, 1) .Hcliente.Fields.Add("010con", gb.String, 45) .Hcliente.Fields.Add("010car", gb.String, 45) .Hcliente.Fields.Add("010tce", gb.String, 1, 0) .Hcliente.Fields.Add("010cel", gb.String, 8, 0) .Hcliente.Fields.Add("010nex", gb.String, 8, 0) .Hcliente.Fields.Add("010cop", gb.String, 30) .Hcliente.Fields.Add("010pdt", gb.String, 14) .Hcliente.Fields.Add("010usu", gb.String, 8) .Hcliente.Fields.Add("010cla", gb.String, 9) .Hcliente.PrimaryKey=["010ruc"] .Hcliente.Indexes.Add("Alt010_1", "010nom", FALSE) .HCliente.Update END WITH When run an error sent me and says "Index already exist: Tabla010.Alt010_1" Why if its a new Table?, when i comment the line ".Hcliente.Indexes.Add("Alt010_1", "010nom", FALSE)" the Table is created ok. Thanks Javier _________________________________________________________________ S? el primero de tu grupo que ve el futiro de Hotmail: prueba la versi?n beta de Windows Live Mail http://ideas.live.com/programpage.aspx?versionId=5d21c51a-b161-4314-9b0e-4911fb2b2e6d From gambas at ...1... Wed Jun 14 21:35:39 2006 From: gambas at ...1... (Benoit Minisini) Date: Wed, 14 Jun 2006 21:35:39 +0200 Subject: [Gambas-user] 1.9.32 little bugs... In-Reply-To: <200606130104.53742.stefanopalmeri@...152...> References: <200606112120.19670.gambas@...1...> <200606112232.09474.gambas@...1...> <200606130104.53742.stefanopalmeri@...152...> Message-ID: <200606142135.40360.gambas@...1...> On Tuesday 13 June 2006 01:04, Stefano Palmeri wrote: > Hi, Benoit. > > Three little notes (bugs?) about the great 1.9.32: > > 1) > Help links are broken. > From console output: > > FExplorer.txvExplorer_Link.775: > /usr/local/share/gambas2/help/help/help/howto?en > FExplorer.txvExplorer_Link.775: > /usr/local/share/gambas2/help/help/help/doc/faq?en > FExplorer.txvExplorer_Link.775: > /usr/local/share/gambas2/help/help/help/doc/diffvb?en > > it seems that there's one intrusive "/help". Strange... Is there other people having the same problem? > > 2) > Renaming project files is always impossible, even when the > project tree has the focus. > When I select a file and try to Rename it, I get this error message: > > Unable to rename ... I will fix that in the next version. > > 3) > It seems that the Gambas2 IDE window doesn't fit completely in > Desktop dimensions, on start up. The scroll bar down arrow > of the project tree is badly displayed and the panStack buttons > are missing. > My English is bad, so please take a look at the attached screenshot. > > After resizing the window and maximizing again, the bug goes away. > Also, I tested that adding these two lines > in FMain Form_Open solves the bug: > > ME.Width = Desktop.Width > ME.Height = Desktop.Height > > My desktop size is 1024x768. I have just fixed this problem! > > Regards, > > Stefano Palmeri Regards, -- Benoit Minisini From gambas at ...1... Wed Jun 14 21:44:17 2006 From: gambas at ...1... (Benoit Minisini) Date: Wed, 14 Jun 2006 21:44:17 +0200 Subject: [Gambas-user] About workspace In-Reply-To: <00840e0dc410b7208f219a98f80d3b94@...40...> References: <1150224519.448f088760308@...1406...> <00840e0dc410b7208f219a98f80d3b94@...40...> Message-ID: <200606142144.17559.gambas@...1...> On Tuesday 13 June 2006 23:49, Lorenzo wrote: > I have the same problem, children windows appears maximized and without > caption, close button and anything... > > > > Perhaps this is a preliminary version of workspace? and ray of light > benoit? > This version of the Workspace will replace the old one, that was based on a buggy Qt widget. I don't want this Workspace to behave the same way than the old one, that imitated the Windows behavior, because I noticed that having windows inside windows generally astound users. So I decided that the windows are always maximized inside a tabstrip. If a window need being resizable, there is a SetResizable() method for that. Regards, -- Benoit Minisini From ronstk at ...239... Wed Jun 14 22:33:34 2006 From: ronstk at ...239... (Ron Onstenk) Date: Wed, 14 Jun 2006 22:33:34 +0200 Subject: [Gambas-user] 1.9.32 little bugs... In-Reply-To: <200606142135.40360.gambas@...1...> References: <200606112120.19670.gambas@...1...> <200606130104.53742.stefanopalmeri@...152...> <200606142135.40360.gambas@...1...> Message-ID: <200606142233.35288.ronstk@...239...> On Wednesday 14 June 2006 21:35, Benoit Minisini wrote: > On Tuesday 13 June 2006 01:04, Stefano Palmeri wrote: > > Hi, Benoit. > > > > Three little notes (bugs?) about the great 1.9.32: > > > > 1) > > Help links are broken. > > From console output: > > > > FExplorer.txvExplorer_Link.775: > > /usr/local/share/gambas2/help/help/help/howto?en > > FExplorer.txvExplorer_Link.775: > > /usr/local/share/gambas2/help/help/help/doc/faq?en > > FExplorer.txvExplorer_Link.775: > > /usr/local/share/gambas2/help/help/help/doc/diffvb?en > > > > it seems that there's one intrusive "/help". > > Strange... Is there other people having the same problem? > I can confirm this problem. In the help itself the same main page stays visible,no error message. At one moment I was in the gb entry, the normal second entry. Could not find the Language entry withou restart gambas Flag, next,up and previous have all thesame error. Is RInstr() search and returning the position from right instead left? > > > > 2) --8<-- found the same other problems > > > > Regards, > > > > Stefano Palmeri > > Regards, > Ron From ronstk at ...239... Wed Jun 14 22:43:47 2006 From: ronstk at ...239... (Ron Onstenk) Date: Wed, 14 Jun 2006 22:43:47 +0200 Subject: [Gambas-user] About workspace In-Reply-To: <200606142144.17559.gambas@...1...> References: <1150224519.448f088760308@...1406...> <00840e0dc410b7208f219a98f80d3b94@...40...> <200606142144.17559.gambas@...1...> Message-ID: <200606142243.47492.ronstk@...239...> On Wednesday 14 June 2006 21:44, Benoit Minisini wrote: > On Tuesday 13 June 2006 23:49, Lorenzo wrote: > > I have the same problem, children windows appears maximized and without > > caption, close button and anything... > > > > > > > > Perhaps this is a preliminary version of workspace? and ray of light > > benoit? > > > > This version of the Workspace will replace the old one, that was based on a > buggy Qt widget. > > I don't want this Workspace to behave the same way than the old one, that > imitated the Windows behavior, because I noticed that having windows inside > windows generally astound users. > > So I decided that the windows are always maximized inside a tabstrip. If a > window need being resizable, there is a SetResizable() method for that. Wish as option in the Tools>Preferences. I do not like it editing Forms in design. The relief option is gone, it hurts on LCD screen, looks fuzzy. Wish option gambas opens always full screen or remember last size/position Note also if apply pressed to see effect the window disappears also the help if it is open :( > > Regards, > From gambas at ...1... Wed Jun 14 23:03:01 2006 From: gambas at ...1... (Benoit Minisini) Date: Wed, 14 Jun 2006 23:03:01 +0200 Subject: [Gambas-user] About workspace In-Reply-To: <200606142243.47492.ronstk@...239...> References: <1150224519.448f088760308@...1406...> <200606142144.17559.gambas@...1...> <200606142243.47492.ronstk@...239...> Message-ID: <200606142303.02355.gambas@...1...> On Wednesday 14 June 2006 22:43, Ron Onstenk wrote: > On Wednesday 14 June 2006 21:44, Benoit Minisini wrote: > > On Tuesday 13 June 2006 23:49, Lorenzo wrote: > > > I have the same problem, children windows appears maximized and without > > > caption, close button and anything... > > > > > > > > > > > > Perhaps this is a preliminary version of workspace? and ray of light > > > benoit? > > > > This version of the Workspace will replace the old one, that was based on > > a buggy Qt widget. > > > > I don't want this Workspace to behave the same way than the old one, that > > imitated the Windows behavior, because I noticed that having windows > > inside windows generally astound users. > > > > So I decided that the windows are always maximized inside a tabstrip. If > > a window need being resizable, there is a SetResizable() method for that. > > Wish as option in the Tools>Preferences. > I do not like it editing Forms in design. > > The relief option is gone, it hurts on LCD screen, looks fuzzy. > Wish option gambas opens always full screen or remember last size/position > Note also if apply pressed to see effect the window disappears also > the help if it is open :( > Sorry, I don't understand what you wrote... -- Benoit Minisini From gambas at ...1... Wed Jun 14 23:15:44 2006 From: gambas at ...1... (Benoit Minisini) Date: Wed, 14 Jun 2006 23:15:44 +0200 Subject: [Gambas-user] indexes in database In-Reply-To: References: Message-ID: <200606142315.44972.gambas@...1...> On Wednesday 14 June 2006 15:42, javier romero wrote: > I need to create a table named "Tabla010" in this table i need to indexed > by name, I have this in my proyect: > > > WITH Mdb > .HCliente=.MysqlDB.Tables.Add(nombre) > .HCliente.Fields.Add("010ruc", gb.String, 11,0) > .HCliente.Fields.Add("010nom", gb.String, 45) > .Hcliente.Fields.Add("010dir", gb.String, 45) > .Hcliente.Fields.Add("010loc", gb.String, 20) > .Hcliente.Fields.Add("010te1", gb.String, 7, 0) > .Hcliente.Fields.Add("010te2", gb.String, 7, 0) > .Hcliente.Fields.Add("010cor", gb.String, 30) > .Hcliente.Fields.Add("010www", gb.String, 30) > .Hcliente.Fields.Add("010fac", gb.String, 1) > .Hcliente.Fields.Add("010rhp", gb.string, 1) > .Hcliente.Fields.Add("010con", gb.String, 45) > .Hcliente.Fields.Add("010car", gb.String, 45) > .Hcliente.Fields.Add("010tce", gb.String, 1, 0) > .Hcliente.Fields.Add("010cel", gb.String, 8, 0) > .Hcliente.Fields.Add("010nex", gb.String, 8, 0) > .Hcliente.Fields.Add("010cop", gb.String, 30) > .Hcliente.Fields.Add("010pdt", gb.String, 14) > .Hcliente.Fields.Add("010usu", gb.String, 8) > .Hcliente.Fields.Add("010cla", gb.String, 9) > .Hcliente.PrimaryKey=["010ruc"] > .Hcliente.Indexes.Add("Alt010_1", "010nom", FALSE) > .HCliente.Update > END WITH > > When run an error sent me and says "Index already exist: Tabla010.Alt010_1" > Why if its a new Table?, when i comment the line > ".Hcliente.Indexes.Add("Alt010_1", "010nom", FALSE)" the Table is created > ok. > > Thanks > Javier There is a bug in the mysql driver that returns that an index exists if the underlying table does not exist. So the error message is false. You must create your index after having created the table, i.e. after having called Mdb.HCLiente.Update. Regards, -- Benoit Minisini From gambas at ...1... Wed Jun 14 23:18:57 2006 From: gambas at ...1... (Benoit Minisini) Date: Wed, 14 Jun 2006 23:18:57 +0200 Subject: [Gambas-user] indexes in database In-Reply-To: <200606142315.44972.gambas@...1...> References: <200606142315.44972.gambas@...1...> Message-ID: <200606142318.57228.gambas@...1...> On Wednesday 14 June 2006 23:15, Benoit Minisini wrote: > > There is a bug in the mysql driver that returns that an index exists if the > underlying table does not exist. So the error message is false. > > You must create your index after having created the table, i.e. after > having called Mdb.HCLiente.Update. > > Regards, It seems that this is a logic design error in all drivers, so it is my fault! I will fix it in both stable and development version. Regards, -- Benoit Minisini From gambas at ...1... Wed Jun 14 23:38:45 2006 From: gambas at ...1... (Benoit Minisini) Date: Wed, 14 Jun 2006 23:38:45 +0200 Subject: [Gambas-user] Compilation of 1.9.32 on Suse 10.0 In-Reply-To: <4b4.2184bc7.31bf529c@...1472...> References: <4b4.2184bc7.31bf529c@...1472...> Message-ID: <200606142338.46139.gambas@...1...> On Tuesday 13 June 2006 01:28, BertOudshoorn at ...1472... wrote: > Version 1.9.17-2 works nice (included with SUSE 10.0), great, thanks Beno?t > ! > > But 1.9.32 ? Installed with Yast most packages which are probably needed... > My ./configure -C results now in (only) 8 components disabled: > - gb.corba > - gb.db.firebird > - gb.db.mysql > - gb.db.odbc > - gb.db.postgresql > - gb.ldap > - gb.net.curl > - gb.pdf > Noticed the released gb.- directories in the download: Compiled the > missing ones, however, no related ".so" files/libs can be found. > Compiled also gb.gt (gb.qt.ext mentioned in the README could not be found, > or is it the gb.qt.kde ?). By the way, gb.pdf is not included in 1.9.32 > (?). > > Noticed some warnings during the configure, make, make install process but > no errors. Tried gambas2, but no activity. Could not find a gambas2.bin > Tried in a konsole: gambas2, but it results in > ERROR: #27 Cannot load component 'gb.form.mdi': cannot find library file > > Thanks, Bert Oudshoorn You should proceed as explained on the website: send the output of the compilation and installation process. gb.pdf is included with 1.9.32. Download the source package again, as I fixed the gb.form.mdi problem in a second upload. Try to redo the compilation from scratch, and check before that you installed all development packages. Regards, -- Benoit Minisini From ronstk at ...239... Wed Jun 14 23:42:57 2006 From: ronstk at ...239... (Ron Onstenk) Date: Wed, 14 Jun 2006 23:42:57 +0200 Subject: [Gambas-user] About workspace In-Reply-To: <200606142303.02355.gambas@...1...> References: <1150224519.448f088760308@...1406...> <200606142243.47492.ronstk@...239...> <200606142303.02355.gambas@...1...> Message-ID: <200606142342.57452.ronstk@...239...> On Wednesday 14 June 2006 23:03, Benoit Minisini wrote: > > > So I decided that the windows are always maximized inside a tabstrip. If > > > a window need being resizable, there is a SetResizable() method for that. > > > > Wish as option in the Tools>Preferences. > > I do not like it editing Forms in design. Is it possible to get in menubar>Tools>Preferences a option to switch behaviour between maximised or normal windows inside tabstrip. > > > > The relief option is gone, it hurts on LCD screen, looks fuzzy. In the past menubar>Tools>Preferences/Other there was a option for Relief. The gambas keywords where accentuated but on my LCD screen it looks unsharp. In .31 this option is active but no place to set it off. > > Wish option gambas opens always full screen or remember last size/position Starting gambas it always open maximized. Wish a option for others to be able to start with last position/size instead maximized. > > Note also if apply pressed to see effect the window disappears also > > the help if it is open :( The apply button in the preference settings. When pressed the window disappears. Also the Help windows disappears with it if open. Try to see the different colour schemes you must every time goto menubar/Tools/Preferences if gambas maximised or at least set the focus to the main window. It should stay on top until closed > > > Hope this is more clear understand Ron From ronstk at ...239... Thu Jun 15 00:08:19 2006 From: ronstk at ...239... (Ron Onstenk) Date: Thu, 15 Jun 2006 00:08:19 +0200 Subject: [Gambas-user] 1.9.32 little bugs... (help part) In-Reply-To: <200606142233.35288.ronstk@...239...> References: <200606112120.19670.gambas@...1...> <200606142135.40360.gambas@...1...> <200606142233.35288.ronstk@...239...> Message-ID: <200606150008.19382.ronstk@...239...> On Wednesday 14 June 2006 22:33, Ron Onstenk wrote: For the help problem The message print is for Language to FExplorer.txvExplorer_Link.775: /opt/gb/share/gambas2/help/help/help/lang?en Note the path /opt/gb/share/gambas2/help/help/help/lang?en {/help/help/help/lang?en is the path fragment of the source} but the files are in /opt/gb/share/gambas2/help/help/lang?en {/help/help/lang?en is the path fragment of the installed} configure with --prefix=/opt/gb from code 267 sPath = sLink 268 iPos = RInStr(sPath, "#") 269 IF iPos THEN sPath = Left(sPath, iPos - 1) 270 IF Exist(sPath) THEN '<--- here it goes woesssssssh 271 $aBack.Push(Where()) 272 txvExplorer.Path = sLink I hope this is more correct info :) Ron From ronstk at ...239... Thu Jun 15 02:19:05 2006 From: ronstk at ...239... (Ron Onstenk) Date: Thu, 15 Jun 2006 02:19:05 +0200 Subject: [Gambas-user] Make executable problem with .32 Message-ID: <200606150219.05839.ronstk@...239...> Make executable problem Using SuSE (not related) Configure --prefix=/opt/gb Running '/opt/gb/bin/gambas2.gambas' as master In home dir copy of /home/ron/src/gambas2-1.9.32/app/src/gambas2 as /home/ron/GBapp/A__source32/gambas2mdi src and GBapp are symlinks to /mnt/hda6/homeEX/ron/ made fresh /home/ron/gb2 (for testing during this mail) copied the source of orginal app/src/gambas2 in it as gambas2mdi Start gambas as created by configure/make/make install in /opt/gb/bin/gambas2.gambas open project /home/ron/gb2/gambas2mdi Do menubar/project/Make executable and stay at /home/ron/gb2/gambas2mdi Correct result and delete the gambas2mdi.gambas file Do menubar/project/Make executable and browse to /home/ron/GBapp/A__source32/gambas2mdi But Gambas see the symlink and goes to /mnt/hda6/homeEX/ron/GBapp/A__source32/gambas2mdi Then I click on save but no gambas2mdi.gambas created at destination. I found it at /home/ron/gb2/gambas2mdi Looks gambas does not respect the chosen path in the file/dir browser. Restart orginal gambas2 and select now project at /home/ron/GBapp/A__source32/gambas2mdi Do menubar/project/Make executable and browse to /home/ron/GBapp/A__source32/gambas2mdi gambas change path to /mnt/hda6/homeEX/ron/GBapp/A__source32/gambas2mdi Then I click on save but no gambas2mdi.gambas created at destination. Found it at nowhere. Also not in /home/ron/gb2/gambas2mdi from previous. To get the executable I need to rename gambas2mdi.gambas to gambas2mdi2.gambas in the filename box. At least it seams to me the name part should be different to the directory name. But changes made in source and try to create again executable needs any time a new name. never overwrites the old one. It did work till and including version .29 (100%). the .30 version never used and with .31 I worked also. For version .32 it is the first time I found this problem. In fact the .29 still works correct. I just try with the .29 engine to make executable of the .32 IDE. Beside warning about the missing gb.form.mdi it creaeded the gambas2mdi.gambas and in /mnt/hda6/homeEX/ron/GBapp/A__source32/gambas2mdi/ !!! Using gba2 (v .32) in /home/ron/GBapp/A__source32/gambas2mdi works correct. The 'IF NOT Exist(Dialog.Path) THEN' before 3--> does not work on symlinks ??? Make executable in '/mnt/hda6/homeEX/ron/GBapp/A__source32/gambas2mdi' (ExecPath) did it in '/home/ron/gb2/gambas2mdi' (sPath) instead of the wished place '/home/ron/GBapp/A__source32/gambas2mdi/' See s.v.p. the #--> marks Greets Ron from project.module: if in 4--> the file.ext (help say: Returns the extension of a file name. ) then ExecPath <> sPath is always true Looks to me ExecPath is/should be the executable path/name without .gambas sPath is as in 1--> Project.Dir &/ Project.Name & ".gambas" ExecPath was the chosen place by me for the result in popup for selecting that place ?? This is with symlink the real path of it. path:/mnt/hda6/homeEX/ron/GBapp/A__source32/gambas2mdi/ !!! fullname:gambas2mdi (without .gambas by 4-->??) sPath however was the path of the same project but the symlink was not expanded to real path during open project. path:/home/ron/GBapp/A__source32/gambas2mdi fullname:gambas2mdi.gambas Question is what is supposed to happen with 4--> ??? PUBLIC FUNCTION MakeExecutable(OPTIONAL bDoNotIncVersion AS Boolean, OPTIONAL bSilent AS Boolean) AS Boolean DIM sExec AS String DIM sPath AS String IF CheckStartupClass() THEN RETURN TRUE 1--> sPath = Project.Dir &/ Project.Name & ".gambas" IF NOT bSilent THEN Dialog.Title = ("Make executable") 2--> Dialog.Path = ExecPath Dialog.Filter = [("Gambas executable files") & " (*.gambas)", ("All files") & " (*)"] IF NOT Exist(Dialog.Path) THEN 3--> Dialog.Path = sPath ENDIF IF Dialog.SaveFile() THEN RETURN TRUE 4--> ExecPath = File.Ext(Dialog.Path, "gambas") ENDIF EXEC ["rm", "-rf", Project.Dir &/ ".gambas.save"] TRY MOVE Project.Dir &/ ".gambas" TO Project.Dir &/ ".gambas.save" IF Compile(TRUE, NOT KeepDebugInfo) THEN RETURN TRUE SetMessage(("Making executable...")) sExec = System.Path &/ "bin/gba" & System.Version & " " & Quote(Project.Dir) & " > " & OUTPUT_FILE & " 2>&1" 'PRINT sExec SHELL sExec WAIT 5--> IF ExecPath <> sPath THEN TRY KILL ExecPath TRY MOVE sPath TO ExecPath ENDIF 'Stat(OUTPUT_FILE) SetMessage(("OK")) 'Compile(TRUE, FALSE) EXEC ["rm", "-rf", Project.Dir &/ ".gambas"] TRY MOVE Project.Dir &/ ".gambas.save" TO Project.Dir &/ ".gambas" IF NOT bDoNotIncVersion THEN INC ReleaseVersion WriteProject(TRUE) END From gbv at ...1076... Thu Jun 15 12:05:16 2006 From: gbv at ...1076... (Guillermo Ballester Valor) Date: Thu, 15 Jun 2006 12:05:16 +0200 Subject: [Gambas-user] Compilation of 1.9.32 on Suse 10.0 In-Reply-To: <4b4.2184bc7.31bf529c@...1472...> References: <4b4.2184bc7.31bf529c@...1472...> Message-ID: <200606151205.18364.gbv@...1076...> Hello, El Martes, 13 de Junio de 2006 01:28, BertOudshoorn at ...1472... escribi?: > Version 1.9.17-2 works nice (included with SUSE 10.0), great, thanks Beno?t > ! > If mirror does his work, tomorow morning (16-Jun) all the rpm components for gambas2 1.9.32 will be in the repository (including new gb.form.mdi). http://ftp.gwdg.de//pub/linux/misc/suser-gbv/rpms/SuSE_10.0 ftp://ftp.gwdg.de//pub/linux/misc/suser-gbv/rpms/SuSE_10.0 I recommend to read the README.gambas2 file in that directory. It is not compatible the gambas package shiped by SuSE with the ones in the repository. Guillermo > But 1.9.32 ? Installed with Yast most packages which are probably needed... > My ./configure -C results now in (only) 8 components disabled: > - gb.corba > - gb.db.firebird > - gb.db.mysql > - gb.db.odbc > - gb.db.postgresql > - gb.ldap > - gb.net.curl > - gb.pdf > Noticed the released gb.- directories in the download: Compiled the > missing ones, however, no related ".so" files/libs can be found. > Compiled also gb.gt (gb.qt.ext mentioned in the README could not be found, > or is it the gb.qt.kde ?). By the way, gb.pdf is not included in 1.9.32 > (?). > > Noticed some warnings during the configure, make, make install process but > no errors. Tried gambas2, but no activity. Could not find a gambas2.bin > Tried in a konsole: gambas2, but it results in > ERROR: #27 Cannot load component 'gb.form.mdi': cannot find library file > > Thanks, Bert Oudshoorn -- Guillermo Ballester Valor gbv at ...1076... Ogijares, Granada SPAIN Public GPG KEY http://www.oxixares.com/~gbv/pubgpg.html #################################################### See World Weather Navigator at http://www.ogimet.com #################################################### From josemlucero at ...626... Thu Jun 15 14:14:31 2006 From: josemlucero at ...626... (jose lucero) Date: Thu, 15 Jun 2006 07:14:31 -0500 Subject: [Gambas-user] bound controls Message-ID: <200606150714.31466.gambas@...913...> Hi, Could someone how bound controls work. I cant seem to find any properties for linking a connection or database to bound controls. i opened the database example in 1.9.32 it works fine, but I still cant find where the data controls are linked to the database From BertOudshoorn at ...1472... Thu Jun 15 16:49:09 2006 From: BertOudshoorn at ...1472... (BertOudshoorn at ...1472...) Date: Thu, 15 Jun 2006 10:49:09 EDT Subject: [Gambas-user] Compilation of 1.9.32 on Suse 10.0 Message-ID: <36d.57de99a.31c2cd65@...1472...> Beno?t and Guillermo, merci beaucoup for the answers. It's working! Indeed, the first upload (missing gb.form.mdi), and the remaining problems (missing headers, libraries for e.g. gb.net.curl - nice for HTTP/FTP, etc) are probably solved to-morrow, via the RPMs. WHat a beautiful product! The (new) examples, the documentation (e.g. for developers). I started 2 weeks ago with linux, apache, vsftpd, perl, g4u, (still php, mysql), and googled "visual basic for linux". Made once an interface (hardware+software) between a zx-spectrum-Z80 and an ibm pc, demonstrated "Visualage for basic" on os/2, played many years flute, but GAMB is a new dimension (know now what NLUUG means, but missed the speach). Will think about a nice example. Regards, Bert Oudshoorn -------------- next part -------------- An HTML attachment was scrubbed... URL: From fidojones at ...805... Thu Jun 15 16:54:58 2006 From: fidojones at ...805... (Lorenzo) Date: Thu, 15 Jun 2006 16:54:58 +0200 Subject: [Gambas-user] About workspace v2 In-Reply-To: <200606142144.17559.gambas@...1...> References: <200606142144.17559.gambas@...1...> Message-ID: <743cb6c4cacaababafe966fffd6b4201@...40...> Ok tabs idea it's not bad. but for example is I decided to make an program like Adobe Photoshop that use MDI and children toolbars; if the tool bars appears as children windows Maximized, where is the MDI? Or for example, like microsoft word every document have a caption title, close button mazimized, and minimized button and you can order in cascaded windows etc. There is not posible to mantain a workspace with childern windows? I think a workspace with mazimized tabstrip is a SDI aplication with a Tabstrip, there aren't any diference. Do you understand me? regards lorenzo On Wed, 14 Jun 2006 21:44:17 +0200, Benoit Minisini wrote: > On Tuesday 13 June 2006 23:49, Lorenzo wrote: >> I have the same problem, children windows appears maximized and without >> caption, close button and anything... >> >> >> >> Perhaps this is a preliminary version of workspace? and ray of light >> benoit? >> > > This version of the Workspace will replace the old one, that was based on > a > buggy Qt widget. > > I don't want this Workspace to behave the same way than the old one, that > imitated the Windows behavior, because I noticed that having windows > inside > windows generally astound users. > > So I decided that the windows are always maximized inside a tabstrip. If a > window need being resizable, there is a SetResizable() method for that. > > Regards, > > -- > Benoit Minisini > > > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Thu Jun 15 19:59:29 2006 From: gambas at ...1... (Benoit Minisini) Date: Thu, 15 Jun 2006 19:59:29 +0200 Subject: [Gambas-user] Make executable problem with .32 In-Reply-To: <200606150219.05839.ronstk@...239...> References: <200606150219.05839.ronstk@...239...> Message-ID: <200606151959.29718.gambas@...1...> On Thursday 15 June 2006 02:19, Ron Onstenk wrote: > Make executable problem > > Using SuSE (not related) Configure --prefix=/opt/gb > Running '/opt/gb/bin/gambas2.gambas' as master > > In home dir > copy of /home/ron/src/gambas2-1.9.32/app/src/gambas2 > as /home/ron/GBapp/A__source32/gambas2mdi > > src and GBapp are symlinks to /mnt/hda6/homeEX/ron/ > > made fresh /home/ron/gb2 (for testing during this mail) > copied the source of orginal app/src/gambas2 in it as gambas2mdi > > Start gambas as created by configure/make/make install in > /opt/gb/bin/gambas2.gambas > > open project > /home/ron/gb2/gambas2mdi > > Do menubar/project/Make executable and stay at > /home/ron/gb2/gambas2mdi > Correct result and delete the gambas2mdi.gambas file > > Do menubar/project/Make executable and browse to > /home/ron/GBapp/A__source32/gambas2mdi > > But Gambas see the symlink and goes to > /mnt/hda6/homeEX/ron/GBapp/A__source32/gambas2mdi > > Then I click on save but no gambas2mdi.gambas created at destination. > I found it at /home/ron/gb2/gambas2mdi > > Looks gambas does not respect the chosen path in the file/dir browser. > > > Restart orginal gambas2 and select now project at > /home/ron/GBapp/A__source32/gambas2mdi > > Do menubar/project/Make executable and browse to > /home/ron/GBapp/A__source32/gambas2mdi > gambas change path to > /mnt/hda6/homeEX/ron/GBapp/A__source32/gambas2mdi > > Then I click on save but no gambas2mdi.gambas created at destination. > Found it at nowhere. Also not in /home/ron/gb2/gambas2mdi from previous. > > To get the executable I need to rename gambas2mdi.gambas to > gambas2mdi2.gambas in the filename box. > At least it seams to me the name part should be different to the directory > name. But changes made in source and try to create again executable needs > any time a new name. never overwrites the old one. > > It did work till and including version .29 (100%). > the .30 version never used and with .31 I worked also. > > For version .32 it is the first time I found this problem. > In fact the .29 still works correct. > I just try with the .29 engine to make executable of the .32 IDE. > Beside warning about the missing gb.form.mdi it creaeded the > gambas2mdi.gambas and in > /mnt/hda6/homeEX/ron/GBapp/A__source32/gambas2mdi/ !!! > > Using gba2 (v .32) in /home/ron/GBapp/A__source32/gambas2mdi works correct. > > The 'IF NOT Exist(Dialog.Path) THEN' before 3--> does not work on symlinks > ??? Make executable in '/mnt/hda6/homeEX/ron/GBapp/A__source32/gambas2mdi' > (ExecPath) did it in '/home/ron/gb2/gambas2mdi' (sPath) > instead of the wished place '/home/ron/GBapp/A__source32/gambas2mdi/' > > See s.v.p. the #--> marks > > Greets Ron > > from project.module: > > if in 4--> the file.ext (help say: Returns the extension of a file name. ) > then ExecPath <> sPath is always true > Looks to me ExecPath is/should be the executable path/name without .gambas > sPath is as in 1--> Project.Dir &/ Project.Name & ".gambas" > > ExecPath was the chosen place by me for the result in popup > for selecting that place ?? This is with symlink the real path of it. > path:/mnt/hda6/homeEX/ron/GBapp/A__source32/gambas2mdi/ !!! > fullname:gambas2mdi (without .gambas by 4-->??) > > sPath however was the path of the same project but the symlink was not > expanded to real path during open project. > path:/home/ron/GBapp/A__source32/gambas2mdi > fullname:gambas2mdi.gambas > > Question is what is supposed to happen with 4--> ??? > > > > PUBLIC FUNCTION MakeExecutable(OPTIONAL bDoNotIncVersion AS Boolean, > OPTIONAL bSilent AS Boolean) AS Boolean > > DIM sExec AS String > DIM sPath AS String > > IF CheckStartupClass() THEN RETURN TRUE > > 1--> sPath = Project.Dir &/ Project.Name & ".gambas" > > IF NOT bSilent THEN > Dialog.Title = ("Make executable") > 2--> Dialog.Path = ExecPath > Dialog.Filter = [("Gambas executable files") & " (*.gambas)", ("All > files") & " (*)"] IF NOT Exist(Dialog.Path) THEN > 3--> Dialog.Path = sPath > ENDIF > IF Dialog.SaveFile() THEN RETURN TRUE > 4--> ExecPath = File.Ext(Dialog.Path, "gambas") > ENDIF > > EXEC ["rm", "-rf", Project.Dir &/ ".gambas.save"] > TRY MOVE Project.Dir &/ ".gambas" TO Project.Dir &/ ".gambas.save" > > IF Compile(TRUE, NOT KeepDebugInfo) THEN RETURN TRUE > > SetMessage(("Making executable...")) > > sExec = System.Path &/ "bin/gba" & System.Version & " " & > Quote(Project.Dir) & " > " & OUTPUT_FILE & " 2>&1" > > 'PRINT sExec > > SHELL sExec WAIT > 5--> IF ExecPath <> sPath THEN > TRY KILL ExecPath > TRY MOVE sPath TO ExecPath > ENDIF > > 'Stat(OUTPUT_FILE) > SetMessage(("OK")) > > > 'Compile(TRUE, FALSE) > EXEC ["rm", "-rf", Project.Dir &/ ".gambas"] > TRY MOVE Project.Dir &/ ".gambas.save" TO Project.Dir &/ ".gambas" > > IF NOT bDoNotIncVersion THEN INC ReleaseVersion > WriteProject(TRUE) > > END > The problem comes from the following line: TRY MOVE sPath TO ExecPath It tries to silently move the executable path from the place it is compiled in (inside the project) to the place selected by the user. But this does not work if ExecPath is not on the same device (hd partition) than sPath! I fixed that by replacing this line by: TRY COPY sPath TO ExecPath IF NOT ERROR THEN TRY KILL sPath As for File.Ext() with two parameters, it does not return the file extension, but the complete path with a new extension specified as second parameter. To prevent the confusion, I have replaced this syntax by new methods: File.SetExt, File.SetName, File.SetDir, File.SetBaseName. It is clearer! Regards, -- Benoit Minisini From gambas at ...1... Thu Jun 15 20:00:43 2006 From: gambas at ...1... (Benoit Minisini) Date: Thu, 15 Jun 2006 20:00:43 +0200 Subject: [Gambas-user] (no subject) In-Reply-To: References: Message-ID: <200606152000.43389.gambas@...1...> On Tuesday 13 June 2006 15:16, javier romero wrote: > Hi, > > I have a doubt, when i push "close form" button in the form upper right the > "X" button, the form is not closed, it disappears the form, but it seems to > be even running and waiting to push the red button in the gambas IDE or > open another window then just close the form > > When i used the "close"option in the control of the form, left upper, on > the form, its close ok or when i use in a button "me.close" works > correctly. > > Thanks > Javier This is the normal behaviour if your form has the Persistent property set to TRUE. Is it the case? -- Benoit Minisini From gambas at ...1... Thu Jun 15 23:00:33 2006 From: gambas at ...1... (Benoit Minisini) Date: Thu, 15 Jun 2006 23:00:33 +0200 Subject: [Gambas-user] prb:Left() does not work correct. In-Reply-To: <200605090256.25910.ronstk@...239...> References: <200604232329.16829.ronstk@...239...> <200605082223.57230.gambas@...1...> <200605090256.25910.ronstk@...239...> Message-ID: <200606152300.33855.gambas@...1...> On Tuesday 09 May 2006 02:56, ron wrote: > On Monday 08 May 2006 22:23, Benoit Minisini wrote: > > Can you send me your project, or better, can you isolate the bug and send > > me a stripped project that reproduce the bug? > > > > Thanks in advance. > > > > Regards, > > Ok here it is in very stripped form > On the bottom of the form is told what to do. > > Happy programming, > > Ron Is this problem fixed? -- Benoit Minisini From gambas at ...1... Thu Jun 15 23:03:19 2006 From: gambas at ...1... (Benoit Minisini) Date: Thu, 15 Jun 2006 23:03:19 +0200 Subject: [Gambas-user] Drawing In-Reply-To: References: Message-ID: <200606152303.22454.gambas@...1...> On Thursday 04 May 2006 11:27, Timothy Marshal-Nichols wrote: > > > If a kind people could make a little example of printing, I will > > > put it with > > > the other Gambas examples :-) > > > > > > Regards, > > > > > > -- > > > Benoit Minisini > > > > -----Original Message----- > > From: gambas-user-admin at lists.sourceforge.net > > [mailto:gambas-user-admin at lists.sourceforge.net]On Behalf Of javier > > romero > > Sent: Wednesday, 03 May 2006 21:55 > > To: gambas-user at lists.sourceforge.net > > Subject: RE: [Gambas-user] Drawing > > > > > > Hi, I try to run your example in Gambas 1.0.15, but it does'nt works. > > The first time say me the form is not proper to use in this > > version. After that when run, no buttons appers, only the tab > > stripan there is not way to probe the example. > > > > Regards > > Javier > > The example printing project was created in Gambas 2. This what Gambas 1 > does to any Gambas 2 project ? not just this project. You may have guessed > this, as the attachment name was ?Printing.Gambas2.V0.0.1.tar? > > In general when you open a version 2 project in version 1 you need to: > 1. Save every file again. This includes every class, form and module. You > properly also need to save the hidden .project file. > 2. On a form Gambas 1 and Gambas 2 use different method of positioning > controls. You will need to move the controls and resize the form. See the > comments in the emails for "Incorrect property value" > However I have saved you the trouble of doing it in this case as I have > attached a Gambas 1 version to this email. This is called > ?Printing.Gambas1.V0.0.2.tar? > > I have made a few small changes to the example. But they are only changes > to the comments ? not to the code. This is called > ?Printing.Gambas2.V0.0.2.tar? . > > > > ALSO I ASKED A QUESTION IN MY ORIGINAL EMAIL. I WAS HOPING FOR AN ANSWER. I > THINK THIS IS A BUG WITH GAMBAS VERSION 1 AND 2: > > > > There is one problem. This is with the drawing of a SVG file. When you call > Draw.Drawing it always draws the SVG file at the same size. For example the > following: > Draw.Drawing(SVGDrawing, 10, 10, 110, 110) > and > Draw.Drawing(SVGDrawing, 10, 10, 210, 210) > produces drawings at the original size of the drawing. The help says you > setting the width and height should scale the drawing. Setting the width > and height appears to have no effect. This means when printing you always > get a thumbnail whether you want it or not. > > (You could convert to a Picture, then a Image, then scale, then print. But > this would not scale very well for printing.) > > At first the thought this was just a problem with the version of gambas I > was using (1.9.17). But I also created a version of this project in the > stable version Gambas 1.0.15. The problem also appears to be in that > version also. So now I am now thinking the bug is in both versions 1 and 2 > of Gambas. > > Try out the example. In ModulePrinting look at the procedure PrintDrawing. > If you uncomment the line Draw.Rect... you can see the size the SVG size > should print out at. > > 8-{)} Timothy Marshal-Nichols > Do the new Draw syntaxes of 1.9.32 meet your needs? Can you update your printing examples with them? Regards, -- Benoit Minisini From ronstk at ...239... Fri Jun 16 00:42:51 2006 From: ronstk at ...239... (Ron Onstenk) Date: Fri, 16 Jun 2006 00:42:51 +0200 Subject: [Gambas-user] prb:Left() does not work correct. In-Reply-To: <200606152300.33855.gambas@...1...> References: <200604232329.16829.ronstk@...239...> <200605090256.25910.ronstk@...239...> <200606152300.33855.gambas@...1...> Message-ID: <200606160042.52094.ronstk@...239...> On Thursday 15 June 2006 23:00, Benoit Minisini wrote: > On Tuesday 09 May 2006 02:56, ron wrote: > > On Monday 08 May 2006 22:23, Benoit Minisini wrote: > > > Can you send me your project, or better, can you isolate the bug and send > > > me a stripped project that reproduce the bug? > > > > > > Thanks in advance. > > > > > > Regards, > > > > Ok here it is in very stripped form > > On the bottom of the form is told what to do. > > > > Happy programming, > > > > Ron > > Is this problem fixed? > No, The problem is in 1.9.32 still there. I have redone the sample to try make it more clear. If the tag used for Left(control.tag) is not the .tag of the FIRST control on the form the .tag value is not taken. And all other tags of remaining controls too. PUBLIC FUNCTION Init(parent AS Form) AS Boolean DIM idx AS Integer DIM frm AS Form DIM ctrl AS Control DIM t AS String txtResult = "" frm = parent FOR EACH ctrl IN frm.Children PRINT ctrl.Tag IF UseTmpString = TRUE THEN t = ctrl.tag IF Left(t, 4) = "bind" THEN '<--------------- this works YES checktag(ctrl) END IF ELSE IF Left(ctrl.tag, 4) = "bind" THEN '<-------- this works NOT checktag(ctrl) END IF END IF NEXT RETURN TRUE END Sorry but the .Tag is not always save to use. Ron -------------- next part -------------- A non-text attachment was scrubbed... Name: lefttest.tar.bz2 Type: application/x-tbz Size: 5001 bytes Desc: not available URL: From ronstk at ...239... Fri Jun 16 00:50:04 2006 From: ronstk at ...239... (Ron Onstenk) Date: Fri, 16 Jun 2006 00:50:04 +0200 Subject: [Gambas-user] bound controls In-Reply-To: <200606150714.31466.gambas@...913...> References: <200606150714.31466.gambas@...913...> Message-ID: <200606160050.05101.ronstk@...239...> On Thursday 15 June 2006 14:14, jose lucero wrote: > Hi, > Could someone how bound controls work. > I cant seem to find any properties for linking a connection or database to > bound controls. > i opened the database example in 1.9.32 it works fine, but I still cant find > where the data controls are linked to the database > > When I do it understand it right, when using the gb.db.form components the first made connection to a database engine will be picked up by the gambas runtime as datasource connection. The gb.db provides the static DB object that give you the user interface. Open as project the gb.db.form. In Module Main, the one that start the project you can find the connection parameters, now .type=mysql and database .name=test are used. ------------- PRIVATE $hConn AS NEW Connection PUBLIC SUB Main() $hConn.Type = "mysql" '$hConn.User = "root" $hConn.Name = "test" '$hConn.Host = "/home/benoit" 'DB.Debug = TRUE FMain.Show END ------------- Place in your own project the same module (Main) to start with. Edit the .type and .name as you do need. Of course the 'FMain.Show' should be your main form. The main link from user view is the DataSource container control. All the other controls must placed inside the DataSource container. They are then bound to where DataSource.Table is pointing to. The DataCombo has his own property .Table and .Field but uses the same connection. The DataBrowser has a property .Columns, here you need the field names as in the table. But for me it was also a puzzle and I stopped to use it. Main reason the data is comming from several different databases. and the field source for the DataCombo and other controls are not sufficient for me to handle large tables. I can't use: SELECT `member_postal_address` AS Address FROM `fantasy_table` WHERE `enabled`=true ORDER BY `member_postal_address`,`TimeStamp` DESC LIMIT 10" to get only the last 10 valid entered records for a DataCombo i.e. This must be done on client side in the gambas program. Reading 10000 records, check timestamp is valid, add to array and when done sorting the array (this goes quick) regards, Ron From ronstk at ...239... Fri Jun 16 00:50:43 2006 From: ronstk at ...239... (Ron Onstenk) Date: Fri, 16 Jun 2006 00:50:43 +0200 Subject: [Gambas-user] Make executable problem with .32 In-Reply-To: <200606151959.29718.gambas@...1...> References: <200606150219.05839.ronstk@...239...> <200606151959.29718.gambas@...1...> Message-ID: <200606160050.43906.ronstk@...239...> On Thursday 15 June 2006 19:59, Benoit Minisini wrote: > On Thursday 15 June 2006 02:19, Ron Onstenk wrote: > > Make executable problem --8<--- > > 5--> IF ExecPath <> sPath THEN > > TRY KILL ExecPath > > TRY MOVE sPath TO ExecPath > > ENDIF > > > > 'Stat(OUTPUT_FILE) > > SetMessage(("OK")) > > > > > > 'Compile(TRUE, FALSE) > > EXEC ["rm", "-rf", Project.Dir &/ ".gambas"] > > TRY MOVE Project.Dir &/ ".gambas.save" TO Project.Dir &/ ".gambas" > > > > IF NOT bDoNotIncVersion THEN INC ReleaseVersion > > WriteProject(TRUE) > > > > END > > > > The problem comes from the following line: > > TRY MOVE sPath TO ExecPath > > It tries to silently move the executable path from the place it is compiled in > (inside the project) to the place selected by the user. > > But this does not work if ExecPath is not on the same device (hd partition) > than sPath! I fixed that by replacing this line by: > > TRY COPY sPath TO ExecPath > IF NOT ERROR THEN TRY KILL sPath OK, I'm not happy see ghosts playing with my stuff :) > > As for File.Ext() with two parameters, it does not return the file extension, > but the complete path with a new extension specified as second parameter. > > To prevent the confusion, I have replaced this syntax by new methods: > File.SetExt, File.SetName, File.SetDir, File.SetBaseName. It is clearer! Sounds (types) Good > > Regards, > From timothy.marshal-nichols at ...247... Fri Jun 16 07:10:58 2006 From: timothy.marshal-nichols at ...247... (Timothy Marshal-Nichols) Date: Fri, 16 Jun 2006 06:10:58 +0100 Subject: [Gambas-user] Drawing In-Reply-To: <200606152303.22454.gambas@...1...> Message-ID: > -----Original Message----- > From: gambas-user-bounces at lists.sourceforge.net > [mailto:gambas-user-bounces at lists.sourceforge.net]On Behalf Of Benoit > Minisini > Sent: Thursday, 15 June 2006 22:03 > To: gambas-user at lists.sourceforge.net > Subject: Re: [Gambas-user] Drawing > > > On Thursday 04 May 2006 11:27, Timothy Marshal-Nichols wrote: > > > > If a kind people could make a little example of printing, I will > > > > put it with > > > > the other Gambas examples :-) > > > > > > > > Regards, > > > > > > > > -- > > > > Benoit Minisini > > > > > > -----Original Message----- > > > From: gambas-user-admin at lists.sourceforge.net > > > [mailto:gambas-user-admin at lists.sourceforge.net]On Behalf Of javier > > > romero > > > Sent: Wednesday, 03 May 2006 21:55 > > > To: gambas-user at lists.sourceforge.net > > > Subject: RE: [Gambas-user] Drawing > > > > > > > > > Hi, I try to run your example in Gambas 1.0.15, but it does'nt works. > > > The first time say me the form is not proper to use in this > > > version. After that when run, no buttons appers, only the tab > > > stripan there is not way to probe the example. > > > > > > Regards > > > Javier > > > > The example printing project was created in Gambas 2. This what Gambas 1 > > does to any Gambas 2 project ? not just this project. You may > have guessed > > this, as the attachment name was ?Printing.Gambas2.V0.0.1.tar? > > > > In general when you open a version 2 project in version 1 you need to: > > 1. Save every file again. This includes every class, form and > module. You > > properly also need to save the hidden .project file. > > 2. On a form Gambas 1 and Gambas 2 use different method of positioning > > controls. You will need to move the controls and resize the > form. See the > > comments in the emails for "Incorrect property value" > > However I have saved you the trouble of doing it in this case as I have > > attached a Gambas 1 version to this email. This is called > > ?Printing.Gambas1.V0.0.2.tar? > > > > I have made a few small changes to the example. But they are > only changes > > to the comments ? not to the code. This is called > > ?Printing.Gambas2.V0.0.2.tar? . > > > > > > > > ALSO I ASKED A QUESTION IN MY ORIGINAL EMAIL. I WAS HOPING FOR > AN ANSWER. I > > THINK THIS IS A BUG WITH GAMBAS VERSION 1 AND 2: > > > > > > > > There is one problem. This is with the drawing of a SVG file. > When you call > > Draw.Drawing it always draws the SVG file at the same size. For > example the > > following: > > Draw.Drawing(SVGDrawing, 10, 10, 110, 110) > > and > > Draw.Drawing(SVGDrawing, 10, 10, 210, 210) > > produces drawings at the original size of the drawing. The help says you > > setting the width and height should scale the drawing. Setting the width > > and height appears to have no effect. This means when printing > you always > > get a thumbnail whether you want it or not. > > > > (You could convert to a Picture, then a Image, then scale, then > print. But > > this would not scale very well for printing.) > > > > At first the thought this was just a problem with the version > of gambas I > > was using (1.9.17). But I also created a version of this project in the > > stable version Gambas 1.0.15. The problem also appears to be in that > > version also. So now I am now thinking the bug is in both > versions 1 and 2 > > of Gambas. > > > > Try out the example. In ModulePrinting look at the procedure > PrintDrawing. > > If you uncomment the line Draw.Rect... you can see the size the SVG size > > should print out at. > > > > 8-{)} Timothy Marshal-Nichols > > > > Do the new Draw syntaxes of 1.9.32 meet your needs? Can you update your > printing examples with them? > > Regards, > > -- > Benoit Minisini > > > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user Looks like a nice change. Many thanks for your time and effort. I shall update the example ASAP. Thanks 8-{)} Timothy Marshal-Nichols From cjro99 at ...67... Fri Jun 16 15:05:26 2006 From: cjro99 at ...67... (javier romero) Date: Fri, 16 Jun 2006 13:05:26 +0000 Subject: [Gambas-user] (no subject) Message-ID: No, the persistant is FALSE Regards, Javier ---------------------------------------- > From: gambas at ...1... > To: gambas-user at lists.sourceforge.net > Date: Thu, 15 Jun 2006 20:00:43 +0200 > Subject: Re: [Gambas-user] (no subject) > > On Tuesday 13 June 2006 15:16, javier romero wrote: > > Hi, > > > > I have a doubt, when i push "close form" button in the form upper right the > > "X" button, the form is not closed, it disappears the form, but it seems to > > be even running and waiting to push the red button in the gambas IDE or > > open another window then just close the form > > > > When i used the "close"option in the control of the form, left upper, on > > the form, its close ok or when i use in a button "me.close" works > > correctly. > > > > Thanks > > Javier > > This is the normal behaviour if your form has the Persistent property set to > TRUE. Is it the case? > > -- > Benoit Minisini > > > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user _________________________________________________________________ Puedes estar entre los primeros en probar el futuro de la mensajer?a: prueba la versi?n beta de Windows Live Messenger http://ideas.live.com/programpage.aspx?versionId=0eccd94b-eb48-497c-8e60-c6313f7ebb73 From nando_f at ...1382... Fri Jun 16 17:17:12 2006 From: nando_f at ...1382... (nando) Date: Fri, 16 Jun 2006 11:17:12 -0400 Subject: [Gambas-user] (no subject) In-Reply-To: References: Message-ID: <20060616151547.M68182@...1382...> I have the exact same thing with two of my apps. I cannot figure out what is still loaded even after all the forms are closed. ---------- Original Message ----------- From: "javier romero" To: "mailing list for gambas users" Sent: Fri, 16 Jun 2006 13:05:26 +0000 Subject: Re: [Gambas-user] (no subject) > No, the persistant is FALSE > > Regards, > Javier > > ---------------------------------------- > > From: gambas at ...1... > > To: gambas-user at lists.sourceforge.net > > Date: Thu, 15 Jun 2006 20:00:43 +0200 > > Subject: Re: [Gambas-user] (no subject) > > > > On Tuesday 13 June 2006 15:16, javier romero wrote: > > > Hi, > > > > > > I have a doubt, when i push "close form" button in the form upper right the > > > "X" button, the form is not closed, it disappears the form, but it seems to > > > be even running and waiting to push the red button in the gambas IDE or > > > open another window then just close the form > > > > > > When i used the "close"option in the control of the form, left upper, on > > > the form, its close ok or when i use in a button "me.close" works > > > correctly. > > > > > > Thanks > > > Javier > > > > This is the normal behaviour if your form has the Persistent property set to > > TRUE. Is it the case? > > > > -- > > Benoit Minisini > > > > > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > _________________________________________________________________ > Puedes estar entre los primeros en probar el futuro de la mensajer?a: > prueba la versi?n beta de Windows Live Messenger > http://ideas.live.com/programpage.aspx?versionId=0eccd94b-eb48-497c- > 8e60-c6313f7ebb73 > > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From gambas at ...1... Fri Jun 16 19:46:46 2006 From: gambas at ...1... (Benoit Minisini) Date: Fri, 16 Jun 2006 19:46:46 +0200 Subject: [Gambas-user] (no subject) In-Reply-To: <20060616151547.M68182@...1382...> References: <20060616151547.M68182@...1382...> Message-ID: <200606161946.46591.gambas@...1...> On Friday 16 June 2006 17:17, nando wrote: > I have the exact same thing with two of my apps. > I cannot figure out what is still loaded even after all the forms > are closed. > It can be a variable holding a reference to the form. Even if it is closed, it is not destroyed yet. -- Benoit Minisini From gambas.fr at ...626... Fri Jun 16 19:59:03 2006 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 16 Jun 2006 21:59:03 +0400 Subject: [Gambas-user] About workspace In-Reply-To: <200606142342.57452.ronstk@...239...> References: <1150224519.448f088760308@...1406...> <200606142243.47492.ronstk@...239...> <200606142303.02355.gambas@...1...> <200606142342.57452.ronstk@...239...> Message-ID: <6324a42a0606161059j51d82e8ai1fd8dda8621970f8@...627...> For Benoit: You need to allow at less multiple selection tab... to allow to show two windows in same time... In fact me too .. i don't really like this new mdi style... but .. you already know that :). Fabien 2006/6/15, Ron Onstenk : > > On Wednesday 14 June 2006 23:03, Benoit Minisini wrote: > > > > So I decided that the windows are always maximized inside a > tabstrip. If > > > > a window need being resizable, there is a SetResizable() method for > that. > > > > > > Wish as option in the Tools>Preferences. > > > I do not like it editing Forms in design. > > Is it possible to get in menubar>Tools>Preferences a option to switch > behaviour > between maximised or normal windows inside tabstrip. > > > > > > > > The relief option is gone, it hurts on LCD screen, looks fuzzy. > > In the past menubar>Tools>Preferences/Other there was a option for Relief. > The gambas keywords where accentuated but on my LCD screen it looks > unsharp. > In .31 this option is active but no place to set it off. > > > > Wish option gambas opens always full screen or remember last > size/position > Starting gambas it always open maximized. > Wish a option for others to be able to start with last position/size > instead > maximized. > > > > Note also if apply pressed to see effect the window disappears also > > > the help if it is open :( > The apply button in the preference settings. When pressed the window > disappears. > Also the Help windows disappears with it if open. > Try to see the different colour schemes you must every time goto > menubar/Tools/Preferences > if gambas maximised or at least set the focus to the main window. > > It should stay on top until closed > > > > > > > > Hope this is more clear understand > > Ron > > > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ronstk at ...239... Fri Jun 16 21:04:08 2006 From: ronstk at ...239... (Ron Onstenk) Date: Fri, 16 Jun 2006 21:04:08 +0200 Subject: [Gambas-user] About workspace In-Reply-To: <6324a42a0606161059j51d82e8ai1fd8dda8621970f8@...627...> References: <1150224519.448f088760308@...1406...> <200606142342.57452.ronstk@...239...> <6324a42a0606161059j51d82e8ai1fd8dda8621970f8@...627...> Message-ID: <200606162104.08366.ronstk@...239...> On Friday 16 June 2006 19:59, Fabien Bodard wrote: > For Benoit: > > You need to allow at less multiple selection tab... to allow to show two > windows in same time... > > In fact me too .. i don't really like this new mdi style... but .. you > already know that :). > > Fabien > > Hi Fabien, In fact I do like the mdi in general, only not all the behaviours it is currently having. I was one of the requesters in the past for it. I know also this is the developer version and Benoit must try things how well it is accepted by the users. That is called development. The users can give ideas, comments and complains on it and Benoit can improve it. Personal I do not dislike the tabbed editor, but the fixed maximise of it. What I miss is a second editor/viewer open with another class file as reference during typing code. i.e. a user defined data type in a class with explanations what all the entries mean. Having the *.h file open during creation of the *.cpp file. In this case the always maximized is not good. Another point is the editor splitted so you can peek in the head of the file you are creating the globals of that file. I have seen Benoit has some ideas about it to implement this. The personal version (.29) I use already has it in readonly mode. The only real complain I have is the form editor also in the editor tabs. I like sometimes viewing the form beside the code at initial start a new form. As comment I miss a border on the Sidepanel. At least the bar with the buttons should have one visible. Now it is sometimes a big gray mass and need searching the tiny arrows :) Looking forward with trust in Benoit is doing well. Ron -------------- next part -------------- A non-text attachment was scrubbed... Name: my-editor.jpg Type: image/jpeg Size: 86409 bytes Desc: not available URL: From ronstk at ...239... Sat Jun 17 19:30:01 2006 From: ronstk at ...239... (Ron Onstenk) Date: Sat, 17 Jun 2006 19:30:01 +0200 Subject: [Gambas-user] prb:circular references detected Message-ID: <200606171930.02057.ronstk@...239...> on close of my project I see in console: WARNING: circular references detected FToolBar (6) CGridEditor (1) Fmain (1) ToolPanelContainer (0) FSidePanel (0) ToolPanel (0) SidePanel (0) Where to look? CGridEditor is a class to handle the GridView on FMain FToolBar is from ToolPanel and contains 6 tabs Each tab has a ListView The count is the same as ListViews/Tabs Adding or removing change the number. The 1 on CGridEditor I do have idea how it comes but no clue where it occurs. For sure bad programming :) The ToolPanel is the one for wich I do not have any idea. Is there a way to get more info from gambas? I assume there is a reference in the reference to where it is referenced :) From timothy.marshal-nichols at ...247... Sun Jun 18 19:38:57 2006 From: timothy.marshal-nichols at ...247... (Timothy Marshal-Nichols) Date: Sun, 18 Jun 2006 18:38:57 +0100 Subject: [Gambas-user] Drawing In-Reply-To: <200606152303.22454.gambas@...1...> Message-ID: > > Do the new Draw syntaxes of 1.9.32 meet your needs? Can you update your > printing examples with them? > > Regards, > > -- > Benoit Minisini > > > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user The drawing changes work very well. Thanks. I have update the printing example for Gambas 1.9.32. There was not that much that needed changing. I have also added some small additions to the example. The updated version is attached. Now if you could stop my printer sheet feeder crunching up paper! :-) Thanks 8-{)} Timothy Marshal-Nichols > > -------------- next part -------------- A non-text attachment was scrubbed... Name: Printing.Gambas2.V0.0.3.tar Type: application/x-tar Size: 61440 bytes Desc: not available URL: From ronstk at ...239... Sun Jun 18 19:56:32 2006 From: ronstk at ...239... (Ron Onstenk) Date: Sun, 18 Jun 2006 19:56:32 +0200 Subject: [Gambas-user] Drawing In-Reply-To: References: Message-ID: <200606181956.32950.ronstk@...239...> Just looking in the ModulePrinting.module You have in PrintText() Draw.Font = TextFont ' Calc height of each line of text fontHeight = Draw.TextHeight("DEMO") <--- use "DEMOgy" pagePosition = 0 FOR EACH textLine IN Split(Text, "\n") If .TextHeight return the real height of the _Font_ then it does not really matters if you use "demo" or "DEMO" If there is a check on the used height for the example text given then the lowercase "gy" count also for height. Just in case :0 Ron From framedownunder at ...626... Mon Jun 19 18:50:09 2006 From: framedownunder at ...626... (frame down under) Date: Mon, 19 Jun 2006 18:50:09 +0200 Subject: [Gambas-user] How do I delete a control on scrollview the correct way? In-Reply-To: <200606080852.37874.ronstk@...239...> References: <200606060853.24035.ronstk@...239...> <7259b5ae0606060528j346a7c9ei8282c8157352f44d@...627...> <200606080852.37874.ronstk@...239...> Message-ID: <82b5035a0606190950i9f23587h31ab92b8775a9ad9@...627...> this explains a lot of trouble i had with forms not updating correctly. thanks for the clear explanation, ron and benoit. cheers From ronstk at ...239... Tue Jun 20 09:47:08 2006 From: ronstk at ...239... (Ron Onstenk) Date: Tue, 20 Jun 2006 09:47:08 +0200 Subject: [Gambas-user] How do I delete a control on scrollview the correct way? In-Reply-To: <82b5035a0606190950i9f23587h31ab92b8775a9ad9@...627...> References: <200606060853.24035.ronstk@...239...> <200606080852.37874.ronstk@...239...> <82b5035a0606190950i9f23587h31ab92b8775a9ad9@...627...> Message-ID: <200606200947.08676.ronstk@...239...> On Monday 19 June 2006 18:50, frame down under wrote: > this explains a lot of trouble i had with forms not updating correctly. > > thanks for the clear explanation, ron and benoit. > > cheers > Please do take note the misbehaviour in my project design. I use a frame on a scrollview to represent something. When I need those somethings I look in the scrollview.children for the information related to something and take action on it. This is missuse of the screen objects. The real information should collected in my/your program in arrays, collections or other way and NOT into the controls .Tag as I (did) use. Changing this is in progress :) In my program a button did delete the frame and after that update the scrollview with the new information available. And that information was the content of the not yet updated scrollview. If I had used the .Visible or .Enable I had not discover it. The properties are working correct but the object is a real other thing. In VB this was allowed because it is multi tread and gambas is not. I think you must assume, to be safe, the visible screen content is updated as the interpreter finish all program loops and go in idle state, waiting the user does something new. You can see this visual if you use breakpoints and single step through your program. The window on the screen is not repainted inside. From dcamposf at ...626... Wed Jun 21 19:01:11 2006 From: dcamposf at ...626... (Daniel Campos) Date: Wed, 21 Jun 2006 19:01:11 +0200 Subject: [Gambas-user] Guadec 2006 / Gambas Message-ID: <7259b5ae0606211001k4a91ad86of3d9546e6e6b18c4@...627...> Hi: Just to inform to those interested (and able to be there:-), that will make a brief talk in Guadec 2006 (Vilanova i la Geltr?, Barcelona) about two projects related with the gnuLinEx technical developent: Gambas and Futura (in Spanish). It will be on June Saturday,24 at 17:45 h Regards, D. Campos -------------- next part -------------- An HTML attachment was scrubbed... URL: From katsancat at ...11... Wed Jun 21 19:54:11 2006 From: katsancat at ...11... (Bertrand-Xavier M.) Date: Wed, 21 Jun 2006 19:54:11 +0200 Subject: [Gambas-user] Guadec 2006 / Gambas In-Reply-To: <7259b5ae0606211001k4a91ad86of3d9546e6e6b18c4@...627...> References: <7259b5ae0606211001k4a91ad86of3d9546e6e6b18c4@...627...> Message-ID: <200606211954.11496.katsancat@...11...> Hi Daniel, It would be a real great pleasure to come in Barcelona, unfortunately... But here's one question: what is Futura? On Wednesday 21 June 2006 19:01, Daniel Campos wrote: > Hi: > > Just to inform to those interested (and able to be there:-), that will make > a brief talk in Guadec 2006 (Vilanova i la Geltr?, Barcelona) about two > projects related with the gnuLinEx technical developent: Gambas and > Futura (in Spanish). > > It will be on June Saturday,24 at 17:45 h > > Regards, > > D. Campos From lordheavy at ...512... Wed Jun 21 19:52:50 2006 From: lordheavy at ...512... (Laurent Carlier) Date: Wed, 21 Jun 2006 19:52:50 +0200 Subject: [Gambas-user] Guadec 2006 / Gambas In-Reply-To: <200606211954.11496.katsancat@...11...> References: <7259b5ae0606211001k4a91ad86of3d9546e6e6b18c4@...627...> <200606211954.11496.katsancat@...11...> Message-ID: <200606211952.50761.lordheavy@...512...> Le Mercredi 21 Juin 2006 19:54, Bertrand-Xavier M. a ?crit?: > Hi Daniel, > It would be a real great pleasure to come in Barcelona, unfortunately... > But here's one question: what is Futura? > here ? http://guadec.org/node/420 (many thanks to google ;-) ) Regards, -- jabber : lordheavy at ...943... mail : lordheavymREMOVEME at ...626... From dcamposf at ...626... Wed Jun 21 20:33:54 2006 From: dcamposf at ...626... (Daniel Campos) Date: Wed, 21 Jun 2006 20:33:54 +0200 Subject: [Gambas-user] Guadec 2006 / Gambas In-Reply-To: <200606211952.50761.lordheavy@...512...> References: <7259b5ae0606211001k4a91ad86of3d9546e6e6b18c4@...627...> <200606211954.11496.katsancat@...11...> <200606211952.50761.lordheavy@...512...> Message-ID: <7259b5ae0606211133r62e720emb3e26ddabe0f2cc1@...627...> Detailed information here: http://forjamari.linex.org/docman/view.php/54/37/futura.pdf Daniel 2006/6/21, Laurent Carlier : > > Le Mercredi 21 Juin 2006 19:54, Bertrand-Xavier M. a ?crit: > > Hi Daniel, > > It would be a real great pleasure to come in Barcelona, unfortunately... > > But here's one question: what is Futura? > > > > here ? http://guadec.org/node/420 (many thanks to google ;-) ) > > Regards, > > -- > jabber : lordheavy at ...943... > mail : lordheavymREMOVEME at ...626... > > All the advantages of Linux Managed Hosting--Without the Cost and Risk! > Fully trained technicians. The highest number of Red Hat certifications in > the hosting industry. Fanatical Support. Click to learn more > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -------------- next part -------------- An HTML attachment was scrubbed... URL: From katsancat at ...11... Wed Jun 21 22:00:53 2006 From: katsancat at ...11... (Bertrand-Xavier M.) Date: Wed, 21 Jun 2006 22:00:53 +0200 Subject: [Gambas-user] Guadec 2006 / Gambas In-Reply-To: <7259b5ae0606211133r62e720emb3e26ddabe0f2cc1@...627...> References: <7259b5ae0606211001k4a91ad86of3d9546e6e6b18c4@...627...> <200606211952.50761.lordheavy@...512...> <7259b5ae0606211133r62e720emb3e26ddabe0f2cc1@...627...> Message-ID: <200606212200.53847.katsancat@...11...> Ok thanks. Google is great; on the other hand it's nice to discuss with real persons it's obvious for some. On Wednesday 21 June 2006 20:33, Daniel Campos wrote: > Detailed information here: > > http://forjamari.linex.org/docman/view.php/54/37/futura.pdf > > Daniel > > 2006/6/21, Laurent Carlier : > > Le Mercredi 21 Juin 2006 19:54, Bertrand-Xavier M. a ?crit: > > > Hi Daniel, > > > It would be a real great pleasure to come in Barcelona, > > > unfortunately... But here's one question: what is Futura? > > > > here ? http://guadec.org/node/420 (many thanks to google ;-) ) > > > > Regards, > > > > -- > > jabber : lordheavy at ...943... > > mail : lordheavymREMOVEME at ...626... > > > > All the advantages of Linux Managed Hosting--Without the Cost and Risk! > > Fully trained technicians. The highest number of Red Hat certifications > > in the hosting industry. Fanatical Support. Click to learn more > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642 > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user From dcamposf at ...626... Wed Jun 21 23:24:07 2006 From: dcamposf at ...626... (Daniel Campos) Date: Wed, 21 Jun 2006 23:24:07 +0200 Subject: [Gambas-user] Guadec 2006 / Gambas In-Reply-To: <200606212200.53847.katsancat@...11...> References: <7259b5ae0606211001k4a91ad86of3d9546e6e6b18c4@...627...> <200606211952.50761.lordheavy@...512...> <7259b5ae0606211133r62e720emb3e26ddabe0f2cc1@...627...> <200606212200.53847.katsancat@...11...> Message-ID: <7259b5ae0606211424lf120bccj6e143f6de5876d27@...627...> Well, i'm sure it was only a joke from Laurent, is a good guy :-) 2006/6/21, Bertrand-Xavier M. : > > Ok thanks. > Google is great; on the other hand it's nice to discuss with real persons > it's obvious for some. > > On Wednesday 21 June 2006 20:33, Daniel Campos wrote: > > Detailed information here: > > > > http://forjamari.linex.org/docman/view.php/54/37/futura.pdf > > > > Daniel > > > > 2006/6/21, Laurent Carlier : > > > Le Mercredi 21 Juin 2006 19:54, Bertrand-Xavier M. a ?crit: > > > > Hi Daniel, > > > > It would be a real great pleasure to come in Barcelona, > > > > unfortunately... But here's one question: what is Futura? > > > > > > here ? http://guadec.org/node/420 (many thanks to google ;-) ) > > > > > > Regards, > > > > > > -- > > > jabber : lordheavy at ...943... > > > mail : lordheavymREMOVEME at ...626... > > > > > > All the advantages of Linux Managed Hosting--Without the Cost and > Risk! > > > Fully trained technicians. The highest number of Red Hat > certifications > > > in the hosting industry. Fanatical Support. Click to learn more > > > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642 > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > All the advantages of Linux Managed Hosting--Without the Cost and Risk! > Fully trained technicians. The highest number of Red Hat certifications in > the hosting industry. Fanatical Support. Click to learn more > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mwebb at ...1362... Fri Jun 23 10:16:13 2006 From: mwebb at ...1362... (mike webb) Date: Fri, 23 Jun 2006 08:16:13 +0000 Subject: [Gambas-user] gambas and outportb Message-ID: <449BA34D.50802@...1362...> writing a program to control our air condition units in our factory. have always used ms-dos and turbo c to control hardware. in this case though, i need to access web pages on the Internet and extract our local temp. might be best to use linux/gambas. 2 questions: turbo c i use command outportb to memory address 0x350 to 0x350 + 4. so to turn all bits on at address 0x351 i would do this. outportb(0x351,255); does gambas have a command like this? does linux allow direct memory address access ?? From BertOudshoorn at ...1472... Sat Jun 24 01:14:02 2006 From: BertOudshoorn at ...1472... (BertOudshoorn at ...1472...) Date: Fri, 23 Jun 2006 19:14:02 EDT Subject: [Gambas-user] Using gambas to dial phone Message-ID: <54d.1d3e2.31cdcfba@...1472...> For Eldon Eller: Your note dated 2006-04-22. In fact, I have the same wish: An internal Intel-536ep modem (in my case not on the motherboard but a PCI card). Installed the related suse 10.0 rpm (even the new one) but it does not work yet. However, not only gambas (the Serial Port example), but also kppp and minicom do not see the modem. Windows shows com3, irq 5, and I/O used. Looked at the modem-HowTo site, and am trying several commands: 'lspci -v', 'setserial -g /dev/ttyS*', 'setserial /dev/ttyS2 port 0xdf00 irq 5', 'rm -f /dev/modem', 'ln -sv /dev/ttyS2 /dev/modem', 'wvdialconf my_config_file_name'... but no modem detected. Changed even in the bios the sound irq from 5 to 9. Did you succeed? An external modem works well. Bert Oudshoorn -------------- next part -------------- An HTML attachment was scrubbed... URL: From eeller at ...826... Sat Jun 24 02:30:28 2006 From: eeller at ...826... (Eldon Eller) Date: Fri, 23 Jun 2006 17:30:28 -0700 Subject: [Gambas-user] Using gambas to dial phone In-Reply-To: <54d.1d3e2.31cdcfba@...1472...> References: <54d.1d3e2.31cdcfba@...1472...> Message-ID: <449C87A4.2010007@...826...> An HTML attachment was scrubbed... URL: From laxminarayan at ...1434... Sat Jun 24 07:46:26 2006 From: laxminarayan at ...1434... (Laxminarayan G Kamath A) Date: Sat, 24 Jun 2006 11:16:26 +0530 Subject: [Gambas-user] gambas and outportb In-Reply-To: <449BA34D.50802@...1362...> References: <449BA34D.50802@...1362...> Message-ID: <449CD1B2.6010906@...1434...> On 06/23/06 13:46, mike webb wrote: >writing a program to control our air condition units in our factory. >have always used ms-dos and turbo c to control hardware. >in this case though, i need to access web pages on the Internet and >extract our local temp. > _Bad_ programming practice.. never do this for mission critical stuff. what will happen if the page changes a bit for some reason and wrong values go in? _HAVOC_ ! -- Laxminarayan G Kamath A laxminarayan at ...1434... From sourceforge-raindog2 at ...94... Sat Jun 24 08:20:15 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Sat, 24 Jun 2006 02:20:15 -0400 Subject: [Gambas-user] gambas and outportb In-Reply-To: <449CD1B2.6010906@...1434...> References: <449BA34D.50802@...1362...> <449CD1B2.6010906@...1434...> Message-ID: <200606240220.15644.sourceforge-raindog2@...94...> On Sat June 24 2006 01:46, Laxminarayan G Kamath A wrote: > On 06/23/06 13:46, mike webb wrote: > >writing a program to control our air condition units in our > > factory. have always used ms-dos and turbo c to control > > hardware. in this case though, i need to access web pages on > > the Internet and extract our local temp. > > _Bad_ programming practice.. never do this for mission > critical stuff. what will happen if the page changes a bit for > some reason and wrong values go in? _HAVOC_ ! No, not havoc... sanity checks followed by error messages as appropriate. I've been scraping Weather Underground for about 4 years to feed a KDE temperature + heat index/wind chill applet I wrote, and the worst it's ever done is give me "--" or "0" because it can't parse the data. Before that, I wrote a currency converter that used Yahoo Finance as a back end (which I'm sure would now either be prevented by a CAPTCHA or just against their terms of use), and when they changed their format I had it throw an error saying "Yahoo Format Error - If this persists, call Rob." It's not like my company at the time would have gotten 1 dollar = 0 pounds and had all its UK bills go out for infinite amounts. If there's a better defined source for temperature data local to him, he should use it (and I'm sorry if this sounds condescending, but.... hello, thermostats are really not that expensive), but scraping is a time-honored integration practice when you have no control over your source data, and can certainly be done right. Rob From gambas at ...1... Sat Jun 24 13:11:47 2006 From: gambas at ...1... (Benoit Minisini) Date: Sat, 24 Jun 2006 13:11:47 +0200 Subject: [Gambas-user] gambas and outportb In-Reply-To: <449BA34D.50802@...1362...> References: <449BA34D.50802@...1362...> Message-ID: <200606241311.47911.gambas@...1...> On Friday 23 June 2006 10:16, mike webb wrote: > writing a program to control our air condition units in our factory. > have always used ms-dos and turbo c to control hardware. > in this case though, i need to access web pages on the Internet and > extract our local temp. > might be best to use linux/gambas. > 2 questions: > turbo c i use command outportb to memory address 0x350 to 0x350 + 4. > so to turn all bits on at address 0x351 i would do this. > outportb(0x351,255); > does gambas have a command like this? > does linux allow direct memory address access ?? > See http://gambasdoc.org/help/howto/parport Regards, -- Benoit Minisini From BertOudshoorn at ...1472... Sat Jun 24 13:36:12 2006 From: BertOudshoorn at ...1472... (BertOudshoorn at ...1472...) Date: Sat, 24 Jun 2006 07:36:12 EDT Subject: [Gambas-user] gambas and outportb Message-ID: <405.4b4851a.31ce7dac@...1472...> Rob, there seems to be an "exec example" (like the VisualBasic Shell command). You can probably start a bash file in the background with something as "file > /dev/lp0", see also http://jnocook.net/geek/printing.htm Secondly for outportb in linux: http://mail-index.netbsd.org/port-i386/1999/11/26/0010.html I am new in linux and gambas, so please do not ask details (yet). Controlled also an airco and heater in VisualBasic, but via the rs-232 interface. Have still a wish to connect/program PICs (hopefully writes Beno?t a gambas- like "assembler"... for the most commonly used PIC (?)). Bert Oudshoorn -------------- next part -------------- An HTML attachment was scrubbed... URL: From linuxseeker at ...626... Sat Jun 24 18:51:54 2006 From: linuxseeker at ...626... (LinuxSeeker) Date: Sat, 24 Jun 2006 19:51:54 +0300 Subject: [Gambas-user] Enabling multiple TextBoxes with ComboBox Message-ID: I have a form (form1) with one ComboBox (containing the numbers from 1 to 10) and ten TextBoxes. I want when a user clicks on a number 'N' (where N= a number contained in the ComboBox) in the textbox the first N TextBoxes in the form to be activated and have "15" as their content. My code is the following but it doesn't seem to work: PUBLIC SUB ComboBox1_Click() DIM i AS Integer 'disable all FOR i = 1 TO 10 STEP 1 WITH (TextBox\i) .enabled=FALSE END WITH NEXT 'enable all FOR i = 1 TO N STEP 1 WITH (TextBox\i) .enabled=TRUE END WITH NEXT END I also tried the following but it failed as well: PUBLIC SUB ComboBox1_Click() DIM i AS Integer 'disable all FOR i = 1 TO 10 STEP 1 (TextBox,i).enabled=FALSE NEXT 'enable the first N FOR i = 1 TO N STEP 1 (TextBox,i).enabled=TRUE NEXT END Any suggestions? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From sourceforge-raindog2 at ...94... Sat Jun 24 17:54:59 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Sat, 24 Jun 2006 11:54:59 -0400 Subject: [Gambas-user] gambas and outportb In-Reply-To: <405.4b4851a.31ce7dac@...1472...> References: <405.4b4851a.31ce7dac@...1472...> Message-ID: <200606241155.00124.sourceforge-raindog2@...94...> On Sat June 24 2006 07:36, BertOudshoorn at ...1472... wrote: > Have still a wish to connect/program PICs (hopefully writes > Beno?t a gambas- like "assembler"... for the most commonly > used PIC (?)). I personally find coding in assembler for tiny CPU's to be an enjoyable and zen-like experience, but there's no reason someone very familiar with PICs couldn't familiarize themselves with Gambas and write a Gambas bytecode to PIC crosscompiler. However, with the limited amounts of RAM on those things, nothing's going to beat hand-written assembler. Well, unless you choose a BASIC Stamp for one of your projects, but that BASIC is pretty different from Gambas. It looks like there are other BASIC languages for PICs now: http://www.piclist.com/techref/microchip/language/basics.htm Rob From timothy.marshal-nichols at ...247... Sun Jun 25 01:36:42 2006 From: timothy.marshal-nichols at ...247... (Timothy Marshal-Nichols) Date: Sun, 25 Jun 2006 00:36:42 +0100 Subject: [Gambas-user] Enabling multiple TextBoxes with ComboBox In-Reply-To: Message-ID: There are a number of ways you can do this kind of thing. Option 1: Do it the crude way. This does have the advantage it is very simple and easy to debug. DIM i AS Integer i = Val(ComboBox1.Text) TextBox1.Enabled = (i >= 1) TextBox2.Enabled = (i >= 2) TextBox3.Enabled = (i >= 3) . .. Option 2: Set the Tag properties of the TextBox?s to the numbers 1 to 10. Then Loop through controls the forms controls looking for TextBox?s type of controls with Tag value set. PUBLIC SUB ComboBox1_Click() DIM ctrl AS Control DIM tb AS TextBox DIM i AS Integer i = Val(ComboBox1.Text) ' Loop through all the controls on the form FOR EACH ctrl IN ME.Children ' Is this a TextBox IF Object.Is(ctrl, "TextBox") THEN ' Does the Tag property have a value IF ctrl.Tag THEN ctrl.Enabled = (Val(ctrl.Tag) <= i) Object.SetProperty(ctrl, "Text", 15) END IF END IF NEXT END Option 3: Use dynamic controls. With this method it could be best to use a Panel (or ScrollView) to hold the TextBox?s. Then delete all the controls on the Panel and create the required number of TextBox?s on the Panel. And resize the Panel. (If space is limited use a ScrollView.) PUBLIC SUB ComboBox1_Click() DIM ctrl AS Control DIM newTextBox AS TextBox DIM i AS Integer ' Clear current controls from panel FOR EACH ctrl IN PanelText.Children ctrl.Delete() NEXT ' Add number of TextBox's to Panel FOR i = 1 TO CInt(ComboBox1.Text) newTextBox = NEW TextBox(PanelText) newTextBox.Text = "15" newTextBox.Top = (i - 1) * newTextBox.Height ' Make panel fit number of TextBox's PanelText.Height = i * newTextBox.Height NEXT END Thanks 8-{)} Timothy Marshal-Nichols -----Original Message----- From: gambas-user-bounces at lists.sourceforge.net [mailto:gambas-user-bounces at lists.sourceforge.net]On Behalf Of LinuxSeeker Sent: Saturday, 24 June 2006 17:52 To: Gambas-user at lists.sourceforge.net Subject: [Gambas-user] Enabling multiple TextBoxes with ComboBox I have a form (form1) with one ComboBox (containing the numbers from 1 to 10) and ten TextBoxes. I want when a user clicks on a number 'N' (where N= a number contained in the ComboBox) in the textbox the first N TextBoxes in the form to be activated and have "15" as their content. My code is the following but it doesn't seem to work: PUBLIC SUB ComboBox1_Click() DIM i AS Integer 'disable all FOR i = 1 TO 10 STEP 1 WITH (TextBox\i) .enabled=FALSE END WITH NEXT 'enable all FOR i = 1 TO N STEP 1 WITH (TextBox\i) .enabled=TRUE END WITH NEXT END I also tried the following but it failed as well: PUBLIC SUB ComboBox1_Click() DIM i AS Integer 'disable all FOR i = 1 TO 10 STEP 1 (TextBox,i).enabled=FALSE NEXT 'enable the first N FOR i = 1 TO N STEP 1 (TextBox,i).enabled=TRUE NEXT END Any suggestions? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From linuxseeker at ...626... Sun Jun 25 13:35:53 2006 From: linuxseeker at ...626... (LinuxSeeker) Date: Sun, 25 Jun 2006 14:35:53 +0300 Subject: [Gambas-user] Enabling multiple TextBoxes with ComboBox In-Reply-To: References: Message-ID: On 6/25/06, Timothy Marshal-Nichols wrote: > > > > There are a number of ways you can do this kind of thing. > > > > Option 1: Do it the crude way. This does have the advantage it is very > simple and easy to debug. > > > > DIM i AS Integer > i = Val(ComboBox1.Text) > TextBox1.Enabled = (i >= 1) > TextBox2.Enabled = (i >= 2) > TextBox3.Enabled = (i >= 3) > . .. > Thanks, my code so far has been a pile of junk just to make it work (with ten if's and ten commands for each if...). This will make it way more readable. Thanks again. -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at ...1334... Sun Jun 25 13:57:01 2006 From: brian at ...1334... (Christopher Brian Jack) Date: Sun, 25 Jun 2006 04:57:01 -0700 (PDT) Subject: [Gambas-user] Enabling multiple TextBoxes with ComboBox In-Reply-To: References: Message-ID: <20060625045332.U52710@...1337...> Isn't there a way to use tags and a loop? This gets rather nasty for larger numbers of TextBox-es (say for 20+). > > Option 1: Do it the crude way. This does have the advantage it is very > > simple and easy to debug. > > > > DIM i AS Integer > > i = Val(ComboBox1.Text) > > TextBox1.Enabled = (i >= 1) > > TextBox2.Enabled = (i >= 2) > > TextBox3.Enabled = (i >= 3) > > . .. > Thanks, my code so far has been a pile of junk just to make it work (with > ten if's and ten commands for each if...). This will make it way more > readable. Thanks again. .=================================================. | Christopher BRIAN Jack aka "Gau of the Veldt" | +=================================================' | brian _AT_ brians-anime _DOT_ com `=================================================- Hi Spambots, my email address is sputnik at ...1334... From ronstk at ...239... Sun Jun 25 14:30:50 2006 From: ronstk at ...239... (Ron Onstenk) Date: Sun, 25 Jun 2006 14:30:50 +0200 Subject: [Gambas-user] Enabling multiple TextBoxes with ComboBox In-Reply-To: <20060625045332.U52710@...1337...> References: <20060625045332.U52710@...1337...> Message-ID: <200606251430.51378.ronstk@...239...> On Sunday 25 June 2006 13:57, Christopher Brian Jack wrote: > Isn't there a way to use tags and a loop? ?This gets rather nasty for > larger numbers of TextBox-es (say for 20+). > See Timothy Marshal-Nichols post LinuxSeeker is answering. does Option 2 follow your request? Ron :) From leonardo at ...1237... Sun Jun 25 14:35:53 2006 From: leonardo at ...1237... (Leonardo Miliani) Date: Sun, 25 Jun 2006 14:35:53 +0200 Subject: [Gambas-user] Cypher algorithms Message-ID: <449E8329.1040303@...1237...> Are there sample codes of (de)cypher algorithms in Gambas? I.E. Blowfish, DES, TEA, etc.? -- Ciao. Leo Visita il mio sito personale: www.leonardomiliani.com e-mail: leonardo at ...1237... From brian at ...1334... Sun Jun 25 15:52:00 2006 From: brian at ...1334... (Christopher Brian Jack) Date: Sun, 25 Jun 2006 06:52:00 -0700 (PDT) Subject: [Gambas-user] Enabling multiple TextBoxes with ComboBox In-Reply-To: <200606251430.51378.ronstk@...239...> References: <20060625045332.U52710@...1337...> <200606251430.51378.ronstk@...239...> Message-ID: <20060625065135.W52829@...1337...> On Sun, 25 Jun 2006, Ron Onstenk wrote: > See Timothy Marshal-Nichols post LinuxSeeker is answering. > > does Option 2 follow your request? > > Ron :) I don't think I got the original post :( .=================================================. | Christopher BRIAN Jack aka "Gau of the Veldt" | +=================================================' | brian _AT_ brians-anime _DOT_ com `=================================================- Hi Spambots, my email address is sputnik at ...1334... From leonardo at ...1237... Sun Jun 25 19:25:59 2006 From: leonardo at ...1237... (Leonardo Miliani) Date: Sun, 25 Jun 2006 19:25:59 +0200 Subject: [Gambas-user] Errors compiling 1.9.32 with Wine installed Message-ID: <449EC727.5030607@...1237...> I've found a strange error in Gambas 1.9.32 (maybe 1.9.3x) compiling scripts. I discovered that compilation of GB.ODBC component does generate errors during make process, blocking compiling if Wine is installed on the system. Configure command gets Odbc includes and bins in directories where wine is installed instead of looking for them in usr/bin & usr/include dirs. If I uninstall Wine, everything goes right and compilation ends with no errors. -- Ciao. Leo Visita il mio sito personale: www.leonardomiliani.com e-mail: leonardo at ...1237... From timothy.marshal-nichols at ...247... Mon Jun 26 09:31:29 2006 From: timothy.marshal-nichols at ...247... (Timothy Marshal-Nichols) Date: Mon, 26 Jun 2006 08:31:29 +0100 Subject: [Gambas-user] Cypher algorithms In-Reply-To: <449E8329.1040303@...1237...> Message-ID: Hello, As I understand the help, the Crypt.Check function should return FALSE when password and the encrypted password match. However these examples also return FALSE: PRINT Crypt.Check("", "") PRINT Crypt.Check("Password", "") Possible bug? Thanks 8-{)} Timothy Marshal-Nichols > -----Original Message----- > From: gambas-user-bounces at lists.sourceforge.net > [mailto:gambas-user-bounces at lists.sourceforge.net]On Behalf Of Leonardo > Miliani > Sent: Sunday, 25 June 2006 13:36 > To: Gambas-user at lists.sourceforge.net > Subject: [Gambas-user] Cypher algorithms > > > Are there sample codes of (de)cypher algorithms in Gambas? > I.E. Blowfish, DES, TEA, etc.? > > -- > Ciao. > Leo > > Visita il mio sito personale: www.leonardomiliani.com > e-mail: leonardo at ...1237... > > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make > your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From mwebb at ...1362... Mon Jun 26 13:26:59 2006 From: mwebb at ...1362... (mike webb) Date: Mon, 26 Jun 2006 11:26:59 +0000 Subject: [Gambas-user] gambas and outportb In-Reply-To: <200606240220.15644.sourceforge-raindog2@...94...> References: <449BA34D.50802@...1362...> <449CD1B2.6010906@...1434...> <200606240220.15644.sourceforge-raindog2@...94...> Message-ID: <449FC483.3080907@...1362...> sorry rob when i wrote my question i was in a big hurry and didn't explain myself properly. really i'm working on two different projects at the same time. the first one controls a water sprinkeler system on the roof of the factory. the idea here is to lightly spray a bit of water on the roof and then wait for it to evaperate. i have two sprinkers up there now, on friday it was 95 degrees, the parts of the roof which i was watering hovered around 100 degrees the rest of the roof was anywhere between 130 and 145. i was wanting to tap into the net to get the tempemater, humidity and wind speed. seems like it would be more trouble than its worth though, i don't really think i want to have linux between me and my I/O board. also with ms-dos and turbo c i can use any old computer we have laying around. the program and dos can fit on a floppy drive. controlling the AC units is coming up as soon as i get finished installing all the sprinkers. we have 8 ac units running 440 volts 3 phase at 65 amps. they are all thermostatly controlled, i'm planning on tapping into the termostat control lines with relays. the plan is to never have more than 6 units on at the same time. theirs good reasons for trying this, almost half of our electric bill is base on "worst 15 minutes" of the month. in other words we had to pay 7000 dollars because on may 30 from 1:30 in the afternoon until 1:45 we "peaked for the month and used 750 kva of electricity. i believe you dutch guys have a saying for that: "to gek". if my math is right then 65 amps x 2 = 80 kva. 80 kva = +- 760 dollars per month (at least thru july and aug) hope i was alittle clearer without being to long winded. thanks for the help. Rob Kudla wrote: >On Sat June 24 2006 01:46, Laxminarayan G Kamath A wrote: > > >>On 06/23/06 13:46, mike webb wrote: >> >> >>>writing a program to control our air condition units in our >>>factory. have always used ms-dos and turbo c to control >>>hardware. in this case though, i need to access web pages on >>>the Internet and extract our local temp. >>> >>> >>_Bad_ programming practice.. never do this for mission >>critical stuff. what will happen if the page changes a bit for >>some reason and wrong values go in? _HAVOC_ ! >> >> > >No, not havoc... sanity checks followed by error messages as >appropriate. I've been scraping Weather Underground for about 4 >years to feed a KDE temperature + heat index/wind chill applet I >wrote, and the worst it's ever done is give me "--" or "0" >because it can't parse the data. > >Before that, I wrote a currency converter that used Yahoo Finance >as a back end (which I'm sure would now either be prevented by a >CAPTCHA or just against their terms of use), and when they >changed their format I had it throw an error saying "Yahoo >Format Error - If this persists, call Rob." It's not like my >company at the time would have gotten 1 dollar = 0 pounds and >had all its UK bills go out for infinite amounts. > >If there's a better defined source for temperature data local to >him, he should use it (and I'm sorry if this sounds >condescending, but.... hello, thermostats are really not that >expensive), but scraping is a time-honored integration practice >when you have no control over your source data, and can >certainly be done right. > >Rob > >Using Tomcat but need to do more? Need to support web services, security? >Get stuff done quickly with pre-integrated technology to make your job easier >Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo >http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >_______________________________________________ >Gambas-user mailing list >Gambas-user at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/gambas-user > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From linuxseeker at ...626... Tue Jun 27 01:35:37 2006 From: linuxseeker at ...626... (LinuxSeeker) Date: Tue, 27 Jun 2006 02:35:37 +0300 Subject: [Gambas-user] Write-Read from text file Message-ID: I am writing a program that needs to interact with the user and save the user's preferences (name, number of textboxes etc) in a text file (named "conf") at the same directory where the executable is located. The format of the configuration file will be like: --------------------------------------- #My comments. These will be added by the program to make to configuration file easier to understand. name:(the users name, contained in TextBoxName) number:(the number of textboxes in a form - the user selects the number from a ComboBox) text1:(the contents of TextBox1) text2:(the contents of TextBox2) text3:(the contents of TextBox3) ... text10:(the contents of TextBox10) #END ------------------------------------ These data must be read from the configuration file as soon as the program starts and must be loaded in the appropriate position (name->TextBoxName, text1->TextBox1 , text2->TextBox2... etc.) You can find an example of the simple app I am trying to write at http://linstaller.sourceforge.net/rwapp.tar.gz Any suggestions on how to make this work? How can I update the configuration file without re-writing the entire configuration file? How do I select which line to read from? Please, I am a beginner in Gambas and it all seems difficult due to my lack of experience with real languages as Gambas is. If you think you can help in any way please do so. -------------- next part -------------- An HTML attachment was scrubbed... URL: From joe1962 at ...626... Tue Jun 27 01:49:37 2006 From: joe1962 at ...626... (Jose J. Rodriguez) Date: Mon, 26 Jun 2006 19:49:37 -0400 Subject: [Gambas-user] Write-Read from text file In-Reply-To: References: Message-ID: <6c208f950606261649n269a982k2d592e381fc03cb9@...627...> On 6/26/06, LinuxSeeker wrote: > I am writing a program that needs to interact with the user and save the > user's preferences (name, number of textboxes etc) in a text file (named > "conf") at the same directory where the executable is located. > [snip] > > Any suggestions on how to make this work? How can I update the > configuration file without re-writing the entire configuration file? How do > I select which line to read from? > You should consider using the Gambas component gb.settings (Application settings management): http://www.gambasdoc.org/help/comp/gb.settings Regards, Joe1962 From eilert-sprachen at ...221... Tue Jun 27 08:43:08 2006 From: eilert-sprachen at ...221... (Eilert) Date: Tue, 27 Jun 2006 08:43:08 +0200 Subject: [Gambas-user] Write-Read from text file In-Reply-To: <6c208f950606261649n269a982k2d592e381fc03cb9@...627...> References: <6c208f950606261649n269a982k2d592e381fc03cb9@...627...> Message-ID: <44A0D37C.7000908@...221...> Jose J. Rodriguez schrieb: > On 6/26/06, LinuxSeeker wrote: >> I am writing a program that needs to interact with the user and save the >> user's preferences (name, number of textboxes etc) in a text file (named >> "conf") at the same directory where the executable is located. >> > [snip] >> Any suggestions on how to make this work? How can I update the >> configuration file without re-writing the entire configuration file? How do >> I select which line to read from? >> > > You should consider using the Gambas component gb.settings > (Application settings management): > http://www.gambasdoc.org/help/comp/gb.settings > > Regards, > Joe1962 > Hi Jose, Thanks for this tip - never knew about this thing. But it's heavily undocumented, I doubt he'll get it to work as even I have some problems understanding how it would work. If you know how to handle it, shouldn't we develop some easy examples? Just like - initiating a new ini-file - reading from the ini-file - writing values into it - replacing values Regards Rolf From jscops at ...11... Tue Jun 27 09:32:31 2006 From: jscops at ...11... (Jacky) Date: Tue, 27 Jun 2006 09:32:31 +0200 Subject: [Gambas-user] Write-Read from text file In-Reply-To: <44A0D37C.7000908@...221...> References: <6c208f950606261649n269a982k2d592e381fc03cb9@...627...> <44A0D37C.7000908@...221...> Message-ID: <200606270932.32014.jscops@...11...> Le Mardi 27 Juin 2006 08:43, Eilert a ?crit?: > Jose J. Rodriguez schrieb: > > On 6/26/06, LinuxSeeker wrote: > >> I am writing a program that needs to interact with the user and save the > >> user's preferences (name, number of textboxes etc) in a text file (named > >> "conf") at the same directory where the executable is located. > > > > [snip] > > > >> Any suggestions on how to make this work? How can I update the > >> configuration file without re-writing the entire configuration file? How > >> do I select which line to read from? > > > > You should consider using the Gambas component gb.settings > > (Application settings management): > > http://www.gambasdoc.org/help/comp/gb.settings > > > > Regards, > > Joe1962 > > Hi Jose, > > Thanks for this tip - never knew about this thing. But it's heavily > undocumented, I doubt he'll get it to work as even I have some problems > understanding how it would work. > > If you know how to handle it, shouldn't we develop some easy examples? > > Just like> > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > - initiating a new ini-file > - reading from the ini-file > - writing values into it > - replacing values > > Regards > > Rolf Salut, With settings component Gambas create automaticaly a new file whose name is your program name with the .conf extension locate in /home/user/.gambas for gambas1 to update it see example below. Type = "mysql" Name = "test" Login = "user" Password = "123456" Version = "1.00" Settings["/dbase/Type"] = Type Settings["/dbase/Name"] = Name Settings["/dbase/Login"] = login. Settings["/dbase/Password"] = Password Settings["/Version"] = Version to read it Type = Settings["/dbase/Type"] Name = Settings["/dbase/Name"] Login = Settings["/dbase/Login"] Password = Settings["/dbase/Password"] Version = Settings["/Version"] Jack From eilert-sprachen at ...221... Tue Jun 27 09:45:11 2006 From: eilert-sprachen at ...221... (Eilert) Date: Tue, 27 Jun 2006 09:45:11 +0200 Subject: [Gambas-user] Write-Read from text file In-Reply-To: <200606270932.32014.jscops@...11...> References: <6c208f950606261649n269a982k2d592e381fc03cb9@...627...> <44A0D37C.7000908@...221...> <200606270932.32014.jscops@...11...> Message-ID: <44A0E207.8090807@...221...> Jacky schrieb: > Le Mardi 27 Juin 2006 08:43, Eilert a ?crit : >> Jose J. Rodriguez schrieb: >>> On 6/26/06, LinuxSeeker wrote: >>>> I am writing a program that needs to interact with the user and save the >>>> user's preferences (name, number of textboxes etc) in a text file (named >>>> "conf") at the same directory where the executable is located. >>> [snip] >>> >>>> Any suggestions on how to make this work? How can I update the >>>> configuration file without re-writing the entire configuration file? How >>>> do I select which line to read from? >>> You should consider using the Gambas component gb.settings >>> (Application settings management): >>> http://www.gambasdoc.org/help/comp/gb.settings >>> >>> Regards, >>> Joe1962 >> Hi Jose, >> >> Thanks for this tip - never knew about this thing. But it's heavily >> undocumented, I doubt he'll get it to work as even I have some problems >> understanding how it would work. >> >> If you know how to handle it, shouldn't we develop some easy examples? >> >> Just like> >> Using Tomcat but need to do more? Need to support web services, security? >> Get stuff done quickly with pre-integrated technology to make your job >> easier Download IBM WebSphere Application Server v.1.0.1 based on Apache >> Geronimo >> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> - initiating a new ini-file >> - reading from the ini-file >> - writing values into it >> - replacing values >> >> Regards >> >> Rolf > > Salut, > > With settings component Gambas create automaticaly a new file whose name is > your program name with the .conf extension locate in /home/user/.gambas for > gambas1 > to update it see example below. > Type = "mysql" > Name = "test" > Login = "user" > Password = "123456" > Version = "1.00" > Settings["/dbase/Type"] = Type > Settings["/dbase/Name"] = Name > Settings["/dbase/Login"] = login. > Settings["/dbase/Password"] = Password > Settings["/Version"] = Version > > to read it > Type = Settings["/dbase/Type"] > Name = Settings["/dbase/Name"] > Login = Settings["/dbase/Login"] > Password = Settings["/dbase/Password"] > Version = Settings["/Version"] > Ah, ok, but is it possible to take any influence on the place and name of the file? And is it possible to manage several files? And I'm missing .Read and .Write in your example. Not necessary? Rolf From timothy.marshal-nichols at ...247... Tue Jun 27 10:19:36 2006 From: timothy.marshal-nichols at ...247... (Timothy Marshal-Nichols) Date: Tue, 27 Jun 2006 09:19:36 +0100 Subject: [Gambas-user] Write-Read from text file In-Reply-To: <44A0D37C.7000908@...221...> Message-ID: Hello, I have written a application settings class that does a little more than the Gambas class. * It works more like the VB6 save settings * You can add comments to the file * You can save a most recent file list Attached is a copy. It includes a demo of how to use the class. This demo was written in Gambas 1.9.32. If you want to use this class in Gambas 1 then do the following: 1. Open the project 2. Resize the form 3. Do a compile all 4. You will then get three errors. There should be a comment at each error. Do that. (The errors are from things that have changed in Gambas.) Thanks 8-{)} Timothy Marshal-Nichols > -----Original Message----- > From: gambas-user-bounces at lists.sourceforge.net > [mailto:gambas-user-bounces at lists.sourceforge.net]On Behalf Of Eilert > Sent: Tuesday, 27 June 2006 07:43 > To: mailing list for gambas users > Subject: Re: [Gambas-user] Write-Read from text file > > > Jose J. Rodriguez schrieb: > > On 6/26/06, LinuxSeeker wrote: > >> I am writing a program that needs to interact with the user > and save the > >> user's preferences (name, number of textboxes etc) in a text > file (named > >> "conf") at the same directory where the executable is located. > >> > > [snip] > >> Any suggestions on how to make this work? How can I update the > >> configuration file without re-writing the entire configuration > file? How do > >> I select which line to read from? > >> > > > > You should consider using the Gambas component gb.settings > > (Application settings management): > > http://www.gambasdoc.org/help/comp/gb.settings > > > > Regards, > > Joe1962 > > > > > Hi Jose, > > Thanks for this tip - never knew about this thing. But it's heavily > undocumented, I doubt he'll get it to work as even I have some problems > understanding how it would work. > > If you know how to handle it, shouldn't we develop some easy examples? > > Just like > > - initiating a new ini-file > - reading from the ini-file > - writing values into it > - replacing values > > Regards > > Rolf > > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make > your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > 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: AppSettings.v0.0.1.tar.bz2 Type: application/octet-stream Size: 9840 bytes Desc: not available URL: From eilert-sprachen at ...221... Tue Jun 27 10:40:01 2006 From: eilert-sprachen at ...221... (Eilert) Date: Tue, 27 Jun 2006 10:40:01 +0200 Subject: [Gambas-user] Write-Read from text file In-Reply-To: References: Message-ID: <44A0EEE1.2010501@...221...> Reeaally interesting, Timothy, thank you for that! Regards Rolf Timothy Marshal-Nichols schrieb: > Hello, > > I have written a application settings class that does a little more than the > Gambas class. > > * It works more like the VB6 save settings > * You can add comments to the file > * You can save a most recent file list > > Attached is a copy. It includes a demo of how to use the class. > > This demo was written in Gambas 1.9.32. If you want to use this class in > Gambas 1 then do the following: > 1. Open the project > 2. Resize the form > 3. Do a compile all > 4. You will then get three errors. There should be a comment at each error. > Do that. (The errors are from things that have changed in Gambas.) > > Thanks > > 8-{)} Timothy Marshal-Nichols > > > >> -----Original Message----- >> From: gambas-user-bounces at lists.sourceforge.net >> [mailto:gambas-user-bounces at lists.sourceforge.net]On Behalf Of Eilert >> Sent: Tuesday, 27 June 2006 07:43 >> To: mailing list for gambas users >> Subject: Re: [Gambas-user] Write-Read from text file >> >> >> Jose J. Rodriguez schrieb: >>> On 6/26/06, LinuxSeeker wrote: >>>> I am writing a program that needs to interact with the user >> and save the >>>> user's preferences (name, number of textboxes etc) in a text >> file (named >>>> "conf") at the same directory where the executable is located. >>>> >>> [snip] >>>> Any suggestions on how to make this work? How can I update the >>>> configuration file without re-writing the entire configuration >> file? How do >>>> I select which line to read from? >>>> >>> You should consider using the Gambas component gb.settings >>> (Application settings management): >>> http://www.gambasdoc.org/help/comp/gb.settings >>> >>> Regards, >>> Joe1962 >>> >> >> Hi Jose, >> >> Thanks for this tip - never knew about this thing. But it's heavily >> undocumented, I doubt he'll get it to work as even I have some problems >> understanding how it would work. >> >> If you know how to handle it, shouldn't we develop some easy examples? >> >> Just like >> >> - initiating a new ini-file >> - reading from the ini-file >> - writing values into it >> - replacing values >> >> Regards >> >> Rolf >> >> Using Tomcat but need to do more? Need to support web services, security? >> Get stuff done quickly with pre-integrated technology to make >> your job easier >> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo >> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> ------------------------------------------------------------------------ >> >> Using Tomcat but need to do more? Need to support web services, security? >> Get stuff done quickly with pre-integrated technology to make your job easier >> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo >> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user From ronstk at ...239... Tue Jun 27 17:39:48 2006 From: ronstk at ...239... (Ron Onstenk) Date: Tue, 27 Jun 2006 17:39:48 +0200 Subject: [Gambas-user] gambas and outportb In-Reply-To: <449FC483.3080907@...1362...> References: <449BA34D.50802@...1362...> <200606240220.15644.sourceforge-raindog2@...94...> <449FC483.3080907@...1362...> Message-ID: <200606271739.48893.ronstk@...239...> On Monday 26 June 2006 13:26, mike webb wrote: > i believe you dutch guys have a saying for that: "to gek". LOL First I do not know the roots of Rob but as far I know he is not Dutch. Almost correct, we say "te gek" or "te gek om los te lopen". :) In English "to crazy" or "to crazy to walk free" (not bound to rules) The word "gek" can mean crazy (not right in mind) but in this phrase it is more like unbelievable. We use for a "crazy" (not right in mind) person in Dutch also the word "gek" and here is the meaning to English more or less the same. The English word "crazy" can have also more details as our "gek" but in general we translate "crazy" to "gek" (for both not right in mind). Any way your meaning about the situation is indeed "te gek" Dutch boy Ron From mwebb at ...1362... Tue Jun 27 12:31:38 2006 From: mwebb at ...1362... (mike webb) Date: Tue, 27 Jun 2006 10:31:38 +0000 Subject: [Gambas-user] gambas and outportb In-Reply-To: <200606271739.48893.ronstk@...239...> References: <449BA34D.50802@...1362...> <200606240220.15644.sourceforge-raindog2@...94...> <449FC483.3080907@...1362...> <200606271739.48893.ronstk@...239...> Message-ID: <44A1090A.2040207@...1362...> Ron Onstenk wrote: >On Monday 26 June 2006 13:26, mike webb wrote: > > >>i believe you dutch guys have a saying for that: "to gek". >> >> > >LOL >First I do not know the roots of Rob but as far I know he is not Dutch. > >Almost correct, we say "te gek" or "te gek om los te lopen". :) >In English "to crazy" or "to crazy to walk free" (not bound to rules) >The word "gek" can mean crazy (not right in mind) but in this phrase >it is more like unbelievable. >lived in budel nederlands and had a dutch wife for a few years, she always said i was "te gek". for the first year of our marriage i thought that meant "Well endowed" :) > > btw: sorry about the cup. >We use for a "crazy" (not right in mind) person in Dutch also the >word "gek" and here is the meaning to English more or less the same. > >The English word "crazy" can have also more details as our "gek" but >in general we translate "crazy" to "gek" (for both not right in mind). > >Any way your meaning about the situation is indeed "te gek" > >Dutch boy > >Ron > >Using Tomcat but need to do more? Need to support web services, security? >Get stuff done quickly with pre-integrated technology to make your job easier >Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo >http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >_______________________________________________ >Gambas-user mailing list >Gambas-user at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/gambas-user > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ronstk at ...239... Tue Jun 27 20:40:46 2006 From: ronstk at ...239... (Ron Onstenk) Date: Tue, 27 Jun 2006 20:40:46 +0200 Subject: [Gambas-user] gambas and outportb In-Reply-To: <44A1090A.2040207@...1362...> References: <449BA34D.50802@...1362...> <200606271739.48893.ronstk@...239...> <44A1090A.2040207@...1362...> Message-ID: <200606272040.47081.ronstk@...239...> On Tuesday 27 June 2006 12:31, mike webb wrote: > >lived in budel nederlands and had a dutch wife for a few years, > >she always said i was "te gek". This was mean here as compliment. > >for the first year of our marriage i thought that meant "Well endowed" :) > > ? Correct here in usage of it. > > > btw: sorry about the cup. 'te' or 'to', thats the question :) > Had to take a look in dictionary for "endowed" and 'cup'. Cup translated to Dutch means most something like a cup you use for drinking, tea or coffee. I assume here also a special meaning is involved. Funny thing to compare/analise words and phrases between two languages. Today I opened a drawer in a cabinet to take something out. By accident I pull to far and the drawer dropped on the ground. I scream "kut la" meaning "bad drawer". In speaking it sounds as one word "kutla" and the 't' as in tea. In Dutch many times the 'd' is spoken as "t". The name of "Rob Kudla" is easy spoken out as "Rob Kutla", you really need to speak the "d" as d in day. Why? The word "kut" is the slang word for vagina and "la" is the drawer. Sorry Rob, no offence to you, you are a "gooddrawer" :) Greets Ron From gambas at ...1... Tue Jun 27 20:57:50 2006 From: gambas at ...1... (Benoit Minisini) Date: Tue, 27 Jun 2006 20:57:50 +0200 Subject: [Gambas-user] Write-Read from text file In-Reply-To: <44A0E207.8090807@...221...> References: <200606270932.32014.jscops@...11...> <44A0E207.8090807@...221...> Message-ID: <200606272057.50508.gambas@...1...> On Tuesday 27 June 2006 09:45, Eilert wrote: > > > > Salut, > > > > With settings component Gambas create automaticaly a new file whose name > > is your program name with the .conf extension locate in > > /home/user/.gambas for gambas1 > > to update it see example below. > > Type = "mysql" > > Name = "test" > > Login = "user" > > Password = "123456" > > Version = "1.00" > > Settings["/dbase/Type"] = Type > > Settings["/dbase/Name"] = Name > > Settings["/dbase/Login"] = login. > > Settings["/dbase/Password"] = Password > > Settings["/Version"] = Version > > > > to read it > > Type = Settings["/dbase/Type"] > > Name = Settings["/dbase/Name"] > > Login = Settings["/dbase/Login"] > > Password = Settings["/dbase/Password"] > > Version = Settings["/Version"] > > Ah, ok, but is it possible to take any influence on the place and name > of the file? And is it possible to manage several files? > > And I'm missing .Read and .Write in your example. Not necessary? > > Rolf > Yes. Settings is an "auto-creatable" class, whose default instance use "~/.config/gambas/.conf" file (in the development version). But you can create your own settings file by instanciating the class this way: MySettings = NEW Settings("/path/to/my/conf/file") The Read() and Write() is used for reading and writing settings of some objects in a standard way: at the moment, only windows and splitter coordinates. You have more information in the gambas wiki. Regards, -- Benoit Minisini From csorda at ...69... Tue Jun 27 23:11:55 2006 From: csorda at ...69... (csorda@libero.it) Date: Tue, 27 Jun 2006 23:11:55 +0200 Subject: [Gambas-user] (no subject) Message-ID: Hi, Where can I find sample of gb.xml component? www.gambasforge.net doesn't work!! Best regards, Carlo. From joe1962 at ...626... Wed Jun 28 01:09:44 2006 From: joe1962 at ...626... (Jose J. Rodriguez) Date: Tue, 27 Jun 2006 19:09:44 -0400 Subject: [Gambas-user] Write-Read from text file In-Reply-To: <44A0D37C.7000908@...221...> References: <6c208f950606261649n269a982k2d592e381fc03cb9@...627...> <44A0D37C.7000908@...221...> Message-ID: <6c208f950606271609x61a5c998q3266cb7a3971f584@...627...> On 6/27/06, Eilert wrote: > Jose J. Rodriguez schrieb: > > On 6/26/06, LinuxSeeker wrote: > >> I am writing a program that needs to interact with the user and save the > >> user's preferences (name, number of textboxes etc) in a text file (named > >> "conf") at the same directory where the executable is located. > >> > > [snip] > >> Any suggestions on how to make this work? How can I update the > >> configuration file without re-writing the entire configuration file? How do > >> I select which line to read from? > >> > > > > You should consider using the Gambas component gb.settings > > (Application settings management): > > http://www.gambasdoc.org/help/comp/gb.settings > > > > Regards, > > Joe1962 > > > > > Hi Jose, > > Thanks for this tip - never knew about this thing. But it's heavily > undocumented, I doubt he'll get it to work as even I have some problems > understanding how it would work. > > If you know how to handle it, shouldn't we develop some easy examples? > > Just like > > - initiating a new ini-file > - reading from the ini-file > - writing values into it > - replacing values > Well, I haven't actually used this in Gambas2, as I only just switched. Here's a snippet of something I did a while back in Gambas1 for vl-qemu (front-end for qemu, you can check it out at Gambas Forge). As you may guess, the Settings stuff is used through a VB ini-like concept. In the Global module: ' Gambas module file PUBLIC FUNCTION ReadIni(IniKey AS String, vDEFAULT AS Variant) AS Variant DIM hSettings AS Settings DIM aVariant AS Variant hSettings = NEW Settings(System.Home & "/" & ".vl-qemu.conf") aVariant = hSettings [ IniKey , vDEFAULT ] RETURN aVariant END PUBLIC SUB WriteIni(IniKey AS String, aVariant AS Variant) DIM hSettings AS Settings hSettings = NEW Settings(System.Home & "/" & ".vl-qemu.conf") hSettings [ IniKey ] = aVariant END PUBLIC SUB SaveConfig() 'Write config to ini file: WriteIni("Setting.Boot", frmMain.cmbBoot.Index) WriteIni("Setting.KeyLang", frmMain.cmbKeyLang.Index) [snip] WriteIni("ImagePath.HDD", frmMain.txtHDD.Text) WriteIni("Network.Samba", frmMain.chkSamba.Value ) WriteIni("Network.SambaPath", frmMain.txtSamba.Text ) END PUBLIC SUB ReadConfig() 'Read config from ini file: frmMain.cmbBoot.Index = ReadIni("Setting.Boot", 0) frmMain.cmbKeyLang.Index = ReadIni("Setting.KeyLang", 5) frmMain.cmbRTCMode.Index = ReadIni("Setting.RTCMode", 0) [snip] frmMain.txtHDD.Text = ReadIni("ImagePath.HDD", "") frmMain.chkSamba.Value = ReadIni("Network.Samba", 0) frmMain.txtSamba.Text = ReadIni("Network.SambaPath", "") END And in frmMain: ' Gambas class file PUBLIC SUB Form_Open() [snip] 'Read config from ini file: Global.ReadConfig [snip] END PUBLIC SUB ButtonExit_Click() 'Write config to ini file: Global.SaveConfig 'Go away... ME.Close END Hope that helps. Regards, Joe1962 From eilert-sprachen at ...221... Wed Jun 28 08:28:02 2006 From: eilert-sprachen at ...221... (Eilert) Date: Wed, 28 Jun 2006 08:28:02 +0200 Subject: [Gambas-user] Write-Read from text file In-Reply-To: <6c208f950606271609x61a5c998q3266cb7a3971f584@...627...> References: <6c208f950606261649n269a982k2d592e381fc03cb9@...627...> <44A0D37C.7000908@...221...> <6c208f950606271609x61a5c998q3266cb7a3971f584@...627...> Message-ID: <44A22172.4090506@...221...> Jose J. Rodriguez schrieb: > On 6/27/06, Eilert wrote: >> Jose J. Rodriguez schrieb: >>> On 6/26/06, LinuxSeeker wrote: >>>> I am writing a program that needs to interact with the user and save the >>>> user's preferences (name, number of textboxes etc) in a text file (named >>>> "conf") at the same directory where the executable is located. >>>> >>> [snip] >>>> Any suggestions on how to make this work? How can I update the >>>> configuration file without re-writing the entire configuration file? How do >>>> I select which line to read from? >>>> >>> You should consider using the Gambas component gb.settings >>> (Application settings management): >>> http://www.gambasdoc.org/help/comp/gb.settings >>> >>> Regards, >>> Joe1962 >>> >> >> Hi Jose, >> >> Thanks for this tip - never knew about this thing. But it's heavily >> undocumented, I doubt he'll get it to work as even I have some problems >> understanding how it would work. >> >> If you know how to handle it, shouldn't we develop some easy examples? >> >> Just like >> >> - initiating a new ini-file >> - reading from the ini-file >> - writing values into it >> - replacing values >> > > Well, I haven't actually used this in Gambas2, as I only just > switched. Here's a snippet of something I did a while back in Gambas1 > for vl-qemu (front-end for qemu, you can check it out at Gambas > Forge). As you may guess, the Settings stuff is used through a VB > ini-like concept. > > > In the Global module: > > ' Gambas module file > > PUBLIC FUNCTION ReadIni(IniKey AS String, vDEFAULT AS Variant) AS Variant > DIM hSettings AS Settings > DIM aVariant AS Variant > hSettings = NEW Settings(System.Home & "/" & ".vl-qemu.conf") > aVariant = hSettings [ IniKey , vDEFAULT ] > RETURN aVariant > END > > PUBLIC SUB WriteIni(IniKey AS String, aVariant AS Variant) > DIM hSettings AS Settings > hSettings = NEW Settings(System.Home & "/" & ".vl-qemu.conf") > hSettings [ IniKey ] = aVariant > END > > PUBLIC SUB SaveConfig() > 'Write config to ini file: > WriteIni("Setting.Boot", frmMain.cmbBoot.Index) > WriteIni("Setting.KeyLang", frmMain.cmbKeyLang.Index) > [snip] > WriteIni("ImagePath.HDD", frmMain.txtHDD.Text) > WriteIni("Network.Samba", frmMain.chkSamba.Value ) > WriteIni("Network.SambaPath", frmMain.txtSamba.Text ) > END > > PUBLIC SUB ReadConfig() > 'Read config from ini file: > frmMain.cmbBoot.Index = ReadIni("Setting.Boot", 0) > frmMain.cmbKeyLang.Index = ReadIni("Setting.KeyLang", 5) > frmMain.cmbRTCMode.Index = ReadIni("Setting.RTCMode", 0) > [snip] > frmMain.txtHDD.Text = ReadIni("ImagePath.HDD", "") > frmMain.chkSamba.Value = ReadIni("Network.Samba", 0) > frmMain.txtSamba.Text = ReadIni("Network.SambaPath", "") > END > > > And in frmMain: > > ' Gambas class file > > PUBLIC SUB Form_Open() > [snip] > 'Read config from ini file: > Global.ReadConfig > [snip] > END > > PUBLIC SUB ButtonExit_Click() > 'Write config to ini file: > Global.SaveConfig > 'Go away... > ME.Close > END > > > Hope that helps. Hi Jose, this helps a lot. Thank you! :-) There is only one question: You are indicating slot/parameter by a "." instead of a "/". Is that right, or do I understand that wrong? Rolf From patrick.jacquot at ...1387... Wed Jun 28 09:55:04 2006 From: patrick.jacquot at ...1387... (Patrick Jacquot) Date: Wed, 28 Jun 2006 09:55:04 +0200 Subject: [Gambas-user] gambas and outportb In-Reply-To: <200606271739.48893.ronstk@...239...> References: <449BA34D.50802@...1362...> <200606240220.15644.sourceforge-raindog2@...94...> <449FC483.3080907@...1362...> <200606271739.48893.ronstk@...239...> Message-ID: <44A235D8.5040901@...1387...> Ron Onstenk wrote: >On Monday 26 June 2006 13:26, mike webb wrote: > > >>i believe you dutch guys have a saying for that: "to gek". >> >> > >LOL >First I do not know the roots of Rob but as far I know he is not Dutch. > >Almost correct, we say "te gek" or "te gek om los te lopen". :) >In English "to crazy" or "to crazy to walk free" (not bound to rules) >The word "gek" can mean crazy (not right in mind) but in this phrase >it is more like unbelievable. > >We use for a "crazy" (not right in mind) person in Dutch also the >word "gek" and here is the meaning to English more or less the same. > >The English word "crazy" can have also more details as our "gek" but >in general we translate "crazy" to "gek" (for both not right in mind). > >Any way your meaning about the situation is indeed "te gek" > >Dutch boy > >Ron > >Using Tomcat but need to do more? Need to support web services, security? >Get stuff done quickly with pre-integrated technology to make your job easier >Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo >http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >_______________________________________________ >Gambas-user mailing list >Gambas-user at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/gambas-user > > > Maybe this word "gek" has the same origin as the anglo-american word "geek"? From gambas at ...1... Wed Jun 28 18:09:24 2006 From: gambas at ...1... (Benoit Minisini) Date: Wed, 28 Jun 2006 18:09:24 +0200 Subject: [Gambas-user] prb:Left() does not work correct. In-Reply-To: <200606160042.52094.ronstk@...239...> References: <200604232329.16829.ronstk@...239...> <200606152300.33855.gambas@...1...> <200606160042.52094.ronstk@...239...> Message-ID: <200606281809.24857.gambas@...1...> On Friday 16 June 2006 00:42, Ron Onstenk wrote: > On Thursday 15 June 2006 23:00, Benoit Minisini wrote: > > On Tuesday 09 May 2006 02:56, ron wrote: > > > On Monday 08 May 2006 22:23, Benoit Minisini wrote: > > > > Can you send me your project, or better, can you isolate the bug and > > > > send me a stripped project that reproduce the bug? > > > > > > > > Thanks in advance. > > > > > > > > Regards, > > > > > > Ok here it is in very stripped form > > > On the bottom of the form is told what to do. > > > > > > Happy programming, > > > > > > Ron > > > > Is this problem fixed? > > No, The problem is in 1.9.32 still there. > > I have redone the sample to try make it more clear. > > If the tag used for Left(control.tag) is not the > .tag of the FIRST control on the form the .tag value is not taken. > And all other tags of remaining controls too. > > > PUBLIC FUNCTION Init(parent AS Form) AS Boolean > DIM idx AS Integer > DIM frm AS Form > DIM ctrl AS Control > DIM t AS String > > txtResult = "" > > frm = parent > FOR EACH ctrl IN frm.Children > PRINT ctrl.Tag > > IF UseTmpString = TRUE THEN > > t = ctrl.tag > IF Left(t, 4) = "bind" THEN '<--------------- this works YES > checktag(ctrl) > END IF > > ELSE > > IF Left(ctrl.tag, 4) = "bind" THEN '<-------- this works NOT > checktag(ctrl) > END IF > > END IF > > NEXT > RETURN TRUE > > END > > Sorry but the .Tag is not always save to use. > > > Ron I finally found the bug and fixed it. It was the "=" and '<>' operators that sometimes did bad things when comparing strings. Strange that you are the only people having problems! Here is a patch for 1.9.32. Regards, -- Benoit Minisini -------------- next part -------------- A non-text attachment was scrubbed... Name: gbx_subr_test.c Type: text/x-csrc Size: 9321 bytes Desc: not available URL: From gael.le-hech at ...357... Wed Jun 28 18:39:16 2006 From: gael.le-hech at ...357... (=?ISO-8859-1?Q?Ga=EBl_Le_Hec=27H?=) Date: Wed, 28 Jun 2006 18:39:16 +0200 Subject: [Gambas-user] Form size on target computer Message-ID: <44A2B0B4.3050101@...357...> Hi, I program an application with gambas 1.9.32 on a computer with a screen resolution of 1920 x 1200, the target computer 's got a screen resolution of 800x600 so all my forms are 800x600 but when the application execute on the target computer the forms are 509 x 381. except making all my forms 1257x942, any idea ? Ga?l Le Hec'H. From ronstk at ...239... Wed Jun 28 19:51:12 2006 From: ronstk at ...239... (Ron Onstenk) Date: Wed, 28 Jun 2006 19:51:12 +0200 Subject: [Gambas-user] Form size on target computer In-Reply-To: <44A2B0B4.3050101@...357...> References: <44A2B0B4.3050101@...357...> Message-ID: <200606281951.12449.ronstk@...239...> On Wednesday 28 June 2006 18:39, Ga?l Le Hec'H wrote: > Hi, > I program an application with gambas 1.9.32 on a computer with a screen > resolution of 1920 x 1200, the target computer 's got a screen > resolution of 800x600 so all my forms are 800x600 but when the > application execute on the target computer the forms are 509 x 381. > except making all my forms 1257x942, any idea ? > > Ga?l Le Hec'H. > I think no other way. Forms are created and saved with MoveScale() The factors used result in your calculation. The only way, and I hope Benoit will consider it to implement, is a option in the project file to use MoveScale() or Move(). This Scale option should prevent all Scale() and use the non scaling () methods. His idea is not bad but it is not alway wanted. I will get the same problem with my project later. The only tip I can give is using Kate/Kedit and change it in the xyz.form before making the executable. Do not forget you MAY NOT edit the forms in the IDE or must manual edit again. I hope the still available Move(x,y) still works in the form. Ron From ronstk at ...239... Wed Jun 28 21:46:47 2006 From: ronstk at ...239... (Ron Onstenk) Date: Wed, 28 Jun 2006 21:46:47 +0200 Subject: [Gambas-user] prb:Left() does not work correct. In-Reply-To: <200606281809.24857.gambas@...1...> References: <200604232329.16829.ronstk@...239...> <200606160042.52094.ronstk@...239...> <200606281809.24857.gambas@...1...> Message-ID: <200606282146.47454.ronstk@...239...> On Wednesday 28 June 2006 18:09, Benoit Minisini wrote: > On Friday 16 June 2006 00:42, Ron Onstenk wrote: ----8<-- a very long story > > Ron > > I finally found the bug and fixed it. It was the "=" and '<>' operators that > sometimes did bad things when comparing strings. > > Strange that you are the only people having problems! You mean person ? :) Uhmmmm and Charlie the bug hunter ? I think that I'm the only one that is going to the limits. :) :) :) Or have a miss behaving mind (by VB) :( > > Here is a patch for 1.9.32. > > Regards, > Just test and I declare "Passed QC" Joking :) Ron From gael.le-hech at ...357... Thu Jun 29 09:15:23 2006 From: gael.le-hech at ...357... (=?ISO-8859-1?Q?Ga=EBl_Le_Hec=27H?=) Date: Thu, 29 Jun 2006 09:15:23 +0200 Subject: [Gambas-user] Form size on target computer In-Reply-To: <200606281951.12449.ronstk@...239...> References: <44A2B0B4.3050101@...357...> <200606281951.12449.ronstk@...239...> Message-ID: <44A37E0B.4070000@...357...> Ron Onstenk a ?crit : > On Wednesday 28 June 2006 18:39, Ga?l Le Hec'H wrote: > >> Hi, >> I program an application with gambas 1.9.32 on a computer with a screen >> resolution of 1920 x 1200, the target computer 's got a screen >> resolution of 800x600 so all my forms are 800x600 but when the >> application execute on the target computer the forms are 509 x 381. >> except making all my forms 1257x942, any idea ? >> >> Ga?l Le Hec'H. >> >> > I think no other way. > Forms are created and saved with MoveScale() > The factors used result in your calculation. > The only way, and I hope Benoit will consider it to implement, > is a option in the project file to use MoveScale() or Move(). > This Scale option should prevent all Scale() and use the > non scaling () methods. > His idea is not bad but it is not alway wanted. > I will get the same problem with my project later. > > The only tip I can give is using Kate/Kedit and change it > in the xyz.form before making the executable. > Do not forget you MAY NOT edit the forms in the IDE or > must manual edit again. > I hope the still available Move(x,y) still works in the form. > > Ron > > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > thank you for the tip but in practice, what number do I put in place of 72.7273 and 54.5455 to obtain a 800x600 form ? # Gambas Form File 1.0 { frmRecette Form MoveScaled(0,0,72.7273,54.5455) 'Move(0,0,800,600) Text = ("") Border = Window.Fixed { lstRe7 ListBox MoveScaled(1,1,71,47) 'Move(11,11,781,517) } From gambas.fr at ...626... Thu Jun 29 09:28:18 2006 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 29 Jun 2006 09:28:18 +0200 Subject: [Gambas-user] Form size on target computer In-Reply-To: <44A37E0B.4070000@...357...> References: <44A2B0B4.3050101@...357...> <200606281951.12449.ronstk@...239...> <44A37E0B.4070000@...357...> Message-ID: <6324a42a0606290028r5c5431d8w6d97a9bbbaecb467@...627...> 2006/6/29, Ga?l Le Hec'H : > Ron Onstenk a ?crit : > > On Wednesday 28 June 2006 18:39, Ga?l Le Hec'H wrote: > > > >> Hi, > >> I program an application with gambas 1.9.32 on a computer with a screen > >> resolution of 1920 x 1200, the target computer 's got a screen > >> resolution of 800x600 so all my forms are 800x600 but when the > >> application execute on the target computer the forms are 509 x 381. > >> except making all my forms 1257x942, any idea ? > >> > >> Ga?l Le Hec'H. > >> > >> > > I think no other way. > > Forms are created and saved with MoveScale() > > The factors used result in your calculation. > > The only way, and I hope Benoit will consider it to implement, > > is a option in the project file to use MoveScale() or Move(). > > This Scale option should prevent all Scale() and use the > > non scaling () methods. > > His idea is not bad but it is not alway wanted. > > I will get the same problem with my project later. > > > > The only tip I can give is using Kate/Kedit and change it > > in the xyz.form before making the executable. > > Do not forget you MAY NOT edit the forms in the IDE or > > must manual edit again. > > I hope the still available Move(x,y) still works in the form. > > > > Ron > > > > Using Tomcat but need to do more? Need to support web services, security? > > Get stuff done quickly with pre-integrated technology to make your job easier > > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > thank you for the tip but in practice, what number do I put in place of > 72.7273 and 54.5455 to obtain a 800x600 form ? > > # Gambas Form File 1.0 > > { frmRecette Form > MoveScaled(0,0,72.7273,54.5455) > 'Move(0,0,800,600) > Text = ("") > Border = Window.Fixed > { lstRe7 ListBox > MoveScaled(1,1,71,47) > 'Move(11,11,781,517) > } > > > > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > Hi Ga?l, Just Put that in Forms code in PUBLIC SUB _New Me.Resize(800,600) END And your form will be resized before opening in real size... not scaled ! Regards, Fabien Bodard From ronstk at ...239... Thu Jun 29 09:27:48 2006 From: ronstk at ...239... (Ron Onstenk) Date: Thu, 29 Jun 2006 09:27:48 +0200 Subject: [Gambas-user] Form size on target computer In-Reply-To: <44A37E0B.4070000@...357...> References: <44A2B0B4.3050101@...357...> <200606281951.12449.ronstk@...239...> <44A37E0B.4070000@...357...> Message-ID: <200606290927.48499.ronstk@...239...> On Thursday 29 June 2006 09:15, Ga?l Le Hec'H wrote: > # Gambas Form File 1.0 > > { frmRecette Form > ? MoveScaled(0,0,72.7273,54.5455) > ? 'Move(0,0,800,600) > ? Text = ("") > ? Border = Window.Fixed > ? { lstRe7 ListBox > ? ? MoveScaled(1,1,71,47) > ? ? 'Move(11,11,781,517) > ? } > You should change from > MoveScaled(0,0,72.7273,54.5455) > 'Move(0,0,800,600) to > 'MoveScaled(0,0,72.7273,54.5455) > Move(0,0,800,600) See the single quote change > MoveScaled(1,1,71,47) > 'Move(11,11,781,517) This means you need to read the whole file for same occurrences and change them. Maybe a global replace can help search for _'Move(_ replace by _Move(_ search for _MoveScale(_ replace by _'MoveScale(_ Also you can search the IDE source and try to change in Form save. I have seen in the source code there is a fall back from MoveScale( to Move(. Changing here is more for advanced users :) Make a note in the Fyourform.class about the manual changes and a warning "DO NOT EDIT FORM" or so. And of course this is not supported by Benoit or anyone else so do not complain if it does harm :) Ron From gambas.fr at ...626... Thu Jun 29 10:25:29 2006 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 29 Jun 2006 10:25:29 +0200 Subject: [Gambas-user] Fwd: [Gambas-devel] New gambas MDI Component. In-Reply-To: <200606280018.10373.sirfabien@...626...> References: <200606280018.10373.sirfabien@...626...> Message-ID: <6324a42a0606290125o1c11ee04y252ce701b1137805@...627...> ---------- Forwarded message ---------- From: Fabien Bodard Date: 28 juin 2006 00:18 Subject: [Gambas-devel] New gambas MDI Component. To: gambas-devel at lists.sourceforge.net, Benoit Minisini Hi to all gambasian ! As the benoit new mdi component not really good for me i've begin to do one myself. It's not perfect and in alfa/beta devel :). You can try it by : Decompress the archive in the GmabasPath/comp directory. Add the gb.form.mda entry in the 'order' file. do a make do a make install then you can try it ! If you want to test gambas ide with this new mdi component : Open the ide source (gambaspath/app/gambas2) ant change in project option the gb.form.mdi by gb.form.mda. then run with F5 and see gambas with a windowed style mdi component. The maximized mode work lique the benoit component. I'm trying to use the better off the two ideas. If you are finding any bugs Say me it now ! In this version i've integrated the code that Ron Onstenk have send to me. (Hey Ron!, i've done some change on your code... special windows like Forms can't be resized so i deasable the menu tile_window if one of then are this type and forget the resizing in cascade.) There is menu to manipulate windows and a taskbar that allow to simply use windows ! If you have any ideas else tell me ! Another thing is fabulous.... GTK will have a true mdi widget now ;) Regards, Fabien Bodard Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel -------------- next part -------------- A non-text attachment was scrubbed... Name: capture8.png Type: image/png Size: 115352 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: gb.form.mda-0.1.tar.gz Type: application/x-gzip Size: 23765 bytes Desc: not available URL: From ronstk at ...239... Thu Jun 29 10:27:01 2006 From: ronstk at ...239... (Ron Onstenk) Date: Thu, 29 Jun 2006 10:27:01 +0200 Subject: [Gambas-user] Form size on target computer In-Reply-To: <6324a42a0606290028r5c5431d8w6d97a9bbbaecb467@...627...> References: <44A2B0B4.3050101@...357...> <44A37E0B.4070000@...357...> <6324a42a0606290028r5c5431d8w6d97a9bbbaecb467@...627...> Message-ID: <200606291027.01311.ronstk@...239...> On Thursday 29 June 2006 09:28, Fabien Bodard wrote: > Just Put that in Forms code > > in > PUBLIC SUB _New > > Me.Resize(800,600) > > END As far i know it did not work (always) for me. Can be I did it in _Open() ? But is there also need the form is resizable instead fixed? Ron From erwinpogz at ...43... Thu Jun 29 11:43:31 2006 From: erwinpogz at ...43... (Erwin Pogz) Date: Thu, 29 Jun 2006 02:43:31 -0700 (PDT) Subject: [Gambas-user] I am excited of the Gambas Module for Apache Message-ID: <20060629094331.32556.qmail@...1487...> As i looked at the gambas' roadmap, I saw the plan for apache module. This excites me most in gambas. :) I want to build a web application using gambas. Erwin :) --------------------------------- Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1?/min. -------------- next part -------------- An HTML attachment was scrubbed... URL: From gael.le-hech at ...357... Thu Jun 29 14:53:21 2006 From: gael.le-hech at ...357... (=?ISO-8859-1?Q?Ga=EBl_Le_Hec=27H?=) Date: Thu, 29 Jun 2006 14:53:21 +0200 Subject: [Gambas-user] Form size on target computer In-Reply-To: <200606290927.48499.ronstk@...239...> References: <44A2B0B4.3050101@...357...> <200606281951.12449.ronstk@...239...> <44A37E0B.4070000@...357...> <200606290927.48499.ronstk@...239...> Message-ID: <44A3CD41.1070800@...357...> An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: flower.gif Type: image/gif Size: 261 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: skypeme_btn_white.gif Type: image/gif Size: 2166 bytes Desc: not available URL: From psaborio1 at ...43... Thu Jun 29 21:10:40 2006 From: psaborio1 at ...43... (pablo saborio) Date: Thu, 29 Jun 2006 12:10:40 -0700 (PDT) Subject: [Gambas-user] QiLinux Link Message-ID: <20060629191040.5209.qmail@...1488...> This is to inform you that the QiLinux Link for download the Gambas binaries has changed to: ftp://ftp.qilinux.it/pub/QiLinux/devel/RPMS/i586/ Sincerely, Pablo Saborio __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From sirfabien at ...626... Thu Jun 29 21:46:44 2006 From: sirfabien at ...626... (Fabien Bodard) Date: Thu, 29 Jun 2006 21:46:44 +0200 Subject: [Gambas-user] Form size on target computer In-Reply-To: <44A3CD41.1070800@...357...> References: <44A2B0B4.3050101@...357...> <200606290927.48499.ronstk@...239...> <44A3CD41.1070800@...357...> Message-ID: <200606292146.44582.sirfabien@...626...> Le Jeudi 29 Juin 2006 14:53, Ga?l Le Hec'H a ?crit?: > > thanks ron ! it works > sorry fabien the me.resize(800,600) don't work for me Sorry i've not tested it before From sirfabien at ...626... Thu Jun 29 21:48:29 2006 From: sirfabien at ...626... (Fabien Bodard) Date: Thu, 29 Jun 2006 21:48:29 +0200 Subject: [Gambas-user] I am excited of the Gambas Module for Apache In-Reply-To: <20060629094331.32556.qmail@...1487...> References: <20060629094331.32556.qmail@...1487...> Message-ID: <200606292148.29178.sirfabien@...626...> Le Jeudi 29 Juin 2006 11:43, Erwin Pogz a ?crit?: > As i looked at the gambas' roadmap, I saw the plan for apache module. > > This excites me most in gambas. :) I want to build a web application > using gambas. > > Erwin :) you can already doing that ! in cgi ! The gambasDoc.org site is writed in gambas SUre it's not really the same as a module but... > > > --------------------------------- > Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates > starting at 1?/min. From gambas at ...1... Fri Jun 30 02:37:55 2006 From: gambas at ...1... (Benoit Minisini) Date: Fri, 30 Jun 2006 02:37:55 +0200 Subject: [Gambas-user] QiLinux Link In-Reply-To: <20060629191040.5209.qmail@...1488...> References: <20060629191040.5209.qmail@...1488...> Message-ID: <200606300237.55494.gambas@...1...> On Thursday 29 June 2006 21:10, pablo saborio wrote: > This is to inform you that the QiLinux Link for > download the Gambas binaries has changed to: > > ftp://ftp.qilinux.it/pub/QiLinux/devel/RPMS/i586/ > > > > Sincerely, > > Pablo Saborio > OK. -- Benoit Minisini