From eilert-sprachen at ...221... Tue Nov 1 08:18:36 2005 From: eilert-sprachen at ...221... (Eilert) Date: Tue, 01 Nov 2005 08:18:36 +0100 Subject: [Gambas-user] TableView Question In-Reply-To: <20051031224520.M8573@...951...> References: <20051031224520.M8573@...951...> Message-ID: <436716CC.1040309@...221...> Hi Fernando, > Can someone please inform me as to what makes > SUB TableView1_Data event fire? Well, as far as I can say from what I've seen, it's nearly everything that changes anything in the TableView, i. e. when you change its size or the number of rows and/or columns...things like that. And, of course, a Refresh will do, too. So, if you want the TableView to fill with values, just give it a new number of rows and columns for the data you want to display, that will do. Rolf From jsowden at ...1051... Tue Nov 1 09:37:02 2005 From: jsowden at ...1051... (John R. Sowden) Date: Tue, 1 Nov 2005 00:37:02 -0800 Subject: [Gambas-user] no response to a newbie problem Message-ID: <200511010037.02380.jsowden@...1051...> I left a newbie question re: a tutorial problem about 2 weeks ago with no response. Did I not present my problem appropriately? I can't believe no one knows the answer, although I am used to asking questions for which few know the answer. -- John R. Sowden AMERICAN SENTRY SYSTEMS, INC. Residential & Commercial Alarm Service UL Listed Central Station Serving the San Francisco Bay Area Since 1967 mail at ...1051... www.americansentry.net From gambas at ...1... Tue Nov 1 10:22:15 2005 From: gambas at ...1... (Benoit Minisini) Date: Tue, 1 Nov 2005 10:22:15 +0100 Subject: [Gambas-user] no response to a newbie problem In-Reply-To: <200511010037.02380.jsowden@...1051...> References: <200511010037.02380.jsowden@...1051...> Message-ID: <200511011022.15298.gambas@...1...> On Tuesday 01 November 2005 09:37, John R. Sowden wrote: > I left a newbie question re: a tutorial problem about 2 weeks ago with no > response. Did I not present my problem appropriately? I think so :-) I read your post and didn't understand what you were talking about... > I can't believe no > one knows the answer, although I am used to asking questions for which few > know the answer. If nobody answers you, it can mean that : - Nobody understood your question - Or Nobody knows the answer. - Or Nobody had the time to answer. Many possibilities... Try to reformulate your question as clearly as possible. Regards, -- Benoit Minisini From gambas at ...1... Tue Nov 1 10:32:29 2005 From: gambas at ...1... (Benoit Minisini) Date: Tue, 1 Nov 2005 10:32:29 +0100 Subject: [Gambas-user] Crossword program In-Reply-To: <435E4AC6.8040700@...1188...> References: <435E4AC6.8040700@...1188...> Message-ID: <200511011032.29862.gambas@...1...> On Tuesday 25 October 2005 17:09, Mikael Ulfenborg wrote: > Hello all, > > First an announcement: My first Gambas project is live, gmbcrossword a > crossword construction > program for swedish type crosswords. You can read more at > http://gmbcrossword.sourceforge.net/ > > Then a question: > Is it possible to make the Ctrl-keys up/down states work under gambas 1.03 > ? I've tried with a global variable and key events but the event always > reports Ctrl-key down until > I press another key on the keyboard (I want to use Ctrl-mouse click). > What do you want to do exactly? If you want to know if one of the CTRL key were pressed during a keyboard event, then you can read the Key.Control property. Regards, -- Benoit Minisini From nigel at ...38... Tue Nov 1 17:54:12 2005 From: nigel at ...38... (nigel at ...38...) Date: Tue, 1 Nov 2005 17:54:12 +0100 (CET) Subject: [Gambas-user] help with gambas in sqlite releted compile error Message-ID: <5743158.1130864052488.JavaMail.www@...713...> Adi, I have managed to compile sqlite3 for version 1.0.11, but did not get the message below (I have compiler 3.4.1). I did however need to replace the following two files in the sqlite3 directory: main.h and main.cpp. They are in the attachment. Check the compiler options below with those that are being used successfully elsewhere within the gambas compile. Regards Nigel > Message Received: Oct 31 2005, 01:19 PM > From: "Adi Spivak" > To: gambas-user at lists.sourceforge.net > Cc: > Subject: Re: [Gambas-user] help with gambas in sqlite releted compile error > > tried that and got this error: > > Making all in sqlite > make[5]: Entering directory `/usr/src/gambas-1.0.11/src/lib/db/sqlite3' > /bin/sh ../../../../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. - > I../../../.. -I../../../../src/share @SQLITE3_INC@ -g -O2 -pipe -Wall -fno- > exceptions -g -Os -fno-omit-frame-pointer -c main.cpp > g++ -DHAVE_CONFIG_H -I. -I. -I../../../.. -I../../../../src/share > @SQLITE3_INC@ -g -O2 -pipe -Wall -fno-exceptions -g -Os -fno-omit-frame- > pointer -Wp,-MD,.deps/main.pp -c main.cpp -fPIC -DPIC -o .libs/main.o > g++: cannot specify -o with -c or -S and multiple compilations > make[5]: *** [main.lo] Error 1 > make[5]: Leaving directory `/usr/src/gambas-1.0.11/src/lib/db/sqlite3' > > i use g++ (gcc) version 3.3.6 > > Thanks > Adi Spivak > > On Mon, 31 Oct 2005 10:32:17 +0100 (CET), nigel wrote > > Ok. I see that you are using gambas 1.0.11 (Which doesn't come with > > the sqlite3 driver..this is available with the development version). > > Sqlite 3 uses different headers and some different calls tp sqlite > > (2.?). > > > > Try taking the driver down from http://www.gambasforge.net/code.php?id=29. > > > > Regards > > > > nigel > > > > > Message Received: Oct 28 2005, 08:43 PM > > > From: "Adi Spivak" > > > To: gambas-user at lists.sourceforge.net > > > Cc: > > > Subject: Re: [Gambas-user] help with gambas in sqlite releted compile > error > > > > > > nigel at ...38... wrote: > > > > > > >And if your version is sqlite 3 then it should be the sqlite3 driver > that is used. > > > > > > > >Nigel > > > > > > > > > > > > > > > > > > > please explain your remark. i did not understand. how do i use the > > > sqlite3 driver? > > > Thanks > > > Adi Spivak > > > > > > > [ smime.p7s (3.7 Kb) ] > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by the JBoss Inc. > > Get Certified Today * Register for a JBoss Training Course > > Free Certification Exam for All Training Attendees Through End of > > 2005 Visit http://www.jboss.com/services/certification for more information > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > -- > Oplag Internet Solutions. ( http://www.oplag.net ) > > > > ------------------------------------------------------- > This SF.Net email is sponsored by the JBoss Inc. > Get Certified Today * Register for a JBoss Training Course > Free Certification Exam for All Training Attendees Through End of 2005 > Visit http://www.jboss.com/services/certification for more information > _______________________________________________ > 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: /home/ngerrard/gambas-1.0.11/src/lib/db/sqlite3/mainfor1.0.11.gz Type: application/x-gzip Size: 13981 bytes Desc: not available URL: From nando_f at ...951... Tue Nov 1 19:51:35 2005 From: nando_f at ...951... (nando) Date: Tue, 1 Nov 2005 13:51:35 -0500 Subject: [Gambas-user] TableView Problem In-Reply-To: <20051031224520.M8573@...951...> References: <20051031224520.M8573@...951...> Message-ID: <20051101183555.M4875@...951...> Benoit, After much investigation, I have it appears that TableView is not implemented correctly. The example referred to originally (below) works, but is not the correct way it is supposed to work. The data in the table is 'deleted' every event '_data' and an array is used to populate. A control like this is supposed to hold data 'unchanged' within the cells - even when scrolled or clicked. 5000 events while scrolling to repopulate is unreal and is unnecessary. The control/class is supposed to maintain the data - even when scrolling. It is wrong. The number of rows/columns at design time cannot be specified. I cannot code something like... TableView1[4,4].Text = "This is 4,4" If TableView is the QT 'Table View' then it is incomplete Please help me understand this problem. -Fernando ---------- Original Message ----------- From: "nando" To: "Benoit" Sent: Mon, 31 Oct 2005 17:49:31 -0500 Subject: [Gambas-user] TableView Question > I looked at the 'HOW TO PUT VALUES IN A TABLEVIEW WIDGET' > located at 'www.gambasforge.net/code.php?id=31#notes' > > Can someone please inform me as to what makes > SUB TableView1_Data event fire? > > It is not evident to me. > > I single stepped through it - No code invokes it > so it must be an event. > > -Fernando > > ------------------------------------------------------- > This SF.Net email is sponsored by the JBoss Inc. > Get Certified Today * Register for a JBoss Training Course > Free Certification Exam for All Training Attendees Through End of > 2005 Visit http://www.jboss.com/services/certification for more information > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From na2492 at ...9... Tue Nov 1 20:47:00 2005 From: na2492 at ...9... (Charlie Reinl) Date: Tue, 1 Nov 2005 20:47:00 00100 Subject: [Gambas-user] TableView Problem Message-ID: <4367c634.3ec4.0@...9...> Salut, here an example, which works on gambas1, never tested on gambas2. Try it, it doesn't work with a Database, but you can see how the columns are filled. Amicalment Charlie >Benoit, > >After much investigation, I have it appears that >TableView is not implemented correctly. >The example referred to originally (below) works, but >is not the correct way it is supposed to work. >The data in the table is 'deleted' every event '_data' >and an array is used to populate. >A control like this is supposed to hold data 'unchanged' >within the cells - even when scrolled or clicked. >5000 events while scrolling to repopulate is unreal and is unnecessary. >The control/class is supposed to maintain the data - even when scrolling. >It is wrong. >The number of rows/columns at design time cannot be specified. >I cannot code something like... >TableView1[4,4].Text = "This is 4,4" >If TableView is the QT 'Table View' then it is incomplete > >Please help me understand this problem. >-Fernando > > >---------- Original Message ----------- >From: "nando" >To: "Benoit" >Sent: Mon, 31 Oct 2005 17:49:31 -0500 >Subject: [Gambas-user] TableView Question > >> I looked at the 'HOW TO PUT VALUES IN A TABLEVIEW WIDGET' >> located at 'www.gambasforge.net/code.php?id=31#notes' >> >> Can someone please inform me as to what makes >> SUB TableView1_Data event fire? >> >> It is not evident to me. >> >> I single stepped through it - No code invokes it >> so it must be an event. >> >> -Fernando >> >> ------------------------------------------------------- >> This SF.Net email is sponsored by the JBoss Inc. >> Get Certified Today * Register for a JBoss Training Course >> Free Certification Exam for All Training Attendees Through End of >> 2005 Visit http://www.jboss.com/services/certification for more information >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >------- End of Original Message ------- > > > >------------------------------------------------------- >SF.Net email is sponsored by: >Tame your development challenges with Apache's Geronimo App Server. Download >it for free - -and be entered to win a 42" plasma tv or your very own >Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php >_______________________________________________ >Gambas-user mailing list >Gambas-user at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/gambas-user > > * Gesendet mit / Sent by: FEN-Webmail * http://www.fen-net.de * -------------- next part -------------- A non-text attachment was scrubbed... Name: XTableView-0.0.12.tar.gz Type: application/x-tgz Size: 30178 bytes Desc: not available URL: From ronoaldo at ...626... Tue Nov 1 22:01:40 2005 From: ronoaldo at ...626... (=?ISO-8859-1?Q?Ronoldo_Jos=E9_de_lana_pereira?=) Date: Tue, 1 Nov 2005 19:01:40 -0200 Subject: [Gambas-user] Kde style change on root Message-ID: Hi all, My name is Ronoaldo, from Brazil. I'm a Debian user, and I have installed the stable version 1.0.9 of Gambas on my system. I'm making a software that needs root privileges, and when I use kdesu or when I'm logged in as root, the KDE style of the gambas widgets is changed for a different style of the other widgets. But it's only with gambas ide/applications. Is there a problem? And if it's, have somebody a tip? And if it's not, how can I use the same style of the rest of the system? Thanks for the attention! -------------- next part -------------- An HTML attachment was scrubbed... URL: From jose.santos at ...1197... Wed Nov 2 01:48:27 2005 From: jose.santos at ...1197... (jose.santos at ...1197...) Date: Wed, 2 Nov 2005 01:48:27 +0100 Subject: [Gambas-user] TableView Problem In-Reply-To: <20051101183555.M4875@...951...> References: <20051031224520.M8573@...951...> <20051101183555.M4875@...951...> Message-ID: <20051102014827.3w3j3lgd5hk4ckk8@...1198...> Hi Nando. I'm not very sure about your problem. I'm working in a database application and I've got TableViews that show perfectly more than 5.000 rows. This is the code of the _Data event. ' EVENTS. ' ================================================ PUBLIC SUB Table_Data(Row AS Integer, Column AS Integer) DIM objColumn AS DYGridColumn objColumn = m_columns[Column] SELECT CASE m_bytMode CASE DYGridModesEnum.DYGridModeBound m_rsData.MoveTo(Row) m_table.Data.Text = m_rsData[objColumn.DataField] CASE DYGridModesEnum.DYGridModeAddItem m_table.Data.Text = Split(m_itemList[Row], m_strFieldSeparator)[Column] END SELECT ' In Boolean Columns, An Icon is shown instead text values. IF objColumn.DataType = DYDataTypes.DYBoolean THEN IF CBool(CInt(m_table.Data.Text)) THEN m_table.Data.Picture = UtilLib.IconOK() ELSE m_table.Data.Picture = UtilLib.IconCancel() ENDIF m_table.Data.Text = "" ENDIF END It can be a bit confussing but it's very simple: - FIRST SELECT: There are two working states: bounded to a database or AddItem mode (an Array suplies the info to the TableView). - Aditionally, For boolean values of the database, the TableView only show icons instead of -1 or 0. That's all. Hope you find it useful. Regards. Quoting nando : > Benoit, > > After much investigation, I have it appears that > TableView is not implemented correctly. > The example referred to originally (below) works, but > is not the correct way it is supposed to work. > The data in the table is 'deleted' every event '_data' > and an array is used to populate. > A control like this is supposed to hold data 'unchanged' > within the cells - even when scrolled or clicked. > 5000 events while scrolling to repopulate is unreal and is unnecessary. > The control/class is supposed to maintain the data - even when scrolling. > It is wrong. > The number of rows/columns at design time cannot be specified. > I cannot code something like... > TableView1[4,4].Text = "This is 4,4" > If TableView is the QT 'Table View' then it is incomplete > > Please help me understand this problem. > -Fernando > > > ---------- Original Message ----------- > From: "nando" > To: "Benoit" > Sent: Mon, 31 Oct 2005 17:49:31 -0500 > Subject: [Gambas-user] TableView Question > >> I looked at the 'HOW TO PUT VALUES IN A TABLEVIEW WIDGET' >> located at 'www.gambasforge.net/code.php?id=31#notes' >> >> Can someone please inform me as to what makes >> SUB TableView1_Data event fire? >> >> It is not evident to me. >> >> I single stepped through it - No code invokes it >> so it must be an event. >> >> -Fernando >> >> ------------------------------------------------------- >> This SF.Net email is sponsored by the JBoss Inc. >> Get Certified Today * Register for a JBoss Training Course >> Free Certification Exam for All Training Attendees Through End of >> 2005 Visit http://www.jboss.com/services/certification for more information >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > ------- End of Original Message ------- > > > > ------------------------------------------------------- > SF.Net email is sponsored by: > Tame your development challenges with Apache's Geronimo App Server. Download > it for free - -and be entered to win a 42" plasma tv or your very own > Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. From dcamposf at ...626... Wed Nov 2 01:30:08 2005 From: dcamposf at ...626... (Daniel Campos) Date: Wed, 2 Nov 2005 01:30:08 +0100 Subject: [Gambas-user] Gambas book Message-ID: <7259b5ae0511011630s751c9e34u@...627...> Hi: The first Gambas book, in Spanish, is available here http://www.librosdelinux.com . It is a free book, so you're allowed to copy, modify and redistribute it (except for economic intentions). For those interested in that book: Book: "Gambas: programaci?n visual con Software Libre" Authors: Daniel Campos Fern?ndez Jos? Luis Redrejo (prologue) Beno?t Minisini Editors: EDITLIN EDITORIAL Avda. Portugal 85 - Local 28011 Madrid (Spain) Tel: 91 577 03 55 Fax: 91 577 06 18 http://www.librosdelinux.com mailto: info at ...1199... Regards, Daniel Campos From garretthylltun at ...626... Wed Nov 2 03:39:23 2005 From: garretthylltun at ...626... (Garrett R. Hylltun) Date: Tue, 1 Nov 2005 18:39:23 -0800 Subject: [Gambas-user] How to Unsubscribe? In-Reply-To: <7259b5ae0511011630s751c9e34u@...627...> References: <7259b5ae0511011630s751c9e34u@...627...> Message-ID: <20051101183923.d84d90e4.garretthylltun@...626...> Well don't I feel stupid now... I lost the original email sent to me when I first subscribed and I went to the page at sourceforge, but it doesn't tell me how to unsubscribe. Could someone help out an old fart here and tell me how to unsubscribe from the mailing list? Thanks in advance, -Garrett From heinz.sporn at ...1017... Wed Nov 2 08:19:58 2005 From: heinz.sporn at ...1017... (Heinz Sporn) Date: Wed, 02 Nov 2005 08:19:58 +0100 Subject: [Gambas-user] How to Unsubscribe? In-Reply-To: <20051101183923.d84d90e4.garretthylltun@...626...> References: <7259b5ae0511011630s751c9e34u@...627...> <20051101183923.d84d90e4.garretthylltun@...626...> Message-ID: <1130915998.10177.1.camel@...1111...> Am Dienstag, den 01.11.2005, 18:39 -0800 schrieb Garrett R. Hylltun: > Well don't I feel stupid now... I lost the original email sent to me when I first subscribed and I went to the page at sourceforge, but it doesn't tell me how to unsubscribe. > > Could someone help out an old fart here and tell me how to unsubscribe from the mailing list? > > > Thanks in advance, > -Garrett > > > ------------------------------------------------------- > SF.Net email is sponsored by: > Tame your development challenges with Apache's Geronimo App Server. Download > it for free - -and be entered to win a 42" plasma tv or your very own > Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user This last line in your email is the key to your problem. Open that link and see for yourself ;-) -- Mit freundlichen Gr??en Heinz Sporn SPORN it-freelancing Mobile: ++43 (0)699 / 127 827 07 Email: heinz.sporn at ...1017... heinz.sporn at ...1018... Website: http://www.sporn-it.com Snail: Steyrer Str. 20 A-4540 Bad Hall Austria / Europe From mikaelu at ...1188... Wed Nov 2 08:27:51 2005 From: mikaelu at ...1188... (Mikael Ulfenborg) Date: Wed, 02 Nov 2005 08:27:51 +0100 Subject: [Gambas-user] Re: Crossword program and Ctrl-key In-Reply-To: <20051101165558.2D67F184F29@...763...> References: <20051101165558.2D67F184F29@...763...> Message-ID: <43686A77.5090805@...1188...> On Tuesday 25 October 2005 17:09, Mikael Ulfenborg wrote: >> Hello all, >> >> First an announcement: My first Gambas project is live, gmbcrossword a >> crossword construction >> program for swedish type crosswords. You can read more at >> http://gmbcrossword.sourceforge.net/ >> >> Then a question: >> Is it possible to make the Ctrl-keys up/down states work under gambas 1.03 >> ? I've tried with a global variable and key events but the event always >> reports Ctrl-key down until >> I press another key on the keyboard (I want to use Ctrl-mouse click). > >What do you want to do exactly? > >If you want to know if one of the CTRL key were pressed during a keyboard >event, then you can read the Key.Control property. I want to enable "Ctrl-clicking" with the mouse. It is as follows: 1) I have a key down handler reading the state of the Ctrl-key and storing it in a global variable 2) I read this variable in the mouse-down handler The problem is that the variable always reports Ctrl down if the Ctrl-key was pressed AND/OR released if I not press another key between the readings or press another key TOGETHER with Ctrl. If I put a simple debug print in the key handler it reports the key down for both the "press" and "release" events of the ctrl key. Perhaps this is simply a Ubuntu Breezy problem? While I'm at it: How do I make/include a nice help file in my applications? Btw, I must say that Gambas has really taken me by storm! I've used VB and Delphi before (in my dark Windows times, 10 years ago). It is unbelieveable easy to make an app. It took me 2-3 days to learn Gambas and have the first working version (with printing support!) of gmbCrossword... From fidojones at ...805... Wed Nov 2 11:15:21 2005 From: fidojones at ...805... (Lorenzo Tejera) Date: Wed, 2 Nov 2005 11:15:21 +0100 (CET) Subject: [Gambas-user] Gambas book In-Reply-To: <7259b5ae0511011630s751c9e34u@...627...> References: <7259b5ae0511011630s751c9e34u@...627...> Message-ID: <13294.83.41.217.106.1130926521.squirrel@...1174...> free book? it's for download ? (a donde se baja. I can't see the ENLACE)? fido On Mie, Noviembre 2, 2005 01:30, Daniel Campos wrote: > Hi: > > > The first Gambas book, in Spanish, is available here > http://www.librosdelinux.com . It is a free book, so you're allowed to > copy, modify and redistribute it (except for economic intentions). > > For those interested in that book: > > > Book: "Gambas: programaci?n visual con Software Libre" > > > Authors: > > > Daniel Campos Fern?ndez > Jos? Luis Redrejo > (prologue) Beno?t Minisini > > > Editors: > > > EDITLIN EDITORIAL > Avda. Portugal 85 - Local > 28011 Madrid (Spain) > > > Tel: 91 577 03 55 > Fax: 91 577 06 18 > > > http://www.librosdelinux.com > mailto: info at ...1199... > > > > Regards, > > > Daniel Campos > > > > ------------------------------------------------------- > SF.Net email is sponsored by: > Tame your development challenges with Apache's Geronimo App Server. > Download > it for free - -and be entered to win a 42" plasma tv or your very own > Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From sakya_tg at ...325... Wed Nov 2 12:35:28 2005 From: sakya_tg at ...325... (sakya) Date: Wed, 02 Nov 2005 11:35:28 +0000 Subject: [Gambas-user] Stat bug? In-Reply-To: <200510282045.08537.gambas@...1...> References: <4360D0C3.3060302@...325...> <4360D237.70700@...325...> <200510282045.08537.gambas@...1...> Message-ID: <4368A480.7060901@...325...> An HTML attachment was scrubbed... URL: From jose.santos at ...429... Wed Nov 2 12:30:04 2005 From: jose.santos at ...429... (Dani Santos) Date: Wed, 02 Nov 2005 12:30:04 +0100 Subject: [Gambas-user] =?ISO-8859-1?Q?=BFBug?= In Gambas 1.9.20 with static long constants? Message-ID: <1130931004.15189.5.camel@...999...> Hi! I've got a Static Class Module in my App where I define constants related to my Database: Default values, Size of VarChar fields, etc. The name of the class is CProcBBDD. Today, I've add this constants to the class: ' Default users. STATIC PUBLIC CONST DefaultAdminUserId AS Long = 1 STATIC PUBLIC CONST DefaultSingleUserId AS Long = 2 When I do something like: Dim lngIdUser lngIdUser = CProcBBDD.DefaultSingleUserId Gambas says to me (translating from spanish): The program stopped unexpectedly sending the signal #11 Please, report a bug... I add a simple project to reproduce the bug. NOTE: I'm currently using Gambas 1.9.20 -- Dani Santos -------------- next part -------------- A non-text attachment was scrubbed... Name: pruebas.tar.gz Type: application/x-compressed-tar Size: 8188 bytes Desc: not available URL: From dcamposf at ...626... Wed Nov 2 13:06:20 2005 From: dcamposf at ...626... (Daniel Campos) Date: Wed, 2 Nov 2005 13:06:20 +0100 Subject: [Gambas-user] Gambas book In-Reply-To: <13294.83.41.217.106.1130926521.squirrel@...1174...> References: <7259b5ae0511011630s751c9e34u@...627...> <13294.83.41.217.106.1130926521.squirrel@...1174...> Message-ID: <7259b5ae0511020406l13bc30dfv@...627...> Currently there are not PDFs or other formats available :-( 2005/11/2, Lorenzo Tejera : > free book? it's for download ? (a donde se baja. I can't see the ENLACE)? > > > fido > On Mie, Noviembre 2, 2005 01:30, Daniel Campos wrote: > > Hi: > > > > > > The first Gambas book, in Spanish, is available here > > http://www.librosdelinux.com . It is a free book, so you're allowed to > > copy, modify and redistribute it (except for economic intentions). > > > > For those interested in that book: > > > > > > Book: "Gambas: programaci?n visual con Software Libre" > > > > > > Authors: > > > > > > Daniel Campos Fern?ndez > > Jos? Luis Redrejo > > (prologue) Beno?t Minisini > > > > > > Editors: > > > > > > EDITLIN EDITORIAL > > Avda. Portugal 85 - Local > > 28011 Madrid (Spain) > > > > > > Tel: 91 577 03 55 > > Fax: 91 577 06 18 > > > > > > http://www.librosdelinux.com > > mailto: info at ...1199... > > > > > > > > Regards, > > > > > > Daniel Campos > > > > > > > > ------------------------------------------------------- > > SF.Net email is sponsored by: > > Tame your development challenges with Apache's Geronimo App Server. > > Download > > it for free - -and be entered to win a 42" plasma tv or your very own > > Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > ------------------------------------------------------- > SF.Net email is sponsored by: > Tame your development challenges with Apache's Geronimo App Server. Download > it for free - -and be entered to win a 42" plasma tv or your very own > Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jose.santos at ...429... Wed Nov 2 14:11:07 2005 From: jose.santos at ...429... (Dani Santos) Date: Wed, 02 Nov 2005 14:11:07 +0100 Subject: [Gambas-user] Object.Class with forms Message-ID: <1130937067.15189.11.camel@...999...> Hi again! I've got to test wether a control is or not a form. I've made it work perfectly with TextBoxes, Labels, etc. with code like this: SELECT CASE Object.Class(pControl) CASE "Label" labelTmp = pControl labelTmp.BackColor = COLOR_TITULOS labelTmp.ForeColor = COLOR_TEXTOTITULOS CASE "Button" buttonTmp = pControl (...) But If I try to do it with forms, i.e. something like: ' Getting the parent form and attaching to the object for resizing ' purposes. m_intParentWidth = m_table.Parent.Width parentForm = m_table.Parent DO WHILE parentForm <> NULL IF Object.Class(parentForm) = "Form" THEN Object.Attach(parentForm, ME, "ParentForm") BREAK ELSE parentForm = parentForm.Parent ENDIF LOOP ObjectClass does not return "Form" for a Form object but "FrmMain", "FrmSelectTheme", etc. i.e., the name of the form. ?Any idea about how knowing if a given control is a Form? Thanks. -- Dani Santos From dcamposf at ...626... Wed Nov 2 15:05:30 2005 From: dcamposf at ...626... (Daniel Campos) Date: Wed, 2 Nov 2005 15:05:30 +0100 Subject: [Gambas-user] Object.Class with forms In-Reply-To: <1130937067.15189.11.camel@...999...> References: <1130937067.15189.11.camel@...999...> Message-ID: <7259b5ae0511020605y3f773cc2x@...627...> IF Object.Is ( pControl, "Form")=TRUE THEN ... Should work Regards, D. Campos 2005/11/2, Dani Santos : > Hi again! > > I've got to test wether a control is or not a form. > > I've made it work perfectly with TextBoxes, Labels, etc. with code like > this: > > SELECT CASE Object.Class(pControl) > > CASE "Label" > labelTmp = pControl > labelTmp.BackColor = COLOR_TITULOS > labelTmp.ForeColor = COLOR_TEXTOTITULOS > CASE "Button" > buttonTmp = pControl > (...) > > But If I try to do it with forms, i.e. something like: > > ' Getting the parent form and attaching to the object for resizing > ' purposes. > m_intParentWidth = m_table.Parent.Width > parentForm = m_table.Parent > DO WHILE parentForm <> NULL > > IF Object.Class(parentForm) = "Form" THEN > Object.Attach(parentForm, ME, "ParentForm") > BREAK > ELSE > parentForm = parentForm.Parent > ENDIF > LOOP > > ObjectClass does not return "Form" for a Form object but "FrmMain", > "FrmSelectTheme", etc. i.e., the name of the form. > > ?Any idea about how knowing if a given control is a Form? > > Thanks. > > -- > Dani Santos > > > > ------------------------------------------------------- > SF.Net email is sponsored by: > Tame your development challenges with Apache's Geronimo App Server. Download > it for free - -and be entered to win a 42" plasma tv or your very own > Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Wed Nov 2 15:14:29 2005 From: gambas at ...1... (Benoit Minisini) Date: Wed, 2 Nov 2005 15:14:29 +0100 Subject: [Gambas-user] =?iso-8859-15?q?=BFBug_In_Gambas_1=2E9=2E20_with_static_long?= constants? In-Reply-To: <1130931004.15189.5.camel@...999...> References: <1130931004.15189.5.camel@...999...> Message-ID: <200511021514.30119.gambas@...1...> On Wednesday 02 November 2005 12:30, Dani Santos wrote: > Hi! > > I've got a Static Class Module in my App where I define constants > related to my Database: Default values, Size of VarChar fields, etc. > > The name of the class is CProcBBDD. > > Today, I've add this constants to the class: > > ' Default users. > STATIC PUBLIC CONST DefaultAdminUserId AS Long = 1 > STATIC PUBLIC CONST DefaultSingleUserId AS Long = 2 > > When I do something like: > Dim lngIdUser '... AS Long' I imagine... > > lngIdUser = CProcBBDD.DefaultSingleUserId > > Gambas says to me (translating from spanish): > The program stopped unexpectedly > sending the signal #11 > > Please, report a bug... > > I add a simple project to reproduce the bug. > > NOTE: I'm currently using Gambas 1.9.20 It seems that there is a bug in constants declared as Long. I will look at it... -- Benoit Minisini From gambas at ...1... Wed Nov 2 15:16:05 2005 From: gambas at ...1... (Benoit Minisini) Date: Wed, 2 Nov 2005 15:16:05 +0100 Subject: [Gambas-user] Object.Class with forms In-Reply-To: <1130937067.15189.11.camel@...999...> References: <1130937067.15189.11.camel@...999...> Message-ID: <200511021516.05619.gambas@...1...> On Wednesday 02 November 2005 14:11, Dani Santos wrote: > Hi again! > > I've got to test wether a control is or not a form. > > I've made it work perfectly with TextBoxes, Labels, etc. with code like > this: > > SELECT CASE Object.Class(pControl) > > CASE "Label" > labelTmp = pControl > labelTmp.BackColor = COLOR_TITULOS > labelTmp.ForeColor = COLOR_TEXTOTITULOS > CASE "Button" > buttonTmp = pControl > (...) > > But If I try to do it with forms, i.e. something like: > > ' Getting the parent form and attaching to the object for resizing > ' purposes. > m_intParentWidth = m_table.Parent.Width > parentForm = m_table.Parent > DO WHILE parentForm <> NULL > > IF Object.Class(parentForm) = "Form" THEN > Object.Attach(parentForm, ME, "ParentForm") > BREAK > ELSE > parentForm = parentForm.Parent > ENDIF > LOOP > > ObjectClass does not return "Form" for a Form object but "FrmMain", > "FrmSelectTheme", etc. i.e., the name of the form. > > ?Any idea about how knowing if a given control is a Form? > > Thanks. Since Gambas 1.9.20, you have Object.Is(...) that allows you to test if an object is a specific class or one of its children. Before this version, you can simply do that: DIM hForm AS Form TRY hForm = myObject IF ERROR THEN PRINT "This is not a form" ELSE PRINT "This is a form" ENDIF Regards, -- Benoit Minisini From garretthylltun at ...626... Wed Nov 2 16:36:11 2005 From: garretthylltun at ...626... (Garrett R. Hylltun) Date: Wed, 2 Nov 2005 07:36:11 -0800 Subject: [Gambas-user] How to Unsubscribe? In-Reply-To: <1130915998.10177.1.camel@...1111...> References: <7259b5ae0511011630s751c9e34u@...627...> <20051101183923.d84d90e4.garretthylltun@...626...> <1130915998.10177.1.camel@...1111...> Message-ID: <20051102073611.d485d425.garretthylltun@...626...> On Wed, 02 Nov 2005 08:19:58 +0100 Heinz Sporn wrote: > Am Dienstag, den 01.11.2005, 18:39 -0800 schrieb Garrett R. Hylltun: > > Well don't I feel stupid now... I lost the original email sent to me when Never mind! :-( Doh! I should have scrolled down further. ;-) Sorry, and thanks for the help everyone. :-) -Garrett From garretthylltun at ...626... Wed Nov 2 16:34:01 2005 From: garretthylltun at ...626... (Garrett R. Hylltun) Date: Wed, 2 Nov 2005 07:34:01 -0800 Subject: [Gambas-user] How to Unsubscribe? In-Reply-To: <1130915998.10177.1.camel@...1111...> References: <7259b5ae0511011630s751c9e34u@...627...> <20051101183923.d84d90e4.garretthylltun@...626...> <1130915998.10177.1.camel@...1111...> Message-ID: <20051102073401.f19cb0de.garretthylltun@...626...> On Wed, 02 Nov 2005 08:19:58 +0100 Heinz Sporn wrote: > Am Dienstag, den 01.11.2005, 18:39 -0800 schrieb Garrett R. Hylltun: > > Well don't I feel stupid now... I lost the original email sent to me when I [snip] > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > This last line in your email is the key to your problem. Open that link > and see for yourself ;-) I did go there and just now also and it doesn't tell me how to unsubscribe. It says "You can subscribe to the list, or change your existing subscription, in the sections below." but nothing about how to unsubscribe. Do I just enter my email address and pass and hit the subscribe button to unsubscribe? Thanks, -Garrett From na2492 at ...9... Wed Nov 2 17:51:33 2005 From: na2492 at ...9... (Charlie Reinl) Date: Wed, 2 Nov 2005 17:51:33 00100 Subject: [Gambas-user] How to Unsubscribe? Message-ID: <4368ee95.36fb.0@...9...> >On Wed, 02 Nov 2005 08:19:58 +0100 >Heinz Sporn wrote: > >> Am Dienstag, den 01.11.2005, 18:39 -0800 schrieb Garrett R. Hylltun: >> > Well don't I feel stupid now... I lost the original email sent to me when I >[snip] >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> This last line in your email is the key to your problem. Open that link >> and see for yourself ;-) > >I did go there and just now also and it doesn't tell me how to unsubscribe. It says "You can subscribe to the list, or change your existing subscription, in the sections below." but nothing about how to unsubscribe. Do I just enter my email address and pass and hit the subscribe button to unsubscribe? > >Thanks, >-Garrett > Salut, fill your email left to Button 'Edit options' then press this button now you see a button 'unsubscribe' enter you pw. and press this button. Amicalment Charlie * Gesendet mit / Sent by: FEN-Webmail * http://www.fen-net.de * From nando_f at ...951... Wed Nov 2 17:57:23 2005 From: nando_f at ...951... (nando) Date: Wed, 2 Nov 2005 11:57:23 -0500 Subject: [Gambas-user] TableView Problem In-Reply-To: <20051102014827.3w3j3lgd5hk4ckk8@...1198...> References: <20051031224520.M8573@...951...> <20051101183555.M4875@...951...> <20051102014827.3w3j3lgd5hk4ckk8@...1198...> Message-ID: <20051102162636.M1486@...951...> Thank you to the all who gave examples for TableView. TableView is still implemented incorrectly. TableView, *unlike* controls in VB (like Flexgrid), requires a 2D array of some data (integer,string,etc) to 'refresh' the TableView when it needs it. Hundreds of events fire wasting the CPU. TableView is supposed to be like that in Flexgrid and others. When data is placed in a cell, it is held static there until it is changed. It is not the responsibility of Program code to refresh it. It is the responsibility of the control to do that. Scrolling the Tableview (or clicking on it) isn't supposed to require _Data event to fire because the data is already in cells. Why does the data disappear when scrolled ? It's not supposed to. It doesn't make sense. Even the QT control works 'statically' TableView is implemented incorrectly. If one is to have a TableView with data from many tables in MySQL, this means that all scrolling and clicking REQUIRES the MySQL queries be performed repeatedly because the cells are 'erased' every scroll. If it is a complex page with a lot of scrolling, we are speaking of hundreds and thousands of queries. Or, if, instead, a 'shadow' array is kept, then hundreds and thousands of events are fired (_Data) just to repaint. This is not correct. But, perhaps, I am missing something. Please inform me of my mis-understanding and mis-quidance. -Fernando ---------- Original Message ----------- From: jose.santos at ...1197... To: "gambas-user at lists.sourceforge.net" , nando Sent: Wed, 2 Nov 2005 01:48:27 +0100 Subject: Re: [Gambas-user] TableView Problem > Hi Nando. I'm not very sure about your problem. > > I'm working in a database application and I've got TableViews that show > perfectly more than 5.000 rows. > > This is the code of the _Data event. > > ' EVENTS. > ' ================================================ > PUBLIC SUB Table_Data(Row AS Integer, Column AS Integer) > DIM objColumn AS DYGridColumn > > objColumn = m_columns[Column] > > SELECT CASE m_bytMode > CASE DYGridModesEnum.DYGridModeBound > m_rsData.MoveTo(Row) > m_table.Data.Text = m_rsData[objColumn.DataField] > CASE DYGridModesEnum.DYGridModeAddItem > m_table.Data.Text = Split(m_itemList[Row], m_strFieldSeparator)[Column] > END SELECT > > ' In Boolean Columns, An Icon is shown instead text values. > IF objColumn.DataType = DYDataTypes.DYBoolean THEN > IF CBool(CInt(m_table.Data.Text)) THEN > m_table.Data.Picture = UtilLib.IconOK() > ELSE > m_table.Data.Picture = UtilLib.IconCancel() > ENDIF > m_table.Data.Text = "" > ENDIF > END > > It can be a bit confussing but it's very simple: > - FIRST SELECT: There are two working states: bounded to a database > or AddItem mode (an Array suplies the info to the TableView). - > Aditionally, For boolean values of the database, the TableView only > show icons instead of -1 or 0. > > That's all. Hope you find it useful. > > Regards. > > Quoting nando : > > > Benoit, > > > > After much investigation, I have it appears that > > TableView is not implemented correctly. > > The example referred to originally (below) works, but > > is not the correct way it is supposed to work. > > The data in the table is 'deleted' every event '_data' > > and an array is used to populate. > > A control like this is supposed to hold data 'unchanged' > > within the cells - even when scrolled or clicked. > > 5000 events while scrolling to repopulate is unreal and is unnecessary. > > The control/class is supposed to maintain the data - even when scrolling. > > It is wrong. > > The number of rows/columns at design time cannot be specified. > > I cannot code something like... > > TableView1[4,4].Text = "This is 4,4" > > If TableView is the QT 'Table View' then it is incomplete > > > > Please help me understand this problem. > > -Fernando > > > > > > ---------- Original Message ----------- > > From: "nando" > > To: "Benoit" > > Sent: Mon, 31 Oct 2005 17:49:31 -0500 > > Subject: [Gambas-user] TableView Question > > > >> I looked at the 'HOW TO PUT VALUES IN A TABLEVIEW WIDGET' > >> located at 'www.gambasforge.net/code.php?id=31#notes' > >> > >> Can someone please inform me as to what makes > >> SUB TableView1_Data event fire? > >> > >> It is not evident to me. > >> > >> I single stepped through it - No code invokes it > >> so it must be an event. > >> > >> -Fernando > >> > >> ------------------------------------------------------- > >> This SF.Net email is sponsored by the JBoss Inc. > >> Get Certified Today * Register for a JBoss Training Course > >> Free Certification Exam for All Training Attendees Through End of > >> 2005 Visit http://www.jboss.com/services/certification for more information > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------- End of Original Message ------- > > > > > > > > ------------------------------------------------------- > > SF.Net email is sponsored by: > > Tame your development challenges with Apache's Geronimo App Server. Download > > it for free - -and be entered to win a 42" plasma tv or your very own > > Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ---------------------------------------------------------------- > This message was sent using IMP, the Internet Messaging Program. > > ------------------------------------------------------- > SF.Net email is sponsored by: > Tame your development challenges with Apache's Geronimo App Server. Download > it for free - -and be entered to win a 42" plasma tv or your very own > Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > _______________________________________________ > 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 Nov 2 18:14:36 2005 From: gambas at ...1... (Benoit Minisini) Date: Wed, 2 Nov 2005 18:14:36 +0100 Subject: [Gambas-user] TableView Problem In-Reply-To: <20051102162636.M1486@...951...> References: <20051031224520.M8573@...951...> <20051102014827.3w3j3lgd5hk4ckk8@...1198...> <20051102162636.M1486@...951...> Message-ID: <200511021814.36826.gambas@...1...> On Wednesday 02 November 2005 17:57, nando wrote: > Thank you to the all who gave examples for TableView. > > TableView is still implemented incorrectly. > > TableView, *unlike* controls in VB (like Flexgrid), requires > a 2D array of some data (integer,string,etc) to 'refresh' the > TableView when it needs it. Hundreds of events fire wasting the CPU. > TableView is supposed to be like that in Flexgrid and others. > When data is placed in a cell, it is held static there until it is > changed. It is not the responsibility of Program code to refresh it. > It is the responsibility of the control to do that. > Scrolling the Tableview (or clicking on it) isn't supposed to > require _Data event to fire because the data is already in cells. > > Why does the data disappear when scrolled ? > It's not supposed to. > It doesn't make sense. > Even the QT control works 'statically' > TableView is implemented incorrectly. > It is not "incorrect", it is just the way it is designed. > If one is to have a TableView with data from many tables in MySQL, > this means that all scrolling and clicking REQUIRES the MySQL > queries be performed repeatedly because the cells are 'erased' every > scroll. You don't. Once you have have done the query, you can keep it in memory and use it each time you have to handle the Data event. > If it is a complex page with a lot of scrolling, > we are speaking of hundreds and thousands of queries. > Or, if, instead, a 'shadow' array is kept, then hundreds and thousands > of events are fired (_Data) just to repaint. > > This is not correct. > > But, perhaps, I am missing something. > > Please inform me of my mis-understanding and mis-quidance. > > -Fernando > A good way to handle all these things would be having a "data source" model that allows any control to manage its data itself (like TreeView, ColumnView...), or to let the user provides the data on demand (like TableView). Both methods are useful. There is no one "correct" method, and another "not correct". But this "data source" model have to be done! Regards, -- Benoit Minisini From nando_f at ...951... Wed Nov 2 18:42:20 2005 From: nando_f at ...951... (nando) Date: Wed, 2 Nov 2005 12:42:20 -0500 Subject: [Gambas-user] TableView Problem In-Reply-To: <200511021814.36826.gambas@...1...> References: <20051031224520.M8573@...951...> <20051102014827.3w3j3lgd5hk4ckk8@...1198...> <20051102162636.M1486@...951...> <200511021814.36826.gambas@...1...> Message-ID: <20051102174135.M99197@...951...> Benoit, I appreciate the reply. Thank you. ---------- Original Message ----------- From: Benoit Minisini To: gambas-user at lists.sourceforge.net Sent: Wed, 2 Nov 2005 18:14:36 +0100 Subject: Re: [Gambas-user] TableView Problem > On Wednesday 02 November 2005 17:57, nando wrote: > > Thank you to the all who gave examples for TableView. > > > > TableView is still implemented incorrectly. > > > > TableView, *unlike* controls in VB (like Flexgrid), requires > > a 2D array of some data (integer,string,etc) to 'refresh' the > > TableView when it needs it. Hundreds of events fire wasting the CPU. > > TableView is supposed to be like that in Flexgrid and others. > > When data is placed in a cell, it is held static there until it is > > changed. It is not the responsibility of Program code to refresh it. > > It is the responsibility of the control to do that. > > Scrolling the Tableview (or clicking on it) isn't supposed to > > require _Data event to fire because the data is already in cells. > > > > Why does the data disappear when scrolled ? > > It's not supposed to. > > It doesn't make sense. > > Even the QT control works 'statically' > > TableView is implemented incorrectly. > > > > It is not "incorrect", it is just the way it is designed. > > > If one is to have a TableView with data from many tables in MySQL, > > this means that all scrolling and clicking REQUIRES the MySQL > > queries be performed repeatedly because the cells are 'erased' every > > scroll. > > You don't. > > Once you have have done the query, you can keep it in memory and use > it each time you have to handle the Data event. > > > If it is a complex page with a lot of scrolling, > > we are speaking of hundreds and thousands of queries. > > Or, if, instead, a 'shadow' array is kept, then hundreds and thousands > > of events are fired (_Data) just to repaint. > > > > > This is not correct. > > > > But, perhaps, I am missing something. > > > > Please inform me of my mis-understanding and mis-quidance. > > > > -Fernando > > > > A good way to handle all these things would be having a "data > source" model that allows any control to manage its data itself > (like TreeView, ColumnView...), or to let the user provides the data > on demand (like TableView). > > Both methods are useful. There is no one "correct" method, and > another "not correct". > > But this "data source" model have to be done! > > Regards, > > -- > Benoit Minisini > > ------------------------------------------------------- > SF.Net email is sponsored by: > Tame your development challenges with Apache's Geronimo App Server. Download > it for free - -and be entered to win a 42" plasma tv or your very own > Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > _______________________________________________ > 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 Nov 2 19:05:26 2005 From: gambas at ...1... (Benoit Minisini) Date: Wed, 2 Nov 2005 19:05:26 +0100 Subject: [Gambas-user] =?iso-8859-15?q?=BFBug_In_Gambas_1=2E9=2E20_with_static_long?= constants? In-Reply-To: <1130931004.15189.5.camel@...999...> References: <1130931004.15189.5.camel@...999...> Message-ID: <200511021905.27215.gambas@...1...> On Wednesday 02 November 2005 12:30, Dani Santos wrote: > Hi! > > I've got a Static Class Module in my App where I define constants > related to my Database: Default values, Size of VarChar fields, etc. > > The name of the class is CProcBBDD. > > Today, I've add this constants to the class: > > ' Default users. > STATIC PUBLIC CONST DefaultAdminUserId AS Long = 1 > STATIC PUBLIC CONST DefaultSingleUserId AS Long = 2 > > When I do something like: > Dim lngIdUser > > lngIdUser = CProcBBDD.DefaultSingleUserId > > Gambas says to me (translating from spanish): > The program stopped unexpectedly > sending the signal #11 > > Please, report a bug... > > I add a simple project to reproduce the bug. > > NOTE: I'm currently using Gambas 1.9.20 OK. I fixed it... Note that: * Byte constants are equivalent to Short or Integer constants. * You don't have to use Long constants if your values are just 1 or 2. Regards, -- Benoit Minisini From C.Bahn at ...1202... Wed Nov 2 20:09:36 2005 From: C.Bahn at ...1202... (Bahn,C) Date: Wed, 2 Nov 2005 19:09:36 -0000 Subject: [Gambas-user] problems with Forms Message-ID: <015F90DED01C7943B1BE83571497B32B267A51@...1203...> Hi, I recently installed GAMBAS on my laptop (Fedora Core 4, Kernel 2.11.13), but can?t open forms in my projects due to following error message: Component missing: FForm.CreateControl.833. I installed GAMBAS with yum, so there must be all components installed (as I thought). Any ideas? Kind regards, Christopher From jose.santos at ...429... Thu Nov 3 02:16:10 2005 From: jose.santos at ...429... (jose.santos at ...429...) Date: Thu, 3 Nov 2005 02:16:10 +0100 Subject: [Gambas-user] TableView Problem In-Reply-To: <20051102162636.M1486@...951...> References: <20051031224520.M8573@...951...> <20051101183555.M4875@...951...> <20051102014827.3w3j3lgd5hk4ckk8@...1198...> <20051102162636.M1486@...951...> Message-ID: <20051103021610.rvkgwpt0pizowgkw@...1198...> Hi! I don't agree with somethings you tell but... a sample code is better than one thousand words ;) I hope you'll find useful this piece of code of something I'm working at. I used to work with Sheridan's DataWidget control under VB and I'm trying to make a class that covers a TableView control and give me some of the funcionality of that grid. To make the example work, you must make a mysql database. This is the code needed daniel at ...1204...:~$ mysqladmin -u root -p create testDB Enter password: daniel at ...1204...:~$ mysql -u root -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 7 to server version: 4.0.24_Debian-10-log Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql> GRANT ALL PRIVILEGES ON testDB.* TO testUser at ...40... IDENTIFIED BY 'testPasswd'; Query OK, 0 rows affected (0.00 sec) mysql> FLUSH PRIVILEGES; Query OK, 0 rows affected (0.00 sec) Then, just execute the code. It's quite a lot of work to be done yet but some of the funcionality of the class includes: - Two modes of operation: Bounded to a database and AddItem (using, internally, an String[]). - Only in Bounded mode: * Ordering when clicked in a header column. * Filtering when typing in the table. * It can filter over diferent columns and datatypes. * Other stuff... Quoting nando : > Thank you to the all who gave examples for TableView. > > TableView is still implemented incorrectly. > > TableView, *unlike* controls in VB (like Flexgrid), requires > a 2D array of some data (integer,string,etc) to 'refresh' the > TableView when it needs it. Hundreds of events fire wasting the CPU. > TableView is supposed to be like that in Flexgrid and others. > When data is placed in a cell, it is held static there until it is > changed. It is not the responsibility of Program code to refresh it. > It is the responsibility of the control to do that. > Scrolling the Tableview (or clicking on it) isn't supposed to > require _Data event to fire because the data is already in cells. > > Why does the data disappear when scrolled ? > It's not supposed to. > It doesn't make sense. > Even the QT control works 'statically' > TableView is implemented incorrectly. > > If one is to have a TableView with data from many tables in MySQL, > this means that all scrolling and clicking REQUIRES the MySQL > queries be performed repeatedly because the cells are 'erased' every > scroll. If it is a complex page with a lot of scrolling, > we are speaking of hundreds and thousands of queries. > Or, if, instead, a 'shadow' array is kept, then hundreds and thousands > of events are fired (_Data) just to repaint. > > This is not correct. > > But, perhaps, I am missing something. > > Please inform me of my mis-understanding and mis-quidance. > > -Fernando > > > > > > > > ---------- Original Message ----------- > From: jose.santos at ...1197... > To: "gambas-user at lists.sourceforge.net" , > nando > Sent: Wed, 2 Nov 2005 01:48:27 +0100 > Subject: Re: [Gambas-user] TableView Problem > >> Hi Nando. I'm not very sure about your problem. >> >> I'm working in a database application and I've got TableViews that show >> perfectly more than 5.000 rows. >> >> This is the code of the _Data event. >> >> ' EVENTS. >> ' ================================================ >> PUBLIC SUB Table_Data(Row AS Integer, Column AS Integer) >> DIM objColumn AS DYGridColumn >> >> objColumn = m_columns[Column] >> >> SELECT CASE m_bytMode >> CASE DYGridModesEnum.DYGridModeBound >> m_rsData.MoveTo(Row) >> m_table.Data.Text = m_rsData[objColumn.DataField] >> CASE DYGridModesEnum.DYGridModeAddItem >> m_table.Data.Text = Split(m_itemList[Row], m_strFieldSeparator)[Column] >> END SELECT >> >> ' In Boolean Columns, An Icon is shown instead text values. >> IF objColumn.DataType = DYDataTypes.DYBoolean THEN >> IF CBool(CInt(m_table.Data.Text)) THEN >> m_table.Data.Picture = UtilLib.IconOK() >> ELSE >> m_table.Data.Picture = UtilLib.IconCancel() >> ENDIF >> m_table.Data.Text = "" >> ENDIF >> END >> >> It can be a bit confussing but it's very simple: >> - FIRST SELECT: There are two working states: bounded to a database >> or AddItem mode (an Array suplies the info to the TableView). - >> Aditionally, For boolean values of the database, the TableView only >> show icons instead of -1 or 0. >> >> That's all. Hope you find it useful. >> >> Regards. >> >> Quoting nando : >> >> > Benoit, >> > >> > After much investigation, I have it appears that >> > TableView is not implemented correctly. >> > The example referred to originally (below) works, but >> > is not the correct way it is supposed to work. >> > The data in the table is 'deleted' every event '_data' >> > and an array is used to populate. >> > A control like this is supposed to hold data 'unchanged' >> > within the cells - even when scrolled or clicked. >> > 5000 events while scrolling to repopulate is unreal and is unnecessary. >> > The control/class is supposed to maintain the data - even when scrolling. >> > It is wrong. >> > The number of rows/columns at design time cannot be specified. >> > I cannot code something like... >> > TableView1[4,4].Text = "This is 4,4" >> > If TableView is the QT 'Table View' then it is incomplete >> > >> > Please help me understand this problem. >> > -Fernando >> > >> > >> > ---------- Original Message ----------- >> > From: "nando" >> > To: "Benoit" >> > Sent: Mon, 31 Oct 2005 17:49:31 -0500 >> > Subject: [Gambas-user] TableView Question >> > >> >> I looked at the 'HOW TO PUT VALUES IN A TABLEVIEW WIDGET' >> >> located at 'www.gambasforge.net/code.php?id=31#notes' >> >> >> >> Can someone please inform me as to what makes >> >> SUB TableView1_Data event fire? >> >> >> >> It is not evident to me. >> >> >> >> I single stepped through it - No code invokes it >> >> so it must be an event. >> >> >> >> -Fernando >> >> >> >> ------------------------------------------------------- >> >> This SF.Net email is sponsored by the JBoss Inc. >> >> Get Certified Today * Register for a JBoss Training Course >> >> Free Certification Exam for All Training Attendees Through End of >> >> 2005 Visit http://www.jboss.com/services/certification for more >> information >> >> _______________________________________________ >> >> Gambas-user mailing list >> >> Gambas-user at lists.sourceforge.net >> >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------- End of Original Message ------- >> > >> > >> > >> > ------------------------------------------------------- >> > SF.Net email is sponsored by: >> > Tame your development challenges with Apache's Geronimo App >> Server. Download >> > it for free - -and be entered to win a 42" plasma tv or your very own >> > Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > >> >> ---------------------------------------------------------------- >> This message was sent using IMP, the Internet Messaging Program. >> >> ------------------------------------------------------- >> SF.Net email is sponsored by: >> Tame your development challenges with Apache's Geronimo App Server. Download >> it for free - -and be entered to win a 42" plasma tv or your very own >> Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > ------- End of Original Message ------- > > > > ------------------------------------------------------- > SF.Net email is sponsored by: > Tame your development challenges with Apache's Geronimo App Server. Download > it for free - -and be entered to win a 42" plasma tv or your very own > Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. -------------- next part -------------- A non-text attachment was scrubbed... Name: DYGridTest.tar.gz Type: application/x-gzip Size: 45951 bytes Desc: not available URL: From eilert-sprachen at ...221... Thu Nov 3 12:24:40 2005 From: eilert-sprachen at ...221... (Eilert) Date: Thu, 03 Nov 2005 12:24:40 +0100 Subject: [Gambas-user] TableView Problem In-Reply-To: <20051102162636.M1486@...951...> References: <20051031224520.M8573@...951...> <20051101183555.M4875@...951...> <20051102014827.3w3j3lgd5hk4ckk8@...1198...> <20051102162636.M1486@...951...> Message-ID: <4369F378.5040209@...221...> Hi Fernando, nando schrieb: > Why does the data disappear when scrolled ? Does it? Not with my TableView :-) At least, I've never seen that. > If one is to have a TableView with data from many tables in MySQL, > this means that all scrolling and clicking REQUIRES the MySQL > queries be performed repeatedly because the cells are 'erased' every Anyway, a long time ago some professional programmers taught me to take care of having 3 layers of program code in my projects: saving/storing, process/warehouse, display. In this case it would mean you just have to follow consequently this rule for the TableView. "Never let a graphical control store/handle/process your data", so was their advice. Following it, saved me a lot of hassle through the years. Now I will look if the TableView really fires events all the time... :-) Rolf From francesco.difusco at ...69... Thu Nov 3 12:35:38 2005 From: francesco.difusco at ...69... (Alonzo Flinston) Date: Thu, 03 Nov 2005 12:35:38 +0100 Subject: [Gambas-user] Gambas book In-Reply-To: <7259b5ae0511011630s751c9e34u@...627...> References: <7259b5ae0511011630s751c9e34u@...627...> Message-ID: <1131017738.9677.1.camel@...1064...> If it is free, how to download it? I have subscribed to that site, but the only thing I can download is the index of the book. Francesco -- Teaching OnLine Corsi online di programmazione Php, Asp, C, C++, Visual Basic, Delphi Linux Shell Programming ------------------------------------ http://www.teachingonline.it From dcamposf at ...626... Thu Nov 3 16:26:23 2005 From: dcamposf at ...626... (Daniel Campos) Date: Thu, 3 Nov 2005 16:26:23 +0100 Subject: [Gambas-user] Gambas book In-Reply-To: <1131017738.9677.1.camel@...1064...> References: <7259b5ae0511011630s751c9e34u@...627...> <1131017738.9677.1.camel@...1064...> Message-ID: <7259b5ae0511030726r44514c97j@...627...> Hi: You're free to copy, redistribute, modify... but they didn't put the book on the internet, that is, free as in freedom, not as in beer :-) However, if anybody wants to put an electronic version in the internet, he's allowed to do it... Regards, Daniel Campos 2005/11/3, Alonzo Flinston : > If it is free, how to download it? I have subscribed to that site, but > the only thing I can download is the index of the book. > > Francesco > > -- > Teaching OnLine > Corsi online di programmazione > Php, Asp, C, C++, Visual Basic, Delphi > Linux Shell Programming > ------------------------------------ > http://www.teachingonline.it > > > > ------------------------------------------------------- > SF.Net email is sponsored by: > Tame your development challenges with Apache's Geronimo App Server. Download > it for free - -and be entered to win a 42" plasma tv or your very own > Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From nando_f at ...951... Thu Nov 3 20:13:04 2005 From: nando_f at ...951... (nando) Date: Thu, 3 Nov 2005 14:13:04 -0500 Subject: [Gambas-user] TableView Problem In-Reply-To: <4369F378.5040209@...221...> References: <20051031224520.M8573@...951...> <20051101183555.M4875@...951...> <20051102014827.3w3j3lgd5hk4ckk8@...1198...> <20051102162636.M1486@...951...> <4369F378.5040209@...221...> Message-ID: <20051103190746.M86573@...951...> To count the _DATA events, do (similar to) the following. Create a label called Label_Count with TEXT as 0 (zero) The first code line inside the _Data event for the TableView.. Label_Count.Text = Label_Count.Text + 1 ... now scroll and/or click on your TableView. Watch the count Also, notice how the Label is a static control. It's implementation is opposite to your comment. -Fernando ---------- Original Message ----------- From: Eilert To: gambas-user at lists.sourceforge.net Sent: Thu, 03 Nov 2005 12:24:40 +0100 Subject: Re: [Gambas-user] TableView Problem > Hi Fernando, > > nando schrieb: > > Why does the data disappear when scrolled ? > > Does it? Not with my TableView :-) At least, I've never seen that. > > > If one is to have a TableView with data from many tables in MySQL, > > this means that all scrolling and clicking REQUIRES the MySQL > > queries be performed repeatedly because the cells are 'erased' every > > Anyway, a long time ago some professional programmers taught me to > take care of having 3 layers of program code in my projects: > saving/storing, process/warehouse, display. > > In this case it would mean you just have to follow consequently this > rule for the TableView. "Never let a graphical control > store/handle/process your data", so was their advice. Following it, > saved me a lot of hassle through the years. > > Now I will look if the TableView really fires events all the time... > :-) > > Rolf > > ------------------------------------------------------- > SF.Net email is sponsored by: > Tame your development challenges with Apache's Geronimo App Server. Download > it for free - -and be entered to win a 42" plasma tv or your very own > Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From mikaelu at ...1188... Thu Nov 3 20:16:22 2005 From: mikaelu at ...1188... (Mikael Ulfenborg) Date: Thu, 03 Nov 2005 20:16:22 +0100 Subject: [Gambas-user] Re: Ctrl-key In-Reply-To: <20051103190746.M86573@...951...> References: <20051031224520.M8573@...951...> <20051101183555.M4875@...951...> <20051102014827.3w3j3lgd5hk4ckk8@...1198...> <20051102162636.M1486@...951...> <4369F378.5040209@...221...> <20051103190746.M86573@...951...> Message-ID: <436A6206.8000603@...1188...> Sorry about the stupid question on Ctrl-key. I've solved it with separated key press/release events. The question on how to make/include a help file is still valid though... From admin at ...1080... Thu Nov 3 21:21:22 2005 From: admin at ...1080... (Werner Staudacher) Date: Thu, 03 Nov 2005 20:21:22 +0000 Subject: [Gambas-user] Alien failed: Package.MakePackage.420 Message-ID: <436A7142.2040107@...1080...> Hi all Have installed Gambas 1.0.10 and everything works fine except creating Packages fails. My PC runs Linx version 2.6.11, gcc version 3.3.6 (Debian 1:3.3.6-5). Alien is Version 8.56, fakeroot is 1.5.4 and libc6 is 2.3.5-7. Has anybody a hint what to check for? Thanks From fidojones at ...805... Thu Nov 3 20:30:36 2005 From: fidojones at ...805... (Lorenzo Tejera) Date: Thu, 3 Nov 2005 20:30:36 +0100 (CET) Subject: [Gambas-user] Gambas book In-Reply-To: <7259b5ae0511030726r44514c97j@...627...> References: <7259b5ae0511011630s751c9e34u@...627...> <1131017738.9677.1.camel@...1064...> <7259b5ae0511030726r44514c97j@...627...> Message-ID: <16173.83.41.217.106.1131046236.squirrel@...1174...> Er.......if you wrote it, you have de document, only press de export button to pdf in openoffice. Come on guy :DDDDDD be good. Make me happy. It's a joke don't be afraid :D. fido On Jue, Noviembre 3, 2005 16:26, Daniel Campos wrote: > Hi: > > > You're free to copy, redistribute, modify... but they didn't put the > book on the internet, that is, free as in freedom, not as in beer :-) > However, if anybody wants to put an electronic version in the > internet, he's allowed to do it... > > Regards, > > > Daniel Campos > > > 2005/11/3, Alonzo Flinston : > >> If it is free, how to download it? I have subscribed to that site, but >> the only thing I can download is the index of the book. >> >> Francesco >> >> >> -- >> Teaching OnLine >> Corsi online di programmazione >> Php, Asp, C, C++, Visual Basic, Delphi >> Linux Shell Programming >> ------------------------------------ >> http://www.teachingonline.it >> >> >> >> >> ------------------------------------------------------- >> SF.Net email is sponsored by: >> Tame your development challenges with Apache's Geronimo App Server. >> Download >> it for free - -and be entered to win a 42" plasma tv or your very own >> Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> > > > ------------------------------------------------------- > SF.Net email is sponsored by: > Tame your development challenges with Apache's Geronimo App Server. > Download > it for free - -and be entered to win a 42" plasma tv or your very own > Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From kztyrvlq at ...966... Sat Nov 5 21:37:23 2005 From: kztyrvlq at ...966... (A Person) Date: Sat, 05 Nov 2005 17:07:23 -0330 Subject: [Gambas-user] Time Didn't Spring Forward in Example Message-ID: <436D1803.9020402@...966...> Saturday, 5 November 2005 Good Day All . . . I have another problem with time. I want to import the clock example into my PIM but the clock example (#2 in the list) runs exactly one hour earlier than my displayed system time. For example, it is now 16:55:38 Daylight Saving Time but the clock displays 15:55:38 (approximately). The problem is really compounded when I use the Analog Watch / Clock example (#1 in the list). It displays the true time. I think the clock example is missing something. Debugging someone else's app is not my strong point. Can someone on Daylight Saving Time and KDE 3.4.2 and Gambas 1.0.11 check it out and offer me a solution. Thanks. Paul From kztyrvlq at ...966... Sat Nov 5 21:52:58 2005 From: kztyrvlq at ...966... (A Person) Date: Sat, 05 Nov 2005 17:22:58 -0330 Subject: [Gambas-user] Further Info - Time Didn't Spring Forward in Example Message-ID: <436D1BAA.9050603@...966...> Saturday, 5 November 2005 Good Day All . . . Upon closer examination I find that the clock is not an hour earlier although it appears to be. The hour hand is not moving proportional to the minute hand. It appears that the hour hand has only 12 positions. It does not move between the hours. For example the clock displays 4:59:01 but one minute later it displays 6:00:01. It appears that extra code is needed on the hour hand line. Thanks. Paul From gambasfr at ...11... Sat Nov 5 22:08:42 2005 From: gambasfr at ...11... (Fabien Bodard) Date: Sat, 5 Nov 2005 22:08:42 +0100 Subject: [Gambas-user] Time Didn't Spring Forward in Example In-Reply-To: <436D1803.9020402@...966...> References: <436D1803.9020402@...966...> Message-ID: <200511052208.43134.gambasfr@...11...> Le Samedi 5 Novembre 2005 21:37, A Person a ?crit?: > Saturday, 5 November 2005 > > Good Day All . . . > > I have another problem with time. I want to import the clock example > into my PIM but the clock example (#2 in the list) runs exactly one hour > earlier than my displayed system time. > > For example, it is now 16:55:38 Daylight Saving Time but the clock > displays 15:55:38 (approximately). > > The problem is really compounded when I use the Analog Watch / Clock > example (#1 in the list). It displays the true time. > > I think the clock example is missing something. Debugging someone else's > app is not my strong point. > > Can someone on Daylight Saving Time and KDE 3.4.2 and Gambas 1.0.11 > check it out and offer me a solution. > > Thanks. > > Paul > Hi paul, I think it's not a bug but a feature ! :-D replace the line : tmpImg = picHour.Rotate(Hour(Now) * 360 / 12) by tmpImg = picHour.Rotate((Hour(Now) * 360 / 12) + (Minute(Now) * 360 / 60 / 12)) it set the hour relative to the minute... i think it correct your problem Regards, Fabien Bodard From framedownunder at ...626... Sat Nov 5 23:43:15 2005 From: framedownunder at ...626... (frame down under) Date: Sat, 5 Nov 2005 23:43:15 +0100 Subject: [Gambas-user] Handling Date Formatting in a Tableview Message-ID: <82b5035a0511051443k3753bc5ak@...627...> Hi List, Im having a bit of a headache handling dates. When a tableview has a date column it is formatted. But this formatting is not done the same when i compile and run my code on another machine. Is there a global way to enforce date formatting troughout the project ? Thnx framedownunder From kztyrvlq at ...966... Sun Nov 6 03:36:30 2005 From: kztyrvlq at ...966... (A Person) Date: Sat, 05 Nov 2005 23:06:30 -0330 Subject: [Gambas-user] Re: Time Didn't Spring Forward in Example Message-ID: <436D6C2E.50502@...966...> Saturday, 5 November 2005 Fabien, your modification works well. Thanks You Paul From arturuk at ...626... Sun Nov 6 09:34:56 2005 From: arturuk at ...626... (Arturo Martinez) Date: Sun, 6 Nov 2005 08:34:56 +0000 Subject: [Gambas-user] Shell commands Message-ID: I want to run standard shell commands like cat $1 | grep $2 in a GUI form. Where can I find an example of how to get Gambas to interact with shell commands? -------------- next part -------------- An HTML attachment was scrubbed... URL: From lordheavy at ...512... Sun Nov 6 10:18:58 2005 From: lordheavy at ...512... (lordheavy) Date: Sun, 6 Nov 2005 10:18:58 +0100 Subject: [Gambas-user] Shell commands In-Reply-To: References: Message-ID: <200511061018.58417.lordheavy@...512...> Le Dimanche 6 Novembre 2005 09:34, Arturo Martinez a ?crit?: > I want to run standard shell commands like cat $1 | grep $2 in a GUI form. > > Where can I find an example of how to get Gambas to interact with shell > commands? You can take a look at the exec/console example provided with gambas. Regards, From gambasfr at ...11... Sun Nov 6 10:22:15 2005 From: gambasfr at ...11... (Fabien Bodard) Date: Sun, 6 Nov 2005 10:22:15 +0100 Subject: [Gambas-user] Shell commands In-Reply-To: References: Message-ID: <200511061022.15561.gambasfr@...11...> Le Dimanche 6 Novembre 2005 09:34, Arturo Martinez a ?crit?: > I want to run standard shell commands like cat $1 | grep $2 in a GUI form. > > Where can I find an example of how to get Gambas to interact with shell > commands? in the exemples in the wiki look into 'exec exemple' Fabien From mikaelu at ...1188... Sun Nov 6 17:39:06 2005 From: mikaelu at ...1188... (Mikael Ulfenborg) Date: Sun, 06 Nov 2005 17:39:06 +0100 Subject: [Gambas-user] Helpfiles Message-ID: <436E31AA.2050508@...1188...> Hi, I've finally found the QT "Textview" allowing me to make better helpfiles. There is however one problem: It can not use images with relative paths. Or can it? Question 2: I initially wrote my program in Swedish and translated it to en_US and I got that to work. Now I have rewritten the code in english and translated it to swedish (sv_SE) and I cannot get this translation to work. I this a known problem? Is there any workaround? Using Gambas 1.03 on Ubuntu Breezy /Mikael U From gambas at ...1... Sun Nov 6 18:43:12 2005 From: gambas at ...1... (Benoit Minisini) Date: Sun, 6 Nov 2005 18:43:12 +0100 Subject: [Gambas-user] Handling Date Formatting in a Tableview In-Reply-To: <82b5035a0511051443k3753bc5ak@...627...> References: <82b5035a0511051443k3753bc5ak@...627...> Message-ID: <200511061843.12466.gambas@...1...> On Saturday 05 November 2005 23:43, frame down under wrote: > Hi List, > > Im having a bit of a headache handling dates. When a tableview has a > date column it is formatted. But this formatting is not done the same > when i compile and run my code on another machine. > > Is there a global way to enforce date formatting troughout the project ? > > Thnx > > framedownunder > > What code do you use to display a date? The date is displayed by default in the format defined by the language used on the underlying system. -- Benoit Minisini From eilert-sprachen at ...221... Mon Nov 7 08:45:14 2005 From: eilert-sprachen at ...221... (Eilert) Date: Mon, 07 Nov 2005 08:45:14 +0100 Subject: [Gambas-user] TableView Problem In-Reply-To: <20051103190746.M86573@...951...> References: <20051031224520.M8573@...951...> <20051101183555.M4875@...951...> <20051102014827.3w3j3lgd5hk4ckk8@...1198...> <20051102162636.M1486@...951...> <4369F378.5040209@...221...> <20051103190746.M86573@...951...> Message-ID: <436F060A.3050403@...221...> Hi Fernando, you are right :-) I tried this > To count the _DATA events, do (similar to) the following. > > Create a label called Label_Count > with TEXT as 0 (zero) > > The first code line inside the _Data event for the TableView.. > Label_Count.Text = Label_Count.Text + 1 > > ... now scroll and/or click on your TableView. > > Watch the count and it turned out that even dragging another window over a TableView will trigger the _DATA event. So, yes, if in code you connect it directly to SQL queries, I guess you get into trouble. The only way to make it fast is to buffer the data in an array. Very strange. However, on my machine this doesn't cause much CPU load. So, is this discussion somewhat academical? Benoit is not to blame for it, the Trolltech guys are. We cannot change this. So what? > Also, notice how the Label is a static control. > Its implementation is opposite to your comment. Well - my comment was to never let graphical controls store any data for you, just display them. The only exception perhaps is with input controls like text boxes. You won't have another chance than accepting that they keep the original data for the time of user input (though you still could catch every keystroke and save it in parallel somewhere else). During the last years I found that most data you want to display have to be processed before displaying, i. e. in case you let the displaying control save the data, you will have to re-process the data into the saving format afterwards because the user might have changed something (except when they're for display only, but this is a rare case here). This will make it necessary to write a lot of code reacting to clicks and processing/reprocessing data. So the program may become somewhat difficult to overview. I found the advice from the guy (or guys) was good for me and my kind of projects. At that time, I had programmed one thing that displayed data processing them for display and displaying them in table view (this was VB then). After discussing some items with those folks, I began to code a new version of the software, and during the talks I got this advice. After trying to split my new program into distinct layers of storage, processing and display, I found it made it much clearer, so I'm following this rule ever since. Rolf From sakya_tg at ...325... Mon Nov 7 10:40:53 2005 From: sakya_tg at ...325... (sakya) Date: Mon, 07 Nov 2005 09:40:53 +0000 Subject: [Gambas-user] Translation Message-ID: <436F2125.7000507@...325...> Hi! I have an application with some translations. Can I change the language during execution? What environmental variables uses Gambas to choose the translation (LANG & LANGUAGE)? Many thanks Sakya ___________________________________ Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB http://mail.yahoo.it From gambas at ...1... Mon Nov 7 10:22:27 2005 From: gambas at ...1... (Benoit Minisini) Date: Mon, 7 Nov 2005 10:22:27 +0100 Subject: [Gambas-user] TableView Problem In-Reply-To: <436F060A.3050403@...221...> References: <20051031224520.M8573@...951...> <20051103190746.M86573@...951...> <436F060A.3050403@...221...> Message-ID: <200511071022.27622.gambas@...1...> On Monday 07 November 2005 08:45, Eilert wrote: > Hi Fernando, > > you are right :-) I tried this > > > To count the _DATA events, do (similar to) the following. > > > > Create a label called Label_Count > > with TEXT as 0 (zero) > > > > The first code line inside the _Data event for the TableView.. > > Label_Count.Text = Label_Count.Text + 1 > > > > ... now scroll and/or click on your TableView. > > > > Watch the count > > and it turned out that even dragging another window over a TableView > will trigger the _DATA event. So, yes, if in code you connect it > directly to SQL queries, I guess you get into trouble. Not strange, as the TableView buffers nothing. > The only way to > make it fast is to buffer the data in an array. Very strange. But the SQL Result object *is* a buffer, so you don't have to do that. Just use the Result object as a buffer. > > However, on my machine this doesn't cause much CPU load. So, is this > discussion somewhat academical? Benoit is not to blame for it, the > Trolltech guys are. We cannot change this. So what? > > > Also, notice how the Label is a static control. > > Its implementation is opposite to your comment. > > Well - my comment was to never let graphical controls store any data for > you, just display them. The only exception perhaps is with input > controls like text boxes. You won't have another chance than accepting > that they keep the original data for the time of user input (though you > still could catch every keystroke and save it in parallel somewhere else). > > During the last years I found that most data you want to display have to > be processed before displaying, i. e. in case you let the displaying > control save the data, you will have to re-process the data into the > saving format afterwards because the user might have changed something > (except when they're for display only, but this is a rare case here). > This will make it necessary to write a lot of code reacting to clicks > and processing/reprocessing data. So the program may become somewhat > difficult to overview. > > I found the advice from the guy (or guys) was good for me and my kind of > projects. At that time, I had programmed one thing that displayed data > processing them for display and displaying them in table view (this was > VB then). After discussing some items with those folks, I began to code > a new version of the software, and during the talks I got this advice. > After trying to split my new program into distinct layers of storage, > processing and display, I found it made it much clearer, so I'm > following this rule ever since. > > Rolf > Good advice :-) Regards, -- Benoit Minisini From nando_f at ...951... Mon Nov 7 15:26:50 2005 From: nando_f at ...951... (nando) Date: Mon, 7 Nov 2005 09:26:50 -0500 Subject: [Gambas-user] TableView Problem In-Reply-To: <200511071022.27622.gambas@...1...> References: <20051031224520.M8573@...951...> <20051103190746.M86573@...951...> <436F060A.3050403@...221...> <200511071022.27622.gambas@...1...> Message-ID: <20051107141306.M24466@...951...> Thank you Rolf and Benoit. By no means am I blaming anyone *especially* Benoit. But instead, I thank many persons especially Benoit every time I begin a Gambas IDE. I believe understanding how the component works will lead to a better solution. My current project requires data on the screen like TableView offers except I need something static. Each cell could have a different -text -foreground color -background color -font which means I need an collection array, or four parallel arrays or 4-D array or similar. A static component would relieve the data storage burden. In my VB world, The 'Flexgrid' did this. Benoit, Is there a tableview component that works statically for each cell that is unused/unimplememted?? Thank you -Fernando ---------- Original Message ----------- From: Benoit Minisini To: gambas-user at lists.sourceforge.net Sent: Mon, 7 Nov 2005 10:22:27 +0100 Subject: Re: [Gambas-user] TableView Problem > On Monday 07 November 2005 08:45, Eilert wrote: > > Hi Fernando, > > > > you are right :-) I tried this > > > > > To count the _DATA events, do (similar to) the following. > > > > > > Create a label called Label_Count > > > with TEXT as 0 (zero) > > > > > > The first code line inside the _Data event for the TableView.. > > > Label_Count.Text = Label_Count.Text + 1 > > > > > > ... now scroll and/or click on your TableView. > > > > > > Watch the count > > > > and it turned out that even dragging another window over a TableView > > will trigger the _DATA event. So, yes, if in code you connect it > > directly to SQL queries, I guess you get into trouble. > > Not strange, as the TableView buffers nothing. > > > The only way to > > make it fast is to buffer the data in an array. Very strange. > > But the SQL Result object *is* a buffer, so you don't have to do > that. Just use the Result object as a buffer. > > > > > However, on my machine this doesn't cause much CPU load. So, is this > > discussion somewhat academical? Benoit is not to blame for it, the > > Trolltech guys are. We cannot change this. So what? > > > > > Also, notice how the Label is a static control. > > > Its implementation is opposite to your comment. > > > > Well - my comment was to never let graphical controls store any data for > > you, just display them. The only exception perhaps is with input > > controls like text boxes. You won't have another chance than accepting > > that they keep the original data for the time of user input (though you > > still could catch every keystroke and save it in parallel somewhere else). > > > > During the last years I found that most data you want to display have to > > be processed before displaying, i. e. in case you let the displaying > > control save the data, you will have to re-process the data into the > > saving format afterwards because the user might have changed something > > (except when they're for display only, but this is a rare case here). > > This will make it necessary to write a lot of code reacting to clicks > > and processing/reprocessing data. So the program may become somewhat > > difficult to overview. > > > > I found the advice from the guy (or guys) was good for me and my kind of > > projects. At that time, I had programmed one thing that displayed data > > processing them for display and displaying them in table view (this was > > VB then). After discussing some items with those folks, I began to code > > a new version of the software, and during the talks I got this advice. > > After trying to split my new program into distinct layers of storage, > > processing and display, I found it made it much clearer, so I'm > > following this rule ever since. > > > > Rolf > > > > Good advice :-) > > Regards, > > -- > Benoit Minisini > > ------------------------------------------------------- > SF.Net email is sponsored by: > Tame your development challenges with Apache's Geronimo App Server. Download > it for free - -and be entered to win a 42" plasma tv or your very own > Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From andre.gambas at ...626... Mon Nov 7 18:58:39 2005 From: andre.gambas at ...626... (Andre Saccomani) Date: Mon, 7 Nov 2005 15:58:39 -0200 Subject: [Gambas-user] Receiving arguments from command line? Message-ID: <4d3e14360511070958q7e9fee6foa569f1779aafc89@...627...> Hi guys... I'm trying to make my own MP3 player to integrate with karamba since I don't like Xmms coz it doesnt support the minimize to tray funcion. Want to karamba to call my program passing arguments to it. like: programname play programname forward programname stop ... and so on. how can I handle those arguments from my starting class? Is there something like argc and argv? Regards, Andre Silveira By the way: have anyone succeed in creating programs that only shows on kde tray and not at program bar? I dont like my mp3 player taking unecessary space. -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas at ...1... Mon Nov 7 21:50:27 2005 From: gambas at ...1... (Benoit Minisini) Date: Mon, 7 Nov 2005 21:50:27 +0100 Subject: [Gambas-user] Release of gambas 1.0.12 Message-ID: <200511072150.27980.gambas@...1...> Hi everyone, This is a new stable version of Gambas. It just fix some bugs. Here is the changelog: --8<------------------------------------------------------------------------ INTERPRETER * BUG: Looping with a Byte or Short variable now works correctly. * BUG: Formatting a date with AM/PM now displays an hour value between 1 and 12, and not 0 and 11 as before. * BUG: Displaying numbers in decimal now is more accurate, and should not display things like 123,00000000001 anymore. * BUG: INPUT and LINE INPUT deal with non-ASCII characters correctly now. DATABASE MANAGER * BUG: Field names are case unsensitive now in the table edition window. * BUG: Errors while saving a table does not mix up the database manager any longer. QT COMPONENT * WARNING: The DblClick event is now posted, and not raised immediately as before. GAMBAS EDITOR COMPONENT * BUG: X11 input methods are correctly managed. SDL COMPONENT * BUG: Fixed a memory leak in the sound management. DATABASE COMPONENT * NEW: A database user can have '@' and '%' characters inside its name. * BUG: Database object names accept only ASCII characters now. * BUG: MySQL driver returns if an index is unique correctly now. --8<------------------------------------------------------------------------ You can look at the download page too: http://gambas.sf.net/download.html I have updated the binary package table, to indicate which distribution package gambas in the good way, and which do not (grrr...). The good way for packaging gambas is now written in a README file in the sources. Enjoy it! Regards, -- Benoit Minisini From eilert-sprachen at ...221... Tue Nov 8 10:22:48 2005 From: eilert-sprachen at ...221... (Eilert) Date: Tue, 08 Nov 2005 10:22:48 +0100 Subject: [Gambas-user] Release of gambas 1.0.12 In-Reply-To: <200511072150.27980.gambas@...1...> References: <200511072150.27980.gambas@...1...> Message-ID: <43706E68.5020602@...221...> Hi Benoit, what do you mean > QT COMPONENT > > * WARNING: The DblClick event is now posted, and not raised immediately as > before. "posted"? What does that mean in practice? Rolf From lordheavy at ...512... Tue Nov 8 10:29:31 2005 From: lordheavy at ...512... (lordheavy) Date: Tue, 8 Nov 2005 10:29:31 +0100 Subject: [Gambas-user] Release of gambas 1.0.12 In-Reply-To: <43706E68.5020602@...221...> References: <200511072150.27980.gambas@...1...> <43706E68.5020602@...221...> Message-ID: <200511081029.31602.lordheavy@...512...> Le Mardi 8 Novembre 2005 10:22, Eilert a ?crit?: > Hi Benoit, > > what do you mean > > > QT COMPONENT > > > > * WARNING: The DblClick event is now posted, and not raised immediately > > as before. > > "posted"? What does that mean in practice? > > Rolf > That's mean the event will be raised when gambas is in the event loop (waiting for events), not immediatly. Regards, From sakya_tg at ...325... Tue Nov 8 12:06:14 2005 From: sakya_tg at ...325... (sakya) Date: Tue, 08 Nov 2005 11:06:14 +0000 Subject: [Gambas-user] str() Message-ID: <437086A6.6090601@...325...> Hi to everyone! I installed today Gambas 1.0.12 Now the function Str(1.1) returns "01.1"?? Ciao Sakya ___________________________________ Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB http://mail.yahoo.it From sakya_tg at ...325... Tue Nov 8 12:09:43 2005 From: sakya_tg at ...325... (sakya) Date: Tue, 08 Nov 2005 11:09:43 +0000 Subject: [Gambas-user] Helpfiles In-Reply-To: <436E31AA.2050508@...1188...> References: <436E31AA.2050508@...1188...> Message-ID: <43708777.4020808@...325...> Hi! > Question 2: I initially wrote my program in Swedish and translated it > to en_US and I got that to work. Now I have > rewritten the code in english and translated it to swedish (sv_SE) and > I cannot get this translation to work. I this a > known problem? Is there any workaround? I had the same problem. To write an application in english you must start Gambas with the command LANG=en_EN;LANGUAGE=en_EN:en;gambas then write your app in english and then translate it to swedish. HTWH Ciao Sakya ___________________________________ Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB http://mail.yahoo.it From gambas at ...1... Tue Nov 8 17:54:27 2005 From: gambas at ...1... (Benoit Minisini) Date: Tue, 8 Nov 2005 17:54:27 +0100 Subject: [Gambas-user] Helpfiles In-Reply-To: <43708777.4020808@...325...> References: <436E31AA.2050508@...1188...> <43708777.4020808@...325...> Message-ID: <200511081754.27658.gambas@...1...> On Tuesday 08 November 2005 12:09, sakya wrote: > Hi! > > > Question 2: I initially wrote my program in Swedish and translated it > > to en_US and I got that to work. Now I have > > rewritten the code in english and translated it to swedish (sv_SE) and > > I cannot get this translation to work. I this a > > known problem? Is there any workaround? > > I had the same problem. > To write an application in english you must start Gambas with the command > LANG=en_EN;LANGUAGE=en_EN:en;gambas > then write your app in english and then translate it to swedish. > > HTWH > Ciao > Sakya > I didn't understand clearly the problem. Can you please explain it again, differently if possible? -- Benoit Minisini From gambas at ...1... Tue Nov 8 18:01:13 2005 From: gambas at ...1... (Benoit Minisini) Date: Tue, 8 Nov 2005 18:01:13 +0100 Subject: [Gambas-user] str() In-Reply-To: <437086A6.6090601@...325...> References: <437086A6.6090601@...325...> Message-ID: <200511081801.13560.gambas@...1...> On Tuesday 08 November 2005 12:06, sakya wrote: > Hi to everyone! > > I installed today Gambas 1.0.12 > Now the function Str(1.1) returns "01.1"?? > > Ciao > Sakya > > AAARGH! :-( -- Benoit Minisini From gambas at ...1... Tue Nov 8 18:00:00 2005 From: gambas at ...1... (Benoit Minisini) Date: Tue, 8 Nov 2005 18:00:00 +0100 Subject: [Gambas-user] Release of gambas 1.0.12 In-Reply-To: <43706E68.5020602@...221...> References: <200511072150.27980.gambas@...1...> <43706E68.5020602@...221...> Message-ID: <200511081800.01062.gambas@...1...> On Tuesday 08 November 2005 10:22, Eilert wrote: > Hi Benoit, > > what do you mean > > > QT COMPONENT > > > > * WARNING: The DblClick event is now posted, and not raised immediately > > as before. > > "posted"? What does that mean in practice? > > Rolf > > When writing a component, there is two possibilities when you want to raise an event: 1) Raise it immediately, for example in the signal handlers executed by QT. 2) Raise the event in a "posted" routine, i.e. a routine that the interpreter executes at the next occurence of the event loop (so later). Why that? Sometimes, it is dangerous to raise an event immediately, because you are going to execute some Gambas code (i.e. everything can happen) inside a QT (or GTK+ if you are using gb.gtk) event handler. By raising the DblClick event later, I prevent many QT controls to be mixed up by the execution of Gambas Code inside their event handler. It seems that it is impossible to make a GUI library with events that cannot crash or behave badly in any way inside its event handlers, as you can execute any code there. Regards, -- Benoit Minisini From mikaelu at ...1188... Tue Nov 8 18:34:39 2005 From: mikaelu at ...1188... (Mikael Ulfenborg) Date: Tue, 08 Nov 2005 18:34:39 +0100 Subject: [Gambas-user] Helpfiles In-Reply-To: <200511081754.27658.gambas@...1...> References: <436E31AA.2050508@...1188...> <43708777.4020808@...325...> <200511081754.27658.gambas@...1...> Message-ID: <4370E1AF.7020409@...1188...> Benoit Minisini wrote: >On Tuesday 08 November 2005 12:09, sakya wrote: > > >>Hi! >> >> >> >>>Question 2: I initially wrote my program in Swedish and translated it >>>to en_US and I got that to work. Now I have >>>rewritten the code in english and translated it to swedish (sv_SE) and >>>I cannot get this translation to work. I this a >>>known problem? Is there any workaround? >>> >>> >>I had the same problem. >>To write an application in english you must start Gambas with the command >>LANG=en_EN;LANGUAGE=en_EN:en;gambas >>then write your app in english and then translate it to swedish. >> >>HTWH >>Ciao >>Sakya >> >> >> > >I didn't understand clearly the problem. Can you please explain it again, >differently if possible? > > > Ok. I'll try to explain again. When I started to learn Gambas I wrote a crossword program for swedish style crosswords. As it is my native language I wrote it with swedish comments, buttons, menus and so on. As the program became rather good I decided to release it as GPL on sourceforge. Realising that the swedish population is rather small (worldwise :) I therefore translated it with Gambas internal translation system to en_US. After fiddling with LANG and LANGUAGE I got that translation to work. After I thought about it even more I realised that it was not good to have everything in the code/gui in swedish so I went through the entire program and changed everything to english (in the code and gui). After that I used the gambas translation system to translate it to swedish. It is this last translation I cannot get to work (with LANG=sv_SE.UTF-8). A small update however: I've compiled and tried 1.0.12. I couldn't get the "external language support" to work (it found the header files but not the library, strange...). I did however manage to run gambas without it and opened my project, went into the translation system and saved it there. Since then I've removed 1.0.12 and returned to the 1.0.3 (Ubuntu) version. The funny thing is that IT WORKS NOW! If I run my program from within gambas or as a standalone executable it detects my (default) LANG sv_SE.UTF-8 and presents it in swedish. Even if I'm pleased with that it doesn't feel good not knowing what has happened... From juanibaz at ...626... Wed Nov 9 08:38:28 2005 From: juanibaz at ...626... (Juan Ibaceta) Date: Wed, 9 Nov 2005 08:38:28 +0100 Subject: [Gambas-user] Shell commands Message-ID: <200511090838.29246.juanibaz@...626...> I resend it because I added a zip file and it was rejected by the mail-list program. I don't know which files I have to add to make it work in another PC but I added the executable file "xw", the class file and the form, the icon file is part of the program. I hope it works. ---------------------------------------------------------------------------------------------------/ First email: Hi Arturo Long ago I did a program to manage a commad line program to generate waves on your desktop. It is not well coded but at least it works. (it was just a test) here it is the line that you need: EXEC ["xdesktopwaves","-q",Trim(ComboBox1.Text)] Here you can see how I passed the line without spaces, gambas manages the spaces without problems. The trim command is used to get text form a combobox and format it without spaces (I don't remember very well, but I think it is for doing that). I will try to add the source of my program and the executable file to show you how it works. You need to have Xdesktopwaves version 1.3 installed in you PC (http://xdesktopwaves.sourceforge.net/) I hope you can see it and you enjoy it. Regards Juan /---------------------------------------------- Linux user number 395903 At http://counter.li.org/ Visit my Photo-blog and post your comments http://juan_pictures.blogspot.com/ -------------- next part -------------- A non-text attachment was scrubbed... Name: Xwaves.class Type: application/x-java Size: 4183 bytes Desc: not available URL: -------------- next part -------------- # Gambas Form File 1.0 { Xwaves Form Move(146,90,217,258) Text = ("") Icon = Picture["cp_icon_bottle9.gif"] Border = Window.Fixed { ComboBox1 ComboBox Move(120,16,48,24) Text = (" ") } { ComboBox2 ComboBox Move(120,48,48,24) Text = (" ") } { Label1 Label Move(16,16,104,24) Text = ("Quality") Border = Border.Sunken } { Label2 Label Move(16,48,104,24) Text = ("Storm") Border = Border.Sunken } { StartWaves Button Move(16,176,88,32) Text = ("Waves") Default = True } { EndWaves Button Move(16,216,88,32) Text = ("End Waves") } { Label20 Label Move(16,144,104,24) Text = ("ColorTheme") Border = Border.Sunken } { Label28 Label Move(16,80,104,24) Text = ("Rain") Border = Border.Sunken } { Label30 Label Move(16,112,104,24) Text = ("Viscosity") Border = Border.Sunken } { CloseBtn Button Move(112,192,88,32) Text = ("Close") } { ComboBox8 ComboBox Move(120,80,48,24) Text = (" ") } { ComboBox9 ComboBox Move(120,112,48,24) Text = (" ") } { ComboBox10 ComboBox Move(120,144,48,24) Text = ("") } } -------------- next part -------------- A non-text attachment was scrubbed... Name: cp_icon_bottle9.gif Type: image/gif Size: 2259 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: xw Type: application/octet-stream Size: 5770 bytes Desc: not available URL: From sakya_tg at ...325... Wed Nov 9 10:36:37 2005 From: sakya_tg at ...325... (sakya) Date: Wed, 09 Nov 2005 09:36:37 +0000 Subject: [Gambas-user] Helpfiles In-Reply-To: <200511081754.27658.gambas@...1...> References: <436E31AA.2050508@...1188...> <43708777.4020808@...325...> <200511081754.27658.gambas@...1...> Message-ID: <4371C325.20509@...325...> Hi! >>I had the same problem. >>To write an application in english you must start Gambas with the command >>LANG=en_EN;LANGUAGE=en_EN:en;gambas >>then write your app in english and then translate it to swedish. >> >> >> >I didn't understand clearly the problem. Can you please explain it again, >differently if possible? > > > I wrote an application on my system with LANG=it_IT and LANGUAGE=it_IT;it I wrote all in italian (labels, buttons....) Then I translated all in english but if someone else wants to translate the application in another language he sees italian language in the translation window (even if he execute gambas with LANG=en_EN;LANGUAGE=en_EN:en;gambas). :-) If I write an application in english (labels, buttons....) without changing LANG=en_EN and LANGUAGE=en_EN:en then I can't translate it into italian, because for gambas italian translation is what I wrote in labels and buttons. Many thanks for Gambas, it's very useful. :-) Ciao Sakya ___________________________________ Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB http://mail.yahoo.it From isy21 at ...1082... Wed Nov 9 10:02:11 2005 From: isy21 at ...1082... (Ignatius Syofian) Date: Wed, 9 Nov 2005 16:02:11 +0700 Subject: [Gambas-user] MySQL 5 Message-ID: <200511091602.11787.isy21@...1082...> Hi, all After upgrade mysql 4.1.15 to MySql 5, my project can't run. It say Driver not found. I check connection.type="mysql" . (never been retype) Anyone, know how to solve it ?. or gambas not yet support mysql 5 ? -- Regards, Ignatius Syofian From isy21 at ...1082... Wed Nov 9 10:06:31 2005 From: isy21 at ...1082... (Ignatius Syofian) Date: Wed, 9 Nov 2005 16:06:31 +0700 Subject: [Gambas-user] My SQL 5...(solved ?) Message-ID: <200511091606.32361.isy21@...1082...> Hi, all I just install mysql 5 shared-compact for older mysql and i remove mysql5 shared (this one only for use mysql 5 connection). I only can use if use compatible with older mysql?. I can regenerate all table with mysql 5 because this is still in development, can i solve this ? -- Regards, Ignatius Syofian From alxjvr.gambas at ...626... Wed Nov 9 10:54:55 2005 From: alxjvr.gambas at ...626... (alx jvr) Date: Wed, 9 Nov 2005 17:54:55 +0800 Subject: [Gambas-user] installation problem Message-ID: <4f9eca870511090154m6f2bb8ebxded9f17be25d09d8@...627...> hello, i'm trying to install gambas 1.9.21 from source on ubuntu 5.10. but i get the following error when running ./configure: checking fo C compiler default out file name... configure: error: C compiler cannot create executables i already have gcc 4.0.2, binutils, autoconf, and automake installed. help! what's amiss? -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambasfr at ...11... Wed Nov 9 13:02:44 2005 From: gambasfr at ...11... (Fabien) Date: Wed, 9 Nov 2005 13:02:44 +0100 (CET) Subject: [Gambas-user] installation problem Message-ID: <13307273.1131537764864.JavaMail.www@...1209...> > Message du 09/11/05 11:25 > De : "alx jvr" > A : gambas-user at lists.sourceforge.net > Copie ? : > Objet : [Gambas-user] installation problem > > hello, i'm trying to install gambas 1.9.21 from source on ubuntu 5.10. but i > get the following error when running ./configure: > > checking fo C compiler default out file name... configure: error: C compiler > cannot create executables > > > i already have gcc 4.0.2, binutils, autoconf, and automake installed. help! > what's amiss? > I has the same problem when i upgrade ubuntu hoary to breezy. i think the soluce is to install the 'build-essential' package... I you are effectively on a debian like distribution. Regards, Fabien Bodard From alxjvr.gambas at ...626... Thu Nov 10 02:50:14 2005 From: alxjvr.gambas at ...626... (alx jvr) Date: Thu, 10 Nov 2005 09:50:14 +0800 Subject: [Gambas-user] installation problem In-Reply-To: <13307273.1131537764864.JavaMail.www@...1209...> References: <13307273.1131537764864.JavaMail.www@...1209...> Message-ID: <4f9eca870511091750p5d2d84bvef6cc01b4f61b2b4@...627...> yes, thanks for the reply fabien. i got the same tip from irc, #gambas channel on freenode. i can compile now, albeit new errors that it can't include components for postgresql and some others. i may need to install the devt libraries first. On 11/9/05, Fabien wrote: > > > > > > Message du 09/11/05 11:25 > > De : "alx jvr" > > A : gambas-user at lists.sourceforge.net > > Copie ? : > > Objet : [Gambas-user] installation problem > > > > hello, i'm trying to install gambas 1.9.21 from source on ubuntu 5.10. > but i > > get the following error when running ./configure: > > > > checking fo C compiler default out file name... configure: error: C > compiler > > cannot create executables > > > > > > i already have gcc 4.0.2, binutils, autoconf, and automake installed. > help! > > what's amiss? > > > > > I has the same problem when i upgrade ubuntu hoary to breezy. > > i think the soluce is to install the 'build-essential' package... I you > are effectively on a debian like > distribution. > > Regards, > Fabien Bodard > > > > ------------------------------------------------------- > SF.Net email is sponsored by: > Tame your development challenges with Apache's Geronimo App Server. > Download > it for free - -and be entered to win a 42" plasma tv or your very own > Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -------------- next part -------------- An HTML attachment was scrubbed... URL: From isy21 at ...1082... Thu Nov 10 05:33:25 2005 From: isy21 at ...1082... (Ignatius Syofian) Date: Thu, 10 Nov 2005 11:33:25 +0700 Subject: [Gambas-user] Format$ Message-ID: <200511101133.26856.isy21@...1082...> Hi, all I want to ask about format$ in my code PUBLIC SUB txtuser_Change() IF txtuser.Text="" THEN txtuser.Text=0 txtuser.Text=Format$(Val(txtuser.Text),"#,###") END if i type 09000, it display 09,000 ? why can't be 9,000 my os suse 9.3 and my -- Regards, Ignatius Syofian From eilert-sprachen at ...221... Thu Nov 10 09:34:06 2005 From: eilert-sprachen at ...221... (Eilert) Date: Thu, 10 Nov 2005 09:34:06 +0100 Subject: [Gambas-user] Strange printing behaviour Message-ID: <437305FE.2060802@...221...> Did anything change during the last couple of months as regards printing dialog or so? This is my problem, and I try to put it in brief: - In one of my Gambas apps I use a dialog where the user chooses the printing form, then clicks OK. - There are two toolbar buttons with a shortcut to "printing receipt" and "printing account balance" which fire up a certain form at once. - The program runs on my server, I log into it from my other PC in my office via X over the network, and printing is deviated over the network to my PC where my printer lives. As long as it was this, no problem. Under the hood, there are 3 different SUBs for those 3 ways of printing, and they just manage the way the ordinary printing SUBs are called. - One day, I decided to include a Settings button in the general Printing dialog calling the KDE printer dialog to be able to change the printer settings. Since then, the two fast-printing shortcut options do not function at all times any more. If I want to print a receipt, nothing happens. When I call the general printing dialog then click Settings, then click on another printer and back to "lp", then OK, then Cancel and then try the shortcut, in most cases it will run. It will run for some time if I print another receipt directly afterwards. But it will stop again if I wait for, say, 5 minutes. In most cases, this is a stop forever. I will have to end the app and start it up again, then the whole thing runs (sometimes, at least). You see, this behaviour SEEMS to have occured after including the KDE printer dialog. However, an exact behaviour cannot be forecasted. What I do not understand is this: - From the code's point of view, there is just another button that calls the KDE printer dialog. There is no evaluation of any settings afterwards. - Why does it run sometimes, and sometimes not? There is no real pattern. A vague idea would be that there is something that disturbs the printing connection of Gambas if the KDE printing dialog is included... By the way, no other program has problems with printing from the server. I cannot find any reason in my code for this, especially as there is no change in code but just a call to the KDE printing dialog. What are your ideas? Rolf From eilert-sprachen at ...221... Thu Nov 10 09:54:59 2005 From: eilert-sprachen at ...221... (Eilert) Date: Thu, 10 Nov 2005 09:54:59 +0100 Subject: [Gambas-user] Format$ In-Reply-To: <200511101133.26856.isy21@...1082...> References: <200511101133.26856.isy21@...1082...> Message-ID: <43730AE3.5070505@...221...> Hi Ignatius, maybe your question is related to this thread: ---------------------------- On Tuesday 08 November 2005 12:06, sakya wrote: >> Hi to everyone! >> >> I installed today Gambas 1.0.12 >> Now the function Str(1.1) returns "01.1"?? >> >> Ciao >> Sakya >> >> AAARGH! -- Benoit Minisini -------------------------- Sounds as if this was pretty much the same problem... do you use 1.0.12? Rolf Ignatius Syofian schrieb: > Hi, all > > > I want to ask about format$ > > > in my code > > PUBLIC SUB txtuser_Change() > IF txtuser.Text="" THEN txtuser.Text=0 > txtuser.Text=Format$(Val(txtuser.Text),"#,###") > END > > if i type 09000, it display 09,000 ? why can't be 9,000 > > my os suse 9.3 and my > From isy21 at ...1082... Thu Nov 10 10:54:21 2005 From: isy21 at ...1082... (Ignatius Syofian) Date: Thu, 10 Nov 2005 16:54:21 +0700 Subject: [Gambas-user] Format$ In-Reply-To: <43730AE3.5070505@...221...> References: <200511101133.26856.isy21@...1082...> <43730AE3.5070505@...221...> Message-ID: <200511101654.21281.isy21@...1082...> On Thursday 10 November 2005 15:54, Eilert wrote: Hi Eilert, Yes, i use gambas 1.0.12. After i reinstall gambas 1.0.11, the problem is gone.. I hope Benoit and team will fix this in next gambas release. Thanks you > Hi Ignatius, > > maybe your question is related to this thread: > > ---------------------------- > > On Tuesday 08 November 2005 12:06, sakya wrote: > >> Hi to everyone! > >> > >> I installed today Gambas 1.0.12 > >> Now the function Str(1.1) returns "01.1"?? > >> > >> Ciao > >> Sakya > > AAARGH! > > -- Benoit Minisini > > -------------------------- > > Sounds as if this was pretty much the same problem... do you use 1.0.12? > > Rolf > > Ignatius Syofian schrieb: > > Hi, all > > > > > > I want to ask about format$ > > > > > > in my code > > > > PUBLIC SUB txtuser_Change() > > IF txtuser.Text="" THEN txtuser.Text=0 > > txtuser.Text=Format$(Val(txtuser.Text),"#,###") > > END > > > > if i type 09000, it display 09,000 ? why can't be 9,000 > > > > my os suse 9.3 and my > > ------------------------------------------------------- > SF.Net email is sponsored by: > Tame your development challenges with Apache's Geronimo App Server. > Download it for free - -and be entered to win a 42" plasma tv or your very > own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Regards, Ignatius Syofian From isy21 at ...1082... Fri Nov 11 08:55:31 2005 From: isy21 at ...1082... (Ignatius Syofian) Date: Fri, 11 Nov 2005 14:55:31 +0700 Subject: [Gambas-user] Sample using .begin, commit and roolback in mysql Message-ID: <200511111455.31583.isy21@...1082...> Hi, all can i have some example using db.begin, db.commit and db.rollback in mysql ? present i use direct update without using db.commit or db.roolback thanks before -- Regards, Ignatius Syofian From jdsantos1978 at ...626... Fri Nov 11 10:49:36 2005 From: jdsantos1978 at ...626... (Jose Daniel Santos Delgado) Date: Fri, 11 Nov 2005 10:49:36 +0100 Subject: [Gambas-user] Sample using .begin, commit and roolback in mysql In-Reply-To: <200511111455.31583.isy21@...1082...> References: <200511111455.31583.isy21@...1082...> Message-ID: <12e18d6c0511110149m6a3d106cp@...627...> It's quite simple. The only thing you must bear in mind is that when you creates the database tables you must use a Datatype that admits transactions. For instantce: InnoDB. Once you to that, the process is straightforward: private m_db as Connection private sub whichEver(...) m_db.Begin () m_db.Exec("INSERT INTO jander VALUES (1, 'hola', 'bye') m_db.Exec("INSERT INTO peich VALUES (31, 'a gromena?er') ' (...) if ''''' WhatEver must rollback m_db.RollBack() endif m_db.Commit() end sub Sorry if it's not a very elaborated answer: ;) 2005/11/11, Ignatius Syofian : > Hi, all > > can i have some example using db.begin, db.commit and db.rollback in mysql ? > > present i use direct update without using db.commit or db.roolback > > thanks before > > > -- > Regards, > > Ignatius Syofian > > > > ------------------------------------------------------- > SF.Net email is sponsored by: > Tame your development challenges with Apache's Geronimo App Server. Download > it for free - -and be entered to win a 42" plasma tv or your very own > Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From alxjvr.gambas at ...626... Fri Nov 11 10:50:25 2005 From: alxjvr.gambas at ...626... (alx jvr) Date: Fri, 11 Nov 2005 17:50:25 +0800 Subject: [Gambas-user] dumping text to printer Message-ID: <4f9eca870511110150r554e2d5fq507f1811bda42d22@...627...> hello! is there something in gambas similar to the ff. code in vb: open "lpt1" for output as #1 print #1, "whatever" close #1 .... that would print the word "whatever" directly to whatever printer is connected on the parallel port on linux? -------------- next part -------------- An HTML attachment was scrubbed... URL: From isy21 at ...1082... Fri Nov 11 11:28:07 2005 From: isy21 at ...1082... (Ignatius Syofian) Date: Fri, 11 Nov 2005 17:28:07 +0700 Subject: [Gambas-user] Sample using .begin, commit and roolback in mysql In-Reply-To: <12e18d6c0511110149m6a3d106cp@...627...> References: <200511111455.31583.isy21@...1082...> <12e18d6c0511110149m6a3d106cp@...627...> Message-ID: <200511111728.08404.isy21@...1082...> On Friday 11 November 2005 16:49, Jose Daniel Santos Delgado wrote: thanks Jose, it so clear... thank you again > It's quite simple. The only thing you must bear in mind is that when > you creates the database tables you must use a Datatype that admits > transactions. For instantce: InnoDB. > > Once you to that, the process is straightforward: > > private m_db as Connection > > private sub whichEver(...) > m_db.Begin () > m_db.Exec("INSERT INTO jander VALUES (1, 'hola', 'bye') > m_db.Exec("INSERT INTO peich VALUES (31, 'a gromena?er') > ' (...) > if ''''' WhatEver must rollback > m_db.RollBack() > endif > > m_db.Commit() > > > end sub > > > > Sorry if it's not a very elaborated answer: ;) > > 2005/11/11, Ignatius Syofian : > > Hi, all > > > > can i have some example using db.begin, db.commit and db.rollback in > > mysql ? > > > > present i use direct update without using db.commit or db.roolback > > > > thanks before > > > > > > -- > > Regards, > > > > Ignatius Syofian > > > > > > > > ------------------------------------------------------- > > SF.Net email is sponsored by: > > Tame your development challenges with Apache's Geronimo App Server. > > Download it for free - -and be entered to win a 42" plasma tv or your > > very own Sony(tm)PSP. Click here to play: > > http://sourceforge.net/geronimo.php > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------- > SF.Net email is sponsored by: > Tame your development challenges with Apache's Geronimo App Server. > Download it for free - -and be entered to win a 42" plasma tv or your very > own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Regards, Ignatius Syofian From gambas at ...1... Fri Nov 11 20:24:14 2005 From: gambas at ...1... (Benoit Minisini) Date: Fri, 11 Nov 2005 20:24:14 +0100 Subject: [Gambas-user] gambas 1.0.13 Message-ID: <200511112024.14594.gambas@...1...> Hi, I just uploaded a new release of the stable version. This release fixes the big Str$() bug in the 1.0.12 version, other bugs in the string / integer conversion routine, and a bug in the QT component that made it crash when an internal message was displayed. I hope there will be no problem anymore in the string to number conversion routines! Regards, -- Benoit Minisini From hscast at ...407... Fri Nov 11 22:06:12 2005 From: hscast at ...407... (Scott Castaline) Date: Fri, 11 Nov 2005 16:06:12 -0500 Subject: [Gambas-user] Dumb question of the year. Message-ID: <437507C4.8060209@...407...> Sorry to bother y'all with this, but as I'm going through the tutorials, I see a lot of "ME" in the code. What is this "ME"? Is it a variable that is hard coded into the interpreter? From sourceforge-raindog2 at ...94... Fri Nov 11 23:05:19 2005 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Fri, 11 Nov 2005 17:05:19 -0500 Subject: [Gambas-user] Dumb question of the year. In-Reply-To: <437507C4.8060209@...407...> References: <437507C4.8060209@...407...> Message-ID: <200511111705.20382.sourceforge-raindog2@...94...> On Fri November 11 2005 16:06, Scott Castaline wrote: > Sorry to bother y'all with this, but as I'm going through the > tutorials, I see a lot of "ME" in the code. What is this "ME"? > Is it a variable that is hard coded into the interpreter? No, it's an easy way to refer to the object in which the code is running (usually a form.) See also "this" in Java or C++. Rob From amon at ...715... Sat Nov 12 00:18:21 2005 From: amon at ...715... (Amon Forstmann) Date: Sat, 12 Nov 2005 00:18:21 +0100 Subject: [Gambas-user] "Extracting" the filename from a full-path string In-Reply-To: <200511111455.31583.isy21@...1082...> References: <200511111455.31583.isy21@...1082...> Message-ID: <1131751102.29124.11.camel@...40...> Hi there, can somebody tell me a way to extract the filenames from the following strings? "/apps/docs/help.txt" or "/usr/src/linux/bla.txt" I need the last field of these strings. The delimiter is always "/" Thanks for your help, Amon From pvera at ...729... Sat Nov 12 01:38:26 2005 From: pvera at ...729... (Pablo Vera) Date: Fri, 11 Nov 2005 18:38:26 -0600 Subject: [Gambas-user] "Extracting" the filename from a full-path string In-Reply-To: <1131751102.29124.11.camel@...40...> References: <200511111455.31583.isy21@...1082...> <1131751102.29124.11.camel@...40...> Message-ID: <43753982.2020700@...729...> Try this: FileName = Mid$(FullPath, RInStr(FullPath, "/") + 1) Saludos, Pablo Vera Amon Forstmann wrote: > Hi there, > > can somebody tell me a way to extract the filenames from the following > strings? > > "/apps/docs/help.txt" or "/usr/src/linux/bla.txt" > > I need the last field of these strings. The delimiter is always "/" > > Thanks for your help, > > Amon > > > > ------------------------------------------------------- > SF.Net email is sponsored by: > Tame your development challenges with Apache's Geronimo App Server. Download > it for free - -and be entered to win a 42" plasma tv or your very own > Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > From alxjvr.gambas at ...626... Sat Nov 12 01:43:46 2005 From: alxjvr.gambas at ...626... (alx jvr) Date: Sat, 12 Nov 2005 08:43:46 +0800 Subject: [Gambas-user] Re: dumping text to printer In-Reply-To: <4f9eca870511110150r554e2d5fq507f1811bda42d22@...627...> References: <4f9eca870511110150r554e2d5fq507f1811bda42d22@...627...> Message-ID: <4f9eca870511111643w19dc4e33m49125d69c8ed49b6@...627...> > > hello! is there something in gambas similar to the ff. code in vb: > > open "lpt1" for output as #1 > print #1, "whatever" > close #1 > > .... that would print the word "whatever" directly to whatever printer is connected on the parallel port on linux? > -------------- next part -------------- An HTML attachment was scrubbed... URL: From hscast at ...407... Sat Nov 12 03:14:55 2005 From: hscast at ...407... (Scott Castaline) Date: Fri, 11 Nov 2005 21:14:55 -0500 Subject: [Gambas-user] Dumb question of the year. In-Reply-To: <200511111705.20382.sourceforge-raindog2@...94...> References: <437507C4.8060209@...407...> <200511111705.20382.sourceforge-raindog2@...94...> Message-ID: <4375501F.10103@...407...> Rob Kudla wrote: >On Fri November 11 2005 16:06, Scott Castaline wrote: > > >>Sorry to bother y'all with this, but as I'm going through the >>tutorials, I see a lot of "ME" in the code. What is this "ME"? >>Is it a variable that is hard coded into the interpreter? >> >> > >No, it's an easy way to refer to the object in which the code is >running (usually a form.) See also "this" in Java or C++. > >Rob > > >------------------------------------------------------- >SF.Net email is sponsored by: >Tame your development challenges with Apache's Geronimo App Server. Download >it for free - -and be entered to win a 42" plasma tv or your very own >Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php >_______________________________________________ >Gambas-user mailing list >Gambas-user at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/gambas-user > > > In otherwords a shorthand for the parent object? From oreip at ...1... Sat Nov 12 05:23:14 2005 From: oreip at ...1... (PV) Date: Sat, 12 Nov 2005 05:23:14 +0100 Subject: [Gambas-user] "Extracting" the filename from a full-path string In-Reply-To: <1131751102.29124.11.camel@...40...> References: <200511111455.31583.isy21@...1082...> <1131751102.29124.11.camel@...40...> Message-ID: <43756E32.3050703@...1...> On 12/11/2005 00:18, Amon Forstmann wrote: > Hi there, > > can somebody tell me a way to extract the filenames from the following > strings? > > "/apps/docs/help.txt" or "/usr/src/linux/bla.txt" > > I need the last field of these strings. The delimiter is always "/" filename = File.Name("/usr/src/linux/bla.txt") Ciao, Piero From amon at ...715... Sat Nov 12 12:26:39 2005 From: amon at ...715... (Amon Forstmann) Date: Sat, 12 Nov 2005 12:26:39 +0100 Subject: [Gambas-user] "Extracting" the filename from a full-path string In-Reply-To: <43756E32.3050703@...1...> References: <200511111455.31583.isy21@...1082...> <1131751102.29124.11.camel@...40...> <43756E32.3050703@...1...> Message-ID: <1131794799.7791.3.camel@...40...> Thank you it works :) Am Samstag, den 12.11.2005, 05:23 +0100 schrieb PV: > On 12/11/2005 00:18, Amon Forstmann wrote: > > Hi there, > > > > can somebody tell me a way to extract the filenames from the following > > strings? > > > > "/apps/docs/help.txt" or "/usr/src/linux/bla.txt" > > > > I need the last field of these strings. The delimiter is always "/" > > filename = File.Name("/usr/src/linux/bla.txt") > > > Ciao, > Piero > > > ------------------------------------------------------- > SF.Net email is sponsored by: > Tame your development challenges with Apache's Geronimo App Server. Download > it for free - -and be entered to win a 42" plasma tv or your very own > Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Sat Nov 12 13:37:29 2005 From: gambas at ...1... (Benoit Minisini) Date: Sat, 12 Nov 2005 13:37:29 +0100 Subject: [Gambas-user] Re: dumping text to printer In-Reply-To: <4f9eca870511111643w19dc4e33m49125d69c8ed49b6@...627...> References: <4f9eca870511110150r554e2d5fq507f1811bda42d22@...627...> <4f9eca870511111643w19dc4e33m49125d69c8ed49b6@...627...> Message-ID: <200511121337.29637.gambas@...1...> On Saturday 12 November 2005 01:43, alx jvr wrote: > > hello! is there something in gambas similar to the ff. code in vb: > > > > open "lpt1" for output as #1 > > print #1, "whatever" > > close #1 > > > > .... that would print the word "whatever" directly to whatever > > printer is connected on the parallel port on linux? On Linux, parallel ports are named /dev/lp0, /dev/lp1... But you should never send data directly to these devices (most of the time, you didn't have the rights for doing that...). You must use the printer sub-system. Nowadays, Linux use the CUPS system to manage printers. You send data to the printer by using a command like 'lpr'. You can use the kprinter program, if you use KDE. But then you get a KDE print configuration dialog, like what you got on Windows. It depends on what you want to do exactly... -- Benoit Minisini From gambas at ...1... Sat Nov 12 13:41:52 2005 From: gambas at ...1... (Benoit Minisini) Date: Sat, 12 Nov 2005 13:41:52 +0100 Subject: [Gambas-user] Dumb question of the year. In-Reply-To: <4375501F.10103@...407...> References: <437507C4.8060209@...407...> <200511111705.20382.sourceforge-raindog2@...94...> <4375501F.10103@...407...> Message-ID: <200511121341.52893.gambas@...1...> On Saturday 12 November 2005 03:14, Scott Castaline wrote: > > In otherwords a shorthand for the parent object? > No. A shorthand to the *current* object. ME is the only way to access properties and methods of the current object. In gambas, any code is executed in the context of a current class and a current object. If you run static code (i.e. code in a static method, or in a module), then the current class is the module or the class where the method is declared, and there is no current object (it is NULL). If you run a method or an event handler of a Form, then the current class is the form class, and the current object the instance of the form. The *parent* object means, in Gambas, given an object A, the other object B that receives all events from A. Regards, -- Benoit Minisini From amon at ...715... Sat Nov 12 22:02:21 2005 From: amon at ...715... (Amon Forstmann) Date: Sat, 12 Nov 2005 22:02:21 +0100 Subject: [Gambas-user] UNEXPECTED AS error - Process management Message-ID: <1131829341.10805.5.camel@...40...> Hi there, I'm using gambas2 and everytime I want to assign a processname i get an "unexpected as" error. public processlist as process [...] SHELL "ftpls -Rm -u " & serverusername & " -p " & serverpassword & " " & serverip & ":" & serverport & " >" & tmplist WAIT AS processlist What am I doing wrong? Thanks for your help, Amon From na2492 at ...9... Sat Nov 12 23:18:09 2005 From: na2492 at ...9... (Charlie Reinl) Date: Sat, 12 Nov 2005 23:18:09 00100 Subject: [Gambas-user] UNEXPECTED AS error - Process management Message-ID: <43766a21.504a.0@...9...> >Hi there, > >I'm using gambas2 and everytime I want to assign a processname i get an >"unexpected as" error. > > > >public processlist as process > >[...] > >SHELL "ftpls -Rm -u " & serverusername & " -p " & serverpassword & " " & >serverip & ":" & serverport & " >" & tmplist WAIT AS processlist > > > >What am I doing wrong? > >Thanks for your help, >Amon > Salut, have a look to http://64.128.110.55/help/lang/exec You will remark, that the syntax has changed. Amicalment Charlie * Gesendet mit / Sent by: FEN-Webmail * http://www.fen-net.de * From dcamposf at ...626... Sun Nov 13 18:04:29 2005 From: dcamposf at ...626... (Daniel Campos) Date: Sun, 13 Nov 2005 18:04:29 +0100 Subject: [Gambas-user] "Extracting" the filename from a full-path string In-Reply-To: <1131794799.7791.3.camel@...40...> References: <200511111455.31583.isy21@...1082...> <1131751102.29124.11.camel@...40...> <43756E32.3050703@...1...> <1131794799.7791.3.camel@...40...> Message-ID: <7259b5ae0511130904j35bf2f54u@...627...> Some functions: http://64.128.110.55/help/comp/gb/file/basename http://64.128.110.55/help/comp/gb/file/ext http://64.128.110.55/help/comp/gb/file/name Regards, D. Campos 2005/11/12, Amon Forstmann : > Thank you it works :) > > > > > Am Samstag, den 12.11.2005, 05:23 +0100 schrieb PV: > > On 12/11/2005 00:18, Amon Forstmann wrote: > > > Hi there, > > > > > > can somebody tell me a way to extract the filenames from the following > > > strings? > > > > > > "/apps/docs/help.txt" or "/usr/src/linux/bla.txt" > > > > > > I need the last field of these strings. The delimiter is always "/" > > > > filename = File.Name("/usr/src/linux/bla.txt") > > > > > > Ciao, > > Piero > > > > > > ------------------------------------------------------- > > SF.Net email is sponsored by: > > Tame your development challenges with Apache's Geronimo App Server. Download > > it for free - -and be entered to win a 42" plasma tv or your very own > > Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------- > SF.Net email is sponsored by: > Tame your development challenges with Apache's Geronimo App Server. Download > it for free - -and be entered to win a 42" plasma tv or your very own > Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From amon at ...715... Sun Nov 13 19:35:31 2005 From: amon at ...715... (Amon Forstmann) Date: Sun, 13 Nov 2005 19:35:31 +0100 Subject: [Gambas-user] "Extracting" the filename from a full-path string In-Reply-To: <7259b5ae0511130904j35bf2f54u@...627...> References: <200511111455.31583.isy21@...1082...> <1131751102.29124.11.camel@...40...> <43756E32.3050703@...1...> <1131794799.7791.3.camel@...40...> <7259b5ae0511130904j35bf2f54u@...627...> Message-ID: <1131906931.27743.2.camel@...40...> Nice :) That's really helpful. Regards, Amon Am Sonntag, den 13.11.2005, 18:04 +0100 schrieb Daniel Campos: > Some functions: > > http://64.128.110.55/help/comp/gb/file/basename > http://64.128.110.55/help/comp/gb/file/ext > http://64.128.110.55/help/comp/gb/file/name > > Regards, > > D. Campos > > 2005/11/12, Amon Forstmann : > > Thank you it works :) > > > > > > > > > > Am Samstag, den 12.11.2005, 05:23 +0100 schrieb PV: > > > On 12/11/2005 00:18, Amon Forstmann wrote: > > > > Hi there, > > > > > > > > can somebody tell me a way to extract the filenames from the following > > > > strings? > > > > > > > > "/apps/docs/help.txt" or "/usr/src/linux/bla.txt" > > > > > > > > I need the last field of these strings. The delimiter is always "/" > > > > > > filename = File.Name("/usr/src/linux/bla.txt") > > > > > > > > > Ciao, > > > Piero > > > > > > > > > ------------------------------------------------------- > > > SF.Net email is sponsored by: > > > Tame your development challenges with Apache's Geronimo App Server. Download > > > it for free - -and be entered to win a 42" plasma tv or your very own > > > Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > ------------------------------------------------------- > > SF.Net email is sponsored by: > > Tame your development challenges with Apache's Geronimo App Server. Download > > it for free - -and be entered to win a 42" plasma tv or your very own > > Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > ------------------------------------------------------- > SF.Net email is sponsored by: > Tame your development challenges with Apache's Geronimo App Server. Download > it for free - -and be entered to win a 42" plasma tv or your very own > Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From kztyrvlq at ...966... Sun Nov 13 19:46:07 2005 From: kztyrvlq at ...966... (A Person) Date: Sun, 13 Nov 2005 15:16:07 -0330 Subject: [Gambas-user] Scheduling a Task Message-ID: <437789EF.9060606@...966...> Sunday, 13 November 2005 Good Day All . . . Please help me. I tried to schedule a gambas app in 1.0.11 to run at regular intervals through KCron but nothing happens. The event time passes and nothing. It is probably similar to when I click on a Gambas app and KDE wants to know which app to use to start it. My work around is to start the app in KCron with: "gambas /home/.../greminder" This works but I do not know if it is the best solution. I cannot find anything to associate to the file unless I end all my executables with say, ".gbs" and associate Gambas to that extension. Any suggestions? Paul From gambas at ...1... Sun Nov 13 20:00:23 2005 From: gambas at ...1... (Benoit Minisini) Date: Sun, 13 Nov 2005 20:00:23 +0100 Subject: [Gambas-user] Scheduling a Task In-Reply-To: <437789EF.9060606@...966...> References: <437789EF.9060606@...966...> Message-ID: <200511132000.23672.gambas@...1...> On Sunday 13 November 2005 19:46, A Person wrote: > Sunday, 13 November 2005 > > Good Day All . . . > > Please help me. > > I tried to schedule a gambas app in 1.0.11 to run at regular intervals > through KCron but nothing happens. The event time passes and nothing. > > It is probably similar to when I click on a Gambas app and KDE wants to > know which app to use to start it. > > My work around is to start the app in KCron with: > > "gambas /home/.../greminder" > > This works but I do not know if it is the best solution. I cannot find > anything to associate to the file unless I end all my executables with > say, ".gbs" and associate Gambas to that extension. > > Any suggestions? > > Paul > Just making an executable and using it like any other script should work without any problem. -- Benoit Minisini From kztyrvlq at ...966... Sun Nov 13 23:09:08 2005 From: kztyrvlq at ...966... (A Person) Date: Sun, 13 Nov 2005 18:39:08 -0330 Subject: [Gambas-user] Re: Scheduling a Task Message-ID: <4377B984.2050207@...966...> Sunday, 13 November 2005 Benoit, Thank You for the quick reply. I cannot start a Gambas program by clicking on it. Further investigation suggests that "gambas $Home/gambas_executable" does not work. FYI, 1. If I load into a desktop icon, it starts. 2. If I "Run Command," it starts. 3. If I click in Konqueror, it does not start. Window asks what program to use. If I type in Gambas I get an error message ending with, "Not a directory:(name of project)/.project "Project.ReadProject.1243" then the normal splash screen appears. 4. Will not start by double-clicking in Krusader. 5. Permissions, executable checked. 6. KCron does not start a Gambas program. I loaded a text editor five minutes before and five minutes after. Both started but not the Gambas app. One very unusual thing. usr/bin/gambas does not display as an executable file in Konqueror. Specifically the tooltip displays, Name: gambas Type: Unknown Size: 1.7MB (1,752,004) Modified: 2005-09-05 15:29 Owner: root - root Permissions: -rwxr-xr-x In my environment, executable files are a blue wheel type icon. gambas displays as a 'page' icon. My install was through rpms and not the YaST updater. I will assume that the install was flawed and I will reload. YaST does show 1.0.11 available. I hope that the screwed up SuSE files are repaired. Will follow-up. Paul From gambas at ...1... Sun Nov 13 23:16:26 2005 From: gambas at ...1... (Benoit Minisini) Date: Sun, 13 Nov 2005 23:16:26 +0100 Subject: [Gambas-user] Re: Scheduling a Task In-Reply-To: <4377B984.2050207@...966...> References: <4377B984.2050207@...966...> Message-ID: <200511132316.26843.gambas@...1...> On Sunday 13 November 2005 23:09, A Person wrote: > Sunday, 13 November 2005 > > Benoit, Thank You for the quick reply. > > I cannot start a Gambas program by clicking on it. Further investigation > suggests that "gambas $Home/gambas_executable" does not work. > > FYI, > > 1. If I load into a desktop icon, it starts. > 2. If I "Run Command," it starts. > 3. If I click in Konqueror, it does not start. Window asks what program > to use. If I type in Gambas I get an error message ending with, > > "Not a directory:(name of project)/.project > "Project.ReadProject.1243" /usr/bin/gambas *does not* run gambas programs. It is the development environment. The interpreter is /usr/bin/gbx. > > then the normal splash screen appears. > > 4. Will not start by double-clicking in Krusader. > 5. Permissions, executable checked. > 6. KCron does not start a Gambas program. I loaded a text editor five > minutes before and five minutes after. Both started but not the Gambas app. > > One very unusual thing. usr/bin/gambas does not display as an executable > file in Konqueror. Specifically the tooltip displays, > > Name: gambas > Type: Unknown > Size: 1.7MB (1,752,004) > Modified: 2005-09-05 15:29 > Owner: root - root > Permissions: -rwxr-xr-x > > In my environment, executable files are a blue wheel type icon. gambas > displays as a 'page' icon. > This is a KDE problem: setting the executable flags on a file does not automatically make Konqueror run it when you click it. Konqueror tries to guess the type of the file you click from a text file, and this text file knows nothing about gambas programs. > My install was through rpms and not the YaST updater. > > I will assume that the install was flawed and I will reload. YaST does > show 1.0.11 available. I hope that the screwed up SuSE files are > repaired. Will follow-up. > > Paul > > Regards, -- Benoit Minisini From kztyrvlq at ...966... Sun Nov 13 23:36:01 2005 From: kztyrvlq at ...966... (A Person) Date: Sun, 13 Nov 2005 19:06:01 -0330 Subject: [Gambas-user] Re: Re: Scheduling a task Message-ID: <4377BFD1.1040606@...966...> Sunday, 13 November 2005 Benoit Please regard the part of my last message about reloading 1.0.11. I checked and the version has bumped up to 1.0.12. 1.0.11 is no longer available. Paul From andre.gambas at ...626... Mon Nov 14 19:20:51 2005 From: andre.gambas at ...626... (Andre Saccomani) Date: Mon, 14 Nov 2005 16:20:51 -0200 Subject: [Gambas-user] Overload the form close? Message-ID: <4d3e14360511141020v47d29734p3c815d12725b1f8d@...627...> Hi, I'm making a simple software to my father that will allow him to estabilish/drop his PPPoE connection. I'm making a program that lays on the KDE tray bar. when he double click the tray icon, a dialog box apears. By default the box have the regular minimize/close buttons on the upper right corner. that is where my problems are. I want to change the minimize/close buttons behavior. I want that both do the exactly same thing, that is: Minimize the program back to tray, without closing it. I want that the only way to close the program be trough a righ click/exit over the tray icon. so... Is therer anyhow to change the minimize/close buttons behavior? make them minimize my program to tray instead of closing it? It would be very usefull to prevent an undesired close. Thanks, Andre Silveira -------------- next part -------------- An HTML attachment was scrubbed... URL: From andre.gambas at ...626... Mon Nov 14 19:35:38 2005 From: andre.gambas at ...626... (Andre Saccomani) Date: Mon, 14 Nov 2005 16:35:38 -0200 Subject: [Gambas-user] Re: Overload the form close? In-Reply-To: <4d3e14360511141020v47d29734p3c815d12725b1f8d@...627...> References: <4d3e14360511141020v47d29734p3c815d12725b1f8d@...627...> Message-ID: <4d3e14360511141035td3d5a96v8bfbc4115db3bfb6@...627...> I could workaround the minimize problem by using the form_deactivate function. I have put a MainDlg.Hide into it, and that solved the minimize problems. However, I couldn't find anything to put in the form_close that could make it change its behavior. Does anybody knows how to deal with the form_close? Andre On 11/14/05, Andre Saccomani wrote: > > Hi, > > I'm making a simple software to my father that will allow him to > estabilish/drop his PPPoE connection. I'm making a program that lays on the > KDE tray bar. when he double click the tray icon, a dialog box apears. By > default the box have the regular minimize/close buttons on the upper right > corner. that is where my problems are. I want to change the minimize/close > buttons behavior. I want that both do the exactly same thing, that is: > Minimize the program back to tray, without closing it. I want that the > only way to close the program be trough a righ click/exit over the tray > icon. > so... > Is therer anyhow to change the minimize/close buttons behavior? make them > minimize my program to tray instead of closing it? It would be very usefull > to prevent an undesired close. > > > Thanks, > Andre Silveira > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas at ...1... Mon Nov 14 21:06:43 2005 From: gambas at ...1... (Benoit Minisini) Date: Mon, 14 Nov 2005 21:06:43 +0100 Subject: [Gambas-user] Re: Overload the form close? In-Reply-To: <4d3e14360511141035td3d5a96v8bfbc4115db3bfb6@...627...> References: <4d3e14360511141020v47d29734p3c815d12725b1f8d@...627...> <4d3e14360511141035td3d5a96v8bfbc4115db3bfb6@...627...> Message-ID: <200511142106.43705.gambas@...1...> On Monday 14 November 2005 19:35, Andre Saccomani wrote: > I could workaround the minimize problem by using the form_deactivate > function. I have put a MainDlg.Hide into it, and that solved the minimize > problems. However, I couldn't find anything to put in the form_close that > could make it change its behavior. Does anybody knows how to deal with the > form_close? > > Andre > > On 11/14/05, Andre Saccomani wrote: > > Hi, > > > > I'm making a simple software to my father that will allow him to > > estabilish/drop his PPPoE connection. I'm making a program that lays on > > the KDE tray bar. when he double click the tray icon, a dialog box > > apears. By default the box have the regular minimize/close buttons on the > > upper right corner. that is where my problems are. I want to change the > > minimize/close buttons behavior. I want that both do the exactly same > > thing, that is: Minimize the program back to tray, without closing it. I > > want that the only way to close the program be trough a righ click/exit > > over the tray icon. > > so... > > Is therer anyhow to change the minimize/close buttons behavior? make them > > minimize my program to tray instead of closing it? It would be very > > usefull to prevent an undesired close. > > > > > > Thanks, > > Andre Silveira Did you try to cancel the form_close event, and to minimize the window in it ? -- Benoit Minisini From andre.gambas at ...626... Mon Nov 14 21:55:52 2005 From: andre.gambas at ...626... (Andre Saccomani) Date: Mon, 14 Nov 2005 18:55:52 -0200 Subject: [Gambas-user] Re: Overload the form close? In-Reply-To: <200511142106.43705.gambas@...1...> References: <4d3e14360511141020v47d29734p3c815d12725b1f8d@...627...> <4d3e14360511141035td3d5a96v8bfbc4115db3bfb6@...627...> <200511142106.43705.gambas@...1...> Message-ID: <4d3e14360511141255i196e825cpebac3f06f00f39fe@...627...> Thanks Benoit, It worked perfectly. Now going off-topic. can you help me on more time? More difficult this time. I dont want to allow two instances of my program running at the same time. So I want to check if my program is already running. If so, I do not want to allow a second instance. This part is easy to be achieved, so let me move forward: Is there anyway to send a signal to a linux PID? and if so, is there a way to catch these signals in a gambas application? So when I try to open a second instance of my program, it would check if is there one already running and then it could send a signal to the first instance before exit. This signal would cause my program (the first instance) do do a dlgMain.Show, or something like this. restoring it from tray. I'm not sure if this is possible using gambas, but if possible, can you give a tip of how to achieve that? Thanks in advance, Andre On 11/14/05, Benoit Minisini wrote: > > On Monday 14 November 2005 19:35, Andre Saccomani wrote: > > I could workaround the minimize problem by using the form_deactivate > > function. I have put a MainDlg.Hide into it, and that solved the > minimize > > problems. However, I couldn't find anything to put in the form_close > that > > could make it change its behavior. Does anybody knows how to deal with > the > > form_close? > > > > Andre > > > > On 11/14/05, Andre Saccomani wrote: > > > Hi, > > > > > > I'm making a simple software to my father that will allow him to > > > estabilish/drop his PPPoE connection. I'm making a program that lays > on > > > the KDE tray bar. when he double click the tray icon, a dialog box > > > apears. By default the box have the regular minimize/close buttons on > the > > > upper right corner. that is where my problems are. I want to change > the > > > minimize/close buttons behavior. I want that both do the exactly same > > > thing, that is: Minimize the program back to tray, without closing it. > I > > > want that the only way to close the program be trough a righ > click/exit > > > over the tray icon. > > > so... > > > Is therer anyhow to change the minimize/close buttons behavior? make > them > > > minimize my program to tray instead of closing it? It would be very > > > usefull to prevent an undesired close. > > > > > > > > > Thanks, > > > Andre Silveira > > Did you try to cancel the form_close event, and to minimize the window in > it ? > > -- > Benoit Minisini > > > > ------------------------------------------------------- > SF.Net email is sponsored by: > Tame your development challenges with Apache's Geronimo App Server. > Download > it for free - -and be entered to win a 42" plasma tv or your very own > Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -------------- next part -------------- An HTML attachment was scrubbed... URL: From amon at ...715... Tue Nov 15 21:51:05 2005 From: amon at ...715... (Amon Forstmann) Date: Tue, 15 Nov 2005 21:51:05 +0100 Subject: [Gambas-user] UNEXPECTED AS error - Process management In-Reply-To: <43766a21.504a.0@...9...> References: <43766a21.504a.0@...9...> Message-ID: <1132087865.15948.5.camel@...40...> Hi there, I tried my best to change my code to use the new process management syntax. Sadly without much success. Could someone provide an example with 2 Shell or Exec commands and the proper object.attach parts? Thank you, Amon Am Samstag, den 12.11.2005, 23:18 +0100 schrieb Charlie Reinl: > >Hi there, > > > >I'm using gambas2 and everytime I want to assign a processname i get an > >"unexpected as" error. > > > > > > > >public processlist as process > > > >[...] > > > >SHELL "ftpls -Rm -u " & serverusername & " -p " & serverpassword & " " & > >serverip & ":" & serverport & " >" & tmplist WAIT AS processlist > > > > > > > >What am I doing wrong? > > > >Thanks for your help, > >Amon > > > Salut, > > have a look to http://64.128.110.55/help/lang/exec > > You will remark, that the syntax has changed. > > Amicalment > Charlie > * Gesendet mit / Sent by: FEN-Webmail * http://www.fen-net.de * > > > ------------------------------------------------------- > SF.Net email is sponsored by: > Tame your development challenges with Apache's Geronimo App Server. Download > it for free - -and be entered to win a 42" plasma tv or your very own > Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Wed Nov 16 00:12:07 2005 From: gambas at ...1... (Benoit Minisini) Date: Wed, 16 Nov 2005 00:12:07 +0100 Subject: [Gambas-user] UNEXPECTED AS error - Process management In-Reply-To: <1132087865.15948.5.camel@...40...> References: <43766a21.504a.0@...9...> <1132087865.15948.5.camel@...40...> Message-ID: <200511160012.07649.gambas@...1...> On Tuesday 15 November 2005 21:51, Amon Forstmann wrote: > Hi there, > > I tried my best to change my code to use the new process management > syntax. Sadly without much success. > > Could someone provide an example with 2 Shell or Exec commands and the > proper object.attach parts? > > Thank you, > > Amon > Logically, you just have to replace SHELL/EXEC xxxxxxxxxxxxx AS process By: process = SHELL/EXEC xxxxxxxxxxxxx Regards, -- Benoit Minisini From simonart.dominique at ...11... Wed Nov 16 00:42:01 2005 From: simonart.dominique at ...11... (Dominique SIMONART) Date: Wed, 16 Nov 2005 00:42:01 +0100 Subject: [Gambas-user] Return code 245 from SDL Message-ID: <200511160042.01902.simonart.dominique@...11...> Hi, I written a Master Mind program and it work correctly until I want to start a newgame. Then I got a message "le programme a retourn? 245" and it crash. On a window beside, I can read something about a 'parachute d?ploy? dans SDL" (Yes, a frenchie here!). The exact place where the crash appears is in this precise loop FOR L = 0 to 9 frmJeu.grdElem[L,0].Picture = frmJeu.picImage[71].Picture NEXT when L = 3. This is always at the same place, whatever the first game was. These lines ran without problem the first time. I don't change anything in the declaration of the 2 things, and they are used many times in the first game. The code is in a module, the GridView and the Picture array are in the main Form. All is running in IDE environment I run Gambas 1.6 in SuSE 9.2 Could you help me? Dominique From simonart.dominique at ...11... Wed Nov 16 01:59:38 2005 From: simonart.dominique at ...11... (Dominique SIMONART) Date: Wed, 16 Nov 2005 01:59:38 +0100 Subject: [Gambas-user] Return code 245 from SDL In-Reply-To: <200511160042.01902.simonart.dominique@...11...> References: <200511160042.01902.simonart.dominique@...11...> Message-ID: <200511160159.39533.simonart.dominique@...11...> Le Mercredi 16 Novembre 2005 00:42, Dominique SIMONART a ?crit?: > Hi, > I written a Master Mind program and it work correctly until I want to > start a newgame. Then I got a message "le programme a retourn? 245" > and it crash. On a window beside, I can read something about a > 'parachute d?ploy? dans SDL" (Yes, a frenchie here!). The exact place > where the crash appears is in this precise loop > > FOR L = 0 to 9 > frmJeu.grdElem[L,0].Picture = frmJeu.picImage[71].Picture > NEXT > > when L = 3. This is always at the same place, whatever the first > game was. These lines ran without problem the first time. > I don't change anything in the declaration of the 2 things, and they are > used many times in the first game. > The code is in a module, the GridView and the Picture array are in > the main Form. All is running in IDE environment > I run Gambas 1.6 in SuSE 9.2 > Could you help me? > Dominique > Correction: FOR L = 0 TO 9 frmJeu.grdElem[L,0].Picture = frmJeu.picImage[71+L].Picture NEXT note: The array contains 89 pictures (24x24 pixels) Dominique From samba at ...1218... Wed Nov 16 16:00:59 2005 From: samba at ...1218... (bimbo) Date: Wed, 16 Nov 2005 15:00:59 +0000 Subject: [Gambas-user] compilation error Message-ID: <437B49AB.9040105@...1218...> My system : Slackware-current Gambas Version : gambas2-1.9.21 Below the error : Making all in gb.v4l make[2]: Entering directory `/home/bimbo/gambas2-1.9.21/gb.v4l' make all-recursive make[3]: Entering directory `/home/bimbo/gambas2-1.9.21/gb.v4l' Making all in src make[4]: Entering directory `/home/bimbo/gambas2-1.9.21/gb.v4l/src' if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -pipe -Wall -fno-strict-aliasing -Wno-unused-value -g -Os -MT main.lo -MD -MP -MF ".deps/main.Tpo" -c -o main.lo main.c; \ then mv -f ".deps/main.Tpo" ".deps/main.Plo"; else rm -f ".deps/main.Tpo"; exit 1; fi mkdir .libs gcc -DHAVE_CONFIG_H -I. -I. -I.. -pipe -Wall -fno-strict-aliasing -Wno-unused-value -g -Os -MT main.lo -MD -MP -MF .deps/main.Tpo -c main.c -fPIC -DPIC -o .libs/main.o if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -pipe -Wall -fno-strict-aliasing -Wno-unused-value -g -Os -MT CWebcam.lo -MD -MP -MF ".deps/CWebcam.Tpo" -c -o CWebcam.lo CWebcam.c; \ then mv -f ".deps/CWebcam.Tpo" ".deps/CWebcam.Plo"; else rm -f ".deps/CWebcam.Tpo"; exit 1; fi gcc -DHAVE_CONFIG_H -I. -I. -I.. -pipe -Wall -fno-strict-aliasing -Wno-unused-value -g -Os -MT CWebcam.lo -MD -MP -MF .deps/CWebcam.Tpo -c CWebcam.c -fPIC -DPIC -o .libs/CWebcam.o CWebcam.c: In function `CFEATURES_driver': CWebcam.c:927: error: storage size of `vcap' isn't known CWebcam.c:929: error: `VIDIOC_QUERYCAP' undeclared (first use in this function) CWebcam.c:929: error: (Each undeclared identifier is reported only once CWebcam.c:929: error: for each function it appears in.) CWebcam.c:927: warning: unused variable `vcap' CWebcam.c: In function `CFEATURES_bus': CWebcam.c:942: error: storage size of `vcap' isn't known CWebcam.c:944: error: `VIDIOC_QUERYCAP' undeclared (first use in this function) CWebcam.c:942: warning: unused variable `vcap' CWebcam.c: In function `CFEATURES_version': CWebcam.c:958: error: storage size of `vcap' isn't known CWebcam.c:960: error: `VIDIOC_QUERYCAP' undeclared (first use in this function) CWebcam.c:958: warning: unused variable `vcap' CWebcam.c: In function `CTUNER_low': CWebcam.c:1040: error: storage size of `vfreq' isn't known CWebcam.c:1046: error: `VIDIOC_G_FREQUENCY' undeclared (first use in this function) CWebcam.c:1051: error: `V4L2_TUNER_CAP_LOW' undeclared (first use in this function) CWebcam.c:1040: warning: unused variable `vfreq' CWebcam.c: In function `CTUNER_frequency': CWebcam.c:1070: error: storage size of `vfreq' isn't known CWebcam.c:1077: error: `VIDIOC_G_FREQUENCY' undeclared (first use in this function) CWebcam.c:1088: error: `VIDIOC_S_FREQUENCY' undeclared (first use in this function) CWebcam.c:1070: warning: unused variable `vfreq' make[4]: *** [CWebcam.lo] Error 1 make[4]: Leaving directory `/home/bimbo/gambas2-1.9.21/gb.v4l/src' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/home/bimbo/gambas2-1.9.21/gb.v4l' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/bimbo/gambas2-1.9.21/gb.v4l' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/bimbo/gambas2-1.9.21' make: *** [all] Error 2 Have you got any ideas? Thanks From amon at ...715... Wed Nov 16 20:08:21 2005 From: amon at ...715... (Amon Forstmann) Date: Wed, 16 Nov 2005 20:08:21 +0100 Subject: [Gambas-user] UNEXPECTED AS error - Process management In-Reply-To: <200511160012.07649.gambas@...1...> References: <43766a21.504a.0@...9...> <1132087865.15948.5.camel@...40...> <200511160012.07649.gambas@...1...> Message-ID: <1132168101.14741.0.camel@...40...> Thank you, it's easier than I thought. Regards, Amon Am Mittwoch, den 16.11.2005, 00:12 +0100 schrieb Benoit Minisini: > On Tuesday 15 November 2005 21:51, Amon Forstmann wrote: > > Hi there, > > > > I tried my best to change my code to use the new process management > > syntax. Sadly without much success. > > > > Could someone provide an example with 2 Shell or Exec commands and the > > proper object.attach parts? > > > > Thank you, > > > > Amon > > > > Logically, you just have to replace > > SHELL/EXEC xxxxxxxxxxxxx AS process > > By: > > process = SHELL/EXEC xxxxxxxxxxxxx > > Regards, > From na2492 at ...9... Wed Nov 16 21:14:35 2005 From: na2492 at ...9... (Charlie Reinl) Date: Wed, 16 Nov 2005 21:14:35 +0100 Subject: [Gambas-user] UNEXPECTED AS error - Process management In-Reply-To: <1132168101.14741.0.camel@...40...> References: <43766a21.504a.0@...9...> <1132087865.15948.5.camel@...40...> <200511160012.07649.gambas@...1...> <1132168101.14741.0.camel@...40...> Message-ID: <1132172076.7490.2.camel@...37...> Am Mittwoch, den 16.11.2005, 20:08 +0100 schrieb Amon Forstmann: > Thank you, > > it's easier than I thought. > > > Regards, > > Amon > Salut, with a look to http://64.128.110.55/help/lang/exec as I told you, you would have find it out by yourself ealier. Amicalment Charlie From maddox.the.god at ...626... Wed Nov 16 22:21:45 2005 From: maddox.the.god at ...626... (sale ranisavljevic) Date: Wed, 16 Nov 2005 22:21:45 +0100 Subject: [Gambas-user] rpm problem Message-ID: <73a2ceff0511161321g116fe4dat8137e45f474cebed@...627...> Hello all Gambas users. At first, sorry about my English, it's bad :-( I have compiled gambas version 1.9.21, and it works OK. I create simple Hello World app, and now I want to build rpm for Mandriva. When I do this I get output: Creating package for MandrakeLinux. Initializing ~/RPM directory. Creating source package. Creating .spec file. Creating RPM packages. The package build has failed. There is this output in console: Executing(%prep): /bin/sh -e /home/sale/RPM/tmp/rpm-tmp.63498 + umask 022 + cd /home/sale/RPM/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + rm -rf /home/sale/RPM/tmp/calculator-buildroot + cd /home/sale/RPM/BUILD + rm -rf Calculator + /usr/bin/bzip2 -dc /home/sale/RPM/SOURCES/calculator-0.0.tar.bz2 + tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd Calculator + exit 0 Executing(%build): /bin/sh -e /home/sale/RPM/tmp/rpm-tmp.63498 + umask 022 + cd /home/sale/RPM/BUILD + cd Calculator + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + /usr/local/bin/gbc2 -a OK + gba /home/sale/RPM/tmp/rpm-tmp.63498: line 27: gba: command not found error: Bad exit status from /home/sale/RPM/tmp/rpm-tmp.63498 (%build) I have try "whereis gba" and return was: gba: I don't have gba installed. Can someone tell me how to fix this problem? From andre.gambas at ...626... Wed Nov 16 23:50:38 2005 From: andre.gambas at ...626... (Andre Saccomani) Date: Wed, 16 Nov 2005 20:50:38 -0200 Subject: [Gambas-user] Send a signal do a PID. Is it possible? Message-ID: <4d3e14360511161450j23d573a9hf3adace82568a102@...627...> i Is there anyway to send a signal to a linux PID? and if so, is there a way to catch these signals in a gambas application? So when I try to open a second instance of my program, it would check if is there one already running and then it could send a signal to the first instance before exit. This signal would cause my program (the first instance) do do a dlgMain.Show, or something like this. restoring it from tray. Hi, I would like to make a software that allows only one instance of it running at same time. So when someone try to open a second instance of the program, it would look if there is one already running, and if there is, I would like to make this second instance to exit. But before exit, I want it to send a message to the first instance. Is there anyway to do that? send a message to a program by having its PID? If possible, how can I send a message to a PID and how do I handle received messages? Thanks in advance, Andre -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas at ...1... Thu Nov 17 00:12:03 2005 From: gambas at ...1... (Benoit Minisini) Date: Thu, 17 Nov 2005 00:12:03 +0100 Subject: [Gambas-user] Send a signal do a PID. Is it possible? In-Reply-To: <4d3e14360511161450j23d573a9hf3adace82568a102@...627...> References: <4d3e14360511161450j23d573a9hf3adace82568a102@...627...> Message-ID: <200511170012.03686.gambas@...1...> On Wednesday 16 November 2005 23:50, Andre Saccomani wrote: > i > Is there anyway to send a signal to a linux PID? and if so, is there a way > to catch these signals in a gambas application? So when I try to open a > second instance of my program, it would check if is there one already > running and then it could send a signal to the first instance before exit. > This signal would cause my program (the first instance) do do a > dlgMain.Show, or something like this. restoring it from tray. > Hi, > I would like to make a software that allows only one instance of it > running at same time. So when someone try to open a second instance of the > program, it would look if there is one already running, and if there is, I > would like to make this second instance to exit. > But before exit, I want it to send a message to the first instance. Is > there anyway to do that? send a message to a program by having its PID? > If possible, how can I send a message to a PID and how do I handle received > messages? > Thanks in advance, > Andre The problem cannot be solved entirely in Gambas at the moment. But you first must understand that running a software "once" is more subtil on Unix than on Windows. Does "once" means: - Only one process for this executable and for one user on the same system? - Only one process for this executable and for one user on the same display/desktop? With X-Window, processes and displays can have the network between them, so two processes from two different systems can run on the same desktop, and two processes from the same system can run on two different desktops. If your program is a GUI program, running a program "once" usually means: only one process for this executable for this display/desktop. KDE solved this problem with the DCOP protocol: the application registered to the DCOP server, and if it was already registered, then it knows that another was already started. It can then warn the first application instance with a DCOP message. It could be possible to implement this registration by storing an X11 property in the display root window. Then, there will be the problem of sending the first registered application that another one was launched. Something to implement... Last point, there is no way to catch signals in a Gambas application. Regards, -- Benoit Minisini From isy21 at ...1082... Thu Nov 17 03:34:26 2005 From: isy21 at ...1082... (Ignatius Syofian) Date: Thu, 17 Nov 2005 09:34:26 +0700 Subject: [Gambas-user] Store Procedure Message-ID: <200511170934.26687.isy21@...1082...> Hi, all Just want to ask, is there possible to running store procedure mysql5 ? Using gambas 1.0.13, SUSE 10 and MySQL5 Thanks -- Regards, Ignatius Syofian From andre.gambas at ...626... Thu Nov 17 04:26:41 2005 From: andre.gambas at ...626... (Andre Saccomani) Date: Thu, 17 Nov 2005 03:26:41 +0000 Subject: [Gambas-user] Send a signal do a PID. Is it possible? In-Reply-To: <200511170012.03686.gambas@...1...> References: <4d3e14360511161450j23d573a9hf3adace82568a102@...627...> <200511170012.03686.gambas@...1...> Message-ID: <4d3e14360511161926v78b07863rf6d32a1a844fd533@...627...> Thanks for the answer Benoit. My program is a simple GUI, and send a signal to other running program was just a Nice to have, and not a Must have. Regarding the one instance only. I just wanted to prevent the end user to forget that the program is already in the tray and open it again. So I wanted to restore the program from tray instead of open a new. The only one instance issue can be easily work arounded with a little of bash and EXEC [ ] for READ. :) Thanks again Benoit. Andre. On 11/16/05, Benoit Minisini wrote: > > On Wednesday 16 November 2005 23:50, Andre Saccomani wrote: > > i > > Is there anyway to send a signal to a linux PID? and if so, is there a > way > > to catch these signals in a gambas application? So when I try to open a > > second instance of my program, it would check if is there one already > > running and then it could send a signal to the first instance before > exit. > > This signal would cause my program (the first instance) do do a > > dlgMain.Show, or something like this. restoring it from tray. > > Hi, > > I would like to make a software that allows only one instance of it > > running at same time. So when someone try to open a second instance of > the > > program, it would look if there is one already running, and if there is, > I > > would like to make this second instance to exit. > > But before exit, I want it to send a message to the first instance. Is > > there anyway to do that? send a message to a program by having its PID? > > If possible, how can I send a message to a PID and how do I handle > received > > messages? > > Thanks in advance, > > Andre > > The problem cannot be solved entirely in Gambas at the moment. > > But you first must understand that running a software "once" is more > subtil on > Unix than on Windows. > > Does "once" means: > - Only one process for this executable and for one user on the same > system? > - Only one process for this executable and for one user on the same > display/desktop? > > With X-Window, processes and displays can have the network between them, > so > two processes from two different systems can run on the same desktop, and > two > processes from the same system can run on two different desktops. > > If your program is a GUI program, running a program "once" usually means: > only > one process for this executable for this display/desktop. > > KDE solved this problem with the DCOP protocol: the application registered > to > the DCOP server, and if it was already registered, then it knows that > another > was already started. It can then warn the first application instance with > a > DCOP message. > > It could be possible to implement this registration by storing an X11 > property > in the display root window. Then, there will be the problem of sending the > first registered application that another one was launched. Something to > implement... > > Last point, there is no way to catch signals in a Gambas application. > > Regards, > > -- > Benoit Minisini > > > > ------------------------------------------------------- > This SF.Net email is sponsored by the JBoss Inc. Get Certified Today > Register for a JBoss Training Course. Free Certification Exam > for All Training Attendees Through End of 2005. For more info visit: > http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -------------- next part -------------- An HTML attachment was scrubbed... URL: From andre.gambas at ...626... Thu Nov 17 04:30:01 2005 From: andre.gambas at ...626... (Andre Saccomani) Date: Thu, 17 Nov 2005 03:30:01 +0000 Subject: [Gambas-user] rpm problem In-Reply-To: <73a2ceff0511161321g116fe4dat8137e45f474cebed@...627...> References: <73a2ceff0511161321g116fe4dat8137e45f474cebed@...627...> Message-ID: <4d3e14360511161930v7f936d25y938122b6c94cf7bc@...627...> try a find /usr |grep gba and check if it exists. On my system, it is located at /usr/local/bin/gba2 Actually... on my system it is gba2 and not gba. try the command I told you and check where is it, and if it exists. :) Regards On 11/16/05, sale ranisavljevic wrote: > > Hello all Gambas users. > > At first, sorry about my English, it's bad :-( > I have compiled gambas version 1.9.21, and it works OK. I create > simple Hello World app, and now I want to build rpm for Mandriva. When > I do this I get output: > > Creating package for MandrakeLinux. > Initializing ~/RPM directory. > Creating source package. > Creating .spec file. > Creating RPM packages. > > > The package build has failed. > > There is this output in console: > > Executing(%prep): /bin/sh -e /home/sale/RPM/tmp/rpm-tmp.63498 > + umask 022 > + cd /home/sale/RPM/BUILD > + '[' 1 -eq 1 ']' > + '[' 1 -eq 1 ']' > + '[' 1 -eq 1 ']' > + rm -rf /home/sale/RPM/tmp/calculator-buildroot > + cd /home/sale/RPM/BUILD > + rm -rf Calculator > + /usr/bin/bzip2 -dc /home/sale/RPM/SOURCES/calculator-0.0.tar.bz2 > + tar -xf - > + STATUS=0 > + '[' 0 -ne 0 ']' > + cd Calculator > + exit 0 > Executing(%build): /bin/sh -e /home/sale/RPM/tmp/rpm-tmp.63498 > + umask 022 > + cd /home/sale/RPM/BUILD > + cd Calculator > + '[' 1 -eq 1 ']' > + '[' 1 -eq 1 ']' > + /usr/local/bin/gbc2 -a > OK > + gba > /home/sale/RPM/tmp/rpm-tmp.63498: line 27: gba: command not found > error: Bad exit status from /home/sale/RPM/tmp/rpm-tmp.63498 (%build) > > I have try "whereis gba" and return was: > gba: > > I don't have gba installed. > > Can someone tell me how to fix this problem? > > > ------------------------------------------------------- > This SF.Net email is sponsored by the JBoss Inc. Get Certified Today > Register for a JBoss Training Course. Free Certification Exam > for All Training Attendees Through End of 2005. For more info visit: > http://ads.osdn.com/?ad_idv28&alloc_id845&opclick > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -------------- next part -------------- An HTML attachment was scrubbed... URL: From andre.gambas at ...626... Thu Nov 17 04:33:05 2005 From: andre.gambas at ...626... (Andre Saccomani) Date: Thu, 17 Nov 2005 03:33:05 +0000 Subject: [Gambas-user] compilation error In-Reply-To: <437B49AB.9040105@...1218...> References: <437B49AB.9040105@...1218...> Message-ID: <4d3e14360511161933i7ec97baey56154fa1f36a693d@...627...> If I remember correctly, V4L stands for Video for Linux. You probably doesn't have V4L installed on your system, that is probably why it is failing. I had the same problem, but since I had no use for V4L module, I just disabled it in the ./configure. You can also disable the V4L module, If you think that you will not use it. Or you can install the required packages before recompile gambas. Regards, Andre On 11/16/05, bimbo wrote: > > My system : Slackware-current > Gambas Version : gambas2-1.9.21 > > Below the error : > > Making all in gb.v4l > make[2]: Entering directory `/home/bimbo/gambas2-1.9.21/gb.v4l' > make all-recursive > make[3]: Entering directory `/home/bimbo/gambas2-1.9.21/gb.v4l' > Making all in src > make[4]: Entering directory `/home/bimbo/gambas2-1.9.21/gb.v4l/src' > if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. > -I. -I.. -pipe -Wall -fno-strict-aliasing -Wno-unused-value -g -Os > -MT main.lo -MD -MP -MF ".deps/main.Tpo" -c -o main.lo main.c; \ > then mv -f ".deps/main.Tpo" ".deps/main.Plo"; else rm -f > ".deps/main.Tpo"; exit 1; fi > mkdir .libs > gcc -DHAVE_CONFIG_H -I. -I. -I.. -pipe -Wall -fno-strict-aliasing > -Wno-unused-value -g -Os -MT main.lo -MD -MP -MF .deps/main.Tpo -c > main.c -fPIC -DPIC -o .libs/main.o > if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. > -I. -I.. -pipe -Wall -fno-strict-aliasing -Wno-unused-value -g -Os > -MT CWebcam.lo -MD -MP -MF ".deps/CWebcam.Tpo" -c -o CWebcam.lo CWebcam.c; > \ > then mv -f ".deps/CWebcam.Tpo" ".deps/CWebcam.Plo"; else rm -f > ".deps/CWebcam.Tpo"; exit 1; fi > gcc -DHAVE_CONFIG_H -I. -I. -I.. -pipe -Wall -fno-strict-aliasing > -Wno-unused-value -g -Os -MT CWebcam.lo -MD -MP -MF .deps/CWebcam.Tpo -c > CWebcam.c -fPIC -DPIC -o .libs/CWebcam.o > CWebcam.c: In function `CFEATURES_driver': > CWebcam.c:927: error: storage size of `vcap' isn't known > CWebcam.c:929: error: `VIDIOC_QUERYCAP' undeclared (first use in this > function) > CWebcam.c:929: error: (Each undeclared identifier is reported only once > CWebcam.c:929: error: for each function it appears in.) > CWebcam.c:927: warning: unused variable `vcap' > CWebcam.c: In function `CFEATURES_bus': > CWebcam.c:942: error: storage size of `vcap' isn't known > CWebcam.c:944: error: `VIDIOC_QUERYCAP' undeclared (first use in this > function) > CWebcam.c:942: warning: unused variable `vcap' > CWebcam.c: In function `CFEATURES_version': > CWebcam.c:958: error: storage size of `vcap' isn't known > CWebcam.c:960: error: `VIDIOC_QUERYCAP' undeclared (first use in this > function) > CWebcam.c:958: warning: unused variable `vcap' > CWebcam.c: In function `CTUNER_low': > CWebcam.c:1040: error: storage size of `vfreq' isn't known > CWebcam.c:1046: error: `VIDIOC_G_FREQUENCY' undeclared (first use in > this function) > CWebcam.c:1051: error: `V4L2_TUNER_CAP_LOW' undeclared (first use in > this function) > CWebcam.c:1040: warning: unused variable `vfreq' > CWebcam.c: In function `CTUNER_frequency': > CWebcam.c:1070: error: storage size of `vfreq' isn't known > CWebcam.c:1077: error: `VIDIOC_G_FREQUENCY' undeclared (first use in > this function) > CWebcam.c:1088: error: `VIDIOC_S_FREQUENCY' undeclared (first use in > this function) > CWebcam.c:1070: warning: unused variable `vfreq' > make[4]: *** [CWebcam.lo] Error 1 > make[4]: Leaving directory `/home/bimbo/gambas2-1.9.21/gb.v4l/src' > make[3]: *** [all-recursive] Error 1 > make[3]: Leaving directory `/home/bimbo/gambas2-1.9.21/gb.v4l' > make[2]: *** [all] Error 2 > make[2]: Leaving directory `/home/bimbo/gambas2-1.9.21/gb.v4l' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/home/bimbo/gambas2-1.9.21' > make: *** [all] Error 2 > > > Have you got any ideas? > > Thanks > > > ------------------------------------------------------- > This SF.Net email is sponsored by the JBoss Inc. Get Certified Today > Register for a JBoss Training Course. Free Certification Exam > for All Training Attendees Through End of 2005. For more info visit: > http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -------------- next part -------------- An HTML attachment was scrubbed... URL: From stefanopalmeri at ...152... Thu Nov 17 05:06:57 2005 From: stefanopalmeri at ...152... (Stefano Palmeri) Date: Thu, 17 Nov 2005 05:06:57 +0100 Subject: [Gambas-user] compilation error In-Reply-To: <437B49AB.9040105@...1218...> References: <437B49AB.9040105@...1218...> Message-ID: <200511170506.57738.stefanopalmeri@...152...> Hi. Probably you need a 2.6.x kernel source for compiling gb.vl4 component. If you're running a 2.4 kernel, try to disable that component when ./configure. Ciao. Alle 16:00, mercoled? 16 novembre 2005, bimbo ha scritto: > My system : Slackware-current > Gambas Version : gambas2-1.9.21 > > Below the error : > > Making all in gb.v4l > make[2]: Entering directory `/home/bimbo/gambas2-1.9.21/gb.v4l' > make all-recursive > make[3]: Entering directory `/home/bimbo/gambas2-1.9.21/gb.v4l' > Making all in src > make[4]: Entering directory `/home/bimbo/gambas2-1.9.21/gb.v4l/src' > if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. > -I. -I.. -pipe -Wall -fno-strict-aliasing -Wno-unused-value -g -Os > -MT main.lo -MD -MP -MF ".deps/main.Tpo" -c -o main.lo main.c; \ > then mv -f ".deps/main.Tpo" ".deps/main.Plo"; else rm -f > ".deps/main.Tpo"; exit 1; fi > mkdir .libs > gcc -DHAVE_CONFIG_H -I. -I. -I.. -pipe -Wall -fno-strict-aliasing > -Wno-unused-value -g -Os -MT main.lo -MD -MP -MF .deps/main.Tpo -c > main.c -fPIC -DPIC -o .libs/main.o > if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. > -I. -I.. -pipe -Wall -fno-strict-aliasing -Wno-unused-value -g -Os > -MT CWebcam.lo -MD -MP -MF ".deps/CWebcam.Tpo" -c -o CWebcam.lo CWebcam.c; \ > then mv -f ".deps/CWebcam.Tpo" ".deps/CWebcam.Plo"; else rm -f > ".deps/CWebcam.Tpo"; exit 1; fi > gcc -DHAVE_CONFIG_H -I. -I. -I.. -pipe -Wall -fno-strict-aliasing > -Wno-unused-value -g -Os -MT CWebcam.lo -MD -MP -MF .deps/CWebcam.Tpo -c > CWebcam.c -fPIC -DPIC -o .libs/CWebcam.o > CWebcam.c: In function `CFEATURES_driver': > CWebcam.c:927: error: storage size of `vcap' isn't known > CWebcam.c:929: error: `VIDIOC_QUERYCAP' undeclared (first use in this > function) > CWebcam.c:929: error: (Each undeclared identifier is reported only once > CWebcam.c:929: error: for each function it appears in.) > CWebcam.c:927: warning: unused variable `vcap' > CWebcam.c: In function `CFEATURES_bus': > CWebcam.c:942: error: storage size of `vcap' isn't known > CWebcam.c:944: error: `VIDIOC_QUERYCAP' undeclared (first use in this > function) > CWebcam.c:942: warning: unused variable `vcap' > CWebcam.c: In function `CFEATURES_version': > CWebcam.c:958: error: storage size of `vcap' isn't known > CWebcam.c:960: error: `VIDIOC_QUERYCAP' undeclared (first use in this > function) > CWebcam.c:958: warning: unused variable `vcap' > CWebcam.c: In function `CTUNER_low': > CWebcam.c:1040: error: storage size of `vfreq' isn't known > CWebcam.c:1046: error: `VIDIOC_G_FREQUENCY' undeclared (first use in > this function) > CWebcam.c:1051: error: `V4L2_TUNER_CAP_LOW' undeclared (first use in > this function) > CWebcam.c:1040: warning: unused variable `vfreq' > CWebcam.c: In function `CTUNER_frequency': > CWebcam.c:1070: error: storage size of `vfreq' isn't known > CWebcam.c:1077: error: `VIDIOC_G_FREQUENCY' undeclared (first use in > this function) > CWebcam.c:1088: error: `VIDIOC_S_FREQUENCY' undeclared (first use in > this function) > CWebcam.c:1070: warning: unused variable `vfreq' > make[4]: *** [CWebcam.lo] Error 1 > make[4]: Leaving directory `/home/bimbo/gambas2-1.9.21/gb.v4l/src' > make[3]: *** [all-recursive] Error 1 > make[3]: Leaving directory `/home/bimbo/gambas2-1.9.21/gb.v4l' > make[2]: *** [all] Error 2 > make[2]: Leaving directory `/home/bimbo/gambas2-1.9.21/gb.v4l' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/home/bimbo/gambas2-1.9.21' > make: *** [all] Error 2 > > > Have you got any ideas? > > Thanks > > > ------------------------------------------------------- > This SF.Net email is sponsored by the JBoss Inc. Get Certified Today > Register for a JBoss Training Course. Free Certification Exam > for All Training Attendees Through End of 2005. For more info visit: > http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Thu Nov 17 05:13:50 2005 From: gambas at ...1... (Benoit Minisini) Date: Thu, 17 Nov 2005 05:13:50 +0100 Subject: [Gambas-user] rpm problem In-Reply-To: <73a2ceff0511161321g116fe4dat8137e45f474cebed@...627...> References: <73a2ceff0511161321g116fe4dat8137e45f474cebed@...627...> Message-ID: <200511170513.50714.gambas@...1...> On Wednesday 16 November 2005 22:21, sale ranisavljevic wrote: > Hello all Gambas users. > > At first, sorry about my English, it's bad :-( > I have compiled gambas version 1.9.21, and it works OK. I create > simple Hello World app, and now I want to build rpm for Mandriva. When > I do this I get output: > > Creating package for MandrakeLinux. > Initializing ~/RPM directory. > Creating source package. > Creating .spec file. > Creating RPM packages. > > > The package build has failed. > > There is this output in console: > > Executing(%prep): /bin/sh -e /home/sale/RPM/tmp/rpm-tmp.63498 > + umask 022 > + cd /home/sale/RPM/BUILD > + '[' 1 -eq 1 ']' > + '[' 1 -eq 1 ']' > + '[' 1 -eq 1 ']' > + rm -rf /home/sale/RPM/tmp/calculator-buildroot > + cd /home/sale/RPM/BUILD > + rm -rf Calculator > + /usr/bin/bzip2 -dc /home/sale/RPM/SOURCES/calculator-0.0.tar.bz2 > + tar -xf - > + STATUS=0 > + '[' 0 -ne 0 ']' > + cd Calculator > + exit 0 > Executing(%build): /bin/sh -e /home/sale/RPM/tmp/rpm-tmp.63498 > + umask 022 > + cd /home/sale/RPM/BUILD > + cd Calculator > + '[' 1 -eq 1 ']' > + '[' 1 -eq 1 ']' > + /usr/local/bin/gbc2 -a > OK > + gba > /home/sale/RPM/tmp/rpm-tmp.63498: line 27: gba: command not found > error: Bad exit status from /home/sale/RPM/tmp/rpm-tmp.63498 (%build) > > I have try "whereis gba" and return was: > gba: > > I don't have gba installed. > > Can someone tell me how to fix this problem? > Making RPM package with the IDE is deprecated in 1.9.x version. The code needs a bit of rewrite... Don't use it. Regards, -- Benoit Minisini From nigel at ...38... Thu Nov 17 10:38:16 2005 From: nigel at ...38... (nigel at ...38...) Date: Thu, 17 Nov 2005 10:38:16 +0100 (CET) Subject: [Gambas-user] Store Procedure Message-ID: <32239355.1132220296738.JavaMail.www@...792...> There is nothing specifically defined for calling a stored procedure through gambas. You could give it a go using the exec command - I have not moved to mysql 5 yet so am uncertain as to the success :-) Nigel > Message Received: Nov 17 2005, 02:38 AM > From: "Ignatius Syofian" > To: gambas-user at lists.sourceforge.net > Cc: > Subject: [Gambas-user] Store Procedure > > Hi, all > > > Just want to ask, is there possible to running store procedure mysql5 ? > > Using gambas 1.0.13, SUSE 10 and MySQL5 > > Thanks > > > -- > Regards, > > Ignatius Syofian > > > ------------------------------------------------------- > This SF.Net email is sponsored by the JBoss Inc. Get Certified Today > Register for a JBoss Training Course. Free Certification Exam > for All Training Attendees Through End of 2005. For more info visit: > http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From josemar_mariano at ...494... Thu Nov 17 11:56:14 2005 From: josemar_mariano at ...494... (Josemar) Date: Thu, 17 Nov 2005 07:56:14 -0300 Subject: [Gambas-user] inheritance Message-ID: <437C61CE.8050004@...494...> hi how to inheritance in gambas ? tks --- avast! Antivirus: Outbound message clean. Virus Database (VPS): 0546-3, 16/11/2005 Tested on: 17/11/2005 07:56:16 avast! - copyright (c) 1988-2004 ALWIL Software. http://www.avast.com _______________________________________________________ Yahoo! Acesso Gr?tis: Internet r?pida e gr?tis. Instale o discador agora! http://br.acesso.yahoo.com/ From lordheavy at ...512... Thu Nov 17 14:10:57 2005 From: lordheavy at ...512... (lordheavy) Date: Thu, 17 Nov 2005 14:10:57 +0100 Subject: [Gambas-user] Return code 245 from SDL In-Reply-To: <200511160159.39533.simonart.dominique@...11...> References: <200511160042.01902.simonart.dominique@...11...> <200511160159.39533.simonart.dominique@...11...> Message-ID: <200511171410.58060.lordheavy@...512...> Le Mercredi 16 Novembre 2005 01:59, Dominique SIMONART a ?crit?: > Le Mercredi 16 Novembre 2005 00:42, Dominique SIMONART a ?crit?: > > Hi, > > I written a Master Mind program and it work correctly until I want to > > start a newgame. Then I got a message "le programme a retourn? 245" > > and it crash. On a window beside, I can read something about a > > 'parachute d?ploy? dans SDL" (Yes, a frenchie here!). The exact place > > where the crash appears is in this precise loop Yes ! another frenchie ! :) > > > > FOR L = 0 to 9 > > frmJeu.grdElem[L,0].Picture = frmJeu.picImage[71].Picture > > NEXT > > > > when L = 3. This is always at the same place, whatever the first > > game was. These lines ran without problem the first time. > > I don't change anything in the declaration of the 2 things, and they are > > used many times in the first game. > > The code is in a module, the GridView and the Picture array are in > > the main Form. All is running in IDE environment > > I run Gambas 1.6 in SuSE 9.2 > > Could you help me? > > Dominique > > Correction: > FOR L = 0 TO 9 > frmJeu.grdElem[L,0].Picture = frmJeu.picImage[71+L].Picture > NEXT > > note: The array contains 89 pictures (24x24 pixels) > Dominique > Could you send me your project ? or send me a link to it so i could take a look at. Regards, -- jabber : lordheavy at ...943... mail : lordheavy at ...1220... From maddox.the.god at ...626... Thu Nov 17 21:18:00 2005 From: maddox.the.god at ...626... (sale ranisavljevic) Date: Thu, 17 Nov 2005 21:18:00 +0100 Subject: [Gambas-user] rpm problem Message-ID: <73a2ceff0511171218pec22fc1y60133cc8bc146e82@...627...> Ok, there is /usr/local/bin/gba2. What to do next? From samba at ...1218... Thu Nov 17 22:40:04 2005 From: samba at ...1218... (bimbo) Date: Thu, 17 Nov 2005 21:40:04 +0000 Subject: [Gambas-user] compilation error In-Reply-To: <4d3e14360511161933i7ec97baey56154fa1f36a693d@...627...> References: <437B49AB.9040105@...1218...> <4d3e14360511161933i7ec97baey56154fa1f36a693d@...627...> Message-ID: <437CF8B4.4090803@...1218...> Andre Saccomani ha scritto: > If I remember correctly, V4L stands for Video for Linux. > You probably doesn't have V4L installed on your system, that is probably > why it is failing. > I had the same problem, but since I had no use for V4L module, I just > disabled it in the ./configure. > You can also disable the V4L module, If you think that you will not use > it. Or you can install the required packages before recompile gambas. I'm using V4L support with gnomemeeting and CPIA Webcam. I don't believe it depends to V4L. From samba at ...1218... Thu Nov 17 22:41:41 2005 From: samba at ...1218... (bimbo) Date: Thu, 17 Nov 2005 21:41:41 +0000 Subject: [Gambas-user] compilation error In-Reply-To: <200511170506.57738.stefanopalmeri@...152...> References: <437B49AB.9040105@...1218...> <200511170506.57738.stefanopalmeri@...152...> Message-ID: <437CF915.9020508@...1218...> Stefano Palmeri ha scritto: > Hi. Probably you need a 2.6.x kernel source for > compiling gb.vl4 component. If you're running a 2.4 kernel, > try to disable that component when ./configure. I have 2.6.13.1 kernel sources From alxjvr.gambas at ...626... Fri Nov 18 01:34:41 2005 From: alxjvr.gambas at ...626... (alx jvr) Date: Fri, 18 Nov 2005 08:34:41 +0800 Subject: [Gambas-user] Re: dumping text to printer In-Reply-To: <200511121337.29637.gambas@...1...> References: <4f9eca870511110150r554e2d5fq507f1811bda42d22@...627...> <4f9eca870511111643w19dc4e33m49125d69c8ed49b6@...627...> <200511121337.29637.gambas@...1...> Message-ID: <4f9eca870511171634m7fdd0fcalb6368127ec1c0517@...627...> hi, sorry for the late response, was on vacation. thanks for the tip benoit. will check it out On 11/12/05, Benoit Minisini wrote: > > On Saturday 12 November 2005 01:43, alx jvr wrote: > > > hello! is there something in gambas similar to the ff. code in vb: > > > > > > open "lpt1" for output as #1 > > > print #1, "whatever" > > > close #1 > > > > > > .... that would print the word "whatever" directly to whatever > > > > printer is connected on the parallel port on linux? > > On Linux, parallel ports are named /dev/lp0, /dev/lp1... > > But you should never send data directly to these devices (most of the > time, > you didn't have the rights for doing that...). > > You must use the printer sub-system. Nowadays, Linux use the CUPS system > to > manage printers. > > You send data to the printer by using a command like 'lpr'. > > You can use the kprinter program, if you use KDE. But then you get a KDE > print > configuration dialog, like what you got on Windows. > > It depends on what you want to do exactly... > > -- > Benoit Minisini > > > > ------------------------------------------------------- > SF.Net email is sponsored by: > Tame your development challenges with Apache's Geronimo App Server. > Download > it for free - -and be entered to win a 42" plasma tv or your very own > Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -------------- next part -------------- An HTML attachment was scrubbed... URL: From stefanopalmeri at ...152... Fri Nov 18 19:02:29 2005 From: stefanopalmeri at ...152... (Stefano Palmeri) Date: Fri, 18 Nov 2005 19:02:29 +0100 Subject: [Gambas-user] compilation error In-Reply-To: <437CF915.9020508@...1218...> References: <437B49AB.9040105@...1218...> <200511170506.57738.stefanopalmeri@...152...> <437CF915.9020508@...1218...> Message-ID: <200511181902.29558.stefanopalmeri@...152...> Alle 22:41, gioved? 17 novembre 2005, bimbo ha scritto: > Stefano Palmeri ha scritto: > > > Hi. Probably you need a 2.6.x kernel source for > > compiling gb.vl4 component. If you're running a 2.4 kernel, > > try to disable that component when ./configure. > > I have 2.6.13.1 kernel sources > > Hi. I have a stupid question for you. Your /usr/include/asm and /usr/include/linux folders are linked (or perfect copies) to /usr/src/linux-2.6.x/include/asm-i386 and /usr/src/linux-2.6.x/include/linux? I'm running Slackware 10.0 with 2.6.14 vanilla kernel and I compiled the gb.v4l module without errors, after manually upgraded the folders /usr/include/linux and /usr/include/asm ---> /usr/include/asm-i386, left there by the Slackware kernel 2.4.26 installation. Looking into your error log I noticed that all missing variables are related to 2.6 include files. Hope this helps. Bye. Stefano From jdsantos1978 at ...626... Sat Nov 19 11:19:23 2005 From: jdsantos1978 at ...626... (Dani Santos) Date: Sat, 19 Nov 2005 11:19:23 +0100 Subject: [Gambas-user] Encrypt / Decrypt functions under Gambas. In-Reply-To: <200511181902.29558.stefanopalmeri@...152...> References: <437B49AB.9040105@...1218...> <200511170506.57738.stefanopalmeri@...152...> <437CF915.9020508@...1218...> <200511181902.29558.stefanopalmeri@...152...> Message-ID: <1132395563.4320.1.camel@...1222...> Hi all. Does anyone know about any Encrypt / Decrypt functions running under Gambas? I'm looking some similiar to mysql's AES_ENCRYPT / AES_DECRYPT functions. Thanks -- Dani Santos From gambas at ...1... Sat Nov 19 17:36:06 2005 From: gambas at ...1... (Benoit Minisini) Date: Sat, 19 Nov 2005 17:36:06 +0100 Subject: [Gambas-user] Encrypt / Decrypt functions under Gambas. In-Reply-To: <1132395563.4320.1.camel@...1222...> References: <437B49AB.9040105@...1218...> <200511181902.29558.stefanopalmeri@...152...> <1132395563.4320.1.camel@...1222...> Message-ID: <200511191736.06146.gambas@...1...> On Saturday 19 November 2005 11:19, Dani Santos wrote: > Hi all. > > Does anyone know about any Encrypt / Decrypt functions running under > Gambas? > > I'm looking some similiar to mysql's AES_ENCRYPT / AES_DECRYPT > functions. > > Thanks You have crypting functions in the gb.crypt component of the development version. They are sufficient if you need storing encrypted passwords, and checking them. Regards, -- Benoit Minisini From jdsantos1978 at ...626... Sat Nov 19 20:18:03 2005 From: jdsantos1978 at ...626... (Dani Santos) Date: Sat, 19 Nov 2005 20:18:03 +0100 Subject: [Gambas-user] Encrypt / Decrypt functions under Gambas. In-Reply-To: <200511191736.06146.gambas@...1...> References: <437B49AB.9040105@...1218...> <200511181902.29558.stefanopalmeri@...152...> <1132395563.4320.1.camel@...1222...> <200511191736.06146.gambas@...1...> Message-ID: <1132427883.4354.2.camel@...1222...> I've seen the functions in the Crypt component but they do not give me the desired behaviour. I need to crypt a text and decrypt it given a password and there's nothing like that in the component. Thanks and regards. El s?b, 19-11-2005 a las 17:36 +0100, Benoit Minisini escribi?: > On Saturday 19 November 2005 11:19, Dani Santos wrote: > > Hi all. > > > > Does anyone know about any Encrypt / Decrypt functions running under > > Gambas? > > > > I'm looking some similiar to mysql's AES_ENCRYPT / AES_DECRYPT > > functions. > > > > Thanks > > You have crypting functions in the gb.crypt component of the development > version. They are sufficient if you need storing encrypted passwords, and > checking them. > > Regards, > From Karl.Reinl at ...9... Sat Nov 19 21:41:26 2005 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Sat, 19 Nov 2005 21:41:26 +0100 Subject: [Gambas-user] Bug in gambas (both 1.9.21 and 1.0.13) Message-ID: <200511192141.26432.Karl.Reinl@...9...> Salut, seam to be the bug from gambas2-1.9.12 - 14 Jul 2005 * BUG: If a modal window is already displayed, calling Show() on another window calls ShowModal() instead. Amicalment Charlie From gambasfr at ...11... Sat Nov 19 22:05:50 2005 From: gambasfr at ...11... (Fabien Bodard) Date: Sat, 19 Nov 2005 22:05:50 +0100 Subject: [Gambas-user] inheritance In-Reply-To: <437C61CE.8050004@...494...> References: <437C61CE.8050004@...494...> Message-ID: <200511192205.50727.gambasfr@...11...> Le Jeudi 17 Novembre 2005 11:56, Josemar a ?crit?: > hi > how to inheritance in gambas ? > tks > > simply like that : 'Class1, file Property Read MyDate as Date Function read MyDate() as date return Now() end 'Class2 INHERITS Class1 That's all :) In fact ... use gambas2 to have a better inheritance toolkit. You can inherits a class and call the inherited class public properties via the SUPER keyword. It's not a perfect explanation i know... but create a small project and play with inheritance... look at the help too Regards, Fabien Bodard From gambasfr at ...11... Sat Nov 19 22:17:21 2005 From: gambasfr at ...11... (Fabien Bodard) Date: Sat, 19 Nov 2005 22:17:21 +0100 Subject: [Gambas-user] Send a signal do a PID. Is it possible? In-Reply-To: <4d3e14360511161926v78b07863rf6d32a1a844fd533@...627...> References: <4d3e14360511161450j23d573a9hf3adace82568a102@...627...> <200511170012.03686.gambas@...1...> <4d3e14360511161926v78b07863rf6d32a1a844fd533@...627...> Message-ID: <200511192217.21974.gambasfr@...11...> Le Jeudi 17 Novembre 2005 04:26, Andre Saccomani a ?crit?: > Thanks for the answer Benoit. > > My program is a simple GUI, and send a signal to other running program was > just a Nice to have, and not a Must have. > Regarding the one instance only. I just wanted to prevent the end user to > forget that the program is already in the tray and open it again. So I > wanted to restore the program from tray instead of open a new. > The only one instance issue can be easily work arounded with a little of > bash and EXEC [ ] for READ. :) > hum ... mabe by using a unix socket server file ? http://binara.com/gambas-wiki/static/Gambas/GbNetSocket.html Create a socket can allow you two thing : - Manage the number of your launched application by the user or mabe on the system. - allowing the application communication (but you need to create your communication protocol) It's just an idea and i've not tested it... Regards, Fabien Bodard > Thanks again Benoit. > > Andre. > > On 11/16/05, Benoit Minisini wrote: > > On Wednesday 16 November 2005 23:50, Andre Saccomani wrote: > > > i > > > Is there anyway to send a signal to a linux PID? and if so, is there a > > > > way > > > > > to catch these signals in a gambas application? So when I try to open a > > > second instance of my program, it would check if is there one already > > > running and then it could send a signal to the first instance before > > > > exit. > > > > > This signal would cause my program (the first instance) do do a > > > dlgMain.Show, or something like this. restoring it from tray. > > > Hi, > > > I would like to make a software that allows only one instance of it > > > running at same time. So when someone try to open a second instance of > > > > the > > > > > program, it would look if there is one already running, and if there > > > is, > > > > I > > > > > would like to make this second instance to exit. > > > But before exit, I want it to send a message to the first instance. Is > > > there anyway to do that? send a message to a program by having its PID? > > > If possible, how can I send a message to a PID and how do I handle > > > > received > > > > > messages? > > > Thanks in advance, > > > Andre > > > > The problem cannot be solved entirely in Gambas at the moment. > > > > But you first must understand that running a software "once" is more > > subtil on > > Unix than on Windows. > > > > Does "once" means: > > - Only one process for this executable and for one user on the same > > system? > > - Only one process for this executable and for one user on the same > > display/desktop? > > > > With X-Window, processes and displays can have the network between them, > > so > > two processes from two different systems can run on the same desktop, and > > two > > processes from the same system can run on two different desktops. > > > > If your program is a GUI program, running a program "once" usually means: > > only > > one process for this executable for this display/desktop. > > > > KDE solved this problem with the DCOP protocol: the application > > registered to > > the DCOP server, and if it was already registered, then it knows that > > another > > was already started. It can then warn the first application instance with > > a > > DCOP message. > > > > It could be possible to implement this registration by storing an X11 > > property > > in the display root window. Then, there will be the problem of sending > > the first registered application that another one was launched. Something > > to implement... > > > > Last point, there is no way to catch signals in a Gambas application. > > > > Regards, > > > > -- > > Benoit Minisini > > > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by the JBoss Inc. Get Certified Today > > Register for a JBoss Training Course. Free Certification Exam > > for All Training Attendees Through End of 2005. For more info visit: > > http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Sat Nov 19 22:38:09 2005 From: gambas at ...1... (Benoit Minisini) Date: Sat, 19 Nov 2005 22:38:09 +0100 Subject: [Gambas-user] Bug in gambas (both 1.9.21 and 1.0.13) In-Reply-To: <200511192141.26432.Karl.Reinl@...9...> References: <200511192141.26432.Karl.Reinl@...9...> Message-ID: <200511192238.09508.gambas@...1...> On Saturday 19 November 2005 21:41, Charlie Reinl wrote: > Salut, > > seam to be the bug from gambas2-1.9.12 - 14 Jul 2005 > > * BUG: If a modal window is already displayed, calling Show() on another > window calls ShowModal() instead. > > Amicalment > Charlie > In the ChangeLog, a line beginning with "BUG:" is a bug fix. So I don't see what bug you are talking about... -- Benoit Minisini From na2492 at ...9... Sun Nov 20 00:09:28 2005 From: na2492 at ...9... (Charlie Reinl) Date: Sun, 20 Nov 2005 00:09:28 +0100 Subject: [Gambas-user] Bug in gambas (both 1.9.21 and 1.0.13) In-Reply-To: <200511192238.09508.gambas@...1...> References: <200511192141.26432.Karl.Reinl@...9...> <200511192238.09508.gambas@...1...> Message-ID: <1132441768.14618.1.camel@...37...> Am Samstag, den 19.11.2005, 22:38 +0100 schrieb Benoit Minisini: > On Saturday 19 November 2005 21:41, Charlie Reinl wrote: > > Salut, > > > > seam to be the bug from gambas2-1.9.12 - 14 Jul 2005 > > > > * BUG: If a modal window is already displayed, calling Show() on another > > window calls ShowModal() instead. > > > > Amicalment > > Charlie > > > > In the ChangeLog, a line beginning with "BUG:" is a bug fix. So I don't see > what bug you are talking about... This BUG is back again, just test it. charlie From gambas at ...1... Sun Nov 20 00:20:38 2005 From: gambas at ...1... (Benoit Minisini) Date: Sun, 20 Nov 2005 00:20:38 +0100 Subject: [Gambas-user] Bug in gambas (both 1.9.21 and 1.0.13) In-Reply-To: <1132441768.14618.1.camel@...37...> References: <200511192141.26432.Karl.Reinl@...9...> <200511192238.09508.gambas@...1...> <1132441768.14618.1.camel@...37...> Message-ID: <200511200020.38723.gambas@...1...> On Sunday 20 November 2005 00:09, Charlie Reinl wrote: > Am Samstag, den 19.11.2005, 22:38 +0100 schrieb Benoit Minisini: > > On Saturday 19 November 2005 21:41, Charlie Reinl wrote: > > > Salut, > > > > > > seam to be the bug from gambas2-1.9.12 - 14 Jul 2005 > > > > > > * BUG: If a modal window is already displayed, calling Show() on > > > another window calls ShowModal() instead. > > > > > > Amicalment > > > Charlie > > > > In the ChangeLog, a line beginning with "BUG:" is a bug fix. So I don't > > see what bug you are talking about... > > This BUG is back again, just test it. > > charlie > This is not a bug, this is a fix. If a modal window is displayed, all other windows displayed after must be modal. Regards, -- Benoit Minisini From simonart.dominique at ...11... Sun Nov 20 02:35:15 2005 From: simonart.dominique at ...11... (Dominique SIMONART) Date: Sun, 20 Nov 2005 02:35:15 +0100 Subject: [Gambas-user] Return code 245 from SDL In-Reply-To: <200511171410.58060.lordheavy@...512...> References: <200511160042.01902.simonart.dominique@...11...> <200511160159.39533.simonart.dominique@...11...> <200511171410.58060.lordheavy@...512...> Message-ID: <200511200235.15297.simonart.dominique@...11...> Le Jeudi 17 Novembre 2005 14:10, lordheavy a ?crit?: > Le Mercredi 16 Novembre 2005 01:59, Dominique SIMONART a ?crit?: > > Le Mercredi 16 Novembre 2005 00:42, Dominique SIMONART a ?crit?: > > > Hi, > > > I written a Master Mind program and it work correctly until I want to > > > start a newgame. Then I got a message "le programme a retourn? 245" > > > and it crash. On a window beside, I can read something about a > > > 'parachute d?ploy? dans SDL" (Yes, a frenchie here!). The exact place > > > where the crash appears is in this precise loop > ..... > Yes ! another frenchie ! :) > > > Correction: > > FOR L = 0 TO 9 > > frmJeu.grdElem[L,0].Picture = frmJeu.picImage[71+L].Picture > > NEXT > > > > note: The array contains 89 pictures (24x24 pixels) > > Dominique > > Could you send me your project ? or send me a link to it so i could take a > look at. > > Regards, > > -- > jabber : lordheavy at ...943... > mail : lordheavy at ...1220... > Thanks for your reply. Apologies for the delay, but I do not connect each days. About your offer, I'm a bit embarassed due the situation is not the same now: First, as I suspected SDL (Beta in 1.6), I removed all the related code to SDL, then I unchecked SDL components from the project properties The crash was always there, but the message is different (Sure enough, no more SDL!). Now it is Signal #11. Here is the exact text I noted "Le programme s'est arret? de mani?re inattendue en d?clenchant le signal #11" (I've no idea what that means!) Second, I thank my problem coud come from too much graphics (PictureBox, Pictures, etc) so I deeply modified the prog. I reduce the Pictures from 89 to 22, and replaced them by Drawing them (very simple, colored square with a colored letter inside). Well, it was not a big success because the program crash more quickly, during the first game. To investigate a bit, I written a little prog to reproduce the drawing scenario, but even 20.000 iterations doesn't crash anything My conclusion is it is not a coding error but a bad conception. Sure, I could send the project but it is almost 27Meg and I live in a place where ADSL is yet a dream for 2 years. So I just have a 56K modem. Plus, the Gambas project is in a PC without connection (I've moved it near a phone connector to unload Gambas, but now I replaced it in my living room). I will see if a reduced version (no title screen, no sound, few graphics,...) will cause a crash. If yes I will manage to send it to you Could you give me the meaning of the message please, I'm a very beginner in Linux (I don't even know how to launch the exec I produced in Gambas!) Thanks for your help Dominique From gambas at ...1... Sun Nov 20 09:30:48 2005 From: gambas at ...1... (Benoit Minisini) Date: Sun, 20 Nov 2005 09:30:48 +0100 Subject: [Gambas-user] Return code 245 from SDL In-Reply-To: <200511200235.15297.simonart.dominique@...11...> References: <200511160042.01902.simonart.dominique@...11...> <200511171410.58060.lordheavy@...512...> <200511200235.15297.simonart.dominique@...11...> Message-ID: <200511200930.48508.gambas@...1...> On Sunday 20 November 2005 02:35, Dominique SIMONART wrote: > Le Jeudi 17 Novembre 2005 14:10, lordheavy a ?crit?: > > Le Mercredi 16 Novembre 2005 01:59, Dominique SIMONART a ?crit?: > > > Le Mercredi 16 Novembre 2005 00:42, Dominique SIMONART a ?crit?: > > > > Hi, > > > > I written a Master Mind program and it work correctly until I want to > > > > start a newgame. Then I got a message "le programme a retourn? 245" > > > > and it crash. On a window beside, I can read something about a > > > > 'parachute d?ploy? dans SDL" (Yes, a frenchie here!). The exact place > > > > where the crash appears is in this precise loop > > > > ..... > > Yes ! another frenchie ! :) > > > > > Correction: > > > FOR L = 0 TO 9 > > > frmJeu.grdElem[L,0].Picture = frmJeu.picImage[71+L].Picture > > > NEXT > > > > > > note: The array contains 89 pictures (24x24 pixels) > > > Dominique > > > > Could you send me your project ? or send me a link to it so i could take > > a look at. > > > > Regards, > > > > -- > > jabber : lordheavy at ...943... > > mail : lordheavy at ...1220... > > Thanks for your reply. Apologies for the delay, but I do not connect each > days. About your offer, I'm a bit embarassed due the situation is not the > same now: > First, as I suspected SDL (Beta in 1.6), I removed all the related code to > SDL, then I unchecked SDL components from the project properties > The crash was always there, but the message is different (Sure enough, no > more SDL!). Now it is Signal #11. Here is the exact text I noted > > "Le programme s'est arret? de mani?re inattendue en d?clenchant le signal > #11" (I've no idea what that means!) It means that the interpreter crashed. This is not your fault, it is a bug in the Gambas interpreter or compiler. When a program executes illegal code, the Linux kernel send it a "signal" to warn it about that, just before stopping it. This signal has the number 11, and there are many others. Type 'man kill' in a shell to learn more about them. > > Second, I thank my problem coud come from too much graphics (PictureBox, > Pictures, etc) so I deeply modified the prog. I reduce the Pictures from 89 > to 22, and replaced them by Drawing them (very simple, colored square with > a colored letter inside). Well, it was not a big success because the > program crash more quickly, during the first game. No, this is a success if you can reproduce the crash. This mean that it will be easier for me to debug and fix it! Send me your project. If it is too big, just remove all unneeded data files (sounds, pictures), or replace them by smaller ones. There is very small probability that these files cause the crash. > > To investigate a bit, I written a little prog to reproduce the drawing > scenario, but even 20.000 iterations doesn't crash anything > > My conclusion is it is not a coding error but a bad conception. > > Sure, I could send the project but it is almost 27Meg and I live in a place > where ADSL is yet a dream for 2 years. So I just have a 56K modem. Plus, > the Gambas project is in a PC without connection (I've moved it near a > phone connector to unload Gambas, but now I replaced it in my living room). > I will see if a reduced version (no title screen, no sound, few > graphics,...) will cause a crash. If yes I will manage to send it to you > > Could you give me the meaning of the message please, I'm a very beginner in > Linux (I don't even know how to launch the exec I produced in Gambas!) > > Thanks for your help > Dominique > Regards, -- Benoit Minisini From lordheavy at ...512... Sun Nov 20 10:50:02 2005 From: lordheavy at ...512... (lordheavy) Date: Sun, 20 Nov 2005 10:50:02 +0100 Subject: [Gambas-user] Return code 245 from SDL In-Reply-To: <200511200930.48508.gambas@...1...> References: <200511160042.01902.simonart.dominique@...11...> <200511200235.15297.simonart.dominique@...11...> <200511200930.48508.gambas@...1...> Message-ID: <200511201050.02603.lordheavy@...512...> Benoit, You should add SDL_INIT_NOPARACHUTE in init of sdl component of 1.0.x gambas releases, as it prevent sdl to catch fatal signals. see : http://www.libsdl.org/cgi/docwiki.cgi/SDL_5fInit?action=highlight&value=parachute It's already done in 1.9.x releases. Regards, -- jabber : lordheavy at ...943... mail : lordheavym at ...1227... From na2492 at ...9... Sun Nov 20 14:48:30 2005 From: na2492 at ...9... (Charlie Reinl) Date: Sun, 20 Nov 2005 14:48:30 +0100 Subject: [Gambas-user] Bug in gambas (both 1.9.21 and 1.0.13) In-Reply-To: <200511200020.38723.gambas@...1...> References: <200511192141.26432.Karl.Reinl@...9...> <200511192238.09508.gambas@...1...> <1132441768.14618.1.camel@...37...> <200511200020.38723.gambas@...1...> Message-ID: <1132494510.7131.2.camel@...37...> Am Sonntag, den 20.11.2005, 00:20 +0100 schrieb Benoit Minisini: > On Sunday 20 November 2005 00:09, Charlie Reinl wrote: > > Am Samstag, den 19.11.2005, 22:38 +0100 schrieb Benoit Minisini: > > > On Saturday 19 November 2005 21:41, Charlie Reinl wrote: > > > > Salut, > > > > > > > > seam to be the bug from gambas2-1.9.12 - 14 Jul 2005 > > > > > > > > * BUG: If a modal window is already displayed, calling Show() on > > > > another window calls ShowModal() instead. > > > > > > > > Amicalment > > > > Charlie > > > > > > In the ChangeLog, a line beginning with "BUG:" is a bug fix. So I don't > > > see what bug you are talking about... > > > > This BUG is back again, just test it. > > > > charlie > > > > This is not a bug, this is a fix. > > If a modal window is displayed, all other windows displayed after must be > modal. > Salut, sorry for that investigation, I didn't find nothing about that. But now I know. Thanks. Amicalment Charlie From gambas at ...1... Sun Nov 20 20:20:25 2005 From: gambas at ...1... (Benoit Minisini) Date: Sun, 20 Nov 2005 20:20:25 +0100 Subject: [Gambas-user] Return code 245 from SDL In-Reply-To: <200511201050.02603.lordheavy@...512...> References: <200511160042.01902.simonart.dominique@...11...> <200511200930.48508.gambas@...1...> <200511201050.02603.lordheavy@...512...> Message-ID: <200511202020.25488.gambas@...1...> On Sunday 20 November 2005 10:50, lordheavy wrote: > Benoit, > > You should add SDL_INIT_NOPARACHUTE in init of sdl component of 1.0.x > gambas releases, as it prevent sdl to catch fatal signals. > > see : > http://www.libsdl.org/cgi/docwiki.cgi/SDL_5fInit?action=highlight&value=par >achute > > It's already done in 1.9.x releases. > > Regards, OK. -- Benoit Minisini From admin at ...1080... Sun Nov 20 23:04:58 2005 From: admin at ...1080... (Werner Staudacher) Date: Sun, 20 Nov 2005 23:04:58 +0100 Subject: [Gambas-user] Signal #11 Message-ID: <4380F30A.1000000@...1080...> Hi all Since i have Version 1.0.12 installed some project does end with Signal #11 when the first Form should be displayed, after all startup code. So i take a look for diffrents between the running and the stopping projects, and found that it is the progressbar. When i drop them from the Form its okay again. But for some Projects it would be nice to have progressbars :( Staudi PS: Have a Debian 2.6.11 based Distro from Kanotix with KDE From gambas at ...1... Sun Nov 20 23:17:56 2005 From: gambas at ...1... (Benoit Minisini) Date: Sun, 20 Nov 2005 23:17:56 +0100 Subject: [Gambas-user] Signal #11 In-Reply-To: <4380F30A.1000000@...1080...> References: <4380F30A.1000000@...1080...> Message-ID: <200511202317.56713.gambas@...1...> On Sunday 20 November 2005 23:04, Werner Staudacher wrote: > Hi all > > Since i have Version 1.0.12 installed some project does end with Signal > #11 when the first Form should be displayed, after all startup code. > So i take a look for diffrents between the running and the stopping > projects, and found that it is the progressbar. When i drop them from > the Form its okay again. > But for some Projects it would be nice to have progressbars :( > > Staudi > > PS: Have a Debian 2.6.11 based Distro from Kanotix with KDE > Can you send me a project that crashes please? -- Benoit Minisini From webmaster at ...1228... Mon Nov 21 17:50:45 2005 From: webmaster at ...1228... (webmaster at ...1228...) Date: Mon, 21 Nov 2005 17:50:45 +0100 Subject: [Gambas-user] TextAtrea.Selection Message-ID: <4381FAE5.6050704@...1228...> Hi, how can I change the attribute (eg. bold) of text in text area, selected with TextArea.Selection ? Thank's Massimo From sourceforge-raindog2 at ...94... Mon Nov 21 18:17:15 2005 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Mon, 21 Nov 2005 12:17:15 -0500 Subject: [Gambas-user] TextAtrea.Selection In-Reply-To: <4381FAE5.6050704@...1228...> References: <4381FAE5.6050704@...1228...> Message-ID: <200511211217.17310.sourceforge-raindog2@...94...> On Mon November 21 2005 11:50, webmaster at ...1228... wrote: > how can I change the attribute (eg. bold) of text in text > area, selected with TextArea.Selection ? Like the HTML TextArea control, the Gambas TextArea is just a plain text editor. You can display rich text in a TextLabel (using simple HTML formatting), but I don't think anyone's come up with a rich text editor control yet, which is what you'd need to do what you're asking. Rob From gambas-user at lists.sourceforge.net Mon Nov 21 22:41:57 2005 From: gambas-user at lists.sourceforge.net (Werner Staudacher) Date: Mon, 21 Nov 2005 22:41:57 +0100 Subject: [Gambas-user] Signal #11 In-Reply-To: <200511202317.56713.gambas@...1...> References: <4380F30A.1000000@...1080...> <200511202317.56713.gambas@...1...> Message-ID: <43823F25.2050502@lists.sourceforge.net> Benoit Minisini schrieb: >On Sunday 20 November 2005 23:04, Werner Staudacher wrote: > > >>Hi all >> >>Since i have Version 1.0.12 installed some project does end with Signal >>#11 when the first Form should be displayed, after all startup code. >>So i take a look for diffrents between the running and the stopping >>projects, and found that it is the progressbar. When i drop them from >>the Form its okay again. >>But for some Projects it would be nice to have progressbars :( >> >>Staudi >> >>PS: Have a Debian 2.6.11 based Distro from Kanotix with KDE >> >> >> > >Can you send me a project that crashes please? > > > Hi Benoit I found the point: It is the height-value. I want the progressbar only visible if he has to show a action, but i got it never to work this way (to show and refresh by action) when it was not visible at startup. As workaround i let it visible and set the height to 0. Maybe that kind of design is strange ;-) Now with Version 1.0.12 when the control is visible and the height less then 10, the signal #11 occurs, if not visible it works.... but is never visible when in action. Hope this helps, otherwise i can send you the project data. Staudi From gambas at ...1... Mon Nov 21 22:50:03 2005 From: gambas at ...1... (Benoit Minisini) Date: Mon, 21 Nov 2005 22:50:03 +0100 Subject: [Gambas-user] Signal #11 In-Reply-To: <43823F25.2050502@lists.sourceforge.net> References: <4380F30A.1000000@...1080...> <200511202317.56713.gambas@...1...> <43823F25.2050502@lists.sourceforge.net> Message-ID: <200511212250.03793.gambas@...1...> On Monday 21 November 2005 22:41, Werner Staudacher wrote: > Benoit Minisini schrieb: > >On Sunday 20 November 2005 23:04, Werner Staudacher wrote: > >>Hi all > >> > >>Since i have Version 1.0.12 installed some project does end with Signal > >>#11 when the first Form should be displayed, after all startup code. > >>So i take a look for diffrents between the running and the stopping > >>projects, and found that it is the progressbar. When i drop them from > >>the Form its okay again. > >>But for some Projects it would be nice to have progressbars :( > >> > >>Staudi > >> > >>PS: Have a Debian 2.6.11 based Distro from Kanotix with KDE > > > >Can you send me a project that crashes please? > > Hi Benoit > > I found the point: It is the height-value. > I want the progressbar only visible if he has to show a action, but i > got it never to work this way (to show and refresh by action) when it > was not visible at startup. As workaround i let it visible and set the > height to 0. Maybe that kind of design is strange ;-) Now with Version > 1.0.12 when the control is visible and the height less then 10, the > signal #11 occurs, if not visible it works.... but is never visible when > in action. Hope this helps, otherwise i can send you the project data. > > Staudi > I think this is a bug either in QT or, more probably in the KDE style you use. Style are often badly programmed, and don't expect having a progress bar with a too small height! Which KDE style do you use? I use Lipstick, and when the progress bar is too small, I don't have a crash, but many QT warnings about illegal painting actions. Regards, -- Benoit Minisini From dcamposf at ...626... Mon Nov 21 23:19:44 2005 From: dcamposf at ...626... (Daniel Campos) Date: Mon, 21 Nov 2005 23:19:44 +0100 Subject: [Gambas-user] Gambas in Frappr! Message-ID: <7259b5ae0511211419j5a3e0745g@...627...> Hi: I've added a Gambas group to Frappr!: http://www.frappr.com/gambas I've seen it in another page: http://www.sondasespaciales.com And seems to be nice to localize users in the world! Regards, Daniel Campos From simonart.dominique at ...11... Tue Nov 22 00:38:39 2005 From: simonart.dominique at ...11... (Dominique SIMONART) Date: Tue, 22 Nov 2005 00:38:39 +0100 Subject: [Gambas-user] Signal #11 (was Return Code 245 from SDL) Message-ID: <200511220038.39744.simonart.dominique@...11...> Hi everybody, I think I found the origine of the message! Here is how to produce it: a GridView on a Form Form1_Open() grd1.Rows.Count = 1 grd1.Columns.Count = 1 grd1[0,0].Clear grd1[0,0].Picture.Load("myPath" &/ "myFile") ' --> signal #11 END In the real program, I needed to remove the picture in a square of a GridView and, at the start of a new game, I wanted to restore it. So I used these 2 methodes (Clear and Load). The Clear works indeed, but How to restore the picture after? May be I don't understand the goal of the Clear method! About the GridView, I want to add some remarks 1) If a scroll bar is present, then the MouseDown event doesn't always points you on the rigth square. as an example, if you increment the Text value of a square each time you click on it, when you click on another square it is sometimes the first wich is added. WORKAROUND: use the MouseUp event instead. 2) If a scroll bar is present, and if you scroll the Grid, the Scroll event AND the MouseUp event are fired. In the preceding example, the last square will be added during the scroll!! WORKAROUND: in the Scroll event, post a flag to True and test it in the first line of the Mouse event. as an example: PUBLIC ScrollFlag as BOOLEAN PUBLIC SUB grd1.Scroll_Click() ScrollFlag = true ... END PUBLIC SUB grd1.MouseUp_Click() if ScrollFlag then ScrollFlag = FALSE RETURN ENDIF ... END 3) if a scroll bar is present and if you click on the left arrow at the right of the bar, the scroll event is NOT fired, but the MouseUp event IS, so the preceding workaround doesn't work in this case. (the bar looks like | < <|> | and I talk about the second left arrow) WORKAROUND: in the MouseUp event, test Mouse.X and/or Mouse.Y If the cursor is out of the square area, Return. 4) If you want use Text and Picture properties in the same square of a GridView, you have to Draw it! (Just to say I really need an equivalent of the MSHFlexgrid of VB!) I hope this could help somebody Dominique From simonart.dominique at ...11... Tue Nov 22 01:00:20 2005 From: simonart.dominique at ...11... (Dominique SIMONART) Date: Tue, 22 Nov 2005 01:00:20 +0100 Subject: [Gambas-user] Re: Signal #11 Message-ID: <200511220100.20411.simonart.dominique@...11...> Hi everybody, I don't connect very often to internet. BEFORE to connect, I prepared a message to inform you about the evolution of my problem, then I connected to send it, and THEN I saw all of your replies. I'm very confused to not read them BEFORE sending mine. Also, I'm very glad to see how present is the Gambas community! My apologies to all of you to not have reply earlier. By the way, I managed to install Gambas 1.9.21 to my SuSE 10.0. It work fine, but the problem is still there! Regards, Dominique -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas at ...1229... Tue Nov 22 02:40:14 2005 From: gambas at ...1229... (Fabricio Santos) Date: Mon, 21 Nov 2005 20:40:14 -0500 Subject: [Gambas-user] Result is not available Message-ID: In this small piece of code I am insistently getting a meesage box with the following error at runtime: "Result is not available" PUBLIC SUB ComboBox1_Click() DIM res AS Result DIM sql AS String resManager.MoveFirst resManager.MoveTo( ComboBox1.Index) sql = "select city from office" & " where manager_id=" & resManager!id res = conn.Exec(sql) textbox1.Text=res!city END If I watch "ComboBox1.Index" it yelds 0, which is correct. If I watch "resManager!id" it yelds 1, which is also correct. But it stops at line "res = conn.Exec(sql)" with the error above. I am running Gambas 1.0.3. Might this be a bug? I couldn't find much on this front. Thanks in advance for any help. From johnhedge at ...626... Tue Nov 22 07:37:20 2005 From: johnhedge at ...626... (john hedge) Date: Tue, 22 Nov 2005 17:37:20 +1100 Subject: [Gambas-user] Unknown identifier in form.class Message-ID: <6e3a096b0511212237u42436f42n6415ad768558c13f@...627...> Hi, I'm so new at this programming bit that my paint's still wet! :-) I've spent days on this problem. I've reinstalled my o/s and Gambas that many times. I've research the web site, I've Googled but nothing has given me so much as a hint as to what I've not done, done wrong or generally stuffed up. I know it can work as it worked the first time but then I ran into a problem installing Postgresql and had to reinstall which led me to this. (I know how to install Postgresql now :-)) If someone could help, point me in the right direction or explain what this error message is about, I'd certainly be less stressed than I am now. TIA (fingers crossed) John PS. I've attached a screen shot. If it's not enough info. please let me know what I need to include. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Unknown-identifier.jpg Type: image/jpeg Size: 72887 bytes Desc: not available URL: From heinz.sporn at ...1017... Tue Nov 22 07:52:15 2005 From: heinz.sporn at ...1017... (Heinz Sporn) Date: Tue, 22 Nov 2005 07:52:15 +0100 Subject: [Gambas-user] Unknown identifier in form.class In-Reply-To: <6e3a096b0511212237u42436f42n6415ad768558c13f@...627...> References: <6e3a096b0511212237u42436f42n6415ad768558c13f@...627...> Message-ID: <1132642335.9732.10.camel@...1111...> Am Dienstag, den 22.11.2005, 17:37 +1100 schrieb john hedge: > Hi, > > I'm so new at this programming bit that my paint's still wet! :-) > > I've spent days on this problem. I've reinstalled my o/s and Gambas > that many times. I've research the web site, I've Googled but nothing > has given me so much as a hint as to what I've not done, done wrong or > generally stuffed up. > > I know it can work as it worked the first time but then I ran into a > problem installing Postgresql and had to reinstall which led me to > this. (I know how to install Postgresql now :-)) > > If someone could help, point me in the right direction or explain what > this error message is about, I'd certainly be less stressed than I am > now. > Did you actually insert the combobox named combobox1 into your form? I can't see it. Or is it behind the dialog box? > TIA (fingers crossed) > > John > > PS. I've attached a screen shot. If it's not enough info. please let > me know what I need to include. -- Mit freundlichen Gr??en Heinz Sporn SPORN it-freelancing Mobile: ++43 (0)699 / 127 827 07 Email: heinz.sporn at ...1017... heinz.sporn at ...1018... Website: http://www.sporn-it.com Snail: Steyrer Str. 20 A-4540 Bad Hall Austria / Europe From johnhedge at ...626... Tue Nov 22 07:59:37 2005 From: johnhedge at ...626... (john hedge) Date: Tue, 22 Nov 2005 17:59:37 +1100 Subject: [Gambas-user] Unknown identifier in form.class In-Reply-To: <1132642335.9732.10.camel@...1111...> References: <6e3a096b0511212237u42436f42n6415ad768558c13f@...627...> <1132642335.9732.10.camel@...1111...> Message-ID: <6e3a096b0511212259s49804635p349b1f828ebd7819@...627...> On 11/22/05, Heinz Sporn wrote: > > Am Dienstag, den 22.11.2005, 17:37 +1100 schrieb john hedge: > > Hi, > > > > I'm so new at this programming bit that my paint's still wet! :-) > > > > I've spent days on this problem. I've reinstalled my o/s and Gambas > > that many times. I've research the web site, I've Googled but nothing > > has given me so much as a hint as to what I've not done, done wrong or > > generally stuffed up. > > > > I know it can work as it worked the first time but then I ran into a > > problem installing Postgresql and had to reinstall which led me to > > this. (I know how to install Postgresql now :-)) > > > > If someone could help, point me in the right direction or explain what > > this error message is about, I'd certainly be less stressed than I am > > now. > > > > Did you actually insert the combobox named combobox1 into your form? I > can't see it. Or is it behind the dialog box? No I didn't. The article I was reading said just to enter the program, as I did. How do you insert the combobox into the form otherwise, please? > TIA (fingers crossed) > > > > John > > > > PS. I've attached a screen shot. If it's not enough info. please let > > me know what I need to include. > -- > Mit freundlichen Gr??en > > Heinz Sporn > > SPORN it-freelancing > > Mobile: ++43 (0)699 / 127 827 07 > Email: heinz.sporn at ...1017... > heinz.sporn at ...1018... > Website: http://www.sporn-it.com > Snail: Steyrer Str. 20 > A-4540 Bad Hall > Austria / Europe > > > > ------------------------------------------------------- > This SF.Net email is sponsored by the JBoss Inc. Get Certified Today > Register for a JBoss Training Course. Free Certification Exam > for All Training Attendees Through End of 2005. For more info visit: > http://ads.osdn.com/?ad_idv28&alloc_id845&opclick > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -------------- next part -------------- An HTML attachment was scrubbed... URL: From heinz.sporn at ...1017... Tue Nov 22 08:03:33 2005 From: heinz.sporn at ...1017... (Heinz Sporn) Date: Tue, 22 Nov 2005 08:03:33 +0100 Subject: [Gambas-user] Unknown identifier in form.class In-Reply-To: <6e3a096b0511212259s49804635p349b1f828ebd7819@...627...> References: <6e3a096b0511212237u42436f42n6415ad768558c13f@...627...> <1132642335.9732.10.camel@...1111...> <6e3a096b0511212259s49804635p349b1f828ebd7819@...627...> Message-ID: <1132643013.9732.13.camel@...1111...> Am Dienstag, den 22.11.2005, 17:59 +1100 schrieb john hedge: > > > On 11/22/05, Heinz Sporn wrote: > Am Dienstag, den 22.11.2005, 17:37 +1100 schrieb john hedge: > > Hi, > > > > I'm so new at this programming bit that my paint's still > wet! :-) > > > > I've spent days on this problem. I've reinstalled my o/s and > Gambas > > that many times. I've research the web site, I've Googled > but nothing > > has given me so much as a hint as to what I've not done, > done wrong or > > generally stuffed up. > > > > I know it can work as it worked the first time but then I > ran into a > > problem installing Postgresql and had to reinstall which led > me to > > this. (I know how to install Postgresql now :-)) > > > > If someone could help, point me in the right direction or > explain what > > this error message is about, I'd certainly be less stressed > than I am > > now. > > > > Did you actually insert the combobox named combobox1 into your > form? I > can't see it. Or is it behind the dialog box? > > No I didn't. The article I was reading said just to enter the program, > as I did. > > How do you insert the combobox into the form otherwise, please? Just select it from the toolbox and place it somewhere onto your form. > > > > TIA (fingers crossed) > > > > John > > > > PS. I've attached a screen shot. If it's not enough info. > please let > > me know what I need to include. > -- > Mit freundlichen Gr??en > > Heinz Sporn > > SPORN it-freelancing > > Mobile: ++43 (0)699 / 127 827 07 > Email: heinz.sporn at ...1017... > heinz.sporn at ...1018... > Website: http://www.sporn-it.com > Snail: Steyrer Str. 20 > A-4540 Bad Hall > Austria / Europe > > > > ------------------------------------------------------- > This SF.Net email is sponsored by the JBoss Inc. Get > Certified Today > Register for a JBoss Training Course. Free Certification Exam > for All Training Attendees Through End of 2005. For more info > visit: > http://ads.osdn.com/?ad_idv28&alloc_id845&opclick > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Mit freundlichen Gr??en Heinz Sporn SPORN it-freelancing Mobile: ++43 (0)699 / 127 827 07 Email: heinz.sporn at ...1017... heinz.sporn at ...1018... Website: http://www.sporn-it.com Snail: Steyrer Str. 20 A-4540 Bad Hall Austria / Europe From johnhedge at ...626... Tue Nov 22 08:10:09 2005 From: johnhedge at ...626... (john hedge) Date: Tue, 22 Nov 2005 18:10:09 +1100 Subject: [Gambas-user] Unknown identifier in form.class In-Reply-To: <1132643013.9732.13.camel@...1111...> References: <6e3a096b0511212237u42436f42n6415ad768558c13f@...627...> <1132642335.9732.10.camel@...1111...> <6e3a096b0511212259s49804635p349b1f828ebd7819@...627...> <1132643013.9732.13.camel@...1111...> Message-ID: <6e3a096b0511212310i33c3ebaemdf8e4eb18965659@...627...> On 11/22/05, Heinz Sporn wrote: > > Am Dienstag, den 22.11.2005, 17:59 +1100 schrieb john hedge: > > > > > > On 11/22/05, Heinz Sporn wrote: > > Am Dienstag, den 22.11.2005, 17:37 +1100 schrieb john hedge: > > > Hi, > > > > > > I'm so new at this programming bit that my paint's still > > wet! :-) > > > > > > I've spent days on this problem. I've reinstalled my o/s and > > Gambas > > > that many times. I've research the web site, I've Googled > > but nothing > > > has given me so much as a hint as to what I've not done, > > done wrong or > > > generally stuffed up. > > > > > > I know it can work as it worked the first time but then I > > ran into a > > > problem installing Postgresql and had to reinstall which led > > me to > > > this. (I know how to install Postgresql now :-)) > > > > > > If someone could help, point me in the right direction or > > explain what > > > this error message is about, I'd certainly be less stressed > > than I am > > > now. > > > > > > > Did you actually insert the combobox named combobox1 into your > > form? I > > can't see it. Or is it behind the dialog box? > > > > No I didn't. The article I was reading said just to enter the program, > > as I did. > > > > How do you insert the combobox into the form otherwise, please? > > Just select it from the toolbox and place it somewhere onto your form. As in 'drag and drop'? It doesn't do anything I'm afraid Heinz. I'm wondering if the permissions have set themselves up correctly. I'll have a look. > > > > > > TIA (fingers crossed) > > > > > > John > > > > > > PS. I've attached a screen shot. If it's not enough info. > > please let > > > me know what I need to include. > > -- > > Mit freundlichen Gr??en > > > > Heinz Sporn > > > > SPORN it-freelancing > > > > Mobile: ++43 (0)699 / 127 827 07 > > Email: heinz.sporn at ...1017... > > heinz.sporn at ...1018... > > Website: http://www.sporn-it.com > > Snail: Steyrer Str. 20 > > A-4540 Bad Hall > > Austria / Europe > > > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by the JBoss Inc. Get > > Certified Today > > Register for a JBoss Training Course. Free Certification Exam > > for All Training Attendees Through End of 2005. For more info > > visit: > > http://ads.osdn.com/?ad_idv28&alloc_id845&opclick > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > -- > Mit freundlichen Gr??en > > Heinz Sporn > > SPORN it-freelancing > > Mobile: ++43 (0)699 / 127 827 07 > Email: heinz.sporn at ...1017... > heinz.sporn at ...1018... > Website: http://www.sporn-it.com > Snail: Steyrer Str. 20 > A-4540 Bad Hall > Austria / Europe > > > > ------------------------------------------------------- > This SF.Net email is sponsored by the JBoss Inc. Get Certified Today > Register for a JBoss Training Course. Free Certification Exam > for All Training Attendees Through End of 2005. For more info visit: > http://ads.osdn.com/?ad_idv28&alloc_id845&opclick > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -------------- next part -------------- An HTML attachment was scrubbed... URL: From eilert-sprachen at ...221... Tue Nov 22 08:24:52 2005 From: eilert-sprachen at ...221... (Eilert) Date: Tue, 22 Nov 2005 08:24:52 +0100 Subject: [Gambas-user] Unknown identifier in form.class In-Reply-To: <6e3a096b0511212310i33c3ebaemdf8e4eb18965659@...627...> References: <6e3a096b0511212237u42436f42n6415ad768558c13f@...627...> <1132642335.9732.10.camel@...1111...> <6e3a096b0511212259s49804635p349b1f828ebd7819@...627...> <1132643013.9732.13.camel@...1111...> <6e3a096b0511212310i33c3ebaemdf8e4eb18965659@...627...> Message-ID: <4382C7C4.8050103@...221...> I'll cut the rest, John, john hedge schrieb: > > > > > Did you actually insert the combobox named combobox1 into > your > > form? I > > can't see it. Or is it behind the dialog box? > > > > No I didn't. The article I was reading said just to enter the > program, > > as I did. > > > > How do you insert the combobox into the form otherwise, please? > > Just select it from the toolbox and place it somewhere onto your form. > > > > As in 'drag and drop'? It doesn't do anything I'm afraid Heinz. I'm > wondering if the permissions have set themselves up correctly. I'll have > a look. > Well, you'll have to "paint" the control on to the form, i. e. click it on the toolbox, then press and hold the mouse button over some point on the form, drag the mouse to lower-right, then release the mouse button. Does this help you? The control will get a default name, look it up in the list when it is marked. The name will have to fit the name in your code. Rolf From johnhedge at ...626... Tue Nov 22 08:19:38 2005 From: johnhedge at ...626... (john hedge) Date: Tue, 22 Nov 2005 18:19:38 +1100 Subject: [Gambas-user] Unknown identifier in form.class In-Reply-To: <1132643013.9732.13.camel@...1111...> References: <6e3a096b0511212237u42436f42n6415ad768558c13f@...627...> <1132642335.9732.10.camel@...1111...> <6e3a096b0511212259s49804635p349b1f828ebd7819@...627...> <1132643013.9732.13.camel@...1111...> Message-ID: <6e3a096b0511212319g66016e43g1a6d8dfc52aa887@...627...> On 11/22/05, Heinz Sporn wrote: > > Am Dienstag, den 22.11.2005, 17:59 +1100 schrieb john hedge: > > > > > > On 11/22/05, Heinz Sporn wrote: > > Am Dienstag, den 22.11.2005, 17:37 +1100 schrieb john hedge: > > > Hi, > > > > > > I'm so new at this programming bit that my paint's still > > wet! :-) > > > > > > I've spent days on this problem. I've reinstalled my o/s and > > Gambas > > > that many times. I've research the web site, I've Googled > > but nothing > > > has given me so much as a hint as to what I've not done, > > done wrong or > > > generally stuffed up. > > > > > > I know it can work as it worked the first time but then I > > ran into a > > > problem installing Postgresql and had to reinstall which led > > me to > > > this. (I know how to install Postgresql now :-)) > > > > > > If someone could help, point me in the right direction or > > explain what > > > this error message is about, I'd certainly be less stressed > > than I am > > > now. > > > > > > > Did you actually insert the combobox named combobox1 into your > > form? I > > can't see it. Or is it behind the dialog box? > > > > No I didn't. The article I was reading said just to enter the program, > > as I did. > > > > How do you insert the combobox into the form otherwise, please? > > Just select it from the toolbox and place it somewhere onto your form. Well everything looks ok but I couldn't fing the 'toolbox' as such. > > > > > > TIA (fingers crossed) > > > > > > John > > > > > > PS. I've attached a screen shot. If it's not enough info. > > please let > > > me know what I need to include. > > -- > > Mit freundlichen Gr??en > > > > Heinz Sporn > > > > SPORN it-freelancing > > > > Mobile: ++43 (0)699 / 127 827 07 > > Email: heinz.sporn at ...1017... > > heinz.sporn at ...1018... > > Website: http://www.sporn-it.com > > Snail: Steyrer Str. 20 > > A-4540 Bad Hall > > Austria / Europe > > > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by the JBoss Inc. Get > > Certified Today > > Register for a JBoss Training Course. Free Certification Exam > > for All Training Attendees Through End of 2005. For more info > > visit: > > http://ads.osdn.com/?ad_idv28&alloc_id845&opclick > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > -- > Mit freundlichen Gr??en > > Heinz Sporn > > SPORN it-freelancing > > Mobile: ++43 (0)699 / 127 827 07 > Email: heinz.sporn at ...1017... > heinz.sporn at ...1018... > Website: http://www.sporn-it.com > Snail: Steyrer Str. 20 > A-4540 Bad Hall > Austria / Europe > > > > ------------------------------------------------------- > This SF.Net email is sponsored by the JBoss Inc. Get Certified Today > Register for a JBoss Training Course. Free Certification Exam > for All Training Attendees Through End of 2005. For more info visit: > http://ads.osdn.com/?ad_idv28&alloc_id845&opclick > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -------------- next part -------------- An HTML attachment was scrubbed... URL: From johnhedge at ...626... Tue Nov 22 08:38:09 2005 From: johnhedge at ...626... (john hedge) Date: Tue, 22 Nov 2005 18:38:09 +1100 Subject: [Gambas-user] Unknown identifier in form.class In-Reply-To: <4382C7C4.8050103@...221...> References: <6e3a096b0511212237u42436f42n6415ad768558c13f@...627...> <1132642335.9732.10.camel@...1111...> <6e3a096b0511212259s49804635p349b1f828ebd7819@...627...> <1132643013.9732.13.camel@...1111...> <6e3a096b0511212310i33c3ebaemdf8e4eb18965659@...627...> <4382C7C4.8050103@...221...> Message-ID: <6e3a096b0511212338n51894a48laffe4ac34bae4f8a@...627...> Yippee! I feel such an idiot. I was just clicking/holding the combobox on the toolbox and dragging that or just clicking on the form. It didn't occur to me to 'resize' it on the form to draw it. Thanks. You don't know how long I've been trying to get this to work. On 11/22/05, Eilert wrote: > > I'll cut the rest, John, > > john hedge schrieb: > > > > > > > > Did you actually insert the combobox named combobox1 into > > your > > > form? I > > > can't see it. Or is it behind the dialog box? > > > > > > No I didn't. The article I was reading said just to enter the > > program, > > > as I did. > > > > > > How do you insert the combobox into the form otherwise, please? > > > > Just select it from the toolbox and place it somewhere onto your form. > > > > > > > > As in 'drag and drop'? It doesn't do anything I'm afraid Heinz. I'm > > wondering if the permissions have set themselves up correctly. I'll have > > a look. > > > > Well, you'll have to "paint" the control on to the form, i. e. click it > on the toolbox, then press and hold the mouse button over some point > on the form, drag the mouse to lower-right, then release the mouse button. > > Does this help you? > > The control will get a default name, look it up in the list when it is > marked. The name will have to fit the name in your code. > > Rolf > > > > ------------------------------------------------------- > This SF.Net email is sponsored by the JBoss Inc. Get Certified Today > Register for a JBoss Training Course. Free Certification Exam > for All Training Attendees Through End of 2005. For more info visit: > http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas at ...1... Tue Nov 22 10:38:45 2005 From: gambas at ...1... (Benoit Minisini) Date: Tue, 22 Nov 2005 10:38:45 +0100 Subject: [Gambas-user] Result is not available In-Reply-To: References: Message-ID: <200511221038.45440.gambas@...1...> On Tuesday 22 November 2005 02:40, Fabricio Santos wrote: > In this small piece of code I am insistently getting a meesage box with > the following error at runtime: "Result is not available" > > PUBLIC SUB ComboBox1_Click() > DIM res AS Result > DIM sql AS String > > resManager.MoveFirst > resManager.MoveTo( ComboBox1.Index) > sql = "select city from office" & > " where manager_id=" & resManager!id > res = conn.Exec(sql) > textbox1.Text=res!city > END > > If I watch "ComboBox1.Index" it yelds 0, which is correct. > If I watch "resManager!id" it yelds 1, which is also correct. > But it stops at line "res = conn.Exec(sql)" with the error above. > > I am running Gambas 1.0.3. Might this be a bug? I couldn't find much on > this front. > > Thanks in advance for any help. > Maybe you actually get the error on textBox1.Text = res!City, because your sql request returns no result. Otherwise try a more recent version of Gambas. Note: resManager.MoveFirst is not necessary, if you do a MoveTo just after. Regards, -- Benoit Minisini From gambas at ...1... Tue Nov 22 11:01:31 2005 From: gambas at ...1... (Benoit Minisini) Date: Tue, 22 Nov 2005 11:01:31 +0100 Subject: [Gambas-user] Signal #11 (was Return Code 245 from SDL) In-Reply-To: <200511220038.39744.simonart.dominique@...11...> References: <200511220038.39744.simonart.dominique@...11...> Message-ID: <200511221101.31134.gambas@...1...> On Tuesday 22 November 2005 00:38, Dominique SIMONART wrote: > Hi everybody, > > I think I found the origine of the message! Here is how to produce it: > > a GridView on a Form > > Form1_Open() > grd1.Rows.Count = 1 > grd1.Columns.Count = 1 > grd1[0,0].Clear > grd1[0,0].Picture.Load("myPath" &/ "myFile") ' --> signal #11 > END > The GridView[x, y].Clear() method does not work correctly, do not use it. But the next line can't work anyway, as you can only use the Load method on an existing picture, and the picture of a void cell is a null object. You must do: DIM hPict AS NEW Picture hPict.Load(...) grd1[0, 0].Picture = hPict Regards, -- Benoit Minisini From mike_keehan at ...679... Tue Nov 22 12:45:03 2005 From: mike_keehan at ...679... (Mike Keehan) Date: Tue, 22 Nov 2005 11:45:03 +0000 Subject: [Gambas-user] Unknown identifier in form.class In-Reply-To: <6e3a096b0511212237u42436f42n6415ad768558c13f@...627...> References: <6e3a096b0511212237u42436f42n6415ad768558c13f@...627...> Message-ID: <438304BF.6080101@...679...> john hedge wrote: > Hi, > > I'm so new at this programming bit that my paint's still wet! :-) > > I've spent days on this problem. I've reinstalled my o/s and Gambas that > many times. I've research the web site, I've Googled but nothing has > given me so much as a hint as to what I've not done, done wrong or > generally stuffed up. > > I know it can work as it worked the first time but then I ran into a > problem installing Postgresql and had to reinstall which led me to this. > (I know how to install Postgresql now :-)) > > If someone could help, point me in the right direction or explain what > this error message is about, I'd certainly be less stressed than I am now. > > TIA (fingers crossed) > > John > > PS. I've attached a screen shot. If it's not enough info. please let me > know what I need to include. > ------------------------------------------------------------------------ > John, Your screen shot does not show any Combobox on your form, assuming it is not hidden by the error dialog. You need to click on the Combobox icon in the toolbox, and then click and drag a rectangle on your form. This should create a Combobox on the form. Check in the Properties window that it is named Combobox1. Mike. From admin at ...1080... Tue Nov 22 16:00:42 2005 From: admin at ...1080... (admin at ...1080...) Date: Tue, 22 Nov 2005 16:00:42 +0100 Subject: [Gambas-user] Signal #11 In-Reply-To: <200511212250.03793.gambas@...1...> Message-ID: <002c01c5ef75$825b97e0$52cc11ac@...1233...> > -----Original Message----- > From: gambas-user-admin at lists.sourceforge.net > [mailto:gambas-user-admin at lists.sourceforge.net] On Behalf Of > Benoit Minisini > Sent: Monday, November 21, 2005 10:50 PM > To: gambas-user at lists.sourceforge.net > Subject: Re: [Gambas-user] Signal #11 > > On Monday 21 November 2005 22:41, Werner Staudacher wrote: > > Benoit Minisini schrieb: > > >On Sunday 20 November 2005 23:04, Werner Staudacher wrote: > > >>Hi all > > >> > > >>Since i have Version 1.0.12 installed some project does end with > > >>Signal > > >>#11 when the first Form should be displayed, after all > startup code. > > >>So i take a look for diffrents between the running and > the stopping > > >>projects, and found that it is the progressbar. When i drop them > > >>from the Form its okay again. > > >>But for some Projects it would be nice to have progressbars :( > > >> > > >>Staudi > > >> > > >>PS: Have a Debian 2.6.11 based Distro from Kanotix with KDE > > > > > >Can you send me a project that crashes please? > > > > Hi Benoit > > > > I found the point: It is the height-value. > > I want the progressbar only visible if he has to show a > action, but i > > got it never to work this way (to show and refresh by > action) when it > > was not visible at startup. As workaround i let it visible > and set the > > height to 0. Maybe that kind of design is strange ;-) Now > with Version > > 1.0.12 when the control is visible and the height less then 10, the > > signal #11 occurs, if not visible it works.... but is never visible > > when in action. Hope this helps, otherwise i can send you > the project data. > > > > Staudi > > > > I think this is a bug either in QT or, more probably in the > KDE style you use. > Style are often badly programmed, and don't expect having a > progress bar with a too small height! > > Which KDE style do you use? I use Lipstick, and when the > progress bar is too small, I don't have a crash, but many QT > warnings about illegal painting actions. > > Regards, > > -- > Benoit Minisini > > My KDE style i dont now, but i have a theme called Michelangelo. And yes i had messages in the debug window about problem with painting. That the progressbar does not show its action when it is unvisible at startup, is this by design or i do some wrong? I do it like this: Sub button_click() Progressbar.visible=true Progressbar.value=0 Progressbar.refresh() .... Some action Do while Progressbar.value=value Progressbar.refresh() loop ... Progressbar.visible=false End But the progressbar is never visible. Regards Werner Staudacher From emailvarie at ...1234... Tue Nov 22 17:19:58 2005 From: emailvarie at ...1234... (Angelo Compagnucci) Date: Tue, 22 Nov 2005 17:19:58 +0100 Subject: [Gambas-user] SystemTray Message-ID: <200511221719.59198.emailvarie@...1234...> Hi! Anybody knows how to use SystemTray Gambas 1.9 component? Thanks! From na2492 at ...9... Tue Nov 22 19:06:03 2005 From: na2492 at ...9... (Charlie Reinl) Date: Tue, 22 Nov 2005 19:06:03 +0100 Subject: [Gambas-user] Signal #11 In-Reply-To: <002c01c5ef75$825b97e0$52cc11ac@...1233...> References: <002c01c5ef75$825b97e0$52cc11ac@...1233...> Message-ID: <1132682763.7060.3.camel@...37...> Am Dienstag, den 22.11.2005, 16:00 +0100 schrieb admin at ...1080...: > > > -----Original Message----- > > From: gambas-user-admin at lists.sourceforge.net > > [mailto:gambas-user-admin at lists.sourceforge.net] On Behalf Of > > Benoit Minisini > > Sent: Monday, November 21, 2005 10:50 PM > > To: gambas-user at lists.sourceforge.net > > Subject: Re: [Gambas-user] Signal #11 > > > > On Monday 21 November 2005 22:41, Werner Staudacher wrote: > > > Benoit Minisini schrieb: > > > >On Sunday 20 November 2005 23:04, Werner Staudacher wrote: > > > >>Hi all > > > >> > > > >>Since i have Version 1.0.12 installed some project does end with > > > >>Signal > > > >>#11 when the first Form should be displayed, after all > > startup code. > > > >>So i take a look for diffrents between the running and > > the stopping > > > >>projects, and found that it is the progressbar. When i drop them > > > >>from the Form its okay again. > > > >>But for some Projects it would be nice to have progressbars :( > > > >> > > > >>Staudi > > > >> > > > >>PS: Have a Debian 2.6.11 based Distro from Kanotix with KDE > > > > > > > >Can you send me a project that crashes please? > > > > > > Hi Benoit > > > > > > I found the point: It is the height-value. > > > I want the progressbar only visible if he has to show a > > action, but i > > > got it never to work this way (to show and refresh by > > action) when it > > > was not visible at startup. As workaround i let it visible > > and set the > > > height to 0. Maybe that kind of design is strange ;-) Now > > with Version > > > 1.0.12 when the control is visible and the height less then 10, the > > > signal #11 occurs, if not visible it works.... but is never visible > > > when in action. Hope this helps, otherwise i can send you > > the project data. > > > > > > Staudi > > > > > > > I think this is a bug either in QT or, more probably in the > > KDE style you use. > > Style are often badly programmed, and don't expect having a > > progress bar with a too small height! > > > > Which KDE style do you use? I use Lipstick, and when the > > progress bar is too small, I don't have a crash, but many QT > > warnings about illegal painting actions. > > > > Regards, > > > > -- > > Benoit Minisini > > > > > My KDE style i dont now, but i have a theme called Michelangelo. > And yes i had messages in the debug window about problem with painting. > > That the progressbar does not show its action when it is unvisible at > startup, is this by design or i do some wrong? > I do it like this: > Sub button_click() > Progressbar.visible=true > Progressbar.value=0 > Progressbar.refresh() > .... Some action > Do while > Progressbar.value=value > Progressbar.refresh() > loop > ... > Progressbar.visible=false > End > > But the progressbar is never visible. > > Regards > Werner Staudacher Salut, please try this working small project, play around with height etc. and tell us if it worked or not Amicalment Charlie -------------- next part -------------- A non-text attachment was scrubbed... Name: ProgressBar-0.0.1.tar.gz Type: application/x-compressed-tar Size: 1056 bytes Desc: not available URL: From mike_keehan at ...679... Tue Nov 22 20:30:35 2005 From: mike_keehan at ...679... (Mike Keehan) Date: Tue, 22 Nov 2005 19:30:35 +0000 Subject: [Gambas-user] Unknown identifier in form.class In-Reply-To: <438304BF.6080101@...679...> References: <6e3a096b0511212237u42436f42n6415ad768558c13f@...627...> <438304BF.6080101@...679...> Message-ID: <438371DB.8060907@...679...> Sorry for the tardy reply - my mail was very slow this morning. (not much better now, either). Mike. From johnhedge at ...626... Tue Nov 22 21:40:05 2005 From: johnhedge at ...626... (john hedge) Date: Wed, 23 Nov 2005 07:40:05 +1100 Subject: [Gambas-user] Unknown identifier in form.class In-Reply-To: <438371DB.8060907@...679...> References: <6e3a096b0511212237u42436f42n6415ad768558c13f@...627...> <438304BF.6080101@...679...> <438371DB.8060907@...679...> Message-ID: <6e3a096b0511221240m209593efyed2bdd84875dc488@...627...> Better late than never Mike. Thanks for the effort. It worked a treat. I'd tried everything except expanding the drag & drop. John On 11/23/05, Mike Keehan wrote: > > Sorry for the tardy reply - my mail was very slow this morning. > > (not much better now, either). > > Mike. > > > ------------------------------------------------------- > This SF.Net email is sponsored by the JBoss Inc. Get Certified Today > Register for a JBoss Training Course. Free Certification Exam > for All Training Attendees Through End of 2005. For more info visit: > http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas-user at lists.sourceforge.net Tue Nov 22 22:04:52 2005 From: gambas-user at lists.sourceforge.net (Werner Staudacher) Date: Tue, 22 Nov 2005 22:04:52 +0100 Subject: [Gambas-user] Signal #11 In-Reply-To: <1132682763.7060.3.camel@...37...> References: <002c01c5ef75$825b97e0$52cc11ac@...1233...> <1132682763.7060.3.camel@...37...> Message-ID: <438387F4.2040300@lists.sourceforge.net> Charlie Reinl schrieb: >Am Dienstag, den 22.11.2005, 16:00 +0100 schrieb admin at ...1080...: > > >> >> >> >>>-----Original Message----- >>>From: gambas-user-admin at lists.sourceforge.net >>>[mailto:gambas-user-admin at lists.sourceforge.net] On Behalf Of >>>Benoit Minisini >>>Sent: Monday, November 21, 2005 10:50 PM >>>To: gambas-user at lists.sourceforge.net >>>Subject: Re: [Gambas-user] Signal #11 >>> >>>On Monday 21 November 2005 22:41, Werner Staudacher wrote: >>> >>> >>>>Benoit Minisini schrieb: >>>> >>>> >>>>>On Sunday 20 November 2005 23:04, Werner Staudacher wrote: >>>>> >>>>> >>>>>>Hi all >>>>>> >>>>>>Since i have Version 1.0.12 installed some project does end with >>>>>>Signal >>>>>>#11 when the first Form should be displayed, after all >>>>>> >>>>>> >>>startup code. >>> >>> >>>>>>So i take a look for diffrents between the running and >>>>>> >>>>>> >>>the stopping >>> >>> >>>>>>projects, and found that it is the progressbar. When i drop them >>>>>> >>>>>> >>>>>>from the Form its okay again. >>>>> >>>>> >>>>>>But for some Projects it would be nice to have progressbars :( >>>>>> >>>>>>Staudi >>>>>> >>>>>>PS: Have a Debian 2.6.11 based Distro from Kanotix with KDE >>>>>> >>>>>> >>>>>Can you send me a project that crashes please? >>>>> >>>>> >>>>Hi Benoit >>>> >>>>I found the point: It is the height-value. >>>>I want the progressbar only visible if he has to show a >>>> >>>> >>>action, but i >>> >>> >>>>got it never to work this way (to show and refresh by >>>> >>>> >>>action) when it >>> >>> >>>>was not visible at startup. As workaround i let it visible >>>> >>>> >>>and set the >>> >>> >>>>height to 0. Maybe that kind of design is strange ;-) Now >>>> >>>> >>>with Version >>> >>> >>>>1.0.12 when the control is visible and the height less then 10, the >>>>signal #11 occurs, if not visible it works.... but is never visible >>>>when in action. Hope this helps, otherwise i can send you >>>> >>>> >>>the project data. >>> >>> >>>>Staudi >>>> >>>> >>>> >>>I think this is a bug either in QT or, more probably in the >>>KDE style you use. >>>Style are often badly programmed, and don't expect having a >>>progress bar with a too small height! >>> >>>Which KDE style do you use? I use Lipstick, and when the >>>progress bar is too small, I don't have a crash, but many QT >>>warnings about illegal painting actions. >>> >>>Regards, >>> >>>-- >>>Benoit Minisini >>> >>> >>> >>> >>My KDE style i dont now, but i have a theme called Michelangelo. >>And yes i had messages in the debug window about problem with painting. >> >>That the progressbar does not show its action when it is unvisible at >>startup, is this by design or i do some wrong? >>I do it like this: >>Sub button_click() >>Progressbar.visible=true >>Progressbar.value=0 >>Progressbar.refresh() >>.... Some action >>Do while >>Progressbar.value=value >>Progressbar.refresh() >>loop >>... >>Progressbar.visible=false >>End >> >>But the progressbar is never visible. >> >>Regards >>Werner Staudacher >> >> > >Salut, > >please try this working small project, play around with height etc. and >tell us if it worked or not > >Amicalment >Charlie > > Hi Charly Thanks for the Test project. I fiddled around and and changed a little so that you can see what i mean. Staudi -------------- next part -------------- A non-text attachment was scrubbed... Name: ProgressBar.tar.gz Type: application/gzip Size: 2966 bytes Desc: not available URL: From htakada at ...626... Tue Nov 22 22:09:15 2005 From: htakada at ...626... (Hugo) Date: Tue, 22 Nov 2005 18:09:15 -0300 Subject: [Gambas-user] rowClick event in TableView Message-ID: Hi, is there any information available about this event, for example when it's fired , its relationshp with the MODE(NONE, SINGLE,MLTI) property , etc . I couldnt find anything about this event thanks in advance Hugo -------------- next part -------------- An HTML attachment was scrubbed... URL: From simonart.dominique at ...11... Tue Nov 22 22:59:11 2005 From: simonart.dominique at ...11... (Dominique SIMONART) Date: Tue, 22 Nov 2005 22:59:11 +0100 Subject: [Gambas-user] Signal #11 (was Return Code 245 from SDL) In-Reply-To: <200511221101.31134.gambas@...1...> References: <200511220038.39744.simonart.dominique@...11...> <200511221101.31134.gambas@...1...> Message-ID: <200511222259.12086.simonart.dominique@...11...> Le Mardi 22 Novembre 2005 11:01, Benoit Minisini a ?crit?: > On Tuesday 22 November 2005 00:38, Dominique SIMONART wrote: > > Hi everybody, > > > > I think I found the origine of the message! Here is how to produce it: > > > > a GridView on a Form > > > > Form1_Open() > > grd1.Rows.Count = 1 > > grd1.Columns.Count = 1 > > grd1[0,0].Clear > > grd1[0,0].Picture.Load("myPath" &/ "myFile") ' --> signal #11 > > END > > The GridView[x, y].Clear() method does not work correctly, do not use it. > > But the next line can't work anyway, as you can only use the Load method on > an existing picture, and the picture of a void cell is a null object. > > You must do: > > DIM hPict AS NEW Picture > > hPict.Load(...) > grd1[0, 0].Picture = hPict > > Regards, Thanks Benoit, In fact, it is the way you say I use in my real project (89 pictures loaded at the start time and then I initialise my GridViews with them. As soon as I suppress the Clear method, everything works fine. Is there another way to erase my picture? Actually, I just put another picture in it to simulate the absence of picture!! It is like you repaint the blackboard each time instead of wash it! regards Dominique From na2492 at ...9... Wed Nov 23 01:23:07 2005 From: na2492 at ...9... (Charlie Reinl) Date: Wed, 23 Nov 2005 01:23:07 +0100 Subject: [Gambas-user] Signal #11 In-Reply-To: <438387F4.2040300@lists.sourceforge.net> References: <002c01c5ef75$825b97e0$52cc11ac@...1233...> <1132682763.7060.3.camel@...37...> <438387F4.2040300@lists.sourceforge.net> Message-ID: <1132705388.11392.3.camel@...37...> Am Dienstag, den 22.11.2005, 22:04 +0100 schrieb Werner Staudacher: > Charlie Reinl schrieb: > >Salut, > > > >please try this working small project, play around with height etc. and > >tell us if it worked or not > > > >Amicalment > >Charlie > > > > > Hi Charly > > Thanks for the Test project. > I fiddled around and and changed a little so that you can see what i mean. > > Staudi Salut, here everything works right, I changed styles on KDE ... no chrash send you my config and the script who makes it. Amicalment Charlie -------------- next part -------------- A non-text attachment was scrubbed... Name: sysInfo.sh Type: application/x-shellscript Size: 2721 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: sysInfo.log Type: text/x-log Size: 3132 bytes Desc: not available URL: From gambas at ...1... Wed Nov 23 01:37:41 2005 From: gambas at ...1... (Benoit Minisini) Date: Wed, 23 Nov 2005 01:37:41 +0100 Subject: [Gambas-user] Signal #11 In-Reply-To: <002c01c5ef75$825b97e0$52cc11ac@...1233...> References: <002c01c5ef75$825b97e0$52cc11ac@...1233...> Message-ID: <200511230137.41799.gambas@...1...> On Tuesday 22 November 2005 16:00, admin at ...1080... wrote: > > My KDE style i dont now, but i have a theme called Michelangelo. > And yes i had messages in the debug window about problem with painting. > > That the progressbar does not show its action when it is unvisible at > startup, is this by design or i do some wrong? > I do it like this: > Sub button_click() > Progressbar.visible=true > Progressbar.value=0 > Progressbar.refresh() > .... Some action > Do while > Progressbar.value=value > Progressbar.refresh() > loop > ... > Progressbar.visible=false > End > > But the progressbar is never visible. > > Regards > Werner Staudacher > You can play with Visible, Refresh, and so on, you won't see the result until you return to the event loop (i.e. when you have finish with your event handler). With X-Window, drawing and displaying are completely disconnected. I mean, when you do 'ProgressBar.Visible = False', you only send an order to the X-Server, that in turn ask (later) to your application to repaint the ProgressBar. And Gambas catch this repaint event only in the event loop, and so after the button_click() event handler is finished. Regards, -- Benoit Minisini From gambas at ...1... Wed Nov 23 01:38:37 2005 From: gambas at ...1... (Benoit Minisini) Date: Wed, 23 Nov 2005 01:38:37 +0100 Subject: [Gambas-user] Signal #11 (was Return Code 245 from SDL) In-Reply-To: <200511222259.12086.simonart.dominique@...11...> References: <200511220038.39744.simonart.dominique@...11...> <200511221101.31134.gambas@...1...> <200511222259.12086.simonart.dominique@...11...> Message-ID: <200511230138.37611.gambas@...1...> On Tuesday 22 November 2005 22:59, Dominique SIMONART wrote: > Le Mardi 22 Novembre 2005 11:01, Benoit Minisini a ?crit?: > > On Tuesday 22 November 2005 00:38, Dominique SIMONART wrote: > > > Hi everybody, > > > > > > I think I found the origine of the message! Here is how to produce it: > > > > > > a GridView on a Form > > > > > > Form1_Open() > > > grd1.Rows.Count = 1 > > > grd1.Columns.Count = 1 > > > grd1[0,0].Clear > > > grd1[0,0].Picture.Load("myPath" &/ "myFile") ' --> signal #11 > > > END > > > > The GridView[x, y].Clear() method does not work correctly, do not use it. > > > > But the next line can't work anyway, as you can only use the Load method > > on an existing picture, and the picture of a void cell is a null object. > > > > You must do: > > > > DIM hPict AS NEW Picture > > > > hPict.Load(...) > > grd1[0, 0].Picture = hPict > > > > Regards, > > Thanks Benoit, > > In fact, it is the way you say I use in my real project (89 pictures loaded > at the start time and then I initialise my GridViews with them. As soon as > I suppress the Clear method, everything works fine. > > Is there another way to erase my picture? Actually, I just put another > picture in it to simulate the absence of picture!! It is like you repaint > the blackboard each time instead of wash it! > regards > Dominique > grd1[0, 0].Picture = NULL ? Or maybe you want just a blank picture ? -- Benoit Minisini From dcamposf at ...626... Wed Nov 23 09:10:04 2005 From: dcamposf at ...626... (Daniel Campos) Date: Wed, 23 Nov 2005 09:10:04 +0100 Subject: [Gambas-user] Segmentation fault / Classes Message-ID: <7259b5ae0511230010n7f691d72h@...627...> Hi: I think this code should work. However I get a segfault each time I try to execute it: PUBLIC SUB Button1_Click() DIM hClass AS Class DIM aString AS String hClass = Classes["Button"] FOR EACH aString IN hClass.Symbols PRINT aString NEXT END (With Gambas-2 1.9.21) Regards, D. Campos From dcamposf at ...626... Wed Nov 23 09:12:17 2005 From: dcamposf at ...626... (Daniel Campos) Date: Wed, 23 Nov 2005 09:12:17 +0100 Subject: [Gambas-user] SystemTray In-Reply-To: <200511221719.59198.emailvarie@...1234...> References: <200511221719.59198.emailvarie@...1234...> Message-ID: <7259b5ae0511230012k60314c1ap@...627...> Hi: DIM hTray AS TrayIcon hTray = NEW TrayIcon hTray.Text = "Hello" hTray.Picture = Stock["24/ok"] hTray.Show() Regards, D. Campos 2005/11/22, Angelo Compagnucci : > Hi! > > Anybody knows how to use SystemTray Gambas 1.9 component? > > Thanks! > > > ------------------------------------------------------- > This SF.Net email is sponsored by the JBoss Inc. Get Certified Today > Register for a JBoss Training Course. Free Certification Exam > for All Training Attendees Through End of 2005. For more info visit: > http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From liutauras at ...1236... Wed Nov 23 09:25:38 2005 From: liutauras at ...1236... (Liutauras Adomaitis) Date: Wed, 23 Nov 2005 10:25:38 +0200 Subject: [Gambas-user] How to delete record in DB In-Reply-To: <7259b5ae0511230012k60314c1ap@...627...> References: <200511221719.59198.emailvarie@...1234...> <7259b5ae0511230012k60314c1ap@...627...> Message-ID: <200511231025.39371.liutauras@...1236...> Hi all, i'm new to gambas and to this list. I'm trying to make my first application with gambas. It is for working with DB (MySQL). I found how to create or edit records in table, but how to delete records in table? Thanks Liutauras From ariefbayu at ...626... Wed Nov 23 09:52:51 2005 From: ariefbayu at ...626... (Arief Bayu Purwanto) Date: Wed, 23 Nov 2005 15:52:51 +0700 Subject: [Gambas-user] SystemTray In-Reply-To: <7259b5ae0511230012k60314c1ap@...627...> References: <200511221719.59198.emailvarie@...1234...> <7259b5ae0511230012k60314c1ap@...627...> Message-ID: <976ad9050511230052q340d9a67w@...627...> 2005/11/23, Daniel Campos : > > Hi: > > DIM hTray AS TrayIcon > > hTray = NEW TrayIcon > > hTray.Text = "Hello" > hTray.Picture = Stock["24/ok"] > hTray.Show() > > Regards, > > D. Campos How to put menu is systray icon? -- -- Yahoo!ID : ar1ef_310 -- http://www.silentstudio.net -------------- next part -------------- An HTML attachment was scrubbed... URL: From dcamposf at ...626... Wed Nov 23 13:27:58 2005 From: dcamposf at ...626... (Daniel Campos) Date: Wed, 23 Nov 2005 13:27:58 +0100 Subject: [Gambas-user] SystemTray In-Reply-To: <976ad9050511230052q340d9a67w@...627...> References: <200511221719.59198.emailvarie@...1234...> <7259b5ae0511230012k60314c1ap@...627...> <976ad9050511230052q340d9a67w@...627...> Message-ID: <7259b5ae0511230427t49fb0c56m@...627...> You can create a common menu in a Form, that normally will be hidden. Then use the TrayIcon events, (for example the "Menu" event to know if the user clicked the right button), and use "Menu.Popup()" to show it. The RadioGambas sources can help you with a complete example: http://gambas.gnulinex.org/radiogambas Regards, D. Campos 2005/11/23, Arief Bayu Purwanto : > 2005/11/23, Daniel Campos : > > Hi: > > > > DIM hTray AS TrayIcon > > > > hTray = NEW TrayIcon > > > > hTray.Text = "Hello" > > hTray.Picture = Stock["24/ok"] > > hTray.Show() > > > > Regards, > > > > D. Campos > > How to put menu is systray icon? > > -- > -- Yahoo!ID : ar1ef_310 > -- http://www.silentstudio.net From angelo.compagnucci at ...1234... Wed Nov 23 14:06:01 2005 From: angelo.compagnucci at ...1234... (Angelo Compagnucci) Date: Wed, 23 Nov 2005 14:06:01 +0100 Subject: [Gambas-user] SystemTray In-Reply-To: <7259b5ae0511230427t49fb0c56m@...627...> References: <200511221719.59198.emailvarie@...1234...> <976ad9050511230052q340d9a67w@...627...> <7259b5ae0511230427t49fb0c56m@...627...> Message-ID: <200511231406.01375.angelo.compagnucci@...1234...> Thanks a lot! Alle 13:27, mercoled? 23 novembre 2005, Daniel Campos ha scritto: > You can create a common menu in a Form, that normally will be hidden. > Then use the TrayIcon events, (for example the "Menu" event to know if > the user clicked the right button), and use "Menu.Popup()" to show it. > > The RadioGambas sources can help you with a complete example: > > http://gambas.gnulinex.org/radiogambas > > Regards, > > D. Campos > > 2005/11/23, Arief Bayu Purwanto : > > 2005/11/23, Daniel Campos : > > > Hi: > > > > > > DIM hTray AS TrayIcon > > > > > > hTray = NEW TrayIcon > > > > > > hTray.Text = "Hello" > > > hTray.Picture = Stock["24/ok"] > > > hTray.Show() > > > > > > Regards, > > > > > > D. Campos > > > > How to put menu is systray icon? > > > > -- > > -- Yahoo!ID : ar1ef_310 > > -- http://www.silentstudio.net > > ------------------------------------------------------- > This SF.Net email is sponsored by the JBoss Inc. Get Certified Today > Register for a JBoss Training Course. Free Certification Exam > for All Training Attendees Through End of 2005. For more info visit: > http://ads.osdn.com/?ad_idv28&alloc_id845&op=Click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From dcamposf at ...626... Wed Nov 23 14:43:24 2005 From: dcamposf at ...626... (Daniel Campos) Date: Wed, 23 Nov 2005 14:43:24 +0100 Subject: [Gambas-user] Re: Segmentation fault / Classes In-Reply-To: <7259b5ae0511230010n7f691d72h@...627...> References: <7259b5ae0511230010n7f691d72h@...627...> Message-ID: <7259b5ae0511230543o12938ca6q@...627...> More about that (gambas 1.91.21a): The "Class" methods seem to be broken. I get a segmentation fault when using any class from gb.qt, it seems to work with gb.gtk, but returns the name of the symbol with the signature (for example "pText" ), and If I use it with a class written in the same Gambas program, it just returns one character strings like "p", "v"... Regards, D. Campos 2005/11/23, Daniel Campos : > Hi: > > I think this code should work. However I get a segfault each time I > try to execute it: > > PUBLIC SUB Button1_Click() > > DIM hClass AS Class > DIM aString AS String > > hClass = Classes["Button"] > > > FOR EACH aString IN hClass.Symbols > > PRINT aString > > NEXT > > END > > (With Gambas-2 1.9.21) > > Regards, > > D. Campos > From leonardo at ...1237... Wed Nov 23 17:38:20 2005 From: leonardo at ...1237... (Leonardo Miliani) Date: Wed, 23 Nov 2005 17:38:20 +0100 Subject: [Gambas-user] GTK2 and Gambas2 Message-ID: <43849AFC.60900@...1237...> Hi everybody. I downloaded Suse-RPMs of Gambas2 and tried to install it on my computer (SUSE 9.3). My Linux distro comes with GTK 2.6.4 and RPMs wouldn't install because wanted GTK2 >=2.8. So I downloaded newest GTK2 RPMs and installed it. But I became to have some graphic glictes with some GTK apps so I downgraded GTK2 to version 2.6.4. But I noticed that Gambas2 still runs... So I would like to know if GTK2 >=2.8 are NECESSARY or I can continue using 2.6.x? -- Ciao. Leo Visita il mio sito personale: www.leonardomiliani.com e-mail: leonardo at ...1237... From dcamposf at ...626... Wed Nov 23 17:46:09 2005 From: dcamposf at ...626... (Daniel Campos) Date: Wed, 23 Nov 2005 17:46:09 +0100 Subject: [Gambas-user] GTK2 and Gambas2 In-Reply-To: <43849AFC.60900@...1237...> References: <43849AFC.60900@...1237...> Message-ID: <7259b5ae0511230846y57cbbfbu@...627...> Hi: At this moment gb.gtk works with GTK+-2.6. However I will probably use 2.8 functions in the future, so the answer is that it still works with 2.6, but I will not support it in the future. When? I'm not sure. Regards, D. Campos 2005/11/23, Leonardo Miliani : > Hi everybody. > I downloaded Suse-RPMs of Gambas2 and tried to install it on my computer > (SUSE 9.3). > > My Linux distro comes with GTK 2.6.4 and RPMs wouldn't install because > wanted GTK2 >=2.8. > So I downloaded newest GTK2 RPMs and installed it. But I became to have > some graphic glictes with some GTK apps so I downgraded GTK2 to version > 2.6.4. > But I noticed that Gambas2 still runs... > So I would like to know if GTK2 >=2.8 are NECESSARY or I can continue > using 2.6.x? > > -- > Ciao. > Leo > > Visita il mio sito personale: www.leonardomiliani.com > e-mail: leonardo at ...1237... > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Wed Nov 23 20:01:52 2005 From: gambas at ...1... (Benoit Minisini) Date: Wed, 23 Nov 2005 20:01:52 +0100 Subject: [Gambas-user] Gambas in Frappr! In-Reply-To: <7259b5ae0511211419j5a3e0745g@...627...> References: <7259b5ae0511211419j5a3e0745g@...627...> Message-ID: <200511232001.52937.gambas@...1...> On Monday 21 November 2005 23:19, Daniel Campos wrote: > Hi: > > I've added a Gambas group to Frappr!: > > http://www.frappr.com/gambas > > I've seen it in another page: > > http://www.sondasespaciales.com > > And seems to be nice to localize users in the world! > > Regards, > > Daniel Campos > Can you create a map, so that we can put our location on it ? Thanks in advance, Regards, -- Benoit Minisini From dcamposf at ...626... Wed Nov 23 20:31:12 2005 From: dcamposf at ...626... (Daniel Campos) Date: Wed, 23 Nov 2005 20:31:12 +0100 Subject: [Gambas-user] Gambas in Frappr! In-Reply-To: <200511232001.52937.gambas@...1...> References: <7259b5ae0511211419j5a3e0745g@...627...> <200511232001.52937.gambas@...1...> Message-ID: <7259b5ae0511231131u3585d8cp@...627...> > > > > Can you create a map, so that we can put our location on it ? > I'm sorry I do not understand... there's already a map! May be you're using Konqueror? This Ajax based web seems to work only with Mozilla/IE (At least my Konqueror version does not display the map) Regards, D. Campos From gambas at ...1... Wed Nov 23 20:53:12 2005 From: gambas at ...1... (Benoit Minisini) Date: Wed, 23 Nov 2005 20:53:12 +0100 Subject: [Gambas-user] Gambas in Frappr! In-Reply-To: <7259b5ae0511231131u3585d8cp@...627...> References: <7259b5ae0511211419j5a3e0745g@...627...> <200511232001.52937.gambas@...1...> <7259b5ae0511231131u3585d8cp@...627...> Message-ID: <200511232053.13118.gambas@...1...> On Wednesday 23 November 2005 20:31, Daniel Campos wrote: > > Can you create a map, so that we can put our location on it ? > > I'm sorry I do not understand... there's already a map! May be you're > using Konqueror? This Ajax based web seems to work only with > Mozilla/IE (At least my Konqueror version does not display the map) > > Regards, > > D. Campos > That was that! :-) -- Benoit Minisini From jdsantos1978 at ...626... Wed Nov 23 21:45:42 2005 From: jdsantos1978 at ...626... (Dani Santos) Date: Wed, 23 Nov 2005 21:45:42 +0100 Subject: [Gambas-user] Gambas in Frappr! In-Reply-To: <200511232053.13118.gambas@...1...> References: <7259b5ae0511211419j5a3e0745g@...627...> <200511232001.52937.gambas@...1...> <7259b5ae0511231131u3585d8cp@...627...> <200511232053.13118.gambas@...1...> Message-ID: <1132778742.11311.1.camel@...1222...> It has been a great idea! But there's a problem. The system marks Plasencia (C?ceres - Extremadura - Spain) in the Basque Country :( I'll try to solve it. El mi?, 23-11-2005 a las 20:53 +0100, Benoit Minisini escribi?: > On Wednesday 23 November 2005 20:31, Daniel Campos wrote: > > > Can you create a map, so that we can put our location on it ? > > > > I'm sorry I do not understand... there's already a map! May be you're > > using Konqueror? This Ajax based web seems to work only with > > Mozilla/IE (At least my Konqueror version does not display the map) > > > > Regards, > > > > D. Campos > > > > That was that! :-) > From gambas at ...1... Wed Nov 23 21:59:05 2005 From: gambas at ...1... (Benoit Minisini) Date: Wed, 23 Nov 2005 21:59:05 +0100 Subject: [Gambas-user] About gambas user world map Message-ID: <200511232159.05868.gambas@...1...> Hi, I suggest to the people who registered at http://www.frappr.com/gambas to put in their description what they are done for Gambas (developing a component, developing an example, made a patch, or financial support). Thanks in advance. And go register! :-) Regards, -- Benoit Minisini From dcamposf at ...626... Wed Nov 23 22:10:57 2005 From: dcamposf at ...626... (Daniel Campos) Date: Wed, 23 Nov 2005 22:10:57 +0100 Subject: [Gambas-user] Gambas in Frappr! In-Reply-To: <1132778742.11311.1.camel@...1222...> References: <7259b5ae0511211419j5a3e0745g@...627...> <200511232001.52937.gambas@...1...> <7259b5ae0511231131u3585d8cp@...627...> <200511232053.13118.gambas@...1...> <1132778742.11311.1.camel@...1222...> Message-ID: <7259b5ae0511231310ld0d7227v@...627...> > The system marks Plasencia (C?ceres - Extremadura - Spain) in the Basque > Country :( Hmmpfh... yes, I saw your entry and first I though you were born in Plasencia but living at Bilbao. May be you can report it to Frappr people, meanwhile may be you can select a place near of Plasencia (Navalmoral, Jarandilla?) even if it is not exactly what we want :-( Regards, D. Campos > > I'll try to solve it. > > El mi?, 23-11-2005 a las 20:53 +0100, Benoit Minisini escribi?: > > On Wednesday 23 November 2005 20:31, Daniel Campos wrote: > > > > Can you create a map, so that we can put our location on it ? > > > > > > I'm sorry I do not understand... there's already a map! May be you're > > > using Konqueror? This Ajax based web seems to work only with > > > Mozilla/IE (At least my Konqueror version does not display the map) > > > > > > Regards, > > > > > > D. Campos > > > > > > > That was that! :-) > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_idv37&alloc_id865&opclick > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From dcamposf at ...626... Wed Nov 23 22:21:35 2005 From: dcamposf at ...626... (Daniel Campos) Date: Wed, 23 Nov 2005 22:21:35 +0100 Subject: [Gambas-user] About gambas user world map In-Reply-To: <200511232159.05868.gambas@...1...> References: <200511232159.05868.gambas@...1...> Message-ID: <7259b5ae0511231321t5146a5aby@...627...> More about that: 1) Here's the official frappr code to add to your web site if you want to reference the frappr/gambas group: Check out our Frappr! (You can see it at http://gambas.gnulinex.org ) 2) You can also add the following code if you want to show a slideshow of the group: (I didn't :-) 3) Additionaly, you can add the "Get Gambas" button I designed pointing to the gambas.sf.net site: Get Gambas Regards, D. Campos 2005/11/23, Benoit Minisini : > Hi, > > I suggest to the people who registered at http://www.frappr.com/gambas to put > in their description what they are done for Gambas (developing a component, > developing an example, made a patch, or financial support). > > Thanks in advance. And go register! :-) > > Regards, > > -- > Benoit Minisini > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Wed Nov 23 23:07:28 2005 From: gambas at ...1... (Benoit Minisini) Date: Wed, 23 Nov 2005 23:07:28 +0100 Subject: [Gambas-user] Re: Segmentation fault / Classes In-Reply-To: <7259b5ae0511230543o12938ca6q@...627...> References: <7259b5ae0511230010n7f691d72h@...627...> <7259b5ae0511230543o12938ca6q@...627...> Message-ID: <200511232307.29120.gambas@...1...> On Wednesday 23 November 2005 14:43, Daniel Campos wrote: > More about that (gambas 1.91.21a): > > The "Class" methods seem to be broken. I get a segmentation fault when > using any class from gb.qt, it seems to work with gb.gtk, but returns > the name of the symbol with the signature (for example "pText" > ), and If I use it with a class written in the same Gambas program, it > just returns one character strings like "p", "v"... > > Regards, > > D. Campos > > 2005/11/23, Daniel Campos : > > Hi: > > > > I think this code should work. However I get a segfault each time I > > try to execute it: > > > > PUBLIC SUB Button1_Click() > > > > DIM hClass AS Class > > DIM aString AS String > > > > hClass = Classes["Button"] > > > > > > FOR EACH aString IN hClass.Symbols > > > > PRINT aString > > > > NEXT > > > > END > > > > (With Gambas-2 1.9.21) > > > > Regards, > > > > D. Campos This should fix the problem... -- Benoit Minisini -------------- next part -------------- A non-text attachment was scrubbed... Name: gbx_c_class.c Type: text/x-csrc Size: 17127 bytes Desc: not available URL: From lordheavy at ...512... Wed Nov 23 23:21:51 2005 From: lordheavy at ...512... (Laurent Carlier) Date: Wed, 23 Nov 2005 23:21:51 +0100 Subject: [Gambas-user] About gambas user world map In-Reply-To: <200511232159.05868.gambas@...1...> References: <200511232159.05868.gambas@...1...> Message-ID: <200511232321.51724.lordheavy@...512...> Le Mercredi 23 Novembre 2005 21:59, Benoit Minisini a ?crit?: > Hi, > > I suggest to the people who registered at http://www.frappr.com/gambas to > put in their description what they are done for Gambas (developing a > component, developing an example, made a patch, or financial support). > > Thanks in advance. And go register! :-) > > Regards, So you 're trying to make clones ? ;-) Does this feature will be part of the next release ? It will be great if we can have your clone. :-) @+ -- jabber : lordheavy at ...943... mail : lordheavym at ...1227... From gambas-user at lists.sourceforge.net Thu Nov 24 00:10:20 2005 From: gambas-user at lists.sourceforge.net (Werner Staudacher) Date: Thu, 24 Nov 2005 00:10:20 +0100 Subject: [Gambas-user] Signal #11 In-Reply-To: <1132705388.11392.3.camel@...37...> References: <002c01c5ef75$825b97e0$52cc11ac@...1233...> <1132682763.7060.3.camel@...37...> <438387F4.2040300@lists.sourceforge.net> <1132705388.11392.3.camel@...37...> Message-ID: <4384F6DC.8000006@lists.sourceforge.net> Charlie Reinl schrieb: >Am Dienstag, den 22.11.2005, 22:04 +0100 schrieb Werner Staudacher: > > >>Charlie Reinl schrieb: >> >> > > > >>>Salut, >>> >>>please try this working small project, play around with height etc. and >>>tell us if it worked or not >>> >>>Amicalment >>>Charlie >>> >>> >>> >>> >>Hi Charly >> >>Thanks for the Test project. >>I fiddled around and and changed a little so that you can see what i mean. >> >>Staudi >> >> >Salut, > >here everything works right, I changed styles on KDE ... no chrash >send you my config and the script who makes it. > >Amicalment >Charlie > > > To Benoit: clearly answer. To Charlie: Its not the point that gambas crashes when using like the sample, it crashes when i set the height of the progressbar to 0 (because QT or KDE). I have doing this (set height 0 for invisible and >0 when working) as workaround because the progressbar works not when i assign visibility only in a procedure which have to work a lot (as you can see in the sample). Thanks for your Help Staudi -------------- next part -------------- ----------------- gambas ---------------------------------------------------------------- gbx-1.0.12 /usr/bin/gbx ----------------- gambas2 ---------------------------------------------------------------- /home/ws/sysInfo.sh: line 6: gbx2: command not found ----------------- X -------------------------------------------------------------------- X Window System Version 6.8.2 (Debian 6.8.2.dfsg.1-10 20051030001519 David Nusinow ) Release Date: 9 February 2005 X Protocol Version 11, Revision 0, Release 6.8.2 Build Operating System: Linux 2.6.12-1-686 i686 [ELF] Current Operating System: Linux lnx 2.6.11-kanotix-11 #1 Sun May 29 22:32:10 CEST 2005 i686 Build Date: 30 October 2005 Before reporting problems, check http://wiki.X.Org to make sure that you have the latest version. Module Loader present OS Kernel: Linux version 2.6.11-kanotix-11 (root at ...1239...) (gcc version 3.3.6 (Debian 1:3.3.6-5)) #1 Sun May 29 22:32:10 CEST 2005 ----------------- kernel ---------------------------------------------------------------- Linux lnx 2.6.11-kanotix-11 #1 Sun May 29 22:32:10 CEST 2005 i686 GNU/Linux ----------------- Release -------------------------------------------------------------- testing/unstable ----------------- QT and KDE ------------------------------------------------------------ Qt: 3.3.5 KDE: 3.4.2 KDE Daemon: $Id: kded.cpp 380816 2005-01-21 15:36:26Z waba $ ----------------- gcc -------------------------------------------------------------------- gcc (GCC) 4.0.3 20051111 (prerelease) (Debian 4.0.2-4) Copyright (C) 2005 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ----------------- make ---------------------------------------------------------------- GNU Make 3.80 Copyright (C) 2002 Free Software Foundation, Inc. Dies ist Freie Software; siehe die Programmquellen f?r Vervielf?ltigungsbedingungen. Es gibt KEINE Gew?hrleistung; nicht einmal f?r VERMARKTUNG oder NUTZBARKEIT F?R EINEN BESONDEREN ZWECK. ----------------- autoconf ---------------------------------------------------------------- /home/ws/sysInfo.sh: line 32: autoconf: command not found ----------------- automake ---------------------------------------------------------------- /home/ws/sysInfo.sh: line 34: automake: command not found ----------------- mySql ---------------------------------------------------------------- /home/ws/sysInfo.sh: line 36: mysql: command not found ----------------- PostgreSQL ------------------------------------------------------------ /home/ws/sysInfo.sh: line 38: psql: command not found ----------------- SQLite ---------------------------------------------------------------- /home/ws/sysInfo.sh: line 40: sqlite: command not found ----------------- SQLite3 ---------------------------------------------------------------- /home/ws/sysInfo.sh: line 42: sqlite3: command not found From kungfoobar at ...626... Thu Nov 24 04:10:43 2005 From: kungfoobar at ...626... (Alberto Torres) Date: Thu, 24 Nov 2005 04:10:43 +0100 Subject: [Gambas-user] Developing KoGe Designer: here goes a bunch of bug & feature reports Message-ID: Hello, KoGe designer is part of my project, it is a videogame designing tool for artists. Yesterday I released version 0.1.1 which is usable enough for trying out the implemented features. More info at http://koge.sf.net I wasn't sure where to mail this: to user or devel list. Gambas is a great developing tool, specially for GUIs, and I want to help to make gambas even better. While I was developing this, I found out (and sometimes suffered of) several bugs and design flaws which I'm going to list: * Shortcuts & keyboard events: I set several shorcuts for several menu items, some of them are single keys (i.e. no ctrl/alt/shift). Those single-key settings sometimes dissapears or doesn't work when reopening the project. I also wanted to allow the user to select several things while pressing ctrl key. I have no way of knowing the status of ctrl when user is clicking the drawingArea: keyboard events can't be read outside keydown/up events, and keydown/up events of several widgets including this drawingarea are *never* triggered. A workaround I built for both problems is putting a textbox behind something and always give it the focus. It catchs key events and sets a ctrl flag accordly. But now menu shortcuts don't work. What I did: textbox also manages menu shotcuts. * I don't know why the hell scrollbars in animator aren't set properly until you resize the window or move an object (see VSplit1_Resize()). Even when those scollbars are (manually) set up correctly, I don't know why sometimes editVBar is shorter than it should. * XmlReader is not very developer-friendly, specially when you use it with nested objects that manages the input themselves. I have made a class called kgXmlReader, wrapping an interface that, in my opinion, xmlReader should have. Take a look at kgXmlReader class, xmlRead() of any class and frmActionEd.Load() to see how I nest the reading proccess. Also, neither XmlReader nor XmlDocument can't be used to parse XMPP streams (I tried to make a jabber client in gambas, and I ended parsing manually several things before feeding data to gb.xml). * Translate project dialog has a button labeled 'close'. It means that closing the window should have the same effect as clicking that button, but it doesn't. Closing the window discards changes without any warning! * When you save and there is no space left in hard disk, files are truncated without any warning. I have lost some data several times because of that. * I can't invoke ListView items renaming, so the only way to rename something is the user clicking something when it's already selected. * I can't know where I'm dropping a drag into a ListView: .find always returns the selected item. Because of that I finally didn't implemented the copy-animation-by-dragging feature. * I'd like to save the size of frmActionEd.HSplit1, or at least keep it always in the same position by default. I did a quick hack at HSplit1_Resize() that worked, but I don't know how to control the proportion between both panels. * I still miss the selection clipboard in gambas editor (select=copy, middle-click=paste). I got used again to the so-known ctrl+x/c/v because of this. Klipper helps as bridge between normal clipboard and selection clipboard. As alternative, remapping those key bindings would be ok, specially when I tried to switch to dvorak. * I'd like to add things to the changelog while I'm working with a release instead of putting it all at the package wizard. * Sometimes it's difficult to maintain and free circular references cleanly. I'll post about it tomorrow with some suggestions explaining how it could be easier. * Interpreter crashes when no $LANG is set. Oh, ok, that's fixed. There should be an easy way to test a project with another $LANG set. I forget some things, but it's very late. I'm going to sleep. Cheers, and good night -- DiThi e-mail: kungfoobar at ...626... Jabber ID: dithi at ...646... From emailvarie at ...1234... Thu Nov 24 11:42:38 2005 From: emailvarie at ...1234... (Angelo Compagnucci) Date: Thu, 24 Nov 2005 11:42:38 +0100 Subject: [Gambas-user] Install gambas FC3 Message-ID: <200511241142.38361.emailvarie@...1234...> HI! Anybody knows how to install gambas into a Fedora Core 3? I had several issues with packages deps. Thanks to all! From ronald_gambas at ...43... Thu Nov 24 13:08:24 2005 From: ronald_gambas at ...43... (Ronald Medina) Date: Thu, 24 Nov 2005 04:08:24 -0800 (PST) Subject: [Gambas-user] gambas application! Message-ID: <20051124120824.22166.qmail@...1240...> HELLO GAMBAS USERS! :) I'm currently experimenting on gambas for use in our school for student admission using mysql as the backend so far its pretty cool... my question is, is gambas ready for production release? i'm pretty worried it might crash so m also thinking of doing a replica application in visual foxpro 9 just in case it will fail :), what do you think? i just love LINUX running with gambas in our admission department its pretty cool. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From jdsantos1978 at ...626... Thu Nov 24 13:45:39 2005 From: jdsantos1978 at ...626... (Jose Daniel Santos Delgado) Date: Thu, 24 Nov 2005 13:45:39 +0100 Subject: [Gambas-user] gambas application! In-Reply-To: <20051124120824.22166.qmail@...1240...> References: <20051124120824.22166.qmail@...1240...> Message-ID: <12e18d6c0511240445g6d399aaeo@...627...> Hello Ronald! I've got a pair of simple gambas applications in the high-school where I work and they are doing it pretty well. I've also developed some stuff against mysql database with no problem. Anyway, you can always make backups of your database to be safe under a hipotetical big Crash. I can assure you that Gambas does not fails as much as VB do. Regards. 2005/11/24, Ronald Medina : > HELLO GAMBAS USERS! :) > I'm currently experimenting on gambas for use in our > school for > student admission using mysql as the backend so far > its pretty cool... > my question is, is gambas ready for production > release? i'm pretty worried > it might crash so m also thinking of doing a replica > application in > visual foxpro 9 just in case it will fail :), what do > you think? i just > love LINUX running with gambas in our admission > department its pretty cool. > > > > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From neil at ...233... Thu Nov 24 14:44:43 2005 From: neil at ...233... (neil lewis) Date: Thu, 24 Nov 2005 13:44:43 +0000 Subject: [Gambas-user] gambas application! In-Reply-To: <20051124120824.22166.qmail@...1240...> References: <20051124120824.22166.qmail@...1240...> Message-ID: <4385C3CB.6070501@...233...> Hi Ronald, I think you can forget any worries you may have about Gambas being unstable. My experience of using the various releases over the past couple of years has been that Gambas applications are every bit as stable as any others. I've used Gambas to build all sorts of applications for use in my photography business, including automating digital proof (contact) sheets, general backups and interlacing lenticular images of up to 2.5GB in size. I've used Gambas on both 32 bit and 64 bit platforms and I've used both the Gambas 1 and Gambas 2 series environments. Hope that helps. Neil Lewis (Photobod), London. Ronald Medina wrote: >HELLO GAMBAS USERS! :) >I'm currently experimenting on gambas for use in our >school for >student admission using mysql as the backend so far >its pretty cool... >my question is, is gambas ready for production >release? i'm pretty worried >it might crash so m also thinking of doing a replica >application in >visual foxpro 9 just in case it will fail :), what do >you think? i just >love LINUX running with gambas in our admission >department its pretty cool. > > > > > >__________________________________________________ >Do You Yahoo!? >Tired of spam? Yahoo! Mail has the best spam protection around >http://mail.yahoo.com > > >------------------------------------------------------- >This SF.net email is sponsored by: Splunk Inc. Do you grep through log files >for problems? Stop! Download the new AJAX search engine that makes >searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! >http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click >_______________________________________________ >Gambas-user mailing list >Gambas-user at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/gambas-user > > > From kungfoobar at ...626... Thu Nov 24 20:11:01 2005 From: kungfoobar at ...626... (Alberto Torres) Date: Thu, 24 Nov 2005 20:11:01 +0100 Subject: [Gambas-user] Developing KoGe Designer: here goes a bunch of bug & feature reports In-Reply-To: References: Message-ID: Hello, I'm sending this mail again because it looks like it wasn't sent. Sorry if it's a duplicate. KoGe designer is part of my project, it is a videogame designing tool for artists. Yesterday I released version 0.1.1 which is usable enough for trying out the implemented features. More info at http://koge.sf.net I wasn't sure where to mail this: to user or devel list. Gambas is a great developing tool, specially for GUIs, and I want to help to make gambas even better. While I was developing this, I found out (and sometimes suffered of) several bugs and design flaws which I'm going to list: * Shortcuts & keyboard events: I set several shorcuts for several menu items, some of them are single keys (i.e. no ctrl/alt/shift). Those single-key settings sometimes dissapears or doesn't work when reopening the project. I also wanted to allow the user to select several things while pressing ctrl key. I have no way of knowing the status of ctrl when user is clicking the drawingArea: keyboard events can't be read outside keydown/up events, and keydown/up events of several widgets including this drawingarea are *never* triggered. A workaround I built for both problems is putting a textbox behind something and always give it the focus. It catchs key events and sets a ctrl flag accordly. But now menu shortcuts don't work. What I did: textbox also manages menu shotcuts. * I don't know why the hell scrollbars in animator aren't set properly until you resize the window or move an object (see VSplit1_Resize()). Even when those scollbars are (manually) set up correctly, I don't know why sometimes editVBar is shorter than it should. * XmlReader is not very developer-friendly, specially when you use it with nested objects that manages the input themselves. I have made a class called kgXmlReader, wrapping an interface that, in my opinion, xmlReader should have. Take a look at kgXmlReader class, xmlRead() of any class and frmActionEd.Load() to see how I nest the reading proccess. Also, neither XmlReader nor XmlDocument can't be used to parse XMPP streams (I tried to make a jabber client in gambas, and I ended parsing manually several things before feeding data to gb.xml). * Translate project dialog has a button labeled 'close'. It means that closing the window should have the same effect as clicking that button, but it doesn't. Closing the window discards changes without any warning! * When you save and there is no space left in hard disk, files are truncated without any warning. I have lost some data several times because of that. * I can't invoke ListView items renaming, so the only way to rename something is the user clicking something when it's already selected. * I can't know where I'm dropping a drag into a ListView: .find always returns the selected item. Because of that I finally didn't implemented the copy-animation-by-dragging feature. * I'd like to save the size of frmActionEd.HSplit1, or at least keep it always in the same position by default. I did a quick hack at HSplit1_Resize() that worked, but I don't know how to control the proportion between both panels. * I still miss the selection clipboard in gambas editor (select=copy, middle-click=paste). I got used again to the so-known ctrl+x/c/v because of this. Klipper helps as bridge between normal clipboard and selection clipboard. As alternative, remapping those key bindings would be ok, specially when I tried to switch to dvorak. * I'd like to add things to the changelog while I'm working with a release instead of putting it all at the package wizard. * Sometimes it's difficult to maintain and free circular references cleanly. I'll post about it tomorrow with some suggestions explaining how it could be easier. * Interpreter crashes when no $LANG is set. Oh, ok, that's fixed. There should be an easy way to test a project with another $LANG set. I forget some things, but it's very late. I'm going to sleep. Cheers, and good night -- DiThi e-mail: kungfoobar at ...626... Jabber ID: dithi at ...646... From kungfoobar at ...626... Thu Nov 24 20:53:29 2005 From: kungfoobar at ...626... (Alberto Torres) Date: Thu, 24 Nov 2005 20:53:29 +0100 Subject: [Gambas-user] Mail not arriving Message-ID: Hey, I have sent a message to this list twice but it didn't arrived, or it seems so. I wonder if there is some sort of content filtering or moderation. The message was pretty long. Any clue? -- DiThi e-mail: kungfoobar at ...626... Jabber ID: dithi at ...646... From lordheavy at ...512... Thu Nov 24 21:03:18 2005 From: lordheavy at ...512... (Laurent Carlier) Date: Thu, 24 Nov 2005 21:03:18 +0100 Subject: [Gambas-user] Mail not arriving In-Reply-To: References: Message-ID: <200511242103.18941.lordheavy@...512...> Le Jeudi 24 Novembre 2005 20:53, Alberto Torres a ?crit?: > Hey, I have sent a message to this list twice but it didn't arrived, > or it seems so. I wonder if there is some sort of content filtering or > moderation. The message was pretty long. > > Any clue? > no, your message arrived :) -- Hello, KoGe designer is part of my project, it is a videogame designing tool for artists. Yesterday I released version 0.1.1 which is usable enough for trying out the implemented features. More info at http://koge.sf.net I wasn't sure where to mail this: to user or devel list. Gambas is a great developing tool, specially for GUIs, and I want to help to make gambas even better. While I was developing this, I found out (and sometimes suffered of) several bugs and design flaws which I'm going to list: * Shortcuts & keyboard events: I set several shorcuts for several menu items, some of them are single keys (i.e. no ctrl/alt/shift). Those single-key settings sometimes dissapears or doesn't work when reopening the project. I also wanted to allow the user to select several things while pressing ctrl key. I have no way of knowing the status of ctrl when user is clicking the drawingArea: keyboard events can't be read outside keydown/up events, and keydown/up events of several widgets including this drawingarea are *never* triggered. A workaround I built for both problems is putting a textbox behind something and always give it the focus. It catchs key events and sets a ctrl flag accordly. But now menu shortcuts don't work. What I did: textbox also manages menu shotcuts. * I don't know why the hell scrollbars in animator aren't set properly until you resize the window or move an object (see VSplit1_Resize()). Even when those scollbars are (manually) set up correctly, I don't know why sometimes editVBar is shorter than it should. * XmlReader is not very developer-friendly, specially when you use it with nested objects that manages the input themselves. I have made a class called kgXmlReader, wrapping an interface that, in my opinion, xmlReader should have. Take a look at kgXmlReader class, xmlRead() of any class and frmActionEd.Load() to see how I nest the reading proccess. Also, neither XmlReader nor XmlDocument can't be used to parse XMPP streams (I tried to make a jabber client in gambas, and I ended parsing manually several things before feeding data to gb.xml). * Translate project dialog has a button labeled 'close'. It means that closing the window should have the same effect as clicking that button, but it doesn't. Closing the window discards changes without any warning! * When you save and there is no space left in hard disk, files are truncated without any warning. I have lost some data several times because of that. * I can't invoke ListView items renaming, so the only way to rename something is the user clicking something when it's already selected. * I can't know where I'm dropping a drag into a ListView: .find always returns the selected item. Because of that I finally didn't implemented the copy-animation-by-dragging feature. * I'd like to save the size of frmActionEd.HSplit1, or at least keep it always in the same position by default. I did a quick hack at HSplit1_Resize() that worked, but I don't know how to control the proportion between both panels. * I still miss the selection clipboard in gambas editor (select=copy, middle-click=paste). I got used again to the so-known ctrl+x/c/v because of this. Klipper helps as bridge between normal clipboard and selection clipboard. As alternative, remapping those key bindings would be ok, specially when I tried to switch to dvorak. * I'd like to add things to the changelog while I'm working with a release instead of putting it all at the package wizard. * Sometimes it's difficult to maintain and free circular references cleanly. I'll post about it tomorrow with some suggestions explaining how it could be easier. * Interpreter crashes when no $LANG is set. Oh, ok, that's fixed. There should be an easy way to test a project with another $LANG set. I forget some things, but it's very late. I'm going to sleep. Cheers, and good night -- jabber : lordheavy at ...943... mail : lordheavym at ...1227... From gambas at ...1... Thu Nov 24 21:48:41 2005 From: gambas at ...1... (Benoit Minisini) Date: Thu, 24 Nov 2005 21:48:41 +0100 Subject: [Gambas-user] gambas application! In-Reply-To: <4385C3CB.6070501@...233...> References: <20051124120824.22166.qmail@...1240...> <4385C3CB.6070501@...233...> Message-ID: <200511242148.41274.gambas@...1...> On Thursday 24 November 2005 14:44, neil lewis wrote: > Hi Ronald, > > I think you can forget any worries you may have about Gambas being > unstable. My experience of using the various releases over the past couple > of years has been that Gambas applications are every bit as stable as any > others. > I've used Gambas to build all sorts of applications for use in my > photography business, including automating digital proof (contact) > sheets, general backups and interlacing lenticular images of up to 2.5GB > in size. I've used Gambas on both 32 bit and 64 bit platforms and I've > used both the Gambas 1 and Gambas 2 series environments. > > Hope that helps. > > Neil Lewis (Photobod), London. > > Ronald Medina wrote: > >HELLO GAMBAS USERS! :) > >I'm currently experimenting on gambas for use in our > >school for > >student admission using mysql as the backend so far > >its pretty cool... > >my question is, is gambas ready for production > >release? i'm pretty worried > >it might crash so m also thinking of doing a replica > >application in > >visual foxpro 9 just in case it will fail :), what do > >you think? i just > >love LINUX running with gambas in our admission > >department its pretty cool. > > Just to say that the development environment should not be used in critical environments! Except if you know exactly what you do... Regards, -- Benoit Minisini From gambas at ...1... Thu Nov 24 22:07:01 2005 From: gambas at ...1... (Benoit Minisini) Date: Thu, 24 Nov 2005 22:07:01 +0100 Subject: [Gambas-user] Developing KoGe Designer: here goes a bunch of bug & feature reports In-Reply-To: References: Message-ID: <200511242207.02083.gambas@...1...> On Thursday 24 November 2005 04:10, Alberto Torres wrote: > Hello, Hello! > > KoGe designer is part of my project, it is a videogame designing tool > for artists. Yesterday I released version 0.1.1 which is usable enough > for trying out the implemented features. More info at > http://koge.sf.net > > I wasn't sure where to mail this: to user or devel list. Gambas is a > great developing tool, specially for GUIs, and I want to help to make > gambas even better. > While I was developing this, I found out (and sometimes suffered of) > several bugs and design flaws which I'm going to list: > > * Shortcuts & keyboard events: I set several shorcuts for several menu > items, some of them are single keys (i.e. no ctrl/alt/shift). Those > single-key settings sometimes dissapears or doesn't work when > reopening the project. I couldn't reproduce this bug... Can you send me a project where single-key shortcuts disappear? > I also wanted to allow the user to select several things while > pressing ctrl key. I have no way of knowing the status of ctrl when > user is clicking the drawingArea: keyboard events can't be read > outside keydown/up events, The Mouse static class has the following properties: Alt, Control and Shift to know if one of this key was pressed during the mouse event. > and keydown/up events of several widgets > including this drawingarea are *never* triggered. This is a problem. Only widgets with focus get them. I will try to fix that. > A workaround I built for both problems is putting a textbox behind > something and always give it the focus. It catchs key events and sets > a ctrl flag accordly. But now menu shortcuts don't work. What I did: > textbox also manages menu shotcuts. > > * I don't know why the hell scrollbars in animator aren't set properly > until you resize the window or move an object (see VSplit1_Resize()). > Even when those scollbars are (manually) set up correctly, I don't > know why sometimes editVBar is shorter than it should. What are you talking about exactly? Which containers, with which controls inside? > > * XmlReader is not very developer-friendly, specially when you use it > with nested objects that manages the input themselves. I have made a > class called kgXmlReader, wrapping an interface that, in my opinion, > xmlReader should have. Take a look at kgXmlReader class, xmlRead() of > any class and frmActionEd.Load() to see how I nest the reading > proccess. > > Also, neither XmlReader nor XmlDocument can't be used to parse XMPP > streams (I tried to make a jabber client in gambas, and I ended > parsing manually several things before feeding data to gb.xml). That is Daniel's job :-) > > * Translate project dialog has a button labeled 'close'. It means that > closing the window should have the same effect as clicking that > button, but it doesn't. Closing the window discards changes without > any warning! Another bug... > > * When you save and there is no space left in hard disk, files are > truncated without any warning. I have lost some data several times > because of that. Yet another one... > > * I can't invoke ListView items renaming, so the only way to rename > something is the user clicking something when it's already selected. Yes! I forgot the Rename method in the ListView item virtual class. I will add it. > > * I can't know where I'm dropping a drag into a ListView: .find always > returns the selected item. Because of that I finally didn't > implemented the copy-animation-by-dragging feature. Strange... It shouldn't. Did you look at the TreeView example? The Find method of TreeView, ListView and ColumnView internally execute the same code. > > * I'd like to save the size of frmActionEd.HSplit1, or at least keep > it always in the same position by default. I did a quick hack at > HSplit1_Resize() that worked, but I don't know how to control the > proportion between both panels. Did you see the Layout property? > > * I still miss the selection clipboard in gambas editor (select=copy, > middle-click=paste). I got used again to the so-known ctrl+x/c/v > because of this. Sorry, I didn't implement it. > Klipper helps as bridge between normal clipboard and > selection clipboard. As alternative, remapping those key bindings > would be ok, specially when I tried to switch to dvorak. > > * I'd like to add things to the changelog while I'm working with a > release instead of putting it all at the package wizard. You can. ChangeLog is just a text file in the project. > > * Sometimes it's difficult to maintain and free circular references > cleanly. I'll post about it tomorrow with some suggestions explaining > how it could be easier. It is just a matter of knowing what you do. It is difficult when you have to maintain parent/child relationship between objects. > > * Interpreter crashes when no $LANG is set. Oh, ok, that's fixed. > There should be an easy way to test a project with another $LANG set. You mean, when you run the project from the IDE? > > I forget some things, but it's very late. I'm going to sleep. I'm waiting the following with impatience :-) > > Cheers, and good night > -- > DiThi > e-mail: kungfoobar at ...626... > Jabber ID: dithi at ...646... > Regards, -- Benoit Minisini From ronald_gambas at ...43... Fri Nov 25 04:52:00 2005 From: ronald_gambas at ...43... (Ronald Medina) Date: Thu, 24 Nov 2005 19:52:00 -0800 (PST) Subject: [Gambas-user] gambas application! In-Reply-To: <200511242148.41274.gambas@...1...> Message-ID: <20051125035200.75913.qmail@...1242...> thanks guys! thanks Benoit for your effort you are an angel! --- Benoit Minisini wrote: > On Thursday 24 November 2005 14:44, neil lewis > wrote: > > Hi Ronald, > > > > I think you can forget any worries you may have > about Gambas being > > unstable. My experience of using the various > releases over the past couple > > of years has been that Gambas applications are > every bit as stable as any > > others. > > I've used Gambas to build all sorts of > applications for use in my > > photography business, including automating digital > proof (contact) > > sheets, general backups and interlacing lenticular > images of up to 2.5GB > > in size. I've used Gambas on both 32 bit and 64 > bit platforms and I've > > used both the Gambas 1 and Gambas 2 series > environments. > > > > Hope that helps. > > > > Neil Lewis (Photobod), London. > > > > Ronald Medina wrote: > > >HELLO GAMBAS USERS! :) > > >I'm currently experimenting on gambas for use in > our > > >school for > > >student admission using mysql as the backend so > far > > >its pretty cool... > > >my question is, is gambas ready for production > > >release? i'm pretty worried > > >it might crash so m also thinking of doing a > replica > > >application in > > >visual foxpro 9 just in case it will fail :), > what do > > >you think? i just > > >love LINUX running with gambas in our admission > > >department its pretty cool. > > > > > Just to say that the development environment should > not be used in critical > environments! Except if you know exactly what you > do... > > Regards, > > -- > Benoit Minisini > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do > you grep through log files > for problems? Stop! Download the new AJAX search > engine that makes > searching your log files as easy as surfing the > web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > __________________________________ Yahoo! Music Unlimited Access over 1 million songs. Try it free. http://music.yahoo.com/unlimited/ From leonardo at ...1237... Fri Nov 25 14:57:18 2005 From: leonardo at ...1237... (Leonardo Miliani) Date: Fri, 25 Nov 2005 14:57:18 +0100 Subject: [Gambas-user] Variable ByVal Message-ID: <4387183E.4070102@...1237...> I wrote a little program that utilizies some sorting algorithms to order a test array. But I have a problem. I call the sorting algorithm which is included in a sub and I pass the array to order using another array. But, after I called the sub I get both arrays ordered... Why? Or, is there a method to pass variables BYVAL, as in Visual Basic? To understand my problem, here is a little sample: Public Sub Ordina() DIM Matrice AS String[0] DIM Matrice2 AS String[0] matrice.Resize(elementi) matrice2.Resize(elementi) ..... .filling matrice[] ..... matrice2 = matrice bubblesort(matrice2) .... ..here I get both matrice and matrice2 ordered! .... Enf Public sub bubblesort(matrix as string[]) DIM I AS Integer DIM J AS Integer DIM X AS String FOR I = 2 TO elementi FOR J = elementi TO I STEP -1 IF matrix[J - 1] > matrix[J] THEN X = matrix[J - 1] matrix[J - 1] = matrix[J] matrix[J] = X END IF NEXT NEXT END It is very strange for me, because all the operations are made on matrix[], which gets its datas from matrice2[], not directly from matrice[]. -- Ciao. Leo Visita il mio sito personale: www.leonardomiliani.com e-mail: leonardo at ...1237... From sakya_tg at ...325... Fri Nov 25 16:16:27 2005 From: sakya_tg at ...325... (sakya) Date: Fri, 25 Nov 2005 15:16:27 +0000 Subject: [Gambas-user] Variable ByVal In-Reply-To: <4387183E.4070102@...1237...> References: <4387183E.4070102@...1237...> Message-ID: <43872ACB.3040901@...325...> Ciao Leonardo! > It is very strange for me, because all the operations are made on > matrix[], which gets its datas from matrice2[], not directly from > matrice[]. > It's normal. :-) The line: matrice2 = matrice Doesn't copy the matrix in a new variable, it only "links" matrice to matrice2. Every changes made on matrice are made also on matrice2 (they are tha same variable!) In this example you'll see "d" also in a: DIM a AS NEW String[] DIM b AS NEW String[] a.Add("a") a.Add("b") a.Add("c") b = a b.Add("d") message(a.Join()) To copy a matrix you must do: matrice2 = matrice.copy() In this example you won't find "d" in a: DIM a AS NEW String[] DIM b AS NEW String[] a.Add("a") a.Add("b") a.Add("c") b = a.Copy() b.Add("d") message(a.Join()) Ciao Paolo ___________________________________ Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB http://mail.yahoo.it From htakada at ...626... Fri Nov 25 22:05:24 2005 From: htakada at ...626... (Hugo) Date: Fri, 25 Nov 2005 18:05:24 -0300 Subject: [Gambas-user] gambas2 + any source management system ? Message-ID: is anybody using gambas with a source control system ? can you tell your experience ? regards Hugo -------------- next part -------------- An HTML attachment was scrubbed... URL: From dcamposf at ...626... Fri Nov 25 22:57:53 2005 From: dcamposf at ...626... (Daniel Campos) Date: Fri, 25 Nov 2005 22:57:53 +0100 Subject: [Gambas-user] Developing KoGe Designer: here goes a bunch of bug & feature reports In-Reply-To: <200511242207.02083.gambas@...1...> References: <200511242207.02083.gambas@...1...> Message-ID: <7259b5ae0511251357k6970c9e0w@...627...> > > > > > * XmlReader is not very developer-friendly, specially when you use it > > with nested objects that manages the input themselves. I have made a > > class called kgXmlReader, wrapping an interface that, in my opinion, > > xmlReader should have. Take a look at kgXmlReader class, xmlRead() of > > any class and frmActionEd.Load() to see how I nest the reading > > proccess. > > > > Also, neither XmlReader nor XmlDocument can't be used to parse XMPP > > streams (I tried to make a jabber client in gambas, and I ended > > parsing manually several things before feeding data to gb.xml). > > That is Daniel's job :-) > Just now I'm rewritting some parts of the XML component, and it will have more friendly interfaces. XmlReader is designed just to provide a quite light interface - very low memory footprint -, but It was really missing some things I've added. I'll take a look at your code too, may be your ideas can help that class. Regards, D. Campos From gambas at ...1229... Sat Nov 26 01:23:11 2005 From: gambas at ...1229... (Fabricio Santos) Date: Sat, 26 Nov 2005 01:23:11 +0100 Subject: [Gambas-user] Result is not available References: <200511221038.45440.gambas@...1...> Message-ID: <002001c5f221$bfd3ab90$0201a8c0@...1243...> > Maybe you actually get the error on textBox1.Text = res!City, because your > sql > request returns no result. Sure enough you were just about right... :-/ I am starting to meet Gambas and actually comming back to some programing after over 10 years of not touching it. As I was reviewing a small example from a UK magazine I was testing it step by step and at a certain point there is one step that you cannot take on its own without getting the database inconsistent... :-) I guess you can figure the rest out... :-) > Note: resManager.MoveFirst is not necessary, if you do a MoveTo just > after. And thanks for the tip... > Regards, > > -- > Benoit Minisini Fabr?cio Santos From vic at ...1245... Sat Nov 26 02:13:18 2005 From: vic at ...1245... (vic at ...1245...) Date: Sat, 26 Nov 2005 02:13:18 +0100 (CET) Subject: [Gambas-user] Little translation bug Message-ID: <55740.81.202.170.220.1132967598.squirrel@...1246...> Hi all: First of all a little thx to Benoit for his fantastic work. I'm enjoying a lot my first step in visual coding on Linux. Thx a lot m8 !! ;) And now, my two cents: I'm using spanish version of gambas and, when using the gambas ide found a lot annoying the relief effect used to draw keywords. I tried to adjust editor colors to get rid of it but can't so I decided to study the source code to remove the relief by myself (Holy free software! ;) I acomplished the job fast, compiled the new editor component and, fool of me, found that there was yet an option to remove relief. The problem is that the spanish translation of that option was wrong. In English under Preferences/Editor it says -> "Use relief" In Spanish, at the same place, it says -> "Usar ayuda" "Usar ayuda" is the translation to "Use help" not to "Use relief" The right translation is "Usar relieve" Hope this helps some guy to not waste some time modifying gambas editor code (anyway is a nice way of learning some things ;)) Regards V?ctor Iborra From vic at ...1245... Sat Nov 26 02:17:51 2005 From: vic at ...1245... (vic at ...1245...) Date: Sat, 26 Nov 2005 02:17:51 +0100 (CET) Subject: [Gambas-user] Little translation bug Message-ID: <34985.81.202.170.220.1132967871.squirrel@...1246...> Hi all: First of all a little thx to Benoit for his fantastic work. I'm enjoying a lot my first step in visual coding on Linux. Thx a lot m8 !! ;) And now, my two cents: I'm using spanish version of gambas and, when using the gambas ide found a lot annoying the relief effect used to draw keywords. I tried to adjust editor colors to get rid of it but can't so I decided to study the source code to remove the relief by myself (Holy free software! ;) I acomplished the job fast, compiled the new editor component and, fool of me, found that there was yet an option to remove relief. The problem is that the spanish translation of that option was wrong. In English under Preferences/Editor it says -> "Use relief" In Spanish, at the same place, it says -> "Usar ayuda" "Usar ayuda" is the translation to "Use help" not to "Use relief" The right translation is "Usar relieve" Hope this helps some guy to not waste some time modifying gambas editor code (anyway is a nice way of learning some things ;)) Regards V?ctor Iborra From kchularrit at ...734... Sat Nov 26 06:26:13 2005 From: kchularrit at ...734... (Kchula-Rrit) Date: Fri, 25 Nov 2005 21:26:13 -0800 Subject: [Gambas-user] gambas application! In-Reply-To: <20051125035200.75913.qmail@...1242...> References: <20051125035200.75913.qmail@...1242...> Message-ID: <200511252126.13658.kchularrit@...734...> I don't know about "Real Applications" but I'm using it to emulate a TI99/4 console (just for the heck of it) and all the problems I've had were my own doing, not Gambas. K-R. From gambas at ...1... Sat Nov 26 18:03:26 2005 From: gambas at ...1... (Benoit Minisini) Date: Sat, 26 Nov 2005 18:03:26 +0100 Subject: [Gambas-user] Release of gambas 1.9.22 Message-ID: <200511261803.26854.gambas@...1...> Here is a new release of the development version... The main changes are: * Database component now supports Long (64 bits integer) database fields. * gb.pdf is a new component made by Daniel Campos for decoding PDF documents. * Components can ask for images or pictures, and this feature is used in the gb.v4l component, and in the new gb.pdf component. * The OpenGL component was updated. * And many little improvements and bug fixes... Download it at http://gambas.sf.net/download.html The full ChangeLog is at http//gambas.sf.net/changelog2.html Enjoy it! Regards, -- Benoit Minisini From kungfoobar at ...626... Sat Nov 26 20:08:27 2005 From: kungfoobar at ...626... (Alberto Torres) Date: Sat, 26 Nov 2005 20:08:27 +0100 Subject: [Gambas-user] Little translation bug In-Reply-To: <34985.81.202.170.220.1132967871.squirrel@...1246...> References: <34985.81.202.170.220.1132967871.squirrel@...1246...> Message-ID: the problem, I think is that 'relief' is not 'relieve', so the mistake is in the english translation. The right phrase is 'raise keywords' or 'emboss keywords'. So the spanish translation should be 'Poner en relieve las palabras clave' or, like you said, 'Usar relieve' 2005/11/26, vic at ...1245... : > Hi all: > > First of all a little thx to Benoit for his fantastic work. I'm enjoying a > lot my first step in visual coding on Linux. Thx a lot m8 !! ;) > > And now, my two cents: > > I'm using spanish version of gambas and, when using the gambas ide found a > lot annoying the relief effect used to draw keywords. I tried to adjust > editor colors to get rid of it but can't so I decided to study the source > code to remove the relief by myself (Holy free software! ;) > > I acomplished the job fast, compiled the new editor component and, fool of > me, found that there was yet an option to remove relief. > > The problem is that the spanish translation of that option was wrong. > > In English under Preferences/Editor it says -> "Use relief" > > In Spanish, at the same place, it says -> "Usar ayuda" > > "Usar ayuda" is the translation to "Use help" not to "Use relief" > > The right translation is "Usar relieve" > > Hope this helps some guy to not waste some time modifying gambas editor > code (anyway is a nice way of learning some things ;)) > > Regards > > V?ctor Iborra > > > > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- DiThi e-mail: kungfoobar at ...626... Jabber ID: dithi at ...646... From melk54 at ...67... Sat Nov 26 20:10:19 2005 From: melk54 at ...67... (tine melk) Date: Sat, 26 Nov 2005 19:10:19 +0000 Subject: [Gambas-user] Class array Message-ID: Is there a way and if so how to use array in class. this "dim myclass as new class1[]" looks like are allowed but how to access it? Running Gambas 1.9.21 on ubuntu 5.10 class1.class public name as string public phone as string main.gb dim myclass as new class1[] public sub main() 'Should'nt it be possible to myclass[1].name="dummy" myclass[2].phone="0123456" end sub _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ From dcamposf at ...626... Sat Nov 26 21:01:52 2005 From: dcamposf at ...626... (Daniel Campos) Date: Sat, 26 Nov 2005 21:01:52 +0100 Subject: [Gambas-user] Class array In-Reply-To: References: Message-ID: <7259b5ae0511261201t13176c20r@...627...> > > Running Gambas 1.9.21 on ubuntu 5.10 > > class1.class > > public name as string > public phone as string > > main.gb > > dim myclass as new class1[] > > public sub main() > > 'Should'nt it be possible to > myclass[1].name="dummy" > myclass[2].phone="0123456" > Hi: Use the generic object array to perform the task, and tell the interpreter the array dimension(s) prior to use it, or add new elements at runtime: Dim MyClass AS NEW OBJECT[] ... Dim hClass as new Class1 MyClass.Add(hClass) ... MyClass[0].name="dummy" Regards, D. Campos > end sub > > _________________________________________________________________ > Express yourself instantly with MSN Messenger! Download today - it's FREE! > http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From kungfoobar at ...626... Sat Nov 26 21:11:39 2005 From: kungfoobar at ...626... (Alberto Torres) Date: Sat, 26 Nov 2005 21:11:39 +0100 Subject: [Gambas-user] Class array In-Reply-To: References: Message-ID: The problems with objects is that must be declared Dim myClassArray as Object[](10) myClassArray[0] = NEW myClass myClassArray[0].name="john smith" myClassArray[1] = NEW myClass myClassArray[1].phone=123456 If you don't specify the size of the array: Dim myClassArray as Object[] dim asdf as new myClass myClassArray.Add(asdf) If you want to allocate X elements in the array: DIM i as Integuer DIM my as myClass FOR i=0 to X-1 my = NEW myClass myClassArray.Add(my) NEXT Or better: DIM i as Integuer myClassArray.Resize(X) FOR i=0 to X-1 myClassArray[i] = NEW myClass NEXT Check gb.Object[] in help Hope it helps Cheers 2005/11/26, tine melk : > Is there a way and if so how to use array in class. > this "dim myclass as new class1[]" looks like are allowed but > how to access it? > > Running Gambas 1.9.21 on ubuntu 5.10 > > class1.class > > public name as string > public phone as string > > main.gb > > dim myclass as new class1[] > > public sub main() > > 'Should'nt it be possible to > myclass[1].name="dummy" > myclass[2].phone="0123456" > > end sub > -- DiThi e-mail: kungfoobar at ...626... Jabber ID: dithi at ...646... From dcamposf at ...626... Sun Nov 27 17:09:13 2005 From: dcamposf at ...626... (Daniel Campos) Date: Sun, 27 Nov 2005 17:09:13 +0100 Subject: [Gambas-user] Just a joke Message-ID: <7259b5ae0511270809x44799c09u@...627...> Enjoy! :-) -------------- next part -------------- A non-text attachment was scrubbed... Name: GambasMagic.tar.gz Type: application/x-gzip Size: 3036 bytes Desc: not available URL: From shankarkrupa at ...43... Sun Nov 27 20:10:09 2005 From: shankarkrupa at ...43... (S Krupa Shankar) Date: Sun, 27 Nov 2005 11:10:09 -0800 (PST) Subject: [Gambas-user] Dealing with keycodes Message-ID: <20051127191010.72731.qmail@...1247...> Hello all, I am a new gambas user, living in Chennai, India. I like gambas very much, almost a boon to me to program in Linux. I have a question to start with. Since key.code property is read only, would it be possible to disable the user's input in the textbox/textarea by any other way? For example, in Visual Basic, if we expect only numbers and the user types 'a'... we can check for the keyascii value. If it is not in the 48-63 range, we can set keyascii=0. So now the 'a' wont go to the textbox. Is there something we can do like that in Gambas? Or we shall deal with it in the textbox's change event? __________________________________ Start your day with Yahoo! - Make it your home page! http://www.yahoo.com/r/hs From dcamposf at ...626... Sun Nov 27 20:24:48 2005 From: dcamposf at ...626... (Daniel Campos) Date: Sun, 27 Nov 2005 20:24:48 +0100 Subject: [Gambas-user] Dealing with keycodes In-Reply-To: <20051127191010.72731.qmail@...1247...> References: <20051127191010.72731.qmail@...1247...> Message-ID: <7259b5ae0511271124l5a541cdaq@...627...> Use the STOP EVENT Keyword in the KeyPress event. Regards, D. Campos 2005/11/27, S Krupa Shankar : > Hello all, > > I am a new gambas user, living in Chennai, India. > > I like gambas very much, almost a boon to me to > program in Linux. > > I have a question to start with. Since key.code > property is read only, would it be possible to disable > the user's input in the textbox/textarea by any other > way? > > For example, in Visual Basic, if we expect only > numbers and the user types 'a'... we can check for the > keyascii value. If it is not in the 48-63 range, we > can set keyascii=0. So now the 'a' wont go to the > textbox. > > Is there something we can do like that in Gambas? Or > we shall deal with it in the textbox's change event? > > > > __________________________________ > Start your day with Yahoo! - Make it your home page! > http://www.yahoo.com/r/hs > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jfabiani at ...1109... Sun Nov 27 20:38:47 2005 From: jfabiani at ...1109... (johnf) Date: Sun, 27 Nov 2005 11:38:47 -0800 Subject: [Gambas-user] some general questions Message-ID: <200511271138.47056.jfabiani@...1109...> Hi I'm a newbie so be nice! 1. Is there a event fire order within a window. I.e. Will a lostfocus event fire first before a click event for a different control? I was playing with RealBasic recently and discovered that a click event from a button fired prior to the lostfocus of a textbox/editfield control. Where is this spelled out - the order? 2. Is there any type of record paging for grids, listbox, or any other control that has to much data? 3. When binding a control to data does it move automaticly as the pointer moves within the recordset? As you can see I'm new to Gambas and have little in depth knowledge. Recently I have been following the forum but I have not seen these questions asked. Thanks in advance. John From gambas at ...1... Sun Nov 27 20:46:32 2005 From: gambas at ...1... (Benoit Minisini) Date: Sun, 27 Nov 2005 20:46:32 +0100 Subject: [Gambas-user] Just a joke In-Reply-To: <7259b5ae0511270809x44799c09u@...627...> References: <7259b5ae0511270809x44799c09u@...627...> Message-ID: <200511272046.32468.gambas@...1...> On Sunday 27 November 2005 17:09, Daniel Campos wrote: > Enjoy! :-) Funny! -- Benoit Minisini From rohnny at ...1248... Sun Nov 27 21:09:23 2005 From: rohnny at ...1248... (Rohnny Stormo) Date: Sun, 27 Nov 2005 21:09:23 +0100 Subject: [Gambas-user] Announce forum Message-ID: <438A1273.9010201@...1248...> Hi. After mailing Benoit Minisini and he say I should announce it here I do so. I have set up a forum if you are interested. Intention with the forum is to get a place where discussin can be done and users can find help each other to find nice solutions to theyr problems. I personally prefer forum instead of mailing lists and I guess others do as well. I have looked on the net but not found any good place. So be free to have a visit. Regards Rohnny From lordheavy at ...512... Sun Nov 27 21:22:51 2005 From: lordheavy at ...512... (Laurent Carlier) Date: Sun, 27 Nov 2005 21:22:51 +0100 Subject: [Gambas-user] Announce forum In-Reply-To: <438A1273.9010201@...1248...> References: <438A1273.9010201@...1248...> Message-ID: <200511272122.51898.lordheavy@...512...> Le Dimanche 27 Novembre 2005 21:09, Rohnny Stormo a ?crit?: > Hi. > > After mailing Benoit Minisini and he say I should announce it here I do so. > > I have set up a forum if you are interested. > Intention with the forum is to get a place where discussin can be done > and users can find help each other to find nice solutions to theyr > problems. I personally prefer forum instead of mailing lists and I guess > others do as well. > > I have looked on the net but not found any good place. So be free to > have a visit. > > > Regards Rohnny > Great ! But .... where what's the adress ? Regards, -- jabber : lordheavy at ...943... mail : lordheavym at ...1227... From lordheavy at ...512... Sun Nov 27 22:09:41 2005 From: lordheavy at ...512... (Laurent Carlier) Date: Sun, 27 Nov 2005 22:09:41 +0100 Subject: [Gambas-user] Some opengl examples using opengl and sdl components Message-ID: <200511272209.41811.lordheavy@...512...> These examples are from the Nehe website: http://nehe.gamedev.net/lesson.asp?index=01 Here are lessons 2 to 5 Have fun :) -- jabber : lordheavy at ...943... mail : lordheavym at ...1227... -------------- next part -------------- A non-text attachment was scrubbed... Name: NeheTutorial02-0.0.1.tar.gz Type: application/x-tgz Size: 1393 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: NeheTutorial04-0.0.1.tar.gz Type: application/x-tgz Size: 1494 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: NeheTutorial03-0.0.1.tar.gz Type: application/x-tgz Size: 1449 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: NeheTutorial05-0.0.1.tar.gz Type: application/x-tgz Size: 3468 bytes Desc: not available URL: From jfabiani at ...1109... Sun Nov 27 23:04:42 2005 From: jfabiani at ...1109... (johnf) Date: Sun, 27 Nov 2005 14:04:42 -0800 Subject: [Gambas-user] Some opengl examples using opengl and sdl components In-Reply-To: <200511272209.41811.lordheavy@...512...> References: <200511272209.41811.lordheavy@...512...> Message-ID: <200511271404.42559.jfabiani@...1109...> Thanks I'll check them out! John On Sunday 27 November 2005 13:09, Laurent Carlier wrote: > These examples are from the Nehe website: > http://nehe.gamedev.net/lesson.asp?index=01 > > Here are lessons 2 to 5 > > Have fun :) From joe1962 at ...626... Mon Nov 28 00:19:17 2005 From: joe1962 at ...626... (Jose J. Rodriguez) Date: Sun, 27 Nov 2005 18:19:17 -0500 Subject: [Gambas-user] Announce forum In-Reply-To: <438A1273.9010201@...1248...> References: <438A1273.9010201@...1248...> Message-ID: <6c208f950511271519o2d53a64dt7160eee55f8c51b6@...627...> Not to curb your enthusiasm or anything, but there are at least 2 Gambas forums out there: http://www.linuxbasic.net/ http://gambas.clubnix.net/ The second one, which is dedicated to Gambas, is unfortunately not very active lately. The first one is somewhat active, though it's a Linux BASIC forum, with a subforum for Gambas (the Gambas subforum is pretty much the only active one there, anyway). I always thought it a pity that people couldn't concentrate on only one forum, preferably a dedicated one like that second link. Bye Joe1962 On 11/27/05, Rohnny Stormo wrote: > Hi. > > After mailing Benoit Minisini and he say I should announce it here I do so. > > I have set up a forum if you are interested. > Intention with the forum is to get a place where discussin can be done > and users can find help each other to find nice solutions to theyr > problems. I personally prefer forum instead of mailing lists and I guess > others do as well. > > I have looked on the net but not found any good place. So be free to > have a visit. > > > Regards Rohnny > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From johnhedge at ...626... Mon Nov 28 07:30:35 2005 From: johnhedge at ...626... (john hedge) Date: Mon, 28 Nov 2005 17:30:35 +1100 Subject: [Gambas-user] Query failed: ERROR: syntax error at or near "=" at character 40 Message-ID: <6e3a096b0511272230n119b5065j2b873d43c35217c3@...627...> Hi, I've attached two files. One showing a screenshot of the error message and the other a listing of my code. I'm very new to all this and I'm copying a code tutorial in Linux Format by Dr Mark Bain. If I need to give more detail for you to assist me, just ask. Any help would be appreciated. TIA. John -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot.jpg Type: image/jpeg Size: 86861 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: gambas code Type: application/octet-stream Size: 954 bytes Desc: not available URL: From sourceforge-raindog2 at ...94... Mon Nov 28 07:35:45 2005 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Mon, 28 Nov 2005 01:35:45 -0500 Subject: [Gambas-user] gambas application! In-Reply-To: <200511252126.13658.kchularrit@...734...> References: <20051125035200.75913.qmail@...1242...> <200511252126.13658.kchularrit@...734...> Message-ID: <200511280135.47238.sourceforge-raindog2@...94...> On Sat November 26 2005 00:26, Kchula-Rrit wrote: > I don't know about "Real Applications" but I'm using it to > emulate a TI99/4 console (just for the heck of it) and all the > problems I've had were my own doing, not Gambas. You implemented a TMS9900 CPU emulator (and the rest of the 99/4a's hardware) in Gambas? How's the performance? Are you using the SDL component? Rob From sourceforge-raindog2 at ...94... Mon Nov 28 07:56:09 2005 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Mon, 28 Nov 2005 01:56:09 -0500 Subject: [Gambas-user] Query failed: ERROR: syntax error at or near "=" at character 40 In-Reply-To: <6e3a096b0511272230n119b5065j2b873d43c35217c3@...627...> References: <6e3a096b0511272230n119b5065j2b873d43c35217c3@...627...> Message-ID: <200511280156.11189.sourceforge-raindog2@...94...> On Mon November 28 2005 01:30, john hedge wrote: > I'm very new to all this and I'm copying a code tutorial in > Linux Format by Dr Mark Bain. This is actually a database error, rather than a Gambas error. I'd have to pull out my copy of Linux Format for this month, but it looks to me like Dr Bain forgot to put a space either before the "where" or after the "office" in his query string. I'm not even sure why the query is split up into 2 strings joined by that ampersand. sql = "select city from office where manager_id = " & resManager!id (on one line) should create a valid SQL statement, assuming manager_id is a numeric field (integer, etc.) in the database. Rob From jdsantos1978 at ...626... Mon Nov 28 08:39:50 2005 From: jdsantos1978 at ...626... (Jose Daniel Santos Delgado) Date: Mon, 28 Nov 2005 08:39:50 +0100 Subject: [Gambas-user] Query failed: ERROR: syntax error at or near "=" at character 40 In-Reply-To: <6e3a096b0511272230n119b5065j2b873d43c35217c3@...627...> References: <6e3a096b0511272230n119b5065j2b873d43c35217c3@...627...> Message-ID: <12e18d6c0511272339h4469212di@...627...> Looking your screenshot, the string that you are building: select city from officewhere manager_id = whatever This sql will never be understanded by the database engine. Regards. 2005/11/28, john hedge : > Hi, > > I've attached two files. One showing a screenshot of the error message and > the other a listing of my code. > > I'm very new to all this and I'm copying a code tutorial in Linux Format by > Dr Mark Bain. > > If I need to give more detail for you to assist me, just ask. > > Any help would be appreciated. > > TIA. > > John > > From jdsantos1978 at ...626... Mon Nov 28 08:39:50 2005 From: jdsantos1978 at ...626... (Jose Daniel Santos Delgado) Date: Mon, 28 Nov 2005 08:39:50 +0100 Subject: [Gambas-user] Query failed: ERROR: syntax error at or near "=" at character 40 In-Reply-To: <6e3a096b0511272230n119b5065j2b873d43c35217c3@...627...> References: <6e3a096b0511272230n119b5065j2b873d43c35217c3@...627...> Message-ID: <12e18d6c0511272339h4469212di@...627...> Looking your screenshot, the string that you are building: select city from officewhere manager_id = whatever This sql will never be understanded by the database engine. Regards. 2005/11/28, john hedge : > Hi, > > I've attached two files. One showing a screenshot of the error message and > the other a listing of my code. > > I'm very new to all this and I'm copying a code tutorial in Linux Format by > Dr Mark Bain. > > If I need to give more detail for you to assist me, just ask. > > Any help would be appreciated. > > TIA. > > John > > From gambas at ...1229... Mon Nov 28 09:40:18 2005 From: gambas at ...1229... (Fabricio Santos) Date: Mon, 28 Nov 2005 09:40:18 +0100 Subject: [Gambas-user] Query failed: ERROR: syntax error at or near "=" at character 40 References: <6e3a096b0511272230n119b5065j2b873d43c35217c3@...627...> <200511280156.11189.sourceforge-raindog2@...94...> Message-ID: <004101c5f3f7$89c46b70$0201a8c0@...1243...> > but > it looks to me like Dr Bain forgot to put a space either before > the "where" or after the "office" in his query string. I'm not > even sure why the query is split up into 2 strings joined by > that ampersand. He didn't forget. Bain was splitting the query in two lines in the exmaple. And while editing to a single line John might have introduced the error when he removed the space. Fabr?cio Santos From gambas at ...1229... Mon Nov 28 09:40:45 2005 From: gambas at ...1229... (Fabricio Santos) Date: Mon, 28 Nov 2005 09:40:45 +0100 Subject: [Gambas-user] Just a joke References: <7259b5ae0511270809x44799c09u@...627...> <200511272046.32468.gambas@...1...> Message-ID: <004201c5f3f7$89d50d40$0201a8c0@...1243...> I couldn't run this... Ig gets me an error like: "The program has stopped unexpectedly by raising signal #11" Any hints? I am still running Gambas 1.0.3. Fabr?cio Santos ----- Original Message ----- From: "Benoit Minisini" To: Sent: Sunday, November 27, 2005 8:46 PM Subject: Re: [Gambas-user] Just a joke > On Sunday 27 November 2005 17:09, Daniel Campos wrote: >> Enjoy! :-) > > Funny! > > -- > Benoit Minisini > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From dcamposf at ...626... Mon Nov 28 09:45:56 2005 From: dcamposf at ...626... (Daniel Campos) Date: Mon, 28 Nov 2005 09:45:56 +0100 Subject: [Gambas-user] Just a joke In-Reply-To: <004201c5f3f7$89d50d40$0201a8c0@...1243...> References: <7259b5ae0511270809x44799c09u@...627...> <200511272046.32468.gambas@...1...> <004201c5f3f7$89d50d40$0201a8c0@...1243...> Message-ID: <7259b5ae0511280045s603c2026y@...627...> This program was written with Gambas 1.9.21, probably that is the reason... Regards, D. Campos 2005/11/28, Fabricio Santos : > I couldn't run this... Ig gets me an error like: "The program has stopped > unexpectedly by raising signal #11" > > Any hints? > I am still running Gambas 1.0.3. > > Fabr?cio Santos > > ----- Original Message ----- > From: "Benoit Minisini" > To: > Sent: Sunday, November 27, 2005 8:46 PM > Subject: Re: [Gambas-user] Just a joke > > > > On Sunday 27 November 2005 17:09, Daniel Campos wrote: > >> Enjoy! :-) > > > > Funny! > > > > -- > > Benoit Minisini > > > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > > files > > for problems? Stop! Download the new AJAX search engine that makes > > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From johnhedge at ...626... Mon Nov 28 09:52:04 2005 From: johnhedge at ...626... (john hedge) Date: Mon, 28 Nov 2005 19:52:04 +1100 Subject: [Gambas-user] Query failed: ERROR: syntax error at or near "=" at character 40 In-Reply-To: <004101c5f3f7$89c46b70$0201a8c0@...1243...> References: <6e3a096b0511272230n119b5065j2b873d43c35217c3@...627...> <200511280156.11189.sourceforge-raindog2@...94...> <004101c5f3f7$89c46b70$0201a8c0@...1243...> Message-ID: <6e3a096b0511280052k39b15e73s7c7c36c6442f086@...627...> Thanks to you all. As suggested it looks as though I missed the space before 'where'. It doesn't require a space after 'office' it seems. On 11/28/05, Fabricio Santos wrote: > > > but > > it looks to me like Dr Bain forgot to put a space either before > > the "where" or after the "office" in his query string. I'm not > > even sure why the query is split up into 2 strings joined by > > that ampersand. > > He didn't forget. Bain was splitting the query in two lines in the > exmaple. > And while editing to a single line John might have introduced the error > when > he removed the space. > > Fabr?cio Santos > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas at ...1229... Mon Nov 28 10:00:31 2005 From: gambas at ...1229... (Fabricio Santos) Date: Mon, 28 Nov 2005 10:00:31 +0100 Subject: [Gambas-user] Query failed: ERROR: syntax error at or near "=" at character 40 In-Reply-To: <6e3a096b0511280052k39b15e73s7c7c36c6442f086@...627...> References: <6e3a096b0511272230n119b5065j2b873d43c35217c3@...627...> <200511280156.11189.sourceforge-raindog2@...94...> <004101c5f3f7$89c46b70$0201a8c0@...1243...> <6e3a096b0511280052k39b15e73s7c7c36c6442f086@...627...> Message-ID: <1133168431.27880.2.camel@...37...> The space ca go either way but if you are compressing to a single line you may well drop the whole thing and turn this: ...where" & "office... into this: ...where office... -fs On Mon, 2005-11-28 at 19:52 +1100, john hedge wrote: > Thanks to you all. As suggested it looks as though I missed the space > before 'where'. It doesn't require a space after 'office' it seems. > > > On 11/28/05, Fabricio Santos wrote: > > but > > it looks to me like Dr Bain forgot to put a space either > before > > the "where" or after the "office" in his query string. I'm > not > > even sure why the query is split up into 2 strings joined > by > > that ampersand. > > He didn't forget. Bain was splitting the query in two lines in > the exmaple. > And while editing to a single line John might have introduced > the error when > he removed the space. > > Fabr?cio Santos > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep > through log files > for problems? Stop! Download the new AJAX search engine that > makes > searching your log files as easy as surfing > the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From rohnny at ...1248... Mon Nov 28 11:12:31 2005 From: rohnny at ...1248... (Rohnny Stormo) Date: Mon, 28 Nov 2005 11:12:31 +0100 Subject: [Gambas-user] Re: Announce forum In-Reply-To: <438A1273.9010201@...1248...> References: <438A1273.9010201@...1248...> Message-ID: <438AD80F.1050903@...1248...> Rohnny Stormo wrote: >Hi. > >After mailing Benoit Minisini and he say I should announce it here I do so. > >I have set up a forum if you are interested. >Intention with the forum is to get a place where discussin can be done >and users can find help each other to find nice solutions to theyr >problems. I personally prefer forum instead of mailing lists and I guess >others do as well. > >I have looked on the net but not found any good place. So be free to >have a visit. > > >Regards Rohnny > > > Hi. Sorry, offcourse the adress, silly me. http://forum.stormweb.no Regards Rohnny From shankarkrupa at ...43... Mon Nov 28 11:54:20 2005 From: shankarkrupa at ...43... (S Krupa Shankar) Date: Mon, 28 Nov 2005 02:54:20 -0800 (PST) Subject: [Gambas-user] Dealing with keycodes In-Reply-To: <20051127220600.F051433D84@...763...> Message-ID: <20051128105420.6656.qmail@...1249...> Thank you so much. I did not expect!!! Great! So now I can safely assume there will always be an equivalent for everything in Gambas for visual basic. Krupa From: Daniel Campos >Use the STOP EVENT Keyword in the KeyPress event. >Regards, >D. Campos 2005/11/27, S Krupa Shankar : > I have a question to start with. Since key.code > property is read only, would it be possible to disable > the user's input in the textbox/textarea by any other > way? __________________________________ Start your day with Yahoo! - Make it your home page! http://www.yahoo.com/r/hs From shankarkrupa at ...43... Mon Nov 28 15:57:36 2005 From: shankarkrupa at ...43... (S Krupa Shankar) Date: Mon, 28 Nov 2005 06:57:36 -0800 (PST) Subject: [Gambas-user] Gambas angry with me. :-((( Message-ID: <20051128145736.65095.qmail@...1250...> :-( Everything was fine until yesterday. I even made a program in which when English letters are typed they will be converted to Tamil (UTF-8). I updated kdebase through Xandros Networks (sort of apt-get in debian). After that I opened Gambas and tried to call an object. When I typed the object's name "ob", and put a dot, it did not show the members/methods of that object. Then when I put a function name and start to place the open bracket "(", the program ended abruptly. Wanting to translate Gambas to my native language, I added the "ta" "Tamil (Tamil)" in the init function of the language module and translated a few strings. Now when I rebooted my computer and tried to invoke Gambas, all I get is an error: "The application has raised an unexpected error and must abort. [2]Cannot load class 'Project': Unable Unable to load class file. ?.?.0 I did a make uninstall and installed it again, but still get the same error. I dont have any idea what have I done to break, please help me. Krupa __________________________________________ Yahoo! DSL ? Something to write home about. Just $16.99/mo. or less. dsl.yahoo.com From shankarkrupa at ...43... Mon Nov 28 17:31:24 2005 From: shankarkrupa at ...43... (S Krupa Shankar) Date: Mon, 28 Nov 2005 08:31:24 -0800 (PST) Subject: [Gambas-user] RE: Gambas angry with me. :-((( Message-ID: <20051128163124.17850.qmail@...1251...> --S Krupa Shankar Wrote: >"The application has raised an unexpected error and must abort. >[2]Cannot load class 'Project': Unable Unable to load class file. >?.?.0 Oops...sorry. Found out the mistake. I made a mistake when I tried the translation yesterday. As I closed the IDE, inadvertently I had pressed the "f" inside the editor, causing a hanging "f" after the "Tamil (Tamil)" in the language module. Adding to the fire, I had compiled the erronous code and installed with ./configure, make install. Found out and recompiled it just a few hours before. Now it is resolved. After all, gambas is very soft and sweet with me. :-) Krupa __________________________________ Start your day with Yahoo! - Make it your home page! http://www.yahoo.com/r/hs From sourceforge-raindog2 at ...94... Mon Nov 28 17:58:58 2005 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Mon, 28 Nov 2005 11:58:58 -0500 Subject: [Gambas-user] Dealing with keycodes In-Reply-To: <20051128105420.6656.qmail@...1249...> References: <20051128105420.6656.qmail@...1249...> Message-ID: <200511281159.00178.sourceforge-raindog2@...94...> On Mon November 28 2005 05:54, S Krupa Shankar wrote: > I did not expect!!! Great! So now I can safely assume > there will always be an equivalent for everything in > Gambas for visual basic. Not true.... there are still a few things VB does that Gambas will probably never do, like passing scalar variables (string, integer, long) by reference as opposed to by value, and letting the user create variables on the fly without declaring them first. These differences are by design, because VB's way encourages bad programming of the sort that gives BASIC a bad name. Rob From graham.brogan at ...1073... Mon Nov 28 21:51:49 2005 From: graham.brogan at ...1073... (Graham Brogan) Date: Mon, 28 Nov 2005 20:51:49 +0000 Subject: [Gambas-user] Compile Error Message-ID: <438B6DE5.3040500@...1073...> Hi I have just found out about Gambas and I have installed version 1.0.8. My computer runs a AMD proccessor and I am using Suse 10.0. Judging by the output the compile is OK but "make" identifies a problem. I have piped it to a file which I am attaching. Hope you can help Grabro -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: output.txt URL: From gambas at ...1... Mon Nov 28 22:08:34 2005 From: gambas at ...1... (Benoit Minisini) Date: Mon, 28 Nov 2005 22:08:34 +0100 Subject: [Gambas-user] Compile Error In-Reply-To: <438B6DE5.3040500@...1073...> References: <438B6DE5.3040500@...1073...> Message-ID: <200511282208.35048.gambas@...1...> On Monday 28 November 2005 21:51, Graham Brogan wrote: > Hi > > I have just found out about Gambas and I have installed version 1.0.8. > My computer runs a AMD proccessor and I am using Suse 10.0. Judging by > the output the compile is OK but "make" identifies a problem. I have > piped it to a file which I am attaching. > > Hope you can help > > Grabro Use gambas >= 1.0.9 if you want to compile it with gcc 4.0. Regards, -- Benoit Minisini From jfabiani at ...1109... Mon Nov 28 22:20:54 2005 From: jfabiani at ...1109... (johnf) Date: Mon, 28 Nov 2005 13:20:54 -0800 Subject: [Gambas-user] Compile Error In-Reply-To: <438B6DE5.3040500@...1073...> References: <438B6DE5.3040500@...1073...> Message-ID: <200511281320.54373.jfabiani@...1109...> On Monday 28 November 2005 12:51, Graham Brogan wrote: > Hi > > I have just found out about Gambas and I have installed version 1.0.8. > My computer runs a AMD proccessor and I am using Suse 10.0. Judging by > the output the compile is OK but "make" identifies a problem. I have > piped it to a file which I am attaching. > > Hope you can help > > Grabro If your not going to use 1.9.xx then I believe the SUSE 10.0 has the install RPM on the CD's. John From rospolosco at ...152... Tue Nov 29 05:00:48 2005 From: rospolosco at ...152... (Stefano Palmeri) Date: Tue, 29 Nov 2005 05:00:48 +0100 Subject: [Gambas-user] Just a joke In-Reply-To: <004201c5f3f7$89d50d40$0201a8c0@...1243...> References: <7259b5ae0511270809x44799c09u@...627...> <200511272046.32468.gambas@...1...> <004201c5f3f7$89d50d40$0201a8c0@...1243...> Message-ID: <200511290500.48744.rospolosco@...152...> Alle 09:40, luned? 28 novembre 2005, Fabricio Santos ha scritto: > I couldn't run this... Ig gets me an error like: "The program has stopped > unexpectedly by raising signal #11" > > Any hints? > ?I am still running Gambas 1.0.3. > > Fabr?cio Santos Here's GambasMagic for Gambas 1.0.x. Bye -------------- next part -------------- A non-text attachment was scrubbed... Name: GambasMagic_for_stable.tar.gz Type: application/x-tgz Size: 3036 bytes Desc: not available URL: From jfabiani at ...1109... Mon Nov 28 22:27:29 2005 From: jfabiani at ...1109... (johnf) Date: Mon, 28 Nov 2005 13:27:29 -0800 Subject: [Gambas-user] Tableview no longer supported In-Reply-To: <200511281320.54373.jfabiani@...1109...> References: <438B6DE5.3040500@...1073...> <200511281320.54373.jfabiani@...1109...> Message-ID: <200511281327.29658.jfabiani@...1109...> Hi, Sorry this is my second posting but I have not seen my first in over an hour. If TableView is no longer the supported way to display a grid. What I am I suppose to use. John From shankarkrupa at ...43... Tue Nov 29 06:54:38 2005 From: shankarkrupa at ...43... (S Krupa Shankar) Date: Mon, 28 Nov 2005 21:54:38 -0800 (PST) Subject: [Gambas-user] Dealing with keycodes In-Reply-To: <20051129042206.D9B3612660@...773...> Message-ID: <20051129055438.31366.qmail@...1250...> From: Rob Kudla On Mon November 28 2005 05:54, S Krupa Shankar wrote: >> I did not expect!!! Great! So now I can safely assume >> there will always be an equivalent for everything in >> Gambas for visual basic. >Not true.... there are still a few things VB does that Gambas >will probably never do, like passing scalar variables (string, >integer, long) by reference as opposed to by value, and letting >the user create variables on the fly without declaring them >first. >These differences are by design, because VB's way encourages bad >programming of the sort that gives BASIC a bad name. Oh, that is fine. I did not mean the features exactly. If there is a way to do the same task in any manner, that would be great. By the way, I am trying to do a keyboard driver with Gambas. Would it be possible? The idea is to trap the keypress events in other applications (yes, other applications). The gambas program will remain in the system tray and watch the keyboard strokes. Text will be sent to the active window according to the key pressed. Something like the driver in Tavultesoft.com MS Windows or SCIM/IMModules in Linux. Just asking the possiblity, would it be possible to watch the keystrokes and control the text through Gambas? Krupa __________________________________________ Yahoo! DSL ? Something to write home about. Just $16.99/mo. or less. dsl.yahoo.com From dcamposf at ...626... Tue Nov 29 07:16:00 2005 From: dcamposf at ...626... (Daniel Campos) Date: Tue, 29 Nov 2005 07:16:00 +0100 Subject: [Gambas-user] Just a joke In-Reply-To: <200511290500.48744.rospolosco@...152...> References: <7259b5ae0511270809x44799c09u@...627...> <200511272046.32468.gambas@...1...> <004201c5f3f7$89d50d40$0201a8c0@...1243...> <200511290500.48744.rospolosco@...152...> Message-ID: <7259b5ae0511282216n4dcdb2a2m@...627...> Thanks! 2005/11/29, Stefano Palmeri : > Alle 09:40, luned? 28 novembre 2005, Fabricio Santos ha scritto: > > I couldn't run this... Ig gets me an error like: "The program has stopped > > unexpectedly by raising signal #11" > > > > Any hints? > > I am still running Gambas 1.0.3. > > > > Fabr?cio Santos > > Here's GambasMagic for Gambas 1.0.x. > > Bye > > > From dcamposf at ...626... Tue Nov 29 07:19:32 2005 From: dcamposf at ...626... (Daniel Campos) Date: Tue, 29 Nov 2005 07:19:32 +0100 Subject: [Gambas-user] Dealing with keycodes In-Reply-To: <20051129055438.31366.qmail@...1250...> References: <20051129042206.D9B3612660@...773...> <20051129055438.31366.qmail@...1250...> Message-ID: <7259b5ae0511282219p1fe15709h@...627...> > > Just asking the possiblity, would it be possible to > watch the keystrokes and control the text through > Gambas? > May be using API calls: you should create a not visible window, and Grab the Server so it receive all key signals... This would be the starting point but I don't know more about it > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From faasse at ...1252... Tue Nov 29 10:05:53 2005 From: faasse at ...1252... (p.r. faasse) Date: Tue, 29 Nov 2005 10:05:53 +0100 Subject: [Gambas-user] UDP socket component & UDP broadcasts In-Reply-To: <7259b5ae0511282219p1fe15709h@...627...> References: <20051129042206.D9B3612660@...773...> <20051129055438.31366.qmail@...1250...> <7259b5ae0511282219p1fe15709h@...627...> Message-ID: <200511291005.53255.faasse@...1252...> When I tried to do UDP broadcasts (Gambas-1.0.13) I got a 'permission denied'. I have solved by adding the SO_BROADCAST/setsockopt in the source of the Gambas network UDP component and re-compiling Gambas itself. Is there any way i could make the developers add this to the network component by default? From jfabiani at ...1109... Mon Nov 28 21:50:13 2005 From: jfabiani at ...1109... (johnf) Date: Mon, 28 Nov 2005 12:50:13 -0800 Subject: [Gambas-user] TableView no longer supported Message-ID: <200511281250.13713.jfabiani@...1109...> Hi, Using SUSE 10.0 Gambas 1.9.22 If TableView is no longer supported what am I suppose to use? John From na2492 at ...9... Tue Nov 29 12:39:41 2005 From: na2492 at ...9... (Charlie Reinl) Date: Tue, 29 Nov 2005 12:39:41 00100 Subject: [Gambas-user] TableView no longer supported Message-ID: <438c3dfd.6012.0@...9...> >Hi, >Using SUSE 10.0 Gambas 1.9.22 >If TableView is no longer supported what am I suppose to use? > >John > Salut, I'v nothing seen in the ChangLog, so I think it a SuSE 10 problem. May be a QT problem. Which version of QT , SuSE 10 is using ? Have you tried, other QT controls ? Amicalment Charlie * Gesendet mit / Sent by: FEN-Webmail * http://www.fen-net.de * From vinians at ...927... Tue Nov 29 12:57:50 2005 From: vinians at ...927... (vinians) Date: Tue, 29 Nov 2005 08:57:50 -0300 Subject: [Gambas-user] TableView no longer supported Message-ID: I need to know how to unsubscribe please! ---------- Cabe?alho original ----------- De: gambas-user-admin at lists.sourceforge.net Para: gambas-user at lists.sourceforge.net C?pia: Data: Tue, 29 Nov 2005 12:39:41 00100 Assunto: Re: [Gambas-user] TableView no longer supported > >Hi, > >Using SUSE 10.0 Gambas 1.9.22 > >If TableView is no longer supported what am I suppose to use? > > > >John > > > Salut, > > I'v nothing seen in the ChangLog, so I think it a SuSE 10 problem. > May be a QT problem. Which version of QT , SuSE 10 is using ? > Have you tried, other QT controls ? > > Amicalment > Charlie > > * Gesendet mit / Sent by: FEN-Webmail * http://www.fen-net.de * > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From jfabiani at ...1109... Tue Nov 29 16:43:23 2005 From: jfabiani at ...1109... (johnf) Date: Tue, 29 Nov 2005 07:43:23 -0800 Subject: [Gambas-user] TableView no longer supported In-Reply-To: <438c3dfd.6012.0@...9...> References: <438c3dfd.6012.0@...9...> Message-ID: <200511290743.23243.jfabiani@...1109...> I read the information in the beginner's Guide to Gambas book on page 347. "The QT library-based TableView control is obsolete in the QT Library, having been replaced with the QTable control". I'm also aware that QT 4.1 is coming soon. I won't finish my project for about a year so I don't want to use some control that will be obsolete before I finish my project. As far as I know on SUSE 10.0 the TableView is working. John On Tuesday 29 November 2005 04:39, Charlie Reinl wrote: > >Hi, > >Using SUSE 10.0 Gambas 1.9.22 > >If TableView is no longer supported what am I suppose to use? > > > >John > > Salut, > > I'v nothing seen in the ChangLog, so I think it a SuSE 10 problem. > May be a QT problem. Which version of QT , SuSE 10 is using ? > Have you tried, other QT controls ? > > Amicalment > Charlie > > * Gesendet mit / Sent by: FEN-Webmail * http://www.fen-net.de * > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Tue Nov 29 18:22:29 2005 From: gambas at ...1... (Benoit Minisini) Date: Tue, 29 Nov 2005 18:22:29 +0100 Subject: [Gambas-user] TableView no longer supported In-Reply-To: <200511290743.23243.jfabiani@...1109...> References: <438c3dfd.6012.0@...9...> <200511290743.23243.jfabiani@...1109...> Message-ID: <200511291822.29869.gambas@...1...> On Tuesday 29 November 2005 16:43, johnf wrote: > I read the information in the beginner's Guide to Gambas book on page 347. > "The QT library-based TableView control is obsolete in the QT Library, > having been replaced with the QTable control". > > I'm also aware that QT 4.1 is coming soon. I won't finish my project for > about a year so I don't want to use some control that will be obsolete > before I finish my project. > > As far as I know on SUSE 10.0 the TableView is working. > > John > What you read is not really accurate. Don't mix up Gambas control names with QT widget names. There are not necessarily related. If Trolltech makes a QT widget obsolete, that means there is (or will be) another widget with a different name that has the same (often more) functionality than the old one. You won't see the switch in the Gambas component. The Gambas control will keep their names. They will use internally the new widget, but you won't see the difference (except that it could get more functionnality). In other words, you have in Gambas two controls, GridView and TableView that use the same QT widget, QTable. If QTable is replaced by something other in QT 4, you (normally) won't see the difference in your Gambas program. Regards, -- Benoit Minisini From jfabiani at ...1109... Tue Nov 29 18:55:57 2005 From: jfabiani at ...1109... (johnf) Date: Tue, 29 Nov 2005 09:55:57 -0800 Subject: [Gambas-user] TableView no longer supported In-Reply-To: <200511291822.29869.gambas@...1...> References: <438c3dfd.6012.0@...9...> <200511290743.23243.jfabiani@...1109...> <200511291822.29869.gambas@...1...> Message-ID: <200511290955.57149.jfabiani@...1109...> Thanks for the reply. John On Tuesday 29 November 2005 09:22, Benoit Minisini wrote: > On Tuesday 29 November 2005 16:43, johnf wrote: > > I read the information in the beginner's Guide to Gambas book on page > > 347. "The QT library-based TableView control is obsolete in the QT > > Library, having been replaced with the QTable control". > > > > I'm also aware that QT 4.1 is coming soon. I won't finish my project for > > about a year so I don't want to use some control that will be obsolete > > before I finish my project. > > > > As far as I know on SUSE 10.0 the TableView is working. > > > > John > > What you read is not really accurate. > > Don't mix up Gambas control names with QT widget names. There are not > necessarily related. > > If Trolltech makes a QT widget obsolete, that means there is (or will be) > another widget with a different name that has the same (often more) > functionality than the old one. > > You won't see the switch in the Gambas component. The Gambas control will > keep their names. They will use internally the new widget, but you won't > see the difference (except that it could get more functionnality). > > In other words, you have in Gambas two controls, GridView and TableView > that use the same QT widget, QTable. If QTable is replaced by something > other in QT 4, you (normally) won't see the difference in your Gambas > program. > > Regards, From gambas at ...1229... Tue Nov 29 22:13:18 2005 From: gambas at ...1229... (Fabricio Santos) Date: Tue, 29 Nov 2005 22:13:18 +0100 Subject: [Gambas-user] Just a joke In-Reply-To: <7259b5ae0511282216n4dcdb2a2m@...627...> References: <7259b5ae0511270809x44799c09u@...627...> <200511272046.32468.gambas@...1...> <004201c5f3f7$89d50d40$0201a8c0@...1243...> <200511290500.48744.rospolosco@...152...> <7259b5ae0511282216n4dcdb2a2m@...627...> Message-ID: <1133298798.17268.21.camel@...37...> Thanks to all... Indeed funny. :-) But in the end I managed to fight Ubuntu to run gambas-1.9.x thanks to Jose and a few tips he gave me. I managed to install all packages except three: gambas 1.9.20.1 (not really an issue) gambas-gb-qt-kde 1.9.19-1 gambas-gb-qt-kde-html 1.9.19-1 And I think I can live without KDE since for me Gnome rulez... :-) But I had to remove the package libqt3-mt and install libqt3c102-mt from the Debian distro. Not sure what else I broke in the process but the important thing is Gambas is working with the latest release on my nice Ubuntu dumb desktop system... :-) -fs On Tue, 2005-11-29 at 07:16 +0100, Daniel Campos wrote: > Thanks! > > 2005/11/29, Stefano Palmeri : > > Alle 09:40, luned? 28 novembre 2005, Fabricio Santos ha scritto: > > > I couldn't run this... Ig gets me an error like: "The program has stopped > > > unexpectedly by raising signal #11" > > > > > > Any hints? > > > I am still running Gambas 1.0.3. > > > > > > Fabr?cio Santos > > > > Here's GambasMagic for Gambas 1.0.x. > > > > Bye > > > > > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_idv37&alloc_id865&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From shankarkrupa at ...43... Tue Nov 29 22:13:51 2005 From: shankarkrupa at ...43... (S Krupa Shankar) Date: Tue, 29 Nov 2005 13:13:51 -0800 (PST) Subject: [Gambas-user] SQLite support Message-ID: <20051129211352.40972.qmail@...1249...> I am sorry for asking the same boring question (boring because this has been answered a lot of times in this mailing list). I did search the archives, but I dont have any option as I could not solve from the answers I came across in the archives. I gave --with-sqlite-includes as the directory name where the sqlite.h.in resides. (I assumed this is the include file directory, am I wrong?). I get the same warning for mysql also. Same for Advanced Networking Components, the warning being the respective components are disabled. Please help me with what I should do, or if all these configuration are already documented somewhere, please give me the URL. It would be very helpful for me. Krupa PS: I use Xandros OS, trying for these missing component support with 1.0.13 version. I installed the 1.0 version with apt-get, with which I was able to access databases. __________________________________ Yahoo! Music Unlimited Access over 1 million songs. Try it free. http://music.yahoo.com/unlimited/ From cocozz at ...626... Wed Nov 30 03:58:13 2005 From: cocozz at ...626... (cocozz) Date: Wed, 30 Nov 2005 03:58:13 +0100 Subject: [Gambas-user] Running Gambas on a PPC Message-ID: <4dfd57090511291858r75e15601o11e93ca4ce4dd32b@...627...> Hi, Im trying to run gambas and gambas2 on my ibook's ppc but I get some errors. With gambas: Segment Violation With gambas2: ** WARNING: CPU is big endian ERROR: #27: Cannot load component 'gb.pcre': cannot find library file Regards, cocozz -------------- next part -------------- An HTML attachment was scrubbed... URL: From rporticio at ...43... Wed Nov 30 09:18:57 2005 From: rporticio at ...43... (Ramon Orticio) Date: Wed, 30 Nov 2005 00:18:57 -0800 (PST) Subject: [Gambas-user] persistent environment variables Message-ID: <20051130081857.54722.qmail@...1034...> dear friends, i'm a newbie in linux and gambas. i installed gambas 1.0.6 in redhat 9 and run gambas successfully. but i need to type export LD_LIBRARY_PATH=/path/to/qt/lib everytime i run gambas otherwise i get rellocation error. how could i set the environment variables once and for all in such a way that i won't be typing the export statements and run gambas without it. thank you for any info. rporticio __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From jfabiani at ...1109... Wed Nov 30 10:38:12 2005 From: jfabiani at ...1109... (johnf) Date: Wed, 30 Nov 2005 01:38:12 -0800 Subject: [Gambas-user] persistent environment variables In-Reply-To: <20051130081857.54722.qmail@...1034...> References: <20051130081857.54722.qmail@...1034...> Message-ID: <200511300138.12383.jfabiani@...1109...> On Wednesday 30 November 2005 00:18, Ramon Orticio wrote: > dear friends, > > i'm a newbie in linux and gambas. i installed gambas > 1.0.6 in redhat 9 and run gambas successfully. but i > need to type export LD_LIBRARY_PATH=/path/to/qt/lib > everytime i run gambas otherwise i get rellocation > error. > > how could i set the environment variables once and > for all in such a way that i won't be typing the > export statements and run gambas without it. > > thank you for any info. > > rporticio there is a ".bash" file or a ".profile" file in your home directory/folder that you can edit. Just add the export line. John From nigel at ...38... Wed Nov 30 10:40:15 2005 From: nigel at ...38... (nigel at ...38...) Date: Wed, 30 Nov 2005 10:40:15 +0100 (CET) Subject: [Gambas-user] SQLite support Message-ID: <22157330.1133343615151.JavaMail.www@...713...> Krupa, > I gave --with-sqlite-includes as the directory name > where the sqlite.h.in resides. (I assumed this is the > include file directory, am I wrong?). > The --with-sqlite-includes should be the directory where the sqlite.h file resides when installed from sqlite installation. My include directory is /usr/include. Generally, if sqlite is installed to default places, configure will find it. Please make sure you are using the sqlite 2.8 version as sqlite 3.? is only supported in the gambas development version. > I get the same warning for mysql also. Same for > Advanced Networking Components, the warning being the > respective components are disabled. > Again, make sure you have all the development packages for mysql. If they are in the standard places, they will be found. Nigel From josemar_mariano at ...494... Wed Nov 30 12:38:26 2005 From: josemar_mariano at ...494... (Josemar) Date: Wed, 30 Nov 2005 08:38:26 -0300 Subject: [Gambas-user] how to list members of class ? Message-ID: <438D8F32.8020901@...494...> hi sorry, my english is very bad... make class "cCar" with some properties, ex: "engine","fuel", etc make class "fusca" with inherits class "cCar" and propertie "model" in class "fusca" i see propertie "model", but i don?t see the properties inheritance by class "cCar" how to list members of class ? tks :-) --- avast! Antivirus: Outbound message clean. Virus Database (VPS): 0548-0, 29/11/2005 Tested on: 30/11/2005 08:38:34 avast! - copyright (c) 1988-2004 ALWIL Software. http://www.avast.com _______________________________________________________ Yahoo! doce lar. Fa?a do Yahoo! sua homepage. http://br.yahoo.com/homepageset.html From gambasfr at ...11... Wed Nov 30 13:29:38 2005 From: gambasfr at ...11... (Fabien Bodard) Date: Wed, 30 Nov 2005 13:29:38 +0100 Subject: [Gambas-user] Just a joke In-Reply-To: <1133298798.17268.21.camel@...37...> References: <7259b5ae0511270809x44799c09u@...627...> <7259b5ae0511282216n4dcdb2a2m@...627...> <1133298798.17268.21.camel@...37...> Message-ID: <200511301329.38933.gambasfr@...11...> Le Mardi 29 Novembre 2005 22:13, Fabricio Santos a ?crit?: > Thanks to all... Indeed funny. :-) > But in the end I managed to fight Ubuntu to run gambas-1.9.x thanks to > Jose and a few tips he gave me. > > I managed to install all packages except three: > > gambas 1.9.20.1 (not really an issue) > gambas-gb-qt-kde 1.9.19-1 > gambas-gb-qt-kde-html 1.9.19-1 > > And I think I can live without KDE since for me Gnome rulez... :-) > But I had to remove the package libqt3-mt and install libqt3c102-mt from > the Debian distro. Not sure what else I broke in the process but the > important thing is Gambas is working with the latest release on my nice > Ubuntu dumb desktop system... :-) > > -fs The sole thing is that the gambas ide run with the gb.qt and gb.qt.kde components and the ide is in the gambas-1.9.20 package... but i can undertstand your ideas if you plan to use gambas without the ide... Fabien From gambasfr at ...11... Wed Nov 30 13:33:14 2005 From: gambasfr at ...11... (Fabien Bodard) Date: Wed, 30 Nov 2005 13:33:14 +0100 Subject: [Gambas-user] SQLite support In-Reply-To: <20051129211352.40972.qmail@...1249...> References: <20051129211352.40972.qmail@...1249...> Message-ID: <200511301333.14984.gambasfr@...11...> Le Mardi 29 Novembre 2005 22:13, S Krupa Shankar a ?crit?: > I am sorry for asking the same boring question (boring > because this has been answered a lot of times in this > mailing list). I did search the archives, but I dont > have any option as I could not solve from the answers > I came across in the archives. > > I gave --with-sqlite-includes as the directory name > where the sqlite.h.in resides. (I assumed this is the > include file directory, am I wrong?). > > I get the same warning for mysql also. Same for > Advanced Networking Components, the warning being the > respective components are disabled. > > Please help me with what I should do, or if all these > configuration are already documented somewhere, please > give me the URL. It would be very helpful for me. > > > Krupa > > PS: I use Xandros OS, trying for these missing > component support with 1.0.13 version. I installed the > 1.0 version with apt-get, with which I was able to > access databases. > > hum... are you sur you have installed the header package for mysql, sqlite, libcurl, and anything else on witch component you want to use ? these package have name like libsqlite-dev Fabien From gambasfr at ...11... Wed Nov 30 13:40:47 2005 From: gambasfr at ...11... (Fabien Bodard) Date: Wed, 30 Nov 2005 13:40:47 +0100 Subject: [Gambas-user] how to list members of class ? In-Reply-To: <438D8F32.8020901@...494...> References: <438D8F32.8020901@...494...> Message-ID: <200511301340.47952.gambasfr@...11...> Le Mercredi 30 Novembre 2005 12:38, Josemar a ?crit?: > hi > sorry, my english is very bad... > > make class "cCar" with some properties, ex: "engine","fuel", etc > make class "fusca" with inherits class "cCar" and propertie "model" > in class "fusca" i see propertie "model", but i don?t see the properties > inheritance by class "cCar" > how to list members of class ? > > tks :-) Hi First have you use 'PROPERTY' keyword to declare your properties then are you sure you have writed INHERITS cCar with the good class name then in a module do : dim ca as new fusca if you type fusca. it need to show you all the properties else wrote here, tel us what version of gambas you use... Fabien From gambas at ...1229... Wed Nov 30 22:26:34 2005 From: gambas at ...1229... (Fabricio Santos) Date: Wed, 30 Nov 2005 22:26:34 +0100 Subject: [Gambas-user] Just a joke In-Reply-To: <200511301329.38933.gambasfr@...11...> References: <7259b5ae0511270809x44799c09u@...627...> <7259b5ae0511282216n4dcdb2a2m@...627...> <1133298798.17268.21.camel@...37...> <200511301329.38933.gambasfr@...11...> Message-ID: <1133385994.2927.7.camel@...37...> On Wed, 2005-11-30 at 13:29 +0100, Fabien Bodard wrote: > The sole thing is that the gambas ide run with the gb.qt and gb.qt.kde > components > > and the ide is in the gambas-1.9.20 package... > > but i can undertstand your ideas if you plan to use gambas without the ide... > > Fabien Viva Fabien, I am not really sure about that. The gambas-1.9.20 is just a metapackage to install the whole thing. The IDE is in gambas-ide 1.9.20-2 and I have the Gambas IDE working. See attached image. Or am I totally missing the point? :-) -fs From htakada at ...626... Wed Nov 30 22:44:56 2005 From: htakada at ...626... (Hugo) Date: Wed, 30 Nov 2005 18:44:56 -0300 Subject: [Gambas-user] life of an object Message-ID: Hi, when a form is closed , can I still get some atributes of it , or is it garbage collected right after one closes it, trouble is I need to get some data from a form I show to the user. I do something like this: sub getAnswerFromUser() Dim frm as SomeForm dim st as string frm = NEW SomeForm frm.title = 'Some Title' frm.show() st = frm.someAtt 'at this point a get Invalid Object runtime error return st 'this should be the answer end is this code correct ? thanks for any help Hugo -------------- next part -------------- An HTML attachment was scrubbed... URL: