From Karl.Reinl at ...9... Sun Feb 1 13:55:22 2009 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Sun, 01 Feb 2009 13:55:22 +0100 Subject: [Gambas-user] gambas3 In-Reply-To: <200901310420.15421.gambas@...1...> References: <1233320501.4982fa3588b43@...1825...> <200901310304.10724.gambas@...1...> <200901310339.38416.ronstk@...239...> <200901310420.15421.gambas@...1...> Message-ID: <1233492922.6779.12.camel@...40...> Am Samstag, den 31.01.2009, 04:20 +0100 schrieb Benoit Minisini: > On samedi 31 janvier 2009, Ron_1st wrote: > > On Saturday 31 January 2009, Benoit Minisini wrote: > > > On vendredi 30 janvier 2009, Ron_1st wrote: > > > > Question to Benoit > > > > I have 2 directories for aclocal, aclocal and aclocal-1.9 > > > > the configure script refer to the 1.9, does aclocal/automake fall back > > > > to the aclocal for missing *.m4 files ? > > > > > > I don't know what you are talking about. Where are these two aclocal > > > directories? > > > > reconf and/or configure use it. > > > > > > > > /usr/share/aclocal > > /usr/share/aclocal-1.9 > > > > > > # aclocal --version > > aclocal (GNU automake) 1.9.6 > > # automake --version > > automake (GNU automake) 1.9.6 > > # libtool --version > > ltmain.sh (GNU libtool) 1.5.26 Debian 1.5.26-1ubuntu1 (1.1220.2.493 > > 2008/02/01 16:58:18) > > > > > > > > > > > > > > Best regards, > > > > Ron_1st > > I have the same directories on Mandriva, but an older version. It seems that > their contents are mutually exclusive, so I think everything is normal there. > Salut, something I found today (think Ron 1. said it) This is the output from 'svn checkout ....... ' Wieder hergestellt = Restored charlie at ...1622...:~$ cd /opt/gambas/3 charlie at ...1622...:/opt/gambas/3$ ./svn-Update30 Wieder hergestellt ?/opt/gambas/3/gambas-svn30/gb.gtk/src/gb.gtk/.info? Wieder hergestellt ?/opt/gambas/3/gambas-svn30/gb.gtk/src/gb.gtk/.list? Wieder hergestellt ?/opt/gambas/3/gambas-svn30/comp/src/gb.form.mdi/.list? Wieder hergestellt ?/opt/gambas/3/gambas-svn30/comp/src/gb.form.mdi/.info? Wieder hergestellt ?/opt/gambas/3/gambas-svn30/comp/src/gb.report/.list? Wieder hergestellt ?/opt/gambas/3/gambas-svn30/comp/src/gb.report/.info? Wieder hergestellt ?/opt/gambas/3/gambas-svn30/comp/src/gb.chart/.list? Wieder hergestellt ?/opt/gambas/3/gambas-svn30/comp/src/gb.chart/.info? Wieder hergestellt ?/opt/gambas/3/gambas-svn30/comp/src/gb.form/.list? Wieder hergestellt ?/opt/gambas/3/gambas-svn30/comp/src/gb.form/.info? Wieder hergestellt ?/opt/gambas/3/gambas-svn30/comp/src/gb.db.form/.list? Wieder hergestellt ?/opt/gambas/3/gambas-svn30/comp/src/gb.db.form/.info? Wieder hergestellt ?/opt/gambas/3/gambas-svn30/gb.qt/src/gb.qt/.info? Wieder hergestellt ?/opt/gambas/3/gambas-svn30/gb.qt/src/gb.qt/.list? U /opt/gambas/3/gambas-svn30/main/gbx/gbx_class.c U /opt/gambas/3/gambas-svn30/main/gbx/gbx_class.h Ausgecheckt, Revision 1839. Revision 1839. ********************************* ./reconf-all ********************************* ran without Error, but a $ gambas3 gives : ERROR: #2: Cannot load class 'Project': Unable to load class file To say also, my Ubuntu is not a freshly installed Ubuntu 8.04, but an updated Ubuntu 6.06 (last LTS) -- Amicalment Charlie From leonardo at ...1237... Sun Feb 1 15:58:39 2009 From: leonardo at ...1237... (Leonardo Miliani) Date: Sun, 01 Feb 2009 15:58:39 +0100 Subject: [Gambas-user] Strange message error Message-ID: <4985B89F.6030506@...1237...> I know that the following code is wrong 'cause Gambas doesn't accept multiply instructions on 1 row but I would report the strange message error that I get: "Unespected k alla riga ....." (at row....) [where there is the FOR loop] Code: ------------------------------- DIM A, b AS Integer FOR a = 1 TO 10: b += 1: NEXT ------------------------------- P.S.: Gambas 2.11 / Ubuntu 8.10 -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Scegli software opensource - Choose opensource software Co-fondatore di Gambas-it.org Il sito di riferimento della comunit? italiana degli utenti di Gambas www.gambas-it.org From gambas at ...1... Sun Feb 1 16:13:37 2009 From: gambas at ...1... (Benoit Minisini) Date: Sun, 1 Feb 2009 16:13:37 +0100 Subject: [Gambas-user] Strange message error In-Reply-To: <4985B89F.6030506@...1237...> References: <4985B89F.6030506@...1237...> Message-ID: <200902011613.37648.gambas@...1...> On dimanche 1 f?vrier 2009, Leonardo Miliani wrote: > I know that the following code is wrong 'cause Gambas doesn't accept > multiply instructions on 1 row but I would report the strange message > error that I get: > "Unespected k > alla riga ....." (at row....) [where there is the FOR loop] > > Code: > ------------------------------- > DIM A, b AS Integer > FOR a = 1 TO 10: b += 1: NEXT > ------------------------------- > > P.S.: > Gambas 2.11 / Ubuntu 8.10 Funny. I will look at it... -- Benoit Minisini From gambas at ...1... Sun Feb 1 16:45:19 2009 From: gambas at ...1... (Benoit Minisini) Date: Sun, 1 Feb 2009 16:45:19 +0100 Subject: [Gambas-user] Strange message error In-Reply-To: <200902011613.37648.gambas@...1...> References: <4985B89F.6030506@...1237...> <200902011613.37648.gambas@...1...> Message-ID: <200902011645.19683.gambas@...1...> On dimanche 1 f?vrier 2009, Benoit Minisini wrote: > On dimanche 1 f?vrier 2009, Leonardo Miliani wrote: > > I know that the following code is wrong 'cause Gambas doesn't accept > > multiply instructions on 1 row but I would report the strange message > > error that I get: > > "Unespected k > > alla riga ....." (at row....) [where there is the FOR loop] > > > > Code: > > ------------------------------- > > DIM A, b AS Integer > > FOR a = 1 TO 10: b += 1: NEXT > > ------------------------------- > > > > P.S.: > > Gambas 2.11 / Ubuntu 8.10 > > Funny. I will look at it... OK, this is fixed in revision #1840. -- Benoit Minisini From gambas at ...1... Sun Feb 1 16:49:16 2009 From: gambas at ...1... (Benoit Minisini) Date: Sun, 1 Feb 2009 16:49:16 +0100 Subject: [Gambas-user] Gambas & PostgreSQL cannot create index. relation XXX does not exist. In-Reply-To: <49788A3B.7090704@...734...> References: <49788A3B.7090704@...734...> Message-ID: <200902011649.16131.gambas@...1...> On jeudi 22 janvier 2009, Randy wrote: > Hello. > > New to Gambas and having problems with following code: > > STATIC PUBLIC FUNCTION CreateGLTables() > > DIM hTable AS Table > > hTable = Global.$hConn.Tables.Add("glcoa") > WITH hTable > .Fields.Add("company", db.String, 3) > .Fields.Add("account", db.String, 12) > .Fields.Add("description", gb.String, 32) > .Fields.Add("gltype", gb.String, 1) > .Fields.Add("glsort", gb.Integer) > .Fields.Add("status", gb.String, 1) > .PrimaryKey = ["account"] > .Indexes.Add("glcoa_account", "account", TRUE) > .Indexes.Add("glcoa_sort", "glsort", TRUE) > .Update > END WITH > > CATCH > > Message.Error("CreateGLTables Function: " & DConv(Error.Text)) > END > > > The error is "Cannot create index. relation glcoa does not exist." Why? > Can not find any information on the internet about this error. > > Help :-( > Randy > Finally, this is not a bug. Just that the database component can only create indexes on already existing tables. And the table you are creating does not exist until you call the "Update" method. So you just have to move the ".Update" line just before the ".Indexes..." lines. Regards, -- Benoit Minisini From gambas at ...1... Sun Feb 1 16:52:05 2009 From: gambas at ...1... (Benoit Minisini) Date: Sun, 1 Feb 2009 16:52:05 +0100 Subject: [Gambas-user] Warning with Gambas 3 In-Reply-To: <200901212100.49706.gambas@...1...> References: <200901212100.49706.gambas@...1...> Message-ID: <200902011652.05280.gambas@...1...> On mercredi 21 janvier 2009, Benoit Minisini wrote: > > Now, Image are always transparent, and the syntax is: > > -------- > New Image(Optional Width As Integer, Optional Height As Integer, Optional > Format As Integer, Optional Color As Integer) > -------- > The syntax has changed again: The Color and Format arguments have been exchanged. New Image(Optional Width As Integer, Optional Height As Integer, Optional Color As Integer, Optional Format As Integer) Regards, -- Benoit Minisini From gambas at ...1... Sun Feb 1 17:03:18 2009 From: gambas at ...1... (Benoit Minisini) Date: Sun, 1 Feb 2009 17:03:18 +0100 Subject: [Gambas-user] Minor bug with READ & WRITE commands? In-Reply-To: <384d3900901190706y1b7bb58dqb2ddbd099f743676@...627...> References: <384d3900901151113w73982792k14ad2b8424bf812b@...627...> <20090119051015.M88226@...951...> <384d3900901190706y1b7bb58dqb2ddbd099f743676@...627...> Message-ID: <200902011703.18781.gambas@...1...> On lundi 19 janvier 2009, Jussi Lahtinen wrote: > I agree. > But there should be warning message in documentation of read and write > commands. > > > Jussi > I added a big warning on the documentation page of the READ and WRITE instructions. -- Benoit Minisini From joshiggins at ...1601... Sun Feb 1 18:52:19 2009 From: joshiggins at ...1601... (Joshua Higgins) Date: Sun, 1 Feb 2009 17:52:19 +0000 Subject: [Gambas-user] timers in console app Message-ID: <4247f5440902010952q354ecc4fud76552ae9d5cd760@...627...> Is it possible to use timers in console apps? -- joshua higgins >>>>>>------ From gambas at ...1... Sun Feb 1 18:58:44 2009 From: gambas at ...1... (Benoit Minisini) Date: Sun, 1 Feb 2009 18:58:44 +0100 Subject: [Gambas-user] timers in console app In-Reply-To: <4247f5440902010952q354ecc4fud76552ae9d5cd760@...627...> References: <4247f5440902010952q354ecc4fud76552ae9d5cd760@...627...> Message-ID: <200902011858.44655.gambas@...1...> On dimanche 1 f?vrier 2009, Joshua Higgins wrote: > Is it possible to use timers in console apps? Of course. -- Benoit Minisini From ronstk at ...239... Sun Feb 1 19:20:45 2009 From: ronstk at ...239... (Ron_1st) Date: Sun, 1 Feb 2009 19:20:45 +0100 Subject: [Gambas-user] Gambas & PostgreSQL cannot create index. relation XXX does not exist. In-Reply-To: <200902011649.16131.gambas@...1...> References: <49788A3B.7090704@...734...> <200902011649.16131.gambas@...1...> Message-ID: <200902011920.46100.ronstk@...239...> On Sunday 01 February 2009, Benoit Minisini wrote: > On jeudi 22 janvier 2009, Randy wrote: > > Hello. > > > > New to Gambas and having problems with following code: > > > > STATIC PUBLIC FUNCTION CreateGLTables() > > > > DIM hTable AS Table > > > > hTable = Global.$hConn.Tables.Add("glcoa") > > WITH hTable > > .Fields.Add("company", db.String, 3) > > .Fields.Add("account", db.String, 12) > > .Fields.Add("description", gb.String, 32) > > .Fields.Add("gltype", gb.String, 1) > > .Fields.Add("glsort", gb.Integer) > > .Fields.Add("status", gb.String, 1) > > .PrimaryKey = ["account"] > > .Indexes.Add("glcoa_account", "account", TRUE) > > .Indexes.Add("glcoa_sort", "glsort", TRUE) > > .Update > > END WITH > > > > CATCH > > > > Message.Error("CreateGLTables Function: " & DConv(Error.Text)) > > END > > > > > > The error is "Cannot create index. relation glcoa does not exist." Why? > > Can not find any information on the internet about this error. > > > > Help :-( > > Randy > > > > Finally, this is not a bug. Just that the database component can only create > indexes on already existing tables. > > And the table you are creating does not exist until you call the "Update" > method. So you just have to move the ".Update" line just before > the ".Indexes..." lines. > > Regards, > Just as I told to do in my last post on this subject jummy I was right :) Best regards, Ron_1st -- From joshiggins at ...1601... Sun Feb 1 19:41:40 2009 From: joshiggins at ...1601... (Joshua Higgins) Date: Sun, 1 Feb 2009 18:41:40 +0000 Subject: [Gambas-user] timers in console app In-Reply-To: <200902011858.44655.gambas@...1...> References: <4247f5440902010952q354ecc4fud76552ae9d5cd760@...627...> <200902011858.44655.gambas@...1...> Message-ID: <4247f5440902011041q7d851e53n966bfc3e00d416e4@...627...> This is my code, but it doesn't seem to work. PUBLIC SUB Main() DIM timer1 AS NEW Timer timer1.Delay = 100 timer1.Enabled = TRUE END PUBLIC SUB timer1_Timer() PRINT "hello" END Whats wrong here? 2009/2/1 Benoit Minisini > On dimanche 1 f?vrier 2009, Joshua Higgins wrote: > > Is it possible to use timers in console apps? > > Of course. > > -- > Benoit Minisini > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- joshua higgins >>>>>>------ From ronstk at ...239... Sun Feb 1 19:42:36 2009 From: ronstk at ...239... (Ron_1st) Date: Sun, 1 Feb 2009 19:42:36 +0100 Subject: [Gambas-user] gambas3 In-Reply-To: <1233492922.6779.12.camel@...40...> References: <1233320501.4982fa3588b43@...1825...> <200901310420.15421.gambas@...1...> <1233492922.6779.12.camel@...40...> Message-ID: <200902011942.36842.ronstk@...239...> On Sunday 01 February 2009, Charlie Reinl wrote: > Am Samstag, den 31.01.2009, 04:20 +0100 schrieb Benoit Minisini: > > On samedi 31 janvier 2009, Ron_1st wrote: =========8<====== > > something I found today (think Ron 1. said it) > This is the output from 'svn checkout ....... ' > > Wieder hergestellt = Restored > > charlie at ...1622...:~$ cd /opt/gambas/3 > charlie at ...1622...:/opt/gambas/3$ ./svn-Update30 > Wieder hergestellt ?/opt/gambas/3/gambas-svn30/gb.gtk/src/gb.gtk/.info? > Wieder hergestellt ?/opt/gambas/3/gambas-svn30/gb.gtk/src/gb.gtk/.list? > Wieder hergestellt > ?/opt/gambas/3/gambas-svn30/comp/src/gb.form.mdi/.list? > Wieder hergestellt > ?/opt/gambas/3/gambas-svn30/comp/src/gb.form.mdi/.info? > Wieder hergestellt ?/opt/gambas/3/gambas-svn30/comp/src/gb.report/.list? > Wieder hergestellt ?/opt/gambas/3/gambas-svn30/comp/src/gb.report/.info? > Wieder hergestellt ?/opt/gambas/3/gambas-svn30/comp/src/gb.chart/.list? > Wieder hergestellt ?/opt/gambas/3/gambas-svn30/comp/src/gb.chart/.info? > Wieder hergestellt ?/opt/gambas/3/gambas-svn30/comp/src/gb.form/.list? > Wieder hergestellt ?/opt/gambas/3/gambas-svn30/comp/src/gb.form/.info? > Wieder hergestellt > ?/opt/gambas/3/gambas-svn30/comp/src/gb.db.form/.list? > Wieder hergestellt > ?/opt/gambas/3/gambas-svn30/comp/src/gb.db.form/.info? > Wieder hergestellt ?/opt/gambas/3/gambas-svn30/gb.qt/src/gb.qt/.info? > Wieder hergestellt ?/opt/gambas/3/gambas-svn30/gb.qt/src/gb.qt/.list? > U /opt/gambas/3/gambas-svn30/main/gbx/gbx_class.c > U /opt/gambas/3/gambas-svn30/main/gbx/gbx_class.h > Ausgecheckt, Revision 1839. > Revision 1839. > ********************************* > ./reconf-all > ********************************* > ran without Error, > but a $ gambas3 > gives : > ERROR: #2: Cannot load class 'Project': Unable to load class file > > > To say also, my Ubuntu is not a freshly installed Ubuntu 8.04, but an > updated Ubuntu 6.06 (last LTS) > > OK I'm still try to find out. First you need to update the automake to 10.0 regardless the comment it maybe incompatible with older versions. Some minor errors disapear but it is not the final point. The big difference I found atm is the automake Benoit uses is version 2.63 and ubuntu has 2.61 as last version. 2.63 is adding a lot of code into the Makefile.am from Makefile.in This results in more adding stuff in Makefile and configure scripts. In the difference between 2.61 and 2.63 there are some cleanup/bug fixes to see. But the major thing is 2.63 add a lot of other code and that looks to be failing somewhere. I got a dump of the tree from Benoit and as he suspect ther must going something wrong in the configuration with make. Well that is the automake tools package has a problem in combination with ubuntu and the supplied Makefile.in of the gambas project. The problem is in the parts where gbc3 and/or gba3 must do things durring the make install. By "make install" in the comps directory the .inf and .list files are deleted. Begore the comp is done in early stage this is also done for gb.qt and gb.gtk A fail also exists here and that is the reason why the comps fail later. Still busy but I did need a pause too yesterday. I must verify that what I think is a error is realy true and not father of the wish. That means restart all after copy of the svn tree from backup with every step where the reconf and configure takes a lot of time. The biggest question is for me ATM: Why does gbc3 and gba3 delete the .info and .list file if they find a error somewhere. Best regards, Ron_1st -- A: Delete the text you reply on. Q: What to do to get my post on top? --- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? --- A: Top-posting. Q: What is the most annoying thing in e-mail? From doriano.blengino at ...1909... Sun Feb 1 20:03:08 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Sun, 01 Feb 2009 20:03:08 +0100 Subject: [Gambas-user] timers in console app In-Reply-To: <4247f5440902011041q7d851e53n966bfc3e00d416e4@...627...> References: <4247f5440902010952q354ecc4fud76552ae9d5cd760@...627...> <200902011858.44655.gambas@...1...> <4247f5440902011041q7d851e53n966bfc3e00d416e4@...627...> Message-ID: <4985F1EC.9080009@...1909...> Joshua Higgins ha scritto: > This is my code, but it doesn't seem to work. > > PUBLIC SUB Main() > > DIM timer1 AS NEW Timer > You must specify the clause ' AS "timer1" ', because no events will be fired otherwise. DIM timer1 AS NEW Timer as "timer1" Not really sure you can do that, may be you must DIM the timer and then do timer1 = new timer as "timer1". Regards, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From gambas at ...1... Sun Feb 1 20:04:24 2009 From: gambas at ...1... (Benoit Minisini) Date: Sun, 1 Feb 2009 20:04:24 +0100 Subject: [Gambas-user] timers in console app In-Reply-To: <4247f5440902011041q7d851e53n966bfc3e00d416e4@...627...> References: <4247f5440902010952q354ecc4fud76552ae9d5cd760@...627...> <200902011858.44655.gambas@...1...> <4247f5440902011041q7d851e53n966bfc3e00d416e4@...627...> Message-ID: <200902012004.24149.gambas@...1...> On dimanche 1 f?vrier 2009, Joshua Higgins wrote: > This is my code, but it doesn't seem to work. > > PUBLIC SUB Main() > > DIM timer1 AS NEW Timer > timer1.Delay = 100 > timer1.Enabled = TRUE > > END > > PUBLIC SUB timer1_Timer() > > PRINT "hello" > > END > > Whats wrong here? > See the documentation of NEW: if you don't specify an event time, your timer will never raise events. Regards, -- Benoit Minisini From gambas at ...1... Sun Feb 1 20:07:16 2009 From: gambas at ...1... (Benoit Minisini) Date: Sun, 1 Feb 2009 20:07:16 +0100 Subject: [Gambas-user] timers in console app In-Reply-To: <200902012004.24149.gambas@...1...> References: <4247f5440902010952q354ecc4fud76552ae9d5cd760@...627...> <4247f5440902011041q7d851e53n966bfc3e00d416e4@...627...> <200902012004.24149.gambas@...1...> Message-ID: <200902012007.16159.gambas@...1...> On dimanche 1 f?vrier 2009, Benoit Minisini wrote: > On dimanche 1 f?vrier 2009, Joshua Higgins wrote: > > This is my code, but it doesn't seem to work. > > > > PUBLIC SUB Main() > > > > DIM timer1 AS NEW Timer > > timer1.Delay = 100 > > timer1.Enabled = TRUE > > > > END > > > > PUBLIC SUB timer1_Timer() > > > > PRINT "hello" > > > > END > > > > Whats wrong here? > > See the documentation of NEW: if you don't specify an event time, your > timer will never raise events. ^ > /|\ > Regards, | | name ----------------------------------------------------------' -- Benoit Minisini From rterry at ...1946... Sun Feb 1 21:42:27 2009 From: rterry at ...1946... (richard terry) Date: Mon, 2 Feb 2009 07:42:27 +1100 Subject: [Gambas-user] pdf's no longer rendering Message-ID: <200902020742.28071.rterry@...1946...> I've noticed this for a number of versions (currently using 1838) Unknown symbol 'get picture' in class pdfpage > dies, the demo is the same. Regards richard -------------- next part -------------- A non-text attachment was scrubbed... Name: pdf_problem.png Type: image/png Size: 8811 bytes Desc: not available URL: From gambas at ...1... Sun Feb 1 23:54:20 2009 From: gambas at ...1... (Benoit Minisini) Date: Sun, 1 Feb 2009 23:54:20 +0100 Subject: [Gambas-user] pdf's no longer rendering In-Reply-To: <200902020742.28071.rterry@...1946...> References: <200902020742.28071.rterry@...1946...> Message-ID: <200902012354.20254.gambas@...1...> On dimanche 1 f?vrier 2009, richard terry wrote: > I've noticed this for a number of versions (currently using 1838) > > Unknown symbol 'get picture' in class pdfpage > dies, the demo is the same. > > Regards > > richard It is just a matter of replacing .GetPicture() by Image.Picture in the source code. Regards, -- Benoit Minisini From bug.me at ...734... Mon Feb 2 00:04:39 2009 From: bug.me at ...734... (Randy) Date: Sun, 01 Feb 2009 18:04:39 -0500 Subject: [Gambas-user] Gambas & PostgreSQL cannot create index. relation XXX does not exist. In-Reply-To: <200902011649.16131.gambas@...1...> References: <49788A3B.7090704@...734...> <200902011649.16131.gambas@...1...> Message-ID: <49862A87.6010404@...734...> Benoit Minisini wrote: > On jeudi 22 janvier 2009, Randy wrote: > >> Hello. >> >> New to Gambas and having problems with following code: >> >> STATIC PUBLIC FUNCTION CreateGLTables() >> >> DIM hTable AS Table >> >> hTable = Global.$hConn.Tables.Add("glcoa") >> WITH hTable >> .Fields.Add("company", db.String, 3) >> .Fields.Add("account", db.String, 12) >> .Fields.Add("description", gb.String, 32) >> .Fields.Add("gltype", gb.String, 1) >> .Fields.Add("glsort", gb.Integer) >> .Fields.Add("status", gb.String, 1) >> .PrimaryKey = ["account"] >> .Indexes.Add("glcoa_account", "account", TRUE) >> .Indexes.Add("glcoa_sort", "glsort", TRUE) >> .Update >> END WITH >> >> CATCH >> >> Message.Error("CreateGLTables Function: " & DConv(Error.Text)) >> END >> >> >> The error is "Cannot create index. relation glcoa does not exist." Why? >> Can not find any information on the internet about this error. >> >> Help :-( >> Randy >> >> > > Finally, this is not a bug. Just that the database component can only create > indexes on already existing tables. > > And the table you are creating does not exist until you call the "Update" > method. So you just have to move the ".Update" line just before > the ".Indexes..." lines. > > Regards, > > Benoit Minisini Hello Benoit, The above code creates an SQL statement for the index, but not for the table. See debug information: No CREATE TABLE SQL when you try make table with indexes. It's missing! Why make the index sql? It should be the table first! postgresql: 0x8159aa8: select substring(version(),12,5) postgresql: 0x8159aa8: show client_encoding postgresql: 0x8159aa8: select relname from pg_class where (relkind = 'r' or relkind = 'v') and (relname = 'glcoa') and (relnamespace not in (select oid from pg_namespace where nspname = 'information_schema')) postgresql: 0x8159aa8: select pg_class.relname from pg_class, pg_index, pg_class pg_class2 where pg_class2.relname = 'glcoa' and (pg_class2.relnamespace not in (select oid from pg_namespace where nspname = 'information_schema')) and pg_index.indrelid = pg_ class2.oid and pg_index.indexrelid = pg_class.oid and pg_class.relname = 'glcoa_sort' postgresql: 0x8159aa8: CREATE UNIQUE INDEX "glcoa_sort" ON glcoa ( glsort ) Remove the index and you get the CREATE TABLE sql! postgresql: 0x8159de8: select substring(version(),12,5) postgresql: 0x8159de8: show client_encoding postgresql: 0x8159de8: select relname from pg_class where (relkind = 'r' or relkind = 'v') and (relname = 'glcoa') and (relnamespace not in (select oid from pg_namespace where nspname = 'information_schema')) postgresql: 0x8159de8: CREATE TABLE "glcoa" ( "company" VARCHAR(3), "account" VARCHAR(12) NOT NULL , "description" VARCHAR(32), "gltype" VARCHAR(1), "glsort" INT, "status" VARCHAR(1), PRIMARY KEY (account) ) NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "glcoa_pkey" for table "glcoa" I think this is a bug, because gambas should make the created table sql. Why do the index sql? What happen to the table? Why can you make a table and indexes? :-( Randy =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Scanned with Copfilter Version 0.84beta3a (ProxSMTP 1.6) AntiSpam: SpamAssassin 3.2.3 AntiVirus: ClamAV 0.91.2/8935 - Sun Feb 1 10:43:52 2009 by Markus Madlener @ http://www.copfilter.org From gambas at ...1... Mon Feb 2 01:05:06 2009 From: gambas at ...1... (Benoit Minisini) Date: Mon, 2 Feb 2009 01:05:06 +0100 Subject: [Gambas-user] Release of Gambas 2.11.1 Message-ID: <200902020105.06716.gambas@...1...> Hi, Here is a release to fix last-minute bugs in the 2.11 version: * The arithmetic operations on Boolean, Byte and Short now behave correctly when an overflow occurs. * The compiler message displayed when there is a syntax error in a FOR...NEXT loop is correct now. * The GridView now stretched its last column correctly. * The GridView cell padding has been fixed. Regards, -- Benoit Minisini From gambas at ...1... Mon Feb 2 12:15:49 2009 From: gambas at ...1... (Benoit Minisini) Date: Mon, 2 Feb 2009 12:15:49 +0100 Subject: [Gambas-user] Gambas & PostgreSQL cannot create index. relation XXX does not exist. In-Reply-To: <49862A87.6010404@...734...> References: <49788A3B.7090704@...734...> <200902011649.16131.gambas@...1...> <49862A87.6010404@...734...> Message-ID: <200902021215.50036.gambas@...1...> On lundi 2 f?vrier 2009, Randy wrote: > Benoit Minisini wrote: > > On jeudi 22 janvier 2009, Randy wrote: > >> Hello. > >> > >> New to Gambas and having problems with following code: > >> > >> STATIC PUBLIC FUNCTION CreateGLTables() > >> > >> DIM hTable AS Table > >> > >> hTable = Global.$hConn.Tables.Add("glcoa") > >> WITH hTable > >> .Fields.Add("company", db.String, 3) > >> .Fields.Add("account", db.String, 12) > >> .Fields.Add("description", gb.String, 32) > >> .Fields.Add("gltype", gb.String, 1) > >> .Fields.Add("glsort", gb.Integer) > >> .Fields.Add("status", gb.String, 1) > >> .PrimaryKey = ["account"] > >> .Indexes.Add("glcoa_account", "account", TRUE) > >> .Indexes.Add("glcoa_sort", "glsort", TRUE) > >> .Update > >> END WITH > >> > >> CATCH > >> > >> Message.Error("CreateGLTables Function: " & DConv(Error.Text)) > >> END > >> > >> > >> The error is "Cannot create index. relation glcoa does not exist." Why? > >> Can not find any information on the internet about this error. > >> > >> Help :-( > >> Randy > > > > Finally, this is not a bug. Just that the database component can only > > create indexes on already existing tables. > > > > And the table you are creating does not exist until you call the "Update" > > method. So you just have to move the ".Update" line just before > > the ".Indexes..." lines. > > > > Regards, > > > > Benoit Minisini > > Hello Benoit, > > The above code creates an SQL statement for the index, but not for the > table. See debug information: > > No CREATE TABLE SQL when you try make table with indexes. It's missing! Why > make the index sql? It should be the table first! > > postgresql: 0x8159aa8: select substring(version(),12,5) > postgresql: 0x8159aa8: show client_encoding > postgresql: 0x8159aa8: select relname from pg_class where (relkind = 'r' > or relkind = 'v') and (relname = 'glcoa') and (relnamespace not in > (select oid from pg_namespace where nspname = 'information_schema')) > postgresql: 0x8159aa8: select pg_class.relname from pg_class, pg_index, > pg_class pg_class2 where pg_class2.relname = 'glcoa' and > (pg_class2.relnamespace not in (select oid from pg_namespace where > nspname = 'information_schema')) and pg_index.indrelid = pg_ > class2.oid and pg_index.indexrelid = pg_class.oid and pg_class.relname = > 'glcoa_sort' > postgresql: 0x8159aa8: CREATE UNIQUE INDEX "glcoa_sort" ON glcoa ( glsort ) > > > Remove the index and you get the CREATE TABLE sql! > > postgresql: 0x8159de8: select substring(version(),12,5) > postgresql: 0x8159de8: show client_encoding > postgresql: 0x8159de8: select relname from pg_class where (relkind = 'r' > or relkind = 'v') and (relname = 'glcoa') and (relnamespace not in > (select oid from pg_namespace where nspname = 'information_schema')) > postgresql: 0x8159de8: CREATE TABLE "glcoa" ( "company" VARCHAR(3), > "account" VARCHAR(12) NOT NULL , "description" VARCHAR(32), "gltype" > VARCHAR(1), "glsort" INT, "status" VARCHAR(1), PRIMARY KEY (account) ) > NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index > "glcoa_pkey" for table "glcoa" > > > I think this is a bug, because gambas should make the created table sql. > Why do the index sql? What happen to the table? Why can you make a table > and indexes? > > :-( > > Randy > I don't understand your problem: the Update() method generates the "CREATE TABLE" statement, so you must call it before using the Indexes property, otherwise you get an error. -- Benoit Minisini From itarozzi at ...626... Mon Feb 2 14:29:39 2009 From: itarozzi at ...626... (Ivan Tarozzi) Date: Mon, 02 Feb 2009 14:29:39 +0100 Subject: [Gambas-user] Drag'n'drop and url decode Message-ID: <1233581380.25900.5.camel@...40...> Hi, I'm using a Drop event in a ListView. When I d'n'd files from nautilus to my gambas application, I can retrieve the file names using drag.Data property. Data is in the url format, several files are separated by \r\n Is there a simple way to decode the names? Instead to use the right and left functions to remove "file://" and "/r/n" substrings? Is there a function to decode url to file name containing spaces? (convert %20 to " "). I need to access the dropped files, so I need a file name in standard string format. Thanks! Ivan From m0e.lnx at ...626... Mon Feb 2 14:37:19 2009 From: m0e.lnx at ...626... (M0E Lnx) Date: Mon, 2 Feb 2009 07:37:19 -0600 Subject: [Gambas-user] Nesting objects into gridview cells In-Reply-To: <200901302111.16667.ronstk@...239...> References: <1f1e8c1b0901301140m7f961418gbd427052d8731a2b@...627...> <200901302111.16667.ronstk@...239...> Message-ID: <1f1e8c1b0902020537s6671eba2w3fa6e65ec070b846@...627...> So really, what you're sugesting is create an object at the exact same coordinates as the disired cell's position, and should also be the same size as the cell? or am I understanding this wrong? From ron at ...1740... Mon Feb 2 16:22:01 2009 From: ron at ...1740... (Ron) Date: Mon, 02 Feb 2009 16:22:01 +0100 Subject: [Gambas-user] Gambas version and mod with Long behavior Message-ID: <49870F99.90308@...1740...> Hi, I have noticed that the gambas version number is not displayed anymore in the about window of Gambas 2.11.1 Also the logo there seems to cover the t of .net, maybe thats the reason the rest is missing. It just show Gambas2 here... would be handy to see which one. Another thing: PUBLIC SUB Main() DIM lSeconds AS Long = 120 DIM iSeconds AS Integer = 120 PRINT lseconds MOD 60 PRINT iSeconds MOD 60 END Gives: 120 0 I know that gambasdoc describes that MOD works with integers, but is this wanted behavior? I cannot remember that this failed on earlier versions, all of a sudden I have noticed that my TimeConvert routines didn't work correctly anymore, due to the fact that i supply longs to MOD apperantly. Gambas 2.11.1, gb.qt, ubuntu hardy Regards, Ron_2nd From gambas at ...1... Mon Feb 2 16:32:37 2009 From: gambas at ...1... (Benoit Minisini) Date: Mon, 2 Feb 2009 16:32:37 +0100 Subject: [Gambas-user] Gambas version and mod with Long behavior In-Reply-To: <49870F99.90308@...1740...> References: <49870F99.90308@...1740...> Message-ID: <200902021632.37673.gambas@...1...> On lundi 2 f?vrier 2009, Ron wrote: > Hi, > > I have noticed that the gambas version number is not displayed anymore > in the about window of Gambas 2.11.1 > Also the logo there seems to cover the t of .net, maybe thats the reason > the rest is missing. > It just show Gambas2 here... would be handy to see which one. > > Another thing: > > PUBLIC SUB Main() > > DIM lSeconds AS Long = 120 > DIM iSeconds AS Integer = 120 > > PRINT lseconds MOD 60 > PRINT iSeconds MOD 60 > > END > > Gives: > 120 > 0 > > I know that gambasdoc describes that MOD works with integers, but is > this wanted behavior? > I cannot remember that this failed on earlier versions, all of a sudden > I have noticed that my TimeConvert routines didn't work correctly > anymore, due to the fact that i supply longs to MOD apperantly. > > Gambas 2.11.1, gb.qt, ubuntu hardy > > Regards, > Ron_2nd > > Some stupid miss... I fixed that in revision #1848, and will make a 2.11.2 soon. Regards, -- Benoit Minisini From ronstk at ...239... Mon Feb 2 16:52:20 2009 From: ronstk at ...239... (Ron_1st) Date: Mon, 2 Feb 2009 16:52:20 +0100 Subject: [Gambas-user] Nesting objects into gridview cells In-Reply-To: <1f1e8c1b0902020537s6671eba2w3fa6e65ec070b846@...627...> References: <1f1e8c1b0901301140m7f961418gbd427052d8731a2b@...627...> <200901302111.16667.ronstk@...239...> <1f1e8c1b0902020537s6671eba2w3fa6e65ec070b846@...627...> Message-ID: <200902021652.21030.ronstk@...239...> On Monday 02 February 2009, M0E Lnx wrote: > So really, what you're sugesting is create an object at the exact same > coordinates as the disired cell's position, and should also be the > same size as the cell? Yes indeed. > > or am I understanding this wrong? > No not misunderstanding. You could create runtime an object but why not at design time. I had checkbox,combobox, listbox and textbox direct on the form. All where invisible durring runtime. For each cell there was one of them made visible so user can enter/select the data and after leave or enter event the object was hidden again and the data placed in the cell. on another cell the combobox was filled with month names. For the check box i.e. the word 'yes' or 'no' so before you make the object visible you preset the posible data for the objec, place it at position of the cell with same height/width. This is also done the same way in the properties form for the controls. The only thing you must take good care is you made these object as the last controls in design mode or use the bring to front with the rightmouse click on the object. Best regards, Ron_1st -- A: Delete the text you reply on. Q: What to do to get my post on top? --- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? --- A: Top-posting. Q: What is the most annoying thing in e-mail? From ron at ...1740... Mon Feb 2 17:08:30 2009 From: ron at ...1740... (Ron) Date: Mon, 02 Feb 2009 17:08:30 +0100 Subject: [Gambas-user] Gambas version and mod with Long behavior In-Reply-To: <200902021632.37673.gambas@...1...> References: <49870F99.90308@...1740...> <200902021632.37673.gambas@...1...> Message-ID: <49871A7E.207@...1740...> Benoit Minisini schreef: > On lundi 2 f?vrier 2009, Ron wrote: > >> Hi, >> >> I have noticed that the gambas version number is not displayed anymore >> in the about window of Gambas 2.11.1 >> Also the logo there seems to cover the t of .net, maybe thats the reason >> the rest is missing. >> It just show Gambas2 here... would be handy to see which one. >> >> Another thing: >> >> PUBLIC SUB Main() >> >> DIM lSeconds AS Long = 120 >> DIM iSeconds AS Integer = 120 >> >> PRINT lseconds MOD 60 >> PRINT iSeconds MOD 60 >> >> END >> >> Gives: >> 120 >> 0 >> >> I know that gambasdoc describes that MOD works with integers, but is >> this wanted behavior? >> I cannot remember that this failed on earlier versions, all of a sudden >> I have noticed that my TimeConvert routines didn't work correctly >> anymore, due to the fact that i supply longs to MOD apperantly. >> >> Gambas 2.11.1, gb.qt, ubuntu hardy >> >> Regards, >> Ron_2nd >> >> >> > > Some stupid miss... I fixed that in revision #1848, and will make a 2.11.2 > soon. > > Regards, > > > Yes verified that both issue are working ok again. I always thought that version 2 was the stable route ;-) just kidding... Thanks! Ron_2nd. From gambas at ...1... Mon Feb 2 18:12:25 2009 From: gambas at ...1... (Benoit Minisini) Date: Mon, 2 Feb 2009 18:12:25 +0100 Subject: [Gambas-user] Gambas version and mod with Long behavior In-Reply-To: <49871A7E.207@...1740...> References: <49870F99.90308@...1740...> <200902021632.37673.gambas@...1...> <49871A7E.207@...1740...> Message-ID: <200902021812.25733.gambas@...1...> On lundi 2 f?vrier 2009, Ron wrote: > Benoit Minisini schreef: > > On lundi 2 f?vrier 2009, Ron wrote: > >> Hi, > >> > >> I have noticed that the gambas version number is not displayed anymore > >> in the about window of Gambas 2.11.1 > >> Also the logo there seems to cover the t of .net, maybe thats the reason > >> the rest is missing. > >> It just show Gambas2 here... would be handy to see which one. > >> > >> Another thing: > >> > >> PUBLIC SUB Main() > >> > >> DIM lSeconds AS Long = 120 > >> DIM iSeconds AS Integer = 120 > >> > >> PRINT lseconds MOD 60 > >> PRINT iSeconds MOD 60 > >> > >> END > >> > >> Gives: > >> 120 > >> 0 > >> > >> I know that gambasdoc describes that MOD works with integers, but is > >> this wanted behavior? > >> I cannot remember that this failed on earlier versions, all of a sudden > >> I have noticed that my TimeConvert routines didn't work correctly > >> anymore, due to the fact that i supply longs to MOD apperantly. > >> > >> Gambas 2.11.1, gb.qt, ubuntu hardy > >> > >> Regards, > >> Ron_2nd > > > > Some stupid miss... I fixed that in revision #1848, and will make a > > 2.11.2 soon. > > > > Regards, > > Yes verified that both issue are working ok again. > I always thought that version 2 was the stable route ;-) just kidding... > > Thanks! > Ron_2nd. > It is the stable route. I just did a bug inside the bug fix. :-) -- Benoit Minisini From jussi.lahtinen at ...626... Mon Feb 2 18:57:16 2009 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 2 Feb 2009 19:57:16 +0200 Subject: [Gambas-user] Modularity problem! Message-ID: <384d3900902020957k2af1f1f4l7db9a306b39fff5b@...627...> Hi! I'm converting vb6 project to gambas2. In my project there are two modules (let's say example moduleA and moduleB) that have different kind of basic functions and subs. These functions are located in these modules by their category (moduleA contains UI & message handling, and moduleB rest). Then there are more modules (same way, functions by category) that depends heavily on those functions from module A and B. Now I am in this situation; vb6 code example: If SomeFunction(OtherFunction(Something), X, Y, YetAnOther) = False Then ... Converted to Gambas2: IF moduleB.SomeFunction(moduleA.OtherFunction(moduleB.Something()), moduleB.X, moduleB.Y, moduleA.YetAnOther()) = FALSE THEN ... As you can see, it's not pretty code and it's also slow to write. I could use command WITH to make it little better, but still... Or I could put all code into one big module, but there goes modularity and good clear structure. So, does Gambas have some kind of "#include" command like in C/C++, or is there some kind of object oriented way to avoid this..? Any tips&tricks appreciated! Thanks! Jussi From admin at ...1080... Mon Feb 2 19:22:18 2009 From: admin at ...1080... (werner 007) Date: Mon, 2 Feb 2009 10:22:18 -0800 (PST) Subject: [Gambas-user] Drag'n'drop and url decode In-Reply-To: <1233581380.25900.5.camel@...40...> References: <1233581380.25900.5.camel@...40...> Message-ID: <21795249.post@...1379...> Hallo Ivan Once i had the same task to do. The replace(...,..) function is maybe the best for "file://" and "/r/n". For decoding url stuff has Benoit recommended to look at CGI.Decode(). I did it not because my lazyness and my code does what it should so far. The hole thread is here: http://www.nabble.com/URL-encoding-%22-20%22-td21216641.html#a21216641 Regards, Werner(007) Actually my decode looks so, it is not a pick of the bunch but it works: > PUBLIC SUB grdView01_Drop() > urldecode(Drag.Data) > END > PUBLIC SUB grdView02_Drop() > urldecode(Drag.Data) > END > PRIVATE SUB urldecode(strin AS String) > DIM strFile AS String > DIM strout AS String > DIM i AS Integer > IF UCase(Left(strin, 8)) = "FILE:///" THEN > 'check for the right file extensions which allowed > IF (InStr(".txt.doc.xml", file.Ext(strin)) > 0) THEN > strin = Replace(Replace(strin, "\r\n", ""), "file://", "") > ' check if has encoded stuff > IF InStr(strin, "%") THEN > FOR i = 1 TO Len(strin) > IF Mid(strin, i, 1) = "%" THEN > IF IsNumber(Val(Mid(strin, i + 1, 2))) THEN > strout &= Chr((CInt(Mid(strin, i + 1, 2)) / 10) * 16) > i = i + 2 > ELSE > strout = strout & Mid(strin, i, 1) > END IF > ELSE > strout = strout & Mid(strin, i, 1) > END IF > NEXT > ELSE > strout = strin > END IF > load_file(strout) > END IF > END IF > END > -- View this message in context: http://www.nabble.com/Drag%27n%27drop-and-url-decode-tp21789686p21795249.html Sent from the gambas-user mailing list archive at Nabble.com. From admin at ...1080... Mon Feb 2 20:45:14 2009 From: admin at ...1080... (werner 007) Date: Mon, 2 Feb 2009 11:45:14 -0800 (PST) Subject: [Gambas-user] Help with converting text in field to number In-Reply-To: <200901270843.05800.rterry@...1946...> References: <200901270843.05800.rterry@...1946...> Message-ID: <21796806.post@...1379...> Hello Richard For me it looks you want use "Group By" instead Unions in SQL to get the Resultset like > xaxes-text|count|display_order > ------------------------------------------- > 5-6 5 1 > 6-7 100 2 > over 7 10 3 > And to deal with Number vs Text you could use Regexp in MySQL (maybe other SQL engines too) > select > reference_range as XAxes_text, > ,count (value) as count > , at row:=@row+1 as display_order > From (SELECT @row:=0) as r, clin_requests.vwResults > Where value RegExp '[0-1]' > Group by reference_range > Just as idea. Regards, Werner(007) -- View this message in context: http://www.nabble.com/Help-with-converting-text-in-field-to-number-tp21675635p21796806.html Sent from the gambas-user mailing list archive at Nabble.com. From rterry at ...1946... Mon Feb 2 11:40:49 2009 From: rterry at ...1946... (richard terry) Date: Mon, 2 Feb 2009 21:40:49 +1100 Subject: [Gambas-user] Some file/use or progress bar questions. Message-ID: <200902022140.49476.rterry@...1946...> 1) I have a file with some 30,000 lines, but I want to know how many lines are in the file before I do anything to it - is this possible. I couldn't see how just looking at the syntax for files. 2) Given that I could figure out how many lines, I wondered if someone could give me some tips on how to use the progress bar and how one moves it along in any situation in response to how long something takes - I mean - does one just "guess" the time it will take and move the pointer accordingly? Regards richard From rterry at ...1946... Mon Feb 2 10:55:13 2009 From: rterry at ...1946... (richard terry) Date: Mon, 2 Feb 2009 20:55:13 +1100 Subject: [Gambas-user] Speed penalty to write to textbox or label Message-ID: <200902022055.13573.rterry@...1946...> I wondered if one or the other was slowest? I'm importing probably hundreds of thousands of records into my program, for example 30,000 + pathology, 20,000 + referral or recall letters, and so as to keep myself amused and follow what is happening I write a little something to the screen. I wondered if there was a speed penalty with one or the other. thanks. richard From rterry at ...1946... Mon Feb 2 21:38:40 2009 From: rterry at ...1946... (richard terry) Date: Tue, 3 Feb 2009 07:38:40 +1100 Subject: [Gambas-user] Help with converting text in field to number In-Reply-To: <21796806.post@...1379...> References: <200901270843.05800.rterry@...1946...> <21796806.post@...1379...> Message-ID: <200902030738.40743.rterry@...1946...> On Tue, 3 Feb 2009 06:45:14 am werner 007 wrote: > Hello Richard > > For me it looks you want use "Group By" instead Unions in SQL to get the > Resultset like > > > xaxes-text|count|display_order > > ------------------------------------------- > > 5-6 5 1 > > 6-7 100 2 > > over 7 10 3 > > And to deal with Number vs Text you could use Regexp in MySQL (maybe other > SQL engines too) > > > select > > reference_range as XAxes_text, > > ,count (value) as count > > , at row:=@row+1 as display_order > > From (SELECT @row:=0) as r, clin_requests.vwResults > > Where value RegExp '[0-1]' > > Group by reference_range > > Just as idea. > > > Regards, Werner(007) Thanks, I'll try this on the weekend and report back. I ended up taking the easy way out (benoit's suggestion) to create a numerical column. When I'm saving the data I do a Try val (The string) and if it converts to numerical I save that, otherwise insert a null value). This works fine, however I will try yours. richard From theatre at ...2012... Mon Feb 2 21:43:43 2009 From: theatre at ...2012... (Frank Cox) Date: Mon, 02 Feb 2009 14:43:43 -0600 Subject: [Gambas-user] Some file/use or progress bar questions. In-Reply-To: <200902022140.49476.rterry@...1946...> References: <200902022140.49476.rterry@...1946...> Message-ID: <20090202144343.7c3fd019.theatre@...2012...> On Mon, 02 Feb 2009 21:40:49 +1100 richard terry wrote: > 1) I have a file with some 30,000 lines, but I want to know how many lines are > in the file before I do anything to it - is this possible. I couldn't see how > just looking at the syntax for files. If your line lengths are random, then you won't know how many lines you have unless you read through the file and count them. If your line lengths are fixed, then you can simply divide the file size by the line length to get the number of lines. -- MELVILLE THEATRE ~ Melville Sask ~ http://www.melvilletheatre.com DRY CLEANER BUSINESS FOR SALE ~ http://www.canadadrycleanerforsale.com From ronstk at ...239... Mon Feb 2 22:38:02 2009 From: ronstk at ...239... (Ron_1st) Date: Mon, 2 Feb 2009 22:38:02 +0100 Subject: [Gambas-user] Some file/use or progress bar questions. In-Reply-To: <200902022140.49476.rterry@...1946...> References: <200902022140.49476.rterry@...1946...> Message-ID: <200902022238.02769.ronstk@...239...> On Monday 02 February 2009, richard terry wrote: > 1) I have a file with some 30,000 lines, but I want to know how many lines are > in the file before I do anything to it - is this possible. I couldn't see how > just looking at the syntax for files. > > > 2) Given that I could figure out how many lines, I wondered if someone could > give me some tips on how to use the progress bar and how one moves it along > in any situation in response to how long something takes - I mean - does one > just "guess" the time it will take and move the pointer accordingly? > > Regards > > richard > something like shell(wc -l "filename") Info in man pages for cli programm with name 'wc' wc -c, --bytes print the byte counts -m, --chars print the character counts -l, --lines print the newline counts --files0-from=F read input from the files specified by NUL-terminated names in file F -L, --max-line-length print the length of the longest line -w, --words print the word counts Best regards, Ron_1st -- A: Delete the text you reply on. Q: What to do to get my post on top? --- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? --- A: Top-posting. Q: What is the most annoying thing in e-mail? From leonardo at ...1237... Tue Feb 3 01:52:29 2009 From: leonardo at ...1237... (Leonardo Miliani) Date: Tue, 03 Feb 2009 01:52:29 +0100 Subject: [Gambas-user] One old bug (and maybe a new one?) Message-ID: <4987954D.4090903@...1237...> 1) The old bug I still continue to get the borders of the forms even if I set the border property to "none" (Gambas 2.11.1 compiled from sources, Ubuntu 8.10 with Gnome 2.24, gb.qt component). 2) The new bug Is it me or the property viewer of the IDE doesn't show the help under the properties list anymore? -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Scegli software opensource - Choose opensource software Co-fondatore di Gambas-it.org Il sito di riferimento della comunit? italiana degli utenti di Gambas www.gambas-it.org From doriano.blengino at ...1909... Tue Feb 3 08:29:50 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Tue, 03 Feb 2009 08:29:50 +0100 Subject: [Gambas-user] Some file/use or progress bar questions. In-Reply-To: <200902022140.49476.rterry@...1946...> References: <200902022140.49476.rterry@...1946...> Message-ID: <4987F26E.2000301@...1909...> richard terry ha scritto: (about the speed penalty) Yes, updating the screen is sometimes a speed penalty, depending on the complexity of the update, and the underlying hardware/software. For a X console (xterm), it is a *big* job to scroll the text - something less if the text does not scroll. For X itself, it depends; anyway, in long computations, one should update the screen at timed intervals, or at least every N loops done. One could do it every 100 lines read, or every 1000, or every 200 records inserted, or something similar. > 1) I have a file with some 30,000 lines, but I want to know how many lines are > in the file before I do anything to it - is this possible. I couldn't see how > just looking at the syntax for files. > It is simply not possible. You cat stat() the file to see how much it is big, and then, having a rough idea about how much the lines are long, divide the length of the file by the lenght of the lines. You can use /usr/bin/wc, which is fast, but anyway it does nothing else than opening the file and read it line by line to count them - probably wc can do it faster than gambas, but it would do the same thing. If the files are generated by you, you can store somewhere the number of lines, or write it in the first line of the file, or in the last one (tricky). > > 2) Given that I could figure out how many lines, I wondered if someone could > give me some tips on how to use the progress bar and how one moves it along > in any situation in response to how long something takes - I mean - does one > just "guess" the time it will take and move the pointer accordingly? > The majority of software around does not care about the time, but only about the amount of work to do. Again, you stat() the file, so you know how many characters are in there. Then, you read the file line by line, counting (ie, adding) how many bytes you read (+1 for the LF). The ratio bytes_read/length_of_file gives you the point where you are in the work. Every 100, or 1000 lines, or 8000 bytes, or so, you can execute a wait to update the screen (if you modify something on the screen, it will be updated only when your program is idle, or when you execute a wait() instruction. The WAIT is slow, not the instruction which update the screen). If you want to guess the time it will take, you count the number of seconds (or milliseconds) elapsed from the start of work; at any given time, the ratio bytes_read/elapsed_seconds gives you the throughput of your program, in bytes/sec; the formula (SizeOfFile-BytesRead)/Throughput gives you the time remaining to do the rest of work. If every 100 lines read, or every second elapsed, or every 100 milliseconds, you update a progress bar and call WAIT(), you get a fair job (see this pseudocode): FileSize = stat(MyFile).Size BytesRead = 0 TimeElapsed = 0 open Myfile for input StartTime = timer() while not EOF(MyFile) read aline BytesRead += len(aline)+1 ...process the line... if timer()-StartTime-TimeElapsed >= 0.1 then ' 100 milliseconds elapsed TimeElapsed += 0.1 done_percent = (BytesRead / FileSize) * 100 Throughput = BytesRead / TimeElapsed ' beware for ThroughPut==0! RemainingTime = (FileSize - BytesRead) / Throughput ...set some progress bar or whatever WAIT END IF wend Cheers, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From eilert-sprachen at ...221... Tue Feb 3 10:43:41 2009 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Tue, 03 Feb 2009 10:43:41 +0100 Subject: [Gambas-user] Release of Gambas 2.11.1 In-Reply-To: <200902020105.06716.gambas@...1...> References: <200902020105.06716.gambas@...1...> Message-ID: <498811CD.7060802@...221...> Benoit Minisini schrieb: > Hi, > > Here is a release to fix last-minute bugs in the 2.11 version: > Thanks a lot, Benoit! Did you implement this > * The GridView now stretched its last column correctly. via a property to choose from or just as a fixed feature? Regards Rolf From eilert-sprachen at ...221... Tue Feb 3 12:43:30 2009 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Tue, 03 Feb 2009 12:43:30 +0100 Subject: [Gambas-user] Some file/use or progress bar questions. In-Reply-To: <4987F26E.2000301@...1909...> References: <200902022140.49476.rterry@...1946...> <4987F26E.2000301@...1909...> Message-ID: <49882DE2.1000209@...221...> Don't know if this helps, just an idea: >> 1) I have a file with some 30,000 lines, but I want to know how many lines are >> in the file before I do anything to it - is this possible. I couldn't see how >> just looking at the syntax for files. >> Read in the file to a string and count the number of linebreaks (chr$(10)). I am not sure: Is there a counting function in Gambas? Something that counts how many times a part-string appears within a string? Maybe in the string.-class? Implemented in C, this would accelerate such a thing by several factors... Rolf From eilert-sprachen at ...221... Tue Feb 3 13:37:38 2009 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Tue, 03 Feb 2009 13:37:38 +0100 Subject: [Gambas-user] Release of Gambas 2.11.1 In-Reply-To: <200902020105.06716.gambas@...1...> References: <200902020105.06716.gambas@...1...> Message-ID: <49883A92.9080807@...221...> Benoit Minisini schrieb: > Hi, > > Here is a release to fix last-minute bugs in the 2.11 version: > > * The arithmetic operations on Boolean, Byte and Short now behave correctly > when an overflow occurs. > > * The compiler message displayed when there is a syntax error in a FOR...NEXT > loop is correct now. > > * The GridView now stretched its last column correctly. > > * The GridView cell padding has been fixed. > > Regards, > Hi Benoit, I just downloaded, compiled and installed 11.1, but the gridview still makes the last column stretch. Looking into it somewhat more in detail, I found I had originally chosen "Tableviews" for my project. But as far as I understand from the documentation, in Gambas 2 a tableview is just a gridview with cell editor capability (or vice versa). So, did I get something wrong? Regards Rolf From ron at ...1740... Tue Feb 3 13:50:43 2009 From: ron at ...1740... (Ron) Date: Tue, 03 Feb 2009 13:50:43 +0100 Subject: [Gambas-user] Release of Gambas 2.11.1 In-Reply-To: <49883A92.9080807@...221...> References: <200902020105.06716.gambas@...1...> <49883A92.9080807@...221...> Message-ID: <49883DA3.9070903@...1740...> Rolf-Werner Eilert schreef: > Benoit Minisini schrieb: > >> Hi, >> >> Here is a release to fix last-minute bugs in the 2.11 version: >> >> * The arithmetic operations on Boolean, Byte and Short now behave correctly >> when an overflow occurs. >> >> * The compiler message displayed when there is a syntax error in a FOR...NEXT >> loop is correct now. >> >> * The GridView now stretched its last column correctly. >> >> * The GridView cell padding has been fixed. >> >> Regards, >> >> > > > Hi Benoit, > > I just downloaded, compiled and installed 11.1, but the gridview still > makes the last column stretch. > > Looking into it somewhat more in detail, I found I had originally chosen > "Tableviews" for my project. But as far as I understand from the > documentation, in Gambas 2 a tableview is just a gridview with cell > editor capability (or vice versa). So, did I get something wrong? > > Regards > > Rolf > > I thought that that last column stretch option was there to stay, I like it, don't want to lose it, empty space behind last column and the outline of a gridview/tableview looks awfull. Don't know exactly what Benoit changed, but that could be related to some IDE property field problems that someone reported instead. In case I didn't understand your issue correctly please forgive me, i'm talking about if you don't specify a lenght for the last column gambas let that column use the leftover space. Regards, Ron_2nd. From wally at ...2037... Tue Feb 3 14:51:19 2009 From: wally at ...2037... (Wally) Date: Tue, 3 Feb 2009 14:51:19 +0100 Subject: [Gambas-user] external function call Message-ID: <200902031451.19390.wally@...2037...> Do anybody have (or know where to find) an example code using an external function call to a shared library. (e.g. a math lib or something common) thx wally From eilert-sprachen at ...221... Tue Feb 3 12:50:21 2009 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Tue, 03 Feb 2009 12:50:21 +0100 Subject: [Gambas-user] Some file/use or progress bar questions. In-Reply-To: <4987F26E.2000301@...1909...> References: <200902022140.49476.rterry@...1946...> <4987F26E.2000301@...1909...> Message-ID: <49882F7D.9080909@...221...> Let me just add, I don't find such a function. So I might try something own using Instr or String.Instr (which one is faster?). The poor thing would still have to jump to some 30,000 linebreaks to count them, no idea how long this would take in practice... And: How long may strings be in Gambas? What about when we come to talk about GBytes? Rolf From diego at ...1942... Tue Feb 3 15:02:45 2009 From: diego at ...1942... (=?ISO-8859-15?Q?Diego_Fern=E1ndez?=) Date: Tue, 03 Feb 2009 08:02:45 -0600 Subject: [Gambas-user] Datepicker bug In-Reply-To: <200901201456.52069.gambas@...1...> References: <496CA3F6.8080504@...1942...> <4974D47A.6020300@...1942...> <4974D8FE.6070303@...1942...> <200901201456.52069.gambas@...1...> Message-ID: <49884E85.3010905@...1942...> Benoit Minisini escribi?: > On lundi 19 janvier 2009, Diego Fern?ndez wrote: > >> Well just before sending my last mail, i was trying (really hard), to >> debug it myself, at least i think i was trying to..... >> >> Ive come to realise it is not a datepocker bug, is more a gtk issue, >> when i create a new project and use only gb.qt component, the datepicker >> displays ok, but when i choose gb.gkt or gb.gui, the datepicker shows >> the incorrect behavior, and today i saw this in the console section with >> desktop effects on: >> >> >> >> (otravez:9991): Gtk-CRITICAL **: gtk_window_resize: assertion `height > >> 0' failed >> >> (otravez:9991): Gtk-CRITICAL **: gtk_widget_get_screen: assertion >> `GTK_IS_WIDGET (widget)' failed >> >> (otravez:9991): Gdk-CRITICAL **: gdk_screen_is_composited: assertion >> `GDK_IS_SCREEN (screen)' failed >> >> (otravez:9991): Gtk-CRITICAL **: gtk_widget_get_screen: assertion >> `GTK_IS_WIDGET (widget)' failed >> >> (otravez:9991): Gdk-CRITICAL **: gdk_screen_is_composited: assertion >> `GDK_IS_SCREEN (screen)' failed >> >> (otravez:9991): Gtk-CRITICAL **: gtk_widget_get_screen: assertion >> `GTK_IS_WIDGET (widget)' failed >> >> (otravez:9991): Gdk-CRITICAL **: gdk_screen_is_composited: assertion >> `GDK_IS_SCREEN (screen)' failed >> >> (otravez:9991): Gtk-CRITICAL **: gtk_widget_get_screen: assertion >> `GTK_IS_WIDGET (widget)' failed >> >> (otravez:9991): Gdk-CRITICAL **: gdk_screen_is_composited: assertion >> `GDK_IS_SCREEN (screen)' failed >> >> (otravez:9991): Gtk-CRITICAL **: gtk_widget_get_screen: assertion >> `GTK_IS_WIDGET (widget)' failed >> >> (otravez:9991): Gdk-CRITICAL **: gdk_screen_is_composited: assertion >> `GDK_IS_SCREEN (screen)' failed >> >> >> -- >> WithOut desktop effects: >> >> >> >> (otravez:10007): Gtk-CRITICAL **: gtk_window_resize: assertion `height > >> 0' failed >> >> (otravez:10007): Gtk-CRITICAL **: gtk_widget_get_screen: assertion >> `GTK_IS_WIDGET (widget)' failed >> >> (otravez:10007): Gdk-CRITICAL **: gdk_screen_is_composited: assertion >> `GDK_IS_SCREEN (screen)' failed >> >> (otravez:10007): Gtk-CRITICAL **: gtk_widget_get_screen: assertion >> `GTK_IS_WIDGET (widget)' failed >> >> (otravez:10007): Gdk-CRITICAL **: gdk_screen_is_composited: assertion >> `GDK_IS_SCREEN (screen)' failed >> >> >> Do this concern to Phillipe Serafin or it is a concern of somebody else? >> >> >> Thanks >> >> > > If it is a gtk problem, then it is my job! > > Just want to let you know that the problem with the datepicker still there. Thanks. From gambas at ...1... Tue Feb 3 15:02:00 2009 From: gambas at ...1... (Benoit Minisini) Date: Tue, 3 Feb 2009 15:02:00 +0100 Subject: [Gambas-user] Release of Gambas 2.11.1 In-Reply-To: <49883A92.9080807@...221...> References: <200902020105.06716.gambas@...1...> <49883A92.9080807@...221...> Message-ID: <200902031502.00655.gambas@...1...> On mardi 3 f?vrier 2009, Rolf-Werner Eilert wrote: > Benoit Minisini schrieb: > > Hi, > > > > Here is a release to fix last-minute bugs in the 2.11 version: > > > > * The arithmetic operations on Boolean, Byte and Short now behave > > correctly when an overflow occurs. > > > > * The compiler message displayed when there is a syntax error in a > > FOR...NEXT loop is correct now. > > > > * The GridView now stretched its last column correctly. > > > > * The GridView cell padding has been fixed. > > > > Regards, > > Hi Benoit, > > I just downloaded, compiled and installed 11.1, but the gridview still > makes the last column stretch. > Yes. I won't change this behaviour in Gambas 2, as I just fix bugs in that version. Anyway, I don't understand what the problem is with letting the last column fill the tableview contents if it is too small. Regards, -- Benoit Minisini From gambas at ...1... Tue Feb 3 16:24:14 2009 From: gambas at ...1... (Benoit Minisini) Date: Tue, 3 Feb 2009 16:24:14 +0100 Subject: [Gambas-user] One old bug (and maybe a new one?) In-Reply-To: <4987954D.4090903@...1237...> References: <4987954D.4090903@...1237...> Message-ID: <200902031624.14809.gambas@...1...> On mardi 3 f?vrier 2009, Leonardo Miliani wrote: > 1) The old bug > I still continue to get the borders of the forms even if I set the > border property to "none" (Gambas 2.11.1 compiled from sources, Ubuntu > 8.10 with Gnome 2.24, gb.qt component). I finally fixed it in revision #1853! It will be for the 2.11.2. > > 2) The new bug > Is it me or the property viewer of the IDE doesn't show the help under > the properties list anymore? I see them there... -- Benoit Minisini From admin at ...1080... Tue Feb 3 18:07:01 2009 From: admin at ...1080... (werner 007) Date: Tue, 3 Feb 2009 09:07:01 -0800 (PST) Subject: [Gambas-user] Some file/use or progress bar questions. In-Reply-To: <49882F7D.9080909@...221...> References: <200902022140.49476.rterry@...1946...> <4987F26E.2000301@...1909...> <49882F7D.9080909@...221...> Message-ID: <21814223.post@...1379...> Hi Richard Maybe you put the file in a array with split() if it makes sense for further work. Dont know how slow it is on such big files, but i made no bad experience with around 10000 lines. Regards, Werner(007) -- View this message in context: http://www.nabble.com/Some-file-use-or-progress-bar-questions.-tp21797749p21814223.html Sent from the gambas-user mailing list archive at Nabble.com. From jussi.lahtinen at ...626... Tue Feb 3 18:35:56 2009 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Tue, 3 Feb 2009 19:35:56 +0200 Subject: [Gambas-user] external function call In-Reply-To: <200902031451.19390.wally@...2037...> References: <200902031451.19390.wally@...2037...> Message-ID: <384d3900902030935r600cfc72kc82ba5733bcd76b6@...627...> Hi! I don't have example to any common lib... but if you read my earlier post; "Minor bug with READ & WRITE commands?" there is attached working example code about external functions (includes source of shared library). But I recommend to read documentation of external function declaration. http://gambasdoc.org/help/lang/extdecl?v3 Jussi On Tue, Feb 3, 2009 at 3:51 PM, Wally wrote: > Do anybody have (or know where to find) an example code > using an external function call to a shared library. > (e.g. a math lib or something common) > > thx wally > > > ------------------------------------------------------------------------------ > Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) > software. With Adobe AIR, Ajax developers can use existing skills and code to > build responsive, highly engaging applications that combine the power of local > resources and data with the reach of the web. Download the Adobe AIR SDK and > Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From doriano.blengino at ...1909... Tue Feb 3 20:05:17 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Tue, 03 Feb 2009 20:05:17 +0100 Subject: [Gambas-user] external function call In-Reply-To: <200902031451.19390.wally@...2037...> References: <200902031451.19390.wally@...2037...> Message-ID: <4988956D.5050203@...1909...> Wally ha scritto: > Do anybody have (or know where to find) an example code > using an external function call to a shared library. > (e.g. a math lib or something common) > Just an excerpt from a ldap module, which interfaces with libldapxxx: LIBRARY "libldap:2" ' to initialize the ldap client library PRIVATE EXTERN ldap_init(host AS String, port AS Integer) AS Pointer ' to bind (login) into the ldap server PRIVATE EXTERN ldap_simple_bind_s(ldconn AS Pointer, who AS String, passwd AS String) AS Integer ' to unbind *and* terminate PRIVATE EXTERN ldap_unbind(ldconn AS Pointer) AS Integer ' to provide useful text messages for errors PRIVATE EXTERN ldap_err2string(err AS Integer) AS Pointer ' ? PRIVATE EXTERN ldap_result2error(ldconn AS Pointer, PLDAPMessage AS Pointer, freeit AS Integer) AS Integer ' the search function to get results PRIVATE EXTERN ldap_search_s(ldconn AS Pointer, base AS String, scope AS Integer, filter AS String, attrs AS Pointer, attrsonly AS Integer, res AS Pointer) AS Integer ' they were: LDAP* ld; char* base; Int scope; char* filter, *attrs[], Int attrsonly; LDAPMessage** res; The ldap_init() is called this way: PUBLIC SUB _new(host AS String) max_results = 100 conn = ldap_init(host, 389) IF conn = NULL THEN error.Raise("Can not init ldap library") The ldap_simple_bind() is called this way: PUBLIC SUB bind(who AS String, passwd AS String) AS Integer DIM res AS Integer ldap_bounded = FALSE res = ldap_simple_bind_s(conn, who, passwd) lasterr = StrPtr(ldap_err2string(res)) IF res = 0 THEN ' anonymous bind? IF who <> "" THEN ldap_bounded = TRUE ENDIF RETURN res END -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From joshiggins at ...1601... Tue Feb 3 21:47:07 2009 From: joshiggins at ...1601... (Joshua Higgins) Date: Tue, 3 Feb 2009 20:47:07 +0000 Subject: [Gambas-user] Speed penalty to write to textbox or label In-Reply-To: <200902022055.13573.rterry@...1946...> References: <200902022055.13573.rterry@...1946...> Message-ID: <4247f5440902031247g3fa26f8dn17b882fbf14cc13a@...627...> I would imagine the only delay would be in actually drawing this to the screen, not actually processing it. fell free to correct me however :-) 2009/2/2 richard terry > I wondered if one or the other was slowest? > > I'm importing probably hundreds of thousands of records into my program, > for > example 30,000 + pathology, 20,000 + referral or recall letters, and so as > to > keep myself amused and follow what is happening I write a little something > to > the screen. > > I wondered if there was a speed penalty with one or the other. > > thanks. > > richard > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- joshua higgins >>>>>>------ From rterry at ...1946... Tue Feb 3 21:48:50 2009 From: rterry at ...1946... (richard terry) Date: Wed, 4 Feb 2009 07:48:50 +1100 Subject: [Gambas-user] Some file/use or progress bar questions. In-Reply-To: <21814223.post@...1379...> References: <200902022140.49476.rterry@...1946...> <49882F7D.9080909@...221...> <21814223.post@...1379...> Message-ID: <200902040748.50597.rterry@...1946...> On Wed, 4 Feb 2009 04:07:01 am werner 007 wrote: > Hi Richard > > Maybe you put the file in a array with split() if it makes sense for > further work. > Dont know how slow it is on such big files, but i made no bad experience > with around 10000 lines. > > Regards, Werner(007) Thanks, will try all these things. Maybe quickest to read the whole thing in one chunk, then split to the array. Will try on weekend. Regards From joe1962 at ...626... Tue Feb 3 21:58:04 2009 From: joe1962 at ...626... (Jose J. Rodriguez) Date: Tue, 3 Feb 2009 15:58:04 -0500 Subject: [Gambas-user] Some file/use or progress bar questions. In-Reply-To: <200902040748.50597.rterry@...1946...> References: <200902022140.49476.rterry@...1946...> <49882F7D.9080909@...221...> <21814223.post@...1379...> <200902040748.50597.rterry@...1946...> Message-ID: <6c208f950902031258r48ed6223l5345d5e7c9b0dce0@...627...> On 2/3/09, richard terry wrote: > On Wed, 4 Feb 2009 04:07:01 am werner 007 wrote: > > Hi Richard > > > > Maybe you put the file in a array with split() if it makes sense for > > further work. > > Dont know how slow it is on such big files, but i made no bad experience > > with around 10000 lines. > > > > Regards, Werner(007) > > > Thanks, will try all these things. Maybe quickest to read the whole thing in > one chunk, then split to the array. Will try on weekend. > IMHO, anything that forces reading the whole file twice is very inelegant, besides making it take twice as long. Unless you really need the count of lines for more than "eye candy", it is better to use the file size and bytes read values to update the scroll bar. Regards, Joe1962 From leonardo at ...1237... Tue Feb 3 23:52:17 2009 From: leonardo at ...1237... (Leonardo Miliani) Date: Tue, 03 Feb 2009 23:52:17 +0100 Subject: [Gambas-user] One old bug (and maybe a new one?) In-Reply-To: <200902031624.14809.gambas@...1...> References: <4987954D.4090903@...1237...> <200902031624.14809.gambas@...1...> Message-ID: <4988CAA1.8080504@...1237...> Benoit Minisini ha scritto: >> 2) The new bug >> Is it me or the property viewer of the IDE doesn't show the help under >> the properties list anymore? > > I see them there... > Strange... Now I see them too... But when I wrote about this problem, I couldn't see them: I got "No help found" on every property I looked to.... -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Scegli software opensource - Choose opensource software Co-fondatore di Gambas-it.org Il sito di riferimento della comunit? italiana degli utenti di Gambas www.gambas-it.org From doriano.blengino at ...1909... Wed Feb 4 10:22:10 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Wed, 04 Feb 2009 10:22:10 +0100 Subject: [Gambas-user] Some file/use or progress bar questions. In-Reply-To: <6c208f950902031258r48ed6223l5345d5e7c9b0dce0@...627...> References: <200902022140.49476.rterry@...1946...> <49882F7D.9080909@...221...> <21814223.post@...1379...> <200902040748.50597.rterry@...1946...> <6c208f950902031258r48ed6223l5345d5e7c9b0dce0@...627...> Message-ID: <49895E42.5040406@...1909...> Jose J. Rodriguez ha scritto: > On 2/3/09, richard terry wrote: > >> On Wed, 4 Feb 2009 04:07:01 am werner 007 wrote: >> > Hi Richard >> > >> > Maybe you put the file in a array with split() if it makes sense for >> > further work. >> > Dont know how slow it is on such big files, but i made no bad experience >> > with around 10000 lines. >> > IMHO, anything that forces reading the whole file twice is very > inelegant, besides making it take twice as long. Unless you really > need the count of lines for more than "eye candy", it is better to use > the file size and bytes read values to update the scroll bar. > I agree about the inelegancy and waste of memory. Suppose that a file on disk takes 100K. When read in, it takes another 100K. When splitted, it takes another 100K (or 105, or so). This alone is enough to say "it is not good if your file is some 100Mb long". But splitting could have some added benefit, depending on what kind of processing have to come afterwards: after splitting, the text file can be managed in a random fashion. And perhaps, in certain cases, splitting could be faster: simply because split() is a C subroutine and does not have the burdain of interpreting the bytecode. But normally I prepend for the minimum resource usage: if there is little data to work out, it will be fast anyway; if there is a lot of data to process, it will take time, but it will succeed. I say so because I remember when computers had 64K ram (or 640K, few years later). Now we have 640M and 10 (or 100?) times the speed, and computers are still slow... :-) Just to count the lines of a text file, the unique (no doubt) solution is to read it line by line. For a 300M text file it could take a lot of time, but it will always succeed. If you try to read it in memory (twice!), you could run out of resources, and probably it is slower anyway. And... 'shell wc -l ...' is so short to write... :-) Regards, Doriano Blengino From wally at ...2037... Wed Feb 4 17:06:34 2009 From: wally at ...2037... (Wally) Date: Wed, 4 Feb 2009 17:06:34 +0100 Subject: [Gambas-user] external function again :) Message-ID: <200902041706.34911.wally@...2037...> I'm trying to access the GNU Scientific libray and have a problem with math constants from this lib. The power-functions are working nice. I try to build the above C-code in gambas and get the error-message : Cannot find symbol 'M_PI_4' in dynamic library 'libgsl' These math constants should be available in libgsl and also in libc via math.h, but i can't get it to work. Where is my mistake ? ' ########################################################### ' #include < stdio.h > ' #include < gsl / gsl_math.h > ' ' Int main(void) ' { ' double a; ' double d = 5.0; ' ' a = gsl_pow_2(d) * M_PI_4; ' ' printf("Kreisflaeche = %f\n", a); ' RETURN 0; ' } '########################################################### ' Gambas class file EXTERN gsl_pow_2(a AS Float) AS Float IN "libgsl" EXTERN gsl_pow_int(a AS Float, b AS Integer) AS Float IN "libgsl" EXTERN M_PI_4() AS Float IN "libgsl" PUBLIC SUB Button1_Click() TextArea1.Text = gsl_pow_2(5) & "\n" TextArea1.Text &= gsl_pow_int(5, 3) & "\n" TextArea1.Text &= M_PI_4() END From jussi.lahtinen at ...626... Wed Feb 4 17:23:51 2009 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 4 Feb 2009 18:23:51 +0200 Subject: [Gambas-user] external function again :) In-Reply-To: <200902041706.34911.wally@...2037...> References: <200902041706.34911.wally@...2037...> Message-ID: <384d3900902040823i31dc1ca6s754cd91a59c83812@...627...> If I understand correctly you are trying to call M_PI_4 which is constant not function/sub. I don't think you can call constants... and why to bother? It is as easy to write constants to gambas. Instead of; EXTERN M_PI_4() AS Float IN "libgsl" write example; PUBLIC CONST M_PI_4 AS Float = what ever Jussi On Wed, Feb 4, 2009 at 6:06 PM, Wally wrote: > I'm trying to access the GNU Scientific libray and have > a problem with math constants from this lib. > The power-functions are working nice. > > I try to build the above C-code in gambas and get the > error-message : > Cannot find symbol 'M_PI_4' in dynamic library 'libgsl' > > These math constants should be available in libgsl and also > in libc via math.h, but i can't get it to work. > Where is my mistake ? > > > ' ########################################################### > ' #include < stdio.h > > ' #include < gsl / gsl_math.h > > ' > ' Int main(void) > ' { > ' double a; > ' double d = 5.0; > ' > ' a = gsl_pow_2(d) * M_PI_4; > ' > ' printf("Kreisflaeche = %f\n", a); > ' RETURN 0; > ' } > '########################################################### > > ' Gambas class file > > EXTERN gsl_pow_2(a AS Float) AS Float IN "libgsl" > EXTERN gsl_pow_int(a AS Float, b AS Integer) AS Float IN "libgsl" > EXTERN M_PI_4() AS Float IN "libgsl" > > PUBLIC SUB Button1_Click() > > TextArea1.Text = gsl_pow_2(5) & "\n" > TextArea1.Text &= gsl_pow_int(5, 3) & "\n" > TextArea1.Text &= M_PI_4() > > END > > > ------------------------------------------------------------------------------ > Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) > software. With Adobe AIR, Ajax developers can use existing skills and code to > build responsive, highly engaging applications that combine the power of local > resources and data with the reach of the web. Download the Adobe AIR SDK and > Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From markusmangold at ...17... Wed Feb 4 17:29:45 2009 From: markusmangold at ...17... (Markus Mangold) Date: Wed, 04 Feb 2009 17:29:45 +0100 Subject: [Gambas-user] License of Gambas Logo Message-ID: <20090204162945.207240@...18...> Hi, under which license the Gambas mascot is licensed? Question is, am I allowed to put the mascot in front of a (book) cover ...? -- Best wishes, Cybermonkey342 -- Psssst! Schon vom neuen GMX MultiMessenger geh?rt? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger01 From Charles.Capaday at ...2023... Wed Feb 4 17:35:20 2009 From: Charles.Capaday at ...2023... (Charles Capaday) Date: Wed, 4 Feb 2009 11:35:20 -0500 Subject: [Gambas-user] License of Gambas Logo In-Reply-To: <20090204162945.207240@...18...> References: <20090204162945.207240@...18...> Message-ID: Are you writing the long awaited book of Gambas? This would be a major thing for the language and the potentially huge community out there. As it stands and as wonderful as it is, it is something for geeks only... Cheers, Dr. Charles Capaday Professor & Director Brain and Movement Lab. Dept. of Anatomy & Physiology Faculty of Medicine, Laval University http://www.brainandmovementlab.org/ Mailing address: CRULRG F-6500 Hopital Robert-Giffard 2601 de la Canardiere, Beauport, QC G1J 2G3 Canada Tel: +418-663-5747 (Sec.) +418-663-5000 ext. 6736 (Off.) +418-663-5000 ext. 6877 (Lab.) Fax: +418-663-8756 > -----Original Message----- > From: Markus Mangold [mailto:markusmangold at ...17...] > Sent: 4 f?vrier 2009 11:30 > To: gambas-user at lists.sourceforge.net > Subject: [Gambas-user] License of Gambas Logo > > Hi, > > under which license the Gambas mascot is licensed? Question > is, am I allowed to put the mascot in front of a (book) cover ...? > > -- > Best wishes, > Cybermonkey342 > -- > Psssst! Schon vom neuen GMX MultiMessenger geh?rt? Der kann`s > mit allen: http://www.gmx.net/de/go/multimessenger01 > > -------------------------------------------------------------- > ---------------- > Create and Deploy Rich Internet Apps outside the browser with > Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can > use existing skills and code to build responsive, highly > engaging applications that combine the power of local > resources and data with the reach of the web. Download the > Adobe AIR SDK and Ajax docs to start building applications > today-http://p.sf.net/sfu/adobe-com > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From sourceforge-raindog2 at ...94... Wed Feb 4 19:39:52 2009 From: sourceforge-raindog2 at ...94... (Rob) Date: Wed, 4 Feb 2009 13:39:52 -0500 Subject: [Gambas-user] License of Gambas Logo In-Reply-To: References: <20090204162945.207240@...18...> Message-ID: <200902041339.52594.sourceforge-raindog2@...94...> On Wednesday 04 February 2009 11:35, Charles Capaday wrote: > Are you writing the long awaited book of Gambas? This would be a major > thing for the language and the potentially huge community out there. As > it stands and as wonderful as it is, it is something for geeks only... There's already been one such book, the Beginner's Guide to Gambas, though it was written circa version 1.0 as you can tell from the presence of the old logo. But, glad to hear of another. http://www.amazon.com/Beginners-Guide-Gambas-Programming/dp/0741429489 PDF here: http://vectorlinux.osuosl.org/Uelsk8s/gambas-beginner-guide.pdf Rob From doriano.blengino at ...1909... Wed Feb 4 19:58:13 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Wed, 04 Feb 2009 19:58:13 +0100 Subject: [Gambas-user] external function again :) In-Reply-To: <200902041706.34911.wally@...2037...> References: <200902041706.34911.wally@...2037...> Message-ID: <4989E545.5010203@...1909...> Wally ha scritto: > I'm trying to access the GNU Scientific libray and have > a problem with math constants from this lib. > The power-functions are working nice. > > I try to build the above C-code in gambas and get the > error-message : > Cannot find symbol 'M_PI_4' in dynamic library 'libgsl' > Actually 'M_PI_4' seems to be a #define in C (because is all upeprcase), and so it is not exported. Open gsl_math.h and look at its value, then define a constant in your gambas class, like Jussi suggested. Moreover, in the C fragment M_PI_4 is *not* invoked with parentheses, so you can't expect you can do it! :-) Cheers, Doriano. > These math constants should be available in libgsl and also > in libc via math.h, but i can't get it to work. > Where is my mistake ? > > > ' ########################################################### > ' #include < stdio.h > > ' #include < gsl / gsl_math.h > > ' > ' Int main(void) > ' { > ' double a; > ' double d = 5.0; > ' > ' a = gsl_pow_2(d) * M_PI_4; > ' > ' printf("Kreisflaeche = %f\n", a); > ' RETURN 0; > ' } > '########################################################### > > ' Gambas class file > > EXTERN gsl_pow_2(a AS Float) AS Float IN "libgsl" > EXTERN gsl_pow_int(a AS Float, b AS Integer) AS Float IN "libgsl" > EXTERN M_PI_4() AS Float IN "libgsl" > > PUBLIC SUB Button1_Click() > > TextArea1.Text = gsl_pow_2(5) & "\n" > TextArea1.Text &= gsl_pow_int(5, 3) & "\n" > TextArea1.Text &= M_PI_4() > > END > > > ------------------------------------------------------------------------------ > Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) > software. With Adobe AIR, Ajax developers can use existing skills and code to > build responsive, highly engaging applications that combine the power of local > resources and data with the reach of the web. Download the Adobe AIR SDK and > Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From mohareve at ...626... Thu Feb 5 00:00:40 2009 From: mohareve at ...626... (M. Cs.) Date: Thu, 5 Feb 2009 00:00:40 +0100 Subject: [Gambas-user] GridView not refreshing Message-ID: Dear Benoit, having solved my previous problem with the GridView, now I'm facing a new one: I'm using a GridView table with 5 columns and tens of thousand rows. I'm working on a sorting problem. I want the GridView to sort its content for example by name. All the names are stored in an array, and paralelly the other 4 data in other arrays. I've created a sixth array with elements *name*index. *After this creation I'm sorting this Array with the .Sort() method. Everyting works fine, but having created the array of proper indices, when I invoke the GridView.Data(x,y) method simply nothing happens. Why? Part of the code: .... CASE 0 FOR i = 0 TO gV.Rows.Count - 1 'Take the elements of first column and add a * and an index indexer.Add(gV[i, 0].Text & "*" & i) NEXT indexer.Sort(1) 'Sort the array ascending FOR i = 0 TO gV.Rows.Count - 1 *'Detach the index numbers from the sorted array and use index for the fill by splitting it* dubl = Split(indexer[i], "*") m = Val(dubl[1]) 'The index of the element from the arrays which should stay in the i-th row gv_Data(m, 0) gv_Data(m, 1) gv_Data(m, 2) gv_Data(m, 3) gv_Data(m, 4) NEXT indexer.Clear() ..... And the responding gV_Data: PUBLIC SUB gv_Data(x AS Integer, y AS Integer) SELECT CASE y CASE 0 gV.Data.Text = nev[x] CASE 1 gV.Data.Text = kotet[x] CASE 2 gV.Data.Text = ut[x] CASE 3 gV.Data.Text = nagy[x] CASE 4 gV.Data.Text = mikor[x] END SELECT END All of these arrays are global arrays, available from all parts. I don't see the logical error, yet still nothing is happening. Why? Thanks! From leo_senpao at ...1541... Thu Feb 5 05:12:49 2009 From: leo_senpao at ...1541... (Leo Sendra) Date: Thu, 5 Feb 2009 12:12:49 +0800 (SGT) Subject: [Gambas-user] Ask about key.enter and key.return Message-ID: <896981.61084.qm@...2025...> Hi all, What is the different between key.enter and key.return? I have a trouble in my application. When I use key.return, the enter button near a number pad (num lock part) is not function as well. I don't know what happen with this. I am really confused with this code. Is it a bug? Or do they have a different meaning?? Thanks... Yahoo! Toolbar kini dilengkapi Anti-Virus dan Anti-Adware gratis. Download Yahoo! Toolbar sekarang. http://id.toolbar.yahoo.com From rterry at ...1946... Thu Feb 5 05:23:45 2009 From: rterry at ...1946... (richard terry) Date: Thu, 5 Feb 2009 15:23:45 +1100 Subject: [Gambas-user] Ask about key.enter and key.return In-Reply-To: <896981.61084.qm@...2025...> References: <896981.61084.qm@...2025...> Message-ID: <200902051523.45680.rterry@...1946...> On Thu, 5 Feb 2009 03:12:49 pm Leo Sendra wrote: > Hi all, > > What is the different between key.enter and key.return? > I have a trouble in my application. > When I use key.return, the enter button near a number pad (num lock part) > is not function as well. I don't know what happen with this. > I am really confused with this code. Is it a bug? Or do they have a > different meaning?? Do this. In your app, say in if you've a textbox1 on your form Public sub textbox1_keypress() print key.code end Run your app, and watch the output on the terminal. regards Richard > > Thanks... > > > > Yahoo! Toolbar kini dilengkapi Anti-Virus dan Anti-Adware gratis. > Download Yahoo! Toolbar sekarang. > http://id.toolbar.yahoo.com > --------------------------------------------------------------------------- >--- Create and Deploy Rich Internet Apps outside the browser with > Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing > skills and code to build responsive, highly engaging applications that > combine the power of local resources and data with the reach of the web. > Download the Adobe AIR SDK and Ajax docs to start building applications > today-http://p.sf.net/sfu/adobe-com > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From doriano.blengino at ...1909... Thu Feb 5 08:14:29 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Thu, 05 Feb 2009 08:14:29 +0100 Subject: [Gambas-user] GridView not refreshing In-Reply-To: References: Message-ID: <498A91D5.6000107@...1909...> M. Cs. ha scritto: > Dear Benoit, > having solved my previous problem with the GridView, now I'm facing a new > one: > I'm using a GridView table with 5 columns and tens of thousand rows. I'm > working on a sorting problem. I want the GridView to sort its content for > example by name. > All the names are stored in an array, and paralelly the other 4 data in > other arrays. I've created a sixth array with elements *name*index. *After > this creation I'm sorting this Array with the .Sort() method. Everyting > works fine, but having created the array of proper indices, when I invoke > the GridView.Data(x,y) method simply nothing happens. Why? > > Part of the code: > .... > CASE 0 > > FOR i = 0 TO gV.Rows.Count - 1 'Take the elements of first column and > add a * and an index > indexer.Add(gV[i, 0].Text & "*" & i) > NEXT > > indexer.Sort(1) 'Sort the array ascending > > FOR i = 0 TO gV.Rows.Count - 1 *'Detach the index numbers from the sorted > array and use index for the fill by splitting it* > dubl = Split(indexer[i], "*") > m = Val(dubl[1]) 'The index of the element from the arrays which should > stay in the i-th row > gv_Data(m, 0) > gv_Data(m, 1) > gv_Data(m, 2) > gv_Data(m, 3) > gv_Data(m, 4) > NEXT > > indexer.Clear() > ..... > > And the responding gV_Data: > > PUBLIC SUB gv_Data(x AS Integer, y AS Integer) > SELECT CASE y > CASE 0 > gV.Data.Text = nev[x] > CASE 1 > gV.Data.Text = kotet[x] > CASE 2 > gV.Data.Text = ut[x] > CASE 3 > gV.Data.Text = nagy[x] > CASE 4 > gV.Data.Text = mikor[x] > END SELECT > END > > All of these arrays are global arrays, available from all parts. I don't see > the logical error, yet still nothing is happening. Why? > Thanks! > Instead of calling gv_Data(m, ...), try to do "gV.cells[m,...].text = ..." (with the correct data, of course!). The Data() event handler is called when the gridview wants to get its data; in that situation the property "Data" has a meaning. Outside that context, I think the Data property has no meaning. Moreover, Benoit would say that calling an event handler only serves to do dirty things... There are two distinct ways to cope with data in gridview. One is to take control and assign values directly to cells[]; the gridview then is a window that reveals a part of the full grid, but the full grid contains already all the data; once filled, there is no need to do anything else. This method can take a long time to fill the grid, though. So another way is to load in the gridview only the data it can display at any moment: if the gridview has 10 visible rows, then you load just ten values; if the user scrolls down 20 rows, then you supply new 10 values, and so on. This is done by using the Data event. Regards, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From doriano.blengino at ...1909... Thu Feb 5 08:18:11 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Thu, 05 Feb 2009 08:18:11 +0100 Subject: [Gambas-user] Ask about key.enter and key.return In-Reply-To: <896981.61084.qm@...2025...> References: <896981.61084.qm@...2025...> Message-ID: <498A92B3.1040102@...1909...> Leo Sendra ha scritto: > Hi all, > > What is the different between key.enter and key.return? > I have a trouble in my application. > When I use key.return, the enter button near a number pad (num lock part) is not function as well. > I don't know what happen with this. > I am really confused with this code. Is it a bug? Or do they have a different meaning?? > ...they are exactly two different codes for two different keys! If you want they to have the same function, look at both "Key.Enter" and "Key.Return" (with an OR clause). Or, as Richard says, put a print statement and look at what is happening. Regards, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From eilert-sprachen at ...221... Thu Feb 5 09:24:10 2009 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Thu, 05 Feb 2009 09:24:10 +0100 Subject: [Gambas-user] Release of Gambas 2.11.1 In-Reply-To: <200902031502.00655.gambas@...1...> References: <200902020105.06716.gambas@...1...> <49883A92.9080807@...221...> <200902031502.00655.gambas@...1...> Message-ID: <498AA22A.2040205@...221...> Hmmm :-( >>> * The GridView now stretched its last column correctly. >>> >> I just downloaded, compiled and installed 11.1, but the gridview still >> makes the last column stretch. >> > > Yes. I won't change this behaviour in Gambas 2, as I just fix bugs in that > version. I just thought that this is what you meant "correctly" - that it cares for the value the programmer has given. Ok... > > Anyway, I don't understand what the problem is with letting the last column > fill the tableview contents if it is too small. Didn't you get my mail with the screenshots couple of weeks ago? You never answered to it. At least one person did and agreed with me. Let me see... Alright, the thread is Two minor "bugs", and the one who answered is "Ron_1st". But nobody else answered... Maybe my pictures didn't get through to everyone? Thinking it over, I had the idea that if you offer a choice of "automatically" and "manually" adapting the column widths, you might want to do it more consequently and not forcing the programmer to accept Benoit's presets :-) I agree that an automatic behaviour can make sense, especially in a busy situation when you want to get an app just up and running to show some result. In this case, however, it would be clever to have an automatic that adapts ALL of the columns at once, such as - there is a default (minimum) width for each column which could be overridden by the header's width - if in one or another column there is not enough width for the contents, it will be strechted to make contents fit[1] - if it becomes too long to show the rest of the columns, its width will be reduced to make the rest of columns show again[2] - if the sum of column widths doesn't fill the table's space, they will ALL be stretched by the same amount/relation so they eventually fit in[3] - if the programmer defines (during runtime maybe) the width of one of the columns, this column will stay that width and not be regarded in the automatic [1] Implementing this has cost me some gray hairs in the past as it doesn't reliably react: "some"times it just doesn't do what it's supposed to, maybe a timing error when refreshing? [2] Well, that's tricky and would be confined to the minimum default width mentioned above; i. e. if you have too many columns that wouldn't fit in anyway, you still can give the user the horizontal scroll bar. [3] We can go even one step ahead and implement line wrap and/or a soft fading effect for lines that are too long :-) But I think that would be QT's task to implement not yours, right? Regards Rolf From mohareve at ...626... Thu Feb 5 10:39:32 2009 From: mohareve at ...626... (M. Cs.) Date: Thu, 5 Feb 2009 10:39:32 +0100 Subject: [Gambas-user] GridView not refreshing In-Reply-To: <498A91D5.6000107@...1909...> References: <498A91D5.6000107@...1909...> Message-ID: Well, I'll try with your suggestion, but sincerely I'm afraid that I'll get the same ugly result I had the first time, when I wanted to display tens of thousands rows with the synthax gV.[m,o].Text=.... It took eternity to display all the rows. But since I'm using Data event it speeded up the process at least 100 times. I thought that when I already have a filled table, and I just want to sort its items, I could use again the method Data. You know the speed is very important. But can you explain me why it doesn't want to do the same action, when the GridView is already filled? I've tried to do gV.Clear() to recreate the table but it didn't work. Logically there's a contradiction! Thanks From gambas at ...1... Thu Feb 5 11:20:03 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Thu, 5 Feb 2009 11:20:03 +0100 Subject: [Gambas-user] GridView not refreshing In-Reply-To: References: <498A91D5.6000107@...1909...> Message-ID: <200902051120.03200.gambas@...1...> > Well, I'll try with your suggestion, but sincerely I'm afraid that I'll get > the same ugly result I had the first time, when I wanted to display tens of > thousands rows with the synthax > gV.[m,o].Text=.... > It took eternity to display all the rows. But since I'm using Data event it > speeded up the process at least 100 times. I thought that when I already > have a filled table, and I just want to sort its items, I could use again > the method Data. You know the speed is very important. > But can you explain me why it doesn't want to do the same action, when the > GridView is already filled? I've tried to do gV.Clear() to recreate the > table but it didn't work. Logically there's a contradiction! > Thanks You didn't understand what the Data event is. Either you fill the GridView with the [] operator, and then you can use the Clear method to void it, or you use the Data event, and then you must provide the data when the GridView asks for it. You must not call the Data event handler yourself, it will do nothing. If you want to see sorted data, then you must write your Data event handler so that it returns the data sorted. Regards, -- Beno?t From eilert-sprachen at ...221... Thu Feb 5 11:39:07 2009 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Thu, 05 Feb 2009 11:39:07 +0100 Subject: [Gambas-user] GridView not refreshing In-Reply-To: References: <498A91D5.6000107@...1909...> Message-ID: <498AC1CB.6030200@...221...> > the method Data. You know the speed is very important. > But can you explain me why it doesn't want to do the same action, when the > GridView is already filled? I've tried to do gV.Clear() to recreate the > table but it didn't work. Logically there's a contradiction! The DATA event will be used when you change the number of Rows or Columns. So just set gV.Rows.Count = 0 and the grid will be erased completely. When you want it to be filled again, set gV.Rows.Count = 10000 and it will go (ten thousand times * number of columns) into the DATA event where you can tell it what to fill in each cell. Is this what you were looking for? Rolf From mohareve at ...626... Thu Feb 5 15:01:13 2009 From: mohareve at ...626... (M. Cs.) Date: Thu, 5 Feb 2009 15:01:13 +0100 Subject: [Gambas-user] GridView not refreshing In-Reply-To: <498AC1CB.6030200@...221...> References: <498A91D5.6000107@...1909...> <498AC1CB.6030200@...221...> Message-ID: > > Clear method to void it, or you use the Data event, and then you must > provide > the data when the GridView asks for it. This is my problem. How shall be the the gV_Data() event invoken, if not explicitelly? How can GridView ask for it? There are only two options to fill the grid: 1. With gV[x,y].Text=... this is slow 2. Or to pass the values with gV_Data(x,y) and a global variable one by one. The 2. way is how I've filled my table 80.000 x 5 in 30 seconds. Each time I require the search, the program fills the table using the same procedure. Now, when I'm clicking on a column's header and invoke a function ColumnSort(), it does the sort of arrays containing the data to be displayed, and it is trying to invoke the gV_Data(). Where am I wrong? I don't understand what should an user do with the grid to invoke the Data event. Am I clear? From gambas at ...1... Thu Feb 5 15:04:47 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Thu, 5 Feb 2009 15:04:47 +0100 Subject: [Gambas-user] GridView not refreshing In-Reply-To: References: <498AC1CB.6030200@...221...> Message-ID: <200902051504.47264.gambas@...1...> > > Clear method to void it, or you use the Data event, and then you must > > provide > > the data when the GridView asks for it. > > This is my problem. How shall be the the gV_Data() event invoken, if not > explicitelly? > How can GridView ask for it? > There are only two options to fill the grid: > 1. With gV[x,y].Text=... this is slow > 2. Or to pass the values with gV_Data(x,y) and a global variable one by > one. > > The 2. way is how I've filled my table 80.000 x 5 in 30 seconds. Each time > I require the search, the program fills the table using the same procedure. > Now, when I'm clicking on a column's header and invoke a function > ColumnSort(), it does the sort of arrays containing the data to be > displayed, and it is trying to invoke the gV_Data(). Where am I wrong? > I don't understand what should an user do with the grid to invoke the Data > event. Am I clear? If you have changed the data, by sorting it or for any other reason, you just have to call the GridView.Refresh() to refresh the entire GridView, or GridView[x, y].Refresh to refresh a specific cell. Regards, -- Beno?t From d.paleino at ...626... Thu Feb 5 16:13:03 2009 From: d.paleino at ...626... (David Paleino) Date: Thu, 5 Feb 2009 16:13:03 +0100 Subject: [Gambas-user] Method overloading in Gambas Message-ID: <20090205161303.3a354f08@...626...> Hello, other languages (C# and Java can do this, possibly also others) have the ability to "overload" methods. Quick example: ---8<--- PUBLIC SUB Method() ' Arg1 and Arg2 are properties, which could be set with Arg*_Write() ' methods, or can be default values, or ... Method(Arg1, Arg2) END SUB PUBLIC SUB Method(Arg1 AS Variant, Arg2 AS Variant) [..] END SUB --->8--- (obviously, if one calls Method(), he should've set Arg1 and Arg2 already) This is easily doable using a "helper" sub, like: ---8<--- PUBLIC SUB Method() Arg1 = [..] ' get these from somewhere Arg2 = [..] DoStuff(Arg1, Arg2) END SUB PUBLIC SUB Method(Arg1 AS Variant, Arg2 AS Variant) DoStuff(Arg1, Arg2) END SUB PRIVATE SUB DoStuff(Arg1 AS Variant, Arg2 AS Variant) [..] END SUB --->8--- (note the redundancy in method signatures...) Benoit, is it possible to have this feature in gambas3? Ciao, David -- . ''`. Debian maintainer | http://wiki.debian.org/DavidPaleino : :' : Linuxer #334216 --|-- http://www.hanskalabs.net/ `. `'` GPG: 1392B174 ----|---- http://snipr.com/qa_page `- 2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: not available URL: From d.paleino at ...626... Thu Feb 5 16:16:34 2009 From: d.paleino at ...626... (David Paleino) Date: Thu, 5 Feb 2009 16:16:34 +0100 Subject: [Gambas-user] Method overloading in Gambas References: <20090205161303.3a354f08@...626...> Message-ID: <20090205161634.3aaee10a@...626...> On Thu, 5 Feb 2009 16:13:03 +0100, David Paleino wrote: > [..] > This is easily doable using a "helper" sub, like: > > ---8<--- > PUBLIC SUB Method() > Arg1 = [..] ' get these from somewhere > Arg2 = [..] > DoStuff(Arg1, Arg2) > END SUB > > PUBLIC SUB Method(Arg1 AS Variant, Arg2 AS Variant) > DoStuff(Arg1, Arg2) > END SUB > > PRIVATE SUB DoStuff(Arg1 AS Variant, Arg2 AS Variant) > [..] > END SUB > --->8--- I just realized after sending the message... the second Method() would fail at compilation time, because it is already declared... Yes, overloading is the only way to do this :) Ciao, David -- . ''`. Debian maintainer | http://wiki.debian.org/DavidPaleino : :' : Linuxer #334216 --|-- http://www.hanskalabs.net/ `. `'` GPG: 1392B174 ----|---- http://snipr.com/qa_page `- 2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: not available URL: From gambas at ...1... Thu Feb 5 16:35:53 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Thu, 5 Feb 2009 16:35:53 +0100 Subject: [Gambas-user] Method overloading in Gambas In-Reply-To: <20090205161303.3a354f08@...626...> References: <20090205161303.3a354f08@...626...> Message-ID: <200902051635.53452.gambas@...1...> > Hello, > other languages (C# and Java can do this, possibly also others) have the > ability to "overload" methods. Quick example: > > ---8<--- > PUBLIC SUB Method() > ' Arg1 and Arg2 are properties, which could be set with Arg*_Write() > ' methods, or can be default values, or ... > Method(Arg1, Arg2) > END SUB > > PUBLIC SUB Method(Arg1 AS Variant, Arg2 AS Variant) > [..] > END SUB > --->8--- > > (obviously, if one calls Method(), he should've set Arg1 and Arg2 already) > > This is easily doable using a "helper" sub, like: > > ---8<--- > PUBLIC SUB Method() > Arg1 = [..] ' get these from somewhere > Arg2 = [..] > DoStuff(Arg1, Arg2) > END SUB > > PUBLIC SUB Method(Arg1 AS Variant, Arg2 AS Variant) > DoStuff(Arg1, Arg2) > END SUB > > PRIVATE SUB DoStuff(Arg1 AS Variant, Arg2 AS Variant) > [..] > END SUB > --->8--- > > (note the redundancy in method signatures...) > > Benoit, is it possible to have this feature in gambas3? > > Ciao, > David It is impossible to implement this kind of method overloading in Gambas. To implement it, the compiler needs to always know the signature of a method before calling it. But the Gambas compiler cannot, because each class is compiled completely independently from others. All linkage is done by interpreter at runtime. Otherwise, the interpreter would have to do type matching at runtime to choose what method to call. This is a waste of time and code, and this is the reason why C++, Java... do that at compilation time and not at run time. Regards, -- Beno?t From gareth at ...2066... Thu Feb 5 16:41:51 2009 From: gareth at ...2066... (Gareth Bult) Date: Thu, 5 Feb 2009 15:41:51 +0000 (GMT) Subject: [Gambas-user] Re; Threads ... In-Reply-To: <15406379.429301233841709803.JavaMail.root@...1834...> Message-ID: <3622213.429961233848511153.JavaMail.root@...1834...> Hi, Very basic question .. is there any way to set off a method or procedure in Gambas such that it runs in a thread? In particular I'm thinking about a Gambas web server where a process might need to retrieve information from a slow storage device or database server, or via a raw network socket, and while it's doing that, I don't want it to block other requests .... ?? tia Gareth -- Gareth Bult (Gareth at ...2067...) From gambas at ...1... Thu Feb 5 16:39:37 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Thu, 5 Feb 2009 16:39:37 +0100 Subject: [Gambas-user] Just a test Message-ID: <200902051639.37527.gambas@...1...> -- Beno?t From d.paleino at ...626... Thu Feb 5 16:51:46 2009 From: d.paleino at ...626... (David Paleino) Date: Thu, 5 Feb 2009 16:51:46 +0100 Subject: [Gambas-user] Method overloading in Gambas References: <20090205161303.3a354f08@...626...> <200902051635.53452.gambas@...1...> Message-ID: <20090205165146.5eca2e5f@...626...> Hello Beno?t, On Thu, 5 Feb 2009 16:35:53 +0100, Beno?t Minisini wrote: > It is impossible to implement this kind of method overloading in Gambas. > > [..] Ok, understood. I probably found a trick, posting it here so that people looking at the archives can find it :) I'm working (yes, still) on a gb.net.ldap component, and needed this "overloading" thing. I solved it using a Module called "LDAP" (-> static), and a class called LDAPConnection. How to use: ---8<--- ldap AS NEW LDAPConnection ldap.Host = ".." ldap.Port = ".." [..] ldap.Connect() --->8--- LDAPConnection has: ---8<--- PUBLIC SUB Connect() LDAP.Connect(ME.sHost, ME.iPort, [..]) END --->8--- And LDAP.Connect() has the right signature and code doing stuff. Obviously one could also call LDAP.Connect() directly. Back to code now! Ciao, David -- . ''`. Debian maintainer | http://wiki.debian.org/DavidPaleino : :' : Linuxer #334216 --|-- http://www.hanskalabs.net/ `. `'` GPG: 1392B174 ----|---- http://snipr.com/qa_page `- 2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: not available URL: From gambas at ...1... Thu Feb 5 16:58:53 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Thu, 5 Feb 2009 16:58:53 +0100 Subject: [Gambas-user] Method overloading in Gambas In-Reply-To: <20090205165146.5eca2e5f@...626...> References: <20090205161303.3a354f08@...626...> <200902051635.53452.gambas@...1...> <20090205165146.5eca2e5f@...626...> Message-ID: <200902051658.53995.gambas@...1...> > Hello Beno?t, > > On Thu, 5 Feb 2009 16:35:53 +0100, Beno?t Minisini wrote: > > It is impossible to implement this kind of method overloading in Gambas. > > > > [..] > > Ok, understood. > > I probably found a trick, posting it here so that people looking at the > archives can find it :) > > I'm working (yes, still) on a gb.net.ldap component, and needed this > "overloading" thing. I solved it using a Module called "LDAP" (-> static), > and a class called LDAPConnection. How to use: > > ---8<--- > ldap AS NEW LDAPConnection > > ldap.Host = ".." > ldap.Port = ".." > [..] > ldap.Connect() > --->8--- > > LDAPConnection has: > > ---8<--- > PUBLIC SUB Connect() > LDAP.Connect(ME.sHost, ME.iPort, [..]) > END > --->8--- > > And LDAP.Connect() has the right signature and code doing stuff. Obviously > one could also call LDAP.Connect() directly. > > Back to code now! > > Ciao, > David You can use optional arguments to replace method overloading. -- Beno?t From mohareve at ...626... Thu Feb 5 17:47:22 2009 From: mohareve at ...626... (M. Cs.) Date: Thu, 5 Feb 2009 17:47:22 +0100 Subject: [Gambas-user] GridView not refreshing In-Reply-To: <200902051504.47264.gambas@...1...> References: <498AC1CB.6030200@...221...> <200902051504.47264.gambas@...1...> Message-ID: Finally, I understood the principle and the sort works! I did as you told me: sorted the data, and called gV.Refresh(). I didn't think that the content of a cell created by data event is attached to the data source! Thanks once again! From doriano.blengino at ...1909... Thu Feb 5 20:50:58 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Thu, 05 Feb 2009 20:50:58 +0100 Subject: [Gambas-user] Method overloading in Gambas In-Reply-To: <200902051658.53995.gambas@...1...> References: <20090205161303.3a354f08@...626...> <200902051635.53452.gambas@...1...> <20090205165146.5eca2e5f@...626...> <200902051658.53995.gambas@...1...> Message-ID: <498B4322.3080500@...1909...> Beno?t Minisini ha scritto: >> Hello Beno?t, >> >> On Thu, 5 Feb 2009 16:35:53 +0100, Beno?t Minisini wrote: >> >>> It is impossible to implement this kind of method overloading in Gambas. >>> >>> [..] >>> >> Ok, understood. >> >> I probably found a trick, posting it here so that people looking at the >> archives can find it :) >> >> I'm working (yes, still) on a gb.net.ldap component, and needed this >> "overloading" thing. I solved it using a Module called "LDAP" (-> static), >> and a class called LDAPConnection. How to use: >> >> ---8<--- >> ldap AS NEW LDAPConnection >> >> ldap.Host = ".." >> ldap.Port = ".." >> [..] >> ldap.Connect() >> --->8--- >> >> LDAPConnection has: >> >> ---8<--- >> PUBLIC SUB Connect() >> LDAP.Connect(ME.sHost, ME.iPort, [..]) >> END >> --->8--- >> >> And LDAP.Connect() has the right signature and code doing stuff. Obviously >> one could also call LDAP.Connect() directly. >> >> Back to code now! >> >> Ciao, >> David >> > > You can use optional arguments to replace method overloading. I think overloading is a nice thing, but by no mean mandatory. Perhaps I missed something, but I don't see why one should absolutely have overloading (again, can be nice, but everything can be done without overloading). In your example: > PUBLIC SUB Method() > Arg1 = [..] ' get these from somewhere > Arg2 = [..] > DoStuff(Arg1, Arg2) > END SUB > > PUBLIC SUB Method(Arg1 AS Variant, Arg2 AS Variant) > DoStuff(Arg1, Arg2) > END SUB > > PRIVATE SUB DoStuff(Arg1 AS Variant, Arg2 AS Variant) > [..] > END SUB > where is the problem in naming those SUBs "Method()" and "Method_With_Args(arg1, arg2)"? There could be a difference if there was a dynamic late-binding, but this is a completely different argument... Regards, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From d.paleino at ...626... Thu Feb 5 20:53:38 2009 From: d.paleino at ...626... (David Paleino) Date: Thu, 5 Feb 2009 20:53:38 +0100 Subject: [Gambas-user] Method overloading in Gambas References: <20090205161303.3a354f08@...626...> <200902051635.53452.gambas@...1...> <20090205165146.5eca2e5f@...626...> <200902051658.53995.gambas@...1...> <498B4322.3080500@...1909...> Message-ID: <20090205205338.5e38a523@...626...> On Thu, 05 Feb 2009 20:50:58 +0100, Doriano Blengino wrote: > In your example: > > > [..] > > where is the problem in naming those SUBs "Method()" and > "Method_With_Args(arg1, arg2)"? Just a matter of style ;) -- . ''`. Debian maintainer | http://wiki.debian.org/DavidPaleino : :' : Linuxer #334216 --|-- http://www.hanskalabs.net/ `. `'` GPG: 1392B174 ----|---- http://snipr.com/qa_page `- 2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: not available URL: From doriano.blengino at ...1909... Thu Feb 5 21:03:41 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Thu, 05 Feb 2009 21:03:41 +0100 Subject: [Gambas-user] Re; Threads ... In-Reply-To: <3622213.429961233848511153.JavaMail.root@...1834...> References: <3622213.429961233848511153.JavaMail.root@...1834...> Message-ID: <498B461D.3000408@...1909...> Gareth Bult ha scritto: > Hi, > > Very basic question .. is there any way to set off a method or procedure in Gambas such that it runs in a thread? > > In particular I'm thinking about a Gambas web server where a process might need to retrieve information from a slow storage device or database server, or via a raw network socket, and while it's doing that, I don't want it to block other requests .... ?? > > tia > Gareth > Uhm... nice question. Gambas does not support threads, and can not do asynchronous I/O. But perhaps there is a trick... :->> Suppose you have to read from a slow device. Let do this job by an external program (/bin/cat, for example); you then launch this external program in background, and rely on its events for reading. Use: exec [...] for read as "exec" public sub exec_read() ... The same could hold true about writing to slow devices; if they are true devices then the kernel should buffer things for you; if it is something else (a database connection), this trick of external programs could work. But in the end, I suspect it is a complicated job... if you want several connections you have to keep trace of every one - not an easy job. And probably it would be slow (on my home machine EXECs are really slow, I don't know why). Regards, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From doriano.blengino at ...1909... Thu Feb 5 21:14:24 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Thu, 05 Feb 2009 21:14:24 +0100 Subject: [Gambas-user] Method overloading in Gambas In-Reply-To: <20090205205338.5e38a523@...626...> References: <20090205161303.3a354f08@...626...> <200902051635.53452.gambas@...1...> <20090205165146.5eca2e5f@...626...> <200902051658.53995.gambas@...1...> <498B4322.3080500@...1909...> <20090205205338.5e38a523@...626...> Message-ID: <498B48A0.1060809@...1909...> David Paleino ha scritto: > On Thu, 05 Feb 2009 20:50:58 +0100, Doriano Blengino wrote: > > >> In your example: >> >> >>> [..] >>> >> where is the problem in naming those SUBs "Method()" and >> "Method_With_Args(arg1, arg2)"? >> > > Just a matter of style ;) > ...or philosophy... I realized just now that you are coping with ldap. I wrote an ldap address book with gambas - if this is of your interest, I can send you my project. Regards, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From d.paleino at ...626... Thu Feb 5 21:18:51 2009 From: d.paleino at ...626... (David Paleino) Date: Thu, 5 Feb 2009 21:18:51 +0100 Subject: [Gambas-user] Method overloading in Gambas References: <20090205161303.3a354f08@...626...> <200902051635.53452.gambas@...1...> <20090205165146.5eca2e5f@...626...> <200902051658.53995.gambas@...1...> <498B4322.3080500@...1909...> <20090205205338.5e38a523@...626...> <498B48A0.1060809@...1909...> Message-ID: <20090205211851.5fa5dfdd@...626...> On Thu, 05 Feb 2009 21:14:24 +0100, Doriano Blengino wrote: > David Paleino ha scritto: > > On Thu, 05 Feb 2009 20:50:58 +0100, Doriano Blengino wrote: > >> In your example: > >> > >>> [..] > >>> > >> where is the problem in naming those SUBs "Method()" and > >> "Method_With_Args(arg1, arg2)"? > > > > Just a matter of style ;) > > ...or philosophy... I'm mainly a C# programmer, so I use much overloading ;) > I realized just now that you are coping with ldap. Yes, I have an application using "ldapsearch" (i.e. forking a process), but once there was an unmaintained gb.ldap component... I'm creating a new one (gb.ldap or gb.net.ldap, haven't decided yet). > I wrote an ldap address book with gambas - if this is of your interest, > I can send you my project. Sure, please send me a tarball :) Ciao, David -- . ''`. Debian maintainer | http://wiki.debian.org/DavidPaleino : :' : Linuxer #334216 --|-- http://www.hanskalabs.net/ `. `'` GPG: 1392B174 ----|---- http://snipr.com/qa_page `- 2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: not available URL: From rterry at ...1946... Thu Feb 5 21:34:07 2009 From: rterry at ...1946... (richard terry) Date: Fri, 6 Feb 2009 07:34:07 +1100 Subject: [Gambas-user] ComboBox returning wrong index Message-ID: <200902060734.07250.rterry@...1946...> Build 1844. ComboBox.Add (gb.qt) Syntax SUB Add ( Item AS String [ , Index AS Integer ] ) Inserts an element in the popup list box. One would assume the following: 1) Don't provide an index Gambas sets 0,1,2 etc 2) Do provide an index you should be able to set index to what you want I've never noticed before but that dosn't occur. No matter what you set the index to, it is always auto-incremented. I noticed this because I had a combo box, which had its contents changed according to the value of an option box, and as the index, I'd used the key to a database table containing the information I wanted to display/save Hope this is fixable. i can obviously do a work around. Maybe I'm just misinterpeting the documentation. regards Richard -------------- next part -------------- A non-text attachment was scrubbed... Name: test_cmb_index-0.0.1.tar.gz Type: application/x-tgz Size: 7737 bytes Desc: not available URL: From rterry at ...1946... Thu Feb 5 21:52:40 2009 From: rterry at ...1946... (richard terry) Date: Fri, 6 Feb 2009 07:52:40 +1100 Subject: [Gambas-user] Weird IDE in versions > 1844 Message-ID: <200902060752.40299.rterry@...1946...> Hi benoit, wondered what was happening with the IDE, all the versions after 1844 have stuff misssing or look funny. The ide seems to be GTK rather than its usual appearance, the properties option on the menu dosn't work, and the components can't be checked/unchecked. Easy to revert, which I do every time I compile and its still like this. Is this just my system? Regards Richard From joshiggins at ...1601... Thu Feb 5 23:20:27 2009 From: joshiggins at ...1601... (Joshua Higgins) Date: Thu, 5 Feb 2009 22:20:27 +0000 Subject: [Gambas-user] possible gambas or gtk bug - changing tabstrip font size has no effect Message-ID: <4247f5440902051420q54777c0cp6c99a8d70034fa6d@...627...> Hi, I'm optimizing my program for a 800x600 touch screen (11") so I'm making all the font sizes and controls bigger. I've a feeling this is GTK related but I'd thought I'd mention it anyway. Changing the tabstrip font size looks fine in the IDE and when using the QT toolkit, but doesn't work when using GTK. I have attached a screenshot to illustrate what I mean. -- joshua higgins >>>>>>------ -------------- next part -------------- A non-text attachment was scrubbed... Name: tabstrip.png Type: image/png Size: 103545 bytes Desc: not available URL: From doriano.blengino at ...1909... Thu Feb 5 22:58:17 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Thu, 05 Feb 2009 22:58:17 +0100 Subject: [Gambas-user] Method overloading in Gambas In-Reply-To: <20090205211851.5fa5dfdd@...626...> References: <20090205161303.3a354f08@...626...> <200902051635.53452.gambas@...1...> <20090205165146.5eca2e5f@...626...> <200902051658.53995.gambas@...1...> <498B4322.3080500@...1909...> <20090205205338.5e38a523@...626...> <498B48A0.1060809@...1909...> <20090205211851.5fa5dfdd@...626...> Message-ID: <498B60F9.6040909@...1909...> David Paleino ha scritto: > On Thu, 05 Feb 2009 21:14:24 +0100, Doriano Blengino wrote: > > >> I wrote an ldap address book with gambas - if this is of your interest, >> I can send you my project. >> > > Sure, please send me a tarball :) > Here it is. I've written it some time ago, and can't remember many things - for example why it is half in Italian and half in English. And it has surely some minor bug. Let me know if you need some explanation - I will try to remember... Regards, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." -------------- next part -------------- A non-text attachment was scrubbed... Name: ldap-addressbook-0.9.5.tar.gz Type: application/x-tgz Size: 71855 bytes Desc: not available URL: From doriano.blengino at ...1909... Thu Feb 5 22:57:43 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Thu, 05 Feb 2009 22:57:43 +0100 Subject: [Gambas-user] Method overloading in Gambas In-Reply-To: <20090205211851.5fa5dfdd@...626...> References: <20090205161303.3a354f08@...626...> <200902051635.53452.gambas@...1...> <20090205165146.5eca2e5f@...626...> <200902051658.53995.gambas@...1...> <498B4322.3080500@...1909...> <20090205205338.5e38a523@...626...> <498B48A0.1060809@...1909...> <20090205211851.5fa5dfdd@...626...> Message-ID: <498B60D7.8080705@...1909...> David Paleino ha scritto: > On Thu, 05 Feb 2009 21:14:24 +0100, Doriano Blengino wrote: > > >> I wrote an ldap address book with gambas - if this is of your interest, >> I can send you my project. >> > > Sure, please send me a tarball :) > Here it is. I've written it some time ago, and can't remember many things - for example why it is half in Italian and half in English. And it has surely some minor bug. Let me know if you need some explanation - I will try to remember... Regards, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From rterry at ...1946... Thu Feb 5 22:42:21 2009 From: rterry at ...1946... (richard terry) Date: Fri, 6 Feb 2009 08:42:21 +1100 Subject: [Gambas-user] Mysql comments - may interest some users Message-ID: <200902060842.21665.rterry@...1946...> http://developers.slashdot.org/article.pl?sid=09/02/05/2024257 "Michael 'Monty' Widenius, the original developer of the open-source MySQL database, has left Sun Microsystems and is starting his own company, Monty Program Ab, he said in a blog post Thursday. Widenius and Sun had a slightly rocky relationship since the vendor bought MySQL last year for $1 billion. In a much-discussed November blog post, he trashed Sun's decision to give MySQL 5.1 a 'generally available' designation, saying it was riddled with serious bugs Knew there was a reason I stuck to postgres! Regards Richard From gambas at ...1... Thu Feb 5 22:29:41 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Thu, 5 Feb 2009 22:29:41 +0100 Subject: [Gambas-user] Re; Threads ... In-Reply-To: <498B461D.3000408@...1909...> References: <3622213.429961233848511153.JavaMail.root@...1834...> <498B461D.3000408@...1909...> Message-ID: <200902052229.41470.gambas@...1...> > But in the end, I suspect it is a complicated job... if you want several > connections you have to keep trace of every one - not an easy job. And > probably it would be slow (on my home machine EXECs are really slow, I > don't know why). > > Regards, EXEC has no reason to be slow by itself. Can you give more details about this problem? -- Beno?t From gareth at ...2066... Fri Feb 6 02:48:57 2009 From: gareth at ...2066... (Gareth Bult) Date: Fri, 6 Feb 2009 01:48:57 +0000 (GMT) Subject: [Gambas-user] Mysql comments - may interest some users In-Reply-To: <200902060842.21665.rterry@...1946...> Message-ID: <14851288.431671233884937069.JavaMail.root@...1834...> :) I've been using MySQL for a long time and I have at least half a dozen servers running something like 1000 queries per second peak with a few hundred average .. over at least 2 years. Never had a crash! Never had a wrong result - as far as I know .. ;) ----- Original Message ----- From: "richard terry" To: "mailing list for gambas users" Sent: Thursday, 5 February, 2009 9:42:21 PM GMT +00:00 GMT Britain, Ireland, Portugal Subject: [Gambas-user] Mysql comments - may interest some users http://developers.slashdot.org/article.pl?sid=09/02/05/2024257 "Michael 'Monty' Widenius, the original developer of the open-source MySQL database, has left Sun Microsystems and is starting his own company, Monty Program Ab, he said in a blog post Thursday. Widenius and Sun had a slightly rocky relationship since the vendor bought MySQL last year for $1 billion. In a much-discussed November blog post, he trashed Sun's decision to give MySQL 5.1 a 'generally available' designation, saying it was riddled with serious bugs Knew there was a reason I stuck to postgres! Regards Richard ------------------------------------------------------------------------------ Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing skills and code to build responsive, highly engaging applications that combine the power of local resources and data with the reach of the web. Download the Adobe AIR SDK and Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Gareth Bult (Gareth at ...2067...) From gareth at ...2066... Fri Feb 6 02:46:11 2009 From: gareth at ...2066... (Gareth Bult) Date: Fri, 6 Feb 2009 01:46:11 +0000 (GMT) Subject: [Gambas-user] Re; Threads ... In-Reply-To: <200902052229.41470.gambas@...1...> Message-ID: <22177015.431641233884771139.JavaMail.root@...1834...> Hi, I'm trying to decide whether to try Gambas for a Web project because I've seen people mention that one of the design features (?) was that it could run web server type applications (?) .. I'm thinking multiple threads could be emulated by running the application a number of times and using some sort of IPC mechanism to share session information ... is there a more elegant solution to the problem of serving pages / IO blocking? tia Gareth. ----- Original Message ----- From: "Beno?t Minisini" To: "mailing list for gambas users" Sent: Thursday, 5 February, 2009 9:29:41 PM GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: [Gambas-user] Re; Threads ... > But in the end, I suspect it is a complicated job... if you want several > connections you have to keep trace of every one - not an easy job. And > probably it would be slow (on my home machine EXECs are really slow, I > don't know why). > > Regards, EXEC has no reason to be slow by itself. Can you give more details about this problem? -- Beno?t ------------------------------------------------------------------------------ Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing skills and code to build responsive, highly engaging applications that combine the power of local resources and data with the reach of the web. Download the Adobe AIR SDK and Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Gareth Bult (Gareth at ...2067...) From sourceforge-raindog2 at ...94... Fri Feb 6 04:08:27 2009 From: sourceforge-raindog2 at ...94... (Rob) Date: Thu, 5 Feb 2009 22:08:27 -0500 Subject: [Gambas-user] Re; Threads ... In-Reply-To: <22177015.431641233884771139.JavaMail.root@...1834...> References: <22177015.431641233884771139.JavaMail.root@...1834...> Message-ID: <200902052208.28233.sourceforge-raindog2@...94...> On Thursday 05 February 2009 20:46, Gareth Bult wrote: > I'm trying to decide whether to try Gambas for a Web project because > I've seen people mention that one of the design features (?) was that it > could run web server type applications (?) Gambasdoc.org actually runs on a Gambas web application written by Benoit. You can find its source as app/src/doc.cgi in the Gambas tarball. > .. I'm thinking multiple > threads could be emulated by running the application a number of times > and using some sort of IPC mechanism to share session information ... is > there a more elegant solution to the problem of serving pages / IO > blocking? You're talking about writing an actual HTTP daemon in Gambas? I don't think that's really necessary, but it's been done in Perl, Python, etc. for particular applications. If you're going to start multiple copies of the program to simulate multithreading, you might as well just run it as an xinetd service using a file or database store for session information. Rob From gareth at ...2066... Fri Feb 6 10:25:49 2009 From: gareth at ...2066... (Gareth Bult) Date: Fri, 6 Feb 2009 09:25:49 +0000 (GMT) Subject: [Gambas-user] Re; Threads ... In-Reply-To: <200902052208.28233.sourceforge-raindog2@...94...> Message-ID: <8353873.431891233912349354.JavaMail.root@...1834...> Erm, I'm looking to write an online application that requires a memory resident HTTP daemon which is capable of servicing a relatively high load. I'm simply trying to determine whether I can use Gambas for the job ... I know I can use other languages, the existing code is written in Python, I'd just like to make more use of Gambas where possible. Gareth. ----- Original Message ----- From: "Rob" To: gambas-user at lists.sourceforge.net Sent: Friday, 6 February, 2009 3:08:27 AM GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: [Gambas-user] Re; Threads ... On Thursday 05 February 2009 20:46, Gareth Bult wrote: > I'm trying to decide whether to try Gambas for a Web project because > I've seen people mention that one of the design features (?) was that it > could run web server type applications (?) Gambasdoc.org actually runs on a Gambas web application written by Benoit. You can find its source as app/src/doc.cgi in the Gambas tarball. > .. I'm thinking multiple > threads could be emulated by running the application a number of times > and using some sort of IPC mechanism to share session information ... is > there a more elegant solution to the problem of serving pages / IO > blocking? You're talking about writing an actual HTTP daemon in Gambas? I don't think that's really necessary, but it's been done in Perl, Python, etc. for particular applications. If you're going to start multiple copies of the program to simulate multithreading, you might as well just run it as an xinetd service using a file or database store for session information. Rob ------------------------------------------------------------------------------ Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing skills and code to build responsive, highly engaging applications that combine the power of local resources and data with the reach of the web. Download the Adobe AIR SDK and Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Gareth Bult (Gareth at ...2067...) From doriano.blengino at ...1909... Fri Feb 6 10:34:01 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Fri, 06 Feb 2009 10:34:01 +0100 Subject: [Gambas-user] Re; Threads ... In-Reply-To: <200902052229.41470.gambas@...1...> References: <3622213.429961233848511153.JavaMail.root@...1834...> <498B461D.3000408@...1909...> <200902052229.41470.gambas@...1...> Message-ID: <498C0409.9020408@...1909...> Beno?t Minisini ha scritto: >> But in the end, I suspect it is a complicated job... if you want several >> connections you have to keep trace of every one - not an easy job. And >> probably it would be slow (on my home machine EXECs are really slow, I >> don't know why). >> >> Regards, >> > > EXEC has no reason to be slow by itself. Can you give more details about this > problem? > > I think I noticed a slowness, but decided to ignore it. It came out from my file manager, a gambas app, that uses EXECs and SHELLs to do al the real work (copy, move, tar, gunzip and so on). It is only an impression, partially justified by the fact that for every file operation an EXEC (or SHELL - can't remember) is invoked, instead of operating directly on the file. If I find some time I will investigate. Anyway, a web server which uses EXECs to do normal I/O would be not optimized - in that respect I suggested that it would be "slow". Regards, Doriano From markusmangold at ...17... Fri Feb 6 15:22:20 2009 From: markusmangold at ...17... (Markus Mangold) Date: Fri, 06 Feb 2009 15:22:20 +0100 Subject: [Gambas-user] License of Gambas Logo In-Reply-To: References: Message-ID: <20090206142220.322560@...18...> Well, acutally it will be rather a booklet than a book. It will have about 72 pages, is for the very beginner only and it will be in German only. I don't know if the knowware publishing house publishes in other languages than Danish or German but my booklet will be very similar to the "knowware" series. (www.knowware.dk or www.knowware.de). So keep your fingers crossed that I can make progress in the near future and maybe when its finished I will translate it into my (bad) English ... ;-) By the way, it will be available on Lulu.com. -- Psssst! Schon vom neuen GMX MultiMessenger geh?rt? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger01 From Charles.Capaday at ...2023... Fri Feb 6 16:11:23 2009 From: Charles.Capaday at ...2023... (Charles Capaday) Date: Fri, 6 Feb 2009 10:11:23 -0500 Subject: [Gambas-user] License of Gambas Logo In-Reply-To: <20090206142220.322560@...18...> References: <20090206142220.322560@...18...> Message-ID: Thanks for replying! It is good of you to take on this much needed project, Gambas is a wonderful programming language and the community seems to be very nice and very professional... Make sure you put in all the main features of what the language can do such a video, com port communication so that newcomer to the language and Linux can get a sense of what can be done. Also explain the different what GTk etc. are so that newcomers can understand the Linux foundation... As I will soon be moving to Denmark (DTU) I can certainly help with the translation. Cheers, Dr. Charles Capaday Professor & Director Brain and Movement Lab. Dept. of Anatomy & Physiology Faculty of Medicine, Laval University http://www.brainandmovementlab.org/ Mailing address: CRULRG F-6500 Hopital Robert-Giffard 2601 de la Canardiere, Beauport, QC G1J 2G3 Canada Tel: +418-663-5747 (Sec.) +418-663-5000 ext. 6736 (Off.) +418-663-5000 ext. 6877 (Lab.) Fax: +418-663-8756 > -----Original Message----- > From: Markus Mangold [mailto:markusmangold at ...17...] > Sent: 6 f?vrier 2009 09:22 > To: gambas-user at lists.sourceforge.net > Subject: Re: [Gambas-user] License of Gambas Logo > > Well, acutally it will be rather a booklet than a book. It > will have about 72 pages, is for the very beginner only and > it will be in German only. I don't know if the knowware > publishing house publishes in other languages than Danish or > German but my booklet will be very similar to the "knowware" > series. (www.knowware.dk or www.knowware.de). > So keep your fingers crossed that I can make progress in the > near future and maybe when its finished I will translate it > into my (bad) English ... ;-) By the way, it will be > available on Lulu.com. > -- > Psssst! Schon vom neuen GMX MultiMessenger geh?rt? Der kann`s > mit allen: http://www.gmx.net/de/go/multimessenger01 > > -------------------------------------------------------------- > ---------------- > Create and Deploy Rich Internet Apps outside the browser with > Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can > use existing skills and code to build responsive, highly > engaging applications that combine the power of local > resources and data with the reach of the web. Download the > Adobe AIR SDK and Ajax docs to start building applications > today-http://p.sf.net/sfu/adobe-com > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From doriano.blengino at ...1909... Fri Feb 6 23:04:01 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Fri, 06 Feb 2009 23:04:01 +0100 Subject: [Gambas-user] (To Benoit) - About SHELL slowlyness Message-ID: <498CB3D1.2000005@...1909...> I tried to investigate whether is true that SHELL is slow. I searched for a directory having a few short file, and tried with /usr/share/services (188 files and some directory). Then I typed: time for a in *; do sh -c "cp $a /tmp"; done cp: directory `kaddressbook' omessa <-- "omessa" = "omitted" cp: directory `kded' omessa cp: directory `kontact' omessa cp: directory `kresources' omessa cp: directory `searchproviders' omessa cp: directory `useragentstrings' omessa real 0m1.784s user 0m0.768s sys 0m0.912s ------------------------- Then I did: time for a in /tmp/*; do sh -c "rm $a"; done rm: impossibile rimuovere `/tmp/gambas.0': Is a directory rm: impossibile rimuovere `/tmp/kde-root': Is a directory rm: impossibile rimuovere `/tmp/ksocket-root': Is a directory rm: impossibile rimuovere `/tmp/ssh-DtpWml2479': Is a directory real 0m1.425s user 0m0.632s sys 0m0.756s ---------------------------- Then I tried to do the same thing inside the gambas app. The code for the copy operation is as follows: initime = Timer() FOR EACH fname IN fvMain.Selection mess("Copying '" & fname & "'...") ' <<<--- sets a label and issues a WAIT to update the screen IF Exist(fvAux.dir &/ fname) THEN reply = Message.Question("\"" & fname & "\" already exist. Overwrite?", "&No", "&Yes", "&Stop!") IF reply = 1 THEN CONTINUE IF reply = 3 THEN status("Interrupted: only copied " & cnt & " files.") RETURN ENDIF ENDIF SHELL "cp -r \"" & fvMain.Dir &/ fname & "\" \"" & fvAux.Dir & "\" 2>&1" TO res IF res <> "" THEN reply = Message.error("Copying, shell replied: " & res, "&Stop", "Go on") IF reply = 1 THEN mess("Interrupted: only copied " & cnt & " files.") BREAK ENDIF ELSE INC cnt ENDIF NEXT status("Copied " & cnt & " files. " & (Timer() - initime) & "secs.") fvAux.Reload This routine took 3.133 seconds (after selecting the 188 files in /usr/share/services and issued a copy to /tmp). ------------------------------------------- Then I tried the delete operation. The code is the following one: initime = Timer() FOR EACH name IN lastfv.Selection fname = lastfv.Dir & "/" & name IF IsDir(fname) THEN IF askdirs THEN reply = Message.Question("About to delete a directory. Sure to delete " & fname & "?", "&Yes", "Yes to &All", "&No") IF reply = 3 THEN RETURN IF reply = 2 THEN askdirs = FALSE ENDIF SHELL "rm -r \"" & fname & "\" 2>&1" TO name IF name <> "" THEN Message.Info(name) ELSE dvMain.deldir(fname) ENDIF ELSE SHELL "rm \"" & fname & "\" 2>&1" TO name IF name <> "" THEN Message.Info(name) ENDIF NEXT mess("Took " & (Timer() - initime) & "seconds.") This routine took 1.86 seconds for 188 files (no directories selected) in /tmp. To summarize: copy operation on 188 short files (mostly 1K): bash: 1.78 seconds; gambas: 3.13 seconds ...the gambas code has the burden of updating a user message (a label); my graphic card is a slow one remove operation on 188 files: bash: 1.42 seconds; gambas: 1.86 ...in this case, there is no burden - only the minimal necessary things are done File system type is ext2 for both / (where /tmp resides) and /usr (mounted on /). My machine is a Duron 900 with 256K ram (yes, I know, a monster machine!), running Debian stable and an ATI Radeon as video card. Now some consideration. When opening my /home/mp3 directory, which contains 702 items (songs), gambas is far faster than KDE. The routine is basically a slightly modified version of FileView - but it does nearly the same things: open dir, stat() (two times!) every file, raise event to get icon, add the filename to a ListView. My conclusion is that the interpreted bytecode is fast - at least faster than bash interpreting a "for" cycle. So the slowlyness should not belong to bytecode. When copying 188 files, the gambas code does three things: 1. Update a label to let the user know what file is under copy 2. Test for the destination existance 3. SHELL to "cp file ..." Apart from the label stuff, all the things are also done by the bash command line. But the time for gambas is double. One could assume this is because the label stuff (assuming that bytecode interpretation is faster than bash interpretation - but I think this is easily and certainly true). When deleting 188 files, gambas is marginally slower than bash. But this time there is no burden about labels; the gambas code does almost the same things bash does, but is still slower. I point my attention to the SHELL instruction, but I could be wrong. Benoit, you are right when you say "there is no reason why SHELL should be slow", but I tested my impressions with some more scientific tests. This is not a precise test, and a few assumptions are made. Assumptions can often be wrong, of course; but... impressions rarely are. The fact my machine is slow amplifies problems. Just to do some more test, I did: time cp * /tmp cp: directory `kaddressbook' omessa cp: directory `kded' omessa cp: directory `kontact' omessa cp: directory `kresources' omessa cp: directory `searchproviders' omessa cp: directory `useragentstrings' omessa real 0m0.044s user 0m0.012s sys 0m0.016s As you see, without using the "sh -c ...." time is really really faster: (1.42 secs vs 0.044). And removing files gives: time rm /tmp/* rm: impossibile rimuovere `/tmp/gambas.0': Is a directory rm: impossibile rimuovere `/tmp/kde-root': Is a directory rm: impossibile rimuovere `/tmp/ksocket-root': Is a directory rm: impossibile rimuovere `/tmp/ssh-DtpWml2479': Is a directory real 0m0.014s user 0m0.008s sys 0m0.008s Now we see where the burden is, for both bash and gambas: the EXEC (or SHELL) instruction. But gambas is slower than bash, and I think that bash should interpret its code far slowly than gambas. This is why I say that SHELL is slow in gambas. There is a lot of uncertainity though; for example, what about kernel caches? I suppose they have a timeout - who knows when they are flushed to disk? Perhaps this plays a role, perhaps not. But my impression remains... Anyway, who cares about milliseconds! I can wait 10 seconds for Konqueror to load a /home/mp3 directory. And I can wait 3 seconds for gambas to copy 188 files. This is why I decided to ignore the issue, until you asked me to explore better. Salut, (and prosit - long life to gambas!)... :-) -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From gambas at ...1... Sat Feb 7 00:14:21 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Sat, 7 Feb 2009 00:14:21 +0100 Subject: [Gambas-user] (To Benoit) - About SHELL slowlyness In-Reply-To: <498CB3D1.2000005@...1909...> References: <498CB3D1.2000005@...1909...> Message-ID: <200902070014.21623.gambas@...1...> > I tried to investigate whether is true that SHELL is slow. > > I searched for a directory having a few short file, and tried with > /usr/share/services (188 files and some directory). > > Then I typed: > time for a in *; do sh -c "cp $a /tmp"; done > cp: directory `kaddressbook' omessa <-- "omessa" = "omitted" > cp: directory `kded' omessa > cp: directory `kontact' omessa > cp: directory `kresources' omessa > cp: directory `searchproviders' omessa > cp: directory `useragentstrings' omessa > > real 0m1.784s > user 0m0.768s > sys 0m0.912s > > ------------------------- > Then I did: > time for a in /tmp/*; do sh -c "rm $a"; done > rm: impossibile rimuovere `/tmp/gambas.0': Is a directory > rm: impossibile rimuovere `/tmp/kde-root': Is a directory > rm: impossibile rimuovere `/tmp/ksocket-root': Is a directory > rm: impossibile rimuovere `/tmp/ssh-DtpWml2479': Is a directory > > real 0m1.425s > user 0m0.632s > sys 0m0.756s > ---------------------------- > > Then I tried to do the same thing inside the gambas app. The code for > the copy operation is as follows: > > initime = Timer() > FOR EACH fname IN fvMain.Selection > mess("Copying '" & fname & "'...") ' <<<--- sets a label and > issues a WAIT to update the screen > > IF Exist(fvAux.dir &/ fname) THEN > reply = Message.Question("\"" & fname & "\" already exist. > Overwrite?", "&No", "&Yes", "&Stop!") > IF reply = 1 THEN CONTINUE > IF reply = 3 THEN > status("Interrupted: only copied " & cnt & " files.") > RETURN > ENDIF > ENDIF > > SHELL "cp -r \"" & fvMain.Dir &/ fname & "\" \"" & fvAux.Dir & "\" > 2>&1" TO res > IF res <> "" THEN > reply = Message.error("Copying, shell replied: " & res, "&Stop", > "Go on") > IF reply = 1 THEN > mess("Interrupted: only copied " & cnt & " files.") > BREAK > ENDIF > ELSE > INC cnt > ENDIF > NEXT > > status("Copied " & cnt & " files. " & (Timer() - initime) & "secs.") > fvAux.Reload > > This routine took 3.133 seconds (after selecting the 188 files in > /usr/share/services and issued a copy to /tmp). > ------------------------------------------- > > Then I tried the delete operation. The code is the following one: > > initime = Timer() > FOR EACH name IN lastfv.Selection > fname = lastfv.Dir & "/" & name > IF IsDir(fname) THEN > IF askdirs THEN > reply = Message.Question("About to delete a directory. Sure to > delete " & fname & "?", "&Yes", "Yes to &All", "&No") > IF reply = 3 THEN RETURN > IF reply = 2 THEN askdirs = FALSE > ENDIF > SHELL "rm -r \"" & fname & "\" 2>&1" TO name > IF name <> "" THEN > Message.Info(name) > ELSE > dvMain.deldir(fname) > ENDIF > ELSE > SHELL "rm \"" & fname & "\" 2>&1" TO name > IF name <> "" THEN Message.Info(name) > ENDIF > NEXT > mess("Took " & (Timer() - initime) & "seconds.") > > This routine took 1.86 seconds for 188 files (no directories selected) > in /tmp. > > To summarize: > copy operation on 188 short files (mostly 1K): > bash: 1.78 seconds; gambas: 3.13 seconds > ...the gambas code has the burden of updating a user message (a > label); my graphic card is a slow one > > remove operation on 188 files: > bash: 1.42 seconds; gambas: 1.86 > ...in this case, there is no burden - only the minimal necessary > things are done > > File system type is ext2 for both / (where /tmp resides) and /usr > (mounted on /). > My machine is a Duron 900 with 256K ram (yes, I know, a monster > machine!), running Debian stable and an ATI Radeon as video card. > > Now some consideration. > When opening my /home/mp3 directory, which contains 702 items (songs), > gambas is far faster than KDE. The routine is basically a slightly > modified version of FileView - but it does nearly the same things: open > dir, stat() (two times!) every file, raise event to get icon, add the > filename to a ListView. My conclusion is that the interpreted bytecode > is fast - at least faster than bash interpreting a "for" cycle. So the > slowlyness should not belong to bytecode. > > When copying 188 files, the gambas code does three things: > 1. Update a label to let the user know what file is under copy > 2. Test for the destination existance > 3. SHELL to "cp file ..." > > Apart from the label stuff, all the things are also done by the bash > command line. But the time for gambas is double. One could assume this > is because the label stuff (assuming that bytecode interpretation is > faster than bash interpretation - but I think this is easily and > certainly true). > > When deleting 188 files, gambas is marginally slower than bash. But this > time there is no burden about labels; the gambas code does almost the > same things bash does, but is still slower. I point my attention to the > SHELL instruction, but I could be wrong. > > Benoit, you are right when you say "there is no reason why SHELL should > be slow", I didn't say that. I was talking about the EXEC instruction. The SHELL instruction runs a program inside /bin/sh, whereas EXEC runs it directly. In other words, SHELL "abcd" <=> EXEC [ "/bin/sh", "-c", "abcd" ] So it is logical that you find Gambas slower. You are actually comparing Gambas + bash with bash alone! Regards, -- Beno?t From doriano.blengino at ...1909... Sat Feb 7 12:30:07 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Sat, 07 Feb 2009 12:30:07 +0100 Subject: [Gambas-user] (To Benoit) - About SHELL slowlyness In-Reply-To: <200902070014.21623.gambas@...1...> References: <498CB3D1.2000005@...1909...> <200902070014.21623.gambas@...1...> Message-ID: <498D70BF.4010400@...1909...> Beno?t Minisini ha scritto: >> Benoit, you are right when you say "there is no reason why SHELL should >> be slow", >> > > I didn't say that. I was talking about the EXEC instruction. The SHELL > instruction runs a program inside /bin/sh, whereas EXEC runs it directly. > > In other words, > > SHELL "abcd" > > <=> EXEC [ "/bin/sh", "-c", "abcd" ] > > So it is logical that you find Gambas slower. You are actually comparing > Gambas + bash with bash alone! > And, if fact, my bash command line was exactly <...do sh -c "rm blah blah blah">. It is the same situation - gambas invokes a SHELL (which is sh -c), and bash invokes sh -c. But last night a doubt arised: is bash so smart to understand that there is no need to do a fork() followed by exec(), when after a fork() bash image is already in ram? Even if so, bash should do some kind of reinitialization on its data segment, because after a fork() its data are the same as the parent bash. Sounds like the same thing... I didn't mentioned that my gambas app also uses EXEC, to invoke external plugins. My impression is the same - EXEC seems slow (not too slow, just a little). I didn't tested that situations because it was more complicated - the SHELL case was more simple to test. But there is a difference in usage: with gambas I always redirect stdout (in both SHELL and EXEC); my tests with command line didn't redirect output. I think redirection should have little cost, but I could be wrong. The command, which uses redirection: time for a in *; do res=$(sh -c "cp $a /tmp"); done takes 1.88 seconds (1.78 with no redirection). Redirection *is* a cost; but bit too big. And bash is still quicker than gambas. Well, this email was just for completeness. Regards, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From markusmangold at ...17... Sat Feb 7 15:41:30 2009 From: markusmangold at ...17... (Markus Mangold) Date: Sat, 07 Feb 2009 15:41:30 +0100 Subject: [Gambas-user] License of Gambas Logo In-Reply-To: References: Message-ID: <20090207144130.327120@...18...> > > Thanks for replying! It is good of you to take on this much needed > project, Gambas is a wonderful programming language and the community seems to be > very nice and very professional... Make sure you put in all the main > features of what the language can do such a video, com port communication so that > newcomer to the language and Linux can get a sense of what can be done. > Also explain the different what GTk etc. are so that newcomers can understand > the Linux foundation... As I will soon be moving to Denmark (DTU) I can > certainly help with the translation. Well, it will be a booklet about Gambas not about Linux. This could be the subject of another (beginners) booklet. Depending on the success of the booklet my plans are to create a series. There are a lot of more subjects (related to Open Source): Linux, Ubuntu, The BASH, Python, Game Development with Python/Pygame, Free Pascal/Lazarus and so on. I think video and com port communication can't be the feature of a beginners booklet. One has to learn, what is a button, how does work a label, how work loops, variables and so on. Your help with the translation is very appreciated, but the booklet will not be in Dansih, but in German... But first I will finish the German version, then start translating it and maybe then you can help me. Best wishes, Markus -- Psssst! Schon vom neuen GMX MultiMessenger geh?rt? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger01 From Charles.Capaday at ...2023... Sat Feb 7 16:37:18 2009 From: Charles.Capaday at ...2023... (Charles Capaday) Date: Sat, 7 Feb 2009 10:37:18 -0500 Subject: [Gambas-user] License of Gambas Logo In-Reply-To: <20090207144130.327120@...18...> References: <20090207144130.327120@...18...> Message-ID: This a good conversation, I am only trying to help you to target novices to both Gambas and Linux, many perhaps most Gambas newcomers will not be up on Linux much. The important point is that Gambas and Linux are inextricably tied. So what I was suggesting is to in a page or two tell them what the GTK option, or the QT option are for and what 'just a graphical' project option is for (I suspect buy don't know for sure) that it is for a program that will run under all flavors of linux. My point about video, com etc was not to have a lengthy exposition of these simply you can have a section at the end on advanced features and tell the novice all the wonderful things he can do with some references to web sites/documents etc. on where to get more details. Anyway that's it... A final but unrelated point that has been at the back of my mind for some time now, is there any possibility that Gambas will eventually be a completely compiled language (like, say, Power Basic for windows)? Perhaps the developers can answer this Cheers, Dr. Charles Capaday Professor & Director Brain and Movement Lab. Dept. of Anatomy & Physiology Faculty of Medicine, Laval University http://www.brainandmovementlab.org/ Mailing address: CRULRG F-6500 Hopital Robert-Giffard 2601 de la Canardiere, Beauport, QC G1J 2G3 Canada Tel: +418-663-5747 (Sec.) +418-663-5000 ext. 6736 (Off.) +418-663-5000 ext. 6877 (Lab.) Fax: +418-663-8756 > -----Original Message----- > From: Markus Mangold [mailto:markusmangold at ...17...] > Sent: 7 f?vrier 2009 09:42 > To: gambas-user at lists.sourceforge.net > Subject: Re: [Gambas-user] License of Gambas Logo > > > > > > Thanks for replying! It is good of you to take on this much needed > > project, Gambas is a wonderful programming language and the > community > > seems to be very nice and very professional... Make sure you put in > > all the main features of what the language can do such a video, com > > port communication so that newcomer to the language and > Linux can get a sense of what can be done. > > Also explain the different what GTk etc. are so that newcomers can > > understand the Linux foundation... As I will soon be moving > to Denmark > > (DTU) I can certainly help with the translation. > > Well, it will be a booklet about Gambas not about Linux. This > could be the subject of another (beginners) booklet. > Depending on the success of the booklet my plans are to > create a series. There are a lot of more subjects (related to > Open Source): Linux, Ubuntu, The BASH, Python, Game > Development with Python/Pygame, Free Pascal/Lazarus and so on. > I think video and com port communication can't be the feature > of a beginners booklet. One has to learn, what is a button, > how does work a label, how work loops, variables and so on. > Your help with the translation is very appreciated, but the > booklet will not be in Dansih, but in German... But first I > will finish the German version, then start translating it and > maybe then you can help me. > > Best wishes, > > Markus > > -- > Psssst! Schon vom neuen GMX MultiMessenger geh?rt? Der kann`s > mit allen: http://www.gmx.net/de/go/multimessenger01 > > -------------------------------------------------------------- > ---------------- > Create and Deploy Rich Internet Apps outside the browser with > Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can > use existing skills and code to build responsive, highly > engaging applications that combine the power of local > resources and data with the reach of the web. Download the > Adobe AIR SDK and Ajax docs to start building applications > today-http://p.sf.net/sfu/adobe-com > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From sourceforge-raindog2 at ...94... Sat Feb 7 18:13:44 2009 From: sourceforge-raindog2 at ...94... (Rob) Date: Sat, 7 Feb 2009 12:13:44 -0500 Subject: [Gambas-user] License of Gambas Logo In-Reply-To: References: <20090207144130.327120@...18...> Message-ID: <200902071213.44288.sourceforge-raindog2@...94...> On Saturday 07 February 2009 10:37, Charles Capaday wrote: > A final but unrelated point that has been at the back of my mind for > some time now, is there any possibility that Gambas will eventually be a > completely compiled language (like, say, Power Basic for windows)? > Perhaps the developers can answer this While I'd love to see the Gambas interpreter and components available in a statically linked form that could be embedded with a project into a self-contained executable file (as with Tcl and Python), I really question whether the performance increase produced by native code compilation would be enough to justify dealing with all the issues it would cause. The vast majority of what Gambas does is calling external libraries which are already native code. Rob From mohareve at ...626... Sat Feb 7 18:23:29 2009 From: mohareve at ...626... (M. Cs.) Date: Sat, 7 Feb 2009 18:23:29 +0100 Subject: [Gambas-user] Dependencies Message-ID: Dear All, I have a simple question: is it possible to add some external packages to the dependency list. I mean, I'm working on a Gambas project, which would need unrar, unarj and unace packages included. So, is it possible to add these packages to the dependency list before or during the creation of a installation .rpm package? If yes, please give me a short HowTo. Thanks, Csaba From rterry at ...1946... Sun Feb 8 04:56:09 2009 From: rterry at ...1946... (richard terry) Date: Sun, 8 Feb 2009 14:56:09 +1100 Subject: [Gambas-user] How to detect Capslock Message-ID: <200902081456.09124.rterry@...1946...> I wondered how one could detect if the capslock key was on. Any help appreciated. Richard From wally at ...2037... Sun Feb 8 09:27:14 2009 From: wally at ...2037... (Wally) Date: Sun, 8 Feb 2009 09:27:14 +0100 Subject: [Gambas-user] long line folding Message-ID: <200902080927.14943.wally@...2037...> How to fold long lines of code in gambas editor ? (e.g. if i do not want to scroll horizontally) regs wally ? From linuxos at ...1896... Sun Feb 8 11:25:48 2009 From: linuxos at ...1896... (Olivier Cruilles) Date: Sun, 8 Feb 2009 11:25:48 +0100 Subject: [Gambas-user] Dependencies In-Reply-To: References: Message-ID: <41351ACE-C5A1-429E-B799-A72331CB670C@...1896...> Hello, It's not posible to define other dependency than these include by Gambas when it create the RPM package. For this reason, I need to create manually the RPM of my projects to include more dependency or scripts inside. Olivier Cruilles Mail: linuxos at ...1896... Le 7 f?vr. 09 ? 18:23, M. Cs. a ?crit : > Dear All, > I have a simple question: is it possible to add some external > packages to > the dependency list. I mean, I'm working on a Gambas project, which > would > need unrar, unarj and unace packages included. So, is it possible to > add > these packages to the dependency list before or during the creation > of a > installation .rpm package? If yes, please give me a short HowTo. > Thanks, > Csaba > ------------------------------------------------------------------------------ > Create and Deploy Rich Internet Apps outside the browser with > Adobe(R)AIR(TM) > software. With Adobe AIR, Ajax developers can use existing skills > and code to > build responsive, highly engaging applications that combine the > power of local > resources and data with the reach of the web. Download the Adobe AIR > SDK and > Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From mohareve at ...626... Sun Feb 8 16:38:10 2009 From: mohareve at ...626... (M. Cs.) Date: Sun, 8 Feb 2009 16:38:10 +0100 Subject: [Gambas-user] Dependencies In-Reply-To: <41351ACE-C5A1-429E-B799-A72331CB670C@...1896...> References: <41351ACE-C5A1-429E-B799-A72331CB670C@...1896...> Message-ID: Dear Olivier, would you be so kind to explain me how to do that manually? Let say I have my project in ~/GamCat folder. What should I do in order to get .rpm packages. Step by step please! From rospolosco at ...152... Sun Feb 8 15:43:10 2009 From: rospolosco at ...152... (Stefano Palmeri) Date: Sun, 8 Feb 2009 15:43:10 +0100 Subject: [Gambas-user] How to detect Capslock In-Reply-To: <200902081456.09124.rterry@...1946...> References: <200902081456.09124.rterry@...1946...> Message-ID: <200902081543.10786.rospolosco@...152...> Il domenica 8 febbraio 2009 04:56:09 richard terry ha scritto: > I wondered how one could detect if the capslock key was on. > > Any help appreciated. > > Richard > Try this: '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' PUBLIC SUB Main() DIM sShellOutput AS String DIM iKeyLocks AS Integer SHELL "xset q | grep 'LED mask:' | grep -o 0000000." TO sShellOutput iKeyLocks = Val(sShellOutput) SELECT iKeyLocks CASE 1 PRINT "Caps Lock is ON" CASE 2 PRINT "Num Lock is ON" CASE 3 PRINT "Caps Lock is ON" PRINT "Num Lock is ON" END SELECT END ''''''''''''''''''''''''''''''''''''''''''''''''''''''' Saluti, Stefano Palmeri > --------------------------------------------------------------------------- >--- Create and Deploy Rich Internet Apps outside the browser with > Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing > skills and code to build responsive, highly engaging applications that > combine the power of local resources and data with the reach of the web. > Download the Adobe AIR SDK and Ajax docs to start building applications > today-http://p.sf.net/sfu/adobe-com > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From ronstk at ...239... Mon Feb 9 02:35:25 2009 From: ronstk at ...239... (Ron_1st) Date: Mon, 9 Feb 2009 02:35:25 +0100 Subject: [Gambas-user] How to detect Capslock In-Reply-To: <200902081456.09124.rterry@...1946...> References: <200902081456.09124.rterry@...1946...> Message-ID: <200902090235.25449.ronstk@...239...> On Sunday 08 February 2009, richard terry wrote: > I wondered how one could detect if the capslock key was on. > > Any help appreciated. > > Richard > > ------------------------------------------------------------------------------ > Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) > software. With Adobe AIR, Ajax developers can use existing skills and code to > build responsive, highly engaging applications that combine the power of local > resources and data with the reach of the web. Download the Adobe AIR SDK and > Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > http://gambasdoc.org/help/comp/gb.qt/key?view Best regards, Ron_1st -- A: Delete the text you reply on. Q: What to do to get my post on top? --- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? --- A: Top-posting. Q: What is the most annoying thing in e-mail? From eilert-sprachen at ...221... Mon Feb 9 11:10:10 2009 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Mon, 09 Feb 2009 11:10:10 +0100 Subject: [Gambas-user] Command line Gambas with Timer? Message-ID: <49900102.10102@...221...> Hi folks, is it possible to make a Gambas command line program and use a Timer? In a command line program, you have a SUB Main(). But DIM myClock AS NEW Timer would have to be done outside this SUB Main(), right? Defining it within SUB Main is accepted but doesn't have any effect, of course. Does Gambas jump from SUB Main() into other SUBs anyway? Regards Rolf From eilert-sprachen at ...221... Mon Feb 9 12:02:23 2009 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Mon, 09 Feb 2009 12:02:23 +0100 Subject: [Gambas-user] Command line Gambas with Timer? In-Reply-To: <200902091158.50590.rospolosco@...152...> References: <49900102.10102@...221...> <200902091158.50590.rospolosco@...152...> Message-ID: <49900D3F.7010208@...221...> Stefano Palmeri schrieb: > Il luned? 9 febbraio 2009 11:10:10 Rolf-Werner Eilert ha scritto: >> Hi folks, >> >> is it possible to make a Gambas command line program and use a Timer? >> >> In a command line program, you have a SUB Main(). But >> >> DIM myClock AS NEW Timer >> >> would have to be done outside this SUB Main(), right? Defining it within >> SUB Main is accepted but doesn't have any effect, of course. >> >> >> Does Gambas jump from SUB Main() into other SUBs anyway? >> >> Regards >> >> Rolf >> >> --------------------------------------------------------------------------- >> --- Create and Deploy Rich Internet Apps outside the browser with >> Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing >> skills and code to build responsive, highly engaging applications that >> combine the power of local resources and data with the reach of the web. >> Download the Adobe AIR SDK and Ajax docs to start building applications >> today-http://p.sf.net/sfu/adobe-com >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > Hi, here's an example: > > ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' > PUBLIC hConsoleTimer AS Timer > > PUBLIC SUB Main() > > hConsoleTimer = NEW Timer AS "MyTimer" > hConsoleTimer.Delay = 1000 > hConsoleTimer.Enabled = TRUE > > END > > PUBLIC SUB MyTimer_Timer() > > PRINT "Hello Gambas" > > END > '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' > > Saluti, > > Stefano > Aaah - ok :-) Thank you so much, now I got it! Regards Rolf From rospolosco at ...152... Mon Feb 9 11:58:50 2009 From: rospolosco at ...152... (Stefano Palmeri) Date: Mon, 9 Feb 2009 11:58:50 +0100 Subject: [Gambas-user] Command line Gambas with Timer? In-Reply-To: <49900102.10102@...221...> References: <49900102.10102@...221...> Message-ID: <200902091158.50590.rospolosco@...152...> Il luned? 9 febbraio 2009 11:10:10 Rolf-Werner Eilert ha scritto: > Hi folks, > > is it possible to make a Gambas command line program and use a Timer? > > In a command line program, you have a SUB Main(). But > > DIM myClock AS NEW Timer > > would have to be done outside this SUB Main(), right? Defining it within > SUB Main is accepted but doesn't have any effect, of course. > > > Does Gambas jump from SUB Main() into other SUBs anyway? > > Regards > > Rolf > > --------------------------------------------------------------------------- >--- Create and Deploy Rich Internet Apps outside the browser with > Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing > skills and code to build responsive, highly engaging applications that > combine the power of local resources and data with the reach of the web. > Download the Adobe AIR SDK and Ajax docs to start building applications > today-http://p.sf.net/sfu/adobe-com > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user Hi, here's an example: ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' PUBLIC hConsoleTimer AS Timer PUBLIC SUB Main() hConsoleTimer = NEW Timer AS "MyTimer" hConsoleTimer.Delay = 1000 hConsoleTimer.Enabled = TRUE END PUBLIC SUB MyTimer_Timer() PRINT "Hello Gambas" END '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' Saluti, Stefano From joshiggins at ...1601... Mon Feb 9 19:09:40 2009 From: joshiggins at ...1601... (Joshua Higgins) Date: Mon, 9 Feb 2009 18:09:40 +0000 Subject: [Gambas-user] columnview count how many are selected Message-ID: <4247f5440902091009r23001067o2a246a33a93ccbbf@...627...> Hello, I'm using a columnview with the property Mode set to Multiple. What code do I need to let me count how many are currently selected. I tried ColumnView1.Current.Count but that always prints 0. Thanks. -- joshua higgins >>>>>>------ From jscops at ...11... Mon Feb 9 19:25:49 2009 From: jscops at ...11... (Jack) Date: Mon, 9 Feb 2009 19:25:49 +0100 Subject: [Gambas-user] columnview count how many are selected In-Reply-To: <4247f5440902091009r23001067o2a246a33a93ccbbf@...627...> References: <4247f5440902091009r23001067o2a246a33a93ccbbf@...627...> Message-ID: <200902091925.50460.jscops@...11...> Le lundi 09 f?vrier 2009 19:09:40 Joshua Higgins, vous avez ?crit : > Hello, > > I'm using a columnview with the property Mode set to Multiple. What code do > I need to let me count how many are currently selected. I tried > > ColumnView1.Current.Count but that always prints 0. try this Joshua nbc as integer = 0 'number count public sub numberCount() Columnview1.movefirst() repeat if columnview1.selected then inc nbc until columnview1.movenext() end Regards. Jacky From joshiggins at ...1601... Mon Feb 9 19:57:59 2009 From: joshiggins at ...1601... (Joshua Higgins) Date: Mon, 9 Feb 2009 18:57:59 +0000 Subject: [Gambas-user] columnview count how many are selected In-Reply-To: <200902091925.50460.jscops@...11...> References: <4247f5440902091009r23001067o2a246a33a93ccbbf@...627...> <200902091925.50460.jscops@...11...> Message-ID: <4247f5440902091057i32fe4b93u16e85bdf7bbad6cf@...627...> That didn't work I'm afraid. :( Trying exactly as you wrote ended up with the error "unknown symbol "Selected" in class "ColumnView". I changed it to this: nbc as integer = 0 public sub numberCount() Columnview1.movefirst() repeat if columnview1.current.selected then inc nbc until columnview1.movenext() end but that just makes the program hang when I call numberCount(). I'm surprised there isn't a built in function for this, or have I just not heard of it? Thanks. 2009/2/9 Jack > Le lundi 09 f?vrier 2009 19:09:40 Joshua Higgins, vous avez ?crit : > > Hello, > > > > I'm using a columnview with the property Mode set to Multiple. What code > do > > I need to let me count how many are currently selected. I tried > > > > ColumnView1.Current.Count but that always prints 0. > > try this Joshua > > nbc as integer = 0 'number count > > public sub numberCount() > Columnview1.movefirst() > repeat > if columnview1.selected then inc nbc > until columnview1.movenext() > end > > Regards. > > Jacky > > > > > ------------------------------------------------------------------------------ > Create and Deploy Rich Internet Apps outside the browser with > Adobe(R)AIR(TM) > software. With Adobe AIR, Ajax developers can use existing skills and code > to > build responsive, highly engaging applications that combine the power of > local > resources and data with the reach of the web. Download the Adobe AIR SDK > and > Ajax docs to start building applications today- > http://p.sf.net/sfu/adobe-com > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- joshua higgins >>>>>>------ From joshiggins at ...1601... Mon Feb 9 20:01:01 2009 From: joshiggins at ...1601... (Joshua Higgins) Date: Mon, 9 Feb 2009 19:01:01 +0000 Subject: [Gambas-user] columnview count how many are selected In-Reply-To: <4247f5440902091057i32fe4b93u16e85bdf7bbad6cf@...627...> References: <4247f5440902091009r23001067o2a246a33a93ccbbf@...627...> <200902091925.50460.jscops@...11...> <4247f5440902091057i32fe4b93u16e85bdf7bbad6cf@...627...> Message-ID: <4247f5440902091101q15da9c91o89d965e4e383f1db@...627...> *** Correction i changed this line: if columnview1.selected then inc nbc to this if columnview1.current.selected = TRUE then inc nbc I put a breakpoint in, and if you select more than 1 item in the columnview and run call numeberCount(), it ends up in a infinite loop. 2009/2/9 Joshua Higgins > That didn't work I'm afraid. :( > > Trying exactly as you wrote ended up with the error "unknown symbol > "Selected" in class "ColumnView". I changed it to this: > > nbc as integer = 0 > > public sub numberCount() > Columnview1.movefirst() > repeat > if columnview1.current.selected then inc nbc > until columnview1.movenext() > end > > but that just makes the program hang when I call numberCount(). I'm > surprised there isn't a built in function for this, or have I just not heard > of it? > > Thanks. > > 2009/2/9 Jack > > Le lundi 09 f?vrier 2009 19:09:40 Joshua Higgins, vous avez ?crit : >> > Hello, >> > >> > I'm using a columnview with the property Mode set to Multiple. What code >> do >> > I need to let me count how many are currently selected. I tried >> > >> > ColumnView1.Current.Count but that always prints 0. >> >> try this Joshua >> >> nbc as integer = 0 'number count >> >> public sub numberCount() >> Columnview1.movefirst() >> repeat >> if columnview1.selected then inc nbc >> until columnview1.movenext() >> end >> >> Regards. >> >> Jacky >> >> >> >> >> ------------------------------------------------------------------------------ >> Create and Deploy Rich Internet Apps outside the browser with >> Adobe(R)AIR(TM) >> software. With Adobe AIR, Ajax developers can use existing skills and code >> to >> build responsive, highly engaging applications that combine the power of >> local >> resources and data with the reach of the web. Download the Adobe AIR SDK >> and >> Ajax docs to start building applications today- >> http://p.sf.net/sfu/adobe-com >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > > -- > joshua higgins > >>>>>>------ > -- joshua higgins >>>>>>------ From joshiggins at ...1601... Mon Feb 9 20:44:45 2009 From: joshiggins at ...1601... (Joshua Higgins) Date: Mon, 9 Feb 2009 19:44:45 +0000 Subject: [Gambas-user] is it possible? make gambas project a library Message-ID: <4247f5440902091144g5d82311bn28093a368e1fc476@...627...> Hello again, Over on the edubuntu-devel mailing list, I've been discussing a possible Gambas solution to storing and sharing data across a network (using UDP) for a range of applications, specifically TuxMath. I have an implementation of this working on my system, but for a different set of applications also written in Gambas. What I'm wondering is this: is it possible to create a gambas project into a library suitable for use in other programming languages? So for example my gambas UDP routines can be used from another program language? Thanks. -- joshua higgins >>>>>>------ From sourceforge-raindog2 at ...94... Mon Feb 9 21:02:35 2009 From: sourceforge-raindog2 at ...94... (Rob) Date: Mon, 9 Feb 2009 15:02:35 -0500 Subject: [Gambas-user] is it possible? make gambas project a library In-Reply-To: <4247f5440902091144g5d82311bn28093a368e1fc476@...627...> References: <4247f5440902091144g5d82311bn28093a368e1fc476@...627...> Message-ID: <200902091502.35732.sourceforge-raindog2@...94...> On Monday 09 February 2009 14:44, Joshua Higgins wrote: > What I'm wondering is this: is it possible to create a gambas project > into a library suitable for use in other programming languages? So for > example my gambas UDP routines can be used from another program > language? You would have to build a shared object version of the Gambas interpreter and come up with an API to allow access to the classes and other symbols in Gambas projects through the library interface. It wouldn't be easy, especially if your name is not Benoit, but it would also be a first step towards the creation of Gambas-based plugins for other programs (e.g. Firefox or various audio programs), Gambas applets for environments that require .so files (like the KDE panel), or even standalone Gambas executables. Rob From jscops at ...11... Mon Feb 9 21:04:03 2009 From: jscops at ...11... (Jack) Date: Mon, 9 Feb 2009 21:04:03 +0100 Subject: [Gambas-user] columnview count how many are selected In-Reply-To: <4247f5440902091101q15da9c91o89d965e4e383f1db@...627...> References: <4247f5440902091009r23001067o2a246a33a93ccbbf@...627...> <4247f5440902091057i32fe4b93u16e85bdf7bbad6cf@...627...> <4247f5440902091101q15da9c91o89d965e4e383f1db@...627...> Message-ID: <200902092104.04944.jscops@...11...> Le lundi 09 f?vrier 2009 20:01:01 Joshua Higgins, vous avez ?crit : > *** Correction > i changed this line: > if columnview1.selected then inc nbc > to this > if columnview1.current.selected = TRUE then inc nbc Excuse my mistake Joshua, you must use columnview1.item.selected but not columnview1.current.selected nbc as integer = 0 public sub numberCount() Columnview1.movefirst() repeat if columnview1.Item.selected then inc nbc until columnview1.movenext() end Jacky From joshiggins at ...1601... Mon Feb 9 22:52:54 2009 From: joshiggins at ...1601... (Joshua Higgins) Date: Mon, 9 Feb 2009 21:52:54 +0000 Subject: [Gambas-user] columnview count how many are selected In-Reply-To: <200902092104.04944.jscops@...11...> References: <4247f5440902091009r23001067o2a246a33a93ccbbf@...627...> <4247f5440902091057i32fe4b93u16e85bdf7bbad6cf@...627...> <4247f5440902091101q15da9c91o89d965e4e383f1db@...627...> <200902092104.04944.jscops@...11...> Message-ID: <4247f5440902091352n7411da2chdde2a2f4272ab480@...627...> > Excuse my mistake Joshua Not a problem. Thanks for your help, it is working now! :-) From markusmangold at ...17... Tue Feb 10 19:58:20 2009 From: markusmangold at ...17... (Markus Mangold) Date: Tue, 10 Feb 2009 19:58:20 +0100 Subject: [Gambas-user] Gambas3 and QT4 Message-ID: <20090210185820.309970@...18...> Hi, I just wanted to know if the Gambas3 IDE will be migrated to QT4? If you are using KDE4 and Gambas2 the IDE looks not very integrated into the Desktop ... and maybe the QT3 devel libraries will eventually vanish from the repositories. -- Jetzt 1 Monat kostenlos! GMX FreeDSL - Telefonanschluss + DSL f?r nur 17,95 Euro/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K11308T4569a From gambas at ...1... Wed Feb 11 00:23:14 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Wed, 11 Feb 2009 00:23:14 +0100 Subject: [Gambas-user] Gambas3 and QT4 In-Reply-To: <20090210185820.309970@...18...> References: <20090210185820.309970@...18...> Message-ID: <200902110023.14388.gambas@...1...> > Hi, > > I just wanted to know if the Gambas3 IDE will be migrated to QT4? If you > are using KDE4 and Gambas2 the IDE looks not very integrated into the > Desktop ... and maybe the QT3 devel libraries will eventually vanish from > the repositories. This is planned, but there are some bugs in gb.qt4 at the moment. For example, some Gambas containers are far slower in gb.qt4 than in gb.qt, making the IDE hard to use. I did some investigation, but didn't find why this slowness yet. When all the problems are solved, the IDE will use QT4. Regards, -- Beno?t From eilert-sprachen at ...221... Wed Feb 11 11:32:44 2009 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Wed, 11 Feb 2009 11:32:44 +0100 Subject: [Gambas-user] compile error with Gambas3svn Message-ID: <4992A94C.8030105@...221...> Just for fun I tried the latest snapshot. It stops with a gcc error "cannot find -lqt-mt". Maybe this helps somehow :-) (My system is a Suse 10.3) Rolf From gambas at ...1... Thu Feb 12 00:07:27 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Thu, 12 Feb 2009 00:07:27 +0100 Subject: [Gambas-user] Bug gb.gtk Dataview 2.11.1 In-Reply-To: <51156ac70902041116h1380923bkc3f25cda2c555745@...627...> References: <51156ac70902041116h1380923bkc3f25cda2c555745@...627...> Message-ID: <200902120007.27679.gambas@...1...> > I just compiled Gambas 2.11.1 under Puppy Linux 4.1.2, kernel 2.6.25.16, > gtk2. I am running and studying the examples. All run very well. I am > mostly interested in database programming and I ran the Database example > inside the IDE without problems, but outside the IDE (directly in the > command line) the example fails with the following trace: > > DataView.MoveFirst.272: Bad row index > 0: DataView.MoveFirst.272 > 1: FBrowser.btnFirst_Click.39 > 2: FBrowser.Update.98 > 3: FBrowser._new.19 > 4: DataBrowser._new.19 > 5: FTest.$load.82 > 6: FTest.FTest.0 > 7: FMain.btnTest_Click.178 > > In both runs (inside and outside the IDE) I use the sqlite3 driver and > generate sample data with the button for that. When I click the "Bound > controls example" button, the above trace is displayed on the command line > and an error window is shown saying mostly the same (Bad row index). > I posted this to the mailing list but I should have done it wrong because > it did not show up there. > Now I notice that the project uses gb.gui and as I understand this is > mapped inside the IDE to gb.qt but outside is mapped to either gt.qt or > gb.gtk as available. I compiled the example to executable with gb.qt and > another run with gb.gtk. It fails to run with gb.gtk and it runs ok with > gb.qt. > > > -- > Ing. Otto Dom?nguez > Sistemas Ori?n > Cel. 5403-0338 > Hi, This bug is fixed in revision #1865. Regards, -- Beno?t From gambas at ...1... Thu Feb 12 00:10:59 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Thu, 12 Feb 2009 00:10:59 +0100 Subject: [Gambas-user] long line folding In-Reply-To: <200902080927.14943.wally@...2037...> References: <200902080927.14943.wally@...2037...> Message-ID: <200902120010.59718.gambas@...1...> > How to fold long lines of code in gambas editor ? > (e.g. if i do not want to scroll horizontally) > > regs wally > ? You can't, but you can write an expression on multiple lines, provided that a line ends with an operator. For example, you can write: MyString = "Gambas" & "Almost" & "Means" & "Basic" Regards, -- Beno?t From gambas at ...1... Thu Feb 12 00:25:36 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Thu, 12 Feb 2009 00:25:36 +0100 Subject: [Gambas-user] possible gambas or gtk bug - changing tabstrip font size has no effect In-Reply-To: <4247f5440902051420q54777c0cp6c99a8d70034fa6d@...627...> References: <4247f5440902051420q54777c0cp6c99a8d70034fa6d@...627...> Message-ID: <200902120025.36862.gambas@...1...> > Hi, > > I'm optimizing my program for a 800x600 touch screen (11") so I'm making > all the font sizes and controls bigger. I've a feeling this is GTK related > but I'd thought I'd mention it anyway. > > Changing the tabstrip font size looks fine in the IDE and when using the QT > toolkit, but doesn't work when using GTK. > > I have attached a screenshot to illustrate what I mean. Hi, The bug is fixed in revision #1866. Regards, -- Beno?t From charles at ...1784... Thu Feb 12 07:56:25 2009 From: charles at ...1784... (charlesg) Date: Wed, 11 Feb 2009 22:56:25 -0800 (PST) Subject: [Gambas-user] Bug gb.gtk Dataview 2.11.1 In-Reply-To: <200902120007.27679.gambas@...1...> References: <200902120007.27679.gambas@...1...> Message-ID: <21970840.post@...1379...> Ing. Otto Dom?nguez Wow! Please, please would you give the forum a page on how to compile Gambas on Puppy? At least one of us is not bright enough to do it for ourselves! I am sure the Puppy forum would appreciate the same. rgds -- View this message in context: http://www.nabble.com/Re%3A-Bug-gb.gtk-Dataview-2.11.1-tp21966534p21970840.html Sent from the gambas-user mailing list archive at Nabble.com. From wdahn at ...1000... Thu Feb 12 08:11:55 2009 From: wdahn at ...1000... (Werner) Date: Thu, 12 Feb 2009 15:11:55 +0800 Subject: [Gambas-user] Bug gb.gtk Dataview 2.11.1 In-Reply-To: <21970840.post@...1379...> References: <200902120007.27679.gambas@...1...> <21970840.post@...1379...> Message-ID: <4993CBBB.8010404@...1000...> charlesg wrote: > Ing. Otto Dom?nguez > > Wow! Please, please would you give the forum a page on how to compile Gambas > on Puppy? > > At least one of us is not bright enough to do it for ourselves! I am sure > the Puppy forum would appreciate the same. > > rgds > > I had been looking for exactly that last year. There was only a very old 1.x version. From eilert-sprachen at ...221... Thu Feb 12 08:27:18 2009 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Thu, 12 Feb 2009 08:27:18 +0100 Subject: [Gambas-user] Locking files - best method Message-ID: <4993CF56.80206@...221...> Good morning, folks :-) Once upon a time, maybe some weeks or even months ago, we had a discussion about how to lock a file for other users while it is written. My usual way was (and still is) using a xxx.lock file for indication. Someone on the list pointed me to the danger of overlapping file-creation and directory-reading so that in rare cases there would be no locking effect. He used locking by creating a lock-directory. After some 6 months in use, I have to admit that he was right. Every 6 or 8 weeks or so, there is a collision with my system. I can't find these posts in the archives anymore, so please could you (whoever it was :-) ) give me your idea of locking by directory again? Thanks a lot in advance! Rolf From rospolosco at ...152... Thu Feb 12 16:45:15 2009 From: rospolosco at ...152... (Stefano Palmeri) Date: Thu, 12 Feb 2009 16:45:15 +0100 Subject: [Gambas-user] Locking files - best method In-Reply-To: <4993CF56.80206@...221...> References: <4993CF56.80206@...221...> Message-ID: <200902121645.16055.rospolosco@...152...> Il gioved? 12 febbraio 2009 08:27:18 Rolf-Werner Eilert ha scritto: > Good morning, folks :-) > > Once upon a time, maybe some weeks or even months ago, we had a > discussion about how to lock a file for other users while it is written. > > My usual way was (and still is) using a xxx.lock file for indication. > > Someone on the list pointed me to the danger of overlapping > file-creation and directory-reading so that in rare cases there would be > no locking effect. He used locking by creating a lock-directory. After > some 6 months in use, I have to admit that he was right. Every 6 or 8 > weeks or so, there is a collision with my system. > > I can't find these posts in the archives anymore, so please could you > (whoever it was :-) ) give me your idea of locking by directory again? > > Thanks a lot in advance! > > Rolf > > --------------------------------------------------------------------------- >--- Create and Deploy Rich Internet Apps outside the browser with > Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing > skills and code to build responsive, highly engaging applications that > combine the power of local resources and data with the reach of the web. > Download the Adobe AIR SDK and Ajax docs to start building applications > today-http://p.sf.net/sfu/adobe-com > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user That discussion is here, more or less: http://www.nabble.com/commandline-output-redirect--to17365169.html#a19696934 Saluti, Stefano From eilert-sprachen at ...221... Thu Feb 12 17:18:36 2009 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Thu, 12 Feb 2009 17:18:36 +0100 Subject: [Gambas-user] Locking files - best method In-Reply-To: <200902121645.16055.rospolosco@...152...> References: <4993CF56.80206@...221...> <200902121645.16055.rospolosco@...152...> Message-ID: <49944BDC.1000105@...221...> Stefano Palmeri schrieb: > Il gioved? 12 febbraio 2009 08:27:18 Rolf-Werner Eilert ha scritto: >> Good morning, folks :-) >> >> Once upon a time, maybe some weeks or even months ago, we had a >> discussion about how to lock a file for other users while it is written. >> >> My usual way was (and still is) using a xxx.lock file for indication. >> >> Someone on the list pointed me to the danger of overlapping >> file-creation and directory-reading so that in rare cases there would be >> no locking effect. He used locking by creating a lock-directory. After >> some 6 months in use, I have to admit that he was right. Every 6 or 8 >> weeks or so, there is a collision with my system. >> >> I can't find these posts in the archives anymore, so please could you >> (whoever it was :-) ) give me your idea of locking by directory again? >> >> Thanks a lot in advance! >> >> Rolf >> >> --------------------------------------------------------------------------- >> --- Create and Deploy Rich Internet Apps outside the browser with >> Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing >> skills and code to build responsive, highly engaging applications that >> combine the power of local resources and data with the reach of the web. >> Download the Adobe AIR SDK and Ajax docs to start building applications >> today-http://p.sf.net/sfu/adobe-com >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > That discussion is here, more or less: > > http://www.nabble.com/commandline-output-redirect--to17365169.html#a19696934 > > Saluti, > > Stefano > Yeees - that was it :-) Thank you! Regards Rolf From nando_f at ...951... Fri Feb 13 13:21:29 2009 From: nando_f at ...951... (nando) Date: Fri, 13 Feb 2009 07:21:29 -0500 Subject: [Gambas-user] Locking files - best method In-Reply-To: <49944BDC.1000105@...221...> References: <4993CF56.80206@...221...> <200902121645.16055.rospolosco@...152...> <49944BDC.1000105@...221...> Message-ID: <20090213121552.M87485@...951...> Sharing a file exclusively locked very briefly and getting everything to work correctly amongst multiple programs can be brain-twisting. With increasing use of mulit-cores, the possibility for sharing files using any lock technique is more important than ever before because all associated programs can execute simultaneously. ---------- Original Message ----------- From: Rolf-Werner Eilert To: mailing list for gambas users Sent: Thu, 12 Feb 2009 17:18:36 +0100 Subject: Re: [Gambas-user] Locking files - best method > Stefano Palmeri schrieb: > > Il gioved? 12 febbraio 2009 08:27:18 Rolf-Werner Eilert ha scritto: > >> Good morning, folks :-) > >> > >> Once upon a time, maybe some weeks or even months ago, we had a > >> discussion about how to lock a file for other users while it is written. > >> > >> My usual way was (and still is) using a xxx.lock file for indication. > >> > >> Someone on the list pointed me to the danger of overlapping > >> file-creation and directory-reading so that in rare cases there would be > >> no locking effect. He used locking by creating a lock-directory. After > >> some 6 months in use, I have to admit that he was right. Every 6 or 8 > >> weeks or so, there is a collision with my system. > >> > >> I can't find these posts in the archives anymore, so please could you > >> (whoever it was :-) ) give me your idea of locking by directory again? > >> > >> Thanks a lot in advance! > >> > >> Rolf > >> > >> --------------------------------------------------------------------------- > >> --- Create and Deploy Rich Internet Apps outside the browser with > >> Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing > >> skills and code to build responsive, highly engaging applications that > >> combine the power of local resources and data with the reach of the web. > >> Download the Adobe AIR SDK and Ajax docs to start building applications > >> today-http://p.sf.net/sfu/adobe-com > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > That discussion is here, more or less: > > > > http://www.nabble.com/commandline-output-redirect--to17365169.html#a19696934 > > > > Saluti, > > > > Stefano > > > > Yeees - that was it :-) Thank you! > > Regards > > Rolf > > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From gambas at ...1... Sat Feb 14 13:10:45 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Sat, 14 Feb 2009 13:10:45 +0100 Subject: [Gambas-user] Locking files - best method In-Reply-To: <20090213121552.M87485@...951...> References: <4993CF56.80206@...221...> <49944BDC.1000105@...221...> <20090213121552.M87485@...951...> Message-ID: <200902141310.45405.gambas@...1...> > Sharing a file exclusively locked very briefly and getting everything > to work correctly amongst multiple programs can be brain-twisting. > With increasing use of mulit-cores, the possibility for sharing files > using any lock technique is more important than ever before > because all associated programs can execute simultaneously. > You can use the LOCK/UNLOCK commands and a specific void file on the disk to create system exclusive sections in your code. Let's suppose you want to modify a file named "/tmp/foo". ... DIM hLock AS Stream DIM hFile AS Stream ' Try to acquire the lock TRY hLock = LOCK "/tmp/foo.lock" IF ERROR THEN PRINT "'foo' is being modified. Try again later." RETURN ENDIF ' Lock was acquired, you can modify the file now! hFile = OPEN "/tmp/foo" FOR OUTPUT ... CLOSE #hFile ' Do not forget to release the lock UNLOCK hLock ... -- Beno?t From eilert-sprachen at ...221... Sat Feb 14 18:23:49 2009 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Sat, 14 Feb 2009 18:23:49 +0100 Subject: [Gambas-user] Locking files - best method In-Reply-To: <200902141310.45405.gambas@...1...> References: <4993CF56.80206@...221...> <49944BDC.1000105@...221...> <20090213121552.M87485@...951...> <200902141310.45405.gambas@...1...> Message-ID: <4996FE25.9080607@...221...> Beno?t Minisini schrieb: >> Sharing a file exclusively locked very briefly and getting everything >> to work correctly amongst multiple programs can be brain-twisting. >> With increasing use of mulit-cores, the possibility for sharing files >> using any lock technique is more important than ever before >> because all associated programs can execute simultaneously. >> > > You can use the LOCK/UNLOCK commands and a specific void file on the disk to > create system exclusive sections in your code. > > Let's suppose you want to modify a file named "/tmp/foo". > > ... > DIM hLock AS Stream > DIM hFile AS Stream > > ' Try to acquire the lock > TRY hLock = LOCK "/tmp/foo.lock" > IF ERROR THEN > PRINT "'foo' is being modified. Try again later." > RETURN > ENDIF > > ' Lock was acquired, you can modify the file now! > hFile = OPEN "/tmp/foo" FOR OUTPUT > ... > CLOSE #hFile > > ' Do not forget to release the lock > UNLOCK hLock > ... > Just one question: Why do you use AS Stream and not AS File? Rolf From gambas at ...1... Sat Feb 14 18:34:55 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Sat, 14 Feb 2009 18:34:55 +0100 Subject: [Gambas-user] Locking files - best method In-Reply-To: <4996FE25.9080607@...221...> References: <4993CF56.80206@...221...> <200902141310.45405.gambas@...1...> <4996FE25.9080607@...221...> Message-ID: <200902141834.55429.gambas@...1...> > Beno?t Minisini schrieb: > >> Sharing a file exclusively locked very briefly and getting everything > >> to work correctly amongst multiple programs can be brain-twisting. > >> With increasing use of mulit-cores, the possibility for sharing files > >> using any lock technique is more important than ever before > >> because all associated programs can execute simultaneously. > > > > You can use the LOCK/UNLOCK commands and a specific void file on the disk > > to create system exclusive sections in your code. > > > > Let's suppose you want to modify a file named "/tmp/foo". > > > > ... > > DIM hLock AS Stream > > DIM hFile AS Stream > > > > ' Try to acquire the lock > > TRY hLock = LOCK "/tmp/foo.lock" > > IF ERROR THEN > > PRINT "'foo' is being modified. Try again later." > > RETURN > > ENDIF > > > > ' Lock was acquired, you can modify the file now! > > hFile = OPEN "/tmp/foo" FOR OUTPUT > > ... > > CLOSE #hFile > > > > ' Do not forget to release the lock > > UNLOCK hLock > > ... > > Just one question: > > Why do you use AS Stream and not AS File? > > Rolf > > It is a mistake. You can use Stream for the lock, as you just use hLock with LOCK and UNLOCK. But hFile should be a File. Regards, -- Beno?t From eilert-sprachen at ...221... Sat Feb 14 18:41:51 2009 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Sat, 14 Feb 2009 18:41:51 +0100 Subject: [Gambas-user] Locking files - best method In-Reply-To: <200902141834.55429.gambas@...1...> References: <4993CF56.80206@...221...> <200902141310.45405.gambas@...1...> <4996FE25.9080607@...221...> <200902141834.55429.gambas@...1...> Message-ID: <4997025F.4000908@...221...> Beno?t Minisini schrieb: >> Beno?t Minisini schrieb: >>>> Sharing a file exclusively locked very briefly and getting everything >>>> to work correctly amongst multiple programs can be brain-twisting. >>>> With increasing use of mulit-cores, the possibility for sharing files >>>> using any lock technique is more important than ever before >>>> because all associated programs can execute simultaneously. >>> You can use the LOCK/UNLOCK commands and a specific void file on the disk >>> to create system exclusive sections in your code. >>> >>> Let's suppose you want to modify a file named "/tmp/foo". >>> >>> ... >>> DIM hLock AS Stream >>> DIM hFile AS Stream >>> >>> ' Try to acquire the lock >>> TRY hLock = LOCK "/tmp/foo.lock" >>> IF ERROR THEN >>> PRINT "'foo' is being modified. Try again later." >>> RETURN >>> ENDIF >>> >>> ' Lock was acquired, you can modify the file now! >>> hFile = OPEN "/tmp/foo" FOR OUTPUT >>> ... >>> CLOSE #hFile >>> >>> ' Do not forget to release the lock >>> UNLOCK hLock >>> ... >> Just one question: >> >> Why do you use AS Stream and not AS File? >> >> Rolf >> >> > > It is a mistake. You can use Stream for the lock, as you just use hLock with > LOCK and UNLOCK. But hFile should be a File. > > Regards, > > Ok, that's fine :-) I thought there was another thing I hadn't understood yet... Have a nice Sunday! Rolf From bug.me at ...734... Sat Feb 14 21:05:49 2009 From: bug.me at ...734... (Randy) Date: Sat, 14 Feb 2009 15:05:49 -0500 Subject: [Gambas-user] Gambas & PostgreSQL cannot create index. relation XXX does not exist. In-Reply-To: <200901250019.16944.ronstk@...239...> References: <49788A3B.7090704@...734...> <200901241932.46428.ronstk@...239...> <497B9C97.5030900@...734...> <200901250019.16944.ronstk@...239...> Message-ID: <4997241D.2090209@...734...> > Just the last line tells me it wants a table to add the index. > > >From the past with msaccess and mysql i had a problem too > The solution was write the table first and change the field type. > > For the last line I would say it try to create the index "glcoa_sort" ON glcoa > and that the table glcoa does not exist. > > > suggest: > a) > > .Fields.Add("status", gb.String, 1) > .PrimaryKey = ["account"] > .Update '<-- this should write the table before tha add indexes > .Indexes.Add("glcoa_account", "account", TRUE) > .Indexes.Add("glcoa_sort", "glsort", TRUE) > .Update > END WITH > > or > b) > > .Fields.Add("status", gb.String, 1) > .PrimaryKey = ["account"] > .Update > END WITH > > ' here the table must have been written by the .update and the END WIDTH > > ' maybe you must reopen the table again here > > WITH hTable > .Indexes.Add("glcoa_account", "account", TRUE) > .Indexes.Add("glcoa_sort", "glsort", TRUE) > .Update '<-- this should write the table before tha add indes > END WITH > > > It looks stupid but it is the best idea I have ATM. > > > > > Best regards, > > Ron_1st > > I made the change to source and update before and after index. Now I get error 'No field". I checked database and the table and index is created, but what is the error for? What is the number "23" before the "No field" error in the debug output? Debug output is: postgresql: 0x815a3b0: select substring(version(),12,5) postgresql: 0x815a3b0: show client_encoding postgresql: 0x815a3b0: select relname from pg_class where (relkind = 'r' or relkind = 'v') and (relname = 'glcoa') and (relnamespace not in (select oid from pg_namespace where nspname = 'information_schema')) postgresql: 0x815a3b0: CREATE TABLE "glcoa" ( "company" VARCHAR(3), "account" VARCHAR(12) NOT NULL , "description" VARCHAR(32), "gltype" VARCHAR(1), "glsort" INT, "status" VARCHAR(1), PRIMARY KEY (account) ) NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "glcoa_pkey" for table "glcoa" postgresql: 0x815a3b0: select pg_class.relname from pg_class, pg_index, pg_class pg_class2 where pg_class2.relname = 'glcoa' and (pg_class2.relnamespace not in (select oid from pg_namespace where nspname = 'information_schema')) and pg_index.indrelid = pg_ class2.oid and pg_index.indexrelid = pg_class.oid and pg_class.relname = 'glcoa_sort' postgresql: 0x815a3b0: CREATE UNIQUE INDEX "glcoa_sort" ON glcoa ( glsort ) GLTables.CreateGLTables.23: No field Updated source code with two updates. STATIC PUBLIC FUNCTION CreateGLTables() DIM hTable AS Table hTable = Global.$hConn.Tables.Add("glcoa") WITH hTable .Fields.Add("company", db.String, 3) .Fields.Add("account", db.String, 12) .Fields.Add("description", gb.String, 32) .Fields.Add("gltype", gb.String, 1) .Fields.Add("glsort", gb.Integer) .Fields.Add("status", gb.String, 1) .PrimaryKey = ["account"] .Update .Indexes.Add("glcoa_sort", "glsort", TRUE) .Update END WITH CATCH DEBUG DConv(Error.Text) Message.Error("CreateGLTables Function: " & DConv(Error.Text)) END Randy :-( =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Scanned with Copfilter Version 0.84beta3a (ProxSMTP 1.6) AntiSpam: SpamAssassin 3.2.3 AntiVirus: ClamAV 0.91.2/8992 - Sat Feb 14 10:43:07 2009 by Markus Madlener @ http://www.copfilter.org From gambas at ...1... Sat Feb 14 21:29:40 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Sat, 14 Feb 2009 21:29:40 +0100 Subject: [Gambas-user] Gambas & PostgreSQL cannot create index. relation XXX does not exist. In-Reply-To: <4997241D.2090209@...734...> References: <49788A3B.7090704@...734...> <200901250019.16944.ronstk@...239...> <4997241D.2090209@...734...> Message-ID: <200902142129.40359.gambas@...1...> > I made the change to source and update before and after index. Now I get > error 'No field". I checked database and the table and index is created, > but what is the error for? What is the number "23" before the "No field" > error in the debug output? The error comes from the second Update(). Remove it. Update() is called only for creating a new table. Maybe its name was not well chosen... Regards, -- Beno?t From bug.me at ...734... Sat Feb 14 22:12:19 2009 From: bug.me at ...734... (Randy) Date: Sat, 14 Feb 2009 16:12:19 -0500 Subject: [Gambas-user] Gambas & PostgreSQL cannot create index. relation XXX does not exist. In-Reply-To: <200902142129.40359.gambas@...1...> References: <49788A3B.7090704@...734...> <200901250019.16944.ronstk@...239...> <4997241D.2090209@...734...> <200902142129.40359.gambas@...1...> Message-ID: <499733B3.1020605@...734...> Beno?t Minisini wrote: >> I made the change to source and update before and after index. Now I get >> error 'No field". I checked database and the table and index is created, >> but what is the error for? What is the number "23" before the "No field" >> error in the debug output? >> > > The error comes from the second Update(). Remove it. > > Update() is called only for creating a new table. Maybe its name was not well > chosen... > > Regards, > > I removed the second update and the code works! Do you know syntax for .Indexes.Add for more than column for an index. Randy :-) =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Scanned with Copfilter Version 0.84beta3a (ProxSMTP 1.6) AntiSpam: SpamAssassin 3.2.3 AntiVirus: ClamAV 0.91.2/8992 - Sat Feb 14 10:43:07 2009 by Markus Madlener @ http://www.copfilter.org From rterry at ...1946... Sat Feb 14 22:41:00 2009 From: rterry at ...1946... (richard terry) Date: Sun, 15 Feb 2009 08:41:00 +1100 Subject: [Gambas-user] Cutn Paste Feature Request in IDE Message-ID: <200902150841.00932.rterry@...1946...> Hi There, Probably like most of us I do a staggering amount of cutn paste, and not infrequently use the Paste Special, and within that the paste as string and paste as comment. Two things. Firstnly, now that the user configurable buttons can be dropped on the toolbar (thanks for explaining that Benoit - I'd missed that one could do that), I wondered if you could include a button for paste as string and paste as comment to avoid having to use the popup dialog. Secondly: I'm using quite a few html templates. sometimes its quicker for me to prepare these in Nvu or Open office, and then just drop them as a single string into my gambase file, (though at other times I just have functions that return the html in a format needed a row etc) E.g For readability and maintainablity purposes, I want to end up with something like this: MyTemplate = "" " " " " " " " " " " " " " " " " " " " " " " " " " " " " "
col1col2col3
" "
" " " " " But using any of the three options, I end up with these, none of which work well, so I usually just paste as comments into a sub, do a couple of string replaces and then re-paste where I want it to be. 1) Straight Paste: mucked up html ====================== < Html > < head > < meta content = "text/html; charset=ISO-8859-1" http - equiv = "content-type" > < title > < / title > < / head > < body > < table style = "text-align: left; width: 100%;" border = "1" cellpadding = "2" cellspacing = "2" > < tbody > < Tr > < td style = "width: 298px;" > col1 < / td > < td style = "width: 295px;" > col2 < / td > < td style = "width: 358px;" > col3 < / td > < / Tr > < / tbody > < / table > < br > < / body > < / Html > 2) Paste as string: - works -but all on the same line and visually hard to follow =============================== "\n\n \n \n\n\n\n \n \n \n \n \n \n \n
col1col2col3
\n
\n\n\n" 3) Paste as comment - formatted visually, but not quoted and needs manipulating ================================== ' ' ' ' ' ' ' ' ' ' ' ' ' ' '
col1col2col3
'
' ' So my question is would it be possible to have an option in the paste special to retain the line formatting, replace the double quotes around things like 'text/html' with single quotes and then past it as a quoted string. regards Richard From mohareve at ...626... Sun Feb 15 15:51:15 2009 From: mohareve at ...626... (M. Cs.) Date: Sun, 15 Feb 2009 15:51:15 +0100 Subject: [Gambas-user] Metric nonconformism Message-ID: I'm trying to create different kinds of installation's packages (.rpm, .deb). My problem is: I've created a GUI under Mandriva (Gambas version 2.9). Now when I try to open the project under Ubuntu (a guest on VirtualBox, Gambas 2.7), the sizes of the GUI are changed. What is the reason for this, and how could I avoid this? Thanks From gambas at ...1... Sun Feb 15 16:04:30 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Sun, 15 Feb 2009 16:04:30 +0100 Subject: [Gambas-user] Metric nonconformism In-Reply-To: References: Message-ID: <200902151604.30275.gambas@...1...> > I'm trying to create different kinds of installation's packages (.rpm, > .deb). My problem is: I've created a GUI under Mandriva (Gambas version > 2.9). Now when I try to open the project under Ubuntu (a guest on > VirtualBox, Gambas 2.7), the sizes of the GUI are changed. What is the > reason for this, and how could I avoid this? > Thanks The size of the GUI is proportional to the height of the system font. If you really want a fixed GUI, which is a very bad idea coming from the Windows world, you have to set the "(Scaled)" property of your forms to FALSE. Otherwise, there is a problem on Ubuntu (at least on the old versions) where the qt library is configured with a too big font. If your application uses gb.qt, maybe this is the problem you got. I can't guess more without at least a screenshot. Regards, -- Beno?t From mohareve at ...626... Sun Feb 15 22:19:13 2009 From: mohareve at ...626... (M. Cs.) Date: Sun, 15 Feb 2009 22:19:13 +0100 Subject: [Gambas-user] Metric nonconformism In-Reply-To: <200902151604.30275.gambas@...1...> References: <200902151604.30275.gambas@...1...> Message-ID: Thanks, Benoit, now I understand the reasons. I only have to put my controls a little bit looser than they was, and I hope everything will be fine. I'm working on *gamcat, *a Gambas based DVD/CD and folder cataloging program. This project can be found on SourceForge.net It is already working with many features, and now I'm porting it. I will probably have another questions too. Thanks! Csaba From eilert-sprachen at ...221... Mon Feb 16 08:33:12 2009 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Mon, 16 Feb 2009 08:33:12 +0100 Subject: [Gambas-user] Locking files - best method In-Reply-To: <200902141310.45405.gambas@...1...> References: <4993CF56.80206@...221...> <49944BDC.1000105@...221...> <20090213121552.M87485@...951...> <200902141310.45405.gambas@...1...> Message-ID: <499916B8.7060608@...221...> Beno?t Minisini schrieb: >> Sharing a file exclusively locked very briefly and getting everything >> to work correctly amongst multiple programs can be brain-twisting. >> With increasing use of mulit-cores, the possibility for sharing files >> using any lock technique is more important than ever before >> because all associated programs can execute simultaneously. >> > > You can use the LOCK/UNLOCK commands and a specific void file on the disk to > create system exclusive sections in your code. > > Let's suppose you want to modify a file named "/tmp/foo". > > ... > DIM hLock AS Stream > DIM hFile AS Stream > > ' Try to acquire the lock > TRY hLock = LOCK "/tmp/foo.lock" > IF ERROR THEN > PRINT "'foo' is being modified. Try again later." > RETURN > ENDIF > > ' Lock was acquired, you can modify the file now! > hFile = OPEN "/tmp/foo" FOR OUTPUT > ... > CLOSE #hFile > > ' Do not forget to release the lock > UNLOCK hLock > ... > IMHO "the one" drawback remains: foo.lock isn't foo. You cannot lock the file itself, relying on the operating system / the file system to really make sure nobody else is able to corrupt your file during your access. If there's some other app that doesn't care about .lock files, your /tmp/foo will be lost. Of course, the same applies to my own methods like lock directories or self-made lock files. The only way to solve this would be a mechanism in the file system itself, giving the opportunity to code something like hFile = OPEN "/tmp/foo" FOR OUTPUT LOCK which would unlock the file automagically when you CLOSE it (or the instance of your application ends). Regards Rolf From arosa at ...2015... Mon Feb 16 20:45:55 2009 From: arosa at ...2015... (Toni) Date: Mon, 16 Feb 2009 19:45:55 +0000 Subject: [Gambas-user] ftpclient Message-ID: <4999C273.6000400@...2015...> Hello, I would like to use the ftpclient component in gb.net.curl to retrieve a directory list of a remote ftp server but I don't know how to use it (I can't see any "connect" or "open" method in it). I haven't found any example on the internet. Could please someone tell me if gb.net.curl is the "proper" way of doing it in Gambas and where can I find documentation/examples? Thanks, Toni P.S. I'm using gambas 2.11.1 From rterry at ...1946... Mon Feb 16 22:26:20 2009 From: rterry at ...1946... (richard terry) Date: Tue, 17 Feb 2009 08:26:20 +1100 Subject: [Gambas-user] Help with some parsing Message-ID: <200902170826.20128.rterry@...1946...> I'm importing some old data from windows. The data is exported from msAccess97 and some of the text fields have a carriage return of some sort in the middle. The same character seems to be used by access as the end of line for each record, so when I try and import it, I'm getting a truncated line, which then mucks up the next line I wondered how one could check this eg: If I look at the file in a text editor with line numbers: 1 Doe|john|01/02/1950|some text in here saying something 2 Smith|Peter|19/02/1944|also some text 3 but is split onto a new line so the parser crashes 3 Brown|Michael|17/05/1966|but this line is ok ie: there is a character in there that here I've designated as [xx] which is intrepreted as a new line 1 Doe|john|01/02/1950|some text in here saying something 2 Smith|Peter|19/02/1944|also some text [xx] 3 but is split onto a new line so the parser crashes 3 Brown|Michael|17/05/1966|but this line is ok So my quesitoni is 'how to discover what the character is ?chr$(10)(13) and how to eliminate those before parsing. Thanks in anticipation. richard From doriano.blengino at ...1909... Tue Feb 17 08:16:59 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Tue, 17 Feb 2009 08:16:59 +0100 Subject: [Gambas-user] Help with some parsing In-Reply-To: <200902170826.20128.rterry@...1946...> References: <200902170826.20128.rterry@...1946...> Message-ID: <499A646B.1080200@...1909...> richard terry ha scritto: > I'm importing some old data from windows. The data is exported from msAccess97 > and some of the text fields have a carriage return of some sort in the > middle. The same character seems to be used by access as the end of line for > each record, so when I try and import it, I'm getting a truncated line, which > then mucks up the next line > > ie: there is a character in there that here I've designated as [xx] which is > intrepreted as a new line > > > 1 Doe|john|01/02/1950|some text in here saying something > 2 Smith|Peter|19/02/1944|also some text [xx] > 3 but is split onto a new line so the parser crashes > 3 Brown|Michael|17/05/1966|but this line is ok > > So my quesitoni is 'how to discover what the character is ?chr$(10)(13) > and how to eliminate those before parsing. > You could open your data file with a hex editor, or use hexdump or similar, and look at both the correct lines and the splitted ones to see how they end. If their ending is different, you could read your file in binary mode and manage to reconstruct it by code. But I suspect that all the lines end in the same way - CR-LF. Another way, probably better, is to guess the number of fields a line should have; say, every line must have 3 fields, and 2 pipes "|". You read the file line by line and, if you don't find the expected number of pipes then the line is a continuation and must be appended to the one read before. In the excerpt you reported, the line number 3 does not contain pipes, so it should be joined with the previous. Hope this helps - regards, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From eilert-sprachen at ...221... Tue Feb 17 08:57:45 2009 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Tue, 17 Feb 2009 08:57:45 +0100 Subject: [Gambas-user] Gambas 2 -> Gambas 3 Message-ID: <499A6DF9.7010307@...221...> Good morning Benoit (and everyone) Just came about a question: When I want to bring my Gambas2 app to Gambas3, will this be as roundabout as it is from Gambas1 to Gambas2? (Creating new forms and converting the code...) Or is it more upward compatible? The reason for asking this is that you told me that you would just maintain bugfixes in Gambas2 and bring changes only to Gambas3. As I'm still maintaining some bigger Gambas1 projects, I would then migrate them to Gambas3 directly rather than having them under Gambas2 - if it's as much work again... Hope I could make clear what I mean... Regards Rolf From gambas at ...1... Tue Feb 17 09:48:30 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Tue, 17 Feb 2009 09:48:30 +0100 Subject: [Gambas-user] Help with some parsing In-Reply-To: <200902170826.20128.rterry@...1946...> References: <200902170826.20128.rterry@...1946...> Message-ID: <200902170948.30699.gambas@...1...> > I'm importing some old data from windows. The data is exported from > msAccess97 and some of the text fields have a carriage return of some sort > in the middle. The same character seems to be used by access as the end of > line for each record, so when I try and import it, I'm getting a truncated > line, which then mucks up the next line > > I wondered how one could check this > > eg: If I look at the file in a text editor with line numbers: > > 1 Doe|john|01/02/1950|some text in here saying something > 2 Smith|Peter|19/02/1944|also some text > 3 but is split onto a new line so the parser crashes > 3 Brown|Michael|17/05/1966|but this line is ok > > ie: there is a character in there that here I've designated as [xx] which > is intrepreted as a new line > > > 1 Doe|john|01/02/1950|some text in here saying something > 2 Smith|Peter|19/02/1944|also some text [xx] > 3 but is split onto a new line so the parser crashes > 3 Brown|Michael|17/05/1966|but this line is ok > > So my quesitoni is 'how to discover what the character is ?chr$(10)(13) > and how to eliminate those before parsing. > > Thanks in anticipation. > > richard > Did you see the data import dialog in the database manager of Gambas 2? There is the same dialog in Gambas 3, but the Gambas 3 database manager is deprecated, so you should use the Gambas 2 one. Regards, -- Beno?t From gambas at ...1... Tue Feb 17 09:54:48 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Tue, 17 Feb 2009 09:54:48 +0100 Subject: [Gambas-user] Gambas 2 -> Gambas 3 In-Reply-To: <499A6DF9.7010307@...221...> References: <499A6DF9.7010307@...221...> Message-ID: <200902170954.48995.gambas@...1...> > Good morning Benoit (and everyone) > > Just came about a question: When I want to bring my Gambas2 app to > Gambas3, will this be as roundabout as it is from Gambas1 to Gambas2? > (Creating new forms and converting the code...) Or is it more upward > compatible? > > The reason for asking this is that you told me that you would just > maintain bugfixes in Gambas2 and bring changes only to Gambas3. As I'm > still maintaining some bigger Gambas1 projects, I would then migrate > them to Gambas3 directly rather than having them under Gambas2 - if it's > as much work again... > > Hope I could make clear what I mean... > > Regards > > Rolf > The weirdest thing between Gambas 2 and Gambas 3 at the moment is Desktop.Scale, that is smaller in Gambas 3. Gambas 3 does a little conversion for controls whose W and H <= 3 * Desktop.Scale (it adds one Desktop.Scale), but you have to update all your forms and check them one by one to redesign them. There are many other changes in instruction syntax and class interfaces, but I never note them at the moment. Hopefully, they are less changes between Gambas 3 and Gambas 2 than between Gambas 2 and Gambas 1. So please try and tell us the result! :-) -- Beno?t From eilert-sprachen at ...221... Tue Feb 17 11:42:09 2009 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Tue, 17 Feb 2009 11:42:09 +0100 Subject: [Gambas-user] Gambas 2 -> Gambas 3 In-Reply-To: <200902170954.48995.gambas@...1...> References: <499A6DF9.7010307@...221...> <200902170954.48995.gambas@...1...> Message-ID: <499A9481.6080003@...221...> Beno?t Minisini schrieb: >> Good morning Benoit (and everyone) >> >> Just came about a question: When I want to bring my Gambas2 app to >> Gambas3, will this be as roundabout as it is from Gambas1 to Gambas2? >> (Creating new forms and converting the code...) Or is it more upward >> compatible? >> >> The reason for asking this is that you told me that you would just >> maintain bugfixes in Gambas2 and bring changes only to Gambas3. As I'm >> still maintaining some bigger Gambas1 projects, I would then migrate >> them to Gambas3 directly rather than having them under Gambas2 - if it's >> as much work again... >> >> Hope I could make clear what I mean... >> >> Regards >> >> Rolf >> > > The weirdest thing between Gambas 2 and Gambas 3 at the moment is > Desktop.Scale, that is smaller in Gambas 3. > > Gambas 3 does a little conversion for controls whose W and H <= 3 * > Desktop.Scale (it adds one Desktop.Scale), but you have to update all your > forms and check them one by one to redesign them. > > There are many other changes in instruction syntax and class interfaces, but I > never note them at the moment. Hopefully, they are less changes between Gambas > 3 and Gambas 2 than between Gambas 2 and Gambas 1. > > So please try and tell us the result! :-) > LOL - ok, I will. I would. If I could. Downloaded the svn and tried to compile it, it stopps here: /usr/lib/gcc/i586-suse-linux/4.2.1/../../../../i586-suse-linux/bin/ld: cannot find -lqt-mt collect2: ld returned 1 exit status make[5]: *** [gb.qt.kde.html.la] Fehler 1 make[5]: Leaving directory `/home/tester/gambastest/trunk/gb.qt.kde/src/html' make[4]: *** [all-recursive] Fehler 1 make[4]: Leaving directory `/home/tester/gambastest/trunk/gb.qt.kde/src' make[3]: *** [all-recursive] Fehler 1 make[3]: Leaving directory `/home/tester/gambastest/trunk/gb.qt.kde' make[2]: *** [all] Fehler 2 make[2]: Leaving directory `/home/tester/gambastest/trunk/gb.qt.kde' make[1]: *** [all-recursive] Fehler 1 make[1]: Leaving directory `/home/tester/gambastest/trunk' make: *** [all] Fehler 2 Any idea what's wrong here? There is an older Gambas3 on my system which is running ok, should I try with that one? Don't know how "old" it is, but it has a Copyright until 2009 in the help... :-) Rolf From gambas at ...1... Tue Feb 17 11:44:53 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Tue, 17 Feb 2009 11:44:53 +0100 Subject: [Gambas-user] Gambas 2 -> Gambas 3 In-Reply-To: <499A9481.6080003@...221...> References: <499A6DF9.7010307@...221...> <200902170954.48995.gambas@...1...> <499A9481.6080003@...221...> Message-ID: <200902171144.54075.gambas@...1...> > Beno?t Minisini schrieb: > >> Good morning Benoit (and everyone) > >> > >> Just came about a question: When I want to bring my Gambas2 app to > >> Gambas3, will this be as roundabout as it is from Gambas1 to Gambas2? > >> (Creating new forms and converting the code...) Or is it more upward > >> compatible? > >> > >> The reason for asking this is that you told me that you would just > >> maintain bugfixes in Gambas2 and bring changes only to Gambas3. As I'm > >> still maintaining some bigger Gambas1 projects, I would then migrate > >> them to Gambas3 directly rather than having them under Gambas2 - if it's > >> as much work again... > >> > >> Hope I could make clear what I mean... > >> > >> Regards > >> > >> Rolf > > > > The weirdest thing between Gambas 2 and Gambas 3 at the moment is > > Desktop.Scale, that is smaller in Gambas 3. > > > > Gambas 3 does a little conversion for controls whose W and H <= 3 * > > Desktop.Scale (it adds one Desktop.Scale), but you have to update all > > your forms and check them one by one to redesign them. > > > > There are many other changes in instruction syntax and class interfaces, > > but I never note them at the moment. Hopefully, they are less changes > > between Gambas 3 and Gambas 2 than between Gambas 2 and Gambas 1. > > > > So please try and tell us the result! :-) > > LOL - ok, I will. I would. If I could. > > Downloaded the svn and tried to compile it, it stopps here: > > /usr/lib/gcc/i586-suse-linux/4.2.1/../../../../i586-suse-linux/bin/ld: > cannot find -lqt-mt > collect2: ld returned 1 exit status > make[5]: *** [gb.qt.kde.html.la] Fehler 1 > make[5]: Leaving directory > `/home/tester/gambastest/trunk/gb.qt.kde/src/html' > make[4]: *** [all-recursive] Fehler 1 > make[4]: Leaving directory `/home/tester/gambastest/trunk/gb.qt.kde/src' > make[3]: *** [all-recursive] Fehler 1 > make[3]: Leaving directory `/home/tester/gambastest/trunk/gb.qt.kde' > make[2]: *** [all] Fehler 2 > make[2]: Leaving directory `/home/tester/gambastest/trunk/gb.qt.kde' > make[1]: *** [all-recursive] Fehler 1 > make[1]: Leaving directory `/home/tester/gambastest/trunk' > make: *** [all] Fehler 2 > > Any idea what's wrong here? > > There is an older Gambas3 on my system which is running ok, should I try > with that one? Don't know how "old" it is, but it has a Copyright until > 2009 in the help... :-) > > Rolf > You cannot install two different gambas 3 on the same machine. Remove completely the old one. And if your linker does not find the qt-mt library, either qt3 is not installed, either you have a big problem somewhere! Regards, -- Beno?t From emil at ...1913... Tue Feb 17 07:55:10 2009 From: emil at ...1913... (Emil Tchekov) Date: Tue, 17 Feb 2009 07:55:10 +0100 Subject: [Gambas-user] Help with some parsing In-Reply-To: <200902170826.20128.rterry@...1946...> Message-ID: >>So my quesitoni is 'how to discover what the character is ?chr$(10)(13) >>and how to eliminate those before parsing. CHR$(10) & CHR$(13) - carriage return & line feed Those are special "command" character from the "stone age" of the informatic used to go to the next line (add new line) - was needed in the times where a martix printer with ink ribbon the single output device of the computer was.... Try using REPLACE$, I never used it in GAMBAS, but the same operator in VB6 was able to remove every char (also those with special functions) ResultString=REPLACE$(InputStringWithBadChars, CHR$(10), "") ResultString=REPLACE$(ResultString, CHR$(13), "") This will search (in 2 Stages) first for CHR$(10) and than for CHR$(13) and replace them with empty strings... hope this helps kind regards Emil From daniel at ...2071... Tue Feb 17 14:30:43 2009 From: daniel at ...2071... (FoxIII) Date: Tue, 17 Feb 2009 05:30:43 -0800 (PST) Subject: [Gambas-user] Filename as string Message-ID: <22057355.post@...1379...> I am very new to Gambas (and programming in general). I am trying to retrieve a filename as string from fileview so I can display it on the screen, but do not seem to be able to manage it. I know this may sound a bit of a simple request, but for a total beginner, the help files are not entirely, well, helpful. hehe -- View this message in context: http://www.nabble.com/Filename-as-string-tp22057355p22057355.html Sent from the gambas-user mailing list archive at Nabble.com. From nando_f at ...951... Tue Feb 17 15:03:33 2009 From: nando_f at ...951... (nando) Date: Tue, 17 Feb 2009 09:03:33 -0500 Subject: [Gambas-user] Locking files - best method In-Reply-To: <499916B8.7060608@...221...> References: <4993CF56.80206@...221...> <49944BDC.1000105@...221...> <20090213121552.M87485@...951...> <200902141310.45405.gambas@...1...> <499916B8.7060608@...221...> Message-ID: <20090217135042.M18026@...951...> I think you're looking for the filesystem to prevent you from file operations while 'locked'. I used 'locking' with VB5 and relied on Window's internal locking mechanism. After years of agony, I found the external subdirectory method the best. I don't have shared files on just one computer, there are many computers. I found that VB5 sometimes got stupid and never unlocked - especially when long time between reboots. But now, with the subdir method, I can fully control it. I do this with Gambas using Samba while I port away from VB5. The main problem is this: Program 1 locks a file (or a portion of a file) and that program freezes up, locks up, computer is shutdown, etc WHILE the lock is in force. Then other programs try the same and.... The whole system is screwed! Now that I use subdirs, I know that a lock 'should be' free (ie unlocked) within 10 seconds because I know that there is no way my code should last that long....and something is wrong. In such a case, I can actually proceed (fake re-locking it) with the second program, give a warning message that it couldn't lock because it is taking too long but is proceeding and will subsequently unlock (rmdir) too. In very few cases, I have had to go in and RMDIR manually because things got jammed up, but discovered those situations to be wierd-condition bugs which are now fixed. Personally, I like the full control it provides and works over multiple programs and multiple computers. ---------- Original Message ----------- From: Rolf-Werner Eilert To: mailing list for gambas users Sent: Mon, 16 Feb 2009 08:33:12 +0100 Subject: Re: [Gambas-user] Locking files - best method > Beno?t Minisini schrieb: > >> Sharing a file exclusively locked very briefly and getting everything > >> to work correctly amongst multiple programs can be brain-twisting. > >> With increasing use of mulit-cores, the possibility for sharing files > >> using any lock technique is more important than ever before > >> because all associated programs can execute simultaneously. > >> > > > > You can use the LOCK/UNLOCK commands and a specific void file on the disk to > > create system exclusive sections in your code. > > > > Let's suppose you want to modify a file named "/tmp/foo". > > > > ... > > DIM hLock AS Stream > > DIM hFile AS Stream > > > > ' Try to acquire the lock > > TRY hLock = LOCK "/tmp/foo.lock" > > IF ERROR THEN > > PRINT "'foo' is being modified. Try again later." > > RETURN > > ENDIF > > > > ' Lock was acquired, you can modify the file now! > > hFile = OPEN "/tmp/foo" FOR OUTPUT > > ... > > CLOSE #hFile > > > > ' Do not forget to release the lock > > UNLOCK hLock > > ... > > > > IMHO "the one" drawback remains: foo.lock isn't foo. You cannot lock the > file itself, relying on the operating system / the file system to really > make sure nobody else is able to corrupt your file during your access. > > If there's some other app that doesn't care about .lock files, your > /tmp/foo will be lost. Of course, the same applies to my own methods > like lock directories or self-made lock files. > > The only way to solve this would be a mechanism in the file system > itself, giving the opportunity to code something like > > hFile = OPEN "/tmp/foo" FOR OUTPUT LOCK > > which would unlock the file automagically when you CLOSE it (or the > instance of your application ends). > > Regards > > Rolf > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA > -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise > -Strategies to boost innovation and cut costs with open source participation > -Receive a $600 discount off the registration fee with the source code: SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From simonart.dominique at ...11... Tue Feb 17 15:16:11 2009 From: simonart.dominique at ...11... (Dominique SIMONART) Date: Tue, 17 Feb 2009 15:16:11 +0100 Subject: [Gambas-user] How to populate a gridview from keyboard Message-ID: <499AC6AB.3040807@...11...> Hi everyone, it seemed so simple that I feel a bit stupid with that question, but... I want to fill a gridview with text coming from the keyboard, as in a crossword. I think I've to deal with the keypress event and the key.text data, but how can I identify the cell to fill. I cannot even see any cursor on my grid. I want not to use the mouse cursor because my fingers are on the keyboard all the time. I wish to define the next cell with the cursor keys only. Could someone give me a short sample or point me on the right direction? Thanks in advance for your help Dominique Simonart From jussi.lahtinen at ...626... Tue Feb 17 15:49:41 2009 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Tue, 17 Feb 2009 16:49:41 +0200 Subject: [Gambas-user] Filename as string In-Reply-To: <22057355.post@...1379...> References: <22057355.post@...1379...> Message-ID: <384d3900902170649o7f1144f9p8e4c7227f223e6d1@...627...> I'm not completely sure what you want... but if you use fileview mode none or single. You can retrieve filename of selected file like this: StringVariable = FileView1.Selection[0] Hope that helps... Jussi On Tue, Feb 17, 2009 at 3:30 PM, FoxIII wrote: > > I am very new to Gambas (and programming in general). I am trying to retrieve > a filename as string from fileview so I can display it on the screen, but do > not seem to be able to manage it. I know this may sound a bit of a simple > request, but for a total beginner, the help files are not entirely, well, > helpful. hehe > -- > View this message in context: http://www.nabble.com/Filename-as-string-tp22057355p22057355.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA > -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise > -Strategies to boost innovation and cut costs with open source participation > -Receive a $600 discount off the registration fee with the source code: SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From eilert-sprachen at ...221... Tue Feb 17 15:51:42 2009 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Tue, 17 Feb 2009 15:51:42 +0100 Subject: [Gambas-user] Locking files - best method In-Reply-To: <20090217135042.M18026@...951...> References: <4993CF56.80206@...221...> <49944BDC.1000105@...221...> <20090213121552.M87485@...951...> <200902141310.45405.gambas@...1...> <499916B8.7060608@...221...> <20090217135042.M18026@...951...> Message-ID: <499ACEFE.50907@...221...> That's right. I tried your idea, and it works fine as long as every other program keeps looking for the dirs. My problem is similar: Part of the software runs on Windows, originally programmed with VB5. To make it compatible to the Linux side client, I introduced a lock-file scheme. It still uses that successfully. Unfortunately, I lost the VB source over the years :-( so it has to keep on running like that, and so has the Linux client. Luckily, though, we are only 2 persons in our offices who use this thing on a daily basis, so it's no harm. There are some other Linux programs meanwhile using the data, but do not write to it, so no real danger. But for my next-generation tool for the teachers there was trouble with my lock-file system, so I changed writing/reading to your lock-directory system. Easy thing, and up to now (a week or so...) it seems to be running well. I cannot use Benoits LOCK Stream here because this program is still Gambas1. I had your idea of waiting, but writing "nevertheless" and just give a warning as you do is even better. Maybe I'll change that part, but I'd prefer keeping the original and writing into temporary files until Admin cares about it... :-) As this application has a messaging system, I could even send me a message in this case! Regards Rolf nando schrieb: > I think you're looking for the filesystem to prevent you from file operations > while 'locked'. I used 'locking' with VB5 and relied on Window's internal locking > mechanism. After years of agony, I found the external subdirectory method > the best. I don't have shared files on just one computer, there are many computers. > I found that VB5 sometimes got stupid and never unlocked - especially when > long time between reboots. But now, with the subdir method, I can fully control it. > I do this with Gambas using Samba while I port away from VB5. > > The main problem is this: > Program 1 locks a file (or a portion of a file) and that program freezes up, > locks up, computer is shutdown, etc WHILE the lock is in force. > Then other programs try the same and.... > The whole system is screwed! > Now that I use subdirs, I know that a lock 'should be' free (ie unlocked) > within 10 seconds because I know that there is no way my code should last > that long....and something is wrong. In such a case, I can actually > proceed (fake re-locking it) with the second program, give a warning message > that it couldn't lock because it is taking too long but is proceeding > and will subsequently unlock (rmdir) too. > In very few cases, I have had to go in and RMDIR manually because things > got jammed up, but discovered those situations to be wierd-condition bugs > which are now fixed. > Personally, I like the full control it provides and works over multiple > programs and multiple computers. > > > ---------- Original Message ----------- > From: Rolf-Werner Eilert > To: mailing list for gambas users > Sent: Mon, 16 Feb 2009 08:33:12 +0100 > Subject: Re: [Gambas-user] Locking files - best method > >> Beno?t Minisini schrieb: >>>> Sharing a file exclusively locked very briefly and getting everything >>>> to work correctly amongst multiple programs can be brain-twisting. >>>> With increasing use of mulit-cores, the possibility for sharing files >>>> using any lock technique is more important than ever before >>>> because all associated programs can execute simultaneously. >>>> >>> You can use the LOCK/UNLOCK commands and a specific void file on the disk to >>> create system exclusive sections in your code. >>> >>> Let's suppose you want to modify a file named "/tmp/foo". >>> >>> ... >>> DIM hLock AS Stream >>> DIM hFile AS Stream >>> >>> ' Try to acquire the lock >>> TRY hLock = LOCK "/tmp/foo.lock" >>> IF ERROR THEN >>> PRINT "'foo' is being modified. Try again later." >>> RETURN >>> ENDIF >>> >>> ' Lock was acquired, you can modify the file now! >>> hFile = OPEN "/tmp/foo" FOR OUTPUT >>> ... >>> CLOSE #hFile >>> >>> ' Do not forget to release the lock >>> UNLOCK hLock >>> ... >>> >> IMHO "the one" drawback remains: foo.lock isn't foo. You cannot lock the >> file itself, relying on the operating system / the file system to really >> make sure nobody else is able to corrupt your file during your access. >> >> If there's some other app that doesn't care about .lock files, your >> /tmp/foo will be lost. Of course, the same applies to my own methods >> like lock directories or self-made lock files. >> >> The only way to solve this would be a mechanism in the file system >> itself, giving the opportunity to code something like >> >> hFile = OPEN "/tmp/foo" FOR OUTPUT LOCK >> >> which would unlock the file automagically when you CLOSE it (or the >> instance of your application ends). >> >> Regards >> >> Rolf >> >> ------------------------------------------------------------------------------ >> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA >> -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise >> -Strategies to boost innovation and cut costs with open source participation >> -Receive a $600 discount off the registration fee with the source code: SFAD >> http://p.sf.net/sfu/XcvMzF8H >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > ------- End of Original Message ------- > > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA > -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise > -Strategies to boost innovation and cut costs with open source participation > -Receive a $600 discount off the registration fee with the source code: SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From charles at ...1784... Tue Feb 17 15:55:12 2009 From: charles at ...1784... (charlesg) Date: Tue, 17 Feb 2009 06:55:12 -0800 (PST) Subject: [Gambas-user] How to populate a gridview from keyboard In-Reply-To: <499AC6AB.3040807@...11...> References: <499AC6AB.3040807@...11...> Message-ID: <22058870.post@...1379...> Hi, Tableview is a modifiable gridview but I did not find it very flexible. Jacky-12 gave a brilliant solution in reply to my post 'OOP and TextBox' Nov-21-2008 rgds -- View this message in context: http://www.nabble.com/How-to-populate-a-gridview-from-keyboard-tp22058169p22058870.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Tue Feb 17 18:41:14 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Tue, 17 Feb 2009 18:41:14 +0100 Subject: [Gambas-user] How to populate a gridview from keyboard In-Reply-To: <499AC6AB.3040807@...11...> References: <499AC6AB.3040807@...11...> Message-ID: <200902171841.14832.gambas@...1...> > Hi everyone, > > it seemed so simple that I feel a bit stupid with that question, but... > I want to fill a gridview with text coming from the keyboard, as in a > crossword. > I think I've to deal with the keypress event and the key.text data, but > how can I identify the cell to fill. I cannot even see any cursor on my > grid. > I want not to use the mouse cursor because my fingers are on the > keyboard all the time. I wish to define the next cell with the cursor > keys only. > > Could someone give me a short sample or point me on the right direction? > > Thanks in advance for your help > Dominique Simonart > Just implement the cursor your self. Create a class named MyGridView that inherits GridView. In it, create an observer on yourself to catch the KeyPress event, and add two class variables (let's name them $X and $Y) to store the cursor coordinates. Catch the Data event too to define the background / foreground of the cell: Color.SelectededBackground and Color.SelectedForeground for the current cell (Row = $Y and Column = $X), nothing otherwise (the standard colors). Then each time you move the cursor, update the $X and $Y variables, and refresh the old current cell and the new one. If you don't want to use the Data event, you must use the MyGridView[X, Y] cell accessor. Regards, -- Beno?t From simonart.dominique at ...11... Tue Feb 17 19:03:52 2009 From: simonart.dominique at ...11... (Dominique SIMONART) Date: Tue, 17 Feb 2009 19:03:52 +0100 Subject: [Gambas-user] How to populate a gridview from keyboard In-Reply-To: <200902171841.14832.gambas@...1...> References: <499AC6AB.3040807@...11...> <200902171841.14832.gambas@...1...> Message-ID: <499AFC08.3050709@...11...> Beno?t Minisini a ?crit : >> Hi everyone, >> >> it seemed so simple that I feel a bit stupid with that question, but... >> I want to fill a gridview with text coming from the keyboard, as in a >> crossword. >> I think I've to deal with the keypress event and the key.text data, but >> how can I identify the cell to fill. I cannot even see any cursor on my >> grid. >> I want not to use the mouse cursor because my fingers are on the >> keyboard all the time. I wish to define the next cell with the cursor >> keys only. >> >> Could someone give me a short sample or point me on the right direction? >> >> Thanks in advance for your help >> Dominique Simonart >> >> > > Just implement the cursor your self. Create a class named MyGridView that > inherits GridView. > > In it, create an observer on yourself to catch the KeyPress event, and add two > class variables (let's name them $X and $Y) to store the cursor coordinates. > > Catch the Data event too to define the background / foreground of the cell: > Color.SelectededBackground and Color.SelectedForeground for the current cell > (Row = $Y and Column = $X), nothing otherwise (the standard colors). > > Then each time you move the cursor, update the $X and $Y variables, and > refresh the old current cell and the new one. > > If you don't want to use the Data event, you must use the MyGridView[X, Y] > cell accessor. > > Regards, > > Thanks to all, Well Benoit, I think it's time for me to get inside all those inheritage, observer, etc. Learning is really the master keyword in programming! :) May be it's what keep us interested in! regards, Dominique Simonart From lord.quo at ...626... Tue Feb 17 19:33:22 2009 From: lord.quo at ...626... (Daniel Rojas) Date: Tue, 17 Feb 2009 12:33:22 -0600 Subject: [Gambas-user] How to create a web site with Gambas Message-ID: <1e1dd3c30902171033if2ab2ai1d2f713c7bfc9795@...627...> Hi all. I'm a begginer with Gambas and I want to create a web site whit it, but I don't know how to start. Can somebody help me? Thanks. Daniel Quintero desde la Ciudad de M?xico From joe1962 at ...626... Tue Feb 17 20:26:56 2009 From: joe1962 at ...626... (Jose J. Rodriguez) Date: Tue, 17 Feb 2009 14:26:56 -0500 Subject: [Gambas-user] Multiple TCP server sockets Message-ID: <6c208f950902171126h37b0e12dl3bdffcc83178f5c1@...627...> Is there any way to get different TCP server objects with different ports to use a different socket object for read? I am trying to port my VB6 multiport communications server application to Gambas2 and (I think) I need something like that to get it to work. Regards, Joe1962 From rterry at ...1946... Tue Feb 17 22:09:26 2009 From: rterry at ...1946... (richard terry) Date: Wed, 18 Feb 2009 08:09:26 +1100 Subject: [Gambas-user] Help with some parsing In-Reply-To: References: Message-ID: <200902180809.26377.rterry@...1946...> On Tue, 17 Feb 2009 05:55:10 pm you wrote: > >>So my quesitoni is 'how to discover what the character is ?chr$(10)(13) > >>and how to eliminate those before parsing. > > CHR$(10) & CHR$(13) - carriage return & line feed > Those are special "command" character from the "stone age" of the > informatic used to go to the next line (add new line) - was needed in the > times where a martix printer with ink ribbon the single output device of > the computer was.... > > > Try using REPLACE$, I never used it in GAMBAS, but the same operator in VB6 > was able to remove every char (also those with special functions) > > ResultString=REPLACE$(InputStringWithBadChars, CHR$(10), "") > ResultString=REPLACE$(ResultString, CHR$(13), "") > > > This will search (in 2 Stages) first for CHR$(10) and than for CHR$(13) and > replace them with empty strings... > > > hope this helps That's the sort of solution I was looking for and I will try it and see if it works better than my crude solution: In the meantime I found another solution. I re-exported from msAccess, but added a 'dummy field at the end I called 'end', so a theoretically complete line of data would look like surname|firstname|birthdate|socialhistory|end I then read the lines concatenating them until I had a complete line: Line Input #hfile, sLineInput sIncompleteLine = sLineInput 'keep copy Do Until Right(sIncompleteLine, 4) = "|end" Line Input #hfile, sLineInput 'No, then get the next line sIncompleteLine &= sLineInput 'and concatenate for Loop sLineInput = sIncompleteLine 'ok n now, keep going. 'Line is complete, so plit up into bits bits = Split(sLineInput, "|") thanks all, and benoit, I'll look at the gambas data thing but I've never been able to get it to work - it won't read my postgres database without crashing, I've posted that before. Regards richard > > > kind regards > > > Emil From gambas at ...1... Tue Feb 17 23:59:47 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Tue, 17 Feb 2009 23:59:47 +0100 Subject: [Gambas-user] Multiple TCP server sockets In-Reply-To: <6c208f950902171126h37b0e12dl3bdffcc83178f5c1@...627...> References: <6c208f950902171126h37b0e12dl3bdffcc83178f5c1@...627...> Message-ID: <200902172359.47294.gambas@...1...> > Is there any way to get different TCP server objects with different > ports to use a different socket object for read? I am trying to port > my VB6 multiport communications server application to Gambas2 and (I > think) I need something like that to get it to work. > > Regards, > Joe1962 > I would say yes. I see nothing that prevents from creating several SocketServer objects. Regards, -- Beno?t From rterry at ...1946... Tue Feb 17 22:38:38 2009 From: rterry at ...1946... (richard terry) Date: Wed, 18 Feb 2009 08:38:38 +1100 Subject: [Gambas-user] Gambas 2 -> Gambas 3 In-Reply-To: <499A9481.6080003@...221...> References: <499A6DF9.7010307@...221...> <200902170954.48995.gambas@...1...> <499A9481.6080003@...221...> Message-ID: <200902180838.38780.rterry@...1946...> On Tue, 17 Feb 2009 09:42:09 pm Rolf-Werner Eilert wrote: > Beno?t Minisini schrieb: > >> Good morning Benoit (and everyone) > >> > >> Just came about a question: When I want to bring my Gambas2 app to > >> Gambas3, will this be as roundabout as it is from Gambas1 to Gambas2? > >> (Creating new forms and converting the code...) Or is it more upward > >> compatible? > >> > >> The reason for asking this is that you told me that you would just > >> maintain bugfixes in Gambas2 and bring changes only to Gambas3. As I'm > >> still maintaining some bigger Gambas1 projects, I would then migrate > >> them to Gambas3 directly rather than having them under Gambas2 - if it's > >> as much work again... > >> > >> Hope I could make clear what I mean... > >> > >> Regards > >> > >> Rolf > > > > The weirdest thing between Gambas 2 and Gambas 3 at the moment is > > Desktop.Scale, that is smaller in Gambas 3. > > > > Gambas 3 does a little conversion for controls whose W and H <= 3 * > > Desktop.Scale (it adds one Desktop.Scale), but you have to update all > > your forms and check them one by one to redesign them. > > > > There are many other changes in instruction syntax and class interfaces, > > but I never note them at the moment. Hopefully, they are less changes > > between Gambas 3 and Gambas 2 than between Gambas 2 and Gambas 1. > > > > So please try and tell us the result! :-) > > LOL - ok, I will. I would. If I could. > > Downloaded the svn and tried to compile it, it stopps here: > > /usr/lib/gcc/i586-suse-linux/4.2.1/../../../../i586-suse-linux/bin/ld: > cannot find -lqt-mt > collect2: ld returned 1 exit status > make[5]: *** [gb.qt.kde.html.la] Fehler 1 > make[5]: Leaving directory > `/home/tester/gambastest/trunk/gb.qt.kde/src/html' > make[4]: *** [all-recursive] Fehler 1 > make[4]: Leaving directory `/home/tester/gambastest/trunk/gb.qt.kde/src' > make[3]: *** [all-recursive] Fehler 1 > make[3]: Leaving directory `/home/tester/gambastest/trunk/gb.qt.kde' > make[2]: *** [all] Fehler 2 > make[2]: Leaving directory `/home/tester/gambastest/trunk/gb.qt.kde' > make[1]: *** [all-recursive] Fehler 1 > make[1]: Leaving directory `/home/tester/gambastest/trunk' > make: *** [all] Fehler 2 > > Any idea what's wrong here? I compile the svn daily, and I had the exact same problem which appeared suddenly a month ago and my previous scripts for compiling gambas3 stopped working, despite the fact that the appropriate libraries seemed to be on my machine, and in theory the pathways were as well. Now the sad part. After days and days of searching every forum on the internet I found a solution which I can't remember. But the potential good news, its contained within my PKGBUILD file which I use to compile the package with, so I've enclosed it. I think..... and not sure, that it was this line: make LDFLAGS+=-L/opt/qt/lib that I included in the script which made the difference. Hope this helps. Richard > > There is an older Gambas3 on my system which is running ok, should I try > with that one? Don't know how "old" it is, but it has a Copyright until > 2009 in the help... :-) > > Rolf > > > --------------------------------------------------------------------------- >--- Open Source Business Conference (OSBC), March 24-25, 2009, San > Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing > the Enterprise -Strategies to boost innovation and cut costs with open > source participation -Receive a $600 discount off the registration fee with > the source code: SFAD http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From doriano.blengino at ...1909... Tue Feb 17 23:14:49 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Tue, 17 Feb 2009 23:14:49 +0100 Subject: [Gambas-user] Help with some parsing In-Reply-To: References: Message-ID: <499B36D9.4080709@...1909...> Emil Tchekov ha scritto: > CHR$(10) & CHR$(13) - carriage return & line feed > Those are special "command" character from the "stone age" of the informatic > used to go to the next line (add new line) - was needed in the times where a > martix printer with ink ribbon the single output device of the computer > was.... > Pardon me to point out. I disagree, chr$(13) is CR; chr$(10) is LF. While it is true they are an old standard, saying they are "from the stone age" is not fair. HTTP protocol relies on CR-LF, and you must admit that HTTP protocol is well alive - not a "stone age" standard. The fact CR-LF is so old is a proof of its power. Moreover, text files are the most expressive and versatile form of digital data. Html, Xml, Svg, Postscript, PDF, are all in wide use and are based on ASCII, and so they contain CR-LF sequences. The fact Unix/Linux uses a single LF instead of a CR-LF is pretty marginal - it was simply a design choice. A windows HTTP server can take text files from disk and serve them verbatim, while a Unix HTTP server has to translate them (to add the missing CR). Anyway, the concept is the same. Most programs today can cope perfectly well with this two standars. In the end, the only thing I wanted to say is that CR and LF are far more than what you depicted, and they are still needed. Regards, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From linuxos at ...1896... Wed Feb 18 00:38:36 2009 From: linuxos at ...1896... (Olivier Cruilles) Date: Wed, 18 Feb 2009 00:38:36 +0100 Subject: [Gambas-user] Gambas 2 -> Gambas 3 In-Reply-To: <200902171144.54075.gambas@...1...> References: <499A6DF9.7010307@...221...> <200902170954.48995.gambas@...1...> <499A9481.6080003@...221...> <200902171144.54075.gambas@...1...> Message-ID: <7DB65400-BE55-4850-AF99-DEDF7358C26E@...1896...> Benoit, I trying to compile and install Gambas 3 from the svn trunk and I have the same problem like Rolf. When I start the compilation by: make => I have the same error on : cannot find -lqt-mt I tryed to compile Gambas 3 on Fedora 7 and Fedora 10, and the both case I have the same problem. I verify the library and all it's ok: on Fedora 10 [root at ...2073... ~]# ls -l /usr/lib/qt-3.3/lib/ total 19380 -rw-r--r-- 1 root root 7897526 oct. 8 15:19 libdesignercore.a -rw-r--r-- 1 root root 1050 oct. 8 15:18 libdesignercore.prl -rw-r--r-- 1 root root 509178 oct. 8 15:19 libeditor.a -rw-r--r-- 1 root root 956 oct. 8 15:18 libeditor.prl -rw-r--r-- 1 root root 41204 oct. 8 15:19 libqassistantclient.a -rw-r--r-- 1 root root 967 oct. 8 15:18 libqassistantclient.prl lrwxrwxrwx 1 root root 15 d?c. 5 02:24 libqsa.so -> libqsa.so. 1.1.4 lrwxrwxrwx 1 root root 15 d?c. 5 02:20 libqsa.so.1 -> libqsa.so. 1.1.4 lrwxrwxrwx 1 root root 15 d?c. 5 02:20 libqsa.so.1.1 -> libqsa.so.1.1.4 -rwxr-xr-x 1 root root 2106324 mars 25 2008 libqsa.so.1.1.4 -rw-r--r-- 1 root root 964 oct. 8 15:18 libqt-mt.prl lrwxrwxrwx 1 root root 17 d?c. 5 13:06 libqt-mt.so -> libqt- mt.so.3.3.8 lrwxrwxrwx 1 root root 17 d?c. 5 12:38 libqt-mt.so.3 -> libqt- mt.so.3.3.8 lrwxrwxrwx 1 root root 17 d?c. 5 12:38 libqt-mt.so.3.3 -> libqt- mt.so.3.3.8 -rwxr-xr-x 1 root root 8880140 oct. 8 15:19 libqt-mt.so.3.3.8 -rw-r--r-- 1 root root 852 oct. 8 15:18 libqui.prl lrwxrwxrwx 1 root root 15 d?c. 5 13:06 libqui.so -> libqui.so. 1.0.0 lrwxrwxrwx 1 root root 15 d?c. 5 12:38 libqui.so.1 -> libqui.so. 1.0.0 lrwxrwxrwx 1 root root 15 d?c. 5 12:38 libqui.so.1.0 -> libqui.so.1.0.0 -rwxr-xr-x 1 root root 255332 oct. 8 15:19 libqui.so.1.0.0 Olivier Cruilles Mail: linuxos at ...1896... Le 17 f?vr. 09 ? 11:44, Beno?t Minisini a ?crit : >> Beno?t Minisini schrieb: >>>> Good morning Benoit (and everyone) >>>> >>>> Just came about a question: When I want to bring my Gambas2 app to >>>> Gambas3, will this be as roundabout as it is from Gambas1 to >>>> Gambas2? >>>> (Creating new forms and converting the code...) Or is it more >>>> upward >>>> compatible? >>>> >>>> The reason for asking this is that you told me that you would just >>>> maintain bugfixes in Gambas2 and bring changes only to Gambas3. >>>> As I'm >>>> still maintaining some bigger Gambas1 projects, I would then >>>> migrate >>>> them to Gambas3 directly rather than having them under Gambas2 - >>>> if it's >>>> as much work again... >>>> >>>> Hope I could make clear what I mean... >>>> >>>> Regards >>>> >>>> Rolf >>> >>> The weirdest thing between Gambas 2 and Gambas 3 at the moment is >>> Desktop.Scale, that is smaller in Gambas 3. >>> >>> Gambas 3 does a little conversion for controls whose W and H <= 3 * >>> Desktop.Scale (it adds one Desktop.Scale), but you have to update >>> all >>> your forms and check them one by one to redesign them. >>> >>> There are many other changes in instruction syntax and class >>> interfaces, >>> but I never note them at the moment. Hopefully, they are less >>> changes >>> between Gambas 3 and Gambas 2 than between Gambas 2 and Gambas 1. >>> >>> So please try and tell us the result! :-) >> >> LOL - ok, I will. I would. If I could. >> >> Downloaded the svn and tried to compile it, it stopps here: >> >> /usr/lib/gcc/i586-suse-linux/4.2.1/../../../../i586-suse-linux/bin/ >> ld: >> cannot find -lqt-mt >> collect2: ld returned 1 exit status >> make[5]: *** [gb.qt.kde.html.la] Fehler 1 >> make[5]: Leaving directory >> `/home/tester/gambastest/trunk/gb.qt.kde/src/html' >> make[4]: *** [all-recursive] Fehler 1 >> make[4]: Leaving directory `/home/tester/gambastest/trunk/gb.qt.kde/ >> src' >> make[3]: *** [all-recursive] Fehler 1 >> make[3]: Leaving directory `/home/tester/gambastest/trunk/gb.qt.kde' >> make[2]: *** [all] Fehler 2 >> make[2]: Leaving directory `/home/tester/gambastest/trunk/gb.qt.kde' >> make[1]: *** [all-recursive] Fehler 1 >> make[1]: Leaving directory `/home/tester/gambastest/trunk' >> make: *** [all] Fehler 2 >> >> Any idea what's wrong here? >> >> There is an older Gambas3 on my system which is running ok, should >> I try >> with that one? Don't know how "old" it is, but it has a Copyright >> until >> 2009 in the help... :-) >> >> Rolf >> > > You cannot install two different gambas 3 on the same machine. Remove > completely the old one. > > And if your linker does not find the qt-mt library, either qt3 is not > installed, either you have a big problem somewhere! > > Regards, > > -- > Beno?t > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San > Francisco, CA > -OSBC tackles the biggest issue in open source: Open Sourcing the > Enterprise > -Strategies to boost innovation and cut costs with open source > participation > -Receive a $600 discount off the registration fee with the source > code: SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From rterry at ...1946... Tue Feb 17 22:28:42 2009 From: rterry at ...1946... (richard terry) Date: Wed, 18 Feb 2009 08:28:42 +1100 Subject: [Gambas-user] Filename as string In-Reply-To: <22057355.post@...1379...> References: <22057355.post@...1379...> Message-ID: <200902180828.43015.rterry@...1946...> On Wed, 18 Feb 2009 12:30:43 am FoxIII wrote: > I am very new to Gambas (and programming in general). I am trying to > retrieve a filename as string from fileview so I can display it on the > screen, but do not seem to be able to manage it. I know this may sound a > bit of a simple request, but for a total beginner, the help files are not > entirely, well, helpful. hehe If you post your code to show what you are attempting and what is failing we can better help you. Regards Richard From nando_f at ...951... Wed Feb 18 00:52:57 2009 From: nando_f at ...951... (nando) Date: Tue, 17 Feb 2009 18:52:57 -0500 Subject: [Gambas-user] Help with some parsing In-Reply-To: <499B36D9.4080709@...1909...> References: <499B36D9.4080709@...1909...> Message-ID: <20090217234817.M46051@...951...> I got a chuckle from this one. A typewriter, those mechanical things that are only in black and white movies and museum actually performed CRLF using that bar to perform the line feed and carriage return. And CR LF comes from that. All the software I write for HTTP, ascii files, When reading, I only look for the LF. If I find a CR, I just ignore it. I have yet to find a case it normally doesn't work with. ---------- Original Message ----------- From: Doriano Blengino To: mailing list for gambas users Sent: Tue, 17 Feb 2009 23:14:49 +0100 Subject: Re: [Gambas-user] Help with some parsing > Emil Tchekov ha scritto: > > CHR$(10) & CHR$(13) - carriage return & line feed > > Those are special "command" character from the "stone age" of the informatic > > used to go to the next line (add new line) - was needed in the times where a > > martix printer with ink ribbon the single output device of the computer > > was.... > > > Pardon me to point out. I disagree, > chr$(13) is CR; chr$(10) is LF. > While it is true they are an old standard, saying they are "from the > stone age" is not fair. HTTP protocol relies on CR-LF, and you must > admit that HTTP protocol is well alive - not a "stone age" standard. The > fact CR-LF is so old is a proof of its power. > Moreover, text files are the most expressive and versatile form of > digital data. Html, Xml, Svg, Postscript, PDF, are all in wide use and > are based on ASCII, and so they contain CR-LF sequences. > > The fact Unix/Linux uses a single LF instead of a CR-LF is pretty > marginal - it was simply a design choice. A windows HTTP server can take > text files from disk and serve them verbatim, while a Unix HTTP server > has to translate them (to add the missing CR). Anyway, the concept is > the same. Most programs today can cope perfectly well with this two > standars. > > In the end, the only thing I wanted to say is that CR and LF are far > more than what you depicted, and they are still needed. > > Regards, > > -- > Doriano Blengino > > "Listen twice before you speak. > This is why we have two ears, but only one mouth." > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA > -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise > -Strategies to boost innovation and cut costs with open source participation > -Receive a $600 discount off the registration fee with the source code: SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From gambas at ...1... Wed Feb 18 00:59:54 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Wed, 18 Feb 2009 00:59:54 +0100 Subject: [Gambas-user] Another surefire crash of Gambas with no error messages Message-ID: <200902180059.54951.gambas@...1...> > This one seems really simple. 1876 > > Run any project > Split the screen vertically and leave it split > Then click the split the screen horizontally button > Gambas will 'disappear', no sig 11, no nothing, just gone. > > regards > > richard Fixed in revision #1877 (Gambas 3). And you got your toolbar buttons for special pasting. But maybe they are too wide... Regards, -- Beno?t From gambas at ...1... Wed Feb 18 01:41:37 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Wed, 18 Feb 2009 01:41:37 +0100 Subject: [Gambas-user] Gambas 2 -> Gambas 3 In-Reply-To: <7DB65400-BE55-4850-AF99-DEDF7358C26E@...1896...> References: <499A6DF9.7010307@...221...> <200902171144.54075.gambas@...1...> <7DB65400-BE55-4850-AF99-DEDF7358C26E@...1896...> Message-ID: <200902180141.37953.gambas@...1...> > Benoit, > > I trying to compile and install Gambas 3 from the svn trunk and I have > the same problem > like Rolf. > > When I start the compilation by: make => I have the same > error on : cannot find -lqt-mt > > I tryed to compile Gambas 3 on Fedora 7 and Fedora 10, and the both > case I have the same problem. > > I verify the library and all it's ok: on Fedora 10 > > [root at ...2073... ~]# ls -l /usr/lib/qt-3.3/lib/ > total 19380 > -rw-r--r-- 1 root root 7897526 oct. 8 15:19 libdesignercore.a > -rw-r--r-- 1 root root 1050 oct. 8 15:18 libdesignercore.prl > -rw-r--r-- 1 root root 509178 oct. 8 15:19 libeditor.a > -rw-r--r-- 1 root root 956 oct. 8 15:18 libeditor.prl > -rw-r--r-- 1 root root 41204 oct. 8 15:19 libqassistantclient.a > -rw-r--r-- 1 root root 967 oct. 8 15:18 libqassistantclient.prl > lrwxrwxrwx 1 root root 15 d?c. 5 02:24 libqsa.so -> libqsa.so. > 1.1.4 > lrwxrwxrwx 1 root root 15 d?c. 5 02:20 libqsa.so.1 -> libqsa.so. > 1.1.4 > lrwxrwxrwx 1 root root 15 d?c. 5 02:20 libqsa.so.1.1 -> > libqsa.so.1.1.4 > -rwxr-xr-x 1 root root 2106324 mars 25 2008 libqsa.so.1.1.4 > -rw-r--r-- 1 root root 964 oct. 8 15:18 libqt-mt.prl > lrwxrwxrwx 1 root root 17 d?c. 5 13:06 libqt-mt.so -> libqt- > mt.so.3.3.8 > lrwxrwxrwx 1 root root 17 d?c. 5 12:38 libqt-mt.so.3 -> libqt- > mt.so.3.3.8 > lrwxrwxrwx 1 root root 17 d?c. 5 12:38 libqt-mt.so.3.3 -> libqt- > mt.so.3.3.8 > -rwxr-xr-x 1 root root 8880140 oct. 8 15:19 libqt-mt.so.3.3.8 > -rw-r--r-- 1 root root 852 oct. 8 15:18 libqui.prl > lrwxrwxrwx 1 root root 15 d?c. 5 13:06 libqui.so -> libqui.so. > 1.0.0 > lrwxrwxrwx 1 root root 15 d?c. 5 12:38 libqui.so.1 -> libqui.so. > 1.0.0 > lrwxrwxrwx 1 root root 15 d?c. 5 12:38 libqui.so.1.0 -> > libqui.so.1.0.0 > -rwxr-xr-x 1 root root 255332 oct. 8 15:19 libqui.so.1.0.0 > > > > Olivier Cruilles > Mail: linuxos at ...1896... > If Redhat puts the Qt library in a strange place, maybe the configure script cannot find it. And if nobody posts the output of configure, fixing that is hard! -- Beno?t From doriano.blengino at ...1909... Wed Feb 18 07:16:20 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Wed, 18 Feb 2009 07:16:20 +0100 Subject: [Gambas-user] Gambas 2 -> Gambas 3 In-Reply-To: <200902180141.37953.gambas@...1...> References: <499A6DF9.7010307@...221...> <200902171144.54075.gambas@...1...> <7DB65400-BE55-4850-AF99-DEDF7358C26E@...1896...> <200902180141.37953.gambas@...1...> Message-ID: <499BA7B4.2090503@...1909...> Beno?t Minisini ha scritto: >> Benoit, >> >> I trying to compile and install Gambas 3 from the svn trunk and I have >> the same problem >> like Rolf. >> >> When I start the compilation by: make => I have the same >> error on : cannot find -lqt-mt >> >> I tryed to compile Gambas 3 on Fedora 7 and Fedora 10, and the both >> case I have the same problem. >> >> I verify the library and all it's ok: on Fedora 10 >> >> [root at ...2073... ~]# ls -l /usr/lib/qt-3.3/lib/ >> total 19380 >> -rw-r--r-- 1 root root 7897526 oct. 8 15:19 libdesignercore.a >> -rw-r--r-- 1 root root 1050 oct. 8 15:18 libdesignercore.prl >> -rw-r--r-- 1 root root 509178 oct. 8 15:19 libeditor.a >> -rw-r--r-- 1 root root 956 oct. 8 15:18 libeditor.prl >> -rw-r--r-- 1 root root 41204 oct. 8 15:19 libqassistantclient.a >> -rw-r--r-- 1 root root 967 oct. 8 15:18 libqassistantclient.prl >> lrwxrwxrwx 1 root root 15 d?c. 5 02:24 libqsa.so -> libqsa.so. >> 1.1.4 >> lrwxrwxrwx 1 root root 15 d?c. 5 02:20 libqsa.so.1 -> libqsa.so. >> 1.1.4 >> lrwxrwxrwx 1 root root 15 d?c. 5 02:20 libqsa.so.1.1 -> >> libqsa.so.1.1.4 >> -rwxr-xr-x 1 root root 2106324 mars 25 2008 libqsa.so.1.1.4 >> -rw-r--r-- 1 root root 964 oct. 8 15:18 libqt-mt.prl >> lrwxrwxrwx 1 root root 17 d?c. 5 13:06 libqt-mt.so -> libqt- >> mt.so.3.3.8 >> lrwxrwxrwx 1 root root 17 d?c. 5 12:38 libqt-mt.so.3 -> libqt- >> mt.so.3.3.8 >> lrwxrwxrwx 1 root root 17 d?c. 5 12:38 libqt-mt.so.3.3 -> libqt- >> mt.so.3.3.8 >> -rwxr-xr-x 1 root root 8880140 oct. 8 15:19 libqt-mt.so.3.3.8 >> -rw-r--r-- 1 root root 852 oct. 8 15:18 libqui.prl >> lrwxrwxrwx 1 root root 15 d?c. 5 13:06 libqui.so -> libqui.so. >> 1.0.0 >> lrwxrwxrwx 1 root root 15 d?c. 5 12:38 libqui.so.1 -> libqui.so. >> 1.0.0 >> lrwxrwxrwx 1 root root 15 d?c. 5 12:38 libqui.so.1.0 -> >> libqui.so.1.0.0 >> -rwxr-xr-x 1 root root 255332 oct. 8 15:19 libqui.so.1.0.0 >> >> >> >> Olivier Cruilles >> Mail: linuxos at ...1896... >> >> > > If Redhat puts the Qt library in a strange place, maybe the configure script > cannot find it. And if nobody posts the output of configure, fixing that is > hard! > > May be a stupid thing, but... I think the ".a" library is needed. One should install the development packages. On my Debian system they are always separated from the normal "runtime packages". I noticed that Redhat used to include some development file even when it was not strictly necessary, but perhaps this has changed. In my system, a ls /usr/lib/qt3-mt* gives: lrwxrwxrwx 1 root root 18 2008-08-23 08:46 /usr/lib/libqtmcop.so.1 -> libqtmcop.so.1.0.0 -rw-r--r-- 1 root root 22984 2007-10-15 18:11 /usr/lib/libqtmcop.so.1.0.0 lrwxrwxrwx 1 root root 17 2008-08-23 08:46 /usr/lib/libqt-mt.so.3 -> libqt-mt.so.3.3.7 lrwxrwxrwx 1 root root 17 2008-08-23 08:46 /usr/lib/libqt-mt.so.3.3 -> libqt-mt.so.3.3.7 -rw-r--r-- 1 root root 8490684 2007-09-27 12:50 /usr/lib/libqt-mt.so.3.3.7 I have the normal "libqt3-mt" package installed. But if I do ls /usr/lib/libpng* I get: -rw-r--r-- 1 root root 177748 2008-04-29 11:24 /usr/lib/libpng12.a lrwxrwxrwx 1 root root 18 2008-08-23 08:47 /usr/lib/libpng12.so -> libpng12.so.0.27.0 lrwxrwxrwx 1 root root 18 2008-08-23 08:46 /usr/lib/libpng12.so.0 -> libpng12.so.0.27.0 -rw-r--r-- 1 root root 141432 2008-04-29 11:24 /usr/lib/libpng12.so.0.27.0 lrwxrwxrwx 1 root root 10 2008-08-23 08:47 /usr/lib/libpng.a -> libpng12.a lrwxrwxrwx 1 root root 11 2008-08-23 08:47 /usr/lib/libpng.so -> libpng12.so and you see those ".a" files. This is because I have the development package for libpng. -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From doriano.blengino at ...1909... Wed Feb 18 08:10:20 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Wed, 18 Feb 2009 08:10:20 +0100 Subject: [Gambas-user] Help with some parsing In-Reply-To: <20090217234817.M46051@...951...> References: <499B36D9.4080709@...1909...> <20090217234817.M46051@...951...> Message-ID: <499BB45C.6080702@...1909...> nando ha scritto: > I got a chuckle from this one. > A typewriter, those mechanical things that are only in black and white movies > and museum actually performed CRLF using that bar to perform the line feed and > carriage return. And CR LF comes from that. > All the software I write for HTTP, ascii files, When reading, I only look for the LF. > If I find a CR, I just ignore it. I have yet to find a case it normally > doesn't work with. > I agree partially with you - I don't like the CR-LF convention: I think that a single LF is enough. But your programs, even if they ignore LF when reading, still use CR-LF when writing (I hope!), otherwise they did not respect the standard. And about the standard... someone in the past said a single LF would be the line terminator. But someone else thought that CR was enough (Apple computers for example, and before, other mainframes like VAX). Then, still someone else thought that neither was good, and used CRLF. If the american DoD, from which our Internet comes, decided CR-LF was the way to go, they too had good reasons, I think, even if I don't know them. I admire so much who invented IP, TCP/IP, FTP, HTTP, that I take for good what they said: CR-LF is the right line terminator even if I don't like it. Pardon me for getting this so hot, I find it difficult to think that CR-LF is bad only because is so old... :-), the only important thing is to cooperate in a common standard. Well: the IP/TCP/HTTP/HTML standard is out there, and it works. It has been developed in full democracy (you know what RFC stands for), and so many different kinds of computer can intercommunicate, thanks to this standard. Do you want to say this is a stupid thing? And finally... I still use what you could call "old museum printers", which need CR *and* LF. There are some around, even if you don't see them... the world is not only made from 4Gb ram computers and 30PPM laser printers... Best regards, and don't get too angry with me... -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From eilert-sprachen at ...221... Wed Feb 18 08:23:08 2009 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Wed, 18 Feb 2009 08:23:08 +0100 Subject: [Gambas-user] Gambas 2 -> Gambas 3 In-Reply-To: <499BA7B4.2090503@...1909...> References: <499A6DF9.7010307@...221...> <200902171144.54075.gambas@...1...> <7DB65400-BE55-4850-AF99-DEDF7358C26E@...1896...> <200902180141.37953.gambas@...1...> <499BA7B4.2090503@...1909...> Message-ID: <499BB75C.5080109@...221...> Doriano Blengino schrieb: > Beno?t Minisini ha scritto: >>> Benoit, >>> >>> I trying to compile and install Gambas 3 from the svn trunk and I have >>> the same problem >>> like Rolf. >>> >>> When I start the compilation by: make => I have the same >>> error on : cannot find -lqt-mt >>> >>> I tryed to compile Gambas 3 on Fedora 7 and Fedora 10, and the both >>> case I have the same problem. >>> >>> I verify the library and all it's ok: on Fedora 10 >>> >>> [root at ...2073... ~]# ls -l /usr/lib/qt-3.3/lib/ >>> total 19380 >>> -rw-r--r-- 1 root root 7897526 oct. 8 15:19 libdesignercore.a >>> -rw-r--r-- 1 root root 1050 oct. 8 15:18 libdesignercore.prl >>> -rw-r--r-- 1 root root 509178 oct. 8 15:19 libeditor.a >>> -rw-r--r-- 1 root root 956 oct. 8 15:18 libeditor.prl >>> -rw-r--r-- 1 root root 41204 oct. 8 15:19 libqassistantclient.a >>> -rw-r--r-- 1 root root 967 oct. 8 15:18 libqassistantclient.prl >>> lrwxrwxrwx 1 root root 15 d?c. 5 02:24 libqsa.so -> libqsa.so. >>> 1.1.4 >>> lrwxrwxrwx 1 root root 15 d?c. 5 02:20 libqsa.so.1 -> libqsa.so. >>> 1.1.4 >>> lrwxrwxrwx 1 root root 15 d?c. 5 02:20 libqsa.so.1.1 -> >>> libqsa.so.1.1.4 >>> -rwxr-xr-x 1 root root 2106324 mars 25 2008 libqsa.so.1.1.4 >>> -rw-r--r-- 1 root root 964 oct. 8 15:18 libqt-mt.prl >>> lrwxrwxrwx 1 root root 17 d?c. 5 13:06 libqt-mt.so -> libqt- >>> mt.so.3.3.8 >>> lrwxrwxrwx 1 root root 17 d?c. 5 12:38 libqt-mt.so.3 -> libqt- >>> mt.so.3.3.8 >>> lrwxrwxrwx 1 root root 17 d?c. 5 12:38 libqt-mt.so.3.3 -> libqt- >>> mt.so.3.3.8 >>> -rwxr-xr-x 1 root root 8880140 oct. 8 15:19 libqt-mt.so.3.3.8 >>> -rw-r--r-- 1 root root 852 oct. 8 15:18 libqui.prl >>> lrwxrwxrwx 1 root root 15 d?c. 5 13:06 libqui.so -> libqui.so. >>> 1.0.0 >>> lrwxrwxrwx 1 root root 15 d?c. 5 12:38 libqui.so.1 -> libqui.so. >>> 1.0.0 >>> lrwxrwxrwx 1 root root 15 d?c. 5 12:38 libqui.so.1.0 -> >>> libqui.so.1.0.0 >>> -rwxr-xr-x 1 root root 255332 oct. 8 15:19 libqui.so.1.0.0 >>> >>> >>> >>> Olivier Cruilles >>> Mail: linuxos at ...1896... >>> >>> >> If Redhat puts the Qt library in a strange place, maybe the configure script >> cannot find it. And if nobody posts the output of configure, fixing that is >> hard! >> >> > May be a stupid thing, but... I think the ".a" library is needed. One > should install the development packages. > On my Debian system they are always separated from the normal "runtime > packages". > I noticed that Redhat used to include some development file even when it > was not strictly necessary, but perhaps this has changed. > > In my system, a ls /usr/lib/qt3-mt* gives: > lrwxrwxrwx 1 root root 18 2008-08-23 08:46 /usr/lib/libqtmcop.so.1 > -> libqtmcop.so.1.0.0 > -rw-r--r-- 1 root root 22984 2007-10-15 18:11 /usr/lib/libqtmcop.so.1.0.0 > lrwxrwxrwx 1 root root 17 2008-08-23 08:46 /usr/lib/libqt-mt.so.3 > -> libqt-mt.so.3.3.7 > lrwxrwxrwx 1 root root 17 2008-08-23 08:46 /usr/lib/libqt-mt.so.3.3 > -> libqt-mt.so.3.3.7 > -rw-r--r-- 1 root root 8490684 2007-09-27 12:50 /usr/lib/libqt-mt.so.3.3.7 > > I have the normal "libqt3-mt" package installed. But if I do ls > /usr/lib/libpng* I get: > -rw-r--r-- 1 root root 177748 2008-04-29 11:24 /usr/lib/libpng12.a > lrwxrwxrwx 1 root root 18 2008-08-23 08:47 /usr/lib/libpng12.so -> > libpng12.so.0.27.0 > lrwxrwxrwx 1 root root 18 2008-08-23 08:46 /usr/lib/libpng12.so.0 -> > libpng12.so.0.27.0 > -rw-r--r-- 1 root root 141432 2008-04-29 11:24 /usr/lib/libpng12.so.0.27.0 > lrwxrwxrwx 1 root root 10 2008-08-23 08:47 /usr/lib/libpng.a -> > libpng12.a > lrwxrwxrwx 1 root root 11 2008-08-23 08:47 /usr/lib/libpng.so -> > libpng12.so > > and you see those ".a" files. This is because I have the development > package for libpng. > > > Yep, the first one isn't on my system: server03:~ # ls /usr/lib/qt3-mt* ls: cannot access /usr/lib/qt3-mt*: No such file or directory server03:~ # ls /usr/lib/libpng* /usr/lib/libpng.a /usr/lib/libpng.so /usr/lib/libpng.so.3.18.0 /usr/lib/libpng12.la /usr/lib/libpng12.so.0 /usr/lib/libpng.la /usr/lib/libpng.so.3 /usr/lib/libpng12.a /usr/lib/libpng12.so /usr/lib/libpng12.so.0.18.0 I only wonder how I could compile Gambas3 a few weeks ago - it's there, it's running fine... From emil at ...1913... Wed Feb 18 08:02:34 2009 From: emil at ...1913... (Emil Tchekov) Date: Wed, 18 Feb 2009 08:02:34 +0100 Subject: [Gambas-user] Help with some parsing In-Reply-To: <499B36D9.4080709@...1909...> Message-ID: Hello Doriano, I have to excuse me - it was never my intention to insult your, as it seems deeper going feelings, regarding this particular 2 Bytes :-D Ofcourse you are right - they are (and will be in the future also) still in use... But here is the point where I do not agree with you: I do not know how old are you... My first "date" with CR&LF was on my very expensive (>4000 USD) Apple ][ with the huge ammount of 48 KB RAM, 16 KB ROM, 144 KB Floppy Disk and rare extension - Video Card allowing me to work with 80x25 chars instead of the usual 40x25 ... Not to mention the extraordinary calculation power based on the 1 MHz 6502 CPU ;-). So please excuse when I am calling this "stone age", but my very simple mobile phone laying in my pocket offers 2 GB of storing capacity on volume that the old Apple used to store about 16KB and about 300 MHz RISC based power... It was not a try to reduce the meaning and importance of those command chars - but simply to show how long they are in use... Very best regards And one more time excuse my lack of respect Emil Tchekov -----Ursprungliche Nachricht----- Von: Doriano Blengino [mailto:doriano.blengino at ...1909...] Gesendet: Dienstag, 17. Februar 2009 23:15 An: mailing list for gambas users Betreff: Re: [Gambas-user] Help with some parsing Emil Tchekov ha scritto: > CHR$(10) & CHR$(13) - carriage return & line feed > Those are special "command" character from the "stone age" of the informatic > used to go to the next line (add new line) - was needed in the times where a > martix printer with ink ribbon the single output device of the computer > was.... > Pardon me to point out. I disagree, chr$(13) is CR; chr$(10) is LF. While it is true they are an old standard, saying they are "from the stone age" is not fair. HTTP protocol relies on CR-LF, and you must admit that HTTP protocol is well alive - not a "stone age" standard. The fact CR-LF is so old is a proof of its power. Moreover, text files are the most expressive and versatile form of digital data. Html, Xml, Svg, Postscript, PDF, are all in wide use and are based on ASCII, and so they contain CR-LF sequences. The fact Unix/Linux uses a single LF instead of a CR-LF is pretty marginal - it was simply a design choice. A windows HTTP server can take text files from disk and serve them verbatim, while a Unix HTTP server has to translate them (to add the missing CR). Anyway, the concept is the same. Most programs today can cope perfectly well with this two standars. In the end, the only thing I wanted to say is that CR and LF are far more than what you depicted, and they are still needed. Regards, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." ---------------------------------------------------------------------------- -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From eilert-sprachen at ...221... Wed Feb 18 08:54:47 2009 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Wed, 18 Feb 2009 08:54:47 +0100 Subject: [Gambas-user] Gambas 2 -> Gambas 3 In-Reply-To: <200902180141.37953.gambas@...1...> References: <499A6DF9.7010307@...221...> <200902171144.54075.gambas@...1...> <7DB65400-BE55-4850-AF99-DEDF7358C26E@...1896...> <200902180141.37953.gambas@...1...> Message-ID: <499BBEC7.5000800@...221...> Beno?t Minisini schrieb: >> Benoit, >> >> I trying to compile and install Gambas 3 from the svn trunk and I have >> the same problem >> like Rolf. >> >> When I start the compilation by: make => I have the same >> error on : cannot find -lqt-mt >> >> I tryed to compile Gambas 3 on Fedora 7 and Fedora 10, and the both >> case I have the same problem. >> >> I verify the library and all it's ok: on Fedora 10 >> >> [root at ...2073... ~]# ls -l /usr/lib/qt-3.3/lib/ >> total 19380 >> -rw-r--r-- 1 root root 7897526 oct. 8 15:19 libdesignercore.a >> -rw-r--r-- 1 root root 1050 oct. 8 15:18 libdesignercore.prl >> -rw-r--r-- 1 root root 509178 oct. 8 15:19 libeditor.a >> -rw-r--r-- 1 root root 956 oct. 8 15:18 libeditor.prl >> -rw-r--r-- 1 root root 41204 oct. 8 15:19 libqassistantclient.a >> -rw-r--r-- 1 root root 967 oct. 8 15:18 libqassistantclient.prl >> lrwxrwxrwx 1 root root 15 d?c. 5 02:24 libqsa.so -> libqsa.so. >> 1.1.4 >> lrwxrwxrwx 1 root root 15 d?c. 5 02:20 libqsa.so.1 -> libqsa.so. >> 1.1.4 >> lrwxrwxrwx 1 root root 15 d?c. 5 02:20 libqsa.so.1.1 -> >> libqsa.so.1.1.4 >> -rwxr-xr-x 1 root root 2106324 mars 25 2008 libqsa.so.1.1.4 >> -rw-r--r-- 1 root root 964 oct. 8 15:18 libqt-mt.prl >> lrwxrwxrwx 1 root root 17 d?c. 5 13:06 libqt-mt.so -> libqt- >> mt.so.3.3.8 >> lrwxrwxrwx 1 root root 17 d?c. 5 12:38 libqt-mt.so.3 -> libqt- >> mt.so.3.3.8 >> lrwxrwxrwx 1 root root 17 d?c. 5 12:38 libqt-mt.so.3.3 -> libqt- >> mt.so.3.3.8 >> -rwxr-xr-x 1 root root 8880140 oct. 8 15:19 libqt-mt.so.3.3.8 >> -rw-r--r-- 1 root root 852 oct. 8 15:18 libqui.prl >> lrwxrwxrwx 1 root root 15 d?c. 5 13:06 libqui.so -> libqui.so. >> 1.0.0 >> lrwxrwxrwx 1 root root 15 d?c. 5 12:38 libqui.so.1 -> libqui.so. >> 1.0.0 >> lrwxrwxrwx 1 root root 15 d?c. 5 12:38 libqui.so.1.0 -> >> libqui.so.1.0.0 >> -rwxr-xr-x 1 root root 255332 oct. 8 15:19 libqui.so.1.0.0 >> >> >> >> Olivier Cruilles >> Mail: linuxos at ...1896... >> > > If Redhat puts the Qt library in a strange place, maybe the configure script > cannot find it. And if nobody posts the output of configure, fixing that is > hard! > Ok, after some investigation I found it, on my Suse it's here: tester at ...1924...:/usr/lib/qt3/lib> ls -l /usr/lib/qt3/lib insgesamt 15124 -rw-r--r-- 1 root root 6795210 22. Sep 2007 libdesignercore.a -rw-r--r-- 1 root root 1046 22. Sep 2007 libdesignercore.prl -rw-r--r-- 1 root root 446210 22. Sep 2007 libeditor.a -rw-r--r-- 1 root root 951 22. Sep 2007 libeditor.prl -rw-r--r-- 1 root root 536558 11. Feb 2008 libqassistantclient.a -rw-r--r-- 1 root root 896 11. Feb 2008 libqassistantclient.prl lrwxrwxrwx 1 root root 15 3. M?r 2008 libqca.so.1 -> libqca.so.1.0.0 lrwxrwxrwx 1 root root 15 3. M?r 2008 libqca.so.1.0 -> libqca.so.1.0.0 -rwxr-xr-x 1 root root 84124 22. Sep 2007 libqca.so.1.0.0 -rw-r--r-- 1 root root 824 11. Feb 2008 libqt-mt.la -rw-r--r-- 1 root root 865 11. Feb 2008 libqt-mt.prl lrwxrwxrwx 1 root root 17 4. M?r 2008 libqt-mt.so -> libqt-mt.so.3.3.8 lrwxrwxrwx 1 root root 17 4. M?r 2008 libqt-mt.so.3 -> libqt-mt.so.3.3.8 lrwxrwxrwx 1 root root 17 4. M?r 2008 libqt-mt.so.3.3 -> libqt-mt.so.3.3.8 -rwxr-xr-x 1 root root 7350548 11. Feb 2008 libqt-mt.so.3.3.8 -rw-r--r-- 1 root root 753 11. Feb 2008 libqui.prl lrwxrwxrwx 1 root root 15 4. M?r 2008 libqui.so -> libqui.so.1.0.0 lrwxrwxrwx 1 root root 15 4. M?r 2008 libqui.so.1 -> libqui.so.1.0.0 lrwxrwxrwx 1 root root 15 4. M?r 2008 libqui.so.1.0 -> libqui.so.1.0.0 -rwxr-xr-x 1 root root 204328 11. Feb 2008 libqui.so.1.0.0 Regards Rolf From leonardo at ...1237... Wed Feb 18 10:15:29 2009 From: leonardo at ...1237... (Leonardo Miliani) Date: Wed, 18 Feb 2009 10:15:29 +0100 Subject: [Gambas-user] IDE improvement Message-ID: <499BD1B1.3080106@...1237...> I would suggest a little IDE improvement... I think that it should be useful and clearer to change the state of the cursor icon to "busy" then we compile a project so that the user can clearly see when the operations terminates. Now the only way to know when the operation ends is to look at the status bar in he bottom left corner and wait for the message "compilation... (etc)" disappears. -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Scegli software opensource - Choose opensource software Co-fondatore di Gambas-it.org Il sito di riferimento della comunit? italiana degli utenti di Gambas www.gambas-it.org From afroehlke at ...784... Wed Feb 18 11:01:24 2009 From: afroehlke at ...784... (=?iso-8859-1?Q?Andreas_Fr=F6hlke?=) Date: Wed, 18 Feb 2009 11:01:24 +0100 Subject: [Gambas-user] Gambas 2.11.1 Ubuntu 8.xx Socket Problem In-Reply-To: <200902150841.00932.rterry@...1946...> References: <200902150841.00932.rterry@...1946...> Message-ID: <8D42310D957CFB46AA11921A711D4D16022172116D@...1899...> Hello, we use a pc with ubuntu 8.10 and gambas v2.11.1. If the application just connect over a socket to a server, the CPU-usage will go up to 13% for only this one gbx2 process. So at only 8 opened applications, that will connect to a server, the CPU useage is up to 100%. The same problem appears on ubuntu 8.04. In news "29 Dec 2008 - Release of Gambas 2.10" is written "Sockets will not take 100% CPU anymore.", but it seems, that it already do so. Anyone has an solution? Regards A.Fr?hlke -------------- next part -------------- A non-text attachment was scrubbed... Name: NetzwerkTest.zip Type: application/x-zip-compressed Size: 9353 bytes Desc: NetzwerkTest.zip URL: From eilert-sprachen at ...221... Wed Feb 18 11:08:55 2009 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Wed, 18 Feb 2009 11:08:55 +0100 Subject: [Gambas-user] Gambas 2 -> Gambas 3 In-Reply-To: <200902180141.37953.gambas@...1...> References: <499A6DF9.7010307@...221...> <200902171144.54075.gambas@...1...> <7DB65400-BE55-4850-AF99-DEDF7358C26E@...1896...> <200902180141.37953.gambas@...1...> Message-ID: <499BDE37.7050106@...221...> Beno?t Minisini schrieb: >> Benoit, >> >> I trying to compile and install Gambas 3 from the svn trunk and I have >> the same problem >> like Rolf. >> >> When I start the compilation by: make => I have the same >> error on : cannot find -lqt-mt >> >> I tryed to compile Gambas 3 on Fedora 7 and Fedora 10, and the both >> case I have the same problem. >> >> I verify the library and all it's ok: on Fedora 10 >> >> [root at ...2073... ~]# ls -l /usr/lib/qt-3.3/lib/ >> total 19380 >> -rw-r--r-- 1 root root 7897526 oct. 8 15:19 libdesignercore.a >> -rw-r--r-- 1 root root 1050 oct. 8 15:18 libdesignercore.prl >> -rw-r--r-- 1 root root 509178 oct. 8 15:19 libeditor.a >> -rw-r--r-- 1 root root 956 oct. 8 15:18 libeditor.prl >> -rw-r--r-- 1 root root 41204 oct. 8 15:19 libqassistantclient.a >> -rw-r--r-- 1 root root 967 oct. 8 15:18 libqassistantclient.prl >> lrwxrwxrwx 1 root root 15 d?c. 5 02:24 libqsa.so -> libqsa.so. >> 1.1.4 >> lrwxrwxrwx 1 root root 15 d?c. 5 02:20 libqsa.so.1 -> libqsa.so. >> 1.1.4 >> lrwxrwxrwx 1 root root 15 d?c. 5 02:20 libqsa.so.1.1 -> >> libqsa.so.1.1.4 >> -rwxr-xr-x 1 root root 2106324 mars 25 2008 libqsa.so.1.1.4 >> -rw-r--r-- 1 root root 964 oct. 8 15:18 libqt-mt.prl >> lrwxrwxrwx 1 root root 17 d?c. 5 13:06 libqt-mt.so -> libqt- >> mt.so.3.3.8 >> lrwxrwxrwx 1 root root 17 d?c. 5 12:38 libqt-mt.so.3 -> libqt- >> mt.so.3.3.8 >> lrwxrwxrwx 1 root root 17 d?c. 5 12:38 libqt-mt.so.3.3 -> libqt- >> mt.so.3.3.8 >> -rwxr-xr-x 1 root root 8880140 oct. 8 15:19 libqt-mt.so.3.3.8 >> -rw-r--r-- 1 root root 852 oct. 8 15:18 libqui.prl >> lrwxrwxrwx 1 root root 15 d?c. 5 13:06 libqui.so -> libqui.so. >> 1.0.0 >> lrwxrwxrwx 1 root root 15 d?c. 5 12:38 libqui.so.1 -> libqui.so. >> 1.0.0 >> lrwxrwxrwx 1 root root 15 d?c. 5 12:38 libqui.so.1.0 -> >> libqui.so.1.0.0 >> -rwxr-xr-x 1 root root 255332 oct. 8 15:19 libqui.so.1.0.0 >> >> >> >> Olivier Cruilles >> Mail: linuxos at ...1896... >> > > If Redhat puts the Qt library in a strange place, maybe the configure script > cannot find it. And if nobody posts the output of configure, fixing that is > hard! > Benoit, I wanted to post my configure etc. output, but the list refused to publish it because it's too big, waiting for the admin... Either you pick this mail from there or I'll send it to you as PM. Please advise. Regards Rolf From ronstk at ...239... Wed Feb 18 11:18:35 2009 From: ronstk at ...239... (Ron_1st) Date: Wed, 18 Feb 2009 11:18:35 +0100 Subject: [Gambas-user] Gambas 2 -> Gambas 3 In-Reply-To: <200902180141.37953.gambas@...1...> References: <499A6DF9.7010307@...221...> <7DB65400-BE55-4850-AF99-DEDF7358C26E@...1896...> <200902180141.37953.gambas@...1...> Message-ID: <200902181118.36599.ronstk@...239...> On Wednesday 18 February 2009, Beno?t Minisini wrote: > > Benoit, > > > > I trying to compile and install Gambas 3 from the svn trunk and I have > > the same problem > > like Rolf. > > > > When I start the compilation by: make => I have the same > > error on : cannot find -lqt-mt > > > > I tryed to compile Gambas 3 on Fedora 7 and Fedora 10, and the both > > case I have the same problem. > > > > I verify the library and all it's ok: on Fedora 10 > > > > [root at ...2073... ~]# ls -l /usr/lib/qt-3.3/lib/ > > total 19380 > > -rw-r--r-- 1 root root 7897526 oct. 8 15:19 libdesignercore.a > > -rw-r--r-- 1 root root 1050 oct. 8 15:18 libdesignercore.prl > > -rw-r--r-- 1 root root 509178 oct. 8 15:19 libeditor.a > > -rw-r--r-- 1 root root 956 oct. 8 15:18 libeditor.prl > > -rw-r--r-- 1 root root 41204 oct. 8 15:19 libqassistantclient.a > > -rw-r--r-- 1 root root 967 oct. 8 15:18 libqassistantclient.prl > > lrwxrwxrwx 1 root root 15 d?c. 5 02:24 libqsa.so -> libqsa.so. > > 1.1.4 > > lrwxrwxrwx 1 root root 15 d?c. 5 02:20 libqsa.so.1 -> libqsa.so. > > 1.1.4 > > lrwxrwxrwx 1 root root 15 d?c. 5 02:20 libqsa.so.1.1 -> > > libqsa.so.1.1.4 > > -rwxr-xr-x 1 root root 2106324 mars 25 2008 libqsa.so.1.1.4 > > -rw-r--r-- 1 root root 964 oct. 8 15:18 libqt-mt.prl > > lrwxrwxrwx 1 root root 17 d?c. 5 13:06 libqt-mt.so -> libqt- > > mt.so.3.3.8 > > lrwxrwxrwx 1 root root 17 d?c. 5 12:38 libqt-mt.so.3 -> libqt- > > mt.so.3.3.8 > > lrwxrwxrwx 1 root root 17 d?c. 5 12:38 libqt-mt.so.3.3 -> libqt- > > mt.so.3.3.8 > > -rwxr-xr-x 1 root root 8880140 oct. 8 15:19 libqt-mt.so.3.3.8 > > -rw-r--r-- 1 root root 852 oct. 8 15:18 libqui.prl > > lrwxrwxrwx 1 root root 15 d?c. 5 13:06 libqui.so -> libqui.so. > > 1.0.0 > > lrwxrwxrwx 1 root root 15 d?c. 5 12:38 libqui.so.1 -> libqui.so. > > 1.0.0 > > lrwxrwxrwx 1 root root 15 d?c. 5 12:38 libqui.so.1.0 -> > > libqui.so.1.0.0 > > -rwxr-xr-x 1 root root 255332 oct. 8 15:19 libqui.so.1.0.0 > > > > > > > > Olivier Cruilles > > Mail: linuxos at ...1896... > > > > If Redhat puts the Qt library in a strange place, maybe the configure script > cannot find it. And if nobody posts the output of configure, fixing that is > hard! > From ronstk at ...239... Wed Feb 18 11:31:38 2009 From: ronstk at ...239... (Ron_1st) Date: Wed, 18 Feb 2009 11:31:38 +0100 Subject: [Gambas-user] Gambas 2 -> Gambas 3 In-Reply-To: <200902180838.38780.rterry@...1946...> References: <499A6DF9.7010307@...221...> <499A9481.6080003@...221...> <200902180838.38780.rterry@...1946...> Message-ID: <200902181131.39457.ronstk@...239...> On Tuesday 17 February 2009, richard terry wrote: > On Tue, 17 Feb 2009 09:42:09 pm Rolf-Werner Eilert wrote: > > Beno?t Minisini schrieb: > > >> Good morning Benoit (and everyone) > > >> > > >> Just came about a question: When I want to bring my Gambas2 app to > > >> Gambas3, will this be as roundabout as it is from Gambas1 to Gambas2? > > >> (Creating new forms and converting the code...) Or is it more upward > > >> compatible? > > >> > > >> The reason for asking this is that you told me that you would just > > >> maintain bugfixes in Gambas2 and bring changes only to Gambas3. As I'm > > >> still maintaining some bigger Gambas1 projects, I would then migrate > > >> them to Gambas3 directly rather than having them under Gambas2 - if it's > > >> as much work again... > > >> > > >> Hope I could make clear what I mean... > > >> > > >> Regards > > >> > > >> Rolf > > > > > > The weirdest thing between Gambas 2 and Gambas 3 at the moment is > > > Desktop.Scale, that is smaller in Gambas 3. > > > > > > Gambas 3 does a little conversion for controls whose W and H <= 3 * > > > Desktop.Scale (it adds one Desktop.Scale), but you have to update all > > > your forms and check them one by one to redesign them. > > > > > > There are many other changes in instruction syntax and class interfaces, > > > but I never note them at the moment. Hopefully, they are less changes > > > between Gambas 3 and Gambas 2 than between Gambas 2 and Gambas 1. > > > > > > So please try and tell us the result! :-) > > > > LOL - ok, I will. I would. If I could. > > > > Downloaded the svn and tried to compile it, it stopps here: > > > > /usr/lib/gcc/i586-suse-linux/4.2.1/../../../../i586-suse-linux/bin/ld: > > cannot find -lqt-mt > > collect2: ld returned 1 exit status > > make[5]: *** [gb.qt.kde.html.la] Fehler 1 > > make[5]: Leaving directory > > `/home/tester/gambastest/trunk/gb.qt.kde/src/html' > > make[4]: *** [all-recursive] Fehler 1 > > make[4]: Leaving directory `/home/tester/gambastest/trunk/gb.qt.kde/src' > > make[3]: *** [all-recursive] Fehler 1 > > make[3]: Leaving directory `/home/tester/gambastest/trunk/gb.qt.kde' > > make[2]: *** [all] Fehler 2 > > make[2]: Leaving directory `/home/tester/gambastest/trunk/gb.qt.kde' > > make[1]: *** [all-recursive] Fehler 1 > > make[1]: Leaving directory `/home/tester/gambastest/trunk' > > make: *** [all] Fehler 2 And here I have seen the same problem but without abort. and be able to do make install and that does also not fail but gives warnings and the final result does not work. (after reading log files line by line and looks intermittent yes/no) # gambas3 Error in form.XXX "Cant find 'Project file'" bla bla > > > > Any idea what's wrong here? > > I compile the svn daily, and I had the exact same problem which appeared > suddenly a month ago and my previous scripts for compiling gambas3 stopped > working, despite the fact that the appropriate libraries seemed to be on my > machine, and in theory the pathways were as well. > > Now the sad part. > > After days and days of searching every forum on the internet I found a > solution which I can't remember. > > But the potential good news, its contained within my PKGBUILD file which I use > to compile the package with, so I've enclosed it. I think..... and not sure, > that it was this line: > > make LDFLAGS+=-L/opt/qt/lib > > that I included in the script which made the difference. > > Hope this helps. > > Richard > > > > > > There is an older Gambas3 on my system which is running ok, should I try > > with that one? Don't know how "old" it is, but it has a Copyright until > > 2009 in the help... :-) > > > > Rolf So i'm not the only one that has problems. No body else did respond except charlie with a log on his system. ron at ...1311...:~$ locate libqtmc kubuntu 8.04 LTS (long term support) /usr/lib/libqtmcop.a /usr/lib/libqtmcop.la /usr/lib/libqtmcop.so /usr/lib/libqtmcop.so.1 /usr/lib/libqtmcop.so.1.0.0 Best regards, Ron_1st -- A: Delete the text you reply on. Q: What to do to get my post on top? --- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? --- A: Top-posting. Q: What is the most annoying thing in e-mail? From daniel at ...2071... Wed Feb 18 13:01:48 2009 From: daniel at ...2071... (FoxIII) Date: Wed, 18 Feb 2009 04:01:48 -0800 (PST) Subject: [Gambas-user] Filename as string In-Reply-To: <200902180828.43015.rterry@...1946...> References: <22057355.post@...1379...> <200902180828.43015.rterry@...1946...> Message-ID: <22077161.post@...1379...> I have managed to sort this out now. I am using the code; TextBox1.Text = File.Dir(Dialog.path) & "/" & File.Name(Dialog.path) But (and I don't know if I should start a new topic or not) I am curious as to how to run a command from gambas. For example, when you are installing a 'deb' file, you get a window displaying what is happening with the install rather than seeing it through the command line. richard terry-5 wrote: > > On Wed, 18 Feb 2009 12:30:43 am FoxIII wrote: >> I am very new to Gambas (and programming in general). I am trying to >> retrieve a filename as string from fileview so I can display it on the >> screen, but do not seem to be able to manage it. I know this may sound a >> bit of a simple request, but for a total beginner, the help files are not >> entirely, well, helpful. hehe > > If you post your code to show what you are attempting and what is failing > we > can better help you. > > Regards > > Richard > > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, > CA > -OSBC tackles the biggest issue in open source: Open Sourcing the > Enterprise > -Strategies to boost innovation and cut costs with open source > participation > -Receive a $600 discount off the registration fee with the source code: > SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://www.nabble.com/Filename-as-string-tp22057355p22077161.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Wed Feb 18 14:15:28 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Wed, 18 Feb 2009 14:15:28 +0100 Subject: [Gambas-user] Help with some parsing In-Reply-To: <499BB45C.6080702@...1909...> References: <20090217234817.M46051@...951...> <499BB45C.6080702@...1909...> Message-ID: <200902181415.29167.gambas@...1...> > nando ha scritto: > > I got a chuckle from this one. > > A typewriter, those mechanical things that are only in black and white > > movies and museum actually performed CRLF using that bar to perform the > > line feed and carriage return. And CR LF comes from that. > > All the software I write for HTTP, ascii files, When reading, I only look > > for the LF. If I find a CR, I just ignore it. I have yet to find a case > > it normally doesn't work with. > > I agree partially with you - I don't like the CR-LF convention: I think > that a single LF is enough. > But your programs, even if they ignore LF when reading, still use CR-LF > when writing (I hope!), otherwise they did not respect the standard. > > And about the standard... someone in the past said a single LF would be > the line terminator. But someone else thought that CR was enough (Apple > computers for example, and before, other mainframes like VAX). Then, > still someone else thought that neither was good, and used CRLF. If the > american DoD, from which our Internet comes, decided CR-LF was the way > to go, they too had good reasons, I think, even if I don't know them. I > admire so much who invented IP, TCP/IP, FTP, HTTP, that I take for good > what they said: CR-LF is the right line terminator even if I don't like it. > Maybe this is the reason why they decided to use CR-LF. This way, lines can be easily interpreted on Unix, Windows, and MacOS. Choosing just CR or just LF whould have done things more difficult for the two other OS. Just my 2 cents. -- Beno?t From gambas at ...1... Wed Feb 18 15:35:05 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Wed, 18 Feb 2009 15:35:05 +0100 Subject: [Gambas-user] IDE improvement In-Reply-To: <499BD1B1.3080106@...1237...> References: <499BD1B1.3080106@...1237...> Message-ID: <200902181535.05723.gambas@...1...> > I would suggest a little IDE improvement... > I think that it should be useful and clearer to change the state of the > cursor icon to "busy" then we compile a project so that the user can > clearly see when the operations terminates. > Now the only way to know when the operation ends is to look at the > status bar in he bottom left corner and wait for the message > "compilation... (etc)" disappears. The cursor icon *is* changed to "busy" when you compile the project. You don't have to wait for the message to disappear. As soon as you don't see the busy cursor anymore, the compilation is finished. Or maybe the compiler is too fast? :-) -- Beno?t From gambas at ...1... Wed Feb 18 15:37:38 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Wed, 18 Feb 2009 15:37:38 +0100 Subject: [Gambas-user] Gambas 2 -> Gambas 3 In-Reply-To: <200902181118.36599.ronstk@...239...> References: <499A6DF9.7010307@...221...> <200902180141.37953.gambas@...1...> <200902181118.36599.ronstk@...239...> Message-ID: <200902181537.38556.gambas@...1...> > On Wednesday 18 February 2009, Beno?t Minisini wrote: > > > Benoit, > > > > > > I trying to compile and install Gambas 3 from the svn trunk and I have > > > the same problem > > > like Rolf. > > > > > > When I start the compilation by: make => I have the same > > > error on : cannot find -lqt-mt > > > > > > I tryed to compile Gambas 3 on Fedora 7 and Fedora 10, and the both > > > case I have the same problem. > > > > > > I verify the library and all it's ok: on Fedora 10 > > > > > > [root at ...2073... ~]# ls -l /usr/lib/qt-3.3/lib/ > > > total 19380 > > > -rw-r--r-- 1 root root 7897526 oct. 8 15:19 libdesignercore.a > > > -rw-r--r-- 1 root root 1050 oct. 8 15:18 libdesignercore.prl > > > -rw-r--r-- 1 root root 509178 oct. 8 15:19 libeditor.a > > > -rw-r--r-- 1 root root 956 oct. 8 15:18 libeditor.prl > > > -rw-r--r-- 1 root root 41204 oct. 8 15:19 libqassistantclient.a > > > -rw-r--r-- 1 root root 967 oct. 8 15:18 libqassistantclient.prl > > > lrwxrwxrwx 1 root root 15 d?c. 5 02:24 libqsa.so -> libqsa.so. > > > 1.1.4 > > > lrwxrwxrwx 1 root root 15 d?c. 5 02:20 libqsa.so.1 -> libqsa.so. > > > 1.1.4 > > > lrwxrwxrwx 1 root root 15 d?c. 5 02:20 libqsa.so.1.1 -> > > > libqsa.so.1.1.4 > > > -rwxr-xr-x 1 root root 2106324 mars 25 2008 libqsa.so.1.1.4 > > > -rw-r--r-- 1 root root 964 oct. 8 15:18 libqt-mt.prl > > > lrwxrwxrwx 1 root root 17 d?c. 5 13:06 libqt-mt.so -> libqt- > > > mt.so.3.3.8 > > > lrwxrwxrwx 1 root root 17 d?c. 5 12:38 libqt-mt.so.3 -> libqt- > > > mt.so.3.3.8 > > > lrwxrwxrwx 1 root root 17 d?c. 5 12:38 libqt-mt.so.3.3 -> libqt- > > > mt.so.3.3.8 > > > -rwxr-xr-x 1 root root 8880140 oct. 8 15:19 libqt-mt.so.3.3.8 > > > -rw-r--r-- 1 root root 852 oct. 8 15:18 libqui.prl > > > lrwxrwxrwx 1 root root 15 d?c. 5 13:06 libqui.so -> libqui.so. > > > 1.0.0 > > > lrwxrwxrwx 1 root root 15 d?c. 5 12:38 libqui.so.1 -> libqui.so. > > > 1.0.0 > > > lrwxrwxrwx 1 root root 15 d?c. 5 12:38 libqui.so.1.0 -> > > > libqui.so.1.0.0 > > > -rwxr-xr-x 1 root root 255332 oct. 8 15:19 libqui.so.1.0.0 > > > > > > > > > > > > Olivier Cruilles > > > Mail: linuxos at ...1896... > > > > If Redhat puts the Qt library in a strange place, maybe the configure > > script cannot find it. And if nobody posts the output of configure, > > fixing that is hard! > > From the problems I have it did look to me something with qt was failing. > In the configure there is/was no mention about qt-mt > but in the log from 'make' it occurs on some parts related to gb.gt.xxxx > I did give you those logs also the ones from make install with the -v flag > for the gbi calls. > I commented even the place in that special log where the gbi -v was > aborted. Never got a hint from that action you requested me to do with -v > flag. > > It may be not exact the same problem but strong related in my view > by reading my log files line by line. > > The compare for diffs between kubuntu8.04 - kubuntu-8.10 and your mandrake > was interesting but not effective. > However we din never look to where the diffs where for the qt libs and > that is interesting to. > kubuntu 8.04 based on qt3 kde3 > kubuntu 8.10 based on qt4 kde4 > > I did see in the 'make' log references for gcc for lib paths to lib/qt4 > > Attached the result for 'locate qt3' (removed the /user/share/doc lines) > > So I did give up, live goes on for you and me. > > > ron at ...1311...:~$ locate libqt-mt > > pclinux-2007 mounted at /mnt/sda2 > > /mnt/sda2/usr/lib/qt3/lib/libqt-mt.la > /mnt/sda2/usr/lib/qt3/lib/libqt-mt.prl > /mnt/sda2/usr/lib/qt3/lib/libqt-mt.so.3 > /mnt/sda2/usr/lib/qt3/lib/libqt-mt.so.3.3 > /mnt/sda2/usr/lib/qt3/lib/libqt-mt.so.3.3.8 > > > kubuntu-8.04 > > /usr/lib/libqt-mt.la > /usr/lib/libqt-mt.prl > /usr/lib/libqt-mt.so > /usr/lib/libqt-mt.so.3 > /usr/lib/libqt-mt.so.3.3 > /usr/lib/libqt-mt.so.3.3.8 > /usr/share/qt3/lib/libqt-mt.la > /usr/share/qt3/lib/libqt-mt.prl > /usr/share/qt3/lib/libqt-mt.so > /usr/share/qt3/lib/libqt-mt.so.3 > /usr/share/qt3/lib/libqt-mt.so.3.3 > > > > Best regards, > > Ron_1st Do you know why there is libqt-mt.so.3.* at two different places on your system? (/usr/lib and /usr/share/qt3/lib) -- Beno?t From david_villalobos_c at ...43... Wed Feb 18 16:09:03 2009 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Wed, 18 Feb 2009 07:09:03 -0800 (PST) Subject: [Gambas-user] Gambas 2 -> Gambas 3 References: <499A6DF9.7010307@...221...> <200902180141.37953.gambas@...1...> <200902181118.36599.ronstk@...239...> <200902181537.38556.gambas@...1...> Message-ID: <408934.79780.qm@...1657...> Hi, it happened to me some day ago, there is what I did to fix it. # ln -s /usr/lib/qt3/lib64/libqt-mt.so.3.3.8 /usr/lib64/libqt-mt.so.3.3.8 # ln -s /usr/lib/qt3/lib64/libqt-mt.so.3.3.8 /usr/lib64/libqt-mt.so.3.3 # ln -s /usr/lib/qt3/lib64/libqt-mt.so.3.3.8 /usr/lib64/libqt-mt.so.3 # ln -s /usr/lib/qt3/lib64/libqt-mt.so.3.3.8 /usr/lib64/libqt-mt.so And just be aware that my system is 64 Bits. By the way, I agree with Ron. I my case Gambas 3 compiles fine, but suddenly it crash in the make process telling me the problem about qt-mt, I try to fin the lib with kfind and realize that libqt-mt was unaccessible, could be Gambas involved? Regards -- David ----- Original Message ---- From: Beno?t Minisini To: mailing list for gambas users Sent: Wednesday, February 18, 2009 8:37:38 AM Subject: Re: [Gambas-user] Gambas 2 -> Gambas 3 > On Wednesday 18 February 2009, Beno?t Minisini wrote: > > > Benoit, > > > > > > I trying to compile and install Gambas 3 from the svn trunk and I have > > > the same problem > > > like Rolf. > > > > > > When I start the compilation by: make => I have the same > > > error on : cannot find -lqt-mt > > > > > > I tryed to compile Gambas 3 on Fedora 7 and Fedora 10, and the both > > > case I have the same problem. > > > > > > I verify the library and all it's ok: on Fedora 10 > > > > > > [root at ...2073... ~]# ls -l /usr/lib/qt-3.3/lib/ > > > total 19380 > > > -rw-r--r-- 1 root root 7897526 oct. 8 15:19 libdesignercore.a > > > -rw-r--r-- 1 root root 1050 oct. 8 15:18 libdesignercore.prl > > > -rw-r--r-- 1 root root 509178 oct. 8 15:19 libeditor.a > > > -rw-r--r-- 1 root root 956 oct. 8 15:18 libeditor.prl > > > -rw-r--r-- 1 root root 41204 oct. 8 15:19 libqassistantclient.a > > > -rw-r--r-- 1 root root 967 oct. 8 15:18 libqassistantclient.prl > > > lrwxrwxrwx 1 root root 15 d?c. 5 02:24 libqsa.so -> libqsa.so. > > > 1.1.4 > > > lrwxrwxrwx 1 root root 15 d?c. 5 02:20 libqsa.so.1 -> libqsa.so. > > > 1.1.4 > > > lrwxrwxrwx 1 root root 15 d?c. 5 02:20 libqsa.so.1.1 -> > > > libqsa.so.1.1.4 > > > -rwxr-xr-x 1 root root 2106324 mars 25 2008 libqsa.so.1.1.4 > > > -rw-r--r-- 1 root root 964 oct. 8 15:18 libqt-mt.prl > > > lrwxrwxrwx 1 root root 17 d?c. 5 13:06 libqt-mt.so -> libqt- > > > mt.so.3.3.8 > > > lrwxrwxrwx 1 root root 17 d?c. 5 12:38 libqt-mt.so.3 -> libqt- > > > mt.so.3.3.8 > > > lrwxrwxrwx 1 root root 17 d?c. 5 12:38 libqt-mt.so.3.3 -> libqt- > > > mt.so.3.3.8 > > > -rwxr-xr-x 1 root root 8880140 oct. 8 15:19 libqt-mt.so.3.3.8 > > > -rw-r--r-- 1 root root 852 oct. 8 15:18 libqui.prl > > > lrwxrwxrwx 1 root root 15 d?c. 5 13:06 libqui.so -> libqui.so. > > > 1.0.0 > > > lrwxrwxrwx 1 root root 15 d?c. 5 12:38 libqui.so.1 -> libqui.so. > > > 1.0.0 > > > lrwxrwxrwx 1 root root 15 d?c. 5 12:38 libqui.so.1.0 -> > > > libqui.so.1.0.0 > > > -rwxr-xr-x 1 root root 255332 oct. 8 15:19 libqui.so.1.0.0 > > > > > > > > > > > > Olivier Cruilles > > > Mail: linuxos at ...1896... > > > > If Redhat puts the Qt library in a strange place, maybe the configure > > script cannot find it. And if nobody posts the output of configure, > > fixing that is hard! > > From the problems I have it did look to me something with qt was failing. > In the configure there is/was no mention about qt-mt > but in the log from 'make' it occurs on some parts related to gb.gt.xxxx > I did give you those logs also the ones from make install with the -v flag > for the gbi calls. > I commented even the place in that special log where the gbi -v was > aborted. Never got a hint from that action you requested me to do with -v > flag. > > It may be not exact the same problem but strong related in my view > by reading my log files line by line. > > The compare for diffs between kubuntu8.04 - kubuntu-8.10 and your mandrake > was interesting but not effective. > However we din never look to where the diffs where for the qt libs and > that is interesting to. > kubuntu 8.04 based on qt3 kde3 > kubuntu 8.10 based on qt4 kde4 > > I did see in the 'make' log references for gcc for lib paths to lib/qt4 > > Attached the result for 'locate qt3' (removed the /user/share/doc lines) > > So I did give up, live goes on for you and me. > > > ron at ...1311...:~$ locate libqt-mt > > pclinux-2007 mounted at /mnt/sda2 > > /mnt/sda2/usr/lib/qt3/lib/libqt-mt.la > /mnt/sda2/usr/lib/qt3/lib/libqt-mt.prl > /mnt/sda2/usr/lib/qt3/lib/libqt-mt.so.3 > /mnt/sda2/usr/lib/qt3/lib/libqt-mt.so.3.3 > /mnt/sda2/usr/lib/qt3/lib/libqt-mt.so.3.3.8 > > > kubuntu-8.04 > > /usr/lib/libqt-mt.la > /usr/lib/libqt-mt.prl > /usr/lib/libqt-mt.so > /usr/lib/libqt-mt.so.3 > /usr/lib/libqt-mt.so.3.3 > /usr/lib/libqt-mt.so.3.3.8 > /usr/share/qt3/lib/libqt-mt.la > /usr/share/qt3/lib/libqt-mt.prl > /usr/share/qt3/lib/libqt-mt.so > /usr/share/qt3/lib/libqt-mt.so.3 > /usr/share/qt3/lib/libqt-mt.so.3.3 > > > > Best regards, > > Ron_1st Do you know why there is libqt-mt.so.3.* at two different places on your system? (/usr/lib and /usr/share/qt3/lib) -- Beno?t ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From leonardo at ...1237... Wed Feb 18 16:24:26 2009 From: leonardo at ...1237... (Leonardo Miliani) Date: Wed, 18 Feb 2009 16:24:26 +0100 Subject: [Gambas-user] IDE improvement In-Reply-To: <200902181535.05723.gambas@...1...> References: <499BD1B1.3080106@...1237...> <200902181535.05723.gambas@...1...> Message-ID: <499C282A.9040805@...1237...> Beno?t Minisini ha scritto: >> I would suggest a little IDE improvement... >> I think that it should be useful and clearer to change the state of the >> cursor icon to "busy" then we compile a project so that the user can >> clearly see when the operations terminates. >> Now the only way to know when the operation ends is to look at the >> status bar in he bottom left corner and wait for the message >> "compilation... (etc)" disappears. > > The cursor icon *is* changed to "busy" when you compile the project. You don't > have to wait for the message to disappear. As soon as you don't see the busy > cursor anymore, the compilation is finished. > > Or maybe the compiler is too fast? :-) > I see a little changing... something that I can say is less than an half a second. But only if I leave the cursor on the compile button. But the message in the status bar persists for more than 4 or 5 seconds... What do I have to think? That the compilation has been terminated when the icon backs to arrow or when the message disappears? (Ubuntu 8.10, Gnome 2.24, Gambas 2.11.1 compiled from sources). -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Scegli software opensource - Choose opensource software Co-fondatore di Gambas-it.org Il sito di riferimento della comunit? italiana degli utenti di Gambas www.gambas-it.org From ronstk at ...239... Wed Feb 18 16:45:13 2009 From: ronstk at ...239... (Ron_1st) Date: Wed, 18 Feb 2009 16:45:13 +0100 Subject: [Gambas-user] Gambas 2 -> Gambas 3 In-Reply-To: <408934.79780.qm@...1657...> References: <499A6DF9.7010307@...221...> <200902181537.38556.gambas@...1...> <408934.79780.qm@...1657...> Message-ID: <200902181645.14773.ronstk@...239...> On Wednesday 18 February 2009, David Villalobos Cambronero wrote: > > Hi, it happened to me some day ago, > there is what I did to fix it. > # ln -s /usr/lib/qt3/lib64/libqt-mt.so.3.3.8 /usr/lib64/libqt-mt.so.3.3.8 > # ln -s /usr/lib/qt3/lib64/libqt-mt.so.3.3.8 /usr/lib64/libqt-mt.so.3.3 > # ln -s /usr/lib/qt3/lib64/libqt-mt.so.3.3.8 /usr/lib64/libqt-mt.so.3 > # ln -s /usr/lib/qt3/lib64/libqt-mt.so.3.3.8 /usr/lib64/libqt-mt.so > > > And just be aware that my system is 64 > Bits. > > By the way, I agree with Ron. I my case Gambas 3 > compiles fine, but suddenly it crash in the make process telling me > the problem about qt-mt, I try to fin the lib with kfind and realize > that libqt-mt was unaccessible, could be Gambas involved? > > Regards > > > -- > David > > > > ----- Original Message ---- > From: Beno?t Minisini > To: mailing list for gambas users > Sent: Wednesday, February 18, 2009 8:37:38 AM > Subject: Re: [Gambas-user] Gambas 2 -> Gambas 3 > > > On Wednesday 18 February 2009, Beno?t Minisini wrote: > > > > Benoit, ---8<---- > > > > From the problems I have it did look to me something with qt was failing. > > In the configure there is/was no mention about qt-mt > > but in the log from 'make' it occurs on some parts related to gb.gt.xxxx > > I did give you those logs also the ones from make install with the -v flag > > for the gbi calls. > > I commented even the place in that special log where the gbi -v was > > aborted. Never got a hint from that action you requested me to do with -v > > flag. > > > > It may be not exact the same problem but strong related in my view > > by reading my log files line by line. > > > > The compare for diffs between kubuntu8.04 - kubuntu-8.10 and your mandrake > > was interesting but not effective. > > However we din never look to where the diffs where for the qt libs and > > that is interesting to. > > kubuntu 8.04 based on qt3 kde3 > > kubuntu 8.10 based on qt4 kde4 > > > > I did see in the 'make' log references for gcc for lib paths to lib/qt4 > > > > Attached the result for 'locate qt3' (removed the /user/share/doc lines) > > > > So I did give up, live goes on for you and me. > > > > > > ron at ...1311...:~$ locate libqt-mt > > > > pclinux-2007 mounted at /mnt/sda2 > > > > /mnt/sda2/usr/lib/qt3/lib/libqt-mt.la > > /mnt/sda2/usr/lib/qt3/lib/libqt-mt.prl > > /mnt/sda2/usr/lib/qt3/lib/libqt-mt.so.3 > > /mnt/sda2/usr/lib/qt3/lib/libqt-mt.so.3.3 > > /mnt/sda2/usr/lib/qt3/lib/libqt-mt.so.3.3.8 > > > > > > kubuntu-8.04 > > > > /usr/lib/libqt-mt.la > > /usr/lib/libqt-mt.prl > > /usr/lib/libqt-mt.so > > /usr/lib/libqt-mt.so.3 > > /usr/lib/libqt-mt.so.3.3 > > /usr/lib/libqt-mt.so.3.3.8 > > /usr/share/qt3/lib/libqt-mt.la > > /usr/share/qt3/lib/libqt-mt.prl > > /usr/share/qt3/lib/libqt-mt.so > > /usr/share/qt3/lib/libqt-mt.so.3 > > /usr/share/qt3/lib/libqt-mt.so.3.3 They are symlinked to the files in /usr/lib > > > > > > > > Best regards, > > > > Ron_1st > > Do you know why there is libqt-mt.so.3.* at two different places on your > system? (/usr/lib and /usr/share/qt3/lib) > I'm not 100% sure but it could be I have done myself like David has done. To long ago. Best regards, Ron_1st -- A: Delete the text you reply on. Q: What to do to get my post on top? --- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? --- A: Top-posting. Q: What is the most annoying thing in e-mail? From Karl.Reinl at ...9... Wed Feb 18 17:35:18 2009 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Wed, 18 Feb 2009 17:35:18 +0100 Subject: [Gambas-user] gambas3 In-Reply-To: <1233492922.6779.12.camel@...40...> References: <1233320501.4982fa3588b43@...1825...> <200901310304.10724.gambas@...1...> <200901310339.38416.ronstk@...239...> <200901310420.15421.gambas@...1...> <1233492922.6779.12.camel@...40...> Message-ID: <1234974918.6410.7.camel@...40...> Am Sonntag, den 01.02.2009, 13:55 +0100 schrieb Charlie Reinl: -----------8<-------------------------------------- > Ausgecheckt, Revision 1839. > Revision 1839. > ********************************* > ./reconf-all > ********************************* > ran without Error, > but a $ gambas3 > gives : > ERROR: #2: Cannot load class 'Project': Unable to load class file > > > To say also, my Ubuntu is not a freshly installed Ubuntu 8.04, but an > updated Ubuntu 6.06 (last LTS) Salut, coming up again with that: now for : Ausgecheckt, Revision 1878. Revision 1878. There where no ERROR's reported but a *:/opt/gambas/3$ gambas3 gives that ERROR: #2: Cannot load class 'Project': Unable to load class file I'v made nothing since 01.02.2009, 13:55 only executed my compilation-script. I have all the log if needed! -- Amicalment Charlie From ronstk at ...239... Wed Feb 18 18:20:54 2009 From: ronstk at ...239... (Ron_1st) Date: Wed, 18 Feb 2009 18:20:54 +0100 Subject: [Gambas-user] gambas3 In-Reply-To: <1234974918.6410.7.camel@...40...> References: <1233320501.4982fa3588b43@...1825...> <1233492922.6779.12.camel@...40...> <1234974918.6410.7.camel@...40...> Message-ID: <200902181820.54990.ronstk@...239...> On Wednesday 18 February 2009, Charlie Reinl wrote: > Am Sonntag, den 01.02.2009, 13:55 +0100 schrieb Charlie Reinl: > -----------8<-------------------------------------- > > Ausgecheckt, Revision 1839. > > Revision 1839. > > ********************************* > > ./reconf-all > > ********************************* > > ran without Error, > > but a $ gambas3 > > gives : > > ERROR: #2: Cannot load class 'Project': Unable to load class file > > > > > > To say also, my Ubuntu is not a freshly installed Ubuntu 8.04, but an > > updated Ubuntu 6.06 (last LTS) > > Salut, > > coming up again with that: > now for : > Ausgecheckt, Revision 1878. > Revision 1878. > > There where no ERROR's reported > but a > *:/opt/gambas/3$ gambas3 > gives that > ERROR: #2: Cannot load class 'Project': Unable to load class file > I'v made nothing since 01.02.2009, 13:55 only executed my > compilation-script. > > I have all the log if needed! > I have given up to find it. I got log files from Benoit and could destilate the diffs between his mandrake and ubuntu logs the find the diffs between kubuntu 8.04 and 8.10 I did not found real hard differences and send those back to Benoit for comment. The only thing I know for sure is during 'make install' the compiled gbi aborts his process and does not creat the .info and .list files. It is related to qt and visual controls for gambas components (sensitive is form) The error line given matche the .form file instead of the .class file, line number is the line where the first control is after { and has the control name mentioned in the error line. I think the gambas source is not direct the bad part but suspect the make/configure files and the gcc environment missing something or has changed between (k)ubuntu 8.04 and 8.10 PS I did found in the make scripts a mistake that could be the culprit but to find it back I need someting to parse those files and search for --> this is a bad script with name of "aword"that fails The special sequence I need to find is --> "aword"that It has a missing space after the second quote. Regexpr is not my strongest thing. Best regards, Ron_1st -- From gambas at ...1... Wed Feb 18 19:55:34 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Wed, 18 Feb 2009 19:55:34 +0100 Subject: [Gambas-user] Gambas 2.11.1 Ubuntu 8.xx Socket Problem In-Reply-To: <8D42310D957CFB46AA11921A711D4D16022172116D@...1899...> References: <200902150841.00932.rterry@...1946...> <8D42310D957CFB46AA11921A711D4D16022172116D@...1899...> Message-ID: <200902181955.34723.gambas@...1...> > Hello, > > we use a pc with ubuntu 8.10 and gambas v2.11.1. If the application just > connect over a socket to a server, the CPU-usage will go up to 13% for only > this one gbx2 process. So at only 8 opened applications, that will connect > to a server, the CPU useage is up to 100%. The same problem appears on > ubuntu 8.04. In news "29 Dec 2008 - Release of Gambas 2.10" is written > "Sockets will not take 100% CPU anymore.", but it seems, that it already do > so. Anyone has an solution? > > Regards A.Fr?hlke I confirm. I forgot to apply the Socket fix to the ServerSocket control. This is done in revision #1879. Regards, -- Beno?t From gambas at ...1... Wed Feb 18 20:00:22 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Wed, 18 Feb 2009 20:00:22 +0100 Subject: [Gambas-user] Gambas 2 -> Gambas 3 In-Reply-To: <408934.79780.qm@...1657...> References: <499A6DF9.7010307@...221...> <200902181537.38556.gambas@...1...> <408934.79780.qm@...1657...> Message-ID: <200902182000.22445.gambas@...1...> > Hi, it happened to me some day ago, > there is what I did to fix it. > # ln -s /usr/lib/qt3/lib64/libqt-mt.so.3.3.8 /usr/lib64/libqt-mt.so.3.3.8 > # ln -s /usr/lib/qt3/lib64/libqt-mt.so.3.3.8 /usr/lib64/libqt-mt.so.3.3 > # ln -s /usr/lib/qt3/lib64/libqt-mt.so.3.3.8 /usr/lib64/libqt-mt.so.3 > # ln -s /usr/lib/qt3/lib64/libqt-mt.so.3.3.8 /usr/lib64/libqt-mt.so > > > And just be aware that my system is 64 > Bits. > > By the way, I agree with Ron. I my case Gambas 3 > compiles fine, but suddenly it crash in the make process telling me > the problem about qt-mt, I try to fin the lib with kfind and realize > that libqt-mt was unaccessible, could be Gambas involved? > I don't change anything to the libraries. Everything is done by the "libtool" tool. libtool works by using the contents of the *.la files to know what flags should be sent to the linker. Sometimes, the *.la files provided by the distribution are false (it happened once on an old Mandriva, and it happens recently on Ubuntu). Can you (David & Ron) post the contents of your libqt-mt.la files? -- Beno?t From marc at ...2075... Wed Feb 18 18:57:30 2009 From: marc at ...2075... (marc at ...2075...) Date: Wed, 18 Feb 2009 18:57:30 +0100 Subject: [Gambas-user] Ugly Gambas IDE in Fedora 10 Message-ID: <20090218185730.i2xne9ssg00cswc8@...2076...> Dear: I Have installed gambas 2.11 in Fedora 10 Gnome and the Ide Interface appears in old style (ugly). In Ubuntu works fine and the ide is de same as Screenshots in gambas web site. But in Fedora is ugly. Please, can you help me about I can put new beautiful ide for Gambas in a Gambas installed in Fedora 10 Gnome? Thank's Aram From david_villalobos_c at ...43... Wed Feb 18 20:28:41 2009 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Wed, 18 Feb 2009 11:28:41 -0800 (PST) Subject: [Gambas-user] Gambas 2 -> Gambas 3 References: <499A6DF9.7010307@...221...> <200902181537.38556.gambas@...1...> <408934.79780.qm@...1657...> <200902182000.22445.gambas@...1...> Message-ID: <72002.83905.qm@...1656...> Hi, here is mine. It is located in /usr/lib/qt3/lib64/ Regards -- David ----- Original Message ---- From: Beno?t Minisini To: mailing list for gambas users Sent: Wednesday, February 18, 2009 1:00:22 PM Subject: Re: [Gambas-user] Gambas 2 -> Gambas 3 > Hi, it happened to me some day ago, > there is what I did to fix it. > # ln -s /usr/lib/qt3/lib64/libqt-mt.so.3.3.8 /usr/lib64/libqt-mt.so.3.3.8 > # ln -s /usr/lib/qt3/lib64/libqt-mt.so.3.3.8 /usr/lib64/libqt-mt.so.3.3 > # ln -s /usr/lib/qt3/lib64/libqt-mt.so.3.3.8 /usr/lib64/libqt-mt.so.3 > # ln -s /usr/lib/qt3/lib64/libqt-mt.so.3.3.8 /usr/lib64/libqt-mt.so > > > And just be aware that my system is 64 > Bits. > > By the way, I agree with Ron. I my case Gambas 3 > compiles fine, but suddenly it crash in the make process telling me > the problem about qt-mt, I try to fin the lib with kfind and realize > that libqt-mt was unaccessible, could be Gambas involved? > I don't change anything to the libraries. Everything is done by the "libtool" tool. libtool works by using the contents of the *.la files to know what flags should be sent to the linker. Sometimes, the *.la files provided by the distribution are false (it happened once on an old Mandriva, and it happens recently on Ubuntu). Can you (David & Ron) post the contents of your libqt-mt.la files? -- Beno?t ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -------------- next part -------------- A non-text attachment was scrubbed... Name: libqt-mt.la Type: application/octet-stream Size: 790 bytes Desc: not available URL: From ron at ...1740... Wed Feb 18 20:31:36 2009 From: ron at ...1740... (Ron) Date: Wed, 18 Feb 2009 20:31:36 +0100 Subject: [Gambas-user] Ugly Gambas IDE in Fedora 10 In-Reply-To: <20090218185730.i2xne9ssg00cswc8@...2076...> References: <20090218185730.i2xne9ssg00cswc8@...2076...> Message-ID: <499C6218.2010208@...1740...> marc at ...2075... schreef: > Dear: > > I Have installed gambas 2.11 in Fedora 10 Gnome and the Ide Interface > appears in old style (ugly). > > In Ubuntu works fine and the ide is de same as Screenshots in gambas > web site. But in Fedora is ugly. > > Please, can you help me about I can put new beautiful ide for Gambas > in a Gambas installed in Fedora 10 Gnome? > > Thank's > > Aram > > > Aram, you can try the steps described here: http://www.domotiga.nl/projects/domotiga/wiki/Domotiga/Faq Regards, Ron_2nd. From ronstk at ...239... Wed Feb 18 20:47:45 2009 From: ronstk at ...239... (Ron_1st) Date: Wed, 18 Feb 2009 20:47:45 +0100 Subject: [Gambas-user] Gambas 2 -> Gambas 3 In-Reply-To: <200902182000.22445.gambas@...1...> References: <499A6DF9.7010307@...221...> <408934.79780.qm@...1657...> <200902182000.22445.gambas@...1...> Message-ID: <200902182047.47200.ronstk@...239...> On Wednesday 18 February 2009, Beno?t Minisini wrote: > > Hi, it happened to me some day ago, > > there is what I did to fix it. > > # ln -s /usr/lib/qt3/lib64/libqt-mt.so.3.3.8 /usr/lib64/libqt-mt.so.3.3.8 > > # ln -s /usr/lib/qt3/lib64/libqt-mt.so.3.3.8 /usr/lib64/libqt-mt.so.3.3 > > # ln -s /usr/lib/qt3/lib64/libqt-mt.so.3.3.8 /usr/lib64/libqt-mt.so.3 > > # ln -s /usr/lib/qt3/lib64/libqt-mt.so.3.3.8 /usr/lib64/libqt-mt.so > > > > > > And just be aware that my system is 64 > > Bits. > > > > By the way, I agree with Ron. I my case Gambas 3 > > compiles fine, but suddenly it crash in the make process telling me > > the problem about qt-mt, I try to fin the lib with kfind and realize > > that libqt-mt was unaccessible, could be Gambas involved? > > > > I don't change anything to the libraries. Everything is done by the "libtool" > tool. > > libtool works by using the contents of the *.la files to know what flags > should be sent to the linker. Sometimes, the *.la files provided by the > distribution are false (it happened once on an old Mandriva, and it happens > recently on Ubuntu). > > Can you (David & Ron) post the contents of your libqt-mt.la files? > kubuntu-8.04 /usr/lib/libqt-mt.la /usr/lib/libqt-mt.prl /usr/lib/libqt-mt.so -> libqt-mt.so.3.3.8 /usr/lib/libqt-mt.so.3 -> libqt-mt.so.3.3.8 /usr/lib/libqt-mt.so.3.3 -> libqt-mt.so.3.3.8 /usr/lib/libqt-mt.so.3.3.8 /usr/share/qt3/lib/libqt-mt.la -> ../../../lib/libqt-mt.la /usr/share/qt3/lib/libqt-mt.prl -> ../../../lib/libqt-mt.prl /usr/share/qt3/lib/libqt-mt.so -> ../../../lib/libqt-mt.so.3.3.8 /usr/share/qt3/lib/libqt-mt.so.3 -> ../../../lib/libqt-mt.so.3.3.8 /usr/share/qt3/lib/libqt-mt.so.3.3 -> ../../../lib/libqt-mt.so.3.3.8 Best regards, Ron_1st -- A: Delete the text you reply on. Q: What to do to get my post on top? --- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? --- A: Top-posting. Q: What is the most annoying thing in e-mail? -------------- next part -------------- # libqt-mt.la - a libtool library file # Generated by qmake/libtool (1.07a) (Qt 3.3.8b) on: Wed Apr 9 16:10:10 2008 # The name that we can dlopen(3). dlname='libqt-mt.so.3' # Names of this library. library_names='libqt-mt.so.3.3.8 libqt-mt.so.3 libqt-mt.so' # The name of the static archive. old_library='libqt-mt.a' # Libraries that this one depends upon. dependency_libs='-L/usr/X11R6/lib -lfontconfig -laudio -lXt -ljpeg -lpng -lz -lXi -lXrender -lXrandr -lXcursor -lXinerama -lXft -lfreetype -lfontconfig -lXext -lX11 -lm -lSM -lICE -ldl -lpthread ' # Version information for libqt-mt.la current=33 age=0 revision=8 # Is this an already installed library. installed=yes # Files to dlopen/dlpreopen. dlopen='' dlpreopen='' # Directory that this library needs to be installed in: libdir='/usr/lib' -------------- next part -------------- # libqtmcop.la - a libtool library file # Generated by ltmain.sh - GNU libtool 1.5.22 Debian 1.5.22-4 (1.1220.2.365 2005/12/18 22:14:06) # # Please DO NOT delete this file! # It is necessary for linking the library. # The name that we can dlopen(3). dlname='libqtmcop.so.1' # Names of this library. library_names='libqtmcop.so.1.0.0 libqtmcop.so.1 libqtmcop.so' # The name of the static archive. old_library='libqtmcop.a' # Libraries that this one depends upon. dependency_libs=' -L/usr/share/qt3/lib /usr/lib/libmcop.la -L/usr/lib /usr/lib/libgmodule-2.0.la /usr/lib/libgthread-2.0.la -lrt /usr/lib/libglib-2.0.la /usr/lib/libqt-mt.la -L/usr/X11R6/lib -laudio -lXt -ljpeg -lXi -lXrender -lXrandr -lXcursor -lXinerama -lXft -lfreetype -lfontconfig -ldl -lpng -lz -lXext -lX11 -lSM -lICE -lpthread' # Version information for libqtmcop. current=1 age=0 revision=0 # Is this an already installed library? installed=yes # Should we warn about portability when linking against -modules? shouldnotlink=no # Files to dlopen/dlpreopen dlopen='' dlpreopen='' # Directory that this library needs to be installed in: libdir='/usr/lib' From gambas at ...1... Wed Feb 18 21:36:57 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Wed, 18 Feb 2009 21:36:57 +0100 Subject: [Gambas-user] IDE improvement In-Reply-To: <499C282A.9040805@...1237...> References: <499BD1B1.3080106@...1237...> <200902181535.05723.gambas@...1...> <499C282A.9040805@...1237...> Message-ID: <200902182136.57617.gambas@...1...> > Beno?t Minisini ha scritto: > >> I would suggest a little IDE improvement... > >> I think that it should be useful and clearer to change the state of the > >> cursor icon to "busy" then we compile a project so that the user can > >> clearly see when the operations terminates. > >> Now the only way to know when the operation ends is to look at the > >> status bar in he bottom left corner and wait for the message > >> "compilation... (etc)" disappears. > > > > The cursor icon *is* changed to "busy" when you compile the project. You > > don't have to wait for the message to disappear. As soon as you don't see > > the busy cursor anymore, the compilation is finished. > > > > Or maybe the compiler is too fast? :-) > > I see a little changing... something that I can say is less than an half > a second. But only if I leave the cursor on the compile button. > But the message in the status bar persists for more than 4 or 5 seconds... > What do I have to think? That the compilation has been terminated when > the icon backs to arrow or when the message disappears? > > (Ubuntu 8.10, Gnome 2.24, Gambas 2.11.1 compiled from sources). As soon as you don't see the busy cursor anymore, and the GUI is usable gain, the compilation is finished. The message stays longer so that you can read it. Otherwise you wouldn't have the time. -- Beno?t From rterry at ...1946... Wed Feb 18 21:41:50 2009 From: rterry at ...1946... (richard terry) Date: Thu, 19 Feb 2009 07:41:50 +1100 Subject: [Gambas-user] Filename as string In-Reply-To: <22077161.post@...1379...> References: <22057355.post@...1379...> <200902180828.43015.rterry@...1946...> <22077161.post@...1379...> Message-ID: <200902190741.50563.rterry@...1946...> On Wed, 18 Feb 2009 11:01:48 pm FoxIII wrote: > I have managed to sort this out now. I am using the code; > > TextBox1.Text = File.Dir(Dialog.path) & "/" & File.Name(Dialog.path) > > But (and I don't know if I should start a new topic or not) I am curious as > to how to run a command from gambas. For example, when you are installing a > 'deb' file, you get a window displaying what is happening with the install > rather than seeing it through the command line. Again, I'd post this as part of your complete subroutine, if you are just trying to popup a file dialog and retrieve a path you can do this: If Dialog.OpenFile() Then Return Print Dialog.path or Textbox1.text = Dialog.path Richard > > richard terry-5 wrote: > > On Wed, 18 Feb 2009 12:30:43 am FoxIII wrote: > >> I am very new to Gambas (and programming in general). I am trying to > >> retrieve a filename as string from fileview so I can display it on the > >> screen, but do not seem to be able to manage it. I know this may sound a > >> bit of a simple request, but for a total beginner, the help files are > >> not entirely, well, helpful. hehe > > > > If you post your code to show what you are attempting and what is failing > > we > > can better help you. > > > > Regards > > > > Richard > > > > > > ------------------------------------------------------------------------- > >----- Open Source Business Conference (OSBC), March 24-25, 2009, San > > Francisco, CA > > -OSBC tackles the biggest issue in open source: Open Sourcing the > > Enterprise > > -Strategies to boost innovation and cut costs with open source > > participation > > -Receive a $600 discount off the registration fee with the source code: > > SFAD > > http://p.sf.net/sfu/XcvMzF8H > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user From leonardo at ...1237... Wed Feb 18 23:26:33 2009 From: leonardo at ...1237... (Leonardo Miliani) Date: Wed, 18 Feb 2009 23:26:33 +0100 Subject: [Gambas-user] IDE improvement In-Reply-To: <200902182136.57617.gambas@...1...> References: <499BD1B1.3080106@...1237...> <200902181535.05723.gambas@...1...> <499C282A.9040805@...1237...> <200902182136.57617.gambas@...1...> Message-ID: <499C8B19.5020005@...1237...> Beno?t Minisini ha scritto: > As soon as you don't see the busy cursor anymore, and the GUI is usable gain, > the compilation is finished. The message stays longer so that you can read it. > Otherwise you wouldn't have the time. > Ah, OK. I understood. I was thinking that until the message didn't disappear, the compilation wasn't finished. -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Scegli software opensource - Choose opensource software Co-fondatore di Gambas-it.org Il sito di riferimento della comunit? italiana degli utenti di Gambas www.gambas-it.org From gambas at ...1... Thu Feb 19 00:31:39 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Thu, 19 Feb 2009 00:31:39 +0100 Subject: [Gambas-user] Gambas 2 -> Gambas 3 In-Reply-To: <200902182047.47200.ronstk@...239...> References: <499A6DF9.7010307@...221...> <200902182000.22445.gambas@...1...> <200902182047.47200.ronstk@...239...> Message-ID: <200902190031.39395.gambas@...1...> > On Wednesday 18 February 2009, Beno?t Minisini wrote: > > > Hi, it happened to me some day ago, > > > there is what I did to fix it. > > > # ln -s /usr/lib/qt3/lib64/libqt-mt.so.3.3.8 > > > /usr/lib64/libqt-mt.so.3.3.8 # ln -s > > > /usr/lib/qt3/lib64/libqt-mt.so.3.3.8 /usr/lib64/libqt-mt.so.3.3 # ln -s > > > /usr/lib/qt3/lib64/libqt-mt.so.3.3.8 /usr/lib64/libqt-mt.so.3 # ln -s > > > /usr/lib/qt3/lib64/libqt-mt.so.3.3.8 /usr/lib64/libqt-mt.so > > > > > > > > > And just be aware that my system is 64 > > > Bits. > > > > > > By the way, I agree with Ron. I my case Gambas 3 > > > compiles fine, but suddenly it crash in the make process telling me > > > the problem about qt-mt, I try to fin the lib with kfind and realize > > > that libqt-mt was unaccessible, could be Gambas involved? > > > > I don't change anything to the libraries. Everything is done by the > > "libtool" tool. > > > > libtool works by using the contents of the *.la files to know what flags > > should be sent to the linker. Sometimes, the *.la files provided by the > > distribution are false (it happened once on an old Mandriva, and it > > happens recently on Ubuntu). > > > > Can you (David & Ron) post the contents of your libqt-mt.la files? > > kubuntu-8.04 > > /usr/lib/libqt-mt.la > /usr/lib/libqt-mt.prl > /usr/lib/libqt-mt.so -> libqt-mt.so.3.3.8 > /usr/lib/libqt-mt.so.3 -> libqt-mt.so.3.3.8 > /usr/lib/libqt-mt.so.3.3 -> libqt-mt.so.3.3.8 > /usr/lib/libqt-mt.so.3.3.8 > > /usr/share/qt3/lib/libqt-mt.la -> ../../../lib/libqt-mt.la > /usr/share/qt3/lib/libqt-mt.prl -> ../../../lib/libqt-mt.prl > /usr/share/qt3/lib/libqt-mt.so -> ../../../lib/libqt-mt.so.3.3.8 > /usr/share/qt3/lib/libqt-mt.so.3 -> ../../../lib/libqt-mt.so.3.3.8 > /usr/share/qt3/lib/libqt-mt.so.3.3 -> ../../../lib/libqt-mt.so.3.3.8 > > > > > > Best regards, > > Ron_1st Thanks. Now I need the result of the following commands on your (David & Ron) system: $ pkg-config --cflags qt-mt $ pkg-config --libs-only-l qt-mt $ pkg-config --libs-only-L qt-mt $ pkg-config --libs-only-other qt-mt If, of course, your qt development package uses the pkg-config system! Thanks in advance. Regards, -- Beno?t From ronstk at ...239... Thu Feb 19 01:36:48 2009 From: ronstk at ...239... (Ron_1st) Date: Thu, 19 Feb 2009 01:36:48 +0100 Subject: [Gambas-user] Gambas 2 -> Gambas 3 In-Reply-To: <200902190031.39395.gambas@...1...> References: <499A6DF9.7010307@...221...> <200902182047.47200.ronstk@...239...> <200902190031.39395.gambas@...1...> Message-ID: <200902190136.49372.ronstk@...239...> On Thursday 19 February 2009, Beno?t Minisini wrote: > $ pkg-config --cflags qt-mt > $ pkg-config --libs-only-l qt-mt > $ pkg-config --libs-only-L qt-mt > $ pkg-config --libs-only-other qt-mt > > If, of course, your qt development package uses the pkg-config system! > > Thanks in advance. > root at ...1311...:~# pkg-config --cflags qt-mt -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_THREAD_SUPPORT -D_REENTRANT -I/usr/include/qt3 root at ...1311...:~# pkg-config --libs-only-l qt-mt -lqt-mt -laudio -lXt -ljpeg -lpng -lz -lXi -lXrender -lXrandr -lXcursor -lXinerama -lXft -lfreetype -lfontconfig -lXext -lX11 -lm -lSM -lICE -ldl -lpthread (^^^all on one line^^^) root at ...1311...:~# pkg-config --libs-only-L qt-mt -L/usr/X11R6/lib root at ...1311...:~# pkg-config --libs-only-other qt-mt (^^^ empty^^^) /usr/include/qt3 exists and contains theqt3 *.h files Best regards, Ron_1st -- From marc at ...2075... Thu Feb 19 02:45:17 2009 From: marc at ...2075... (Marc Miralles) Date: Thu, 19 Feb 2009 02:45:17 +0100 Subject: [Gambas-user] Ugly Gambas IDE in Fedora 10 In-Reply-To: <499C6218.2010208@...1740...> References: <20090218185730.i2xne9ssg00cswc8@...2076...> <499C6218.2010208@...1740...> Message-ID: <499CB9AD.7090608@...2075...> From gambas at ...1... Thu Feb 19 02:43:34 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Thu, 19 Feb 2009 02:43:34 +0100 Subject: [Gambas-user] Gambas 2 -> Gambas 3 In-Reply-To: <200902190136.49372.ronstk@...239...> References: <499A6DF9.7010307@...221...> <200902190031.39395.gambas@...1...> <200902190136.49372.ronstk@...239...> Message-ID: <200902190243.34352.gambas@...1...> > On Thursday 19 February 2009, Beno?t Minisini wrote: > > $ pkg-config --cflags qt-mt > > $ pkg-config --libs-only-l qt-mt > > $ pkg-config --libs-only-L qt-mt > > $ pkg-config --libs-only-other qt-mt > > > > If, of course, your qt development package uses the pkg-config system! > > > > Thanks in advance. > > root at ...1311...:~# pkg-config --cflags qt-mt > -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_THREAD_SUPPORT -D_REENTRANT > -I/usr/include/qt3 > > root at ...1311...:~# pkg-config --libs-only-l qt-mt > -lqt-mt -laudio -lXt -ljpeg -lpng -lz -lXi -lXrender -lXrandr -lXcursor > -lXinerama -lXft -lfreetype -lfontconfig -lXext -lX11 -lm -lSM -lICE -ldl > -lpthread (^^^all on one line^^^) > > root at ...1311...:~# pkg-config --libs-only-L qt-mt > -L/usr/X11R6/lib > > root at ...1311...:~# pkg-config --libs-only-other qt-mt > > (^^^ empty^^^) > > > /usr/include/qt3 exists and contains theqt3 *.h files > > > Best regards, > > Ron_1st Here is the result on my Mandriva: $ pkg-config --libs-only-L qt-mt # nothing $ pkg-config --libs-only-other qt-mt # nothing $ pkg-config --libs-only-l qt-mt -lqt-mt -lmng -ljpeg -lpng -lz -lXrender -lXrandr -lXcursor -lXinerama -lXft -lfreetype -lfontconfig -lXext -lX11 -lm -lSM -lICE -ldl -lpthread $ pkg-config --cflags qt-mt -DQT_SHARED -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -D_REENTRANT -I/usr/lib/qt3//include There is no "-L" flag because on Mandriva /usr/X11R6/lib is in /etc/ld.so.conf. I'm currently downloading the Kubuntu 8.10 32 bits ISO. I will try to compile Gambas on it, thanks to VirtualBox. Regards, -- Beno?t From doriano.blengino at ...1909... Thu Feb 19 07:54:41 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Thu, 19 Feb 2009 07:54:41 +0100 Subject: [Gambas-user] Filename as string In-Reply-To: <200902190741.50563.rterry@...1946...> References: <22057355.post@...1379...> <200902180828.43015.rterry@...1946...> <22077161.post@...1379...> <200902190741.50563.rterry@...1946...> Message-ID: <499D0231.3000309@...1909...> richard terry ha scritto: > On Wed, 18 Feb 2009 11:01:48 pm FoxIII wrote: > >> I have managed to sort this out now. I am using the code; >> >> TextBox1.Text = File.Dir(Dialog.path) & "/" & File.Name(Dialog.path) >> >> But (and I don't know if I should start a new topic or not) I am curious as >> to how to run a command from gambas. For example, when you are installing a >> 'deb' file, you get a window displaying what is happening with the install >> rather than seeing it through the command line. >> You use the SHELL instruction to execute external commands. A single string argument to SHELL is the command you want to execute, as you would type it on a bash command line. A variation of SHELL is EXEC -- see the docs. If you want to capture the output in a simple way, use the TO modifier (and WAIT). Seeing that you speak about installing deb files, things get more complicated because installing a package is a slow process, and probably you want to see intermediate results as soon as they appear... One way to do this is to use "full gambas" code, where you read the output from process and manage to put it on a widget. Another way, simple and quick, is to use an xterm or something similar. Try this: mrxvt -e sh -c "ls |less" (mrxvt is a terminal emulator like xterm or konsole or so). Another command could be: mrxvt -e sh -c "ls; echo Press ENTER; read a" Use something like this in the argument of a SHELL or EXEC, and have fun :-) More info if you want - regards, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From ronstk at ...239... Thu Feb 19 10:26:36 2009 From: ronstk at ...239... (Ron_1st) Date: Thu, 19 Feb 2009 10:26:36 +0100 Subject: [Gambas-user] Gambas 2 -> Gambas 3 In-Reply-To: <200902190243.34352.gambas@...1...> References: <499A6DF9.7010307@...221...> <200902190136.49372.ronstk@...239...> <200902190243.34352.gambas@...1...> Message-ID: <200902191026.37456.ronstk@...239...> On Thursday 19 February 2009, Beno?t Minisini wrote: > > On Thursday 19 February 2009, Beno?t Minisini wrote: > > > $ pkg-config --cflags qt-mt > > > $ pkg-config --libs-only-l qt-mt > > > $ pkg-config --libs-only-L qt-mt > > > $ pkg-config --libs-only-other qt-mt > > > > > > If, of course, your qt development package uses the pkg-config system! > > > > > > Thanks in advance. > > > > root at ...1311...:~# pkg-config --cflags qt-mt > > -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_THREAD_SUPPORT -D_REENTRANT > > -I/usr/include/qt3 > > > > root at ...1311...:~# pkg-config --libs-only-l qt-mt > > -lqt-mt -laudio -lXt -ljpeg -lpng -lz -lXi -lXrender -lXrandr -lXcursor > > -lXinerama -lXft -lfreetype -lfontconfig -lXext -lX11 -lm -lSM -lICE -ldl > > -lpthread (^^^all on one line^^^) > > > > root at ...1311...:~# pkg-config --libs-only-L qt-mt > > -L/usr/X11R6/lib > > > > root at ...1311...:~# pkg-config --libs-only-other qt-mt > > > > (^^^ empty^^^) > > > > > > /usr/include/qt3 exists and contains theqt3 *.h files > > > > > > Best regards, > > > > Ron_1st > > Here is the result on my Mandriva: > > $ pkg-config --libs-only-L qt-mt > # nothing > $ pkg-config --libs-only-other qt-mt > # nothing > $ pkg-config --libs-only-l qt-mt > -lqt-mt -lmng -ljpeg -lpng -lz -lXrender -lXrandr -lXcursor -lXinerama -lXft > -lfreetype -lfontconfig -lXext -lX11 -lm -lSM -lICE -ldl -lpthread > $ pkg-config --cflags qt-mt > -DQT_SHARED -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -D_REENTRANT > -I/usr/lib/qt3//include > > There is no "-L" flag because on Mandriva /usr/X11R6/lib is in > /etc/ld.so.conf. > > I'm currently downloading the Kubuntu 8.10 32 bits ISO. I will try to compile > Gambas on it, thanks to VirtualBox. > > Regards, > For kubuntu 8.04 LTS ----------------------- /etc/ld.so.conf include /etc/ld.so.conf.d/*.conf ---------------------- in subdir: file:///etc/ld.so.conf.d/i486-linux-gnu.conf # Multiarch support /lib/i486-linux-gnu /usr/lib/i486-linux-gnu file:///etc/ld.so.conf.d/kde4.conf /usr/lib/kde4/lib file:///etc/ld.so.conf.d/libc.conf # libc default configuration /usr/local/lib -------------- I get next week some hdd space too. Virtualbox is nice but my system memory is 2GB max for this computer. The beauty is already working for me from 2002 24/7. :) Asus Terminatur 1, Pentiun4, 2.4 Ghz, GNU/Linux only Best regards, Ron_1st -- From anuradha at ...2077... Thu Feb 19 11:38:54 2009 From: anuradha at ...2077... (Anuradha Ratnaweera) Date: Thu, 19 Feb 2009 16:08:54 +0530 Subject: [Gambas-user] Beep in gambas Message-ID: Hi all, How to create a beep in Gambas, similar to the one that you get in a terminal? I am looking for a way to do it without getting the sound card involved. Thanks in advance! Anuradha -- http://www.sayura.net/anuradha/ From eilert-sprachen at ...221... Thu Feb 19 13:02:40 2009 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Thu, 19 Feb 2009 13:02:40 +0100 Subject: [Gambas-user] Gambas 2 -> Gambas 3 In-Reply-To: <200902170954.48995.gambas@...1...> References: <499A6DF9.7010307@...221...> <200902170954.48995.gambas@...1...> Message-ID: <499D4A60.1070300@...221...> Beno?t Minisini schrieb: >> Good morning Benoit (and everyone) >> >> Just came about a question: When I want to bring my Gambas2 app to >> Gambas3, will this be as roundabout as it is from Gambas1 to Gambas2? >> (Creating new forms and converting the code...) Or is it more upward >> compatible? >> >> The reason for asking this is that you told me that you would just >> maintain bugfixes in Gambas2 and bring changes only to Gambas3. As I'm >> still maintaining some bigger Gambas1 projects, I would then migrate >> them to Gambas3 directly rather than having them under Gambas2 - if it's >> as much work again... >> >> Hope I could make clear what I mean... >> >> Regards >> >> Rolf >> > > The weirdest thing between Gambas 2 and Gambas 3 at the moment is > Desktop.Scale, that is smaller in Gambas 3. > > Gambas 3 does a little conversion for controls whose W and H <= 3 * > Desktop.Scale (it adds one Desktop.Scale), but you have to update all your > forms and check them one by one to redesign them. > > There are many other changes in instruction syntax and class interfaces, but I > never note them at the moment. Hopefully, they are less changes between Gambas > 3 and Gambas 2 than between Gambas 2 and Gambas 1. > > So please try and tell us the result! :-) > Ok, I just fiddled around a bit with the Gambas3 version that still is running on my system (must be somewhat a couple of weeks old...). I have a version of an app I wrote for Gambas1 and converted into Gambas2 (not completely yet). But it already runs quite well under Gambas2. I just made a copy of it for Gambas3 and tried to open and run it. The only thing it wants is "#Gambas Form File 3.0" in the header. If there is an old "Border = Window.Fixed" from Gambas1, you just have to change it to "Resizable = False". Everything else seems to work (but probably I won't have all possible cases here...) Modules don't have a header - but somehow it recognizes them as too old. Just one step to do: Add a return and delete it or so, anything you want, and save it again: no more trouble. A first test let the icons appear a little bit too small (you pointed me to that). I changed them a bit and everything looks as usual. And it runs as expected, at least the few functions I was able to test now. Of course, this is not a real Gambas3 project as it doesn't benefit of all the new possibilities and changes in the language. But it starts running and can be changed partly where the new features are desirable. Rolf From joshiggins at ...1601... Thu Feb 19 13:02:03 2009 From: joshiggins at ...1601... (Joshua Higgins) Date: Thu, 19 Feb 2009 12:02:03 +0000 Subject: [Gambas-user] Beep in gambas In-Reply-To: References: Message-ID: <4247f5440902190402v7dfae950ob1572338546660e2@...627...> I do not know of any built-in function to beep, but this produces the effect I think you want SHELL "echo -e \"\\007\" >/dev/tty10" (be careful with the backslashes around the second set of quotes, these are required for Gambas to pass on an actual quote symbol to the echo command) -- joshua higgins >>>>>>------ From joe1962 at ...626... Thu Feb 19 15:17:58 2009 From: joe1962 at ...626... (Jose J. Rodriguez) Date: Thu, 19 Feb 2009 09:17:58 -0500 Subject: [Gambas-user] Multiple TCP server sockets In-Reply-To: <200902172359.47294.gambas@...1...> References: <6c208f950902171126h37b0e12dl3bdffcc83178f5c1@...627...> <200902172359.47294.gambas@...1...> Message-ID: <6c208f950902190617t44eebf24h5e2cb78f9b52a108@...627...> On 2/17/09, Beno?t Minisini wrote: > > Is there any way to get different TCP server objects with different > > ports to use a different socket object for read? I am trying to port > > my VB6 multiport communications server application to Gambas2 and (I > > think) I need something like that to get it to work. > > > > Regards, > > Joe1962 > > > > > I would say yes. I see nothing that prevents from creating several > SocketServer objects. > That is not the issue, you can do that, but they all use the same socket_read sub. Or I my missing something here? Regards, Joe1962 From david_villalobos_c at ...43... Thu Feb 19 15:36:42 2009 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Thu, 19 Feb 2009 06:36:42 -0800 (PST) Subject: [Gambas-user] Gambas 2 -> Gambas 3 References: <499A6DF9.7010307@...221...> <200902182047.47200.ronstk@...239...> <200902190031.39395.gambas@...1...> <200902190136.49372.ronstk@...239...> Message-ID: <850385.85101.qm@...1667...> Here is mine: [root at ...2078... david]# pkg-config --cflags qt-mt -DQT_SHARED -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -D_REENTRANT -I/usr/lib/qt3//include [root at ...2078... david]# pkg-config --libs-only-l qt-mt -lqt-mt -lmng -ljpeg -lpng -lz -lXrender -lXrandr -lXcursor -lXinerama -lXft -lfreetype -lfontconfig -lXext -lX11 -lm -lSM -lICE -ldl -lpthread [root at ...2078... david]# pkg-config --libs-only-L qt-mt -L/usr/lib/qt3/lib64 [root at ...2078... david]# pkg-config --libs-only-other qt-mt --- NO OUTPUT --- Regards -- David ----- Original Message ---- From: Ron_1st To: gambas-user at lists.sourceforge.net Sent: Wednesday, February 18, 2009 6:36:48 PM Subject: Re: [Gambas-user] Gambas 2 -> Gambas 3 On Thursday 19 February 2009, Beno?t Minisini wrote: > $ pkg-config --cflags qt-mt > $ pkg-config --libs-only-l qt-mt > $ pkg-config --libs-only-L qt-mt > $ pkg-config --libs-only-other qt-mt > > If, of course, your qt development package uses the pkg-config system! > > Thanks in advance. > root at ...1311...:~# pkg-config --cflags qt-mt -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_THREAD_SUPPORT -D_REENTRANT -I/usr/include/qt3 root at ...1311...:~# pkg-config --libs-only-l qt-mt -lqt-mt -laudio -lXt -ljpeg -lpng -lz -lXi -lXrender -lXrandr -lXcursor -lXinerama -lXft -lfreetype -lfontconfig -lXext -lX11 -lm -lSM -lICE -ldl -lpthread (^^^all on one line^^^) root at ...1311...:~# pkg-config --libs-only-L qt-mt -L/usr/X11R6/lib root at ...1311...:~# pkg-config --libs-only-other qt-mt (^^^ empty^^^) /usr/include/qt3 exists and contains theqt3 *.h files Best regards, Ron_1st -- ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From jussi.lahtinen at ...626... Thu Feb 19 16:18:46 2009 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 19 Feb 2009 17:18:46 +0200 Subject: [Gambas-user] IDE improvement In-Reply-To: <499C8B19.5020005@...1237...> References: <499BD1B1.3080106@...1237...> <200902181535.05723.gambas@...1...> <499C282A.9040805@...1237...> <200902182136.57617.gambas@...1...> <499C8B19.5020005@...1237...> Message-ID: <384d3900902190718j6fb1f9a3kd7ffbf09fba3ad35@...627...> I think this is very very low priority, but maybe istead of "Compiling project x..." there should be something like "Project x compiled!" when compiler is ready. Users who are used to vb compilation progres bar, tend to be confused about compilation time of Gambas. It really is VERY fast! Jussi On Thu, Feb 19, 2009 at 12:26 AM, Leonardo Miliani wrote: > Beno?t Minisini ha scritto: >> As soon as you don't see the busy cursor anymore, and the GUI is usable gain, >> the compilation is finished. The message stays longer so that you can read it. >> Otherwise you wouldn't have the time. >> > > Ah, OK. > I understood. I was thinking that until the message didn't disappear, > the compilation wasn't finished. > > -- > Ciao. > Leo. > > Web: www.leonardomiliani.com > E-mail: leonardo at ...1237... > Scegli software opensource - Choose opensource software > > Co-fondatore di Gambas-it.org > Il sito di riferimento della comunit? italiana degli utenti di Gambas > www.gambas-it.org > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA > -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise > -Strategies to boost innovation and cut costs with open source participation > -Receive a $600 discount off the registration fee with the source code: SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Thu Feb 19 16:56:21 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Thu, 19 Feb 2009 16:56:21 +0100 Subject: [Gambas-user] Multiple TCP server sockets In-Reply-To: <6c208f950902190617t44eebf24h5e2cb78f9b52a108@...627...> References: <6c208f950902171126h37b0e12dl3bdffcc83178f5c1@...627...> <200902172359.47294.gambas@...1...> <6c208f950902190617t44eebf24h5e2cb78f9b52a108@...627...> Message-ID: <200902191656.21919.gambas@...1...> > On 2/17/09, Beno?t Minisini wrote: > > > Is there any way to get different TCP server objects with different > > > > > > ports to use a different socket object for read? I am trying to port > > > my VB6 multiport communications server application to Gambas2 and (I > > > think) I need something like that to get it to work. > > > > > > Regards, > > > Joe1962 > > > > I would say yes. I see nothing that prevents from creating several > > SocketServer objects. > > That is not the issue, you can do that, but they all use the same > socket_read sub. Or I my missing something here? > > Regards, > Joe1962 > Hem, you are right, I didn't notice. Internallly the Socket object knows which ServerSocket created it, but you don't have any access to it! As a workaround, I think you can use the port number to make the difference. Maybe I will make a "Server" property in the Socket class to get the ServerSocket object creator. And I can add an optional argument to the Accep() method to define the event name of the created socket. Regards, -- Beno?t From joe1962 at ...626... Thu Feb 19 17:33:03 2009 From: joe1962 at ...626... (Jose J. Rodriguez) Date: Thu, 19 Feb 2009 11:33:03 -0500 Subject: [Gambas-user] Multiple TCP server sockets In-Reply-To: <200902191656.21919.gambas@...1...> References: <6c208f950902171126h37b0e12dl3bdffcc83178f5c1@...627...> <200902172359.47294.gambas@...1...> <6c208f950902190617t44eebf24h5e2cb78f9b52a108@...627...> <200902191656.21919.gambas@...1...> Message-ID: <6c208f950902190833q4ad45266paf76fe4c1509936e@...627...> On 2/19/09, Beno?t Minisini wrote: > > On 2/17/09, Beno?t Minisini wrote: > > > > Is there any way to get different TCP server objects with different > > > > ports to use a different socket object for read? I am trying to port > > > > my VB6 multiport communications server application to Gambas2 and (I > > > > think) I need something like that to get it to work. > > > > > > > I would say yes. I see nothing that prevents from creating several > > > SocketServer objects. > > > > That is not the issue, you can do that, but they all use the same > > socket_read sub. Or I my missing something here? > > > Hem, you are right, I didn't notice. > > Internallly the Socket object knows which ServerSocket created it, but you > don't have any access to it! > > As a workaround, I think you can use the port number to make the difference. > I will look into that in the meantime. > > Maybe I will make a "Server" property in the Socket class to get the > ServerSocket object creator. > > And I can add an optional argument to the Accep() method to define the event > name of the created socket. > That would be great! Thanks. Regards, Joe1962 From richard at ...2079... Thu Feb 19 17:48:20 2009 From: richard at ...2079... (Richard Gladman) Date: Thu, 19 Feb 2009 16:48:20 +0000 Subject: [Gambas-user] Properties in Classes Message-ID: <499D8D54.4060604@...2079...> Hi All, As a Gambas Newbie I was wondering if there are any advantages to using properties as opposed to get / set methods? Thanks for any help Richard -- Quantum materiae materietur marmota monax si marmota monax materiam possit materiari? (How much wood would a woodchuck chuck if a woodchuck could chuck wood?) Registered Linux User: #459086 From linuxos at ...1896... Thu Feb 19 19:21:10 2009 From: linuxos at ...1896... (Olivier Cruilles) Date: Thu, 19 Feb 2009 19:21:10 +0100 Subject: [Gambas-user] Gambas 2 -> Gambas 3 In-Reply-To: <200902190243.34352.gambas@...1...> References: <499A6DF9.7010307@...221...> <200902190031.39395.gambas@...1...> <200902190136.49372.ronstk@...239...> <200902190243.34352.gambas@...1...> Message-ID: Benoit, Here my parameters on Fedora 10 [root at ...2073... Packages]# pkg-config --cflags qt-mt -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT - D_REENTRANT -I/usr/lib/qt-3.3/include [root at ...2073... Packages]# pkg-config --libs-only-l qt-mt -lqt-mt -lmng -ljpeg -lpng -lz -lXi -lXrender -lXrandr -lXcursor - lXinerama -lXft -lfreetype -lfontconfig -lXext -lX11 -lm -lSM -lICE - ldl -lpthread [root at ...2073... Packages]# pkg-config --libs-only-L qt-mt -L/usr/lib/qt-3.3/lib [root at ...2073... Packages]# pkg-config --libs-only-other qt-mt - - NO OUTPUT - - Olivier Le 19 f?vr. 09 ? 02:43, Beno?t Minisini a ?crit : >> On Thursday 19 February 2009, Beno?t Minisini wrote: >>> $ pkg-config --cflags qt-mt >>> $ pkg-config --libs-only-l qt-mt >>> $ pkg-config --libs-only-L qt-mt >>> $ pkg-config --libs-only-other qt-mt >>> >>> If, of course, your qt development package uses the pkg-config >>> system! >>> >>> Thanks in advance. >> >> root at ...1311...:~# pkg-config --cflags qt-mt >> -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_THREAD_SUPPORT -D_REENTRANT >> -I/usr/include/qt3 >> >> root at ...1311...:~# pkg-config --libs-only-l qt-mt >> -lqt-mt -laudio -lXt -ljpeg -lpng -lz -lXi -lXrender -lXrandr - >> lXcursor >> -lXinerama -lXft -lfreetype -lfontconfig -lXext -lX11 -lm -lSM - >> lICE -ldl >> -lpthread (^^^all on one line^^^) >> >> root at ...1311...:~# pkg-config --libs-only-L qt-mt >> -L/usr/X11R6/lib >> >> root at ...1311...:~# pkg-config --libs-only-other qt-mt >> >> (^^^ empty^^^) >> >> >> /usr/include/qt3 exists and contains theqt3 *.h files >> >> >> Best regards, >> >> Ron_1st > > Here is the result on my Mandriva: > > $ pkg-config --libs-only-L qt-mt > # nothing > $ pkg-config --libs-only-other qt-mt > # nothing > $ pkg-config --libs-only-l qt-mt > -lqt-mt -lmng -ljpeg -lpng -lz -lXrender -lXrandr -lXcursor - > lXinerama -lXft > -lfreetype -lfontconfig -lXext -lX11 -lm -lSM -lICE -ldl -lpthread > $ pkg-config --cflags qt-mt > -DQT_SHARED -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -D_REENTRANT > -I/usr/lib/qt3//include > > There is no "-L" flag because on Mandriva /usr/X11R6/lib is in > /etc/ld.so.conf. > > I'm currently downloading the Kubuntu 8.10 32 bits ISO. I will try > to compile > Gambas on it, thanks to VirtualBox. > > Regards, > > -- > Beno?t > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San > Francisco, CA > -OSBC tackles the biggest issue in open source: Open Sourcing the > Enterprise > -Strategies to boost innovation and cut costs with open source > participation > -Receive a $600 discount off the registration fee with the source > code: SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > Olivier Cruilles Mail: linuxos at ...1896... From jussi.lahtinen at ...626... Thu Feb 19 19:25:06 2009 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 19 Feb 2009 20:25:06 +0200 Subject: [Gambas-user] Monitor on/off Message-ID: <384d3900902191025r54caca0eg774a3976b03204d@...627...> Hi! I'm having annoying hardware problem. One thing I like to test is, are my computer freezing problems related to monitor on/off event or is it just coincidence (if not its probably video card related problem). So, I need program to turn monitor on and off within short interval. Anyone know how to turn monitor on/off from Gambas? Thanks! Jussi From joe1962 at ...626... Thu Feb 19 21:20:21 2009 From: joe1962 at ...626... (Jose J. Rodriguez) Date: Thu, 19 Feb 2009 15:20:21 -0500 Subject: [Gambas-user] Monitor on/off In-Reply-To: <384d3900902191025r54caca0eg774a3976b03204d@...627...> References: <384d3900902191025r54caca0eg774a3976b03204d@...627...> Message-ID: <6c208f950902191220g39126949m40f518f8c2f23115@...627...> On 2/19/09, Jussi Lahtinen wrote: > > Anyone know how to turn monitor on/off from Gambas? > Thanks! > I had this tip saved for a while now, which seems to work so far: One click monitor power-down for Linux By Alastair Otter 19 December, 2007 If you're running a Linux-powered laptop and you want to switch off the screen, without waiting for the laptop to go into sleep mode, then this is a great tip from Tombuntu. To switch the your monitor off use the command: sleep 1 && xset dpms force off. The sleep 1 (wait for one second) is needed only when you are typing the command in a terminal. This is because the command is executed as soon as the enter key is pressed, when it lifts up X turns the monitor back on. To turn this into a Linux desktop shortcut, right-click on your desktop and select "create new launcher". The "command" setting must be set to "xset dpms force off" (without the sleep 1). Regards, Joe1962 From simonart.dominique at ...11... Thu Feb 19 21:28:43 2009 From: simonart.dominique at ...11... (Dominique SIMONART) Date: Thu, 19 Feb 2009 21:28:43 +0100 Subject: [Gambas-user] How to populate a gridview from keyboard In-Reply-To: <200902171841.14832.gambas@...1...> References: <499AC6AB.3040807@...11...> <200902171841.14832.gambas@...1...> Message-ID: <499DC0FB.6070104@...11...> Beno?t Minisini a ?crit : >> Hi everyone, >> >> it seemed so simple that I feel a bit stupid with that question, but... >> I want to fill a gridview with text coming from the keyboard, as in a >> crossword. >> I think I've to deal with the keypress event and the key.text data, but >> how can I identify the cell to fill. I cannot even see any cursor on my >> grid. >> I want not to use the mouse cursor because my fingers are on the >> keyboard all the time. I wish to define the next cell with the cursor >> keys only. >> >> Could someone give me a short sample or point me on the right direction? >> >> Thanks in advance for your help >> Dominique Simonart >> >> > > Just implement the cursor your self. Create a class named MyGridView that > inherits GridView. > > In it, create an observer on yourself to catch the KeyPress event, and add two > class variables (let's name them $X and $Y) to store the cursor coordinates. > > Catch the Data event too to define the background / foreground of the cell: > Color.SelectededBackground and Color.SelectedForeground for the current cell > (Row = $Y and Column = $X), nothing otherwise (the standard colors). > > Then each time you move the cursor, update the $X and $Y variables, and > refresh the old current cell and the new one. > > If you don't want to use the Data event, you must use the MyGridView[X, Y] > cell accessor. > > Regards, > > Hi, I've implemented the Xcur, Ycur coordinates in a inherited class and this is working now. In case this could be used as an example, I join the little test (9.2K) here. Now I've another question. It is not related with the subject, but it is illustrated by the joined code, so I think I've to keep this thread open! My new question is: I want to execute some code while the mouse cursor is over a grid (the bottom right one in the joined piece). Note please that no mouse buttons are involved here, so I can't work whith the MouseMove event. The code don't concern the grid itself but the adjacent ones. I can't either use the GotFocus/LostFocus events because the code has to follow the mouse curso position as long the mouse cursor is over the grid. I hope this is clear enough ! thanks for your help, Dominique Simonart Dominique Simonart -------------- next part -------------- A non-text attachment was scrubbed... Name: GridWithCursor.gz Type: application/x-gzip Size: 9471 bytes Desc: not available URL: From jussi.lahtinen at ...626... Thu Feb 19 22:01:45 2009 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 19 Feb 2009 23:01:45 +0200 Subject: [Gambas-user] Monitor on/off In-Reply-To: <6c208f950902191220g39126949m40f518f8c2f23115@...627...> References: <384d3900902191025r54caca0eg774a3976b03204d@...627...> <6c208f950902191220g39126949m40f518f8c2f23115@...627...> Message-ID: <384d3900902191301m46dbcb69pe99387f16b135944@...627...> Thanks! Great! Jussi On Thu, Feb 19, 2009 at 10:20 PM, Jose J. Rodriguez wrote: > On 2/19/09, Jussi Lahtinen wrote: >> >> Anyone know how to turn monitor on/off from Gambas? >> Thanks! >> > > I had this tip saved for a while now, which seems to work so far: > > > One click monitor power-down for Linux > By Alastair Otter > 19 December, 2007 > > If you're running a Linux-powered laptop and you want to switch off > the screen, without waiting for the laptop to go into sleep mode, then > this is a great tip from Tombuntu. > > To switch the your monitor off use the command: sleep 1 && xset dpms force off. > > The sleep 1 (wait for one second) is needed only when you are typing > the command in a terminal. This is because the command is executed as > soon as the enter key is pressed, when it lifts up X turns the monitor > back on. > > > To turn this into a Linux desktop shortcut, right-click on your > desktop and select "create new launcher". > > The "command" setting must be set to "xset dpms force off" (without > the sleep 1). > > > Regards, > Joe1962 > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA > -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise > -Strategies to boost innovation and cut costs with open source participation > -Receive a $600 discount off the registration fee with the source code: SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Fri Feb 20 00:28:37 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Fri, 20 Feb 2009 00:28:37 +0100 Subject: [Gambas-user] Properties in Classes In-Reply-To: <499D8D54.4060604@...2079...> References: <499D8D54.4060604@...2079...> Message-ID: <200902200028.37789.gambas@...1...> > Hi All, > > As a Gambas Newbie I was wondering if there are any advantages to using > properties as opposed to get / set methods? > > Thanks for any help > > Richard The syntax is clearer. You usually use get / set methods in language that do not have properties. As for the execution time, you should not see any difference. Regards, -- Beno?t From gambas at ...1... Fri Feb 20 02:59:59 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Fri, 20 Feb 2009 02:59:59 +0100 Subject: [Gambas-user] Problems with Gambas 3 installation on Kubuntu Message-ID: <200902200259.59512.gambas@...1...> For Ron (and Olivier, David and other people having problems with installing Gambas 3). I have installed a Kubuntu 8.10 on a VirtualBox VM, and I follow what is explained on the Ubuntu Gambas wiki page for installing Gambas. I used the latest revision (#1883), and everything seems to work as expected. The only change in revision #1883 is in the installation process, where the informer is launched twice just before compiling the components written in Gambas (the /comp directory). It was launched once before. So, Ron, can you try to do the same thing as me: compile the latest revision, but from scratch, by doing a full checkout in a new directory, and by removing everything related to Gambas 3 on your system before. If it does not work then, I think I will put the Ubuntu team in a plane and make crash them on a lost island. :-) Regards, -- Beno?t From anuradha at ...2077... Fri Feb 20 05:15:25 2009 From: anuradha at ...2077... (Anuradha Ratnaweera) Date: Fri, 20 Feb 2009 09:45:25 +0530 Subject: [Gambas-user] Setting properties in a group Message-ID: Hi all, I have several buttons on a form, generated using the GUI, not though code. Say their names are "Button1", "Button2" etc - a lot of them. First, I wanted to share an event handler for all the buttons. I did this putting them all to a group called "Buttons" and using the event handler "Buttons_Click". Now I need to set the properties of all the buttons in the group. E.g.: to disable / enable them. Is there a way to iterate over all the buttons belonging to the group "Buttons"? Thanks in advance. Anuradha -- http://www.sayura.net/anuradha/ From ronstk at ...239... Fri Feb 20 08:40:34 2009 From: ronstk at ...239... (Ron_1st) Date: Fri, 20 Feb 2009 08:40:34 +0100 Subject: [Gambas-user] Problems with Gambas 3 installation on Kubuntu In-Reply-To: <200902200259.59512.gambas@...1...> References: <200902200259.59512.gambas@...1...> Message-ID: <200902200840.34561.ronstk@...239...> On Friday 20 February 2009, Beno?t Minisini wrote: > So, Ron, can you try to do the same thing as me: compile the latest revision, > but from scratch, by doing a full checkout in a new directory, and by removing > everything related to Gambas 3 on your system before. > Yes, I will do as quick as possible today, I must go to work. > If it does not work then, I think I will put the Ubuntu team in a plane and > make crash them on a lost island. :-) LOL > > Regards, > Best regards, Ron_1st -- From eilert-sprachen at ...221... Fri Feb 20 08:48:57 2009 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Fri, 20 Feb 2009 08:48:57 +0100 Subject: [Gambas-user] Gambas 2 -> Gambas 3 In-Reply-To: <200902190031.39395.gambas@...1...> References: <499A6DF9.7010307@...221...> <200902182000.22445.gambas@...1...> <200902182047.47200.ronstk@...239...> <200902190031.39395.gambas@...1...> Message-ID: <499E6069.9040507@...221...> Beno?t Minisini schrieb: > > Thanks. Now I need the result of the following commands on your (David & Ron) > system: > > $ pkg-config --cflags qt-mt > $ pkg-config --libs-only-l qt-mt > $ pkg-config --libs-only-L qt-mt > $ pkg-config --libs-only-other qt-mt > > If, of course, your qt development package uses the pkg-config system! > > Thanks in advance. > > Regards, > And these are mine, system is a Suse 10.3 32 bit server03:~ # pkg-config --cflags qt-mt -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -D_REENTRANT -I/usr/lib/qt3//include server03:~ # pkg-config --libs-only-l qt-mt -lqt-mt -lpng -lz -lXi -lXrender -lXrandr -lXcursor -lXinerama -lXft -lfreetype -lfontconfig -lXext -lX11 -lm -lSM -lICE -ldl -lpthread server03:~ # pkg-config --libs-only-L qt-mt -L/usr/lib/qt3//lib -L/usr/X11R6/lib -L/usr/lib/ -L/usr/X11R6/lib/ server03:~ # pkg-config --libs-only-other qt-mt [nothing] Hope it helps! Rolf From afroehlke at ...784... Fri Feb 20 09:06:06 2009 From: afroehlke at ...784... (=?iso-8859-1?Q?Andreas_Fr=F6hlke?=) Date: Fri, 20 Feb 2009 09:06:06 +0100 Subject: [Gambas-user] Gambas 2.11.1 Ubuntu 8.xx Socket Problem In-Reply-To: <200902181955.34723.gambas@...1...> References: <200902150841.00932.rterry@...1946...> <8D42310D957CFB46AA11921A711D4D16022172116D@...1899...> <200902181955.34723.gambas@...1...> Message-ID: <8D42310D957CFB46AA11921A711D4D16022172120C@...1899...> Hello again, we don't use a gambas server on the other site. Just the application wich connect to an server will take the cpu performance. Regards, A.Fr?hlke -----Urspr?ngliche Nachricht----- Von: Beno?t Minisini [mailto:gambas at ...1...] Gesendet: Mittwoch, 18. Februar 2009 19:56 An: mailing list for gambas users Betreff: Re: [Gambas-user] Gambas 2.11.1 Ubuntu 8.xx Socket Problem > Hello, > > we use a pc with ubuntu 8.10 and gambas v2.11.1. If the application just > connect over a socket to a server, the CPU-usage will go up to 13% for only > this one gbx2 process. So at only 8 opened applications, that will connect > to a server, the CPU useage is up to 100%. The same problem appears on > ubuntu 8.04. In news "29 Dec 2008 - Release of Gambas 2.10" is written > "Sockets will not take 100% CPU anymore.", but it seems, that it already do > so. Anyone has an solution? > > Regards A.Fr?hlke I confirm. I forgot to apply the Socket fix to the ServerSocket control. This is done in revision #1879. Regards, -- Beno?t ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Fri Feb 20 12:10:18 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Fri, 20 Feb 2009 12:10:18 +0100 Subject: [Gambas-user] Setting properties in a group In-Reply-To: References: Message-ID: <200902201210.18755.gambas@...1...> > Hi all, > > I have several buttons on a form, generated using the GUI, not though > code. Say their names are "Button1", "Button2" etc - a lot of them. > > First, I wanted to share an event handler for all the buttons. I did > this putting them all to a group called "Buttons" and using the event > handler "Buttons_Click". > > Now I need to set the properties of all the buttons in the group. > E.g.: to disable / enable them. Is there a way to iterate over all > the buttons belonging to the group "Buttons"? > > Thanks in advance. > > Anuradha There is no direct way to do that. But, if, for example, all your buttons have the same container, you can iterate it. Regards, -- Beno?t From gambas at ...1... Fri Feb 20 12:13:49 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Fri, 20 Feb 2009 12:13:49 +0100 Subject: [Gambas-user] Gambas 2.11.1 Ubuntu 8.xx Socket Problem In-Reply-To: <8D42310D957CFB46AA11921A711D4D16022172120C@...1899...> References: <200902150841.00932.rterry@...1946...> <200902181955.34723.gambas@...1...> <8D42310D957CFB46AA11921A711D4D16022172120C@...1899...> Message-ID: <200902201213.49246.gambas@...1...> > Hello again, > > we don't use a gambas server on the other site. Just the application wich > connect to an server will take the cpu performance. > > Regards, > > A.Fr?hlke > Strange: I did a test, and the client took no CPU, but the server did. So I fixed it. If your client takes CPU while idle (it should not), please can you take a gdb backtrace and send it me? To do that: $ ps axf # to get the PID of the gbx2 process that takes CPU. $ gdb gbx2 ... (gdb) bt ... If you can compile Gambas 2 from sources to get the debugging information, it would be great. If you have debugging development packages on your distribution, you just have to install them instead. Regards, -- Beno?t From ronstk at ...239... Fri Feb 20 18:54:45 2009 From: ronstk at ...239... (Ron_1st) Date: Fri, 20 Feb 2009 18:54:45 +0100 Subject: [Gambas-user] Problems with Gambas 3 installation on Kubuntu In-Reply-To: <200902200840.34561.ronstk@...239...> References: <200902200259.59512.gambas@...1...> <200902200840.34561.ronstk@...239...> Message-ID: <200902201854.45740.ronstk@...239...> On Friday 20 February 2009, Ron_1st wrote: > On Friday 20 February 2009, Beno?t Minisini wrote: > > So, Ron, can you try to do the same thing as me: compile the latest revision, > > but from scratch, by doing a full checkout in a new directory, and by removing > > everything related to Gambas 3 on your system before. > > > > Yes, I will do as quick as possible today, I must go to work. > > > If it does not work then, I think I will put the Ubuntu team in a plane and > > make crash them on a lost island. :-) > > LOL > > > > > Regards, > > > > > Best regards, > > Ron_1st > No lucky me :( Attached the logfiles. The mymake2.log is the reainder part because the gb.v4l problems. Forgotten to remark the wrong 'case undeclared_value' lines. Funny found in install for 1883, was correct in 1851 : --------------- Compiling the gb.xml.rpc project... gbi3: warning: component gb.xml.rpc not found gb.xml.rpc OK Creating the information files for gb.xml.rpc component... gb.xml.rpc ---------------- in 1883 not 1851 Making install in gb.cairo make[1]: Entering directory `/home/ron/src/gambas3/trunk1883/gb.cairo' Making install in src make[2]: Entering directory `/home/ron/src/gambas3/trunk1883/gb.cairo/src' You working hard :) ---------------- in 1883 ------- gb.debug gb.desktop gb.eval gb.gtk gb.gtk.ext gb.gtk.svg ----- in 1851 ----- gb.debug gb.desktop gb.eval gb.form gbi3: warning: .info file not found in component archive. gb.form.dialog gb.form.mdi gbi3: warning: .info file not found in component archive. gb.gtk gb.gtk.ext gb.gtk.svg -- Good those warnings are gone :) in 1883 ... gb.xml gb.xml.rpc gb.xml.xslt Installing the components... Compiling gb.settings... ... in 1851 gb.xml gb.xml.rpc gb.xml.xslt Installing the components... Compiling gb.settings... Oops gb.form and gb.form.mdi not done??? ----------- in both: warning: cannot read component list file: gb.form.list So the .info and .list are still not present. :) ------------- in both Compiling Database/Database/... warning: cannot read component list file: gb.form.list warning: cannot read component list file: gb.db.form.list /usr/local/share/gambas3/examples/Database/Database/FMain.class:182: Unknown identifier: Frame In general I can say just remove the svn version 1883 and 1851 and both logs are mor or less equal. Just the double gbi pass is visible Can you agree there must be something going wrong with gbi? Given the home compiled gambas2 version of gbi works it would be nice to put temporary the code of gb2 but i do not expect it will work :=) It is of course not the solution. Can you provide me with a print/sprint line for output to seperate file when gbi is running. I can then try deep testing gbi to find the stupid abort in gbi. It can be a basic line, the routing to the seperate file. For the print/sprint I must be able to find or do you suggest something else. I want log a few components, special the gb.form.xxx ones because they are almost every time involved. My compiler hates the word 'form' ??? In the mean time the lost island has new Ubuntu team members. :) Best regards, Ron_1st -- A: Delete the text you reply on. Q: What to do to get my post on top? --- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? --- A: Top-posting. Q: What is the most annoying thing in e-mail? -------------- next part -------------- A non-text attachment was scrubbed... Name: myconf.log.zip Type: application/x-zip Size: 6202 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: mymake2.log.zip Type: application/x-zip Size: 10487 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: myinstal.log.zip Type: application/x-zip Size: 8631 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: mymake.log.zip Type: application/x-zip Size: 25668 bytes Desc: not available URL: From richard at ...2079... Fri Feb 20 21:13:33 2009 From: richard at ...2079... (Richard Gladman) Date: Fri, 20 Feb 2009 20:13:33 +0000 Subject: [Gambas-user] Properties in Classes In-Reply-To: <200902200028.37789.gambas@...1...> References: <499D8D54.4060604@...2079...> <200902200028.37789.gambas@...1...> Message-ID: <499F0EED.3050503@...2079...> Beno?t Minisini wrote: >> Hi All, >> >> As a Gambas Newbie I was wondering if there are any advantages to using >> properties as opposed to get / set methods? >> >> Thanks for any help >> >> Richard >> > > The syntax is clearer. You usually use get / set methods in language that do > not have properties. > > As for the execution time, you should not see any difference. > > Regards, > > I thought it might be something like that. Well, now that I have found out about them I am going to have to re-factor my code to use them. I might as well do things the right way... Thanks. -- Quantum materiae materietur marmota monax si marmota monax materiam possit materiari? (How much wood would a woodchuck chuck if a woodchuck could chuck wood?) Registered Linux User: #459086 From gambas at ...1... Fri Feb 20 23:35:57 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Fri, 20 Feb 2009 23:35:57 +0100 Subject: [Gambas-user] Problems with Gambas 3 installation on Kubuntu In-Reply-To: <200902201854.45740.ronstk@...239...> References: <200902200259.59512.gambas@...1...> <200902200840.34561.ronstk@...239...> <200902201854.45740.ronstk@...239...> Message-ID: <200902202335.58040.gambas@...1...> > On Friday 20 February 2009, Ron_1st wrote: > > On Friday 20 February 2009, Beno?t Minisini wrote: > > > So, Ron, can you try to do the same thing as me: compile the latest > > > revision, but from scratch, by doing a full checkout in a new > > > directory, and by removing everything related to Gambas 3 on your > > > system before. > > > > Yes, I will do as quick as possible today, I must go to work. > > > > > If it does not work then, I think I will put the Ubuntu team in a plane > > > and make crash them on a lost island. :-) > > > > LOL > > > > > Regards, > > > > Best regards, > > > > Ron_1st > > No lucky me :( > > Attached the logfiles. > The mymake2.log is the reainder part because the gb.v4l problems. > Forgotten to remark the wrong 'case undeclared_value' lines. > > > Funny found in install for 1883, was correct in 1851 : > --------------- > Compiling the gb.xml.rpc project... > gbi3: warning: component gb.xml.rpc not found > gb.xml.rpc > OK This warning is normal and not a problem. > > Creating the information files for gb.xml.rpc component... > gb.xml.rpc > ---------------- > in 1883 not 1851 > Making install in gb.cairo > make[1]: Entering directory `/home/ron/src/gambas3/trunk1883/gb.cairo' > Making install in src > make[2]: Entering directory `/home/ron/src/gambas3/trunk1883/gb.cairo/src' > > You working hard :) > ---------------- > in 1883 > ------- > gb.debug > gb.desktop > gb.eval > > > > > gb.gtk > gb.gtk.ext > gb.gtk.svg > ----- > in 1851 > ----- > gb.debug > gb.desktop > gb.eval > gb.form > gbi3: warning: .info file not found in component archive. > gb.form.dialog > gb.form.mdi > gbi3: warning: .info file not found in component archive. > gb.gtk > gb.gtk.ext > gb.gtk.svg > -- > Good those warnings are gone :) > in 1883 > ... > gb.xml > gb.xml.rpc > gb.xml.xslt > Installing the components... > Compiling gb.settings... > > ... > in 1851 > gb.xml > gb.xml.rpc > gb.xml.xslt > Installing the components... > Compiling gb.settings... > > Oops gb.form and gb.form.mdi not done??? > ----------- > in both: > warning: cannot read component list file: gb.form.list > So the .info and .list are still not present. :) > ------------- > in both > Compiling Database/Database/... > warning: cannot read component list file: gb.form.list > warning: cannot read component list file: gb.db.form.list > /usr/local/share/gambas3/examples/Database/Database/FMain.class:182: > Unknown identifier: Frame > > In general I can say just remove the svn version 1883 and 1851 and both > logs are mor or less equal. > Just the double gbi pass is visible > > Can you agree there must be something going wrong with gbi? I don't know if it is gbi that is wrong or your system: I installed the last Kubuntu from scratch, and everything compiles and installs as expected. So what is the difference between your system and a Kubuntu installed from scratch with all the development package needed to compile Gambas? > Given the home compiled gambas2 version of gbi works it would be nice to > put temporary the code of gb2 but i do not expect it will work :=) > It is of course not the solution. > > Can you provide me with a print/sprint line for output to seperate file > when gbi is running. I can then try deep testing gbi to find the > stupid abort in gbi. > It can be a basic line, the routing to the seperate file. > For the print/sprint I must be able to find or do you suggest something > else. > gbi3 creates the *.list and *.info files only for components written in C/C++. For components written in Gambas, these files are actually created by the compiler (gbc3). So it is not necessarily gbi's fault. I will compare your compilation output with the one on my Kubuntu 8.10, and I will tell you... Regards, -- Beno?t From lord.quo at ...626... Sat Feb 21 00:17:46 2009 From: lord.quo at ...626... (Daniel Rojas) Date: Fri, 20 Feb 2009 17:17:46 -0600 Subject: [Gambas-user] How to create a web site with Gambas In-Reply-To: <1e1dd3c30902171033if2ab2ai1d2f713c7bfc9795@...627...> References: <1e1dd3c30902171033if2ab2ai1d2f713c7bfc9795@...627...> Message-ID: <1e1dd3c30902201517t47d7bae7o2df59dee9c8ddab3@...627...> Anibody wants help me? Daniel Quintero desde la Ciudad de M?xico On Tue, Feb 17, 2009 at 12:33 PM, Daniel Rojas wrote: > Hi all. > > I'm a begginer with Gambas and I want to create a web site whit it, but > I don't know how to start. Can somebody help me? > > Thanks. > > Daniel Quintero desde la Ciudad de M?xico > From theatre at ...2012... Sat Feb 21 00:39:27 2009 From: theatre at ...2012... (Frank Cox) Date: Fri, 20 Feb 2009 17:39:27 -0600 Subject: [Gambas-user] How to create a web site with Gambas In-Reply-To: <1e1dd3c30902201517t47d7bae7o2df59dee9c8ddab3@...627...> References: <1e1dd3c30902171033if2ab2ai1d2f713c7bfc9795@...627...> <1e1dd3c30902201517t47d7bae7o2df59dee9c8ddab3@...627...> Message-ID: <20090220173927.1c7fdac8.theatre@...2012...> On Fri, 20 Feb 2009 17:17:46 -0600 Daniel Rojas wrote: > Anibody wants help me? You will have to come up with a much more specific question if you are to get any meaningful help. If you are just planning to create a simple website, you may want to look at OpenOffice instead. I use the OpenOffice HTML editor to create simple websites all the time. -- MELVILLE THEATRE ~ Melville Sask ~ http://www.melvilletheatre.com DRY CLEANER BUSINESS FOR SALE ~ http://www.canadadrycleanerforsale.com From gambas at ...1... Sat Feb 21 00:41:29 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Sat, 21 Feb 2009 00:41:29 +0100 Subject: [Gambas-user] Problems with Gambas 3 installation on Kubuntu In-Reply-To: <200902201854.45740.ronstk@...239...> References: <200902200259.59512.gambas@...1...> <200902200840.34561.ronstk@...239...> <200902201854.45740.ronstk@...239...> Message-ID: <200902210041.29911.gambas@...1...> > On Friday 20 February 2009, Ron_1st wrote: > > Attached the logfiles. > The mymake2.log is the reainder part because the gb.v4l problems. > Forgotten to remark the wrong 'case undeclared_value' lines. > > I compare my "make install" output with yours. I replaced our respective compilation directories by (GAMBAS)/trunk to see only the interesting differences. Look in the joined make-install.diff file. The first difference is: --8<------------------------------------------------------------------ @@ -373,13 +373,12 @@ ---------------------------------------------------------------------- make install-data-hook make[5]: Entering directory `(GAMBAS)/trunk/main/lib/gui' Creating the information files for gb.gui component... gb.gui -gbi3: warning: component gb.qt not found make[5]: Leaving directory `(GAMBAS)/trunk/main/lib/gui' make[4]: Leaving directory `(GAMBAS)/trunk/main/lib/gui' make[3]: Leaving directory `(GAMBAS)/trunk/main/lib/gui' Making install in image make[3]: Entering directory `(GAMBAS)/trunk/main/lib/image' --8<------------------------------------------------------------------ I have a warning that is expected ("gbi3: warning: component gb.qt not found"), as gb.qt is not yet compiled. You don't have the warning. So that means that gbi3 found a accurate gb.qt component already installed, which is not possible if you have done the installation on a clean system. So my question is: are you really sure that what you sent me is a "make install" output of a fresh installation, and that you removed from your OS every file coming from a previous Gambas 3 installation? -- Beno?t -------------- next part -------------- A non-text attachment was scrubbed... Name: make-install.diff Type: text/x-patch Size: 21583 bytes Desc: not available URL: From lord.quo at ...626... Sat Feb 21 01:02:34 2009 From: lord.quo at ...626... (Daniel Rojas) Date: Fri, 20 Feb 2009 18:02:34 -0600 Subject: [Gambas-user] How to create a web site with Gambas In-Reply-To: <20090220173927.1c7fdac8.theatre@...2012...> References: <1e1dd3c30902171033if2ab2ai1d2f713c7bfc9795@...627...> <1e1dd3c30902201517t47d7bae7o2df59dee9c8ddab3@...627...> <20090220173927.1c7fdac8.theatre@...2012...> Message-ID: <1e1dd3c30902201602y7f40da6ev1847ee7419d494d@...627...> Mmm, ok. I have a program that make queries to my MySQL database and export the result to a CSV (Excel) file and then I mail this reporte to my users. I want to put this app in a web site on mi pc, and that my users can access this app directly. They don't have to write queries, only choose an option, give some filters (date, product category, etc.) and get the CSV report. Thanks. Daniel Quintero desde la Ciudad de M?xico On Fri, Feb 20, 2009 at 5:39 PM, Frank Cox wrote: > On Fri, 20 Feb 2009 17:17:46 -0600 > Daniel Rojas wrote: > > > Anibody wants help me? > > You will have to come up with a much more specific question if you are to > get > any meaningful help. > > If you are just planning to create a simple website, you may want to look > at > OpenOffice instead. I use the OpenOffice HTML editor to create simple > websites > all the time. From gambas at ...1... Sat Feb 21 01:04:58 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Sat, 21 Feb 2009 01:04:58 +0100 Subject: [Gambas-user] Problems with Gambas 3 installation on Kubuntu In-Reply-To: <200902210041.29911.gambas@...1...> References: <200902200259.59512.gambas@...1...> <200902201854.45740.ronstk@...239...> <200902210041.29911.gambas@...1...> Message-ID: <200902210104.58909.gambas@...1...> > > On Friday 20 February 2009, Ron_1st wrote: > > > > Attached the logfiles. > > The mymake2.log is the reainder part because the gb.v4l problems. > > Forgotten to remark the wrong 'case undeclared_value' lines. > > I compare my "make install" output with yours. I replaced our respective > compilation directories by (GAMBAS)/trunk to see only the interesting > differences. > > Look in the joined make-install.diff file. > > The first difference is: > > --8<------------------------------------------------------------------ > > @@ -373,13 +373,12 @@ > ---------------------------------------------------------------------- > make install-data-hook > make[5]: Entering directory `(GAMBAS)/trunk/main/lib/gui' > > Creating the information files for gb.gui component... > gb.gui > -gbi3: warning: component gb.qt not found > > make[5]: Leaving directory `(GAMBAS)/trunk/main/lib/gui' > make[4]: Leaving directory `(GAMBAS)/trunk/main/lib/gui' > make[3]: Leaving directory `(GAMBAS)/trunk/main/lib/gui' > Making install in image > make[3]: Entering directory `(GAMBAS)/trunk/main/lib/image' > > --8<------------------------------------------------------------------ > > I have a warning that is expected ("gbi3: warning: component gb.qt not > found"), as gb.qt is not yet compiled. You don't have the warning. > > So that means that gbi3 found a accurate gb.qt component already installed, > which is not possible if you have done the installation on a clean system. > > So my question is: are you really sure that what you sent me is a "make > install" output of a fresh installation, and that you removed from your OS > every file coming from a previous Gambas 3 installation? Otherwise, I have enabled verbose output in gbi in revision #1884. Can you send me a full output of "make install" with this revision, so that I can compare the both verbose output of gbi, yours and mine? Thanks in advance! -- Beno?t From marc at ...2075... Sat Feb 21 02:17:29 2009 From: marc at ...2075... (Marc Miralles) Date: Sat, 21 Feb 2009 02:17:29 +0100 Subject: [Gambas-user] Gambas 3 gb.desktop Message-ID: <499F5629.4070403@...2075...> From rterry at ...1946... Sat Feb 21 03:44:39 2009 From: rterry at ...1946... (richard terry) Date: Sat, 21 Feb 2009 13:44:39 +1100 Subject: [Gambas-user] Setting properties in a group In-Reply-To: References: Message-ID: <200902211344.39579.rterry@...1946...> On Fri, 20 Feb 2009 03:15:25 pm Anuradha Ratnaweera wrote: > Hi all, > > I have several buttons on a form, generated using the GUI, not though > code. Say their names are "Button1", "Button2" etc - a lot of them. > > First, I wanted to share an event handler for all the buttons. I did > this putting them all to a group called "Buttons" and using the event > handler "Buttons_Click". > > Now I need to set the properties of all the buttons in the group. > E.g.: to disable / enable them. Is there a way to iterate over all > the buttons belonging to the group "Buttons"? > > Thanks in advance. > > Anuradha This will do what you want, and is what Benoit was referring to about iterating: In this example I've put a VerticalBox on a form and put some buttons inside it . When you call this from code it will enable or disable the buttons: I quickly made up a little project to make sure this works which it does. eg. Toggle_Buttons(False) will disable them all at once Public Sub Toggle_Buttons(aflag as boolean) Dim hCtrl As control Dim aButton As Button For Each hctrl In Vbox1.Children If hctrl Is button Then aButton = hctrl aButton.enabled = aFlag End If Next End If you are coming from visual basic, you've probably been used to addressing them as a control array eg button(1), button(2) and being able do do a loop through them to enable, disable. Gambas is stunningly better than visual basic, you will get used to it if you persist and see its merits keep sending us questions as you need to. Regards Richard From dosida at ...626... Sat Feb 21 08:40:41 2009 From: dosida at ...626... (Dimitris Anogiatis) Date: Sat, 21 Feb 2009 00:40:41 -0700 Subject: [Gambas-user] Array Concatenation Message-ID: <82bffccf0902202340t726e552bq571e20c8a1a4de4a@...627...> Hey guys, First of all I wanna say you guys ROCK :) Thank you for making this wonderful program and keep up the great work :) My question is: Is there a way to concatenate 2 arrays without using a for loop? Perhaps there is an undocumented mechanism like tmpArr += Array.copy() or some workaround to that? Thanks for the time you took to read this email Sincerely, Dimitrios Anogiatis From gambas at ...1... Sat Feb 21 12:14:30 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Sat, 21 Feb 2009 12:14:30 +0100 Subject: [Gambas-user] Array Concatenation In-Reply-To: <82bffccf0902202340t726e552bq571e20c8a1a4de4a@...627...> References: <82bffccf0902202340t726e552bq571e20c8a1a4de4a@...627...> Message-ID: <200902211214.31513.gambas@...1...> > Hey guys, > > First of all I wanna say you guys ROCK :) Thanks. :-) > > Thank you for making this wonderful program > and keep up the great work :) > > My question is: > > Is there a way to concatenate 2 arrays without using a for loop? > Perhaps there is an undocumented mechanism like > > tmpArr += Array.copy() > > or some workaround to that? > > Thanks for the time you took to read this email > > Sincerely, > Dimitrios Anogiatis 'tmpArr.Insert(Array)' will do the job. Regards, -- Beno?t From nando_f at ...951... Sat Feb 21 18:56:27 2009 From: nando_f at ...951... (nando) Date: Sat, 21 Feb 2009 12:56:27 -0500 Subject: [Gambas-user] How to create a web site with Gambas In-Reply-To: <1e1dd3c30902201517t47d7bae7o2df59dee9c8ddab3@...627...> References: <1e1dd3c30902171033if2ab2ai1d2f713c7bfc9795@...627...> <1e1dd3c30902201517t47d7bae7o2df59dee9c8ddab3@...627...> Message-ID: <20090221175010.M54168@...951...> Although I've never used Gambas for a website, And I would like to soon... It would be something like this: Apache would have to be configured to invoke Gambas when Apach found a particular suffix. Example: a webpage ending in .php Apache knows to invoke PHP processor If you set Apache to detect (for example) .gb, it would then invoke Gambas and pass the the name (ie) foo.gb to Gambas to run. You name all your Gambas scripts to whatever.gb Print to Gambas standard out which Apache catches and sends back to the client. Now...the details... Someone, please correct me if I am wrong. -Fernando ---------- Original Message ----------- From: Daniel Rojas To: gambas-user at lists.sourceforge.net Sent: Fri, 20 Feb 2009 17:17:46 -0600 Subject: Re: [Gambas-user] How to create a web site with Gambas > Anibody wants help me? > > Daniel Quintero desde la Ciudad de M?xico > > On Tue, Feb 17, 2009 at 12:33 PM, Daniel Rojas wrote: > > > Hi all. > > > > I'm a begginer with Gambas and I want to create a web site whit it, but > > I don't know how to start. Can somebody help me? > > > > Thanks. > > > > Daniel Quintero desde la Ciudad de M?xico > > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA > -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise > -Strategies to boost innovation and cut costs with open source participation > -Receive a $600 discount off the registration fee with the source code: SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From bundeshund at ...467... Sat Feb 21 20:24:59 2009 From: bundeshund at ...467... (Hans-Martin) Date: Sat, 21 Feb 2009 20:24:59 +0100 Subject: [Gambas-user] Gambas on ARM? Message-ID: <200902212025.02594.bundeshund@...467...> Hi all, to make it short: Is it possible to compile gambas for ARM-Plattforms for eg Openmokos Freerunner (http://wiki.openmoko.org/wiki/Neo_FreeRunner)? regards, HMB From jredrejo at ...626... Sat Feb 21 21:20:27 2009 From: jredrejo at ...626... (=?UTF-8?Q?Jos=C3=A9_Luis_Redrejo?=) Date: Sat, 21 Feb 2009 21:20:27 +0100 Subject: [Gambas-user] Gambas on ARM? In-Reply-To: <200902212025.02594.bundeshund@...467...> References: <200902212025.02594.bundeshund@...467...> Message-ID: <8eb28a500902211220n6b0f9e1kf84b87e0a2a6887f@...627...> 2009/2/21 Hans-Martin > Hi all, > > to make it short: > > Is it possible to compile gambas for ARM-Plattforms for eg Openmokos > Freerunner (http://wiki.openmoko.org/wiki/Neo_FreeRunner)? > > Compiling it should be possible, just take a look at http://packages.debian.org/search?keywords=gambas2-dev&searchon=names&suite=all§ion=all but I guess nobody tested if it works in some of the compiled platforms. Regards Jos? L. From ronstk at ...239... Sat Feb 21 19:00:58 2009 From: ronstk at ...239... (Ron_1st) Date: Sat, 21 Feb 2009 19:00:58 +0100 Subject: [Gambas-user] Problems with Gambas 3 installation on Kubuntu In-Reply-To: <200902210104.58909.gambas@...1...> References: <200902200259.59512.gambas@...1...> <200902210041.29911.gambas@...1...> <200902210104.58909.gambas@...1...> Message-ID: <200902211900.59395.ronstk@...239...> On Saturday 21 February 2009, Beno?t Minisini wrote: > > > On Friday 20 February 2009, Ron_1st wrote: > > > > > > Attached the logfiles. > > > The mymake2.log is the reainder part because the gb.v4l problems. > > > Forgotten to remark the wrong 'case undeclared_value' lines. > > > > I compare my "make install" output with yours. I replaced our respective > > compilation directories by (GAMBAS)/trunk to see only the interesting > > differences. > > > > Look in the joined make-install.diff file. > > > > The first difference is: > > > > --8<------------------------------------------------------------------ > > > > @@ -373,13 +373,12 @@ > > ---------------------------------------------------------------------- > > make install-data-hook > > make[5]: Entering directory `(GAMBAS)/trunk/main/lib/gui' > > > > Creating the information files for gb.gui component... > > gb.gui > > -gbi3: warning: component gb.qt not found > > > > make[5]: Leaving directory `(GAMBAS)/trunk/main/lib/gui' > > make[4]: Leaving directory `(GAMBAS)/trunk/main/lib/gui' > > make[3]: Leaving directory `(GAMBAS)/trunk/main/lib/gui' > > Making install in image > > make[3]: Entering directory `(GAMBAS)/trunk/main/lib/image' > > > > --8<------------------------------------------------------------------ > > > > I have a warning that is expected ("gbi3: warning: component gb.qt not > > found"), as gb.qt is not yet compiled. You don't have the warning. > > > > So that means that gbi3 found a accurate gb.qt component already installed, > > which is not possible if you have done the installation on a clean system. > > > > So my question is: are you really sure that what you sent me is a "make > > install" output of a fresh installation, and that you removed from your OS > > every file coming from a previous Gambas 3 installation? > > Otherwise, I have enabled verbose output in gbi in revision #1884. Can you > send me a full output of "make install" with this revision, so that I can > compare the both verbose output of gbi, yours and mine? > > Thanks in advance! > Ok done the job for gambas-3 svn-1883. First take note Charlie and me have the same errors Both are using kubuntu 8.04 instead of 8.10 !! I do not get the gbi3 warning about gb.qt you mention > > So that means that gbi3 found a accurate gb.qt component already installed, Do you know the filename? (gb.qt.component attached) In /gb.qt/src/opengl gb.qt and ext no .info or .list files List of all (almost) files of gambas3 for length in trunk:ls -alAR > myallfiles.log (1.6MB) ls -alAR > usr_local_share_gambas3_info.log ls -alAR > usr_local_lib_gambas3.log ls -alAR > usr_local_bin.log gambas_done.txt is how I checked and clean the box for gambas2 and gambas3 Makefile is the /trunk/main/gbc/Makefile Attached the log files I hope next week to get some time on my work to use a fresh installed kubuntu 8.04 Best regards, Ron_1st -- -------------- next part -------------- # gb.gui.la - a libtool library file # Generated by ltmain.sh - GNU libtool 1.5.24 (1.1220.2.456 2007/06/24 02:25:32) # # Please DO NOT delete this file! # It is necessary for linking the library. # The name that we can dlopen(3). dlname='gb.gui.so.0' # Names of this library. library_names='gb.gui.so.0.0.0 gb.gui.so.0 gb.gui.so' # The name of the static archive. old_library='' # Libraries that this one depends upon. dependency_libs='' # Version information for gb.gui. current=0 age=0 revision=0 # Is this an already installed library? installed=no # Should we warn about portability when linking against -modules? shouldnotlink=yes # Files to dlopen/dlpreopen dlopen='' dlpreopen='' # Directory that this library needs to be installed in: libdir='/usr/local/lib/gambas3' -------------- next part -------------- # gb.qt.la - a libtool library file # Generated by ltmain.sh - GNU libtool 1.5.24 (1.1220.2.456 2007/06/24 02:25:32) # # Please DO NOT delete this file! # It is necessary for linking the library. # The name that we can dlopen(3). dlname='gb.qt.so.0' # Names of this library. library_names='gb.qt.so.0.0.0 gb.qt.so.0 gb.qt.so' # The name of the static archive. old_library='' # Libraries that this one depends upon. dependency_libs=' -L/usr/X11R6/lib /usr/lib/libqt-mt.la -ljpeg -lfreetype -laudio -lXt /usr/lib/libjpeg.la -lpng -lXi -lXrender -lXrandr -lXcursor -lXinerama -lXft /usr/lib/libfreetype.la -lz -lfontconfig -lXext -lX11 -lSM -lICE -ldl -lpthread' # Version information for gb.qt. current=0 age=0 revision=0 # Is this an already installed library? installed=no # Should we warn about portability when linking against -modules? shouldnotlink=yes # Files to dlopen/dlpreopen dlopen='' dlpreopen='' # Directory that this library needs to be installed in: libdir='/usr/local/lib/gambas3' -------------- next part -------------- A non-text attachment was scrubbed... Name: myconf.log.zip Type: application/x-zip Size: 6196 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: myinstall.log.zip Type: application/x-zip Size: 10203 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: mymake.log.zip Type: application/x-zip Size: 33904 bytes Desc: not available URL: -------------- next part -------------- Steps done mount extern hdd named here as 'exhdd' cd src/gambas2/ make uninstall move source tree to exhdd cd src/gambas3/trunk1883 make uninstall move all svn trunks to exhdd (for diff testing I keep a few versions) move your delivered logfiles to exhdd move /var/lib/mlocate to exhdd check /etc/ld.so.cache for gb.qt nothing found check /etc/* for file contain gb.qt nothing found check for gb2 and gb3 related entities in /usr/bin /usr/include /usr/lib /usr/lib64 /usr/share nothing found usr/local/* usr/local/lib deleted empty gambas2 and gambas3 (empty) usr/local/share (icons 3x and info empty) deleted empty gambas2 and gambas3 usr/local/share/icons/hicolor/64x64/mimetypes deleted 6 entities disabled every non relevant partitions/hdd for speedup next step run updatedb cd /home/ron/src/gambas3 svn checkout https://gambas.svn.sourceforge.net/svnroot/gambas/gambas/trunk/ .... Checked out revision 1884. cd trunk remarked the format lines in gb.v4l/src/gv4l2.c root at ...1311...:/home/ron/src/gambas3/trunk# find / -iname gb.qt /home/ron/src/gambas3/trunk/gb.qt /home/ron/src/gambas3/trunk/gb.qt/src/gb.qt root at ...1311...:/home/ron/src/gambas3/trunk# find / -iname gambas /home/ron/Desktop/linux-prog/Progjes/Gambas /home/ron/.kde/share/apps/kmail/mail/.sent-mail.directory/gambas /home/ron/.kde/share/apps/kmail/mail/.inbox.directory/gambas /var/lib/mysql/gambas locate gambas many but not related for compile (mail and at Desktop) locate gb.q nothing locate gb.qt nothing So system should be clean ./reconf-all > myreconf.log 2>&1 ./configure > myconf.log 2>&1 make > mymake 2>&1 In the mean time reading the myconf.log #cat myconf.log | grep WARN configure: WARNING: Unable to find file: libintl.so configure: WARNING: Unable to find file: libiconv.so configure: WARNING: *** foreign function interface is disabled OK you has explain it already configure: WARNING: Unable to find file: libqte-mt.so configure: WARNING: *** QT/Embedded component is disabled We already know configure: WARNING: Unable to find file: CORBA.h configure: WARNING: Unable to find file: libomniORB4.so configure: WARNING: Unable to find file: libomniDynamic4.so configure: WARNING: *** CORBA component is disabled Yes OK, should not be related configure: WARNING: *** Gnome desktop routines is disabled Oops, is this correct? Used in gb.gui? configure: WARNING: *** QT4 OpenGL is disabled Can it have some connection to general qt related things? I know warnings as above are normal not very important but you never know. :) checking the maximum length of command line arguments... (cached) 98304 Seen in your log files a much bigger size, just information, not suspect ATM. ************************************************************ THESE COMPONENTS ARE DISABLED: - gb.corba - gb.qte ************************************************************ Just as your log look the same as mine does not mean they are right. I just read again to search for points that make sence or not. Reading the myinstall.log =============== line#:909 Analyzing component gb.gtk Loading native component: /usr/local/lib/gambas3/gb.gtk.so Including gb.draw /home/ron/src/gambas3/trunk/gb.gtk/src/gb.gtk/Action.class:16: Unknown identifier: Picture note1: I have seen in the makefile(s) the Action directory is deleted. note2: same for gb.qt at line#:1292 and gb.qt4 at line#:2123 =============== Line#:973 Analyzing component gb.net Loading native component: /usr/local/lib/gambas3/gb.net.so wrote /usr/local/share/gambas3/info/gb.net.info wrote /usr/local/share/gambas3/info/gb.net.list note: yes gbi works as we know already :) =============== Line#:1653 Analyzing component gb.xml.rpc gbi3: warning: component gb.xml.rpc not found OK Note: Ok you explain already this is OK here :) =============== Line#:2008 Analyzing component gb.desktop Loading native component: /usr/local/lib/gambas3/gb.desktop.so wrote /usr/local/share/gambas3/info/gb.desktop.info wrote /usr/local/share/gambas3/info/gb.desktop.list /home/ron/src/gambas3/trunk/gb.desktop/src/gb.desktop/Form1.class:47: Unknown identifier: Button note: I'm not so happy with this one =============== Line#:2262 :=) :=) Running the informer again twice because of dependencies between information files =============== Line#:2681 Installing the components... Compiling gb.settings... OK Installing gb.settings... Compiling gb.info... OK Installing gb.info... Compiling gb.form... warning: cannot read component list file: gb.form.list /home/ron/src/gambas3/trunk/comp/src/gb.form/Balloon.class:5: Unknown identifier: Control Installing gb.form... /usr/bin/install: cannot stat `.info': No such file or directory chmod: cannot access `/usr/local/share/gambas3/info/gb.form.info': No such file or directory /usr/bin/install: cannot stat `.list': No such file or directory chmod: cannot access `/usr/local/share/gambas3/info/gb.form.list': No such file or directory Compiling gb.form.dialog... warning: cannot read component list file: gb.form.list /home/ron/src/gambas3/trunk/comp/src/gb.form.dialog/FDirDialog.class:51: Unknown identifier: DirChooser Installing gb.form.dialog... It's just all componnent using gb.form.list has the same problem here. ===================== Line#:2785 Installing the gambas examples... allmost all /usr/local/share/gambas3/examples///.class:##: Unknown identifier: many times warning: cannot read component list file: gb.form.list Compiling Games/BeastScroll/... OK Compiling OpenGL/3DWebCam/... OK Compiling OpenGL/GambasGears/... OK Line#:2896 Compiling Video/WebCam/... warning: cannot read component list file: gb.form.list /usr/local/share/gambas3/examples/Video/WebCam/FDevice.class:314: Unknown identifier: Panel make[2]: Nothing to be done for `install-data-am'. make[2]: Leaving directory `/home/ron/src/gambas3/trunk/examples' make[1]: Leaving directory `/home/ron/src/gambas3/trunk/examples' make[1]: Entering directory `/home/ron/src/gambas3/trunk' make[2]: Entering directory `/home/ron/src/gambas3/trunk' make[2]: Nothing to be done for `install-exec-am'. make[2]: Nothing to be done for `install-data-am'. make[2]: Leaving directory `/home/ron/src/gambas3/trunk' make[1]: Leaving directory `/home/ron/src/gambas3/trunk' -------------- next part -------------- [Component] Key=gb.qt Author=Beno?t Minisini Implements=Form,EventLoop,ImageIO Type=Form Requires=gb.image [Form] Control=Label,TextLabel,Separator,PictureBox,MovieBox,ProgressBar Control=Button,CheckBox,RadioButton,ToggleButton,ToolButton,Slider,ScrollBar Control=ListBox,ComboBox,TextBox,SpinBox,TextArea Control=ListView,TreeView,IconView,ColumnView,GridView [Container] Control=HBox,VBox,HPanel,VPanel,HSplit,VSplit,Panel,Frame,TabStrip,ScrollView,DrawingArea Container=HBox,VBox,HPanel,VPanel,HSplit,VSplit,Panel,Frame,TabStrip,ScrollView,DrawingArea MultiContainer=TabStrip [Special] Control=Embedder,TrayIcon Virtual=TrayIcon [Change] Label=TextLabel Button=ToggleButton,ToolButton Slider=ScrollBar,SpinBox TextBox=SpinBox,TextArea ListView=TreeView,ColumnView Panel=HBox,VBox,HPanel,VPanel,Frame,ScrollView -------------- next part -------------- A non-text attachment was scrubbed... Name: myallfiles.log.zip Type: application/x-zip Size: 125279 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: usr_local_share_gambas3_info.log Type: text/x-log Size: 5021 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: usr_local_lib_gambas3.log.zip Type: application/x-zip Size: 2165 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: usr_local_bin.log Type: text/x-log Size: 988 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Makefile.zip Type: application/x-zip Size: 9617 bytes Desc: not available URL: From gambas at ...1... Sat Feb 21 22:38:13 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Sat, 21 Feb 2009 22:38:13 +0100 Subject: [Gambas-user] How to create a web site with Gambas In-Reply-To: <20090221175010.M54168@...951...> References: <1e1dd3c30902171033if2ab2ai1d2f713c7bfc9795@...627...> <1e1dd3c30902201517t47d7bae7o2df59dee9c8ddab3@...627...> <20090221175010.M54168@...951...> Message-ID: <200902212238.13571.gambas@...1...> > Although I've never used Gambas for a website, > And I would like to soon... > It would be something like this: > > Apache would have to be configured to invoke Gambas when Apach found > a particular suffix. > Example: a webpage ending in .php Apache knows to invoke PHP processor > If you set Apache to detect (for example) .gb, it would then invoke Gambas > and pass the the name (ie) foo.gb to Gambas to run. > You name all your Gambas scripts to whatever.gb > Print to Gambas standard out which Apache catches and sends back to the > client. > > Now...the details... > > Someone, please correct me if I am wrong. > -Fernando > Just install a Gambas executable as CGI script, and use the gb.web component. You will get methods from the gb.web component to get the request and create the HTTP response header. You send the response contents by using the PRINT instruction. Regards, -- Beno?t From gambas at ...1... Sun Feb 22 00:11:24 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Sun, 22 Feb 2009 00:11:24 +0100 Subject: [Gambas-user] Problems with Gambas 3 installation on Kubuntu In-Reply-To: <200902211900.59395.ronstk@...239...> References: <200902200259.59512.gambas@...1...> <200902210104.58909.gambas@...1...> <200902211900.59395.ronstk@...239...> Message-ID: <200902220011.24711.gambas@...1...> > > Ok done the job for gambas-3 svn-1883. > > > First take note Charlie and me have the same errors > Both are using kubuntu 8.04 instead of 8.10 !! Aaaa! Sorry I have understood that you used Kubuntu 8.10 - This is the reason why I installed Kubuntu 8.10. I have fixed an uninitialized variable in gbi.c source code that explains the problem you get. The gcc compiler told nothing about that, so I didn't see it. Moreover, this uninitialized variable was for a gbi feature that I don't even use! So, please test the revision #1885 and tell me! If it solves the problem, then you will be happy, and I will find a bug in the gcc compiler. If it don't, then I will call a marabout. And do not take my rants against Ubuntu seriously. :-) Usually, a random behaviour always come from an uninitialized variable, but I was confused by the gcc's silence and the fact that I thought you used Kubuntu 8.10. Regards, -- Beno?t From ronstk at ...239... Sun Feb 22 05:02:39 2009 From: ronstk at ...239... (Ron_1st) Date: Sun, 22 Feb 2009 05:02:39 +0100 Subject: [Gambas-user] Problems with Gambas 3 installation on Kubuntu In-Reply-To: <200902220011.24711.gambas@...1...> References: <200902200259.59512.gambas@...1...> <200902211900.59395.ronstk@...239...> <200902220011.24711.gambas@...1...> Message-ID: <200902220502.40127.ronstk@...239...> On Sunday 22 February 2009, Beno?t Minisini wrote: > > > > Ok done the job for gambas-3 svn-1883. > > > > > > First take note Charlie and me have the same errors > > Both are using kubuntu 8.04 instead of 8.10 !! > > Aaaa! Sorry I have understood that you used Kubuntu 8.10 - This is the reason > why I installed Kubuntu 8.10. I did write this in al the mail/logs. > > I have fixed an uninitialized variable in gbi.c source code that explains the > problem you get. The gcc compiler told nothing about that, so I didn't see it. > Moreover, this uninitialized variable was for a gbi feature that I don't even > use! Glad you found it, even the most experienced programmers can sometimes do wrong things, I do too after 2009-1976=33 years of programming. (intel 4040) > > So, please test the revision #1885 and tell me! In process. > > If it solves the problem, then you will be happy, and I will find a bug in the > gcc compiler. If it don't, then I will call a marabout. > > And do not take my rants against Ubuntu seriously. :-) What rants? The way you like Mandriva. hmmmmmmmm It was Mandrake, a man spitting fire into nowhere? It was Connectiva, nothing connecting outside Brasil? So they joined to Mandriva but the correct name should be ConDrake, the connecting part and a drake in doing the rest. Just LOL. :) > Usually, a random > behaviour always come from an uninitialized variable, but I was confused by > the gcc's silence and the fact that I thought you used Kubuntu 8.10. This is the source of the gv4l problem too. The 8.04 team did use a older v4l2 package and the 8.10 a newer version. I did not say they created the videodev themself as Garret suggest I do. > > Regards, > gcc silence sounds bad. But to be safe I also take notice of compiler warnings. It gives a sign of possible bad/unexperience programming practice too. For home projects not so important but as distributed opensource??? Best regards, Ron_1st -- And again I forgot to remark the bad lines in gv4l2.c so the make.log in 2 files. From gambas at ...1... Sun Feb 22 08:47:02 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Sun, 22 Feb 2009 08:47:02 +0100 Subject: [Gambas-user] Problems with Gambas 3 installation on Kubuntu In-Reply-To: <200902220502.40127.ronstk@...239...> References: <200902200259.59512.gambas@...1...> <200902220011.24711.gambas@...1...> <200902220502.40127.ronstk@...239...> Message-ID: <200902220847.03129.gambas@...1...> > On Sunday 22 February 2009, Beno?t Minisini wrote: > > > Ok done the job for gambas-3 svn-1883. > > > > > > > > > First take note Charlie and me have the same errors > > > Both are using kubuntu 8.04 instead of 8.10 !! > > > > Aaaa! Sorry I have understood that you used Kubuntu 8.10 - This is the > > reason why I installed Kubuntu 8.10. > > I did write this in al the mail/logs. > > > I have fixed an uninitialized variable in gbi.c source code that explains > > the problem you get. The gcc compiler told nothing about that, so I > > didn't see it. Moreover, this uninitialized variable was for a gbi > > feature that I don't even use! > > Glad you found it, even the most experienced programmers can sometimes do > wrong things, I do too after 2009-1976=33 years of programming. (intel > 4040) > > > So, please test the revision #1885 and tell me! > > In process. > > > If it solves the problem, then you will be happy, and I will find a bug > > in the gcc compiler. If it don't, then I will call a marabout. > > > > And do not take my rants against Ubuntu seriously. :-) > > What rants? > The way you like Mandriva. hmmmmmmmm > > It was Mandrake, a man spitting fire into nowhere? > It was Connectiva, nothing connecting outside Brasil? > So they joined to Mandriva but the correct name should be > ConDrake, the connecting part and a drake in doing the rest. > > Just LOL. :) I don't rant against Ubuntu for management reason - I have nothing to say about management. :-) I rant against Ubuntu for technical reasons: problems with Gambas compilation in the past, releasing an outdated version of Gambas, taking unstable packages from Debian and providing them even if they are buggy... Technical problems in Mandriva are more related to their sometimes buggy and badly finished control center. > > > Usually, a random > > behaviour always come from an uninitialized variable, but I was confused > > by the gcc's silence and the fact that I thought you used Kubuntu 8.10. > > This is the source of the gv4l problem too. > The 8.04 team did use a older v4l2 package and the 8.10 a newer version. > I did not say they created the videodev themself as Garret suggest I do. > > > Regards, > > gcc silence sounds bad. But to be safe I also take notice of compiler > warnings. It gives a sign of possible bad/unexperience programming practice > too. For home projects not so important but as distributed opensource??? Warnings are not important if you know what you are doing. But an uninitialized variable is always a bug in your program - except if you are writing OpenSSH :-). The fact that it is a warning is strange, even if the compiler knows that for sure (sometimes he cannot because of code branches). And when it does not tell anything, what can I do? Regards, -- Beno?t From mohareve at ...626... Sun Feb 22 17:32:09 2009 From: mohareve at ...626... (M. Cs.) Date: Sun, 22 Feb 2009 17:32:09 +0100 Subject: [Gambas-user] Missing dependencies in compiled packages Message-ID: I'm facing a serious problem when compiling a project: When I'm trying to install the created package, it gives the list of required dependencies, but there are missing gambas components. For example, I cannot add the gambas2-gb-db-sqlite3 package, and I can't see it in projects properties. I've checked the gb.db component, but that doesn't affect the missing package. Off course, the program would install but also immediately crash, since it's built upon sqlite backend. How can I add these missing stuffs? Thanks! Csaba From Karl.Reinl at ...9... Sun Feb 22 19:26:14 2009 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Sun, 22 Feb 2009 19:26:14 +0100 Subject: [Gambas-user] Problems with Gambas 3 installation on Kubuntu In-Reply-To: <200902220847.03129.gambas@...1...> References: <200902200259.59512.gambas@...1...> <200902220011.24711.gambas@...1...> <200902220502.40127.ronstk@...239...> <200902220847.03129.gambas@...1...> Message-ID: <1235327174.6428.4.camel@...40...> Am Sonntag, den 22.02.2009, 08:47 +0100 schrieb Beno?t Minisini: > > On Sunday 22 February 2009, Beno?t Minisini wrote: > > > > Ok done the job for gambas-3 svn-1883. > > > > > > > > > > > > First take note Charlie and me have the same errors > > > > Both are using kubuntu 8.04 instead of 8.10 !! > > > > > > Aaaa! Sorry I have understood that you used Kubuntu 8.10 - This is the > > > reason why I installed Kubuntu 8.10. > > > > I did write this in al the mail/logs. > > > > > I have fixed an uninitialized variable in gbi.c source code that explains > > > the problem you get. The gcc compiler told nothing about that, so I > > > didn't see it. Moreover, this uninitialized variable was for a gbi > > > feature that I don't even use! > > > > Glad you found it, even the most experienced programmers can sometimes do > > wrong things, I do too after 2009-1976=33 years of programming. (intel > > 4040) > > > > > So, please test the revision #1885 and tell me! > > > > In process. > > > > > If it solves the problem, then you will be happy, and I will find a bug > > > in the gcc compiler. If it don't, then I will call a marabout. > > > > > > And do not take my rants against Ubuntu seriously. :-) > > > > What rants? > > The way you like Mandriva. hmmmmmmmm > > > > It was Mandrake, a man spitting fire into nowhere? > > It was Connectiva, nothing connecting outside Brasil? > > So they joined to Mandriva but the correct name should be > > ConDrake, the connecting part and a drake in doing the rest. > > > > Just LOL. :) > > I don't rant against Ubuntu for management reason - I have nothing to say > about management. :-) > > I rant against Ubuntu for technical reasons: problems with Gambas compilation > in the past, releasing an outdated version of Gambas, taking unstable packages > from Debian and providing them even if they are buggy... > > Technical problems in Mandriva are more related to their sometimes buggy and > badly finished control center. > > > > > > Usually, a random > > > behaviour always come from an uninitialized variable, but I was confused > > > by the gcc's silence and the fact that I thought you used Kubuntu 8.10. > > > > This is the source of the gv4l problem too. > > The 8.04 team did use a older v4l2 package and the 8.10 a newer version. > > I did not say they created the videodev themself as Garret suggest I do. > > > > > Regards, > > > > gcc silence sounds bad. But to be safe I also take notice of compiler > > warnings. It gives a sign of possible bad/unexperience programming practice > > too. For home projects not so important but as distributed opensource??? > > Warnings are not important if you know what you are doing. But an > uninitialized variable is always a bug in your program - except if you are > writing OpenSSH :-). The fact that it is a warning is strange, even if the > compiler knows that for sure (sometimes he cannot because of code branches). > And when it does not tell anything, what can I do? > > Regards, Salut Benoit, Ron, Ausgecheckt, Revision 1885. Revision 1885. works for me, I finally start also gambas3. Thanks Charlie From bundeshund at ...467... Sun Feb 22 19:33:53 2009 From: bundeshund at ...467... (Hans-Martin) Date: Sun, 22 Feb 2009 19:33:53 +0100 Subject: [Gambas-user] Gambas on ARM? In-Reply-To: <8eb28a500902211220n6b0f9e1kf84b87e0a2a6887f@...627...> References: <200902212025.02594.bundeshund@...467...> <8eb28a500902211220n6b0f9e1kf84b87e0a2a6887f@...627...> Message-ID: <200902221933.53974.bundeshund@...467...> Am Samstag, 21. Februar 2009 21:20:27 schrieb Jos? Luis Redrejo: > 2009/2/21 Hans-Martin > > > Hi all, > > > > to make it short: > > > > Is it possible to compile gambas for ARM-Plattforms for eg Openmokos > > Freerunner (http://wiki.openmoko.org/wiki/Neo_FreeRunner)? > > Compiling it should be possible, just take a look at > http://packages.debian.org/search?keywords=gambas2-dev&searchon=names&suite >=all§ion=all > thanks for this. > but I guess nobody tested if it works in some of the compiled platforms. i guess, you guess right :) i installed debian during the day and after i had all running i was able to install gambas2 (2.10.2-1) via apt.get but i get segmentation fault when i try to start it :( > Regards > Jos? L. HMB > --------------------------------------------------------------------------- >--- Open Source Business Conference (OSBC), March 24-25, 2009, San > Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing > the Enterprise -Strategies to boost innovation and cut costs with open > source participation -Receive a $600 discount off the registration fee with > the source code: SFAD http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From ronstk at ...239... Sun Feb 22 19:41:28 2009 From: ronstk at ...239... (Ron_1st) Date: Sun, 22 Feb 2009 19:41:28 +0100 Subject: [Gambas-user] Problems with Gambas 3 installation on Kubuntu In-Reply-To: <1235327174.6428.4.camel@...40...> References: <200902200259.59512.gambas@...1...> <200902220847.03129.gambas@...1...> <1235327174.6428.4.camel@...40...> Message-ID: <200902221941.28490.ronstk@...239...> On Sunday 22 February 2009, Charlie Reinl wrote: > Am Sonntag, den 22.02.2009, 08:47 +0100 schrieb Beno?t Minisini: > > > On Sunday 22 February 2009, Beno?t Minisini wrote: > > > > > Ok done the job for gambas-3 svn-1883. > > > > > > > > > > > > > > > First take note Charlie and me have the same errors > > > > > Both are using kubuntu 8.04 instead of 8.10 !! > > > > > > > > Aaaa! Sorry I have understood that you used Kubuntu 8.10 - This is the > > > > reason why I installed Kubuntu 8.10. > > > > > > I did write this in al the mail/logs. > > > > > > > I have fixed an uninitialized variable in gbi.c source code that explains > > > > the problem you get. The gcc compiler told nothing about that, so I > > > > didn't see it. Moreover, this uninitialized variable was for a gbi > > > > feature that I don't even use! > > > > > > Glad you found it, even the most experienced programmers can sometimes do > > > wrong things, I do too after 2009-1976=33 years of programming. (intel > > > 4040) > > > > > > > So, please test the revision #1885 and tell me! > > > > > > In process. > > > > > > > If it solves the problem, then you will be happy, and I will find a bug > > > > in the gcc compiler. If it don't, then I will call a marabout. > > > > > > > > And do not take my rants against Ubuntu seriously. :-) > > > > > > What rants? > > > The way you like Mandriva. hmmmmmmmm > > > > > > It was Mandrake, a man spitting fire into nowhere? > > > It was Connectiva, nothing connecting outside Brasil? > > > So they joined to Mandriva but the correct name should be > > > ConDrake, the connecting part and a drake in doing the rest. > > > > > > Just LOL. :) > > > > I don't rant against Ubuntu for management reason - I have nothing to say > > about management. :-) > > > > I rant against Ubuntu for technical reasons: problems with Gambas compilation > > in the past, releasing an outdated version of Gambas, taking unstable packages > > from Debian and providing them even if they are buggy... > > > > Technical problems in Mandriva are more related to their sometimes buggy and > > badly finished control center. > > > > > > > > > Usually, a random > > > > behaviour always come from an uninitialized variable, but I was confused > > > > by the gcc's silence and the fact that I thought you used Kubuntu 8.10. > > > > > > This is the source of the gv4l problem too. > > > The 8.04 team did use a older v4l2 package and the 8.10 a newer version. > > > I did not say they created the videodev themself as Garret suggest I do. > > > > > > > Regards, > > > > > > gcc silence sounds bad. But to be safe I also take notice of compiler > > > warnings. It gives a sign of possible bad/unexperience programming practice > > > too. For home projects not so important but as distributed opensource??? > > > > Warnings are not important if you know what you are doing. But an > > uninitialized variable is always a bug in your program - except if you are > > writing OpenSSH :-). The fact that it is a warning is strange, even if the > > compiler knows that for sure (sometimes he cannot because of code branches). > > And when it does not tell anything, what can I do? > > > > Regards, > > Salut Benoit, Ron, > > Ausgecheckt, Revision 1885. > Revision 1885. > > works for me, I finally start also gambas3. > > Thanks > Charlie > Yeah, Has taken a long time but it's finally done. It has also a beautifull designed picture in the empty workspace. I will miss the gamba with the blinking eyes, has been a good friend. :( Best regards, Ron_1st -- A: Delete the text you reply on. Q: What to do to get my post on top? --- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? --- A: Top-posting. Q: What is the most annoying thing in e-mail? From ronstk at ...239... Sun Feb 22 20:20:26 2009 From: ronstk at ...239... (Ron_1st) Date: Sun, 22 Feb 2009 20:20:26 +0100 Subject: [Gambas-user] Problems with Gambas 3 installation on Kubuntu In-Reply-To: <1235327174.6428.4.camel@...40...> References: <200902200259.59512.gambas@...1...> <200902220847.03129.gambas@...1...> <1235327174.6428.4.camel@...40...> Message-ID: <200902222020.26488.ronstk@...239...> On Sunday 22 February 2009, Charlie Reinl wrote: ---8<---- > > Salut Benoit, Ron, > > Ausgecheckt, Revision 1885. > Revision 1885. > > works for me, I finally start also gambas3. > > Thanks > Charlie > Yes, Has taken a long time but it's finally done. It has also a beautifull designed picture in the empty workspace. I will miss the gamba with the blinking eyes, has been a good friend. :( Best regards, Ron_1st -- From simonart.dominique at ...11... Mon Feb 23 01:18:46 2009 From: simonart.dominique at ...11... (Dominique SIMONART) Date: Mon, 23 Feb 2009 01:18:46 +0100 Subject: [Gambas-user] How to know permanently the cursor coordinates in a gridview? Message-ID: <49A1EB66.3010804@...11...> Hi, I've a main Gridview (grdGame) surrounded by 2 other grids, grdHdef on top and grdVdef on left of grdGame When the mouse cursor is over the main grid, I want to highlight a column of the top grid and a row of the left grid facing the cursor position. How to know at each instant where the cursor is, that is without action on any button? I cannot use Mouse.X/Y because there is no mouse event Thank for your help, From simonart.dominique at ...11... Mon Feb 23 01:21:44 2009 From: simonart.dominique at ...11... (Dominique SIMONART) Date: Mon, 23 Feb 2009 01:21:44 +0100 Subject: [Gambas-user] How to populate a gridview from keyboard (closed) In-Reply-To: <499DC0FB.6070104@...11...> References: <499AC6AB.3040807@...11...> <200902171841.14832.gambas@...1...> <499DC0FB.6070104@...11...> Message-ID: <49A1EC18.2060107@...11...> Please, consider this thread as closed as the subject is no mare relevant Dominique SIMONART a ?crit : > Beno?t Minisini a ?crit : > >>> Hi everyone, >>> >>> it seemed so simple that I feel a bit stupid with that question, but... >>> I want to fill a gridview with text coming from the keyboard, as in a >>> crossword. >>> I think I've to deal with the keypress event and the key.text data, but >>> how can I identify the cell to fill. I cannot even see any cursor on my >>> grid. >>> I want not to use the mouse cursor because my fingers are on the >>> keyboard all the time. I wish to define the next cell with the cursor >>> keys only. >>> >>> Could someone give me a short sample or point me on the right direction? >>> >>> Thanks in advance for your help >>> Dominique Simonart >>> >>> >>> >> Just implement the cursor your self. Create a class named MyGridView that >> inherits GridView. >> >> In it, create an observer on yourself to catch the KeyPress event, and add two >> class variables (let's name them $X and $Y) to store the cursor coordinates. >> >> Catch the Data event too to define the background / foreground of the cell: >> Color.SelectededBackground and Color.SelectedForeground for the current cell >> (Row = $Y and Column = $X), nothing otherwise (the standard colors). >> >> Then each time you move the cursor, update the $X and $Y variables, and >> refresh the old current cell and the new one. >> >> If you don't want to use the Data event, you must use the MyGridView[X, Y] >> cell accessor. >> >> Regards, >> >> >> > Hi, > I've implemented the Xcur, Ycur coordinates in a inherited class and > this is working now. In case this could be used as an example, I join > the little test (9.2K) here. > Now I've another question. It is not related with the subject, but it is > illustrated by the joined code, so I think I've to keep this thread open! > > My new question is: I want to execute some code while the mouse cursor > is over a grid (the bottom right one in the joined piece). Note please > that no mouse buttons are involved here, so I can't work whith the > MouseMove event. The code don't concern the grid itself but the adjacent > ones. I can't either use the GotFocus/LostFocus events because the code > has to follow the mouse curso position as long the mouse cursor is over > the grid. I hope this is clear enough ! > > thanks for your help, > Dominique Simonart > Dominique Simonart > > ------------------------------------------------------------------------ From dosida at ...626... Mon Feb 23 01:33:55 2009 From: dosida at ...626... (Dimitris Anogiatis) Date: Sun, 22 Feb 2009 17:33:55 -0700 Subject: [Gambas-user] Array Concatenation In-Reply-To: <200902211214.31513.gambas@...1...> References: <82bffccf0902202340t726e552bq571e20c8a1a4de4a@...627...> <200902211214.31513.gambas@...1...> Message-ID: <82bffccf0902221633q5b713080yf0e62d9c00ad313b@...627...> yeap that works just fine Beno?t Thank you :) On Sat, Feb 21, 2009 at 4:14 AM, Beno?t Minisini < gambas at ...1...> wrote: > > Hey guys, > > > > First of all I wanna say you guys ROCK :) > > Thanks. :-) > > > > > Thank you for making this wonderful program > > and keep up the great work :) > > > > My question is: > > > > Is there a way to concatenate 2 arrays without using a for loop? > > Perhaps there is an undocumented mechanism like > > > > tmpArr += Array.copy() > > > > or some workaround to that? > > > > Thanks for the time you took to read this email > > > > Sincerely, > > Dimitrios Anogiatis > > 'tmpArr.Insert(Array)' will do the job. > > Regards, > > -- > Beno?t > > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, > CA > -OSBC tackles the biggest issue in open source: Open Sourcing the > Enterprise > -Strategies to boost innovation and cut costs with open source > participation > -Receive a $600 discount off the registration fee with the source code: > SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From dosida at ...626... Mon Feb 23 01:40:47 2009 From: dosida at ...626... (Dimitris Anogiatis) Date: Sun, 22 Feb 2009 17:40:47 -0700 Subject: [Gambas-user] Embedded Font Resource Message-ID: <82bffccf0902221640w539bb64ek768d82507f4a0df0@...627...> hey guys can someone tell me if gambas can use embedded resources from within the binary? and if yes is it possible to use it without copying it somewhere else? I want to use a TrueType font that I've used in Windows & I wonder if Gambas supports something like this. A workaround is also useful to know :) Thanks in advance :) Dimitrios Anogiatis From sevoir75 at ...626... Mon Feb 23 12:09:38 2009 From: sevoir75 at ...626... (Sevoir) Date: Mon, 23 Feb 2009 12:09:38 +0100 Subject: [Gambas-user] how can I save webbrowser's html page Message-ID: <1235387378.6703.11.camel@...1964...> Hi all! I wrote a login page in html with autopress login button (userdir/login.html)... this navigate to an Internet site.. I logged, fantastic.. I wrote a gambas project while load a stored login page (userdir/login.html) to a webbrowser I would like saving a webbrowser window's html source to file How can I do it? Sorry my bad english :) regards, Sevoir From marc at ...2075... Mon Feb 23 12:12:20 2009 From: marc at ...2075... (Marc Miralles) Date: Mon, 23 Feb 2009 12:12:20 +0100 Subject: [Gambas-user] Ugly Gambas IDE in Fedora 10 In-Reply-To: <499CB9AD.7090608@...2075...> References: <20090218185730.i2xne9ssg00cswc8@...2076...> <499C6218.2010208@...1740...> <499CB9AD.7090608@...2075...> Message-ID: <49A28494.7090705@...2075...> Hi all: When I compile Gambas 3 in Fedora 10 I have an error when I type ./configure At end of process ./configure says: THESE COMPONENTS ARE DISABLED: - gb.cairo - gb.corba - gb.db.firebird - gb.db.mysql - gb.db.odbc - gb.db.postgresql - gb.db.sqlite2 - gb.db.sqlite3 - gb.desktop - gb.gtk - gb.gtk.svg - gb.image.io - gb.net.curl - gb.net.smtp - gb.pcre - gb.qt.kde - gb.qte - gb.sdl - gb.sdl.sound - gb.xml Whow I can include these components in compilation? Whow I know for what it is disabled? and what packages is necessari install Thanks Aram > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA > -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise > -Strategies to boost innovation and cut costs with open source participation > -Receive a $600 discount off the registration fee with the source code: SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From gambas at ...1... Mon Feb 23 12:11:00 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Mon, 23 Feb 2009 12:11:00 +0100 Subject: [Gambas-user] How to know permanently the cursor coordinates in a gridview? In-Reply-To: <49A1EB66.3010804@...11...> References: <49A1EB66.3010804@...11...> Message-ID: <200902231211.00180.gambas@...1...> > Hi, > I've a main Gridview (grdGame) surrounded by 2 other grids, grdHdef on > top and grdVdef on left of grdGame > > When the mouse cursor is over the main grid, I want to highlight a > column of the top grid and a row of the left grid facing the cursor > position. > How to know at each instant where the cursor is, that is without action > on any button? > I cannot use Mouse.X/Y because there is no mouse event > > Thank for your help, > Yep. The problem is that mouse move are not always generated. It depends on the internal implementation of the widget in the toolkit. What you can do is enabling a timer at Enter event, and disabling it at Leave event. Ecah timer the timer is triggered, just use the Mouse.ScreenX and Mouse.ScreenY properties to calculate where the cursor is on the GridView. The right solution would be implementing a "Tracking" property in the Control class to tell Gambas that you want MouseMove events even if no mouse button is pressed. Regards, -- Beno?t From wdahn at ...1000... Mon Feb 23 13:16:30 2009 From: wdahn at ...1000... (Werner) Date: Mon, 23 Feb 2009 20:16:30 +0800 Subject: [Gambas-user] Ugly Gambas IDE in Fedora 10 In-Reply-To: <49A28494.7090705@...2075...> References: <20090218185730.i2xne9ssg00cswc8@...2076...> <499C6218.2010208@...1740...> <499CB9AD.7090608@...2075...> <49A28494.7090705@...2075...> Message-ID: <49A2939E.4020900@...1000...> Marc Miralles wrote: > Hi all: > > When I compile Gambas 3 in Fedora 10 I have an error when I type ./configure > At end of process ./configure says: > > THESE COMPONENTS ARE DISABLED: > > - gb.cairo > - gb.corba > - gb.db.firebird > - gb.db.mysql > - gb.db.odbc > - gb.db.postgresql > - gb.db.sqlite2 > - gb.db.sqlite3 > - gb.desktop > - gb.gtk > - gb.gtk.svg > - gb.image.io > - gb.net.curl > - gb.net.smtp > - gb.pcre > - gb.qt.kde > - gb.qte > - gb.sdl > - gb.sdl.sound > - gb.xml > > Whow I can include these components in compilation? Whow I know for what > it is disabled? and what packages is necessari install > > Thanks > > Aram > > if you go to the Download section on http://gambas.sourceforge.net/ right at the top it says in capital letters "READ THESE IMPORTANT NOTES" and so on. Click on this link and you will find what libraries each component needs. Download and install the libraries required _including their devel files_. Best Regards Werner From gambas at ...1... Mon Feb 23 13:48:56 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Mon, 23 Feb 2009 13:48:56 +0100 Subject: [Gambas-user] Ugly Gambas IDE in Fedora 10 In-Reply-To: <49A2939E.4020900@...1000...> References: <20090218185730.i2xne9ssg00cswc8@...2076...> <49A28494.7090705@...2075...> <49A2939E.4020900@...1000...> Message-ID: <200902231348.56095.gambas@...1...> > Marc Miralles wrote: > > Hi all: > > > > When I compile Gambas 3 in Fedora 10 I have an error when I type > > ./configure At end of process ./configure says: > > > > THESE COMPONENTS ARE DISABLED: > > > > - gb.cairo > > - gb.corba > > - gb.db.firebird > > - gb.db.mysql > > - gb.db.odbc > > - gb.db.postgresql > > - gb.db.sqlite2 > > - gb.db.sqlite3 > > - gb.desktop > > - gb.gtk > > - gb.gtk.svg > > - gb.image.io > > - gb.net.curl > > - gb.net.smtp > > - gb.pcre > > - gb.qt.kde > > - gb.qte > > - gb.sdl > > - gb.sdl.sound > > - gb.xml > > > > Whow I can include these components in compilation? Whow I know for what > > it is disabled? and what packages is necessari install > > > > Thanks > > > > Aram > > if you go to the Download section on http://gambas.sourceforge.net/ > right at the top it says in capital letters > "READ THESE IMPORTANT NOTES" and so on. Click on this link and you will > find what libraries each component needs. > Download and install the libraries required _including their devel files_. > > Best Regards > Werner > Maybe a good guy could write a Fedora page in the "Compilation & Installation" section of the Gambas wiki? -- Beno?t From marc at ...2075... Mon Feb 23 15:58:25 2009 From: marc at ...2075... (Marc Miralles) Date: Mon, 23 Feb 2009 15:58:25 +0100 Subject: [Gambas-user] Ugly Gambas IDE in Fedora 10 In-Reply-To: <200902231348.56095.gambas@...1...> References: <20090218185730.i2xne9ssg00cswc8@...2076...> <49A28494.7090705@...2075...> <49A2939E.4020900@...1000...> <200902231348.56095.gambas@...1...> Message-ID: <49A2B991.1060902@...2075...> From vlatkop at ...626... Mon Feb 23 16:52:29 2009 From: vlatkop at ...626... (Vlado Peshov) Date: Mon, 23 Feb 2009 16:52:29 +0100 Subject: [Gambas-user] gambasdoc.org not working? Message-ID: gambasdoc.org not working? Regards, Vlado From jscops at ...11... Mon Feb 23 17:10:06 2009 From: jscops at ...11... (Jack) Date: Mon, 23 Feb 2009 17:10:06 +0100 Subject: [Gambas-user] gambasdoc.org not working? In-Reply-To: References: Message-ID: <200902231710.06303.jscops@...11...> Le lundi 23 f?vrier 2009 16:52:29 Vlado Peshov, vous avez ?crit : > gambasdoc.org not working? for me it work at http://gambasdoc.org/help/ From jussi.lahtinen at ...626... Mon Feb 23 17:13:28 2009 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 23 Feb 2009 18:13:28 +0200 Subject: [Gambas-user] gambasdoc.org not working? In-Reply-To: References: Message-ID: <384d3900902230813me8a1707o78326664319ac22d@...627...> Seems to work with me... Jussi On Mon, Feb 23, 2009 at 5:52 PM, Vlado Peshov wrote: > gambasdoc.org not working? > > Regards, Vlado > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA > -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise > -Strategies to boost innovation and cut costs with open source participation > -Receive a $600 discount off the registration fee with the source code: SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From vlatkop at ...626... Mon Feb 23 17:17:26 2009 From: vlatkop at ...626... (Vlado Peshov) Date: Mon, 23 Feb 2009 17:17:26 +0100 Subject: [Gambas-user] gambasdoc.org not working? In-Reply-To: <200902231710.06303.jscops@...11...> References: <200902231710.06303.jscops@...11...> Message-ID: On Mon, Feb 23, 2009 at 5:10 PM, Jack wrote: > Le lundi 23 f?vrier 2009 16:52:29 Vlado Peshov, vous avez ?crit : > > gambasdoc.org not working? > > for me it work at http://gambasdoc.org/help/ > > That link doesn't work too. Seems like some DNS problem of my ISP... Regards, Vlado From jussi.lahtinen at ...626... Mon Feb 23 17:17:45 2009 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 23 Feb 2009 18:17:45 +0200 Subject: [Gambas-user] Gambas 3 gb.desktop In-Reply-To: <499F5629.4070403@...2075...> References: <499F5629.4070403@...2075...> Message-ID: <384d3900902230817p186cae41qd1e1925c36a09683@...627...> What are these nearly blank messages (there were more at sometime of the end of 2008)!? What I'm missing here!? Jussi On Sat, Feb 21, 2009 at 3:17 AM, Marc Miralles wrote: > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA > -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise > -Strategies to boost innovation and cut costs with open source participation > -Receive a $600 discount off the registration fee with the source code: SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Mon Feb 23 17:33:35 2009 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 23 Feb 2009 18:33:35 +0200 Subject: [Gambas-user] gambasdoc.org not working? In-Reply-To: References: <200902231710.06303.jscops@...11...> Message-ID: <384d3900902230833s1aad6507g7b979106b68c2375@...627...> Try this; 64.128.110.55:80 Jussi On Mon, Feb 23, 2009 at 6:17 PM, Vlado Peshov wrote: > On Mon, Feb 23, 2009 at 5:10 PM, Jack wrote: > >> Le lundi 23 f?vrier 2009 16:52:29 Vlado Peshov, vous avez ?crit : >> > gambasdoc.org not working? >> >> for me it work at http://gambasdoc.org/help/ >> >> > That link doesn't work too. Seems like some DNS problem of my ISP... > > Regards, Vlado > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA > -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise > -Strategies to boost innovation and cut costs with open source participation > -Receive a $600 discount off the registration fee with the source code: SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From vlatkop at ...626... Mon Feb 23 18:21:37 2009 From: vlatkop at ...626... (Vlado Peshov) Date: Mon, 23 Feb 2009 18:21:37 +0100 Subject: [Gambas-user] gambasdoc.org not working? In-Reply-To: <384d3900902230833s1aad6507g7b979106b68c2375@...627...> References: <200902231710.06303.jscops@...11...> <384d3900902230833s1aad6507g7b979106b68c2375@...627...> Message-ID: On Mon, Feb 23, 2009 at 5:33 PM, Jussi Lahtinen wrote: > Try this; > 64.128.110.55:80 working... From m0e.lnx at ...626... Mon Feb 23 19:41:56 2009 From: m0e.lnx at ...626... (M0E Lnx) Date: Mon, 23 Feb 2009 12:41:56 -0600 Subject: [Gambas-user] baloon size Message-ID: <1f1e8c1b0902231041v4eb0e39la87d2b5b08b7696e@...627...> Is there any way to get a balloon to resize to what I need? I'm using aballoon to display about 12 lines of text (each line about 70 characters long) Is there any way to make the baloon resize to fit such a thing? Using Gambas2-2.11.1 From mohareve at ...626... Mon Feb 23 22:12:10 2009 From: mohareve at ...626... (minthaka) Date: Mon, 23 Feb 2009 13:12:10 -0800 (PST) Subject: [Gambas-user] Missing dependencies in compiled packages In-Reply-To: References: Message-ID: <22170258.post@...1379...> Any one out there? Please I need help upon adding some gambas2-based packages. Or at least, is it possible to remaster an .rpm package without changing the content, to put dependency somewhere? I would realy appreciate any help! Csaba -- View this message in context: http://www.nabble.com/Missing-dependencies-in-compiled-packages-tp22148634p22170258.html Sent from the gambas-user mailing list archive at Nabble.com. From lord.quo at ...626... Tue Feb 24 00:10:14 2009 From: lord.quo at ...626... (Daniel Rojas) Date: Mon, 23 Feb 2009 17:10:14 -0600 Subject: [Gambas-user] How to create a web site with Gambas In-Reply-To: <20090221175010.M54168@...951...> References: <1e1dd3c30902171033if2ab2ai1d2f713c7bfc9795@...627...> <1e1dd3c30902201517t47d7bae7o2df59dee9c8ddab3@...627...> <20090221175010.M54168@...951...> Message-ID: <1e1dd3c30902231510m55993558i9a5b3da40c2e279d@...627...> Thanks! Daniel Quintero desde la Ciudad de M?xico On Sat, Feb 21, 2009 at 11:56 AM, nando wrote: > Although I've never used Gambas for a website, > And I would like to soon... > It would be something like this: > > Apache would have to be configured to invoke Gambas when Apach found > a particular suffix. > Example: a webpage ending in .php Apache knows to invoke PHP processor > If you set Apache to detect (for example) .gb, it would then invoke Gambas > and pass the the name (ie) foo.gb to Gambas to run. > You name all your Gambas scripts to whatever.gb > Print to Gambas standard out which Apache catches and sends back to the > client. > > Now...the details... > > Someone, please correct me if I am wrong. > -Fernando > > > > ------------------------------------------------------------------------------ > > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, > CA > > -OSBC tackles the biggest issue in open source: Open Sourcing the > Enterprise > > -Strategies to boost innovation and cut costs with open source > participation > > -Receive a $600 discount off the registration fee with the source code: > SFAD > > http://p.sf.net/sfu/XcvMzF8H > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > ------- End of Original Message ------- > > > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, > CA > -OSBC tackles the biggest issue in open source: Open Sourcing the > Enterprise > -Strategies to boost innovation and cut costs with open source > participation > -Receive a $600 discount off the registration fee with the source code: > SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From lord.quo at ...626... Tue Feb 24 00:10:55 2009 From: lord.quo at ...626... (Daniel Rojas) Date: Mon, 23 Feb 2009 17:10:55 -0600 Subject: [Gambas-user] How to create a web site with Gambas In-Reply-To: <200902212238.13571.gambas@...1...> References: <1e1dd3c30902171033if2ab2ai1d2f713c7bfc9795@...627...> <1e1dd3c30902201517t47d7bae7o2df59dee9c8ddab3@...627...> <20090221175010.M54168@...951...> <200902212238.13571.gambas@...1...> Message-ID: <1e1dd3c30902231510t3ef8cdw6e1be9ea574e149d@...627...> Thanks! Daniel Quintero desde la Ciudad de M?xico On Sat, Feb 21, 2009 at 3:38 PM, Beno?t Minisini < gambas at ...1...> wrote: > > Just install a Gambas executable as CGI script, and use the gb.web > component. > You will get methods from the gb.web component to get the request and > create > the HTTP response header. You send the response contents by using the PRINT > instruction. > > Regards, > > From wdahn at ...1000... Tue Feb 24 04:23:52 2009 From: wdahn at ...1000... (Werner) Date: Tue, 24 Feb 2009 11:23:52 +0800 Subject: [Gambas-user] Missing dependencies in compiled packages In-Reply-To: <22170258.post@...1379...> References: <22170258.post@...1379...> Message-ID: <49A36848.3030100@...1000...> minthaka wrote: > Any one out there? Please I need help upon adding some gambas2-based > packages. Or at least, is it possible to remaster an .rpm package without > changing the content, to put dependency somewhere? I would realy appreciate > any help! > Csaba > > What are you trying to do? Please tell us more. Best Regards Werner From mohareve at ...626... Tue Feb 24 13:19:28 2009 From: mohareve at ...626... (minthaka) Date: Tue, 24 Feb 2009 04:19:28 -0800 (PST) Subject: [Gambas-user] Missing dependencies in compiled packages In-Reply-To: <49A36848.3030100@...1000...> References: <22170258.post@...1379...> <49A36848.3030100@...1000...> Message-ID: <22180533.post@...1379...> What are you trying to do? Please tell us more. My question is twofold: 1. I've written a program in Gambas. It uses the sqlite3 server as backend. When I try to install my program, the package manager invokes another packages to be installed: -gambas2-gb-db -gambas2-gb-db-form -gambas2-gb-form -gambas2-gb-qt -gambas2-gb-qt-ext -gambas2-runtime. It's all right, the dependencies are well solved but: the program doesn't work until I've not installed gambas2-gb-db-sqlite3 package. I have to do it manually, nothing is telling me what is missing. I would like to have this package on the dependency list. I don't know how to do that. 2. I would also include packages unarj, unzip, unrar, unace, and add them on dependency list. If it is not possible to do from within gambas2-ide, is there possibility to "crack" an .rpm file, to find a file containing the dependency list, and to add some lines manually, and after to save all the changes. I don't know how to create .rpm packages manually, the descriptions are obsolete,... So can you help me? Thanks! Csaba -- View this message in context: http://www.nabble.com/Missing-dependencies-in-compiled-packages-tp22148634p22180533.html Sent from the gambas-user mailing list archive at Nabble.com. From rterry at ...1946... Tue Feb 24 21:49:28 2009 From: rterry at ...1946... (richard terry) Date: Wed, 25 Feb 2009 07:49:28 +1100 Subject: [Gambas-user] EOF character seems not to work Message-ID: <200902250749.28366.rterry@...1946...> I need to write an array of lines to a file, each ending in the EOL char for MAC, I used this code, it dosn't work, it ends up with the UNIX EOL. I must have my syntax wrong somehow: Dim hfile As file hfile.EndOfLine = gb.Mac Open sFilename For Write Create As #hfile For Each singleLine In Lines Print #hfile singleLine Next Close #hfile Any help appreciated. From nando_f at ...951... Tue Feb 24 23:23:20 2009 From: nando_f at ...951... (nando) Date: Tue, 24 Feb 2009 17:23:20 -0500 Subject: [Gambas-user] EOF character seems not to work In-Reply-To: <200902250749.28366.rterry@...1946...> References: <200902250749.28366.rterry@...1946...> Message-ID: <20090224222139.M81761@...951...> MAC's want char 13 not 10 nor both So, suppress the 10 by using the semicolon and add the character 13 manually..as in.. Print #hfile, singleLine & chr$(13); -Fernando ---------- Original Message ----------- From: richard terry To: mailing list for gambas users Sent: Wed, 25 Feb 2009 07:49:28 +1100 Subject: [Gambas-user] EOF character seems not to work > I need to write an array of lines to a file, each ending in the EOL char for > MAC, I used this code, it dosn't work, it ends up with the UNIX EOL. > > I must have my syntax wrong somehow: > > Dim hfile As file > hfile.EndOfLine = gb.Mac > Open sFilename For Write Create As #hfile > For Each singleLine In Lines > > Print #hfile singleLine > Next > Close #hfile > > Any help appreciated. > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA > -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise > -Strategies to boost innovation and cut costs with open source participation > -Receive a $600 discount off the registration fee with the source code: SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From simonart.dominique at ...11... Wed Feb 25 03:51:02 2009 From: simonart.dominique at ...11... (Simonart Dominique) Date: Wed, 25 Feb 2009 03:51:02 +0100 Subject: [Gambas-user] How to know permanently the cursor coordinates in a gridview? In-Reply-To: <200902231211.00180.gambas@...1...> References: <49A1EB66.3010804@...11...> <200902231211.00180.gambas@...1...> Message-ID: <49A4B216.1080109@...11...> Beno?t Minisini a ?crit : >> Hi, >> I've a main Gridview (grdGame) surrounded by 2 other grids, grdHdef on >> top and grdVdef on left of grdGame >> >> When the mouse cursor is over the main grid, I want to highlight a >> column of the top grid and a row of the left grid facing the cursor >> position. >> How to know at each instant where the cursor is, that is without action >> on any button? >> I cannot use Mouse.X/Y because there is no mouse event >> >> Thank for your help, >> > > Yep. The problem is that mouse move are not always generated. It depends on > the internal implementation of the widget in the toolkit. > > What you can do is enabling a timer at Enter event, and disabling it at Leave > event. Ecah timer the timer is triggered, just use the Mouse.ScreenX and > Mouse.ScreenY properties to calculate where the cursor is on the GridView. > > The right solution would be implementing a "Tracking" property in the Control > class to tell Gambas that you want MouseMove events even if no mouse button is > pressed. > > Regards, > Thanks Benoit, I've now the thing working! I couldn't think about Mouse.ScreenX/Y because I work with 2.8 version and the Help menu show only Mouse.X/Y and nothing else. In a first try, I used the Enter event to post a flag and start a loop like this WHILE myFlag WAIT 0.2 ...whatever wend and used the Leave event to annulate the flag, but it didn't work (recursivity problem I think) so I changed the loop to break as soon as the cursor get out the Grid limits (this is exactly what the Leave event did I think :) ) and all is runing fine! I had another idea in mind, by using a DrawingArea with transparency and nothing in it and place it over the grid, so I could use the tracking caracteristic, but I would have to manage the grid process myself, so I did not try it yet. regards, Dominique Simonart From shordi at ...626... Wed Feb 25 09:51:51 2009 From: shordi at ...626... (=?ISO-8859-1?Q?Jorge_Carri=F3n?=) Date: Wed, 25 Feb 2009 09:51:51 +0100 Subject: [Gambas-user] Missing dependencies in compiled packages In-Reply-To: <22180533.post@...1379...> References: <22170258.post@...1379...> <49A36848.3030100@...1000...> <22180533.post@...1379...> Message-ID: I'm waiting for an answer too. I've have the same problem with the gambas2-gb-db-mysql.deb package on Ubuntu. 2009/2/24 minthaka > > > What are you trying to do? Please tell us more. > > My question is twofold: > 1. I've written a program in Gambas. It uses the sqlite3 server as backend. > When I try to install my program, the package manager invokes another > packages to be installed: > -gambas2-gb-db > -gambas2-gb-db-form > -gambas2-gb-form > -gambas2-gb-qt > -gambas2-gb-qt-ext > -gambas2-runtime. > It's all right, the dependencies are well solved but: the program doesn't > work until I've not installed gambas2-gb-db-sqlite3 package. I have to do > it > manually, nothing is telling me what is missing. I would like to have this > package on the dependency list. I don't know how to do that. > 2. I would also include packages unarj, unzip, unrar, unace, and add them > on > dependency list. If it is not possible to do from within gambas2-ide, is > there possibility to "crack" an .rpm file, to find a file containing the > dependency list, and to add some lines manually, and after to save all the > changes. > I don't know how to create .rpm packages manually, the descriptions are > obsolete,... > So can you help me? > Thanks! > Csaba > -- > View this message in context: > http://www.nabble.com/Missing-dependencies-in-compiled-packages-tp22148634p22180533.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, > CA > -OSBC tackles the biggest issue in open source: Open Sourcing the > Enterprise > -Strategies to boost innovation and cut costs with open source > participation > -Receive a $600 discount off the registration fee with the source code: > SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Wed Feb 25 12:36:54 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Wed, 25 Feb 2009 12:36:54 +0100 Subject: [Gambas-user] EOF character seems not to work In-Reply-To: <200902250749.28366.rterry@...1946...> References: <200902250749.28366.rterry@...1946...> Message-ID: <200902251236.54844.gambas@...1...> > I need to write an array of lines to a file, each ending in the EOL char > for MAC, I used this code, it dosn't work, it ends up with the UNIX EOL. > > I must have my syntax wrong somehow: > > Dim hfile As file > hfile.EndOfLine = gb.Mac How can that line of code work? hFile is NULL, you must have got an error. -- Beno?t From m0e.lnx at ...626... Wed Feb 25 15:54:06 2009 From: m0e.lnx at ...626... (M0E Lnx) Date: Wed, 25 Feb 2009 08:54:06 -0600 Subject: [Gambas-user] Missing dependencies in compiled packages In-Reply-To: References: <22170258.post@...1379...> <49A36848.3030100@...1000...> <22180533.post@...1379...> Message-ID: <1f1e8c1b0902250654g56e966cw75e083baaaa5cc6e@...627...> I asked this question a long time ago (08/18/08) Apparently, there are no provisions for this in the gambas2 branch. I was referred to this back then http://gambas.svn.sourceforge.net/viewvc/gambas?view=rev&revision=1520 (notice the log message) In the mean time, you may need to study your .deb package structure and manually hack it to pull those dependencies. That's what I did for my application (for VectorLinux) In VectorLinux and Slackware (.tlz and .tgz) packages, there is a file called "slack-required" which defines package dependencies. Maybe there is something similar in .deb From m0e.lnx at ...626... Wed Feb 25 15:55:18 2009 From: m0e.lnx at ...626... (M0E Lnx) Date: Wed, 25 Feb 2009 08:55:18 -0600 Subject: [Gambas-user] Missing dependencies in compiled packages In-Reply-To: <1f1e8c1b0902250654g56e966cw75e083baaaa5cc6e@...627...> References: <22170258.post@...1379...> <49A36848.3030100@...1000...> <22180533.post@...1379...> <1f1e8c1b0902250654g56e966cw75e083baaaa5cc6e@...627...> Message-ID: <1f1e8c1b0902250655n508ba210m6bac14a0d1faa0f2@...627...> BTW, the 3.0 development branch is said to have support for such a thing... I have yet to try it. From marcel.duffau at ...626... Wed Feb 25 17:43:09 2009 From: marcel.duffau at ...626... (Vackoy) Date: Wed, 25 Feb 2009 08:43:09 -0800 (PST) Subject: [Gambas-user] Switching between forms in tabstrip Message-ID: <22206694.post@...1379...> Hi, has anyone tried this before? switching between tabs without clicking them. Doing it from code pressing Crtl + Tab or something, like Firefox does. Thanks, Marcel -- View this message in context: http://www.nabble.com/Switching-between-forms-in-tabstrip-tp22206694p22206694.html Sent from the gambas-user mailing list archive at Nabble.com. From m0e.lnx at ...626... Wed Feb 25 17:54:41 2009 From: m0e.lnx at ...626... (M0E Lnx) Date: Wed, 25 Feb 2009 10:54:41 -0600 Subject: [Gambas-user] Switching between forms in tabstrip In-Reply-To: <22206694.post@...1379...> References: <22206694.post@...1379...> Message-ID: <1f1e8c1b0902250854g53f36b71qcbde7a07a5a07792@...627...> Have not tried it but I imagine you can code that in the windows_Keypress() event. Should be doable From gambas at ...1... Wed Feb 25 17:55:58 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Wed, 25 Feb 2009 17:55:58 +0100 Subject: [Gambas-user] Missing dependencies in compiled packages In-Reply-To: References: Message-ID: <200902251755.59101.gambas@...1...> > I'm facing a serious problem when compiling a project: > When I'm trying to install the created package, it gives the list of > required dependencies, but there are missing gambas components. > For example, I cannot add the gambas2-gb-db-sqlite3 package, and I can't > see it in projects properties. I've checked the gb.db component, but that > doesn't affect the missing package. Off course, the program would install > but also immediately crash, since it's built upon sqlite backend. How can I > add these missing stuffs? > Thanks! > Csaba Hi, At the moment, database drivers are not checkable in the project property dialog, and so they are not added to the project dependencies list. I think making them checkable is not a problem. If I do that in a next commit, will you test it? -- Beno?t From marcel.duffau at ...626... Wed Feb 25 18:03:29 2009 From: marcel.duffau at ...626... (Vackoy) Date: Wed, 25 Feb 2009 09:03:29 -0800 (PST) Subject: [Gambas-user] Switching between forms in tabstrip In-Reply-To: <1f1e8c1b0902250854g53f36b71qcbde7a07a5a07792@...627...> References: <22206694.post@...1379...> <1f1e8c1b0902250854g53f36b71qcbde7a07a5a07792@...627...> Message-ID: <22207100.post@...1379...> Yes, but which element/object is the observer for the Keypress? I tried with Workspace.Keypress but when I open a form, the observer becomes the form and not the workspace, so no matter what key I press it doesn't raise the event... M0E Lnx wrote: > > Have not tried it but I imagine you can code that in the > windows_Keypress() event. > Should be doable > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, > CA > -OSBC tackles the biggest issue in open source: Open Sourcing the > Enterprise > -Strategies to boost innovation and cut costs with open source > participation > -Receive a $600 discount off the registration fee with the source code: > SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://www.nabble.com/Switching-between-forms-in-tabstrip-tp22206694p22207100.html Sent from the gambas-user mailing list archive at Nabble.com. From jguardon at ...2035... Wed Feb 25 18:20:19 2009 From: jguardon at ...2035... (Jesus Guardon) Date: Wed, 25 Feb 2009 18:20:19 +0100 Subject: [Gambas-user] Change translations at runtime Message-ID: <49A57DD3.1050607@...2035...> Hi I know that this issue has been addressed earlier in the list, but has not been answered yet. I have a translated project in English, Spanish, Catalan, etc. Thanks to an Stefano Palmeri's reply on Jun 06, 2007, I can see the program running in a different language on the console by typing "export LANG=xx_XX" and then run my application. This works fine, but is it possible to do so from within the running program? Ie, allow the user to switch between languages at runtime? Thanks in advance Jes?s From jscops at ...11... Wed Feb 25 18:28:45 2009 From: jscops at ...11... (Jack) Date: Wed, 25 Feb 2009 18:28:45 +0100 Subject: [Gambas-user] Switching between forms in tabstrip In-Reply-To: <22207100.post@...1379...> References: <22206694.post@...1379...> <1f1e8c1b0902250854g53f36b71qcbde7a07a5a07792@...627...> <22207100.post@...1379...> Message-ID: <200902251828.45916.jscops@...11...> Le mercredi 25 f?vrier 2009 18:03:29 Vackoy, vous avez ?crit : > Yes, but which element/object is the observer for the Keypress? > I tried with Workspace.Keypress but when I open a form, the observer > becomes the form and not the workspace, so no matter what key I press it > doesn't raise the event... > > M0E Lnx wrote: > > Have not tried it but I imagine you can code that in the > > windows_Keypress() event. > > Should be doable As Moe told to you, you can use windows_Keypress() event EX. suppose you have two textbox named textbox1 and textbox2 declared in group tbox with tag 1 & 2. This procedure below show you how going textbox1 to textbox2 and textbox2 to textbox1. PUBLIC SUB Tbox_KeyPress() IF Key.code = Key.enter OR Key.code = Key.Return OR Key.code = Key.Tab THEN SELECT CASE LAST.tag CASE 1 Textbox2.SetFocus STOP EVENT CASE 2 Textbox1.SetFocus STOP EVENT endif end I hope that it is it that you want Jacky From marcel.duffau at ...626... Wed Feb 25 18:35:58 2009 From: marcel.duffau at ...626... (Vackoy) Date: Wed, 25 Feb 2009 09:35:58 -0800 (PST) Subject: [Gambas-user] Switching between forms in tabstrip In-Reply-To: <200902251828.45916.jscops@...11...> References: <22206694.post@...1379...> <1f1e8c1b0902250854g53f36b71qcbde7a07a5a07792@...627...> <22207100.post@...1379...> <200902251828.45916.jscops@...11...> Message-ID: <22207784.post@...1379...> @jacky-12 I understand that but that is not what I need. Let me see if I can explain it better. I have a workspace and add several forms to it. In each for i have different controls as textboxes, buttons, gridviews, etc. The thing is that I want to be able to switch between forms with some key combination (i.e. Ctrl + Tab) but the keypress event depends on the control that has the focus and not on the tabstrip or the workspace. So how can I "get" the keypress regardless the control or object that has the focus. Is there another way of doing this? Thanks. Marcel jacky-12 wrote: > > Le mercredi 25 f?vrier 2009 18:03:29 Vackoy, vous avez ?crit : >> Yes, but which element/object is the observer for the Keypress? >> I tried with Workspace.Keypress but when I open a form, the observer >> becomes the form and not the workspace, so no matter what key I press it >> doesn't raise the event... >> >> M0E Lnx wrote: >> > Have not tried it but I imagine you can code that in the >> > windows_Keypress() event. >> > Should be doable > > As Moe told to you, you can use windows_Keypress() event > > EX. suppose you have two textbox named textbox1 and textbox2 declared in > group > tbox with tag 1 & 2. > This procedure below show you how going textbox1 to textbox2 and textbox2 > to > textbox1. > > PUBLIC SUB Tbox_KeyPress() > IF Key.code = Key.enter OR Key.code = Key.Return OR Key.code = Key.Tab > THEN > SELECT CASE LAST.tag > > CASE 1 > Textbox2.SetFocus > STOP EVENT > > CASE 2 > Textbox1.SetFocus > STOP EVENT > endif > end > > I hope that it is it that you want > > Jacky > > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, > CA > -OSBC tackles the biggest issue in open source: Open Sourcing the > Enterprise > -Strategies to boost innovation and cut costs with open source > participation > -Receive a $600 discount off the registration fee with the source code: > SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://www.nabble.com/Switching-between-forms-in-tabstrip-tp22206694p22207784.html Sent from the gambas-user mailing list archive at Nabble.com. From m0e.lnx at ...626... Wed Feb 25 18:58:47 2009 From: m0e.lnx at ...626... (M0E Lnx) Date: Wed, 25 Feb 2009 11:58:47 -0600 Subject: [Gambas-user] Change translations at runtime In-Reply-To: <49A57DD3.1050607@...2035...> References: <49A57DD3.1050607@...2035...> Message-ID: <1f1e8c1b0902250958x5c560c01of42d4ba03ace7e9e@...627...> I have a program that runs the same way. Unfortunately, for translations to take place, all translated objects must be destroyed and re-created under the new environment. The first time around, I created a loop to restart the application after setting the right environment. Later, I realized that I could do it without having to restart the entire application. You can do it by using a class or module as startup class, and if you are offering a language selection, of course, your first window will always show up in the language defined by LANG. Anything after that will be shown in the language selected by the user. I have seen python applications, where you click a language in a list and everything in the form translates immediately...the screen doesn't even flash. I wonder if gambas could implement someting like that some day From gambas at ...1... Wed Feb 25 18:59:29 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Wed, 25 Feb 2009 18:59:29 +0100 Subject: [Gambas-user] Switching between forms in tabstrip In-Reply-To: <22207784.post@...1379...> References: <22206694.post@...1379...> <200902251828.45916.jscops@...11...> <22207784.post@...1379...> Message-ID: <200902251859.29384.gambas@...1...> > @jacky-12 > I understand that but that is not what I need. > Let me see if I can explain it better. > I have a workspace and add several forms to it. In each for i have > different controls as textboxes, buttons, gridviews, etc. > The thing is that I want to be able to switch between forms with some key > combination (i.e. Ctrl + Tab) but the keypress event depends on the control > that has the focus and not on the tabstrip or the workspace. > So how can I "get" the keypress regardless the control or object that has > the focus. > > Is there another way of doing this? > > Thanks. > > Marcel > You need a support for global shortcuts. On Gambas, the only way to do it is creating an hidden menu with one menu item for each action, each item having a shortcut. Regards, -- Beno?t From m0e.lnx at ...626... Wed Feb 25 19:04:23 2009 From: m0e.lnx at ...626... (M0E Lnx) Date: Wed, 25 Feb 2009 12:04:23 -0600 Subject: [Gambas-user] Switching between forms in tabstrip In-Reply-To: <22207784.post@...1379...> References: <22206694.post@...1379...> <1f1e8c1b0902250854g53f36b71qcbde7a07a5a07792@...627...> <22207100.post@...1379...> <200902251828.45916.jscops@...11...> <22207784.post@...1379...> Message-ID: <1f1e8c1b0902251004t4b5f693k2ecc4a9b9eac86ba@...627...> The form does have a keypress() event. If you are using a workspace to host(embed) other forms into one host form, you'll have to declare a variable that holds the current object in the workspace, and address the correct object. For example. PUBLIC $CurrentObject as Object on the guest forms open() event... you set this variable. PUBLIC SUB Form_Open() Fmain.$CurrentObject = me ' FMAIN is your host form (name it whatever you want) END That will give you a common ground to use the host form's _keypress() event Of course, there must be better ways to do this, but I have used this method in the past and it works for me From mohareve at ...626... Wed Feb 25 19:08:32 2009 From: mohareve at ...626... (M. Cs.) Date: Wed, 25 Feb 2009 19:08:32 +0100 Subject: [Gambas-user] Missing dependencies in compiled packages In-Reply-To: <200902251755.59101.gambas@...1...> References: <200902251755.59101.gambas@...1...> Message-ID: Yes, I would do if you explained me how to do it. I've written an aplication which is open for everyone, and I would like to make it usable from dependency part too. Greetings, Csaba From doriano.blengino at ...1909... Wed Feb 25 19:07:18 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Wed, 25 Feb 2009 19:07:18 +0100 Subject: [Gambas-user] Switching between forms in tabstrip In-Reply-To: <22207784.post@...1379...> References: <22206694.post@...1379...> <1f1e8c1b0902250854g53f36b71qcbde7a07a5a07792@...627...> <22207100.post@...1379...> <200902251828.45916.jscops@...11...> <22207784.post@...1379...> Message-ID: <49A588D6.3070305@...1909...> Vackoy ha scritto: > @jacky-12 > I understand that but that is not what I need. > Let me see if I can explain it better. > I have a workspace and add several forms to it. In each for i have different > controls as textboxes, buttons, gridviews, etc. > The thing is that I want to be able to switch between forms with some key > combination (i.e. Ctrl + Tab) but the keypress event depends on the control > that has the focus and not on the tabstrip or the workspace. > So how can I "get" the keypress regardless the control or object that has > the focus. > > Is there another way of doing this? > I had the same problem some time ago. The ultimate response is, you can't. To do that, it would be needed a "KeyPreview" property of the form, which lets the form intercept all the keypresses before they arrive to its controls, perhaps even before they reach the Menu. I managed this situation by using a Menu item, and setting its shortcut. In the event handler of that menu, you can do whatever you want. This menu should be hidden, but it was reported that hidden Menus don't trigger events... but for me it worked (the shortcut was Enter!) - may be there are differences from GTK or QT. Regards, Doriano From marcel.duffau at ...626... Wed Feb 25 19:58:35 2009 From: marcel.duffau at ...626... (Vackoy) Date: Wed, 25 Feb 2009 10:58:35 -0800 (PST) Subject: [Gambas-user] Switching between forms in tabstrip In-Reply-To: <49A588D6.3070305@...1909...> References: <22206694.post@...1379...> <1f1e8c1b0902250854g53f36b71qcbde7a07a5a07792@...627...> <22207100.post@...1379...> <200902251828.45916.jscops@...11...> <22207784.post@...1379...> <49A588D6.3070305@...1909...> Message-ID: <22209325.post@...1379...> Thanks everyone for your responses. I think that what Benoit and Doriano suggested are in the way of what I need. Doriano, the layout of what I have is the following: * a main form * a workspace * several forms added to the workspace by .add method Where should I add the menu, in the main form? the workspace? sorry but is beyond what I have tried before Thanks. -- View this message in context: http://www.nabble.com/Switching-between-forms-in-tabstrip-tp22206694p22209325.html Sent from the gambas-user mailing list archive at Nabble.com. From doriano.blengino at ...1909... Wed Feb 25 20:14:33 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Wed, 25 Feb 2009 20:14:33 +0100 Subject: [Gambas-user] Switching between forms in tabstrip In-Reply-To: <22209325.post@...1379...> References: <22206694.post@...1379...> <1f1e8c1b0902250854g53f36b71qcbde7a07a5a07792@...627...> <22207100.post@...1379...> <200902251828.45916.jscops@...11...> <22207784.post@...1379...> <49A588D6.3070305@...1909...> <22209325.post@...1379...> Message-ID: <49A59899.70905@...1909...> Vackoy ha scritto: > Thanks everyone for your responses. > I think that what Benoit and Doriano suggested are in the way of what I > need. > > Doriano, the layout of what I have is the following: > * a main form > * a workspace > * several forms added to the workspace by .add method > > Where should I add the menu, in the main form? the workspace? sorry but is > beyond what I have tried before > Thanks. > I think you should add the menu to the main form, but I never tried workspaces; I am happy with plain tabstrips. So, I really don't know if it works well with workspaces, because inside them there can be another menu, I suppose (well, this is true for tabstrips too, they can embed other forms). It is not clear to me the path events take to go from X11 to widget system to gambas to whatever ;-) Take a try... it should be quick and easy... good luck! Regards, Doriano From dosida at ...626... Wed Feb 25 20:21:00 2009 From: dosida at ...626... (Dimitris Anogiatis) Date: Wed, 25 Feb 2009 12:21:00 -0700 Subject: [Gambas-user] Switching between forms in tabstrip In-Reply-To: <49A59899.70905@...1909...> References: <22206694.post@...1379...> <1f1e8c1b0902250854g53f36b71qcbde7a07a5a07792@...627...> <22207100.post@...1379...> <200902251828.45916.jscops@...11...> <22207784.post@...1379...> <49A588D6.3070305@...1909...> <22209325.post@...1379...> <49A59899.70905@...1909...> Message-ID: <82bffccf0902251121y4dbbba3cj65bd7e8c1c90efef@...627...> If I may add my 2 cents worth, if you just use the form_keypress event you might be able to do what you want. this is my attempt; tbsettings is my tabstrip control I have 4 tabs (with index 0 to 3) add this to the form that you have the tabstrip onto PUBLIC SUB Form_KeyPress() IF Key.Control THEN SELECT CASE tbSettings.Index CASE 0 TO 2 INC tbSettings.Index CASE 3 tbSettings.index = 0 CASE ELSE END SELECT END IF END this would result in moving to the next tab when you just press the control key I haven't been able to make it to work with a combination of keys but in Gambas 2.10 it works no matter what control has the focus I only have one tabstrip control on my GUI so I am not sure if this solution would work on multiple tabstrips or other layouts Hope it helps and it's close to what you wanna do. Regards, Dimitrios On Wed, Feb 25, 2009 at 12:14 PM, Doriano Blengino < doriano.blengino at ...1909...> wrote: > Vackoy ha scritto: > > Thanks everyone for your responses. > > I think that what Benoit and Doriano suggested are in the way of what I > > need. > > > > Doriano, the layout of what I have is the following: > > * a main form > > * a workspace > > * several forms added to the workspace by .add method > > > > Where should I add the menu, in the main form? the workspace? sorry but > is > > beyond what I have tried before > > Thanks. > > > I think you should add the menu to the main form, but I never tried > workspaces; I am happy with plain tabstrips. > So, I really don't know if it works well with workspaces, because inside > them there can be another menu, I suppose (well, this is true for > tabstrips too, they can embed other forms). It is not clear to me the > path events take to go from X11 to widget system to gambas to whatever ;-) > > Take a try... it should be quick and easy... good luck! > > Regards, > Doriano > > > > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, > CA > -OSBC tackles the biggest issue in open source: Open Sourcing the > Enterprise > -Strategies to boost innovation and cut costs with open source > participation > -Receive a $600 discount off the registration fee with the source code: > SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Wed Feb 25 20:41:37 2009 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 25 Feb 2009 21:41:37 +0200 Subject: [Gambas-user] Gambas3 byref behavior Message-ID: <384d3900902251141o7ea5eaafqb79e70fb04bcad7@...627...> Hi I could be wrong, but. I think that byref command should behave like this: a = 0 TestFunction(a) Print a Public Function TestFunction(Byref x as Integer) Inc x End Result: 1 And if you like to pass byref argument byval instead for some reason, you should do this: a = 0 TestFunction(Byval a) Print a Public Function TestFunction(Byref x as Integer) Inc x End Result: 0 There are reasons why one design function to take parameters byref, and so, it should be default behavior. Need to pass byref argument byval is rare exception (I think). Maybe there are some technical restrictions why this is as it is. And maybe this is not good enough reason to change syntax anymore... What do you think? Jussi From jussi.lahtinen at ...626... Wed Feb 25 20:57:45 2009 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 25 Feb 2009 21:57:45 +0200 Subject: [Gambas-user] Fwd: Gambas3 byref behavior In-Reply-To: <384d3900902251141o7ea5eaafqb79e70fb04bcad7@...627...> References: <384d3900902251141o7ea5eaafqb79e70fb04bcad7@...627...> Message-ID: <384d3900902251157u20300a5csc200b1be7c14944d@...627...> I forgot to mention about related bug... IDE doesn't like this; With someobject TestFunction(ByRef .x) End With it renders to; With someobject TestFunction(ByRef.x) <-- Unknown identifier: ByRef End With Sorry about messy post... Jussi ---------- Forwarded message ---------- From: Jussi Lahtinen Date: Wed, Feb 25, 2009 at 9:41 PM Subject: Gambas3 byref behavior To: "Gambas mailing list for users." Hi I could be wrong, but. I think that byref command should behave like this: a = 0 TestFunction(a) Print a Public Function TestFunction(Byref x as Integer) ?Inc x End Result: 1 And if you like to pass byref argument byval instead for some reason, you should do this: a = 0 TestFunction(Byval a) Print a Public Function TestFunction(Byref x as Integer) ?Inc x End Result: 0 There are reasons why one design function to take parameters byref, and so, it should be default behavior. Need to pass byref argument byval is rare exception (I think). Maybe there are some technical restrictions why this is as it is. And maybe this is not good enough reason to change syntax anymore... What do you think? Jussi From joshiggins at ...1601... Wed Feb 25 21:28:35 2009 From: joshiggins at ...1601... (Joshua Higgins) Date: Wed, 25 Feb 2009 20:28:35 +0000 Subject: [Gambas-user] question about gambas2-runtime Message-ID: <4247f5440902251228y5db92db4w4e6329e97214ef87@...627...> I'm assuming that installing gambas2-runtime in Ubuntu, I'd still need to install gambas2-gb-net package to work if my program uses a UDP server, for example? -- joshua higgins >>>>>>------ From rterry at ...1946... Wed Feb 25 21:49:00 2009 From: rterry at ...1946... (richard terry) Date: Thu, 26 Feb 2009 07:49:00 +1100 Subject: [Gambas-user] Probable bug in Postgres db driver Message-ID: <200902260749.00396.rterry@...1946...> I've posted about this before in regards to the PictureDatabase example, as in postgres though you can save the picture, it dosn't retreive. I had asked someone to test it, though no-one appears to have had the time. This driver is pretty critical to my medical records project, as I used to be able to save images of skin lesions/Xrays, diagrams, line drawings, back to my database and now can save but the retreived image is chopped losing a number of bytes from the end and won't display. I want to be able to present my program at a medical computing conference in July as a prototype version reasonably fully complete by then, so I need it to work. All this work of mine by the way will be open-sourced if I can get it to a state of functional completeness. So I asked my mate Ian Haywood, who is quite an accomplished programmer and far far brighter and more computer literate than I by sending him this message > If you updated the latest ?gambas - you don't need my program to test this - > just change a couple of lines of code in the picturedatabase sample program > to use postgres and you will see the error. Maybe, it is only on my machine. and this was his reply: ================================================= I can reproduce this. It is only postgres, only gambas, and only with the BYTEA type, TEXT doesn't do this (but you can't put a png in text, at least not easily). So, it's definitely a bug in the postgres drivers for gambas. Has this been reported to the gambas list? There is a workaround: convert the png to text and store, then convert back on reading. this works b/c our images are small, but big images will waste space and cause slowness. this solution is fairly easy to whip up, I can do this if the underlying bug can't be fixed and we want this functionality for 10240cc[conference]. Ian ================================================= So I wondered if somone could test the postgres driver again, just to make sure it is not a library on my machine, although I know Ian runs a debian flavour so probably not. Regards Richard -------------- next part -------------- An embedded message was scrubbed... From: Ian Haywood Subject: Re: Ok, This you could help with Date: Wed, 25 Feb 2009 23:14:15 +1100 Size: 1800 URL: From rterry at ...1946... Wed Feb 25 21:56:52 2009 From: rterry at ...1946... (richard terry) Date: Thu, 26 Feb 2009 07:56:52 +1100 Subject: [Gambas-user] What's the Margin property of vertical box Do Message-ID: <200902260756.52107.rterry@...1946...> ?? Never noticed it there before, and no help available. REgards richard From marcel.duffau at ...626... Thu Feb 26 14:04:19 2009 From: marcel.duffau at ...626... (Vackoy) Date: Thu, 26 Feb 2009 05:04:19 -0800 (PST) Subject: [Gambas-user] Switching between forms in tabstrip In-Reply-To: <82bffccf0902251121y4dbbba3cj65bd7e8c1c90efef@...627...> References: <22206694.post@...1379...> <1f1e8c1b0902250854g53f36b71qcbde7a07a5a07792@...627...> <22207100.post@...1379...> <200902251828.45916.jscops@...11...> <22207784.post@...1379...> <49A588D6.3070305@...1909...> <22209325.post@...1379...> <49A59899.70905@...1909...> <82bffccf0902251121y4dbbba3cj65bd7e8c1c90efef@...627...> Message-ID: <22223618.post@...1379...> Dimitris, thanks for the tip. I can get the Keypress event from the form and get the combination for Ctrl + Tab. However, since I have a Workspace, I don't know how to access the Tabstrip control or how to index the forms in it. Any thoughts? Thanks Dimitris Anogiatis wrote: > > If I may add my 2 cents worth, > -- View this message in context: http://www.nabble.com/Switching-between-forms-in-tabstrip-tp22206694p22223618.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Thu Feb 26 14:23:15 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Thu, 26 Feb 2009 14:23:15 +0100 Subject: [Gambas-user] Change translations at runtime In-Reply-To: <1f1e8c1b0902250958x5c560c01of42d4ba03ace7e9e@...627...> References: <49A57DD3.1050607@...2035...> <1f1e8c1b0902250958x5c560c01of42d4ba03ace7e9e@...627...> Message-ID: <200902261423.15657.gambas@...1...> > I have a program that runs the same way. Unfortunately, for > translations to take place, all translated objects must be destroyed > and re-created under the new environment. > > The first time around, I created a loop to restart the application > after setting the right environment. > Later, I realized that I could do it without having to restart the > entire application. > > You can do it by using a class or module as startup class, and if you > are offering a language selection, of course, your first window will > always show up in the language defined by LANG. > Anything after that will be shown in the language selected by the user. > > I have seen python applications, where you click a language in a list > and everything in the form translates immediately...the screen doesn't > even flash. > > I wonder if gambas could implement someting like that some day > First, you must set the System.Language property, which reload the translation file. But it does not change the text in already opened windows. So you must do that "by hand". Regards, -- Beno?t From gambas at ...1... Thu Feb 26 14:20:52 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Thu, 26 Feb 2009 14:20:52 +0100 Subject: [Gambas-user] Switching between forms in tabstrip In-Reply-To: <22223618.post@...1379...> References: <22206694.post@...1379...> <82bffccf0902251121y4dbbba3cj65bd7e8c1c90efef@...627...> <22223618.post@...1379...> Message-ID: <200902261420.52262.gambas@...1...> > Dimitris, > thanks for the tip. I can get the Keypress event from the form and get the > combination for Ctrl + Tab. > However, since I have a Workspace, I don't know how to access the Tabstrip > control or how to index the forms in it. You don't. You must use the Workspace.Children property to get an array of all child windows, choose your window, and then set the Workspace.ActiveWindow property. Regards, -- Beno?t From gambas at ...1... Thu Feb 26 14:27:23 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Thu, 26 Feb 2009 14:27:23 +0100 Subject: [Gambas-user] Gambas3 byref behavior In-Reply-To: <384d3900902251141o7ea5eaafqb79e70fb04bcad7@...627...> References: <384d3900902251141o7ea5eaafqb79e70fb04bcad7@...627...> Message-ID: <200902261427.23767.gambas@...1...> > Hi > I could be wrong, but. > I think that byref command should behave like this: > > a = 0 > TestFunction(a) > Print a > > Public Function TestFunction(Byref x as Integer) > Inc x > End > > Result: > 1 > > > And if you like to pass byref argument byval instead for some reason, > you should do this: > > a = 0 > TestFunction(Byval a) > Print a > > Public Function TestFunction(Byref x as Integer) > Inc x > End > > Result: > 0 > > There are reasons why one design function to take parameters byref, > and so, it should be default behavior. > Need to pass byref argument byval is rare exception (I think). > Maybe there are some technical restrictions why this is as it is. > And maybe this is not good enough reason to change syntax anymore... > What do you think? > > > Jussi > The reason why ByRef must be specified both in function declaration and in function call is explained in the documentation wiki there: http://gambasdoc.org/help/doc/byref Regards, -- Beno?t From gambas at ...1... Thu Feb 26 14:29:24 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Thu, 26 Feb 2009 14:29:24 +0100 Subject: [Gambas-user] What's the Margin property of vertical box Do In-Reply-To: <200902260756.52107.rterry@...1946...> References: <200902260756.52107.rterry@...1946...> Message-ID: <200902261429.24917.gambas@...1...> > ?? > Never noticed it there before, and no help available. > > REgards > richard > If set, the Margin property adds Desktop.Scale to the Padding property. -- Beno?t From gambas at ...1... Thu Feb 26 14:31:38 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Thu, 26 Feb 2009 14:31:38 +0100 Subject: [Gambas-user] baloon size In-Reply-To: <1f1e8c1b0902231041v4eb0e39la87d2b5b08b7696e@...627...> References: <1f1e8c1b0902231041v4eb0e39la87d2b5b08b7696e@...627...> Message-ID: <200902261431.38069.gambas@...1...> > Is there any way to get a balloon to resize to what I need? > > I'm using aballoon to display about 12 lines of text (each line about > 70 characters long) > Is there any way to make the baloon resize to fit such a thing? > > Using Gambas2-2.11.1 > Mmm. It seems there is a bug in gb.gtk, as with gb.qt the balloon displays 12 lines of text without problems. Regards, -- Beno?t From gambas at ...1... Thu Feb 26 14:28:42 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Thu, 26 Feb 2009 14:28:42 +0100 Subject: [Gambas-user] Probable bug in Postgres db driver In-Reply-To: <200902260749.00396.rterry@...1946...> References: <200902260749.00396.rterry@...1946...> Message-ID: <200902261428.43085.gambas@...1...> > I've posted about this before in regards to the PictureDatabase example, as > in postgres though you can save the picture, it dosn't retreive. I had > asked someone to test it, though no-one appears to have had the time. > > This driver is pretty critical to my medical records project, as I used to > be able to save images of skin lesions/Xrays, diagrams, line drawings, back > to my database and now can save but the retreived image is chopped losing a > number of bytes from the end and won't display. > > I want to be able to present my program at a medical computing conference > in July as a prototype version reasonably fully complete by then, so I need > it to work. All this work of mine by the way will be open-sourced if I can > get it to a state of functional completeness. > > So I asked my mate Ian Haywood, who is quite an accomplished programmer and > far far brighter and more computer literate than I by sending him this > message > > > If you updated the latest ?gambas - you don't need my program to test > > this - just change a couple of lines of code in the picturedatabase > > sample program to use postgres and you will see the error. Maybe, it is > > only on my machine. > > and this was his reply: > > ================================================= > I can reproduce this. It is only postgres, only gambas, and only with the > BYTEA type, TEXT doesn't do this (but you can't put a png in text, at least > not easily). > > So, it's definitely a bug in the postgres drivers for gambas. > Has this been reported to the gambas list? > > There is a workaround: convert the png to text and store, then convert back > on reading. this works b/c our images are small, but big images will waste > space and cause slowness. this solution is fairly easy to whip up, I can do > this if the underlying bug can't be fixed and we want this functionality > for 10240cc[conference]. > > Ian > ================================================= > > So I wondered if somone could test the postgres driver again, just to make > sure it is not a library on my machine, although I know Ian runs a debian > flavour so probably not. > > Regards > > Richard I promise, I will look at that bug as soon as I finish my removal! Regards, -- Beno?t From eilert-sprachen at ...221... Thu Feb 26 16:24:20 2009 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Thu, 26 Feb 2009 16:24:20 +0100 Subject: [Gambas-user] Two minor "bugs" In-Reply-To: <200901141102.29955.ronstk@...239...> References: <4965C7AE.8030501@...221...> <200901121616.08435.gambas@...1...> <496D974B.4040304@...221...> <200901141102.29955.ronstk@...239...> Message-ID: <49A6B424.4010409@...221...> Ron_1st schrieb: > On Wednesday 14 January 2009, Rolf-Werner Eilert wrote: > >> Thinking it over, I still feel that it should be the programmer's choice >> what width the last column should have. Implementing it as an option >> (Property: LastColumnStretch or so) would be nice, although it would add >> to featurism of course. >> > I agree with this. > A property to enable/disable the auto fill last column would be very nice > > > >> But nobody else here seems to be interested in this topic, and nobody >> commented on my screenshots (or didn't the pictures get through?). So I >> don't want to overstress this. >> > I found the screenshot explaining it just the right way. > >> On the other hand, imagine what this looks like when you start input >> within such a table: a column only a single letter wide or a few, and >> the input line reaches out so far to the right... That IS ugly, isn't it? >> >> Rolf >> > > > > Best regards, > > Ron_1st > Hi Ron, just FYI, I found where it is and just switched it off. Here is what I did: Download the source, unpack and ./configure. Then look for /gb.qt/src/CGridView.cpp and open it in an editor. Look for void MyTable::updateLastColumn() and quote the line if (!_last_col_width) as well as the two lines if (((columnPos(n) ... setColumnWidth(n, ... by just setting a // at their beginnings. Then make and make install and the feature has gone... :-) Rolf From dosida at ...626... Thu Feb 26 16:42:43 2009 From: dosida at ...626... (Dimitris Anogiatis) Date: Thu, 26 Feb 2009 08:42:43 -0700 Subject: [Gambas-user] Switching between forms in tabstrip In-Reply-To: <200902261420.52262.gambas@...1...> References: <22206694.post@...1379...> <82bffccf0902251121y4dbbba3cj65bd7e8c1c90efef@...627...> <22223618.post@...1379...> <200902261420.52262.gambas@...1...> Message-ID: <82bffccf0902260742h4e4ad2e8o5aaa9bb3c527afbe@...627...> After reading Beno?t 's guidelines and going through my previous example I came up with this. PUBLIC SUB Form_KeyPress() IF Key.Control SELECT CASE Workspace1.Children.Find(Workspace1.ActiveWindow) CASE 0 TO Workspace1.Children.Count - 2 Workspace1.ActiveWindow = Workspace1.Children[Workspace1.Children.Find(Workspace1.ActiveWindow) + 1] CASE Workspace1.Children.Count - 1 Workspace1.ActiveWindow = Workspace1.Children[0] CASE ELSE END SELECT ENDIF END Add this to the code of the form that has the workspace it should have the desired effect. Hopefully this will bring you closer to what you want to do. Regards Dimitris On Thu, Feb 26, 2009 at 6:20 AM, Beno?t Minisini < gambas at ...1...> wrote: > > Dimitris, > > thanks for the tip. I can get the Keypress event from the form and get > the > > combination for Ctrl + Tab. > > However, since I have a Workspace, I don't know how to access the > Tabstrip > > control or how to index the forms in it. > > You don't. > > You must use the Workspace.Children property to get an array of all child > windows, choose your window, and then set the Workspace.ActiveWindow > property. > > Regards, > > -- > Beno?t > > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, > CA > -OSBC tackles the biggest issue in open source: Open Sourcing the > Enterprise > -Strategies to boost innovation and cut costs with open source > participation > -Receive a $600 discount off the registration fee with the source code: > SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From ronstk at ...239... Thu Feb 26 19:01:22 2009 From: ronstk at ...239... (Ron_1st) Date: Thu, 26 Feb 2009 19:01:22 +0100 Subject: [Gambas-user] Two minor "bugs" In-Reply-To: <49A6B424.4010409@...221...> References: <4965C7AE.8030501@...221...> <200901141102.29955.ronstk@...239...> <49A6B424.4010409@...221...> Message-ID: <200902261901.23290.ronstk@...239...> On Thursday 26 February 2009, Rolf-Werner Eilert wrote: ---8<--- > > > > Best regards, > > > > Ron_1st > > > > Hi Ron, > > just FYI, I found where it is and just switched it off. Here is what I did: > > Download the source, unpack and ./configure. > > Then look for /gb.qt/src/CGridView.cpp and open it in an > editor. Look for > > void MyTable::updateLastColumn() > > and quote the line > > if (!_last_col_width) > > as well as the two lines > > if (((columnPos(n) ... > setColumnWidth(n, ... > > by just setting a // at their beginnings. > > Then make > and make install > > and the feature has gone... :-) > > Rolf > LOL, sneaky hacker :):) Thats the beauty of opensource. You are not only learn programming/reading the Basic code but also learn to read C code at least. And for me is the code Benoit is writing good stuff to learn. For me he did make _the_ example how to use the macros in C code to use them in the gambas project. For me it is a good frame work and I can still learn from. Thank for the hint. I did not realised to do it that way. Now I should read the 'patch' documentation so I can easy patch the next version of the source code when released. -- A: Delete the text you reply on. Q: What to do to get my post on top? --- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? --- A: Top-posting. Q: What is the most annoying thing in e-mail? From marcel.duffau at ...626... Thu Feb 26 21:33:35 2009 From: marcel.duffau at ...626... (Vackoy) Date: Thu, 26 Feb 2009 12:33:35 -0800 (PST) Subject: [Gambas-user] Switching between forms in tabstrip In-Reply-To: <82bffccf0902260742h4e4ad2e8o5aaa9bb3c527afbe@...627...> References: <22206694.post@...1379...> <1f1e8c1b0902250854g53f36b71qcbde7a07a5a07792@...627...> <22207100.post@...1379...> <200902251828.45916.jscops@...11...> <22207784.post@...1379...> <49A588D6.3070305@...1909...> <22209325.post@...1379...> <49A59899.70905@...1909...> <82bffccf0902251121y4dbbba3cj65bd7e8c1c90efef@...627...> <22223618.post@...1379...> <200902261420.52262.gambas@...1...> <82bffccf0902260742h4e4ad2e8o5aaa9bb3c527afbe@...627...> Message-ID: <22233025.post@...1379...> I tried this last example and it worked like a charm. Thanks. Marcel -- View this message in context: http://www.nabble.com/Switching-between-forms-in-tabstrip-tp22206694p22233025.html Sent from the gambas-user mailing list archive at Nabble.com. From jguardon at ...2035... Thu Feb 26 22:14:56 2009 From: jguardon at ...2035... (Jesus Guardon) Date: Thu, 26 Feb 2009 22:14:56 +0100 Subject: [Gambas-user] Change translations at runtime In-Reply-To: <200902261423.15657.gambas@...1...> References: <49A57DD3.1050607@...2035...> <1f1e8c1b0902250958x5c560c01of42d4ba03ace7e9e@...627...> <200902261423.15657.gambas@...1...> Message-ID: <49A70650.3080508@...2035...> Thanks Beno?t and M0E, it works. But as you said, I must reload the main form after this command. No problem anyway, because at the moment I'm using it only for debugging purposes. Cheers Jes?s Guard?n Beno?t Minisini escribi?: > First, you must set the System.Language property, which reload the translation > file. But it does not change the text in already opened windows. So you must > do that "by hand". > > Regards, > From jguardon at ...2035... Thu Feb 26 22:40:44 2009 From: jguardon at ...2035... (Jesus Guardon) Date: Thu, 26 Feb 2009 22:40:44 +0100 Subject: [Gambas-user] Missing gambas2-gb-settings in OpenSuse Message-ID: <49A70C5C.4060509@...2035...> Hello I'm trying to test my application (which uses gb.settings) into a virtualized OpenSuse. All dependencies are found, except gambas2-gb-settings. I've browsed repositories manually and also had no luck. Even if I install the whole Gambas IDE into OpenSuSe, debugging the application or making an executable runs fine, but creating a RPM package and trying to install it, gives the same error. Am I missing something, or is there a reason for so? Thanks Jesus From dosida at ...626... Fri Feb 27 00:28:23 2009 From: dosida at ...626... (Dimitris Anogiatis) Date: Thu, 26 Feb 2009 16:28:23 -0700 Subject: [Gambas-user] Switching between forms in tabstrip In-Reply-To: <22233025.post@...1379...> References: <22206694.post@...1379...> <22207784.post@...1379...> <49A588D6.3070305@...1909...> <22209325.post@...1379...> <49A59899.70905@...1909...> <82bffccf0902251121y4dbbba3cj65bd7e8c1c90efef@...627...> <22223618.post@...1379...> <200902261420.52262.gambas@...1...> <82bffccf0902260742h4e4ad2e8o5aaa9bb3c527afbe@...627...> <22233025.post@...1379...> Message-ID: <82bffccf0902261528kd8eece1ke8468b91c3adef3b@...627...> Glad I could help Marcel :) On Thu, Feb 26, 2009 at 1:33 PM, Vackoy wrote: > > I tried this last example and it worked like a charm. Thanks. > > Marcel > > -- > View this message in context: > http://www.nabble.com/Switching-between-forms-in-tabstrip-tp22206694p22233025.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, > CA > -OSBC tackles the biggest issue in open source: Open Sourcing the > Enterprise > -Strategies to boost innovation and cut costs with open source > participation > -Receive a $600 discount off the registration fee with the source code: > SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From rterry at ...1946... Fri Feb 27 02:57:55 2009 From: rterry at ...1946... (richard terry) Date: Fri, 27 Feb 2009 12:57:55 +1100 Subject: [Gambas-user] help with data import into postgres - funny characters> import fails Message-ID: <200902271257.55720.rterry@...1946...> Hi , I'm trying to import the hl7 from a local radiology provider: It's got funny characters in the file and postgres baulks when I go to save the line with the message attatched, but it basically says - invalid byte sequence for encoding UTF8. My postgres database is created with UTF8 encoding CREATE DATABASE "27Feb09" WITH OWNER = richard ENCODING = 'UTF8'; snipped is the offending bit: with a maximum AP diameter\.br\of 1.0cm and a less than 50% stenosis in its proximal segment. \.br\\.br\Continued?????/2\.br\In the mid superficial femoral artery there is staccato flow and an I've imported thousands and thousands of lines from a pathology provider and never encountered these characters. Thanks in anticipation. From the.at.robert at ...626... Fri Feb 27 05:11:09 2009 From: the.at.robert at ...626... (Robert Moss) Date: Thu, 26 Feb 2009 20:11:09 -0800 Subject: [Gambas-user] help with data import into postgres - funny characters> import fails In-Reply-To: <200902271257.55720.rterry@...1946...> References: <200902271257.55720.rterry@...1946...> Message-ID: Is the error a Gambas error or a Postgres error? It might be they are using a charset with special keys spefic to their industry, which might indicate more data, or, more likely, the data is errorenous and got bit-shifted, and now, the high-order bit might be too large to be part of the UTF-8 charset. I would see if you can get the binary/hex of those keys, and shift the bits each way by one, (try two also), and then if one of them makes sense, you know its a communication error (that got uncorrected??? doesn't sound like TCP). Since you've never encountered these characters, the most likely scenario is data corruption. Try to correct it with a bitshift, and if that works, write code to search for high-order bits that are incorrect, and shift the sequence appropriately. Let me know what you think ^_^ -Robert On Thu, Feb 26, 2009 at 5:57 PM, richard terry wrote: > Hi , > > I'm trying to import the hl7 from a local radiology provider: > It's got funny characters in the file and postgres baulks when I go to save > the line with the message attatched, but it basically says - invalid byte > sequence for encoding UTF8. > > My postgres database is created with UTF8 encoding > > CREATE DATABASE "27Feb09" > WITH OWNER = richard > ENCODING = 'UTF8'; > > snipped is the offending bit: > > with a maximum AP diameter\.br\of 1.0cm and a less than 50% stenosis in its > proximal segment. \.br\\.br\Continued?????/2\.br\In the mid superficial > femoral artery there is staccato flow and an > > I've imported thousands and thousands of lines from a pathology provider > and > never encountered these characters. > > Thanks in anticipation. > > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, > CA > -OSBC tackles the biggest issue in open source: Open Sourcing the > Enterprise > -Strategies to boost innovation and cut costs with open source > participation > -Receive a $600 discount off the registration fee with the source code: > SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From the.at.robert at ...626... Fri Feb 27 05:16:36 2009 From: the.at.robert at ...626... (Robert Moss) Date: Thu, 26 Feb 2009 20:16:36 -0800 Subject: [Gambas-user] help with data import into postgres - funny characters> import fails In-Reply-To: References: <200902271257.55720.rterry@...1946...> Message-ID: Sorry to post two messages, but I just thought of something. Maybe they are nulls, and maybe postgres has a problem importing nulls into a string datatype. Just a thought to look into. DEFINITELY look at the hex representation (ideally next to the character representation) and see if you can identify what the characters are. UTF characters often take this form (on little-endian[first], hi-order 2nd) 24 04 | 52 04 nulls obviously: 00 00, and bitshifted: 40 45 | 20 42. On Thu, Feb 26, 2009 at 8:11 PM, Robert Moss wrote: > Is the error a Gambas error or a Postgres error? It might be they are using > a charset with special keys spefic to their industry, which might indicate > more data, or, more likely, the data is errorenous and got bit-shifted, and > now, the high-order bit might be too large to be part of the UTF-8 charset. > I would see if you can get the binary/hex of those keys, and shift the bits > each way by one, (try two also), and then if one of them makes sense, you > know its a communication error (that got uncorrected??? doesn't sound like > TCP). > > Since you've never encountered these characters, the most likely scenario > is data corruption. Try to correct it with a bitshift, and if that works, > write code to search for high-order bits that are incorrect, and shift the > sequence appropriately. > > Let me know what you think ^_^ > > -Robert > > > On Thu, Feb 26, 2009 at 5:57 PM, richard terry wrote: > >> Hi , >> >> I'm trying to import the hl7 from a local radiology provider: >> It's got funny characters in the file and postgres baulks when I go to >> save >> the line with the message attatched, but it basically says - invalid byte >> sequence for encoding UTF8. >> >> My postgres database is created with UTF8 encoding >> >> CREATE DATABASE "27Feb09" >> WITH OWNER = richard >> ENCODING = 'UTF8'; >> >> snipped is the offending bit: >> >> with a maximum AP diameter\.br\of 1.0cm and a less than 50% stenosis in >> its >> proximal segment. \.br\\.br\Continued?????/2\.br\In the mid superficial >> femoral artery there is staccato flow and an >> >> I've imported thousands and thousands of lines from a pathology provider >> and >> never encountered these characters. >> >> Thanks in anticipation. >> >> >> ------------------------------------------------------------------------------ >> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, >> CA >> -OSBC tackles the biggest issue in open source: Open Sourcing the >> Enterprise >> -Strategies to boost innovation and cut costs with open source >> participation >> -Receive a $600 discount off the registration fee with the source code: >> SFAD >> http://p.sf.net/sfu/XcvMzF8H >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > From m0e.lnx at ...626... Fri Feb 27 06:07:29 2009 From: m0e.lnx at ...626... (M0E Lnx) Date: Thu, 26 Feb 2009 23:07:29 -0600 Subject: [Gambas-user] baloon size In-Reply-To: <200902261431.38069.gambas@...1...> References: <1f1e8c1b0902231041v4eb0e39la87d2b5b08b7696e@...627...> <200902261431.38069.gambas@...1...> Message-ID: <1f1e8c1b0902262107u56413d53k6e38b84ce5b0720@...627...> when can I expect to see this fixed? On Thu, Feb 26, 2009 at 7:31 AM, Beno?t Minisini wrote: >> Is there any way to get a balloon to resize to what I need? >> >> I'm using aballoon to display about 12 lines of text (each line about >> 70 characters long) >> Is there any way to make the baloon resize to fit such a thing? >> >> Using Gambas2-2.11.1 >> > > Mmm. It seems there is a bug in gb.gtk, as with gb.qt the balloon displays 12 > lines of text without problems. > > Regards, > > -- > Beno?t > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA > -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise > -Strategies to boost innovation and cut costs with open source participation > -Receive a $600 discount off the registration fee with the source code: SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Fri Feb 27 14:15:06 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 27 Feb 2009 14:15:06 +0100 Subject: [Gambas-user] how can I save webbrowser's html page In-Reply-To: <1235387378.6703.11.camel@...1964...> References: <1235387378.6703.11.camel@...1964...> Message-ID: <6324a42a0902270515x6f90ac6di5e4388dca9e3c15d@...627...> first say us what browser... as it look to be external in the konqueror case you can use dcop command or now dbus one via the dbus linecommand. 2009/2/23 Sevoir : > Hi all! > > > I wrote a login page in html with autopress login button > (userdir/login.html)... > this navigate to an Internet site.. I logged, fantastic.. > I wrote a gambas project while load a stored login page > (userdir/login.html) to a webbrowser > I would like saving a webbrowser window's html source to file > > How can I do it? > > Sorry my bad english :) > > regards, Sevoir > > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA > -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise > -Strategies to boost innovation and cut costs with open source participation > -Receive a $600 discount off the registration fee with the source code: SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Sat Feb 28 22:19:01 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 28 Feb 2009 22:19:01 +0100 Subject: [Gambas-user] question about gambas2-runtime In-Reply-To: <4247f5440902251228y5db92db4w4e6329e97214ef87@...627...> References: <4247f5440902251228y5db92db4w4e6329e97214ef87@...627...> Message-ID: <6324a42a0902281319n7dbc26f1r88c7d28e6a0697d3@...627...> yes 2009/2/25 Joshua Higgins : > I'm assuming that installing gambas2-runtime in Ubuntu, I'd still need to > install gambas2-gb-net package to work if my program uses a UDP server, for > example? > > -- > joshua higgins >>>>>>>------ > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA > -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise > -Strategies to boost innovation and cut costs with open source participation > -Receive a $600 discount off the registration fee with the source code: SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From sbungay at ...981... Sat Feb 28 22:50:23 2009 From: sbungay at ...981... (Stephen Bungay) Date: Sat, 28 Feb 2009 16:50:23 -0500 Subject: [Gambas-user] What dev package.... Message-ID: <49A9B19F.2040307@...981...> Can someone shed some light on what dev package is required to enable the gb.desktop component? I've just moved over to kubuntu 8.04 from 7.04, I'm rebuilding everything and this component is disabled (I've managed to hunt down all the others I need). Steve.