From pablo at ...2449... Thu Jul 1 00:12:18 2010 From: pablo at ...2449... (Pablo Ontivero) Date: Thu, 1 Jul 2010 00:12:18 +0200 Subject: [Gambas-user] Process output to TextArea Fail In-Reply-To: References: Message-ID: Fails when is running on the debugger, i execute the app, and when it show 250 lines, the console go slow and the app crash with error #11, but only if the TextArea show the content of the "Content" Variable who has the output of the process. Thanks. From doriano.blengino at ...1909... Thu Jul 1 06:55:03 2010 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Thu, 01 Jul 2010 06:55:03 +0200 Subject: [Gambas-user] gambas3 search/replace global - really inconvenient In-Reply-To: References: <201006301802.32410.gambas@...1...> Message-ID: <4C2C1FA7.5090109@...1909...> Jussi Lahtinen ha scritto: >> Yes, but how can I detect a "binary" file? >> > > I'm not sure what would be easy way to do it. > > Gedit gives following error message from binary files: > "gedit has not been able to detect the character encoding. > Please check that you are not trying to open a binary file. > Select a character encoding from the menu and try again." > > So, maybe with "file" command? > I think there should be some library for this, as so many programs > needs this kind of functionality > (Ubuntu Desktop, browsers, editors, ... ). > > Or, if file has ".dat" etc at end, it is considered as binary. > Gedit says so (unable to...) because it tries to convert the file contents to unicode in order to display it. It tries different conversions (configurable if one wants to) until success or fail. This method is very effective, even if not particularly elegant. KDE has some library call, I believe, which can deduct the correct type of a file by peeking at its contents, similarly at file(1) unix command. I don't know if this function is part of KDE or QT (probably the former). Using the file extension to gather information about a file is deprecated in unix, while using the file(1) command would add another dependency to gambas, and would require a routine to parse the file(1) output. Moreover, there are certain kinds of file which are plain text files, but have other special meanings, like the graphics file of type "can't remember... pbm/pgm/ppm? "; even postscript/pdf files can be plain text. Perhaps, trying to convert to unicode could be the more effective way for an IDE. Regards, Doriano From jussi.lahtinen at ...626... Thu Jul 1 17:41:25 2010 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 1 Jul 2010 18:41:25 +0300 Subject: [Gambas-user] Process output to TextArea Fail In-Reply-To: References: Message-ID: But it works if it is not on debugger? What debugger you use? I tried your code with Gambas 2.20, and I couldn't reproduce the problem. Although, I changed line: conexion = SHELL "ssh -l root 10.144.32.51" FOR READ WRITE for test purpose to: conexion = SHELL "ls -R" FOR READ WRITE Please try to isolate your problem, or update to Gambas 2.20. Jussi On Thu, Jul 1, 2010 at 01:12, Pablo Ontivero wrote: > Fails when is running on the debugger, i execute the app, and when it show 250 lines, the console go slow and the app crash with error #11, but only if the TextArea show the content of the "Content" Variable who has the output of the process. Thanks. > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Fri Jul 2 23:56:24 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 2 Jul 2010 23:56:24 +0200 Subject: [Gambas-user] BUG: Multiple selection in listbox gtk In-Reply-To: <91AE6A70344F4F069B2D89CE228000C0@...2454...> References: <91AE6A70344F4F069B2D89CE228000C0@...2454...> Message-ID: <201007022356.25029.gambas@...1...> > Montelupo Fiorentino - Italy 28 June 2010 > > Hi, > > I found 2 trouble: > > On ASUS EEE Top All in one - Debian 2.30 - ICEWM - Gambas 2.20.2 > > with QT interface when I using click event on COMBOBOX with touch-screen > (with mouse it's ok) everythings freeze and I need switch off the panel. What is freezing exactly? If all the computer freezes, I don't think that Gambas is responsible. > > with GTK multiple selection in listbox are all set TRUE when I check which > is selected. Can you show the code you use? Or better send me a little project that shows the bug? Thanks in advance. Regards, -- Beno?t Minisini From math.eber at ...221... Mon Jul 5 07:21:12 2010 From: math.eber at ...221... (Matti) Date: Mon, 05 Jul 2010 07:21:12 +0200 Subject: [Gambas-user] gbr3: no project file in '/usr/local/bin/gambas3' Message-ID: <4C316BC8.5000702@...221...> Once again, I tried to install Gambas3 on my SuSe 11.2. Got rev 3025 from svn, and this time appearently the installation ran without errors. But when I try to start gambas3, I get the message above. What now? I found one thread in the mail archives, but this looks like there was something wrong in the revision. In /usr/local/bin/gambas3 I have the files: gambas3 gambas3.gambas gba3 gbc3 gbi3 gbr3 gbs3 gbs3.gambas gbw3 gbx3 Thanks for help Matti From dosida at ...626... Mon Jul 5 07:59:41 2010 From: dosida at ...626... (Dimitris Anogiatis) Date: Sun, 4 Jul 2010 23:59:41 -0600 Subject: [Gambas-user] gbr3: no project file in '/usr/local/bin/gambas3' In-Reply-To: <4C316BC8.5000702@...221...> References: <4C316BC8.5000702@...221...> Message-ID: Hey Matti try starting gambas from the terminal by typing /usr/local/bin/gambas3/gbr3 /usr/local/bin/gambas3/gambas3.gambas it should run the Gambas IDE then. I hope this helps Regards Dimitris On Sun, Jul 4, 2010 at 11:21 PM, Matti wrote: > Once again, I tried to install Gambas3 on my SuSe 11.2. > Got rev 3025 from svn, and this time appearently the installation ran > without > errors. > But when I try to start gambas3, I get the message above. > > What now? I found one thread in the mail archives, but this looks like > there was > something wrong in the revision. > > In /usr/local/bin/gambas3 I have the files: > gambas3 > gambas3.gambas > gba3 > gbc3 > gbi3 > gbr3 > gbs3 > gbs3.gambas > gbw3 > gbx3 > > Thanks for help > Matti > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From math.eber at ...221... Mon Jul 5 08:17:44 2010 From: math.eber at ...221... (Matti) Date: Mon, 05 Jul 2010 08:17:44 +0200 Subject: [Gambas-user] gbr3: no project file in '/usr/local/bin/gambas3' In-Reply-To: References: <4C316BC8.5000702@...221...> Message-ID: <4C317908.6070504@...221...> Hi Dimitri, there is no directory /usr/local/bin/gambas3/ here. And when I try any commands in /usr/local/bin/, I get messages like "ERROR: #35: Cannot open file '.': No such device 0: ?" or "gbr3: no project file in 'gambas3.gambas'." Matti Am 05.07.2010 07:59, schrieb Dimitris Anogiatis: > Hey Matti > > try starting gambas from the terminal by typing > > /usr/local/bin/gambas3/gbr3 /usr/local/bin/gambas3/gambas3.gambas > > it should run the Gambas IDE then. > > I hope this helps > > Regards > Dimitris > > On Sun, Jul 4, 2010 at 11:21 PM, Matti wrote: > >> Once again, I tried to install Gambas3 on my SuSe 11.2. >> Got rev 3025 from svn, and this time appearently the installation ran >> without >> errors. >> But when I try to start gambas3, I get the message above. >> >> What now? I found one thread in the mail archives, but this looks like >> there was >> something wrong in the revision. >> >> In /usr/local/bin/gambas3 I have the files: >> gambas3 >> gambas3.gambas >> gba3 >> gbc3 >> gbi3 >> gbr3 >> gbs3 >> gbs3.gambas >> gbw3 >> gbx3 >> >> Thanks for help >> Matti >> >> >> ------------------------------------------------------------------------------ >> This SF.net email is sponsored by Sprint >> What will you do first with EVO, the first 4G phone? >> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first >> _______________________________________________ >> 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 Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From dosida at ...626... Mon Jul 5 08:36:24 2010 From: dosida at ...626... (Dimitris Anogiatis) Date: Mon, 5 Jul 2010 00:36:24 -0600 Subject: [Gambas-user] gbr3: no project file in '/usr/local/bin/gambas3' In-Reply-To: <4C317908.6070504@...221...> References: <4C316BC8.5000702@...221...> <4C317908.6070504@...221...> Message-ID: Matti, first go to /usr/local/bin then type gbr3 and then press enter If you get something like this: gbr3: no archive file then gambas is located in /usr/local/bin/ and you can try this gbr3 gambas3.gambas (since you're already in /usr/local/bin/) I hope this takes you a bit further Regards, Dimitris On Mon, Jul 5, 2010 at 12:17 AM, Matti wrote: > Hi Dimitri, > > there is no directory /usr/local/bin/gambas3/ here. > And when I try any commands in /usr/local/bin/, I get messages like "ERROR: > #35: > Cannot open file '.': No such device > 0: ?" or "gbr3: no project file in 'gambas3.gambas'." > > Matti > > Am 05.07.2010 07:59, schrieb Dimitris Anogiatis: > > Hey Matti > > > > try starting gambas from the terminal by typing > > > > /usr/local/bin/gambas3/gbr3 /usr/local/bin/gambas3/gambas3.gambas > > > > it should run the Gambas IDE then. > > > > I hope this helps > > > > Regards > > Dimitris > > > > On Sun, Jul 4, 2010 at 11:21 PM, Matti wrote: > > > >> Once again, I tried to install Gambas3 on my SuSe 11.2. > >> Got rev 3025 from svn, and this time appearently the installation ran > >> without > >> errors. > >> But when I try to start gambas3, I get the message above. > >> > >> What now? I found one thread in the mail archives, but this looks like > >> there was > >> something wrong in the revision. > >> > >> In /usr/local/bin/gambas3 I have the files: > >> gambas3 > >> gambas3.gambas > >> gba3 > >> gbc3 > >> gbi3 > >> gbr3 > >> gbs3 > >> gbs3.gambas > >> gbw3 > >> gbx3 > >> > >> Thanks for help > >> Matti > >> > >> > >> > ------------------------------------------------------------------------------ > >> This SF.net email is sponsored by Sprint > >> What will you do first with EVO, the first 4G phone? > >> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > >> _______________________________________________ > >> 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 Sprint > > What will you do first with EVO, the first 4G phone? > > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > > _______________________________________________ > > 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 Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Mon Jul 5 08:49:55 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 5 Jul 2010 08:49:55 +0200 Subject: [Gambas-user] gbr3: no project file in '/usr/local/bin/gambas3' In-Reply-To: References: <4C316BC8.5000702@...221...> <4C317908.6070504@...221...> Message-ID: i think there is a problem on your PATH environment variable Just add export PATH=$PATH:/usr/local/bin in ~/.bashrc 2010/7/5 Dimitris Anogiatis : > Matti, > > first go to /usr/local/bin > > then type gbr3 and then press enter > > If you get something like this: > > gbr3: no archive file > > then gambas is located in /usr/local/bin/ > > and you can try this > > gbr3 gambas3.gambas > (since you're already in /usr/local/bin/) > > I hope this takes you a bit further > > Regards, > Dimitris > > > On Mon, Jul 5, 2010 at 12:17 AM, Matti wrote: > >> Hi Dimitri, >> >> there is no directory /usr/local/bin/gambas3/ here. >> And when I try any commands in /usr/local/bin/, I get messages like "ERROR: >> #35: >> Cannot open file '.': No such device >> 0: ?" or "gbr3: no project file in 'gambas3.gambas'." >> >> Matti >> >> Am 05.07.2010 07:59, schrieb Dimitris Anogiatis: >> > Hey Matti >> > >> > try starting gambas from the terminal by typing >> > >> > /usr/local/bin/gambas3/gbr3 /usr/local/bin/gambas3/gambas3.gambas >> > >> > it should run the Gambas IDE then. >> > >> > I hope this helps >> > >> > Regards >> > Dimitris >> > >> > On Sun, Jul 4, 2010 at 11:21 PM, Matti wrote: >> > >> >> Once again, I tried to install Gambas3 on my SuSe 11.2. >> >> Got rev 3025 from svn, and this time appearently the installation ran >> >> without >> >> errors. >> >> But when I try to start gambas3, I get the message above. >> >> >> >> What now? I found one thread in the mail archives, but this looks like >> >> there was >> >> something wrong in the revision. >> >> >> >> In /usr/local/bin/gambas3 I have the files: >> >> gambas3 >> >> gambas3.gambas >> >> gba3 >> >> gbc3 >> >> gbi3 >> >> gbr3 >> >> gbs3 >> >> gbs3.gambas >> >> gbw3 >> >> gbx3 >> >> >> >> Thanks for help >> >> Matti >> >> >> >> >> >> >> ------------------------------------------------------------------------------ >> >> This SF.net email is sponsored by Sprint >> >> What will you do first with EVO, the first 4G phone? >> >> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first >> >> _______________________________________________ >> >> 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 Sprint >> > What will you do first with EVO, the first 4G phone? >> > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first >> > _______________________________________________ >> > 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 Sprint >> What will you do first with EVO, the first 4G phone? >> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first >> _______________________________________________ >> 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 Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From math.eber at ...221... Mon Jul 5 08:51:18 2010 From: math.eber at ...221... (Matti) Date: Mon, 05 Jul 2010 08:51:18 +0200 Subject: [Gambas-user] gbr3: no project file in '/usr/local/bin/gambas3' In-Reply-To: References: <4C316BC8.5000702@...221...> <4C317908.6070504@...221...> Message-ID: <4C3180E6.8020009@...221...> No, same result as before: mathias at ...2356...:~> cd /usr/local/bin mathias at ...2356...:/usr/local/bin> gbr3 ERROR: #35: Cannot open file '.': No such device 0: ? mathias at ...2356...:/usr/local/bin> gbr3 gambas3.gambas gbr3: no project file in 'gambas3.gambas'. Am 05.07.2010 08:36, schrieb Dimitris Anogiatis: > Matti, > > first go to /usr/local/bin > > then type gbr3 and then press enter > > If you get something like this: > > gbr3: no archive file > > then gambas is located in /usr/local/bin/ > > and you can try this > > gbr3 gambas3.gambas > (since you're already in /usr/local/bin/) > > I hope this takes you a bit further > > Regards, > Dimitris > > > On Mon, Jul 5, 2010 at 12:17 AM, Matti wrote: > >> Hi Dimitri, >> >> there is no directory /usr/local/bin/gambas3/ here. >> And when I try any commands in /usr/local/bin/, I get messages like "ERROR: >> #35: >> Cannot open file '.': No such device >> 0: ?" or "gbr3: no project file in 'gambas3.gambas'." >> >> Matti >> >> Am 05.07.2010 07:59, schrieb Dimitris Anogiatis: >>> Hey Matti >>> >>> try starting gambas from the terminal by typing >>> >>> /usr/local/bin/gambas3/gbr3 /usr/local/bin/gambas3/gambas3.gambas >>> >>> it should run the Gambas IDE then. >>> >>> I hope this helps >>> >>> Regards >>> Dimitris >>> >>> On Sun, Jul 4, 2010 at 11:21 PM, Matti wrote: >>> >>>> Once again, I tried to install Gambas3 on my SuSe 11.2. >>>> Got rev 3025 from svn, and this time appearently the installation ran >>>> without >>>> errors. >>>> But when I try to start gambas3, I get the message above. >>>> >>>> What now? I found one thread in the mail archives, but this looks like >>>> there was >>>> something wrong in the revision. >>>> >>>> In /usr/local/bin/gambas3 I have the files: >>>> gambas3 >>>> gambas3.gambas >>>> gba3 >>>> gbc3 >>>> gbi3 >>>> gbr3 >>>> gbs3 >>>> gbs3.gambas >>>> gbw3 >>>> gbx3 >>>> >>>> Thanks for help >>>> Matti >>>> >>>> >>>> >> ------------------------------------------------------------------------------ >>>> This SF.net email is sponsored by Sprint >>>> What will you do first with EVO, the first 4G phone? >>>> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first >>>> _______________________________________________ >>>> 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 Sprint >>> What will you do first with EVO, the first 4G phone? >>> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first >>> _______________________________________________ >>> 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 Sprint >> What will you do first with EVO, the first 4G phone? >> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first >> _______________________________________________ >> 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 Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Mon Jul 5 08:53:57 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 5 Jul 2010 08:53:57 +0200 Subject: [Gambas-user] gambas3 search/replace global - really inconvenient In-Reply-To: <201006301802.32410.gambas@...1...> References: <201006301802.32410.gambas@...1...> Message-ID: Le 30 juin 2010 18:02, Beno?t Minisini a ?crit : >> > I guess what I'm suggesting is that within the same searchbox that pops >> > up when you search a module, it has an option of 'search globally', and >> > that then - F3 would just move to the next occurrence in the project, >> > not just continue going and look for everything. >> >> I think that is good idea. >> Maybe list in browse tab should refresh, >> if something is changed in code and you click on that list. >> Otherwise clicking on occurrence doesn't make correct jump to code. > > I'm aware of the problem, but didn't find a good fix at the moment. > >> >> Also some files should be able to exclude from global search. >> Example binary data files. >> >> BTW. Double clicking on binary file hangs IDE completely. >> Way to unf*ck that is to edit .settings in project folder with gedit etc. >> >> Jussi >> > > Yes, but how can I detect a "binary" file? it's simply a file with non printable characters no ? if the asc( 10) first characters then ... Mabe a test on utf8 will be necessary as i don't know how asc manage it. > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Mon Jul 5 08:55:00 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 5 Jul 2010 08:55:00 +0200 Subject: [Gambas-user] gbr3: no project file in '/usr/local/bin/gambas3' In-Reply-To: References: <4C316BC8.5000702@...221...> <4C317908.6070504@...221...> Message-ID: 2010/7/5 Fabien Bodard : > i think there is a problem on your PATH environment variable > > Just add > > export PATH=$PATH:/usr/local/bin > in ~/.bashrc and open a new console after > > > 2010/7/5 Dimitris Anogiatis : >> Matti, >> >> first go to /usr/local/bin >> >> then type gbr3 and then press enter >> >> If you get something like this: >> >> gbr3: no archive file >> >> then gambas is located in /usr/local/bin/ >> >> and you can try this >> >> gbr3 gambas3.gambas >> (since you're already in /usr/local/bin/) >> >> I hope this takes you a bit further >> >> Regards, >> Dimitris >> >> >> On Mon, Jul 5, 2010 at 12:17 AM, Matti wrote: >> >>> Hi Dimitri, >>> >>> there is no directory /usr/local/bin/gambas3/ here. >>> And when I try any commands in /usr/local/bin/, I get messages like "ERROR: >>> #35: >>> Cannot open file '.': No such device >>> 0: ?" or "gbr3: no project file in 'gambas3.gambas'." >>> >>> Matti >>> >>> Am 05.07.2010 07:59, schrieb Dimitris Anogiatis: >>> > Hey Matti >>> > >>> > try starting gambas from the terminal by typing >>> > >>> > /usr/local/bin/gambas3/gbr3 /usr/local/bin/gambas3/gambas3.gambas >>> > >>> > it should run the Gambas IDE then. >>> > >>> > I hope this helps >>> > >>> > Regards >>> > Dimitris >>> > >>> > On Sun, Jul 4, 2010 at 11:21 PM, Matti wrote: >>> > >>> >> Once again, I tried to install Gambas3 on my SuSe 11.2. >>> >> Got rev 3025 from svn, and this time appearently the installation ran >>> >> without >>> >> errors. >>> >> But when I try to start gambas3, I get the message above. >>> >> >>> >> What now? I found one thread in the mail archives, but this looks like >>> >> there was >>> >> something wrong in the revision. >>> >> >>> >> In /usr/local/bin/gambas3 I have the files: >>> >> gambas3 >>> >> gambas3.gambas >>> >> gba3 >>> >> gbc3 >>> >> gbi3 >>> >> gbr3 >>> >> gbs3 >>> >> gbs3.gambas >>> >> gbw3 >>> >> gbx3 >>> >> >>> >> Thanks for help >>> >> Matti >>> >> >>> >> >>> >> >>> ------------------------------------------------------------------------------ >>> >> This SF.net email is sponsored by Sprint >>> >> What will you do first with EVO, the first 4G phone? >>> >> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first >>> >> _______________________________________________ >>> >> 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 Sprint >>> > What will you do first with EVO, the first 4G phone? >>> > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first >>> > _______________________________________________ >>> > 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 Sprint >>> What will you do first with EVO, the first 4G phone? >>> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first >>> _______________________________________________ >>> 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 Sprint >> What will you do first with EVO, the first 4G phone? >> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > From wdahn at ...1000... Mon Jul 5 09:33:09 2010 From: wdahn at ...1000... (Werner) Date: Mon, 05 Jul 2010 15:33:09 +0800 Subject: [Gambas-user] gbr3: no project file in '/usr/local/bin/gambas3' In-Reply-To: <4C317908.6070504@...221...> References: <4C316BC8.5000702@...221...> <4C317908.6070504@...221...> Message-ID: <4C318AB5.7090100@...1000...> On 05/07/10 14:17, Matti wrote: > Hi Dimitri, > > there is no directory /usr/local/bin/gambas3/ here. > And when I try any commands in /usr/local/bin/, I get messages like "ERROR: #35: > Cannot open file '.': No such device > 0: ?" or "gbr3: no project file in 'gambas3.gambas'." > > Matti > > Am 05.07.2010 07:59, schrieb Dimitris Anogiatis: > >> Hey Matti >> >> try starting gambas from the terminal by typing >> >> /usr/local/bin/gambas3/gbr3 /usr/local/bin/gambas3/gambas3.gambas >> >> it should run the Gambas IDE then. >> >> I hope this helps >> >> Regards >> Dimitris >> >> On Sun, Jul 4, 2010 at 11:21 PM, Matti wrote: >> >> >>> Once again, I tried to install Gambas3 on my SuSe 11.2. >>> Got rev 3025 from svn, and this time appearently the installation ran >>> without >>> errors. >>> But when I try to start gambas3, I get the message above. >>> >>> What now? I found one thread in the mail archives, but this looks like >>> there was >>> something wrong in the revision. >>> >>> In /usr/local/bin/gambas3 I have the files: >>> gambas3 >>> gambas3.gambas >>> gba3 >>> gbc3 >>> gbi3 >>> gbr3 >>> gbs3 >>> gbs3.gambas >>> gbw3 >>> gbx3 >>> >>> Thanks for help >>> Matti >>> >>> Hello Matti, I have Gambas3 svn 2997 on openSuse 11.2/64 running. What error messages are you getting? Werner From math.eber at ...221... Mon Jul 5 21:15:04 2010 From: math.eber at ...221... (Matti) Date: Mon, 05 Jul 2010 21:15:04 +0200 Subject: [Gambas-user] gbr3: no project file in '/usr/local/bin/gambas3' In-Reply-To: References: <4C316BC8.5000702@...221...> <4C317908.6070504@...221...> Message-ID: <4C322F38.7030907@...221...> Yes, that should be logical. Because the program complains about the non-existing directory /usr/local/bin/gambas3. (My first mail was wrong here, I have only /usr/local/bin) But setting the PATH variable doesn't change anything. Strange. Am 05.07.2010 08:49, schrieb Fabien Bodard: > i think there is a problem on your PATH environment variable > > Just add > > export PATH=$PATH:/usr/local/bin > in ~/.bashrc > > > > 2010/7/5 Dimitris Anogiatis : >> Matti, >> >> first go to /usr/local/bin >> >> then type gbr3 and then press enter >> >> If you get something like this: >> >> gbr3: no archive file >> >> then gambas is located in /usr/local/bin/ >> >> and you can try this >> >> gbr3 gambas3.gambas >> (since you're already in /usr/local/bin/) >> >> I hope this takes you a bit further >> >> Regards, >> Dimitris >> >> >> On Mon, Jul 5, 2010 at 12:17 AM, Matti wrote: >> >>> Hi Dimitri, >>> >>> there is no directory /usr/local/bin/gambas3/ here. >>> And when I try any commands in /usr/local/bin/, I get messages like "ERROR: >>> #35: >>> Cannot open file '.': No such device >>> 0: ?" or "gbr3: no project file in 'gambas3.gambas'." >>> >>> Matti >>> >>> Am 05.07.2010 07:59, schrieb Dimitris Anogiatis: >>>> Hey Matti >>>> >>>> try starting gambas from the terminal by typing >>>> >>>> /usr/local/bin/gambas3/gbr3 /usr/local/bin/gambas3/gambas3.gambas >>>> >>>> it should run the Gambas IDE then. >>>> >>>> I hope this helps >>>> >>>> Regards >>>> Dimitris >>>> >>>> On Sun, Jul 4, 2010 at 11:21 PM, Matti wrote: >>>> >>>>> Once again, I tried to install Gambas3 on my SuSe 11.2. >>>>> Got rev 3025 from svn, and this time appearently the installation ran >>>>> without >>>>> errors. >>>>> But when I try to start gambas3, I get the message above. >>>>> >>>>> What now? I found one thread in the mail archives, but this looks like >>>>> there was >>>>> something wrong in the revision. >>>>> >>>>> In /usr/local/bin/gambas3 I have the files: >>>>> gambas3 >>>>> gambas3.gambas >>>>> gba3 >>>>> gbc3 >>>>> gbi3 >>>>> gbr3 >>>>> gbs3 >>>>> gbs3.gambas >>>>> gbw3 >>>>> gbx3 >>>>> >>>>> Thanks for help >>>>> Matti >>>>> >>>>> >>>>> >>> ------------------------------------------------------------------------------ >>>>> This SF.net email is sponsored by Sprint >>>>> What will you do first with EVO, the first 4G phone? >>>>> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first >>>>> _______________________________________________ >>>>> 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 Sprint >>>> What will you do first with EVO, the first 4G phone? >>>> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first >>>> _______________________________________________ >>>> 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 Sprint >>> What will you do first with EVO, the first 4G phone? >>> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first >>> _______________________________________________ >>> 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 Sprint >> What will you do first with EVO, the first 4G phone? >> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first >> _______________________________________________ >> 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 Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Tue Jul 6 00:20:00 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 6 Jul 2010 00:20:00 +0200 Subject: [Gambas-user] gambas3 search/replace global - really inconvenient In-Reply-To: <201006291513.44109.rterry@...1946...> References: <201006291513.44109.rterry@...1946...> Message-ID: <201007060020.00091.gambas@...1...> > HI Benoit, > > I'm longing for a roll-back or change to your global search proceedures. > > Yes, the global search finds all the recurrences, but its slow and > cumbersome. > > Couldn't you just add an extra checkbox on the ordinary search and replace > which says 'global search', and then, as used to be the case, when the > current module is searched, just move on to the next occurence, load the > code on a tab to let the user interact with it, then move on. You could > also add an option like 'close edited code panel' for users who don't want > 100's of tabs open as the search progresses. > > What do others think. > > I find with a huge project, the current method really cumbersome. > > REgards > > Richard In revision #3029: - Global search can be cancelled. - Non-text files are detected and are not opened by the IDE. A file is considered as a text file if its 256 first characters can be interpreter as an UTF-8 string. If the last UTF-8 character of the 256 byte sequence is truncated, it is ignored. But the current interface remains. Regards, -- Beno?t Minisini From prog at ...2177... Tue Jul 6 18:22:12 2010 From: prog at ...2177... (craf) Date: Tue, 06 Jul 2010 12:22:12 -0400 Subject: [Gambas-user] Prueba de correo Message-ID: <1278433332.2270.1.camel@...2406...> Prueba de Correo. From prog at ...2177... Tue Jul 6 18:59:23 2010 From: prog at ...2177... (craf) Date: Tue, 06 Jul 2010 12:59:23 -0400 Subject: [Gambas-user] String Translate Message-ID: <1278435563.2270.5.camel@...2406...> Hi. I wonder if it is possible to translate strings enclosed in a module, which will be used in two different forms. The point is: 1. Creation of two forms (Form1 and FMain). 2. Creating a button on each form. 3. Creation of a string constant in a module (Module1). 4. Constant translation into English. All this in my code looks like this: 'Code in FMain PUBLIC SUB Form_Open() System.Language = "en_US.UTF-8" Button1.Caption = texto END 'Code in Form1 PUBLIC SUB Form_Open() Button1.Caption = FMain.texto END 'Code in Module1 PUBLIC CONST texto AS String = ("A?adir") Is there any way to translate strings that are stored in a module, this with the reason of not having to repeat each string on each form. Regards. From gambas at ...1... Tue Jul 6 19:06:15 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 6 Jul 2010 19:06:15 +0200 Subject: [Gambas-user] String Translate In-Reply-To: <1278435563.2270.5.camel@...2406...> References: <1278435563.2270.5.camel@...2406...> Message-ID: <201007061906.15832.gambas@...1...> > Hi. > > I wonder if it is possible to translate strings enclosed in a module, > which will be used in two different forms. The point is: > > 1. Creation of two forms (Form1 and FMain). > > 2. Creating a button on each form. > > 3. Creation of a string constant in a module (Module1). > > 4. Constant translation into English. > > All this in my code looks like this: > > 'Code in FMain > > PUBLIC SUB Form_Open() > > System.Language = "en_US.UTF-8" > Button1.Caption = texto > > END > > 'Code in Form1 > > PUBLIC SUB Form_Open() > > Button1.Caption = FMain.texto > > END > > 'Code in Module1 > > PUBLIC CONST texto AS String = ("A?adir") > > > > Is there any way to translate strings that are stored in a module, this > with the reason of not having to repeat each string on each form. > > Regards. You can do that, of course, but what for? The same string used multiple times in different classes/modules/forms... will be translated once in the translation dialog. -- Beno?t Minisini From prog at ...2177... Tue Jul 6 19:13:09 2010 From: prog at ...2177... (craf) Date: Tue, 06 Jul 2010 13:13:09 -0400 Subject: [Gambas-user] String Translate In-Reply-To: <201007061906.15832.gambas@...1...> References: <1278435563.2270.5.camel@...2406...> <201007061906.15832.gambas@...1...> Message-ID: <1278436389.2270.11.camel@...2406...> -----Mensaje original----- De: Beno?t Minisini Reply-to: mailing list for gambas users Para: mailing list for gambas users Asunto: Re: [Gambas-user] String Translate Fecha: Tue, 6 Jul 2010 19:06:15 +0200 > Hi. > > I wonder if it is possible to translate strings enclosed in a module, > which will be used in two different forms. The point is: > > 1. Creation of two forms (Form1 and FMain). > > 2. Creating a button on each form. > > 3. Creation of a string constant in a module (Module1). > > 4. Constant translation into English. > > All this in my code looks like this: > > 'Code in FMain > > PUBLIC SUB Form_Open() > > System.Language = "en_US.UTF-8" > Button1.Caption = texto > > END > > 'Code in Form1 > > PUBLIC SUB Form_Open() > > Button1.Caption = FMain.texto > > END > > 'Code in Module1 > > PUBLIC CONST texto AS String = ("A?adir") > > > > Is there any way to translate strings that are stored in a module, this > with the reason of not having to repeat each string on each form. > > Regards. >You can do that, of course, but what for? The same string used multiple times >in different classes/modules/forms... will be translated once in the >translation dialog. Ok. I got it. Thank you very much Regards From ea7dfh at ...2382... Tue Jul 6 21:22:24 2010 From: ea7dfh at ...2382... (EA7DFH) Date: Tue, 06 Jul 2010 21:22:24 +0200 Subject: [Gambas-user] Couple of Minor Bugs in Gambas3 Message-ID: <4C338270.1010008@...2382...> Hi all Beno?t, I'd like to report some minor issues in Gambas3 IDE: * IDE Main Window doesn't remember maximized state on each restart. * Tool windows (as debugging ones and search & replace) starts opening at 0,0 screen coordinates, which is cumbersome in Gnome desktops. May be it could be opened 25 or 30 px down to avoid overlapping with the main Gnome panel on top. Gambas3 #3021 Regards -- Jesus Guardon From rterry at ...1946... Wed Jul 7 00:46:18 2010 From: rterry at ...1946... (richard terry) Date: Wed, 7 Jul 2010 08:46:18 +1000 Subject: [Gambas-user] gambas3 search/replace global - really inconvenient In-Reply-To: <201006301802.32410.gambas@...1...> References: <201006301802.32410.gambas@...1...> Message-ID: <201007070846.18585.rterry@...1946...> Hi Benoit Thanks for the latest changes and ability to cancel. Can I suggest one more enhancement. The ability to exclude files under the data directory, ie only search sources. We have megabytes of data files for EasyGP, stuff like coding systems, the database dump (30+ schema's and hundreds of table defs), every bit of data in all the lookup tables, a huge amount of html help files, pbs drug data etc. This stuff is static, dosn't really change, and most times wouldn't want to search it. Regards Ricahrd From gambas at ...1... Thu Jul 8 00:42:35 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 8 Jul 2010 00:42:35 +0200 Subject: [Gambas-user] Couple of Minor Bugs in Gambas3 In-Reply-To: <4C338270.1010008@...2382...> References: <4C338270.1010008@...2382...> Message-ID: <201007080042.36080.gambas@...1...> > Hi all > > Beno?t, I'd like to report some minor issues in Gambas3 IDE: > > * IDE Main Window doesn't remember maximized state on each restart. Apparently it works with KDE4. Which desktop do you use? > > * Tool windows (as debugging ones and search & replace) starts opening > at 0,0 screen coordinates, which is cumbersome in Gnome desktops. May be > it could be opened 25 or 30 px down to avoid overlapping with the main > Gnome panel on top. Yep. I will see what I can do... Regards, -- Beno?t Minisini From gael.lehech at ...626... Thu Jul 8 17:40:07 2010 From: gael.lehech at ...626... (=?ISO-8859-1?Q?Ga=EBl_Le_Hec=27H?=) Date: Thu, 8 Jul 2010 17:40:07 +0200 Subject: [Gambas-user] gb.qte based application Message-ID: hi, succeeded in compiling both Qte and Gambas2-3033 with gb.qte activated. generated a small application called 1.gambas but when running it : root at ...2457...:/home/Sources/gambas2# ./1.gambas ** INTERNAL ERROR ** Cannot find interface of library 'gb.qt' ** Program aborting... Sorry... :-( The same application with gb.qt activated instead work ok (under X). Qte library accessible to Qt/embedded application (I can run designer,qtconfig ... ) with : designer -qws qtconfig -qws is there someone using gb.qte ? best regards, Ga?l Le Hec'H From gambas at ...1... Thu Jul 8 18:25:20 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 8 Jul 2010 18:25:20 +0200 Subject: [Gambas-user] gb.qte based application In-Reply-To: References: Message-ID: <201007081825.20755.gambas@...1...> > hi, > succeeded in compiling both Qte and Gambas2-3033 with gb.qte > activated. generated a small application called 1.gambas but when > running it : > > root at ...2457...:/home/Sources/gambas2# ./1.gambas > > ** INTERNAL ERROR ** > Cannot find interface of library 'gb.qt' > ** Program aborting... Sorry... :-( > > The same application with gb.qt activated instead work ok (under X). > > Qte library accessible to Qt/embedded application (I can run > designer,qtconfig ... ) with : > > designer -qws > qtconfig -qws > > is there someone using gb.qte ? > > best regards, > > Ga?l Le Hec'H > I guess you are the first one. And that component has been removed in Gambas 3. I think Qt/Embedded has been replaced by normal Qt. Can you confirm? Do you plan to write applications for embedded platforms? -- Beno?t Minisini From gael.lehech at ...626... Fri Jul 9 10:21:17 2010 From: gael.lehech at ...626... (=?ISO-8859-1?Q?Ga=EBl_Le_Hec=27H?=) Date: Fri, 9 Jul 2010 10:21:17 +0200 Subject: [Gambas-user] gb.qte based application In-Reply-To: <201007081825.20755.gambas@...1...> References: <201007081825.20755.gambas@...1...> Message-ID: 2010/7/8 Beno?t Minisini : >> hi, >> succeeded in compiling both Qte and Gambas2-3033 with gb.qte >> activated. generated a small application called 1.gambas but when >> running it : >> >> root at ...2457...:/home/Sources/gambas2# ./1.gambas >> >> ** INTERNAL ERROR ** >> Cannot find interface of library 'gb.qt' >> ** Program aborting... Sorry... :-( >> >> The same application with gb.qt activated instead work ok (under X). >> >> Qte library accessible to Qt/embedded application (I can run >> designer,qtconfig ?... ?) with : >> >> designer -qws >> qtconfig -qws >> >> is there someone using gb.qte ? >> >> best regards, >> >> Ga?l Le Hec'H >> > > I guess you are the first one. > > And that component has been removed in Gambas 3. > > I think Qt/Embedded has been replaced by normal Qt. Can you confirm? Do you > plan to write applications for embedded platforms? > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > I use Gambas2 to build HMI for machin in Food Industry, my app is based on a Slackware 13/X11/Gambas2 on a Geode 500Mhz panel PC. My (small) company has been bought by a much bigger one, they design and build their own embedded system : PowerPC 400 MHz and Qt Creator for building C++ HMI (Qt4 for framebuffer based no X11 :-( ) I would like to use their components as retrofit and for future development, but I have no hope to have X11 running on their system (it's a company in the far north of europe ;-) very difficult to move these guys). gb.Qt4/Embedded does not exist so the logical choice was to choose the gb.qte in Gambas2 (piece of cake to check gb.qte instead of gb.qt ;-) ) I think getting Qt3/embedded running on their system is quite easy (if it doesn't always exist, they have also retrofit to do). Ideally it would be a gb.qt4/embedded ;-) even if I would have to switch to gambas3. From gambas at ...1... Fri Jul 9 10:30:29 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 9 Jul 2010 10:30:29 +0200 Subject: [Gambas-user] gb.qte based application In-Reply-To: References: <201007081825.20755.gambas@...1...> Message-ID: <201007091030.29735.gambas@...1...> > 2010/7/8 Beno?t Minisini : > >> hi, > >> succeeded in compiling both Qte and Gambas2-3033 with gb.qte > >> activated. generated a small application called 1.gambas but when > >> running it : > >> > >> root at ...2457...:/home/Sources/gambas2# ./1.gambas > >> > >> ** INTERNAL ERROR ** > >> Cannot find interface of library 'gb.qt' > >> ** Program aborting... Sorry... :-( > >> > >> The same application with gb.qt activated instead work ok (under X). > >> > >> Qte library accessible to Qt/embedded application (I can run > >> designer,qtconfig ... ) with : > >> > >> designer -qws > >> qtconfig -qws > >> > >> is there someone using gb.qte ? > >> > >> best regards, > >> > >> Ga?l Le Hec'H > > > > I guess you are the first one. > > > > And that component has been removed in Gambas 3. > > > > I think Qt/Embedded has been replaced by normal Qt. Can you confirm? Do > > you plan to write applications for embedded platforms? > > > > -- > > Beno?t Minisini > > > > ------------------------------------------------------------------------- > > ----- This SF.net email is sponsored by Sprint > > What will you do first with EVO, the first 4G phone? > > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > I use Gambas2 to build HMI for machin in Food Industry, my app is > based on a Slackware 13/X11/Gambas2 on a Geode 500Mhz panel PC. > My (small) company has been bought by a much bigger one, they design > and build their own embedded system : PowerPC 400 MHz and Qt Creator > for building C++ HMI (Qt4 for framebuffer based no X11 :-( ) > I would like to use their components as retrofit and for future > development, but I have no hope to have X11 running on their system > (it's a company in the far north of europe ;-) very difficult to move > these guys). gb.Qt4/Embedded does not exist so the logical choice was > to choose the gb.qte in Gambas2 (piece of cake to check gb.qte instead > of gb.qt ;-) ) I think getting Qt3/embedded running on their system is > quite easy (if it doesn't always exist, they have also retrofit to > do). > > Ideally it would be a gb.qt4/embedded ;-) even if I would have to > switch to gambas3. > > --------------------------------------------------------------------------- > --- This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user Qt/embedded is now part of Qt4: http://qt.nokia.com/products/platform/qt-for-embedded-linux So it should be possible to recreate a gb.qt4 embedded component from the gb.qt4 source code by removing the X11 specific code with conditional compilation. It should not be a too huge job, as the QT3/embedded conditional compilation from gambas2 is yet there in the source code. -- Beno?t Minisini From gael.lehech at ...626... Fri Jul 9 22:49:29 2010 From: gael.lehech at ...626... (=?ISO-8859-1?Q?Ga=EBl_Le_Hec=27H?=) Date: Fri, 9 Jul 2010 22:49:29 +0200 Subject: [Gambas-user] gb.qte based application In-Reply-To: <201007091030.29735.gambas@...1...> References: <201007081825.20755.gambas@...1...> <201007091030.29735.gambas@...1...> Message-ID: it would be great benoit. On 7/9/10, Beno?t Minisini wrote: >> 2010/7/8 Beno?t Minisini : >> >> hi, >> >> succeeded in compiling both Qte and Gambas2-3033 with gb.qte >> >> activated. generated a small application called 1.gambas but when >> >> running it : >> >> >> >> root at ...2457...:/home/Sources/gambas2# ./1.gambas >> >> >> >> ** INTERNAL ERROR ** >> >> Cannot find interface of library 'gb.qt' >> >> ** Program aborting... Sorry... :-( >> >> >> >> The same application with gb.qt activated instead work ok (under X). >> >> >> >> Qte library accessible to Qt/embedded application (I can run >> >> designer,qtconfig ... ) with : >> >> >> >> designer -qws >> >> qtconfig -qws >> >> >> >> is there someone using gb.qte ? >> >> >> >> best regards, >> >> >> >> Ga?l Le Hec'H >> > >> > I guess you are the first one. >> > >> > And that component has been removed in Gambas 3. >> > >> > I think Qt/Embedded has been replaced by normal Qt. Can you confirm? Do >> > you plan to write applications for embedded platforms? >> > >> > -- >> > Beno?t Minisini >> > >> > ------------------------------------------------------------------------- >> > ----- This SF.net email is sponsored by Sprint >> > What will you do first with EVO, the first 4G phone? >> > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> I use Gambas2 to build HMI for machin in Food Industry, my app is >> based on a Slackware 13/X11/Gambas2 on a Geode 500Mhz panel PC. >> My (small) company has been bought by a much bigger one, they design >> and build their own embedded system : PowerPC 400 MHz and Qt Creator >> for building C++ HMI (Qt4 for framebuffer based no X11 :-( ) >> I would like to use their components as retrofit and for future >> development, but I have no hope to have X11 running on their system >> (it's a company in the far north of europe ;-) very difficult to move >> these guys). gb.Qt4/Embedded does not exist so the logical choice was >> to choose the gb.qte in Gambas2 (piece of cake to check gb.qte instead >> of gb.qt ;-) ) I think getting Qt3/embedded running on their system is >> quite easy (if it doesn't always exist, they have also retrofit to >> do). >> >> Ideally it would be a gb.qt4/embedded ;-) even if I would have to >> switch to gambas3. >> >> --------------------------------------------------------------------------- >> --- This SF.net email is sponsored by Sprint >> What will you do first with EVO, the first 4G phone? >> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > Qt/embedded is now part of Qt4: > > http://qt.nokia.com/products/platform/qt-for-embedded-linux > > So it should be possible to recreate a gb.qt4 embedded component from the > gb.qt4 source code by removing the X11 specific code with conditional > compilation. > > It should not be a too huge job, as the QT3/embedded conditional compilation > from gambas2 is yet there in the source code. > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From admhardsoft at ...253... Sat Jul 10 20:55:40 2010 From: admhardsoft at ...253... (Tomas Rodriguez) Date: Sat, 10 Jul 2010 14:55:40 -0400 Subject: [Gambas-user] two combobox combined in gambas In-Reply-To: <201007091030.29735.gambas@...1...> References: <201007081825.20755.gambas@...1...> <201007091030.29735.gambas@...1...> Message-ID: <5851DC425F3C45D2946D2CFF622EF1FD@...2404...> Hi I would like what Can I do for get all item from a database to a combobox and the other one comboxo show only item belong to the item in the first combobox. example: the first combobox is for show all province of canada but the second combobox show only the town belong the selected province in the first combobox. example Ontario--------> Ottawa, Toronto, London, Missisigua somebody can help me with this? or give me a hand thanks tomas -------------------------------------------------- From: "Beno?t Minisini" Sent: Friday, July 09, 2010 4:30 AM To: "mailing list for gambas users" Subject: Re: [Gambas-user] gb.qte based application >> 2010/7/8 Beno?t Minisini : >> >> hi, >> >> succeeded in compiling both Qte and Gambas2-3033 with gb.qte >> >> activated. generated a small application called 1.gambas but when >> >> running it : >> >> >> >> root at ...2457...:/home/Sources/gambas2# ./1.gambas >> >> >> >> ** INTERNAL ERROR ** >> >> Cannot find interface of library 'gb.qt' >> >> ** Program aborting... Sorry... :-( >> >> >> >> The same application with gb.qt activated instead work ok (under X). >> >> >> >> Qte library accessible to Qt/embedded application (I can run >> >> designer,qtconfig ... ) with : >> >> >> >> designer -qws >> >> qtconfig -qws >> >> >> >> is there someone using gb.qte ? >> >> >> >> best regards, >> >> >> >> Ga?l Le Hec'H >> > >> > I guess you are the first one. >> > >> > And that component has been removed in Gambas 3. >> > >> > I think Qt/Embedded has been replaced by normal Qt. Can you confirm? Do >> > you plan to write applications for embedded platforms? >> > >> > -- >> > Beno?t Minisini >> > >> > ------------------------------------------------------------------------- >> > ----- This SF.net email is sponsored by Sprint >> > What will you do first with EVO, the first 4G phone? >> > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> I use Gambas2 to build HMI for machin in Food Industry, my app is >> based on a Slackware 13/X11/Gambas2 on a Geode 500Mhz panel PC. >> My (small) company has been bought by a much bigger one, they design >> and build their own embedded system : PowerPC 400 MHz and Qt Creator >> for building C++ HMI (Qt4 for framebuffer based no X11 :-( ) >> I would like to use their components as retrofit and for future >> development, but I have no hope to have X11 running on their system >> (it's a company in the far north of europe ;-) very difficult to move >> these guys). gb.Qt4/Embedded does not exist so the logical choice was >> to choose the gb.qte in Gambas2 (piece of cake to check gb.qte instead >> of gb.qt ;-) ) I think getting Qt3/embedded running on their system is >> quite easy (if it doesn't always exist, they have also retrofit to >> do). >> >> Ideally it would be a gb.qt4/embedded ;-) even if I would have to >> switch to gambas3. >> >> --------------------------------------------------------------------------- >> --- This SF.net email is sponsored by Sprint >> What will you do first with EVO, the first 4G phone? >> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > Qt/embedded is now part of Qt4: > > http://qt.nokia.com/products/platform/qt-for-embedded-linux > > So it should be possible to recreate a gb.qt4 embedded component from the > gb.qt4 source code by removing the X11 specific code with conditional > compilation. > > It should not be a too huge job, as the QT3/embedded conditional > compilation > from gambas2 is yet there in the source code. > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From david at ...2458... Sun Jul 11 00:37:28 2010 From: david at ...2458... (john david weston) Date: Sat, 10 Jul 2010 23:37:28 +0100 Subject: [Gambas-user] two combobox combined in gambas In-Reply-To: <5851DC425F3C45D2946D2CFF622EF1FD@...2404...> References: <201007081825.20755.gambas@...1...> <201007091030.29735.gambas@...1...> <5851DC425F3C45D2946D2CFF622EF1FD@...2404...> Message-ID: <1278801448.7577.8.camel@...2459...> On Sat, 2010-07-10 at 14:55 -0400, Tomas Rodriguez wrote: > Hi > I would like what Can I do for get all item from a database to a combobox > and the other one comboxo show only item belong to the item in the first > combobox. > example: > the first combobox is for show all province of canada but the second > combobox show only the town belong the selected province in the first > combobox. > example > Ontario--------> Ottawa, Toronto, London, Missisigua > > somebody can help me with this? or give me a hand > thanks > tomas > I have done this some time ago on an older version of Gambas, so I'm not sure if this still works. It's part of a CD database which does what you want with Artists and CD titles. here's some snippets from my code: (you obviously need to open the database connection first. the load_artists() is run from Form_Open() ) PRIVATE SUB load_artists() resArtists = global.conn.Find("Artists", "ID < 629 OR ID > 630 ORDER BY artist") FOR EACH resArtists cbArtists.Add(resArtists!artist) NEXT global.writing = TRUE 'disable _change event handler to prevent infinite loops. cbArtists.Text = "< Select an Artist >" sCurrentArtist = "" sCurrentTitle = "" global.writing = FALSE btnNewTitle.Enabled = FALSE END PRIVATE SUB load_titles() resArtists.MoveFirst resArtists.MoveTo(cbArtists.Index) resTitle = global.conn.Find("CDSets", "artistid = &1 ORDER BY title", resArtists!ID) cbTitles.Clear sCurrentTitle = "" IF resTitle.Count > 0 THEN FOR EACH resTitle cbTitles.Add(resTitle!title) NEXT btnNewTitle.Enabled = TRUE ELSE 'no titles found global.writing = TRUE cbTitles.Text = "" global.writing = FALSE btnNewTitle.Enabled = FALSE ENDIF END PUBLIC SUB combo_LostFocus() SELECT CASE LAST.Name CASE "cbArtists" sCurrentArtist = cbArtists.Text load_titles CASE "cbTitles" IF cbTitles.text THEN sCurrentTitle = cbTitles.Text ENDIF END SELECT END Hope this is of some help, or maybe some of the experts here can pick holes in it or suggest a better way? David. From admhardsoft at ...253... Sun Jul 11 04:23:41 2010 From: admhardsoft at ...253... (Tomas Rodriguez) Date: Sat, 10 Jul 2010 22:23:41 -0400 Subject: [Gambas-user] two combobox combined in gambas In-Reply-To: <1278801448.7577.8.camel@...2459...> References: <201007081825.20755.gambas@...1...><201007091030.29735.gambas@...1...> <5851DC425F3C45D2946D2CFF622EF1FD@...2404...> <1278801448.7577.8.camel@...2459...> Message-ID: thanks worked fine. thanks tomas -------------------------------------------------- From: "john david weston" Sent: Saturday, July 10, 2010 6:37 PM To: "mailing list for gambas users" Subject: Re: [Gambas-user] two combobox combined in gambas > > On Sat, 2010-07-10 at 14:55 -0400, Tomas Rodriguez wrote: >> Hi >> I would like what Can I do for get all item from a database to a combobox >> and the other one comboxo show only item belong to the item in the first >> combobox. >> example: >> the first combobox is for show all province of canada but the second >> combobox show only the town belong the selected province in the first >> combobox. >> example >> Ontario--------> Ottawa, Toronto, London, Missisigua >> >> somebody can help me with this? or give me a hand >> thanks >> tomas >> > I have done this some time ago on an older version of Gambas, so I'm not > sure if this still works. It's part of a CD database which does what you > want with Artists and CD titles. here's some snippets from my code: > (you obviously need to open the database connection first. the > load_artists() is run from Form_Open() ) > > PRIVATE SUB load_artists() > > resArtists = global.conn.Find("Artists", "ID < 629 OR ID > 630 ORDER > BY artist") > > FOR EACH resArtists > cbArtists.Add(resArtists!artist) > > NEXT > > global.writing = TRUE 'disable _change event handler to prevent > infinite loops. > cbArtists.Text = "< Select an Artist >" > sCurrentArtist = "" > sCurrentTitle = "" > global.writing = FALSE > btnNewTitle.Enabled = FALSE > > END > > > PRIVATE SUB load_titles() > > resArtists.MoveFirst > resArtists.MoveTo(cbArtists.Index) > resTitle = global.conn.Find("CDSets", "artistid = &1 ORDER BY title", > resArtists!ID) > cbTitles.Clear > sCurrentTitle = "" > > IF resTitle.Count > 0 THEN > > FOR EACH resTitle > cbTitles.Add(resTitle!title) > > NEXT > > btnNewTitle.Enabled = TRUE > > ELSE 'no titles found > > global.writing = TRUE > cbTitles.Text = "" > global.writing = FALSE > btnNewTitle.Enabled = FALSE > > ENDIF > END > > > PUBLIC SUB combo_LostFocus() > > SELECT CASE LAST.Name > > CASE "cbArtists" > > sCurrentArtist = cbArtists.Text > load_titles > > CASE "cbTitles" > IF cbTitles.text THEN > sCurrentTitle = cbTitles.Text > > ENDIF > > END SELECT > > END > > > Hope this is of some help, or maybe some of the experts here can pick > holes in it or suggest a better way? > > David. > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From admhardsoft at ...253... Sun Jul 11 04:30:49 2010 From: admhardsoft at ...253... (Tomas Rodriguez) Date: Sat, 10 Jul 2010 22:30:49 -0400 Subject: [Gambas-user] method for refresh a gridview . Message-ID: I have one small form for search in a table, but I show all item in a gridview in the first form, my question is. How can I refresh this Gridview since this small form for search when I found the item in the table?, I want to show the item founded in the same gridview but I need to refresh or update this gridview. someone can help me with this? thanks tomas From oceanosoftlapalma at ...626... Mon Jul 12 10:13:00 2010 From: oceanosoftlapalma at ...626... (=?ISO-8859-1?Q?Ricardo_D=EDaz_Mart=EDn?=) Date: Mon, 12 Jul 2010 10:13:00 +0200 Subject: [Gambas-user] method for refresh a gridview . In-Reply-To: References: Message-ID: If you're searching in the tabla row by row, you can select it by MyTable.Row = TheNumberTheRowYouFound If you are using a select in a database for the search, you only must to fill again the table with the select resulset. Regards, Ricardo D?az 2010/7/11 Tomas Rodriguez > I have one small form for search in a table, but I show all item in a > gridview in the first form, my question is. > > How can I refresh this Gridview since this small form for search when I > found the item in the table?, I want to show the item founded in the same > gridview but I need to > refresh or update this gridview. > someone can help me with this? > thanks > tomas > > > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From math.eber at ...221... Mon Jul 12 22:33:52 2010 From: math.eber at ...221... (Matti) Date: Mon, 12 Jul 2010 22:33:52 +0200 Subject: [Gambas-user] Path of Gambas3: bug? Message-ID: <4C3B7C30.6090006@...221...> I have to ask again. On my SuSe 11.2, I tried some svn downloads from version 3025 to 3036. The config.log looks ok, except for a few missing components. My folder /usr/local/bin/ looks exactly like that of another SuSe 11.2 user: lrwxrwxrwx 1 root root 14 12. Jul 22:04 gambas3 -> gambas3.gambas -rwxr-xr-x 1 root root 1766837 12. Jul 22:04 gambas3.gambas -rwxr-xr-x 1 root root 91097 12. Jul 22:04 gba3 -rwxr-xr-x 1 root root 403595 12. Jul 22:04 gbc3 -rwxr-xr-x 1 root root 85447 12. Jul 22:04 gbi3 lrwxrwxrwx 1 root root 4 12. Jul 22:04 gbr3 -> gbx3 lrwxrwxrwx 1 root root 11 12. Jul 22:04 gbs3 -> gbs3.gambas -rwxr-xr-x 1 root root 21147 12. Jul 22:04 gbs3.gambas lrwxrwxrwx 1 root root 11 12. Jul 22:04 gbw3 -> gbs3.gambas -rwxr-xr-x 1 root root 1303531 12. Jul 22:04 gbx3 /usr/local/bin is in $PATH. But when I do mathias at ...2356...:/usr/local/bin> gambas3, I get the error gbr3: no project file in '/usr/local/bin/gambas3'. And this is strange. Because there is no directory /usr/local/bin/gambas3, and of course there can't be any project file there. Maybe a bug? Thanks for any hints Matti From gambas at ...1... Mon Jul 12 22:50:54 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 12 Jul 2010 22:50:54 +0200 Subject: [Gambas-user] Path of Gambas3: bug? In-Reply-To: <4C3B7C30.6090006@...221...> References: <4C3B7C30.6090006@...221...> Message-ID: <201007122250.54368.gambas@...1...> > I have to ask again. > > On my SuSe 11.2, I tried some svn downloads from version 3025 to 3036. > > The config.log looks ok, except for a few missing components. > > My folder /usr/local/bin/ looks exactly like that of another SuSe 11.2 > user: lrwxrwxrwx 1 root root 14 12. Jul 22:04 gambas3 -> > gambas3.gambas -rwxr-xr-x 1 root root 1766837 12. Jul 22:04 gambas3.gambas > -rwxr-xr-x 1 root root 91097 12. Jul 22:04 gba3 > -rwxr-xr-x 1 root root 403595 12. Jul 22:04 gbc3 > -rwxr-xr-x 1 root root 85447 12. Jul 22:04 gbi3 > lrwxrwxrwx 1 root root 4 12. Jul 22:04 gbr3 -> gbx3 > lrwxrwxrwx 1 root root 11 12. Jul 22:04 gbs3 -> gbs3.gambas > -rwxr-xr-x 1 root root 21147 12. Jul 22:04 gbs3.gambas > lrwxrwxrwx 1 root root 11 12. Jul 22:04 gbw3 -> gbs3.gambas > -rwxr-xr-x 1 root root 1303531 12. Jul 22:04 gbx3 > > /usr/local/bin is in $PATH. > > But when I do mathias at ...2356...:/usr/local/bin> gambas3, I get the error > gbr3: no project file in '/usr/local/bin/gambas3'. > > And this is strange. Because there is no directory /usr/local/bin/gambas3, > and of course there can't be any project file there. > > Maybe a bug? > > Thanks for any hints > Matti > Do you have the full output of ./configure, make and "make install" ? -- Beno?t Minisini From girardhenri at ...67... Tue Jul 13 09:19:20 2010 From: girardhenri at ...67... (girardhenri at ...67...) Date: Tue, 13 Jul 2010 09:19:20 +0200 Subject: [Gambas-user] Path of Gambas3: bug? In-Reply-To: <4C3B7C30.6090006@...221...> References: <4C3B7C30.6090006@...221...> Message-ID: I have the same problem on ubuntu : ./configure --prefix=/usr everything goes ok during compiling but gambas3 can't start ! no project in /usr/bin/gambas3 -------------------------------------------------- From: "Matti" Sent: Monday, July 12, 2010 10:33 PM To: "mailing list for gambas users" Subject: [Gambas-user] Path of Gambas3: bug? > I have to ask again. > > On my SuSe 11.2, I tried some svn downloads from version 3025 to 3036. > > The config.log looks ok, except for a few missing components. > > My folder /usr/local/bin/ looks exactly like that of another SuSe 11.2 > user: > lrwxrwxrwx 1 root root 14 12. Jul 22:04 gambas3 -> gambas3.gambas > -rwxr-xr-x 1 root root 1766837 12. Jul 22:04 gambas3.gambas > -rwxr-xr-x 1 root root 91097 12. Jul 22:04 gba3 > -rwxr-xr-x 1 root root 403595 12. Jul 22:04 gbc3 > -rwxr-xr-x 1 root root 85447 12. Jul 22:04 gbi3 > lrwxrwxrwx 1 root root 4 12. Jul 22:04 gbr3 -> gbx3 > lrwxrwxrwx 1 root root 11 12. Jul 22:04 gbs3 -> gbs3.gambas > -rwxr-xr-x 1 root root 21147 12. Jul 22:04 gbs3.gambas > lrwxrwxrwx 1 root root 11 12. Jul 22:04 gbw3 -> gbs3.gambas > -rwxr-xr-x 1 root root 1303531 12. Jul 22:04 gbx3 > > /usr/local/bin is in $PATH. > > But when I do mathias at ...2356...:/usr/local/bin> gambas3, I get the error > gbr3: no project file in '/usr/local/bin/gambas3'. > > And this is strange. Because there is no directory /usr/local/bin/gambas3, > and > of course there can't be any project file there. > > Maybe a bug? > > Thanks for any hints > Matti > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Tue Jul 13 10:32:05 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 13 Jul 2010 10:32:05 +0200 Subject: [Gambas-user] Path of Gambas3: bug? In-Reply-To: References: <4C3B7C30.6090006@...221...> Message-ID: <201007131032.05759.gambas@...1...> > I have the same problem on ubuntu : > ./configure --prefix=/usr > everything goes ok during compiling but gambas3 can't start ! > no project in /usr/bin/gambas3 > I'm currently checking that... Unrelated, but did you answer my question about your database blob problem? -- Beno?t Minisini From gambas at ...1... Tue Jul 13 11:05:56 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 13 Jul 2010 11:05:56 +0200 Subject: [Gambas-user] Path of Gambas3: bug? In-Reply-To: <201007131032.05759.gambas@...1...> References: <4C3B7C30.6090006@...221...> <201007131032.05759.gambas@...1...> Message-ID: <201007131105.56089.gambas@...1...> > > I have the same problem on ubuntu : > > ./configure --prefix=/usr > > everything goes ok during compiling but gambas3 can't start ! > > no project in /usr/bin/gambas3 > > I'm currently checking that... > > Unrelated, but did you answer my question about your database blob problem? I have just compiled the last revision on Ubuntu 10.04 bits, and everything is fine. -- Beno?t Minisini From gambas at ...1... Tue Jul 13 11:14:49 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 13 Jul 2010 11:14:49 +0200 Subject: [Gambas-user] Path of Gambas3: bug? In-Reply-To: <201007131105.56089.gambas@...1...> References: <4C3B7C30.6090006@...221...> <201007131032.05759.gambas@...1...> <201007131105.56089.gambas@...1...> Message-ID: <201007131114.49084.gambas@...1...> > > > I have the same problem on ubuntu : > > > ./configure --prefix=/usr > > > everything goes ok during compiling but gambas3 can't start ! > > > no project in /usr/bin/gambas3 > > > > I'm currently checking that... > > > > Unrelated, but did you answer my question about your database blob > > problem? > > I have just compiled the last revision on Ubuntu 10.04 bits, and everything > is fine. OK, I found: Webkit is needed by gambas3 IDE, you need to install Qt4 Webkit development package. Regards, -- Beno?t Minisini From gambas at ...1... Tue Jul 13 13:49:59 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 13 Jul 2010 13:49:59 +0200 Subject: [Gambas-user] Signal management Message-ID: <201007131349.59475.gambas@...1...> Hi, I don't remember who needed signal management in Gambas. But it's there now in Gambas 3 since revision #3037, through a new component named "gb.signal" and a static class named "Signal". Signal.Ignore() to ignore a signal. Signal.Catch() to catch a signal. A catched signal raises an event that must be handled by a static public function named "Application_Signal" located in the startup class. That event handler takes the signal number as argument. Signal.Reset() to reset a signal to its default behaviour. All signal numbers have associated numeric constants in the Signal class. For example: Signal.Ignore(Signal.SIGINT) The signal management is not perfect yet. For example, don't override SIGCHLD at the moment, otherwise process management won't work anymore. If you use it, please send your comments to me. Regards, -- Beno?t Minisini From gambas.fr at ...626... Tue Jul 13 13:55:00 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 13 Jul 2010 13:55:00 +0200 Subject: [Gambas-user] Signal management In-Reply-To: <201007131349.59475.gambas@...1...> References: <201007131349.59475.gambas@...1...> Message-ID: it remember me something else .... what about dbus signal ? Le 13 juillet 2010 13:49, Beno?t Minisini a ?crit : > Hi, > > I don't remember who needed signal management in Gambas. > > But it's there now in Gambas 3 since revision #3037, through a new component > named "gb.signal" and a static class named "Signal". > > Signal.Ignore() to ignore a signal. > Signal.Catch() to catch a signal. > > A catched signal raises an event that must be handled by a static public > function named "Application_Signal" located in the startup class. That event > handler takes the signal number as argument. > > Signal.Reset() to reset a signal to its default behaviour. > > All signal numbers have associated numeric constants in the Signal class. For > example: Signal.Ignore(Signal.SIGINT) > > The signal management is not perfect yet. For example, don't override SIGCHLD > at the moment, otherwise process management won't work anymore. > > If you use it, please send your comments to me. > > Regards, > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From doriano.blengino at ...1909... Tue Jul 13 14:38:35 2010 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Tue, 13 Jul 2010 14:38:35 +0200 Subject: [Gambas-user] Signal management In-Reply-To: <201007131349.59475.gambas@...1...> References: <201007131349.59475.gambas@...1...> Message-ID: <4C3C5E4B.7040902@...1909...> Beno?t Minisini ha scritto: > Hi, > > I don't remember who needed signal management in Gambas. > > But it's there now in Gambas 3 since revision #3037, through a new component > named "gb.signal" and a static class named "Signal". > > Signal.Ignore() to ignore a signal. > Signal.Catch() to catch a signal. > ... > Nice thing. But now I have a further question: is it possible to implement generic callbacks in Gambas? I mean - many libraries have functions where you specify a callback to be called, like the glib function g_signal_connect(); it would be nice to implement them, even partly, without resorting to write a gambas component. May be that by using libffi it is possible to implement them fully, but even a simple event could do. My problem now is that using ALSA, I must poll continuously to see if some event is coming in, wasting a lot of CPU and losing precision. With a callback if would be much simpler... I hope I have been clear enough. Regards, Doriano From math.eber at ...221... Tue Jul 13 20:05:39 2010 From: math.eber at ...221... (Matti) Date: Tue, 13 Jul 2010 20:05:39 +0200 Subject: [Gambas-user] Path of Gambas3: bug? In-Reply-To: <201007131114.49084.gambas@...1...> References: <4C3B7C30.6090006@...221...> <201007131032.05759.gambas@...1...> <201007131105.56089.gambas@...1...> <201007131114.49084.gambas@...1...> Message-ID: <4C3CAAF3.7040403@...221...> Yes, that was it! Ok, now it runs. Thanks, Beno?t. Wouldn't it be a good idea to mark the essential components on the instructions page, or describe them in README? For me, "Webkit" didn't sound like I would need that right now, so I didn't bother about that component. Regards Matti Am 13.07.2010 11:14, schrieb Beno?t Minisini: >>>> I have the same problem on ubuntu : >>>> ./configure --prefix=/usr >>>> everything goes ok during compiling but gambas3 can't start ! >>>> no project in /usr/bin/gambas3 >>> >>> I'm currently checking that... >>> >>> Unrelated, but did you answer my question about your database blob >>> problem? >> >> I have just compiled the last revision on Ubuntu 10.04 bits, and everything >> is fine. > > OK, I found: Webkit is needed by gambas3 IDE, you need to install Qt4 Webkit > development package. > > Regards, > From gambas at ...1... Tue Jul 13 21:33:55 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 13 Jul 2010 21:33:55 +0200 Subject: [Gambas-user] Path of Gambas3: bug? In-Reply-To: <4C3CAAF3.7040403@...221...> References: <4C3B7C30.6090006@...221...> <201007131114.49084.gambas@...1...> <4C3CAAF3.7040403@...221...> Message-ID: <201007132133.55302.gambas@...1...> > Yes, that was it! > Ok, now it runs. > Thanks, Beno?t. > > Wouldn't it be a good idea to mark the essential components on the > instructions page, or describe them in README? > For me, "Webkit" didn't sound like I would need that right now, so I didn't > bother about that component. > > Regards > Matti > I added a notice in the "compilation & installation" page on the wiki. I hope it will be enough. Note that these components are not actually "essential", as you may want to compile and install Gambas without the development environment. For example you could compile and install the interpreter on an ARM embedded platform, and use the IDE on a x86 PC. Regards, -- Beno?t Minisini From math.eber at ...221... Tue Jul 13 21:54:01 2010 From: math.eber at ...221... (Matti) Date: Tue, 13 Jul 2010 21:54:01 +0200 Subject: [Gambas-user] Path of Gambas3: bug? In-Reply-To: <201007132133.55302.gambas@...1...> References: <4C3B7C30.6090006@...221...> <201007131114.49084.gambas@...1...> <4C3CAAF3.7040403@...221...> <201007132133.55302.gambas@...1...> Message-ID: <4C3CC459.6060207@...221...> Fine, this is helpful! Am 13.07.2010 21:33, schrieb Beno?t Minisini: > > I added a notice in the "compilation & installation" page on the wiki. I hope > it will be enough. > From gambas at ...1... Wed Jul 14 00:09:11 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 14 Jul 2010 00:09:11 +0200 Subject: [Gambas-user] Callbacks in Gambas (was Re: Signal management) In-Reply-To: <4C3C5E4B.7040902@...1909...> References: <201007131349.59475.gambas@...1...> <4C3C5E4B.7040902@...1909...> Message-ID: <201007140009.11852.gambas@...1...> > > Nice thing. But now I have a further question: is it possible to > implement generic callbacks in Gambas? > I mean - many libraries have functions where you specify a callback to > be called, like the glib function g_signal_connect(); it would be nice > to implement them, even partly, without resorting to write a gambas > component. May be that by using libffi it is possible to implement them > fully, but even a simple event could do. My problem now is that using > ALSA, I must poll continuously to see if some event is coming in, > wasting a lot of CPU and losing precision. With a callback if would be > much simpler... > > I hope I have been clear enough. > > Regards, > Doriano > It is possible, I will trying to do that. There is a lot of magic involved behind that, hopefully handled by the libffi library. Alas, that library is not very well documented, so it will take a little time, and I'm not 100% sure it will work as expected. Regards, -- Beno?t Minisini From gambas at ...1... Wed Jul 14 00:10:24 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 14 Jul 2010 00:10:24 +0200 Subject: [Gambas-user] Couple of Minor Bugs in Gambas3 In-Reply-To: <201007080042.36080.gambas@...1...> References: <4C338270.1010008@...2382...> <201007080042.36080.gambas@...1...> Message-ID: <201007140010.24725.gambas@...1...> > > Hi all > > > > Beno?t, I'd like to report some minor issues in Gambas3 IDE: > > > > * IDE Main Window doesn't remember maximized state on each restart. > > Apparently it works with KDE4. Which desktop do you use? > > > * Tool windows (as debugging ones and search & replace) starts opening > > at 0,0 screen coordinates, which is cumbersome in Gnome desktops. May be > > it could be opened 25 or 30 px down to avoid overlapping with the main > > Gnome panel on top. > > Yep. I will see what I can do... > > Regards, The last problem has been fixed, but I have no idea what the cause of the first one is, unless the window manager used by your desktop. Regards, -- Beno?t Minisini From vlsinternet at ...626... Wed Jul 14 00:33:50 2010 From: vlsinternet at ...626... (Victor Senior) Date: Tue, 13 Jul 2010 18:03:50 -0430 Subject: [Gambas-user] Session (gb.web) example Message-ID: Can anyone kindly provide example code for Session (gb.web) Great work! With Gambas language. Thanks in advance, *Victor* From gambas at ...1... Wed Jul 14 00:43:51 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 14 Jul 2010 00:43:51 +0200 Subject: [Gambas-user] Session (gb.web) example In-Reply-To: References: Message-ID: <201007140043.51277.gambas@...1...> > Can anyone kindly provide example code for Session > (gb.web) > > Great work! With Gambas language. > > Thanks in advance, > *Victor* Maybe you should be more precise in your requirements. What don't you understand exactly? -- Beno?t Minisini From ea7dfh at ...2382... Wed Jul 14 00:51:06 2010 From: ea7dfh at ...2382... (EA7DFH) Date: Wed, 14 Jul 2010 00:51:06 +0200 Subject: [Gambas-user] Couple of Minor Bugs in Gambas3 In-Reply-To: <201007140010.24725.gambas@...1...> References: <4C338270.1010008@...2382...> <201007080042.36080.gambas@...1...> <201007140010.24725.gambas@...1...> Message-ID: <4C3CEDDA.20903@...2382...> El 14/07/10 00:10, Beno?t Minisini escribi?: >>> Hi all >>> >>> Beno?t, I'd like to report some minor issues in Gambas3 IDE: >>> >>> * IDE Main Window doesn't remember maximized state on each restart. >>> >> Apparently it works with KDE4. Which desktop do you use? >> >> >>> * Tool windows (as debugging ones and search & replace) starts opening >>> at 0,0 screen coordinates, which is cumbersome in Gnome desktops. May be >>> it could be opened 25 or 30 px down to avoid overlapping with the main >>> Gnome panel on top. >>> >> Yep. I will see what I can do... >> >> Regards, >> > The last problem has been fixed, but I have no idea what the cause of the > first one is, unless the window manager used by your desktop. > > Regards, > > May be I'm using two monitors, "extended desktop" (main monitor on the left and secondary on the right side). Whatever the screen that is used as the last working one, there is no difference. Gambas 3 always opens in the left one, trying to fill the screen, but not maximized. This configuration, which I'm using since years ago, is the same for Gambas2, and it works as expected. Never got this weird behavior, as in Gambas3. Ubuntu 10.04 Gnome 2.30.2 Anyway, thanks for the fix on tool windows. I will keep testing. Regards, -- Jesus Guard?n From gambas at ...1... Wed Jul 14 00:55:43 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 14 Jul 2010 00:55:43 +0200 Subject: [Gambas-user] Couple of Minor Bugs in Gambas3 In-Reply-To: <4C3CEDDA.20903@...2382...> References: <4C338270.1010008@...2382...> <201007140010.24725.gambas@...1...> <4C3CEDDA.20903@...2382...> Message-ID: <201007140055.43037.gambas@...1...> > May be I'm using two monitors, "extended desktop" (main monitor on the > left and secondary on the right side). Whatever the screen that is used > as the last working one, there is no difference. Gambas 3 always opens > in the left one, trying to fill the screen, but not maximized. > > This configuration, which I'm using since years ago, is the same for > Gambas2, and it works as expected. Never got this weird behavior, as in > Gambas3. > > Ubuntu 10.04 > Gnome 2.30.2 > > Anyway, thanks for the fix on tool windows. I will keep testing. > > Regards, Please do you have more details? The desktop environment, what you means by "trying to fill the screen, but not maximized"... Thanks in advance. -- Beno?t Minisini From ea7dfh at ...2382... Wed Jul 14 01:17:16 2010 From: ea7dfh at ...2382... (EA7DFH) Date: Wed, 14 Jul 2010 01:17:16 +0200 Subject: [Gambas-user] Couple of Minor Bugs in Gambas3 In-Reply-To: <201007140055.43037.gambas@...1...> References: <4C338270.1010008@...2382...> <201007140010.24725.gambas@...1...> <4C3CEDDA.20903@...2382...> <201007140055.43037.gambas@...1...> Message-ID: <4C3CF3FC.1000105@...2382...> El 14/07/10 00:55, Beno?t Minisini escribi?: >> May be I'm using two monitors, "extended desktop" (main monitor on the >> left and secondary on the right side). Whatever the screen that is used >> as the last working one, there is no difference. Gambas 3 always opens >> in the left one, trying to fill the screen, but not maximized. >> >> This configuration, which I'm using since years ago, is the same for >> Gambas2, and it works as expected. Never got this weird behavior, as in >> Gambas3. >> >> Ubuntu 10.04 >> Gnome 2.30.2 >> >> Anyway, thanks for the fix on tool windows. I will keep testing. >> >> Regards, >> > Please do you have more details? The desktop environment, what you means by > "trying to fill the screen, but not maximized"... > > Thanks in advance. > > Well, I will try to explain better: *I open Gambas3 *Open a project *Gambas GUI opens in my left screen at the last remembered size *Click maximize button and Gambas3 maximizes correctly filling my left screen (or the right, if moved to the right side) *Close gambas *Reopen gambas and the size is remembered (near full size of screen), but not its maximized state nor last screen used, just in case it was the right one. Maximize never happens. The desktop environment? *Gnome 2.30.2*, if I understand well what you mean. Hope this is clearer now. Regards, -- Jesus Guardon From jose2190 at ...626... Wed Jul 14 09:50:12 2010 From: jose2190 at ...626... (jose) Date: Wed, 14 Jul 2010 04:50:12 -0300 Subject: [Gambas-user] Problems with forms Message-ID: <1279093812.6561.3.camel@...2461...> Hello people of the community gambas. implemented some time ago gambas come in my projects, but I have found in the following situation: I need to send gamba's form data to a file.php, and get an answer from it. I have searched without documentation to successful outcomes. >From already thank you very much for your time ... Greetings from Argentina! From gambas at ...1... Wed Jul 14 13:56:53 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 14 Jul 2010 13:56:53 +0200 Subject: [Gambas-user] Callbacks in Gambas (was Re: Signal management) In-Reply-To: <201007140009.11852.gambas@...1...> References: <201007131349.59475.gambas@...1...> <4C3C5E4B.7040902@...1909...> <201007140009.11852.gambas@...1...> Message-ID: <201007141356.53815.gambas@...1...> > > Nice thing. But now I have a further question: is it possible to > > implement generic callbacks in Gambas? > > I mean - many libraries have functions where you specify a callback to > > be called, like the glib function g_signal_connect(); it would be nice > > to implement them, even partly, without resorting to write a gambas > > component. May be that by using libffi it is possible to implement them > > fully, but even a simple event could do. My problem now is that using > > ALSA, I must poll continuously to see if some event is coming in, > > wasting a lot of CPU and losing precision. With a callback if would be > > much simpler... > > > > I hope I have been clear enough. > > > > Regards, > > Doriano > > It is possible, I will trying to do that. There is a lot of magic involved > behind that, hopefully handled by the libffi library. > > Alas, that library is not very well documented, so it will take a little > time, and I'm not 100% sure it will work as expected. > > Regards, You should be happy with revision #3040. Regards, -- Beno?t Minisini From gambas at ...1... Wed Jul 14 14:12:38 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 14 Jul 2010 14:12:38 +0200 Subject: [Gambas-user] Callbacks in Gambas (was Re: Signal management) In-Reply-To: <201007141356.53815.gambas@...1...> References: <201007131349.59475.gambas@...1...> <201007140009.11852.gambas@...1...> <201007141356.53815.gambas@...1...> Message-ID: <201007141412.38822.gambas@...1...> > > > Nice thing. But now I have a further question: is it possible to > > > implement generic callbacks in Gambas? > > > I mean - many libraries have functions where you specify a callback to > > > be called, like the glib function g_signal_connect(); it would be nice > > > to implement them, even partly, without resorting to write a gambas > > > component. May be that by using libffi it is possible to implement them > > > fully, but even a simple event could do. My problem now is that using > > > ALSA, I must poll continuously to see if some event is coming in, > > > wasting a lot of CPU and losing precision. With a callback if would be > > > much simpler... > > > > > > I hope I have been clear enough. > > > > > > Regards, > > > Doriano > > > > It is possible, I will trying to do that. There is a lot of magic > > involved behind that, hopefully handled by the libffi library. > > > > Alas, that library is not very well documented, so it will take a little > > time, and I'm not 100% sure it will work as expected. > > > > Regards, > > You should be happy with revision #3040. > > Regards, Some little information about callbacks: If you want to use a Gambas function as a callback for an extern function, you just have to: 1) Declare the extern function argument that will receive the function address as "Pointer". 2) Use the Gambas function name when calling the extern function. Note that you can use any private or public Gambas function. You can even use non-static methods: but beware that the object the method applies on is captured by the callback, and released at the end of the program only. Waiting for your returns! Regards, -- Beno?t Minisini From doriano.blengino at ...1909... Wed Jul 14 17:37:00 2010 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Wed, 14 Jul 2010 17:37:00 +0200 Subject: [Gambas-user] Callbacks in Gambas (was Re: Signal management) In-Reply-To: <201007141412.38822.gambas@...1...> References: <201007131349.59475.gambas@...1...> <201007140009.11852.gambas@...1...> <201007141356.53815.gambas@...1...> <201007141412.38822.gambas@...1...> Message-ID: <4C3DD99C.9030101@...1909...> Beno?t Minisini ha scritto: >>>> Nice thing. But now I have a further question: is it possible to >>>> implement generic callbacks in Gambas? >>>> I mean - many libraries have functions where you specify a callback to >>>> be called, like the glib function g_signal_connect(); it would be nice >>>> to implement them, even partly, without resorting to write a gambas >>>> component. May be that by using libffi it is possible to implement them >>>> fully, but even a simple event could do. My problem now is that using >>>> ALSA, I must poll continuously to see if some event is coming in, >>>> wasting a lot of CPU and losing precision. With a callback if would be >>>> much simpler... >>>> >>>> I hope I have been clear enough. >>>> >>>> Regards, >>>> Doriano >>>> >>> It is possible, I will trying to do that. There is a lot of magic >>> involved behind that, hopefully handled by the libffi library. >>> >>> Alas, that library is not very well documented, so it will take a little >>> time, and I'm not 100% sure it will work as expected. >>> >>> Regards, >>> >> You should be happy with revision #3040. >> >> Regards, >> > Some little information about callbacks: > > If you want to use a Gambas function as a callback for an extern function, you > just have to: > > 1) Declare the extern function argument that will receive the function address > as "Pointer". > > 2) Use the Gambas function name when calling the extern function. > > Note that you can use any private or public Gambas function. You can even use > non-static methods: but beware that the object the method applies on is > captured by the callback, and released at the end of the program only. > So if I have: int setcallback(callback_t yourfunc, int tag); I must declare: EXTERN setcallback(afunc as pointer, tag as integer) as integer private sub mycallback(tag as integer) ... END ... setcallback(mycallback, 25) Is it right? > Waiting for your returns! > I must download this last revision of gambas, and compile it. I never tried to do it. How do I download it? Possibly without SVN? Can it work without QT4? I would prefer not to mess up my machine... (fanatic of "stable" repositories...). Can you advice? Thanks, Doriano From gambas at ...1... Wed Jul 14 18:16:24 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 14 Jul 2010 18:16:24 +0200 Subject: [Gambas-user] Callbacks in Gambas (was Re: Signal management) In-Reply-To: <4C3DD99C.9030101@...1909...> References: <201007131349.59475.gambas@...1...> <201007141412.38822.gambas@...1...> <4C3DD99C.9030101@...1909...> Message-ID: <201007141816.24536.gambas@...1...> > Beno?t Minisini ha scritto: > >>>> Nice thing. But now I have a further question: is it possible to > >>>> implement generic callbacks in Gambas? > >>>> I mean - many libraries have functions where you specify a callback to > >>>> be called, like the glib function g_signal_connect(); it would be nice > >>>> to implement them, even partly, without resorting to write a gambas > >>>> component. May be that by using libffi it is possible to implement > >>>> them fully, but even a simple event could do. My problem now is that > >>>> using ALSA, I must poll continuously to see if some event is coming > >>>> in, wasting a lot of CPU and losing precision. With a callback if > >>>> would be much simpler... > >>>> > >>>> I hope I have been clear enough. > >>>> > >>>> Regards, > >>>> Doriano > >>> > >>> It is possible, I will trying to do that. There is a lot of magic > >>> involved behind that, hopefully handled by the libffi library. > >>> > >>> Alas, that library is not very well documented, so it will take a > >>> little time, and I'm not 100% sure it will work as expected. > >>> > >>> Regards, > >> > >> You should be happy with revision #3040. > >> > >> Regards, > > > > Some little information about callbacks: > > > > If you want to use a Gambas function as a callback for an extern > > function, you just have to: > > > > 1) Declare the extern function argument that will receive the function > > address as "Pointer". > > > > 2) Use the Gambas function name when calling the extern function. > > > > Note that you can use any private or public Gambas function. You can even > > use non-static methods: but beware that the object the method applies on > > is captured by the callback, and released at the end of the program > > only. > > So if I have: > > int setcallback(callback_t yourfunc, int tag); > > I must declare: > > EXTERN setcallback(afunc as pointer, tag as integer) as integer > > private sub mycallback(tag as integer) > ... > END > ... > setcallback(mycallback, 25) > > Is it right? Yes. > > > Waiting for your returns! > > I must download this last revision of gambas, and compile it. I never > tried to do it. How do I download it? Possibly without SVN? Can it work > without QT4? I would prefer not to mess up my machine... (fanatic of > "stable" repositories...). > Can you advice? > > Thanks, > Doriano > Read the top of the "dowload" page on the web site to know how to get the latest trunk. Sorry, but you have to install svn, qt4, and all the development tools and package. This is explained on the wiki at the "compilation & installation" page. Logically, unless you have a very old distribution, all "stable" packages will be sufficient, and there is no reason you mess up your machine. I can't say more without knowing your distribution. Regards, -- Beno?t Minisini From Karl.Reinl at ...2345... Wed Jul 14 19:14:48 2010 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Wed, 14 Jul 2010 19:14:48 +0200 Subject: [Gambas-user] Callbacks in Gambas (was Re: Signal management) In-Reply-To: <201007141816.24536.gambas@...1...> References: <201007131349.59475.gambas@...1...> <201007141412.38822.gambas@...1...> <4C3DD99C.9030101@...1909...> <201007141816.24536.gambas@...1...> Message-ID: <1279127688.6476.5.camel@...40...> Am Mittwoch, den 14.07.2010, 18:16 +0200 schrieb Beno?t Minisini: > > Beno?t Minisini ha scritto: > > >>>> Nice thing. But now I have a further question: is it possible to > > >>>> implement generic callbacks in Gambas? > > >>>> I mean - many libraries have functions where you specify a callback to > > >>>> be called, like the glib function g_signal_connect(); it would be nice > > >>>> to implement them, even partly, without resorting to write a gambas > > >>>> component. May be that by using libffi it is possible to implement > > >>>> them fully, but even a simple event could do. My problem now is that > > >>>> using ALSA, I must poll continuously to see if some event is coming > > >>>> in, wasting a lot of CPU and losing precision. With a callback if > > >>>> would be much simpler... > > >>>> > > >>>> I hope I have been clear enough. > > >>>> > > >>>> Regards, > > >>>> Doriano > > >>> > > >>> It is possible, I will trying to do that. There is a lot of magic > > >>> involved behind that, hopefully handled by the libffi library. > > >>> > > >>> Alas, that library is not very well documented, so it will take a > > >>> little time, and I'm not 100% sure it will work as expected. > > >>> > > >>> Regards, > > >> > > >> You should be happy with revision #3040. > > >> > > >> Regards, > > > > > > Some little information about callbacks: > > > > > > If you want to use a Gambas function as a callback for an extern > > > function, you just have to: > > > > > > 1) Declare the extern function argument that will receive the function > > > address as "Pointer". > > > > > > 2) Use the Gambas function name when calling the extern function. > > > > > > Note that you can use any private or public Gambas function. You can even > > > use non-static methods: but beware that the object the method applies on > > > is captured by the callback, and released at the end of the program > > > only. > > > > So if I have: > > > > int setcallback(callback_t yourfunc, int tag); > > > > I must declare: > > > > EXTERN setcallback(afunc as pointer, tag as integer) as integer > > > > private sub mycallback(tag as integer) > > ... > > END > > ... > > setcallback(mycallback, 25) > > > > Is it right? > > Yes. > > > > > > Waiting for your returns! > > > > I must download this last revision of gambas, and compile it. I never > > tried to do it. How do I download it? Possibly without SVN? Can it work > > without QT4? I would prefer not to mess up my machine... (fanatic of > > "stable" repositories...). > > Can you advice? > > > > Thanks, > > Doriano > > > > Read the top of the "dowload" page on the web site to know how to get the > latest trunk. > > Sorry, but you have to install svn, qt4, and all the development tools and > package. This is explained on the wiki at the "compilation & installation" > page. Logically, unless you have a very old distribution, all "stable" > packages will be sufficient, and there is no reason you mess up your machine. > > I can't say more without knowing your distribution. > > Regards, > Salut, for svn, you can also go to "gambas homepage", click on "Browse Source code" or direct to http://gambas.svn.sourceforge.net/viewvc/gambas/?view=tar and there go to trunk and use "Download GNU tarball" -- Amicalement Charlie From gambas at ...1... Wed Jul 14 19:48:56 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 14 Jul 2010 19:48:56 +0200 Subject: [Gambas-user] Callbacks in Gambas (was Re: Signal management) In-Reply-To: <1279127688.6476.5.camel@...40...> References: <201007131349.59475.gambas@...1...> <201007141816.24536.gambas@...1...> <1279127688.6476.5.camel@...40...> Message-ID: <201007141948.56369.gambas@...1...> > Salut, > > for svn, you can also go to "gambas homepage", click on "Browse Source > code" > or direct to http://gambas.svn.sourceforge.net/viewvc/gambas/?view=tar > and there go to trunk and use "Download GNU tarball" I didn't know that! :-) -- Beno?t Minisini From doriano.blengino at ...1909... Wed Jul 14 20:06:10 2010 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Wed, 14 Jul 2010 20:06:10 +0200 Subject: [Gambas-user] Callbacks in Gambas (was Re: Signal management) In-Reply-To: <1279127688.6476.5.camel@...40...> References: <201007131349.59475.gambas@...1...> <201007141412.38822.gambas@...1...> <4C3DD99C.9030101@...1909...> <201007141816.24536.gambas@...1...> <1279127688.6476.5.camel@...40...> Message-ID: <4C3DFC92.2060901@...1909...> Charlie Reinl ha scritto: > Salut, > > for svn, you can also go to "gambas homepage", click on "Browse Source > code" > or direct to http://gambas.svn.sourceforge.net/viewvc/gambas/?view=tar > and there go to trunk and use "Download GNU tarball" > > Thank you - downloading now. Hope this is the right one! (revision #3040) :-) Well... it's *huge*... @Benoit: >>>> Waiting for your returns! >>>> >>> I must download this last revision of gambas, and compile it. I never >>> tried to do it. How do I download it? Possibly without SVN? Can it work >>> without QT4? I would prefer not to mess up my machine... (fanatic of >>> "stable" repositories...). >>> >>> >> Sorry, but you have to install svn, qt4, and all the development tools and >> package. This is explained on the wiki at the "compilation& installation" >> page. Logically, unless you have a very old distribution, all "stable" >> packages will be sufficient, and there is no reason you mess up your machine. >> >> I can't say more without knowing your distribution. >> About the distribution, I use Debian stable (which should have libtool 1.5.x and gtk 2.12.x). You see that it does not meet the requirements. I know that Debian is a little behind but, you know... you can't command to your heart... About my machine, every time I upgrade the x11 server I must poke again the configuration by hand, for example. Just now I am reading that for gambas3 it is no more required to downgrade libtool. But you see, when conflicts rise for several tools/libraries, one can get mad. This is why normally I prefer to stick to stable distributions - this euphoria about the "latest version" of everything makes me remember the windoze world where, for every problem one can report to someone else, the invariant response is "did you install the latest drivers? Service packs? Reinstall everything". Umph! I enjoyed some of my machines for years without upgrading anything. Seriously, someone around (not necessarily you, Benoit) should re-think a few things. Ok, let's go and see... Regards, Doriano From gambas at ...1... Wed Jul 14 20:11:30 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 14 Jul 2010 20:11:30 +0200 Subject: [Gambas-user] Callbacks in Gambas (was Re: Signal management) In-Reply-To: <4C3DFC92.2060901@...1909...> References: <201007131349.59475.gambas@...1...> <1279127688.6476.5.camel@...40...> <4C3DFC92.2060901@...1909...> Message-ID: <201007142011.30618.gambas@...1...> > Charlie Reinl ha scritto: > > Salut, > > > > for svn, you can also go to "gambas homepage", click on "Browse Source > > code" > > or direct to http://gambas.svn.sourceforge.net/viewvc/gambas/?view=tar > > and there go to trunk and use "Download GNU tarball" > > Thank you - downloading now. Hope this is the right one! (revision > #3040) :-) > Well... it's *huge*... > > @Benoit: > >>>> Waiting for your returns! > >>> > >>> I must download this last revision of gambas, and compile it. I never > >>> tried to do it. How do I download it? Possibly without SVN? Can it work > >>> without QT4? I would prefer not to mess up my machine... (fanatic of > >>> "stable" repositories...). > >> > >> Sorry, but you have to install svn, qt4, and all the development tools > >> and package. This is explained on the wiki at the "compilation& > >> installation" page. Logically, unless you have a very old distribution, > >> all "stable" packages will be sufficient, and there is no reason you > >> mess up your machine. > >> > >> I can't say more without knowing your distribution. > > About the distribution, I use Debian stable (which should have libtool > 1.5.x and gtk 2.12.x). You see that it does not meet the requirements. I > know that Debian is a little behind but, you know... you can't command > to your heart... > > About my machine, every time I upgrade the x11 server I must poke again > the configuration by hand, for example. > > Just now I am reading that for gambas3 it is no more required to > downgrade libtool. But you see, when conflicts rise for several > tools/libraries, one can get mad. This is why normally I prefer to stick > to stable distributions - this euphoria about the "latest version" of > everything makes me remember the windoze world where, for every problem > one can report to someone else, the invariant response is "did you > install the latest drivers? Service packs? Reinstall everything". Umph! > I enjoyed some of my machines for years without upgrading anything. > Seriously, someone around (not necessarily you, Benoit) should re-think > a few things. Ok, let's go and see... > > Regards, > Doriano > No, libtool 2.x is mandatory now, to compile both version of Gambas. Your GTK+ version should be enough, but I'm not sure (GTK+ is a moving unfinished target!) Regards, -- Beno?t Minisini From doriano.blengino at ...1909... Wed Jul 14 20:23:31 2010 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Wed, 14 Jul 2010 20:23:31 +0200 Subject: [Gambas-user] Callbacks in Gambas (was Re: Signal management) In-Reply-To: <201007142011.30618.gambas@...1...> References: <201007131349.59475.gambas@...1...> <1279127688.6476.5.camel@...40...> <4C3DFC92.2060901@...1909...> <201007142011.30618.gambas@...1...> Message-ID: <4C3E00A3.9040503@...1909...> Beno?t Minisini ha scritto: >> >> Just now I am reading that for gambas3 it is no more required to >> downgrade libtool. > No, libtool 2.x is mandatory now, to compile both version of Gambas. Your GTK+ > version should be enough, but I'm not sure (GTK+ is a moving unfinished > target!) > Yes - I wrote "no more required to downgrade". No problem to upgrade to 2.x, unless there is some other software which requires <2.x! The problem right now is different... this download does not want to finish (277 Mib so far) and I want to go home! :-) Ah ah ah... stupid life of computer lovers... Regards, Doriano From gambas at ...1... Wed Jul 14 20:29:54 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 14 Jul 2010 20:29:54 +0200 Subject: [Gambas-user] Callbacks in Gambas (was Re: Signal management) In-Reply-To: <4C3E00A3.9040503@...1909...> References: <201007131349.59475.gambas@...1...> <201007142011.30618.gambas@...1...> <4C3E00A3.9040503@...1909...> Message-ID: <201007142029.54289.gambas@...1...> > Beno?t Minisini ha scritto: > >> Just now I am reading that for gambas3 it is no more required to > >> downgrade libtool. > > > > No, libtool 2.x is mandatory now, to compile both version of Gambas. Your > > GTK+ version should be enough, but I'm not sure (GTK+ is a moving > > unfinished target!) > > Yes - I wrote "no more required to downgrade". No problem to upgrade to > 2.x, unless there is some other software which requires <2.x! > > The problem right now is different... this download does not want to > finish (277 Mib so far) and I want to go home! :-) > Ah ah ah... stupid life of computer lovers... > > Regards, > Doriano > That size is not normal. The compressed source archive should be smaller than Gambas 2, which is 12 MB. What are you downloading ?! -- Beno?t Minisini From Karl.Reinl at ...2345... Wed Jul 14 21:24:34 2010 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Wed, 14 Jul 2010 21:24:34 +0200 Subject: [Gambas-user] Callbacks in Gambas (was Re: Signal management) In-Reply-To: <201007142029.54289.gambas@...1...> References: <201007131349.59475.gambas@...1...> <201007142011.30618.gambas@...1...> <4C3E00A3.9040503@...1909...> <201007142029.54289.gambas@...1...> Message-ID: <1279135474.6476.10.camel@...40...> Am Mittwoch, den 14.07.2010, 20:29 +0200 schrieb Beno?t Minisini: > > Beno?t Minisini ha scritto: > > >> Just now I am reading that for gambas3 it is no more required to > > >> downgrade libtool. > > > > > > No, libtool 2.x is mandatory now, to compile both version of Gambas. Your > > > GTK+ version should be enough, but I'm not sure (GTK+ is a moving > > > unfinished target!) > > > > Yes - I wrote "no more required to downgrade". No problem to upgrade to > > 2.x, unless there is some other software which requires <2.x! > > > > The problem right now is different... this download does not want to > > finish (277 Mib so far) and I want to go home! :-) > > Ah ah ah... stupid life of computer lovers... > > > > Regards, > > Doriano > > > > That size is not normal. The compressed source archive should be smaller than > Gambas 2, which is 12 MB. > > What are you downloading ?! > Salut, by the "Download GNU tarball" way i'v got 21,7 MB. I think he made a mistake or is counting also the REST. -- Amicalement Charlie From doriano.blengino at ...1909... Thu Jul 15 07:54:19 2010 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Thu, 15 Jul 2010 07:54:19 +0200 Subject: [Gambas-user] Callbacks in Gambas (was Re: Signal management) In-Reply-To: <1279135474.6476.10.camel@...40...> References: <201007131349.59475.gambas@...1...> <201007142011.30618.gambas@...1...> <4C3E00A3.9040503@...1909...> <201007142029.54289.gambas@...1...> <1279135474.6476.10.camel@...40...> Message-ID: <4C3EA28B.4050000@...1909...> Charlie Reinl ha scritto: > Am Mittwoch, den 14.07.2010, 20:29 +0200 schrieb Beno?t Minisini: > >>> Beno?t Minisini ha scritto: >>> >>> The problem right now is different... this download does not want to >>> finish (277 Mib so far) and I want to go home! :-) >>> >>> >> That size is not normal. The compressed source archive should be smaller than >> Gambas 2, which is 12 MB. >> >> What are you downloading ?! >> >> > Salut, > > by the "Download GNU tarball" way i'v got 21,7 MB. > I think he made a mistake or is counting also the REST. > > I clicked on the link kindly donated by you... http://gambas.svn.sourceforge.net/viewvc/gambas/?view=tar and the download immediately started with the name "gambas.tar.gz". This seemed a little strange to me, because you told me to "go to trunk and use Download GNU tarball". After a while, I realized it was a huge archive, and this was the second strange thing. While waiting for the never finished download (I had to give up), I started to explore the site, and now all is brightly clear to me. That button "GNU tarball" creates an archive on the fly, and sends it to an http stream. Something must have go wrong. The speed was oscillating from 60-70-140-180 Kib/s, so it seemed to me that things were normal, even if strange. I was thinking "what the heck Benoit has put in this gambas3?". :-) May be that I was downloading the entire SVN (good to do a full backup...). Well, now I know that I must expect something between 12-21 Mib. I will try again tomorrow. Regards, Doriano From gambas at ...1... Thu Jul 15 09:26:33 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 15 Jul 2010 09:26:33 +0200 Subject: [Gambas-user] Callbacks in Gambas (was Re: Signal management) In-Reply-To: <4C3EA28B.4050000@...1909...> References: <201007131349.59475.gambas@...1...> <1279135474.6476.10.camel@...40...> <4C3EA28B.4050000@...1909...> Message-ID: <201007150926.33606.gambas@...1...> > Charlie Reinl ha scritto: > > Am Mittwoch, den 14.07.2010, 20:29 +0200 schrieb Beno?t Minisini: > >>> Beno?t Minisini ha scritto: > >>> > >>> The problem right now is different... this download does not want to > >>> finish (277 Mib so far) and I want to go home! :-) > >> > >> That size is not normal. The compressed source archive should be smaller > >> than Gambas 2, which is 12 MB. > >> > >> What are you downloading ?! > > > > Salut, > > > > by the "Download GNU tarball" way i'v got 21,7 MB. > > I think he made a mistake or is counting also the REST. > > I clicked on the link kindly donated by you... > http://gambas.svn.sourceforge.net/viewvc/gambas/?view=tar > and the download immediately started with the name "gambas.tar.gz". This > seemed a little strange to me, because you told me to "go to trunk and > use Download GNU tarball". After a while, I realized it was a huge > archive, and this was the second strange thing. While waiting for the > never finished download (I had to give up), I started to explore the > site, and now all is brightly clear to me. That button "GNU tarball" > creates an archive on the fly, and sends it to an http stream. Something > must have go wrong. The speed was oscillating from 60-70-140-180 Kib/s, > so it seemed to me that things were normal, even if strange. I was > thinking "what the heck Benoit has put in this gambas3?". :-) May be > that I was downloading the entire SVN (good to do a full backup...). > > Well, now I know that I must expect something between 12-21 Mib. I will > try again tomorrow. > > Regards, > Doriano > Or you can install svn and do a checkout. *That* works! -- Beno?t Minisini From felix.lechner at ...626... Fri Jul 16 10:16:48 2010 From: felix.lechner at ...626... (Felix Lechner) Date: Fri, 16 Jul 2010 01:16:48 -0700 Subject: [Gambas-user] Bug in DateChooser when used with ShowModal? (gambas 2.20) Message-ID: Hello, DateChooser does not allow me to select a date in most cases when its form was opened with ShowModal. Here are the specifics: The calendar does not react to clicks when its form is opened with ShowModal and a lower window is still open. Other buttons in the same window work fine. The problem does not occur when the lower window is closed with ME.Close() before the call to ShowModal(). For convenience, I attached a small gambas project---with two buttons opening same the window in those two ways. I use gambas 2.20 from the Madness Mike's PPA on Launchpad under Ubuntu 10.04 lucid. It is available at https://launchpad.net/~madnessmike/+archive/gambas. My kernel was patched for a problem with Intel 845G video. Did not try on stock kernel, but would be surprised if that would make a difference. 'uname -a' output is 2.6.34-v9patch-generic #2-Ubuntu SMP Wed Jun 9 04:13:19 UTC 2010 i686 GNU/Linux. My apologies if I am reporting a known problem. I searched the mailing list but could not find any relevant info about it. Sincerely, Felix Lechner -------------- next part -------------- A non-text attachment was scrubbed... Name: test_datechooser.tar.gz Type: application/x-gzip Size: 9247 bytes Desc: not available URL: From Gambas at ...1950... Fri Jul 16 15:40:34 2010 From: Gambas at ...1950... (Caveat) Date: Fri, 16 Jul 2010 15:40:34 +0200 Subject: [Gambas-user] Problems with forms In-Reply-To: <1279093812.6561.3.camel@...2461...> References: <1279093812.6561.3.camel@...2461...> Message-ID: <1279287634.3258.2.camel@...2413...> Hi Jose I don't really understand your question, sorry. Can you give some more details? Do you need to send data to a (php-based) website and get a response back? Generate a php file from some data in a Gambas form? Please be more specific and I'm sure someone much smarter than me will be able to help you ;-) Regards, Caveat On Wed, 2010-07-14 at 04:50 -0300, jose wrote: > Hello people of the community gambas. > implemented some time ago gambas come in my projects, but I have found > in the following situation: > > I need to send gamba's form data to a file.php, and get an answer from > it. > > I have searched without documentation to successful outcomes. > > >From already thank you very much for your time ... > Greetings from Argentina! > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From jose2190 at ...626... Fri Jul 16 20:09:25 2010 From: jose2190 at ...626... (jose) Date: Fri, 16 Jul 2010 15:09:25 -0300 Subject: [Gambas-user] Problems with forms In-Reply-To: <1279287634.3258.2.camel@...2413...> References: <1279093812.6561.3.camel@...2461...> <1279287634.3258.2.camel@...2413...> Message-ID: <1279303765.1985.5.camel@...2461...> Sorry, actually speak and write well in Spanish, my English is not so good. I need to send data from 'shrimp' to a php file, and receive data from the php file. I was reading a lot about shrimp, but the documentation is not very extensive. >From already thank you very much. El vie, 16-07-2010 a las 15:40 +0200, Caveat escribi?: > Hi Jose > > I don't really understand your question, sorry. > > Can you give some more details? Do you need to send data to a > (php-based) website and get a response back? Generate a php file from > some data in a Gambas form? > > Please be more specific and I'm sure someone much smarter than me will > be able to help you ;-) > > Regards, > Caveat > > > On Wed, 2010-07-14 at 04:50 -0300, jose wrote: > > Hello people of the community gambas. > > implemented some time ago gambas come in my projects, but I have found > > in the following situation: > > > > I need to send gamba's form data to a file.php, and get an answer from > > it. > > > > I have searched without documentation to successful outcomes. > > > > >From already thank you very much for your time ... > > Greetings from Argentina! > > > > > > ------------------------------------------------------------------------------ > > This SF.net email is sponsored by Sprint > > What will you do first with EVO, the first 4G phone? > > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From doriano.blengino at ...1909... Sat Jul 17 19:30:45 2010 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Sat, 17 Jul 2010 19:30:45 +0200 Subject: [Gambas-user] "gbr3: no project file in '/usr/local/bin/gambas3.gambas'" Message-ID: <4C41E8C5.7050204@...1909...> Hi, went to gambas.svn.sourceforge.net, hit the "Download GNU tarball", this time it worked, put all on the usb stick and copied it to the home machine. Updated libtool and autoconf/automake, and managed to compile. A few file contained a single line "link ../blahblahblah" which gave errors. I presume it's m4 stuff and I don't know why it didn't work, anyway I corrected by hand and obtained a good compilation. But when I try to launch gambas3.gambas I obtain "no project file ....". The same happens if by hand I issue things like "gbr3 /usr/local/bin/gambas3.gambas" and so on. I tried to debug gbx3/gbr3, but got lost. There was a thread on this subject, but I can not see it right now. What is the problem? Regards, Doriano From santiago_j_oberto at ...1877... Sat Jul 17 19:41:55 2010 From: santiago_j_oberto at ...1877... (Santiago Oberto) Date: Sat, 17 Jul 2010 14:41:55 -0300 Subject: [Gambas-user] doubts about how to use xmlreader Message-ID: <1279388515.3106.16.camel@...40...> Good morning, I am trying to prase an xml which has many attribute in eache element. I have been surfing and reading the few documentation that exists but I couldnt figure it out. I would like to read this xml file and store in an array each attribute of each element. If someone could give a hand and a clue of how to keep going, I would it appreciate it. Thank you so much in advanced. Santiago. Here is an example of the xml file i want to read (i tried and i was able to write a similar xml file with xmlwriter): From wdahn at ...1000... Sat Jul 17 19:47:40 2010 From: wdahn at ...1000... (Werner) Date: Sun, 18 Jul 2010 01:47:40 +0800 Subject: [Gambas-user] "gbr3: no project file in '/usr/local/bin/gambas3.gambas'" In-Reply-To: <4C41E8C5.7050204@...1909...> References: <4C41E8C5.7050204@...1909...> Message-ID: <4C41ECBC.2000806@...1000...> On 18/07/10 01:30, Doriano Blengino wrote: > Hi, > > went to gambas.svn.sourceforge.net, hit the "Download GNU tarball", this > time it worked, put all on the usb stick and copied it to the home > machine. Updated libtool and autoconf/automake, and managed to compile. > A few file contained a single line "link ../blahblahblah" which gave > errors. I presume it's m4 stuff and I don't know why it didn't work, > anyway I corrected by hand and obtained a good compilation. > > But when I try to launch gambas3.gambas I obtain "no project file ....". > The same happens if by hand I issue things like "gbr3 > /usr/local/bin/gambas3.gambas" and so on. I tried to debug gbx3/gbr3, > but got lost. > > There was a thread on this subject, but I can not see it right now. What > is the problem? > > Regards, > Doriano > The boss said we need qt4 webkit +devel. It worked for Matti. Werner From girardhenri at ...67... Sat Jul 17 22:41:58 2010 From: girardhenri at ...67... (girardhenri at ...67...) Date: Sat, 17 Jul 2010 22:41:58 +0200 Subject: [Gambas-user] "gbr3: no project filein '/usr/local/bin/gambas3.gambas'" In-Reply-To: <4C41ECBC.2000806@...1000...> References: <4C41E8C5.7050204@...1909...> <4C41ECBC.2000806@...1000...> Message-ID: true it worked for me too ... should be on gambas web site for some time : Till users get over it ! -------------------------------------------------- From: "Werner" Sent: Saturday, July 17, 2010 7:47 PM To: Subject: Re: [Gambas-user] "gbr3: no project filein'/usr/local/bin/gambas3.gambas'"> On 18/07/10 01:30, Doriano Blengino wrote: >> Hi, >> >> went to gambas.svn.sourceforge.net, hit the "Download GNU tarball", this >> time it worked, put all on the usb stick and copied it to the home >> machine. Updated libtool and autoconf/automake, and managed to compile. >> A few file contained a single line "link ../blahblahblah" which gave >> errors. I presume it's m4 stuff and I don't know why it didn't work, >> anyway I corrected by hand and obtained a good compilation. >> >> But when I try to launch gambas3.gambas I obtain "no project file ....". >> The same happens if by hand I issue things like "gbr3 >> /usr/local/bin/gambas3.gambas" and so on. I tried to debug gbx3/gbr3, >> but got lost. >> >> There was a thread on this subject, but I can not see it right now. What >> is the problem? >> >> Regards, >> Doriano >> > The boss said we need qt4 webkit +devel. It worked for Matti. > > Werner > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From doriano.blengino at ...1909... Sun Jul 18 09:37:38 2010 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Sun, 18 Jul 2010 09:37:38 +0200 Subject: [Gambas-user] "gbr3: no project filein '/usr/local/bin/gambas3.gambas'" In-Reply-To: References: <4C41E8C5.7050204@...1909...> <4C41ECBC.2000806@...1000...> Message-ID: <4C42AF42.3050604@...1909...> girardhenri at ...67... ha scritto: > true it worked for me too ... > should be on gambas web site for some time : Till users get over it ! > > >> The boss said we need qt4 webkit +devel. It worked for Matti. >> >> Werner Thanks for the information. But qt4-webkit is installed, and I don't see any qt4-webkit-devel or so - only qt4 devel. Moreover, there is no complaint about missing libraries like webkit. Can't understand what webkit has to do with gbx3 - there is no mention anywhere in gbx sources about webkit, nor qt. Strange... I will try to search better. Regards, Doriano From gambas at ...1... Sun Jul 18 12:58:26 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 18 Jul 2010 12:58:26 +0200 Subject: [Gambas-user] =?utf-8?q?=22gbr3=3A_no_project=09filein=09=27/usr/?= =?utf-8?q?local/bin/gambas3=2Egambas=27_=22?= In-Reply-To: <4C42AF42.3050604@...1909...> References: <4C41E8C5.7050204@...1909...> <4C42AF42.3050604@...1909...> Message-ID: <201007181258.26951.gambas@...1...> > girardhenri at ...67... ha scritto: > > true it worked for me too ... > > should be on gambas web site for some time : Till users get over it ! > > > >> The boss said we need qt4 webkit +devel. It worked for Matti. > >> > >> Werner > > Thanks for the information. > > But qt4-webkit is installed, and I don't see any qt4-webkit-devel or so > - only qt4 devel. Moreover, there is no complaint about missing > libraries like webkit. Can't understand what webkit has to do with gbx3 > - there is no mention anywhere in gbx sources about webkit, nor qt. > Strange... I will try to search better. > > Regards, > Doriano > webkit is used by the gb.qt4.webkit component which is used by the Gambas IDE. If you don't install it, gbx3 doesn't caret, but you won't be able to compile the IDE. Anyway, you must provide the full output of the './configure -C', 'make', and 'make install' process so that we can help you! Regards, -- Beno?t Minisini From doriano.blengino at ...1909... Sun Jul 18 15:48:53 2010 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Sun, 18 Jul 2010 15:48:53 +0200 Subject: [Gambas-user] "gbr3: no project filein '/usr/local/bin/gambas3.gambas' " In-Reply-To: <201007181258.26951.gambas@...1...> References: <4C41E8C5.7050204@...1909...> <4C42AF42.3050604@...1909...> <201007181258.26951.gambas@...1...> Message-ID: <4C430645.20300@...1909...> Beno?t Minisini ha scritto: > webkit is used by the gb.qt4.webkit component which is used by the Gambas IDE. > If you don't install it, gbx3 doesn't caret, but you won't be able to compile > the IDE. > > Anyway, you must provide the full output of the './configure -C', 'make', and > 'make install' process so that we can help you! > > (2nd message - the first one was too long) Ok. The first time I compiled, I found a few file containing "link ../blahblah". I think those file should have been mangled by m4 or other diabolic tools, but eventually it didn't happen. Instead of trying to understand, I simply corrected them (for example, a .h file containing "link ../gb.h" was modified in "#include "../gb.h"). May be this is important, may be not. Anyway, after a few tries, the compilation succeeded, and a "make install" copied some files in relevant places. In particular, /usr/local/bin now contains: lrwxrwxrwx 1 root root 14 17 lug 16:25 gambas3 -> gambas3.gambas* -rwxr-xr-x 1 root root 1766942 18 lug 11:13 gambas3.gambas* -rwxr-xr-x 1 root root 82596 18 lug 13:41 gba3* -rwxr-xr-x 1 root root 396676 18 lug 13:41 gbc3* -rwxr-xr-x 1 root root 77891 18 lug 13:41 gbi3* lrwxrwxrwx 1 root root 4 18 lug 11:12 gbr3 -> gbx3* lrwxrwxrwx 1 root root 11 17 lug 16:25 gbs3 -> gbs3.gambas* -rwxr-xr-x 1 root root 6743 18 lug 11:13 gbs3.gambas* lrwxrwxrwx 1 root root 11 17 lug 16:25 gbw3 -> gbs3.gambas* -rwxr-xr-x 1 root root 1276342 18 lug 13:41 gbx3* This leaded me to think that the compilation was almost ok. In particular, you can notice the presence of gambas3.gambas, which is generated by the compilation process, I suppose. After that, a "gambas3" command replies with "gbr3: no project in ...". Asking on this list, I was replied that webkit is needed. It was installed, but it was too old. Upgraded it, and recompiled. Still the same error. Debugging a little the gbr3 executable, I discovered that it can not find the symbol ".startup" in the archive (but other "files" exist in that archive). Ok, go for the "normal" way. I attach the output of the compilation process. The compilation process breaks badly because of those "link ../blahblah". If you can tell me how to solve this problem (I have no idea), I can clean everything and start again. The ./configure command recreates some files, with those "link ../...", so the compilation fails. The log was generated by: ( ./configure -C; make; make install ) 2>&1 >all-log.txt configure: WARNING: Unable to find file: libintl.so configure: WARNING: This library may be located inside the system C library configure: WARNING: Unable to find file: libiconv.so configure: WARNING: This library may be located inside the system C library configure: WARNING: Unable to find file: bzlib.h configure: WARNING: Unable to find file: libbz2.so configure: WARNING: bzlib2 compression is disabled configure: WARNING: Unable to find file: mysql.h configure: WARNING: Unable to find file: my_config.h configure: WARNING: MySQL driver is disabled configure: WARNING: Unable to find file: sql.h configure: WARNING: Unable to find file: sqlext.h configure: WARNING: Unable to find file: sqltypes.h configure: WARNING: Unable to find file: libodbc.so configure: WARNING: ODBC driver is disabled configure: WARNING: Unable to find file: libpq-fe.h configure: WARNING: Unable to find file: postgres.h configure: WARNING: Unable to find file: pg_type.h configure: WARNING: Unable to find file: libpq.so configure: WARNING: PostgreSQL driver is disabled configure: WARNING: Unable to find file: sqlite.h configure: WARNING: Unable to find file: libsqlite.so configure: WARNING: SQLite 2 driver is disabled configure: WARNING: Unable to find file: sqlite3.h configure: WARNING: Unable to find file: libsqlite3.so configure: WARNING: SQLite 3 driver is disabled configure: WARNING: Unable to find file: libfbclient.so configure: WARNING: firebird driver is disabled configure: WARNING: Advanced networking component is disabled configure: WARNING: Unable to find file: pcre.h configure: WARNING: Unable to find file: libpcre.so configure: WARNING: Perl Compatible Regular Expression component is disabled configure: WARNING: SDL is disabled configure: WARNING: SDL sound is disabled configure: WARNING: XML parser component is disabled configure: WARNING: XSLT/XML parser component is disabled configure: WARNING: Video For Linux conversion library is disabled configure: WARNING: Video For Linux component is disabled configure: WARNING: GTK+ toolkit is disabled configure: WARNING: GTKglext toolkit is disabled configure: WARNING: Unable to find file: glew.h configure: WARNING: Unable to find file: libGLEW.so configure: WARNING: OpenGL support component is disabled configure: WARNING: Desktop-neutral routines is disabled configure: WARNING: Gnome desktop routines is disabled configure: WARNING: Poppler PDF library is disabled configure: WARNING: Image routines based on the Imlib2 library is disabled configure: WARNING: DBUS management is disabled Makefile:565: *** missing separator. Stop. make[4]: *** [all-recursive] Error 1 make[3]: *** [all-recursive] Error 1 make[2]: *** [all] Error 2 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 Makefile:565: *** missing separator. Stop. make[2]: *** [install-recursive] Error 1 make[1]: *** [install-recursive] Error 1 make: *** [install-recursive] Error 1 The last error, "Makefile:565 missing separator" indicates a line in Makefile which contains "link ../component.am", but consider, I did succed in compile everything. Given my quick hack modifications, I would have expected some sort of error, but not the one related to "no project file...". Regards, Doriano -------------- next part -------------- A non-text attachment was scrubbed... Name: all-log.txt.gz Type: application/x-tgz Size: 6333 bytes Desc: not available URL: From rterry at ...1946... Mon Jul 19 07:02:09 2010 From: rterry at ...1946... (richard terry) Date: Mon, 19 Jul 2010 15:02:09 +1000 Subject: [Gambas-user] Case statement quesiton Message-ID: <201007191502.09243.rterry@...1946...> Select Case BMI Case < 25 This dosn't seem to work? can't one use less than, greater than, <> etc? Regards Richard From dosida at ...626... Mon Jul 19 08:20:49 2010 From: dosida at ...626... (Dimitris Anogiatis) Date: Mon, 19 Jul 2010 00:20:49 -0600 Subject: [Gambas-user] Case statement quesiton In-Reply-To: <201007191502.09243.rterry@...1946...> References: <201007191502.09243.rterry@...1946...> Message-ID: Hey Richard, Perhaps this might work for you Select Case BMI < 25 Case True Print "BMI is Less than 25" Case False Print "BMI is MORE than 25" Case Else End Select or you could also set ranges Select Case BMI Case 1 to 24 Print "BMI is Less than 25" Case 25 Print "BMI is 25" Case 26 to 35 Print "BMI is MORE than 25" Case Else End Select Depending on your code's structure and style either one of those workarounds will work. I tested them myself using Gambas2 2.19 on Linux Mint 9 Regards, Dimitris On Sun, Jul 18, 2010 at 11:02 PM, richard terry wrote: > Select Case BMI > Case < 25 > > This dosn't seem to work? can't one use less than, greater than, <> etc? > > Regards > > Richard > > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From rterry at ...1946... Mon Jul 19 09:06:24 2010 From: rterry at ...1946... (richard terry) Date: Mon, 19 Jul 2010 17:06:24 +1000 Subject: [Gambas-user] Case statement quesiton In-Reply-To: References: <201007191502.09243.rterry@...1946...> Message-ID: <201007191706.24605.rterry@...1946...> On Monday 19 July 2010 16:20:49 Dimitris Anogiatis wrote: > Hey Richard, > > Perhaps this might work for you > > Select Case BMI < 25 > Case True > Print "BMI is Less than 25" > Case False > Print "BMI is MORE than 25" > Case Else > End Select > > or you could also set ranges > > Select Case BMI > Case 1 to 24 > Print "BMI is Less than 25" > Case 25 > Print "BMI is 25" > Case 26 to 35 > Print "BMI is MORE than 25" > Case Else > End Select > > Depending on your code's structure and style either one of those > workarounds will work. > I tested them myself using Gambas2 2.19 on Linux Mint 9 > > Regards, > Dimitris > > On Sun, Jul 18, 2010 at 11:02 PM, richard terry wrote: > > Select Case BMI > > Case < 25 > > > > This dosn't seem to work? can't one use less than, greater than, <> etc? > > > > Regards > > > > Richard > > > > > > > > > > ------------------------------------------------------------------------- > >----- This SF.net email is sponsored by Sprint > > What will you do first with EVO, the first 4G phone? > > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > > _______________________________________________ > > 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 Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > good idea's I'll try these tomorrow. REgards richard From gambas at ...1... Mon Jul 19 12:13:27 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 19 Jul 2010 12:13:27 +0200 Subject: [Gambas-user] Case statement quesiton In-Reply-To: <201007191502.09243.rterry@...1946...> References: <201007191502.09243.rterry@...1946...> Message-ID: <201007191213.27120.gambas@...1...> > Select Case BMI > Case < 25 > > This dosn't seem to work? can't one use less than, greater than, <> etc? > > Regards > > Richard > Look in the documentation: you must write CASE Expr1 TO Expr2 In revision #3046, you can even write CASE TO 25 to do what you want. Regards, -- Beno?t Minisini From gambas at ...1... Mon Jul 19 12:24:05 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 19 Jul 2010 12:24:05 +0200 Subject: [Gambas-user] Bug in DateChooser when used with ShowModal? (gambas 2.20) In-Reply-To: References: Message-ID: <201007191224.05660.gambas@...1...> > Hello, > > DateChooser does not allow me to select a date in most cases when its form > was opened with ShowModal. > > Here are the specifics: The calendar does not react to clicks when its > form is opened with ShowModal and a lower window is still open. Other > buttons in the same window work fine. The problem does not occur when the > lower window is closed with ME.Close() before the call to ShowModal(). > > For convenience, I attached a small gambas project---with two buttons > opening same the window in those two ways. > > I use gambas 2.20 from the Madness Mike's PPA on Launchpad under Ubuntu > 10.04 lucid. It is available at > https://launchpad.net/~madnessmike/+archive/gambas. > > My kernel was patched for a problem with Intel 845G video. Did not try on > stock kernel, but would be surprised if that would make a difference. > 'uname -a' output is 2.6.34-v9patch-generic #2-Ubuntu SMP Wed Jun 9 > 04:13:19 UTC 2010 i686 GNU/Linux. > > My apologies if I am reporting a known problem. I searched the mailing > list but could not find any relevant info about it. > > Sincerely, > Felix Lechner Hu hu. This is a problem with gb.gtk only, I will look at it... -- Beno?t Minisini From gambas at ...1... Mon Jul 19 15:53:09 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 19 Jul 2010 15:53:09 +0200 Subject: [Gambas-user] Support for DBus in Gambas 3 Message-ID: <201007191553.09658.gambas@...1...> Hi, The DBus system is now (almost) fully supported in Gambas 3, by the gb.dbus component. What is DBus ? It is a "message bus system", i.e. a little program that can pass different kinds of messages between applications. It's like the old KDE 3 DCOP system. For more information, see http://dbus.freedesktop.org. There are normally two kind of bus running on your machine: the "system bus", that is global and unique, and the "session bus", that is launched for each connected user. gb.dbus allows you to: (1) Call any method or property exported by any application that is connected with the bus. Example: DBus["org.kde.kmail"]["/kmail/kmail_mainwindow_1"].geometry = [0, 24, 1024, 768] The syntax is: - DBus[][].() - DBus[][]. can begin with "system://" or "session://" to define which bus you want to connect with. By default you connect with the session bus. (2) Catch any signal raised by any interface. Example: MySignal = New DBusSignal(DBus.System, "org.freedesktop.Hal.Manager", "DeviceAdded") As "DBusSignal" ... Public Sub DBusSignal_Signal(Signal As String, Arguments As Variant[]) ... End (3) Export any Gambas object to DBus, provided that the object inherits DBusObject. Example: Dim hObject As MyClass ' MyClass inherits DBusObject DBus.Register(hObject, "/object/path") The Gambas object is attached to an "object path", because all objects exposed to the DBus by your application is like a hierarchical file system. What is exported? - Public methods whose name has no underscore inside, and whose arguments and return type can be converted to a DBus datatype. - Public properties whose name has no underscore inside, and whose type can be converted to a DBus datatype. As soon as you register at least one object, your application appears on the bus with the name "org.gambas.". All these methods and properties are exported with an interface name named "org.gambas..". You can test that with the DBus explorer example, or the qdbusviewer Qt4 program. What is not done yet ? - You cannot raise DBus signals yet. - You cannot use Collections yet. Note that the gb.dbus component has a part written in C and a part written in Gambas. The part written in C provide hidden classes (whose name begins with "_") that the part written in Gambas uses to provided the full (and easy!) component interface. Now just play with it and tell me what you think! Regards, -- Beno?t Minisini From ivan-kern at ...308... Wed Jul 21 13:14:34 2010 From: ivan-kern at ...308... (ivan-kern at ...308...) Date: Wed, 21 Jul 2010 13:14:34 +0200 Subject: [Gambas-user] problem with event DataBrowser_MouseDown Message-ID: Hello I use Gambas2-2.21, GTK+ on Ubuntu 10.04. My problem is that? events DataBrowser_MouseDown, DataBrowser_DblClick do not work. ? Thanks With kind regards ? Ivan ? freenetMail mobil ? Alle E-Mails auf Ihrem Handy versenden und empfangen. Jetzt kinderleicht und kostenlos einrichten. Hier informieren! From gambas at ...1... Wed Jul 21 13:20:52 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 21 Jul 2010 13:20:52 +0200 Subject: [Gambas-user] Bug in DateChooser when used with ShowModal? (gambas 2.20) In-Reply-To: <201007191224.05660.gambas@...1...> References: <201007191224.05660.gambas@...1...> Message-ID: <201007211320.52690.gambas@...1...> > > Hello, > > > > DateChooser does not allow me to select a date in most cases when its > > form was opened with ShowModal. > > > > Here are the specifics: The calendar does not react to clicks when its > > form is opened with ShowModal and a lower window is still open. Other > > buttons in the same window work fine. The problem does not occur when > > the lower window is closed with ME.Close() before the call to > > ShowModal(). > > > > For convenience, I attached a small gambas project---with two buttons > > opening same the window in those two ways. > > > > I use gambas 2.20 from the Madness Mike's PPA on Launchpad under Ubuntu > > 10.04 lucid. It is available at > > https://launchpad.net/~madnessmike/+archive/gambas. > > > > My kernel was patched for a problem with Intel 845G video. Did not try > > on stock kernel, but would be surprised if that would make a difference. > > > > 'uname -a' output is 2.6.34-v9patch-generic #2-Ubuntu SMP Wed Jun 9 > > > > 04:13:19 UTC 2010 i686 GNU/Linux. > > > > My apologies if I am reporting a known problem. I searched the mailing > > list but could not find any relevant info about it. > > > > Sincerely, > > Felix Lechner > > Hu hu. This is a problem with gb.gtk only, I will look at it... The bug should be fixed in the last revisions now. Regards, -- Beno?t Minisini From austinium at ...43... Wed Jul 21 13:38:40 2010 From: austinium at ...43... (vikram) Date: Wed, 21 Jul 2010 04:38:40 -0700 (PDT) Subject: [Gambas-user] How to make Context Menus? Message-ID: <118771.6028.qm@...2464...> Hi, I am new to gambas, I am using Gambas 2.7 on Debian Lenny. I need to make context menus for a project I am working on, i tried googling but came up pretty much empty handed...any help on this is welcome. Thanks Vikram Nair From wspinto at ...1405... Wed Jul 21 17:49:08 2010 From: wspinto at ...1405... (Wellington de Souza Pinto) Date: Wed, 21 Jul 2010 12:49:08 -0300 Subject: [Gambas-user] the password property in smtpclient (gb2) Message-ID: <1279727347.4c4716f401ecf@...1539...> Hi! Why the password property in smtpclient (gb2) not exist??? (in gb3 exist and work)!! I need create subroutine (gb2) in my program to send email by smtp. Any idea??? Best Reguards, Souza, Wellington ___________________________________________________________________________________ Para fazer uma liga??o DDD pra perto ou pra longe, faz um 21. A Embratel tem tarifas muito baratas esperando por voc?. Aproveite! From prog at ...2177... Wed Jul 21 18:28:24 2010 From: prog at ...2177... (craf) Date: Wed, 21 Jul 2010 12:28:24 -0400 Subject: [Gambas-user] How to make Context Menus? In-Reply-To: <118771.6028.qm@...2464...> References: <118771.6028.qm@...2464...> Message-ID: <1279729704.2480.1.camel@...2406...> Hi. This link can serve: http://gambaslinux.eg2.fr/articles.php?lng=en&pg=160 Regards >-----Mensaje original----- >De: vikram >Reply-to: mailing list for gambas users >Para: gambas-user at lists.sourceforge.net >Asunto: [Gambas-user] How to make Context Menus? >Fecha: Wed, 21 Jul 2010 04:38:40 -0700 (PDT) >Hi, >I am new to gambas, I am using Gambas 2.7 on Debian Lenny. I need to make context menus for a project I am working on, i tried googling but came up pretty much empty handed...any help on this is welcome. >Thanks >Vikram Nair >------------------------------------------------------------------------------ >This SF.net email is sponsored by Sprint >What will you do first with EVO, the first 4G phone? >Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first >_______________________________________________ >Gambas-user mailing list >Gambas-user at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Wed Jul 21 19:39:10 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 21 Jul 2010 19:39:10 +0200 Subject: [Gambas-user] How to make Context Menus? In-Reply-To: <1279729704.2480.1.camel@...2406...> References: <118771.6028.qm@...2464...> <1279729704.2480.1.camel@...2406...> Message-ID: <201007211939.10767.gambas@...1...> > Hi. > > This link can serve: > > http://gambaslinux.eg2.fr/articles.php?lng=en&pg=160 > > Regards > That example is correct, except that you must react to the "Menu" event, and not the "MouseDown" event, otherwise the keyboard "menu" key won't work! Regards, -- Beno?t Minisini From prog at ...2177... Thu Jul 22 19:09:27 2010 From: prog at ...2177... (craf) Date: Thu, 22 Jul 2010 13:09:27 -0400 Subject: [Gambas-user] Destroy control Message-ID: <1279818567.8697.0.camel@...2406...> Hi. If using code created a Button control within a Tabstrip control, and then delete the tabstrip control, is the control button still exist?, Or destroyed by destroying the tabstrip control. Regards From gambas at ...1... Thu Jul 22 20:04:45 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 22 Jul 2010 20:04:45 +0200 Subject: [Gambas-user] Destroy control In-Reply-To: <1279818567.8697.0.camel@...2406...> References: <1279818567.8697.0.camel@...2406...> Message-ID: <201007222004.45672.gambas@...1...> > Hi. > > If using code created a Button control within a Tabstrip control, and > then delete the tabstrip control, is the control button still exist?, Or > destroyed by destroying the tabstrip control. > > Regards > Destroying a container automatically destroys all its children. Regards, -- Beno?t Minisini From prog at ...2177... Thu Jul 22 21:04:56 2010 From: prog at ...2177... (craf) Date: Thu, 22 Jul 2010 15:04:56 -0400 Subject: [Gambas-user] Destroy control In-Reply-To: <201007222004.45672.gambas@...1...> References: <1279818567.8697.0.camel@...2406...> <201007222004.45672.gambas@...1...> Message-ID: <1279825496.10529.2.camel@...2406...> >-----Mensaje original----- >De: Beno?t Minisini >Reply-to: mailing list for gambas users >Para: mailing list for gambas users >Asunto: Re: [Gambas-user] Destroy control >Fecha: Thu, 22 Jul 2010 20:04:45 +0200 > Hi. > > If using code created a Button control within a Tabstrip control, and > then delete the tabstrip control, is the control button still exist?, Or > destroyed by destroying the tabstrip control. > > Regards > >Destroying a container automatically destroys all its children. >Regards, Hi. Thank you very much for your clarification Regards From gambas at ...1... Thu Jul 22 21:27:01 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 22 Jul 2010 21:27:01 +0200 Subject: [Gambas-user] problem with event DataBrowser_MouseDown In-Reply-To: References: Message-ID: <201007222127.01245.gambas@...1...> > Hello > I use Gambas2-2.21, GTK+ on Ubuntu 10.04. > My problem is that events DataBrowser_MouseDown, DataBrowser_DblClick do > not work. > > > Thanks > With kind regards > > Ivan > You have just stumbled against a common Gambas problem! :-) DataBrowser is a compound control, and so is actually a container, so the basic events (mouse and keyboard) have no sense for what you want. Hopefully, DataBrowser has a View property that returns the TableView inside it. Then you can use the Observer class to catch the events raised by the TableView. I admit this is far from perfect. I guess you need MouseDown and DblClick events to let the user popup a menu or activate a row, do you? -- Beno?t Minisini From mailinglist at ...2465... Fri Jul 23 16:12:40 2010 From: mailinglist at ...2465... (MailingLists) Date: Fri, 23 Jul 2010 14:12:40 +0000 Subject: [Gambas-user] BUG Install on mandriva Message-ID: <4C49A358.6000307@...2465...> Hy, My first time on this list. I'm french and discover Gambas as I was looking for a data modeler for postgreSQL. Naturally I found the project pgDesigner from luigi carlotto. This project is using gb-qt-kde but I'm currently working on mandriva 2010 with no KDE3.x packages. So I installed the appropriate kde3.x developement header and try to compile and install the appropriate component form the 2.20 sources Unfortunately O have a bug and I didn't succeed in managing this issue. Any help would be welcome, Best regards -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: output.txt URL: From dag.jarle.johansen at ...2312... Fri Jul 23 19:13:26 2010 From: dag.jarle.johansen at ...2312... (Dag Jarle Johansen) Date: Fri, 23 Jul 2010 14:13:26 -0300 Subject: [Gambas-user] BUG Install on mandriva In-Reply-To: <4C49A358.6000307@...2465...> References: <4C49A358.6000307@...2465...> Message-ID: Hi, if you don't have to distribute at once, I would use the SVN-version of Gambas. I used the 2.x version too, but experienced a lot of "troubles". It is stable, but in the SVN aka 2.99 aka 3.0 you will find many improvements. In my experience, the SVN pays out - no matter what database you are connecting to. (I'm a MySQL-fan, but have connected to everything I found, just to look). Regards, Dag Harle Johansen Am Freitag, den 23.07.2010, 14:12 +0000 schrieb MailingLists: > Hy, > > My first time on this list. I'm french and discover Gambas as I was > looking for a data modeler for postgreSQL. Naturally I found the project > pgDesigner from luigi carlotto. > > This project is using gb-qt-kde but I'm currently working on mandriva > 2010 with no KDE3.x packages. > > So I installed the appropriate kde3.x developement header and try to > compile and install the appropriate component form the 2.20 sources > Unfortunately O have a bug and I didn't succeed in managing this issue. > > Any help would be welcome, > > Best regards > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From dag.jarle.johansen at ...2312... Fri Jul 23 19:17:38 2010 From: dag.jarle.johansen at ...2312... (Dag Jarle Johansen) Date: Fri, 23 Jul 2010 14:17:38 -0300 Subject: [Gambas-user] BUG Install on mandriva In-Reply-To: <4C49A358.6000307@...2465...> References: <4C49A358.6000307@...2465...> Message-ID: Hi, sorry, forgot to tell, I am using ubuntu 10.04, with gnome. No KDE. Dag again Am Freitag, den 23.07.2010, 14:12 +0000 schrieb MailingLists: > Hy, > > My first time on this list. I'm french and discover Gambas as I was > looking for a data modeler for postgreSQL. Naturally I found the project > pgDesigner from luigi carlotto. > > This project is using gb-qt-kde but I'm currently working on mandriva > 2010 with no KDE3.x packages. > > So I installed the appropriate kde3.x developement header and try to > compile and install the appropriate component form the 2.20 sources > Unfortunately O have a bug and I didn't succeed in managing this issue. > > Any help would be welcome, > > Best regards > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Fri Jul 23 19:31:39 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 23 Jul 2010 19:31:39 +0200 Subject: [Gambas-user] BUG Install on mandriva In-Reply-To: <4C49A358.6000307@...2465...> References: <4C49A358.6000307@...2465...> Message-ID: <201007231931.39348.gambas@...1...> > Hy, > > My first time on this list. I'm french and discover Gambas as I was > looking for a data modeler for postgreSQL. Naturally I found the project > pgDesigner from luigi carlotto. > > This project is using gb-qt-kde but I'm currently working on mandriva > 2010 with no KDE3.x packages. > > So I installed the appropriate kde3.x developement header and try to > compile and install the appropriate component form the 2.20 sources > Unfortunately O have a bug and I didn't succeed in managing this issue. > > Any help would be welcome, > > Best regards --- French version "Permission non accord?e" signifie qu'il faut faire l'installation en root. Cordialement, --- Version anglaise "Permission non accord?" means that you have to "make install" being root. Regards, -- Beno?t Minisini From mailinglist at ...2465... Fri Jul 23 23:55:23 2010 From: mailinglist at ...2465... (MailingLists) Date: Fri, 23 Jul 2010 21:55:23 +0000 Subject: [Gambas-user] BUG Install on mandriva In-Reply-To: <201007231931.39348.gambas@...1...> References: <4C49A358.6000307@...2465...> <201007231931.39348.gambas@...1...> Message-ID: <4C4A0FCB.4000004@...2465...> Hy, thank you to all of us for answering so fast. But the problem still even with root priviledges Le 23/07/2010 17:31, Beno?t Minisini a ?crit : >> Hy, >> >> My first time on this list. I'm french and discover Gambas as I was >> looking for a data modeler for postgreSQL. Naturally I found the project >> pgDesigner from luigi carlotto. >> >> This project is using gb-qt-kde but I'm currently working on mandriva >> 2010 with no KDE3.x packages. >> >> So I installed the appropriate kde3.x developement header and try to >> compile and install the appropriate component form the 2.20 sources >> Unfortunately O have a bug and I didn't succeed in managing this issue. >> >> Any help would be welcome, >> >> Best regards > --- French version > > "Permission non accord?e" signifie qu'il faut faire l'installation en root. > > Cordialement, > > --- Version anglaise > > "Permission non accord?" means that you have to "make install" being root. > > Regards, > From gambas at ...1... Fri Jul 23 22:11:33 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 23 Jul 2010 22:11:33 +0200 Subject: [Gambas-user] BUG Install on mandriva In-Reply-To: <4C4A0FCB.4000004@...2465...> References: <4C49A358.6000307@...2465...> <201007231931.39348.gambas@...1...> <4C4A0FCB.4000004@...2465...> Message-ID: <201007232211.33761.gambas@...1...> > Hy, > > thank you to all of us for answering so fast. But the problem still even > with root priviledges > If you don't provide the full output of all configuration and compilation process, nobody can help you! -- Beno?t Minisini From mohareve at ...626... Fri Jul 23 23:09:29 2010 From: mohareve at ...626... (M. Cs.) Date: Fri, 23 Jul 2010 23:09:29 +0200 Subject: [Gambas-user] Moving masked and borderless form window Message-ID: How can I move a form window if it has a mask, and no borders? From mailinglist at ...2465... Sat Jul 24 11:17:47 2010 From: mailinglist at ...2465... (MailingLists) Date: Sat, 24 Jul 2010 09:17:47 +0000 Subject: [Gambas-user] BUG Install on mandriva In-Reply-To: <4C49A358.6000307@...2465...> References: <4C49A358.6000307@...2465...> Message-ID: <4C4AAFBB.9050209@...2465...> Thank you for answering again, I thought that my first post had the same message but it's wrong. So I compiled another time. First try : reconf then all the commmands in the gb.qt.kde component : outputRootComponent.txt attached. Second try : reconf-all then all the commands : outputRootGlobal.txt All thos try have been compiled under root priviledges. I remiend that I work under Mandriva 2010.0 and I follow the tutorial here : http://gambasdoc.org/help/install/mandriva Best regards Le 23/07/2010 14:12, MailingLists a ?crit : > Hy, > > My first time on this list. I'm french and discover Gambas as I was > looking for a data modeler for postgreSQL. Naturally I found the > project pgDesigner from luigi carlotto. > > This project is using gb-qt-kde but I'm currently working on mandriva > 2010 with no KDE3.x packages. > > So I installed the appropriate kde3.x developement header and try to > compile and install the appropriate component form the 2.20 sources > Unfortunately O have a bug and I didn't succeed in managing this issue. > > Any help would be welcome, > > Best regards > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > > > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: outputRootComponent.txt URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: outputRootGlobal.txt URL: From gambas at ...1... Sat Jul 24 12:14:03 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 24 Jul 2010 12:14:03 +0200 Subject: [Gambas-user] BUG Install on mandriva In-Reply-To: <4C4AAFBB.9050209@...2465...> References: <4C49A358.6000307@...2465...> <4C4AAFBB.9050209@...2465...> Message-ID: <201007241214.03621.gambas@...1...> > Thank you for answering again, > > I thought that my first post had the same message but it's wrong. > So I compiled another time. > First try : reconf then all the commmands in the gb.qt.kde component : > outputRootComponent.txt attached. > Second try : reconf-all then all the commands : outputRootGlobal.txt > > All thos try have been compiled under root priviledges. > I remiend that I work under Mandriva 2010.0 and I follow the tutorial > here : http://gambasdoc.org/help/install/mandriva > > > Best regards > As I said, I need the *full* output of the configuration and installation process. To do that, follow what is explained in the "Reporting a problem" page on the web site, especially the paragraph #2. I don't know what you installed exactly as KDE3 "development headers"... I suggest you install the KDE3 packages from Mandriva 2009.1: - kdebase3-common - libkdecore4 - libkdecore4-devel Or just disable the compilation of KDE components at configuration time (./configure --help for more information). Regards, -- Beno?t Minisini From mailinglist at ...2465... Sat Jul 24 17:57:20 2010 From: mailinglist at ...2465... (MailingLists) Date: Sat, 24 Jul 2010 15:57:20 +0000 Subject: [Gambas-user] BUG Install on mandriva In-Reply-To: <201007241214.03621.gambas@...1...> References: <4C49A358.6000307@...2465...> <4C4AAFBB.9050209@...2465...> <201007241214.03621.gambas@...1...> Message-ID: <4C4B0D60.8050001@...2465...> Hy, I'm really sorry, but I followed strictly the procedure described in the install file. So I now I consider the website here are some additionnal pieces of information : Mandriva 2010.0 Intel Centrino DUo Kernel : 2.6.31.13-desktop-1mnb Trying to compile gambase 2.20 what is installed : kdebase3-common for 2009.1 kdebase3 libkdecore4 libkdecore4-devel here in attached file the different step of my compilation executed as root on the main folder : 1 # ./reconf-all > 1-recon-all_as_root.txt 2>&1 see in attached file 2 # ./configure > 2-configure_as_root.txt 2>&1 see in attached file 3 # make > 3-make_as_root.txt 2>&1 see in attached file The error is at the end of the third file. If you ask something more to me, please precise what you want because, I think I followed the procedure, isn't it? Anyway, I really want to thank you for considering my emails. Best regards Le 24/07/2010 10:14, Beno?t Minisini a ?crit : >> Thank you for answering again, >> >> I thought that my first post had the same message but it's wrong. >> So I compiled another time. >> First try : reconf then all the commmands in the gb.qt.kde component : >> outputRootComponent.txt attached. >> Second try : reconf-all then all the commands : outputRootGlobal.txt >> >> All thos try have been compiled under root priviledges. >> I remiend that I work under Mandriva 2010.0 and I follow the tutorial >> here :http://gambasdoc.org/help/install/mandriva >> >> >> Best regards >> > As I said, I need the *full* output of the configuration and installation > process. To do that, follow what is explained in the "Reporting a problem" > page on the web site, especially the paragraph #2. > > I don't know what you installed exactly as KDE3 "development headers"... I > suggest you install the KDE3 packages from Mandriva 2009.1: > - kdebase3-common > - libkdecore4 > - libkdecore4-devel > > Or just disable the compilation of KDE components at configuration time > (./configure --help for more information). > > Regards, > -------------- next part -------------- A non-text attachment was scrubbed... Name: Allcommands as root.tar.gz Type: application/x-gzip Size: 15825 bytes Desc: not available URL: From gambas at ...1... Sat Jul 24 16:02:03 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 24 Jul 2010 16:02:03 +0200 Subject: [Gambas-user] BUG Install on mandriva In-Reply-To: <4C4B0D60.8050001@...2465...> References: <4C49A358.6000307@...2465...> <201007241214.03621.gambas@...1...> <4C4B0D60.8050001@...2465...> Message-ID: <201007241602.03993.gambas@...1...> > Hy, > > I'm really sorry, but I followed strictly the procedure described in the > install file. > So I now I consider the website here are some additionnal pieces of > information : > Mandriva 2010.0 > Intel Centrino DUo > Kernel : 2.6.31.13-desktop-1mnb > Trying to compile gambase 2.20 > what is installed : > kdebase3-common for 2009.1 > kdebase3 > libkdecore4 > libkdecore4-devel > > here in attached file the different step of my compilation executed as > root on the main folder : > 1 # ./reconf-all > 1-recon-all_as_root.txt 2>&1 see in attached file > 2 # ./configure > 2-configure_as_root.txt 2>&1 see in attached file > 3 # make > 3-make_as_root.txt 2>&1 see in attached file > > > The error is at the end of the third file. > If you ask something more to me, please precise what you want because, I > think I followed the procedure, isn't it? Now yes. :-) You have an error message about a missing file that should be there. Do you have a symbolic link /gb.gtk/share that points at /gb.qt/share? is the directory of the gambas sources you uncompressed... -- Beno?t Minisini From gambas at ...1... Sat Jul 24 18:05:57 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 24 Jul 2010 18:05:57 +0200 Subject: [Gambas-user] Release of Gambas 2.21 Message-ID: <201007241805.57307.gambas@...1...> Hi, There has been no release for a long time, so here it is! The main changes in the 2.21 version are: * Support for ArchLinux in the IDE packager. * Event management and some memory leaks have been fixed in gb.gtk. * The SMTP component now better follows the standard, and mails should be readable in less tolerant mail clients. * The German and Czech translations have been completed. Here is the full changelog now: ------------------------------------------------------------------------------- [CONFIGURATION] * BUG: Fix the creation of the gbw2 symbolic link. * NEW: Remove generated files. * NEW: './reconf' now is used inside sub-directories for reconfiguring it, without modifying libtool. * NEW: To install the libtool version required by your system, use now the './reconf-all' script in the top directory. [DEVELOPMENT ENVIRONMENT] * BUG: Align buttons do not snap control dimensions to grid anymore. * BUG: In the property sheet, when scrolling, the property editor is not displayed above the property help anymore. * BUG: Understand "END FUNCTION" when scanning a class. * NEW: Add Archlinux package support (source and binary). * NEW: Czech translation finished by Radek Fry?t?k. * NEW: German translation finished by Mathias Ebermann. * NEW: French translation updated. * OPT: Refresh the property sheet only for the active form. [GB.DB.FORM] * NEW: German translation made by Mathias Ebermann. [GB.DB.SQLITE3] * BUG: Tables with an autoincrement field and some indexes are correctly managed now. [GB.FORM] * NEW: German translation made by Mathias Ebermann. [GB.FORM.DIALOG] * NEW: German translation made by Mathias Ebermann. [GB.FORM.MDI] * NEW: German translation made by Mathias Ebermann. [GB.GTK] * BUG: Key.Code is not lost anymore during a KeyPress event. * BUG: Fix a memory leak when loading an image without transparency. * BUG: Fix a memory leak in the Image.Stretch() method. * BUG: Basic controls events are correctly sent again when a modal dialog is displayed. [GB.NET.SMTP] * BUG: Send a CR+LF and not just a LF before sending mime part body. * BUG: Adds a newline between MIME part headers and MIME part body. ------------------------------------------------------------------------------- Enjoy it! -- Beno?t Minisini From mailinglist at ...2465... Sat Jul 24 21:39:00 2010 From: mailinglist at ...2465... (MailingLists) Date: Sat, 24 Jul 2010 19:39:00 +0000 Subject: [Gambas-user] BUG Install on mandriva In-Reply-To: <201007241602.03993.gambas@...1...> References: <4C49A358.6000307@...2465...> <201007241214.03621.gambas@...1...> <4C4B0D60.8050001@...2465...> <201007241602.03993.gambas@...1...> Message-ID: <4C4B4154.20308@...2465...> Thank you for answering. I executed the following command in order to have the symbolici link: ln -s gb.qt/share/ gb.gtk/share. No more success but I have an idea. Actually as I saw that you put a new release I try to compile it. And when I decompress the archive, I have 2 times this message : tar:XXXX/gb.qt/share is a folder whereas a file was expected. As it concerns the folder you were talking about, I imagine that it could help you. I execute the make command on the 2.21 release and attach you the result. Best regards Le 24/07/2010 14:02, Beno?t Minisini a ?crit : >> Hy, >> >> I'm really sorry, but I followed strictly the procedure described in the >> install file. >> So I now I consider the website here are some additionnal pieces of >> information : >> Mandriva 2010.0 >> Intel Centrino DUo >> Kernel : 2.6.31.13-desktop-1mnb >> Trying to compile gambase 2.20 >> what is installed : >> kdebase3-common for 2009.1 >> kdebase3 >> libkdecore4 >> libkdecore4-devel >> >> here in attached file the different step of my compilation executed as >> root on the main folder : >> 1 # ./reconf-all> 1-recon-all_as_root.txt 2>&1 see in attached file >> 2 # ./configure> 2-configure_as_root.txt 2>&1 see in attached file >> 3 # make> 3-make_as_root.txt 2>&1 see in attached file >> >> >> The error is at the end of the third file. >> If you ask something more to me, please precise what you want because, I >> think I followed the procedure, isn't it? > Now yes. :-) > > You have an error message about a missing file that should be there. Do you > have a symbolic link/gb.gtk/share that points at > /gb.qt/share? is the directory of the gambas sources > you uncompressed... > -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: 3-make_as_root.txt URL: From doriano.blengino at ...1909... Sat Jul 24 19:46:40 2010 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Sat, 24 Jul 2010 19:46:40 +0200 Subject: [Gambas-user] BUG Install on mandriva In-Reply-To: <201007241602.03993.gambas@...1...> References: <4C49A358.6000307@...2465...> <201007241214.03621.gambas@...1...> <4C4B0D60.8050001@...2465...> <201007241602.03993.gambas@...1...> Message-ID: <4C4B2700.7040109@...1909...> Beno?t Minisini ha scritto: >> here in attached file the different step of my compilation executed as >> root on the main folder : >> 1 # ./reconf-all > 1-recon-all_as_root.txt 2>&1 see in attached file >> 2 # ./configure > 2-configure_as_root.txt 2>&1 see in attached file >> 3 # make > 3-make_as_root.txt 2>&1 see in attached file >> >> >> The error is at the end of the third file. >> If you ask something more to me, please precise what you want because, I >> think I followed the procedure, isn't it? >> > > Now yes. :-) > > You have an error message about a missing file that should be there. Do you > have a symbolic link /gb.gtk/share that points at > /gb.qt/share? is the directory of the gambas sources > you uncompressed... > Hi, don't you remember that I am trying too to compile gambas3? In my mail I referred to some link problem. My file "/opt/gambas3/trunk/gb.gtk/share" contains this single line: link ../gb.qt4/share and the same thing happens in other places too (like Makefiles). As you didn't reply to me, I downloaded the documentation of autoconf/automake/libtool/m4 in order to understand myself what is going on. But probably a clarification from you is necessary. This link from gb.gtk to gb.qt4, for example, is already present in the original files? Or is there some process that creates it? In other word: the original (*your*) file gb.gtk/share contains "link blah blah blah" or not? Thank you. Regards, Doriano From doriano.blengino at ...1909... Sat Jul 24 19:55:53 2010 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Sat, 24 Jul 2010 19:55:53 +0200 Subject: [Gambas-user] BUG Install on mandriva In-Reply-To: <4C4B4154.20308@...2465...> References: <4C49A358.6000307@...2465...> <201007241214.03621.gambas@...1...> <4C4B0D60.8050001@...2465...> <201007241602.03993.gambas@...1...> <4C4B4154.20308@...2465...> Message-ID: <4C4B2929.6040308@...1909...> MailingLists ha scritto: > Thank you for answering. > > I executed the following command in order to have the symbolici link: > ln -s gb.qt/share/ gb.gtk/share. > No more success but I have an idea. Ehm... shouldn't it be "ln -s gb.qt4/share/ gb.gtk/share"? Note in "qt4" then "4" after qt... Probably a typo in this email, but who knows...? Regards, Doriano > Actually as I saw that you put a new release I try to compile it. > And when I decompress the archive, I have 2 times this message : > tar:XXXX/gb.qt/share is a folder whereas a file was expected. > As it concerns the folder you were talking about, I imagine that it > could help you. > > I execute the make command on the 2.21 release and attach you the result. > Best regards > > > Le 24/07/2010 14:02, Beno?t Minisini a ?crit : >>> Hy, >>> >>> I'm really sorry, but I followed strictly the procedure described in >>> the >>> install file. >>> So I now I consider the website here are some additionnal pieces of >>> information : >>> Mandriva 2010.0 >>> Intel Centrino DUo >>> Kernel : 2.6.31.13-desktop-1mnb >>> Trying to compile gambase 2.20 >>> what is installed : >>> kdebase3-common for 2009.1 >>> kdebase3 >>> libkdecore4 >>> libkdecore4-devel >>> >>> here in attached file the different step of my compilation executed as >>> root on the main folder : >>> 1 # ./reconf-all> 1-recon-all_as_root.txt 2>&1 see in attached file >>> 2 # ./configure> 2-configure_as_root.txt 2>&1 see in attached file >>> 3 # make> 3-make_as_root.txt 2>&1 see in attached file >>> >>> >>> The error is at the end of the third file. >>> If you ask something more to me, please precise what you want >>> because, I >>> think I followed the procedure, isn't it? >> Now yes. :-) >> >> You have an error message about a missing file that should be there. >> Do you >> have a symbolic link/gb.gtk/share that points at >> /gb.qt/share? is the directory of the gambas >> sources >> you uncompressed... >> > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > ------------------------------------------------------------------------ > > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From lordheavym at ...626... Sat Jul 24 20:33:34 2010 From: lordheavym at ...626... (Laurent Carlier) Date: Sat, 24 Jul 2010 20:33:34 +0200 Subject: [Gambas-user] Release of Gambas 2.21 In-Reply-To: <201007241805.57307.gambas@...1...> References: <201007241805.57307.gambas@...1...> Message-ID: <201007242033.34819.lordheavym@...626...> Le samedi 24 juillet 2010 18:05:57, Beno?t Minisini a ?crit : > Hi, > > There has been no release for a long time, so here it is! > > The main changes in the 2.21 version are: > > * Support for ArchLinux in the IDE packager. > > * Event management and some memory leaks have been fixed in gb.gtk. > > * The SMTP component now better follows the standard, and mails should be > readable in less tolerant mail clients. > > * The German and Czech translations have been completed. > > Here is the full changelog now: > > --------------------------------------------------------------------------- > ---- > > [CONFIGURATION] > * BUG: Fix the creation of the gbw2 symbolic link. > * NEW: Remove generated files. > * NEW: './reconf' now is used inside sub-directories for reconfiguring it, > without modifying libtool. > * NEW: To install the libtool version required by your system, use now the > './reconf-all' script in the top directory. > > [DEVELOPMENT ENVIRONMENT] > * BUG: Align buttons do not snap control dimensions to grid anymore. > * BUG: In the property sheet, when scrolling, the property editor is not > displayed above the property help anymore. > * BUG: Understand "END FUNCTION" when scanning a class. > * NEW: Add Archlinux package support (source and binary). > * NEW: Czech translation finished by Radek Fry?t?k. > * NEW: German translation finished by Mathias Ebermann. > * NEW: French translation updated. > * OPT: Refresh the property sheet only for the active form. > > [GB.DB.FORM] > * NEW: German translation made by Mathias Ebermann. > > [GB.DB.SQLITE3] > * BUG: Tables with an autoincrement field and some indexes are correctly > managed now. > > [GB.FORM] > * NEW: German translation made by Mathias Ebermann. > > [GB.FORM.DIALOG] > * NEW: German translation made by Mathias Ebermann. > > [GB.FORM.MDI] > * NEW: German translation made by Mathias Ebermann. > > [GB.GTK] > * BUG: Key.Code is not lost anymore during a KeyPress event. > * BUG: Fix a memory leak when loading an image without transparency. > * BUG: Fix a memory leak in the Image.Stretch() method. > * BUG: Basic controls events are correctly sent again when a modal dialog > is displayed. > > [GB.NET.SMTP] > * BUG: Send a CR+LF and not just a LF before sending mime part body. > * BUG: Adds a newline between MIME part headers and MIME part body. > > --------------------------------------------------------------------------- > ---- > > Enjoy it! Archlinux users can already find it in the community repository ++ From mailinglist at ...2465... Sat Jul 24 23:21:10 2010 From: mailinglist at ...2465... (MailingLists) Date: Sat, 24 Jul 2010 21:21:10 +0000 Subject: [Gambas-user] BUG Install on mandriva In-Reply-To: <4C4B2929.6040308@...1909...> References: <4C49A358.6000307@...2465...> <201007241214.03621.gambas@...1...> <4C4B0D60.8050001@...2465...> <201007241602.03993.gambas@...1...> <4C4B4154.20308@...2465...> <4C4B2929.6040308@...1909...> Message-ID: <4C4B5946.80402@...2465...> Sorry, but the sources haven't got gb.qt4 but only gb.qt Best regards Le 24/07/2010 17:55, Doriano Blengino a ?crit : > MailingLists ha scritto: >> Thank you for answering. >> >> I executed the following command in order to have the symbolici link: >> ln -s gb.qt/share/ gb.gtk/share. >> No more success but I have an idea. > Ehm... shouldn't it be "ln -s gb.qt4/share/ gb.gtk/share"? Note in > "qt4" then "4" after qt... > Probably a typo in this email, but who knows...? > > Regards, > Doriano >> Actually as I saw that you put a new release I try to compile it. >> And when I decompress the archive, I have 2 times this message : >> tar:XXXX/gb.qt/share is a folder whereas a file was expected. >> As it concerns the folder you were talking about, I imagine that it >> could help you. >> >> I execute the make command on the 2.21 release and attach you the result. >> Best regards >> >> >> Le 24/07/2010 14:02, Beno?t Minisini a ?crit : >>>> Hy, >>>> >>>> I'm really sorry, but I followed strictly the procedure described in >>>> the >>>> install file. >>>> So I now I consider the website here are some additionnal pieces of >>>> information : >>>> Mandriva 2010.0 >>>> Intel Centrino DUo >>>> Kernel : 2.6.31.13-desktop-1mnb >>>> Trying to compile gambase 2.20 >>>> what is installed : >>>> kdebase3-common for 2009.1 >>>> kdebase3 >>>> libkdecore4 >>>> libkdecore4-devel >>>> >>>> here in attached file the different step of my compilation executed as >>>> root on the main folder : >>>> 1 # ./reconf-all> 1-recon-all_as_root.txt 2>&1 see in attached file >>>> 2 # ./configure> 2-configure_as_root.txt 2>&1 see in attached file >>>> 3 # make> 3-make_as_root.txt 2>&1 see in attached file >>>> >>>> >>>> The error is at the end of the third file. >>>> If you ask something more to me, please precise what you want >>>> because, I >>>> think I followed the procedure, isn't it? >>> Now yes. :-) >>> >>> You have an error message about a missing file that should be there. >>> Do you >>> have a symbolic link/gb.gtk/share that points at >>> /gb.qt/share? is the directory of the gambas >>> sources >>> you uncompressed... >>> >> ------------------------------------------------------------------------ >> >> ------------------------------------------------------------------------------ >> This SF.net email is sponsored by Sprint >> What will you do first with EVO, the first 4G phone? >> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> 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 Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From ea7dfh at ...2382... Sat Jul 24 23:57:37 2010 From: ea7dfh at ...2382... (EA7DFH) Date: Sat, 24 Jul 2010 23:57:37 +0200 Subject: [Gambas-user] endoftheinternet.com In-Reply-To: <201007241805.57307.gambas@...1...> References: <201007241805.57307.gambas@...1...> Message-ID: <4C4B61D1.3030001@...2382...> El 24/07/10 18:05, Beno?t Minisini escribi?: > Hi, > > There has been no release for a long time, so here it is! > > The main changes in the 2.21 version are: > > * Support for ArchLinux in the IDE packager. > > * Event management and some memory leaks have been fixed in gb.gtk. > > * The SMTP component now better follows the standard, and mails should be > readable in less tolerant mail clients. > > * The German and Czech translations have been completed. > > Here is the full changelog now: > > ------------------------------------------------------------------------------- > > [CONFIGURATION] > * BUG: Fix the creation of the gbw2 symbolic link. > * NEW: Remove generated files. > * NEW: './reconf' now is used inside sub-directories for reconfiguring it, > without modifying libtool. > * NEW: To install the libtool version required by your system, use now the > './reconf-all' script in the top directory. > > [DEVELOPMENT ENVIRONMENT] > * BUG: Align buttons do not snap control dimensions to grid anymore. > * BUG: In the property sheet, when scrolling, the property editor is not > displayed above the property help anymore. > * BUG: Understand "END FUNCTION" when scanning a class. > * NEW: Add Archlinux package support (source and binary). > * NEW: Czech translation finished by Radek Fry?t?k. > * NEW: German translation finished by Mathias Ebermann. > * NEW: French translation updated. > * OPT: Refresh the property sheet only for the active form. > > [GB.DB.FORM] > * NEW: German translation made by Mathias Ebermann. > > [GB.DB.SQLITE3] > * BUG: Tables with an autoincrement field and some indexes are correctly > managed now. > > [GB.FORM] > * NEW: German translation made by Mathias Ebermann. > > [GB.FORM.DIALOG] > * NEW: German translation made by Mathias Ebermann. > > [GB.FORM.MDI] > * NEW: German translation made by Mathias Ebermann. > > [GB.GTK] > * BUG: Key.Code is not lost anymore during a KeyPress event. > * BUG: Fix a memory leak when loading an image without transparency. > * BUG: Fix a memory leak in the Image.Stretch() method. > * BUG: Basic controls events are correctly sent again when a modal dialog > is displayed. > > [GB.NET.SMTP] > * BUG: Send a CR+LF and not just a LF before sending mime part body. > * BUG: Adds a newline between MIME part headers and MIME part body. > > ------------------------------------------------------------------------------- > > Enjoy it! > > Hey, what's up? Surprised when testing Gambas 2.21... When I do open the "Project->Create->Installation Package" menu, in the Website field there is a pre-filled address in all my projects: http://www.endoftheinternet.com/ Is this a joke? Or is it an unknown virus?? Really confused. Hope there is an explanation for this :-( Not very funny Regards -- Jesus, EA7DFH From Karl.Reinl at ...2345... Sun Jul 25 00:32:12 2010 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Sun, 25 Jul 2010 00:32:12 +0200 Subject: [Gambas-user] Release of Gambas 2.21 In-Reply-To: <201007241805.57307.gambas@...1...> References: <201007241805.57307.gambas@...1...> Message-ID: <1280010732.12339.3.camel@...40...> Am Samstag, den 24.07.2010, 18:05 +0200 schrieb Beno?t Minisini: > Hi, > > There has been no release for a long time, so here it is! > > The main changes in the 2.21 version are: > > * Support for ArchLinux in the IDE packager. > > * Event management and some memory leaks have been fixed in gb.gtk. > > * The SMTP component now better follows the standard, and mails should be > readable in less tolerant mail clients. > > * The German and Czech translations have been completed. > > Here is the full changelog now: > > ------------------------------------------------------------------------------- > > [CONFIGURATION] > * BUG: Fix the creation of the gbw2 symbolic link. > * NEW: Remove generated files. > * NEW: './reconf' now is used inside sub-directories for reconfiguring it, > without modifying libtool. > * NEW: To install the libtool version required by your system, use now the > './reconf-all' script in the top directory. > > [DEVELOPMENT ENVIRONMENT] > * BUG: Align buttons do not snap control dimensions to grid anymore. > * BUG: In the property sheet, when scrolling, the property editor is not > displayed above the property help anymore. > * BUG: Understand "END FUNCTION" when scanning a class. > * NEW: Add Archlinux package support (source and binary). > * NEW: Czech translation finished by Radek Fry?t?k. > * NEW: German translation finished by Mathias Ebermann. > * NEW: French translation updated. > * OPT: Refresh the property sheet only for the active form. > > [GB.DB.FORM] > * NEW: German translation made by Mathias Ebermann. > > [GB.DB.SQLITE3] > * BUG: Tables with an autoincrement field and some indexes are correctly > managed now. > > [GB.FORM] > * NEW: German translation made by Mathias Ebermann. > > [GB.FORM.DIALOG] > * NEW: German translation made by Mathias Ebermann. > > [GB.FORM.MDI] > * NEW: German translation made by Mathias Ebermann. > > [GB.GTK] > * BUG: Key.Code is not lost anymore during a KeyPress event. > * BUG: Fix a memory leak when loading an image without transparency. > * BUG: Fix a memory leak in the Image.Stretch() method. > * BUG: Basic controls events are correctly sent again when a modal dialog > is displayed. > > [GB.NET.SMTP] > * BUG: Send a CR+LF and not just a LF before sending mime part body. > * BUG: Adds a newline between MIME part headers and MIME part body. > > ------------------------------------------------------------------------------- > > Enjoy it! > Salut Beno?t, that don't work for me (svn used) [OperatingSystem] OperatingSystem=Linux KernelRelease=2.6.24-28-generic DistributionVendor=Ubuntu DistributionRelease="Ubuntu 8.04.4 LTS" [System] CPUArchitecture=i686 TotalRam=506932 kB [Gambas] Gambas1=gbx-1.0.17 Gambas1Path=/usr/bin/gbx Gambas2=2.20.1 Gambas2Path=/usr/local/bin/gbx2 Gambas3=2.99.0 Gambas3Path=/usr/local/bin/gbx3 -- Amicalement Charlie -------------- next part -------------- A non-text attachment was scrubbed... Name: configure.log Type: text/x-log Size: 5424 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: make.log Type: text/x-log Size: 958 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: make_install.log Type: text/x-log Size: 481 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: reconf-all.log Type: text/x-log Size: 4669 bytes Desc: not available URL: From dag.jarle.johansen at ...2312... Sun Jul 25 01:27:09 2010 From: dag.jarle.johansen at ...2312... (Dag Jarle Johansen) Date: Sat, 24 Jul 2010 20:27:09 -0300 Subject: [Gambas-user] BUG Install on mandriva In-Reply-To: <4C4A0FCB.4000004@...2465...> References: <4C49A358.6000307@...2465...> <201007231931.39348.gambas@...1...> <4C4A0FCB.4000004@...2465...> Message-ID: I dont know if I am too late, just try this: (made some mistakes myself with even the properties of the trunk) kill the trunk what you allready has. rm -r, stay sure you are on the right position. then just follow the lines on the gambas-hp, using the commands for your system. and if using ubuntu, mkdir WITHOUT sudo. that is important. worked for me. regards, dag Am Freitag, den 23.07.2010, 21:55 +0000 schrieb MailingLists: > Hy, > > thank you to all of us for answering so fast. But the problem still even > with root priviledges > > Le 23/07/2010 17:31, Beno?t Minisini a ?crit : > >> Hy, > >> > >> My first time on this list. I'm french and discover Gambas as I was > >> looking for a data modeler for postgreSQL. Naturally I found the project > >> pgDesigner from luigi carlotto. > >> > >> This project is using gb-qt-kde but I'm currently working on mandriva > >> 2010 with no KDE3.x packages. > >> > >> So I installed the appropriate kde3.x developement header and try to > >> compile and install the appropriate component form the 2.20 sources > >> Unfortunately O have a bug and I didn't succeed in managing this issue. > >> > >> Any help would be welcome, > >> > >> Best regards > > --- French version > > > > "Permission non accord?e" signifie qu'il faut faire l'installation en root. > > > > Cordialement, > > > > --- Version anglaise > > > > "Permission non accord?" means that you have to "make install" being root. > > > > Regards, > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Sun Jul 25 01:35:27 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 25 Jul 2010 01:35:27 +0200 Subject: [Gambas-user] Release of Gambas 2.21 In-Reply-To: <1280010732.12339.3.camel@...40...> References: <201007241805.57307.gambas@...1...> <1280010732.12339.3.camel@...40...> Message-ID: <201007250135.28047.gambas@...1...> > Am Samstag, den 24.07.2010, 18:05 +0200 schrieb Beno?t Minisini: > > Hi, > > > > There has been no release for a long time, so here it is! > > > > The main changes in the 2.21 version are: > > > > * Support for ArchLinux in the IDE packager. > > > > * Event management and some memory leaks have been fixed in gb.gtk. > > > > * The SMTP component now better follows the standard, and mails should be > > readable in less tolerant mail clients. > > > > * The German and Czech translations have been completed. > > > > Here is the full changelog now: > > > > ------------------------------------------------------------------------- > > ------ > > > > [CONFIGURATION] > > * BUG: Fix the creation of the gbw2 symbolic link. > > * NEW: Remove generated files. > > * NEW: './reconf' now is used inside sub-directories for reconfiguring > > it, > > > > without modifying libtool. > > > > * NEW: To install the libtool version required by your system, use now > > the > > > > './reconf-all' script in the top directory. > > > > [DEVELOPMENT ENVIRONMENT] > > * BUG: Align buttons do not snap control dimensions to grid anymore. > > * BUG: In the property sheet, when scrolling, the property editor is not > > > > displayed above the property help anymore. > > > > * BUG: Understand "END FUNCTION" when scanning a class. > > * NEW: Add Archlinux package support (source and binary). > > * NEW: Czech translation finished by Radek Fry?t?k. > > * NEW: German translation finished by Mathias Ebermann. > > * NEW: French translation updated. > > * OPT: Refresh the property sheet only for the active form. > > > > [GB.DB.FORM] > > * NEW: German translation made by Mathias Ebermann. > > > > [GB.DB.SQLITE3] > > * BUG: Tables with an autoincrement field and some indexes are correctly > > > > managed now. > > > > [GB.FORM] > > * NEW: German translation made by Mathias Ebermann. > > > > [GB.FORM.DIALOG] > > * NEW: German translation made by Mathias Ebermann. > > > > [GB.FORM.MDI] > > * NEW: German translation made by Mathias Ebermann. > > > > [GB.GTK] > > * BUG: Key.Code is not lost anymore during a KeyPress event. > > * BUG: Fix a memory leak when loading an image without transparency. > > * BUG: Fix a memory leak in the Image.Stretch() method. > > * BUG: Basic controls events are correctly sent again when a modal dialog > > > > is displayed. > > > > [GB.NET.SMTP] > > * BUG: Send a CR+LF and not just a LF before sending mime part body. > > * BUG: Adds a newline between MIME part headers and MIME part body. > > > > ------------------------------------------------------------------------- > > ------ > > > > Enjoy it! > > Salut Beno?t, > > that don't work for me (svn used) > > [OperatingSystem] > OperatingSystem=Linux > KernelRelease=2.6.24-28-generic > DistributionVendor=Ubuntu > DistributionRelease="Ubuntu 8.04.4 LTS" > > [System] > CPUArchitecture=i686 > TotalRam=506932 kB > > [Gambas] > Gambas1=gbx-1.0.17 > Gambas1Path=/usr/bin/gbx > Gambas2=2.20.1 > Gambas2Path=/usr/local/bin/gbx2 > Gambas3=2.99.0 > Gambas3Path=/usr/local/bin/gbx3 Try to do a ./reconf-all before configuring the package, and tell me if it is better! Regards, -- Beno?t Minisini From gambas at ...1... Sun Jul 25 01:38:04 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 25 Jul 2010 01:38:04 +0200 Subject: [Gambas-user] BUG Install on mandriva In-Reply-To: <4C4B5946.80402@...2465...> References: <4C49A358.6000307@...2465...> <4C4B2929.6040308@...1909...> <4C4B5946.80402@...2465...> Message-ID: <201007250138.04783.gambas@...1...> > Sorry, but the sources haven't got gb.qt4 but only gb.qt > Florent talks about compiling Gambas 2 from the *.tar.bz2 sources, whereas Doriano talks about compiling Gambas 3 from the subversion repository! Be careful! To Doriano: if you have a file instead of a symbolic link, then I think this is a uncompatibility problem between your subversion client and the sourceforge subversion server. How do you checkout? -- Beno?t Minisini From gambas.fr at ...626... Sun Jul 25 02:56:28 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 25 Jul 2010 02:56:28 +0200 Subject: [Gambas-user] endoftheinternet.com In-Reply-To: <4C4B61D1.3030001@...2382...> References: <201007241805.57307.gambas@...1...> <4C4B61D1.3030001@...2382...> Message-ID: lol it seem to be a joke ... intenet have no end... 2010/7/24 EA7DFH : > El 24/07/10 18:05, Beno?t Minisini escribi?: >> Hi, >> >> There has been no release for a long time, so here it is! >> >> The main changes in the 2.21 version are: >> >> * Support for ArchLinux in the IDE packager. >> >> * Event management and some memory leaks have been fixed in gb.gtk. >> >> * The SMTP component now better follows the standard, and mails should be >> readable in less tolerant mail clients. >> >> * The German and Czech translations have been completed. >> >> Here is the full changelog now: >> >> ------------------------------------------------------------------------------- >> >> [CONFIGURATION] >> * BUG: Fix the creation of the gbw2 symbolic link. >> * NEW: Remove generated files. >> * NEW: './reconf' now is used inside sub-directories for reconfiguring it, >> ? without modifying libtool. >> * NEW: To install the libtool version required by your system, use now the >> ? './reconf-all' script in the top directory. >> >> [DEVELOPMENT ENVIRONMENT] >> * BUG: Align buttons do not snap control dimensions to grid anymore. >> * BUG: In the property sheet, when scrolling, the property editor is not >> ? displayed above the property help anymore. >> * BUG: Understand "END FUNCTION" when scanning a class. >> * NEW: Add Archlinux package support (source and binary). >> * NEW: Czech translation finished by Radek Fry?t?k. >> * NEW: German translation finished by Mathias Ebermann. >> * NEW: French translation updated. >> * OPT: Refresh the property sheet only for the active form. >> >> [GB.DB.FORM] >> * NEW: German translation made by Mathias Ebermann. >> >> [GB.DB.SQLITE3] >> * BUG: Tables with an autoincrement field and some indexes are correctly >> ? managed now. >> >> [GB.FORM] >> * NEW: German translation made by Mathias Ebermann. >> >> [GB.FORM.DIALOG] >> * NEW: German translation made by Mathias Ebermann. >> >> [GB.FORM.MDI] >> * NEW: German translation made by Mathias Ebermann. >> >> [GB.GTK] >> * BUG: Key.Code is not lost anymore during a KeyPress event. >> * BUG: Fix a memory leak when loading an image without transparency. >> * BUG: Fix a memory leak in the Image.Stretch() method. >> * BUG: Basic controls events are correctly sent again when a modal dialog >> ? is displayed. >> >> [GB.NET.SMTP] >> * BUG: Send a CR+LF and not just a LF before sending mime part body. >> * BUG: Adds a newline between MIME part headers and MIME part body. >> >> ------------------------------------------------------------------------------- >> >> Enjoy it! >> >> > > Hey, what's up? > > Surprised when testing Gambas 2.21... When I do open the > "Project->Create->Installation Package" menu, in the Website field there > is a pre-filled address in all my projects: http://www.endoftheinternet.com/ > > Is this a joke? Or is it an unknown virus?? Really confused. > > Hope there is an explanation for this :-( > Not very funny > > Regards > -- > Jesus, EA7DFH > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From doriano.blengino at ...1909... Sun Jul 25 08:11:24 2010 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Sun, 25 Jul 2010 08:11:24 +0200 Subject: [Gambas-user] BUG Install on mandriva In-Reply-To: <201007250138.04783.gambas@...1...> References: <4C49A358.6000307@...2465...> <4C4B2929.6040308@...1909...> <4C4B5946.80402@...2465...> <201007250138.04783.gambas@...1...> Message-ID: <4C4BD58C.20305@...1909...> Beno?t Minisini ha scritto: >> Sorry, but the sources haven't got gb.qt4 but only gb.qt >> >> > > Florent talks about compiling Gambas 2 from the *.tar.bz2 sources, whereas > Doriano talks about compiling Gambas 3 from the subversion repository! > Yes - sorry. I was so deep inside my problems that I made a wrong mental connection. > Be careful! > > To Doriano: if you have a file instead of a symbolic link, then I think this > is a uncompatibility problem between your subversion client and the > sourceforge subversion server. How do you checkout? > Hm - I did not use svn, I downloaded a tarball from surceforge. Here at home I can not connect to internet, so I downloaded a .tar.gz file and extracted it into my machine. The first time sourceforge gave me a file 400Mib long, the second time something else went wrong, it seems. Now, the single file that should be a link it's easy to correct. But, a line saying "link ../component.am" in the middle of a makefile is different: the makefile is generated by ./configure; where are the instructions that make configure think to do such a thing? Otherwise, I can give up for today, and try to download something else next week. I am reluctant to use svn because I must put my hands onto a production machine: it's not terrible, but at first, I decided not to do it: to download a tarball should be trivial. Regards, Doriano From ea7dfh at ...2382... Sun Jul 25 09:52:24 2010 From: ea7dfh at ...2382... (EA7DFH) Date: Sun, 25 Jul 2010 09:52:24 +0200 Subject: [Gambas-user] endoftheinternet.com In-Reply-To: References: <201007241805.57307.gambas@...1...> <4C4B61D1.3030001@...2382...> Message-ID: <4C4BED38.30308@...2382...> El 25/07/10 02:56, Fabien Bodard escribi?: > lol it seem to be a joke ... intenet have no end... > > 2010/7/24 EA7DFH : > >> >> Hey, what's up? >> >> Surprised when testing Gambas 2.21... When I do open the >> "Project->Create->Installation Package" menu, in the Website field there >> is a pre-filled address in all my projects: http://www.endoftheinternet.com/ >> >> Is this a joke? Or is it an unknown virus?? Really confused. >> >> Hope there is an explanation for this :-( >> Not very funny >> >> Regards >> -- >> Jesus, EA7DFH >> >> Of course. I was joking, too! -but that site isn't very confident to me... Regards -- Jesus, EA7DFH From rterry at ...1946... Sun Jul 25 12:24:21 2010 From: rterry at ...1946... (richard terry) Date: Sun, 25 Jul 2010 20:24:21 +1000 Subject: [Gambas-user] pdf component question Message-ID: <201007252024.21928.rterry@...1946...> I wondered where the full documentation is for this compoent. The pdf viewer will do things like hightlight test you want to search for, but I wondered if there is a machanism of 'going to' the first occurrence. There is a couple of goto properties, but the mini-help which come up but no explanation of how to use them. Regards Richard From gambas at ...1... Sun Jul 25 12:54:43 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 25 Jul 2010 12:54:43 +0200 Subject: [Gambas-user] BUG Install on mandriva In-Reply-To: <4C4BD58C.20305@...1909...> References: <4C49A358.6000307@...2465...> <201007250138.04783.gambas@...1...> <4C4BD58C.20305@...1909...> Message-ID: <201007251254.43965.gambas@...1...> > Beno?t Minisini ha scritto: > >> Sorry, but the sources haven't got gb.qt4 but only gb.qt > > > > Florent talks about compiling Gambas 2 from the *.tar.bz2 sources, > > whereas Doriano talks about compiling Gambas 3 from the subversion > > repository! > > Yes - sorry. I was so deep inside my problems that I made a wrong mental > connection. > > > Be careful! > > > > To Doriano: if you have a file instead of a symbolic link, then I think > > this is a uncompatibility problem between your subversion client and the > > sourceforge subversion server. How do you checkout? > > Hm - I did not use svn, I downloaded a tarball from surceforge. Here at > home I can not connect to internet, so I downloaded a .tar.gz file and > extracted it into my machine. The first time sourceforge gave me a file > 400Mib long, the second time something else went wrong, it seems. > > Now, the single file that should be a link it's easy to correct. But, a > line saying "link ../component.am" in the middle of a makefile is > different: the makefile is generated by ./configure; where are the > instructions that make configure think to do such a thing? Otherwise, I > can give up for today, and try to download something else next week. I > am reluctant to use svn because I must put my hands onto a production > machine: it's not terrible, but at first, I decided not to do it: to > download a tarball should be trivial. > > Regards, > Doriano > I see: you must use a svn client to extract the sources. What you are downloading is an image of the subversion repository, which is the way the subversion server internally stores the data. Useful if you want to duplicate the repository, not useful if you want to compile the sources. You can do the checkout, and then compress it into a *.tag.gz before bringing it home. Regards, -- Beno?t Minisini From gambas at ...1... Sun Jul 25 12:59:43 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 25 Jul 2010 12:59:43 +0200 Subject: [Gambas-user] endoftheinternet.com In-Reply-To: References: <201007241805.57307.gambas@...1...> <4C4B61D1.3030001@...2382...> Message-ID: <201007251259.43569.gambas@...1...> > lol it seem to be a joke ... intenet have no end... > Mmm. Every project now will have this link by default! -- Beno?t Minisini From gambas.fr at ...626... Sun Jul 25 14:15:13 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 25 Jul 2010 14:15:13 +0200 Subject: [Gambas-user] endoftheinternet.com In-Reply-To: <201007251259.43569.gambas@...1...> References: <201007241805.57307.gambas@...1...> <4C4B61D1.3030001@...2382...> <201007251259.43569.gambas@...1...> Message-ID: Le 25 juillet 2010 12:59, Beno?t Minisini a ?crit : >> lol it seem to be a joke ... intenet have no end... >> > > Mmm. Every project now will have this link by default! it's better than a 404 error page ! > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Sun Jul 25 14:20:24 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 25 Jul 2010 14:20:24 +0200 Subject: [Gambas-user] Moving masked and borderless form window In-Reply-To: References: Message-ID: with the mouse events ....i think there is some examples in the ide examples... 2010/7/23 M. Cs. : > How can I move a form window if it has a mask, and no borders? > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From lordheavym at ...626... Sun Jul 25 14:34:57 2010 From: lordheavym at ...626... (Laurent Carlier) Date: Sun, 25 Jul 2010 14:34:57 +0200 Subject: [Gambas-user] endoftheinternet.com In-Reply-To: References: <201007241805.57307.gambas@...1...> <201007251259.43569.gambas@...1...> Message-ID: <201007251434.57262.lordheavym@...626...> Le dimanche 25 juillet 2010 14:15:13, Fabien Bodard a ?crit : > Le 25 juillet 2010 12:59, Beno?t Minisini > > a ?crit : > >> lol it seem to be a joke ... intenet have no end... > > > > Mmm. Every project now will have this link by default! > > it's better than a 404 error page ! > I've got lot of hesitations, localhost ? gambas homepage ? I've choose a funny default homepage, instead of a blank one, the end of internet ! If someone got a better idea, just send a patch :-) ++ From svitoos at ...626... Sun Jul 25 14:41:36 2010 From: svitoos at ...626... (svitoos) Date: Sun, 25 Jul 2010 16:41:36 +0400 Subject: [Gambas-user] Gambas3 project - hidden sources directory. Why? Message-ID: <4C4C3100.8010000@...626...> Why store the source code in a hidden directory? Why hide it open source? :-( From gambas at ...1... Sun Jul 25 14:47:48 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 25 Jul 2010 14:47:48 +0200 Subject: [Gambas-user] Gambas3 project - hidden sources directory. Why? In-Reply-To: <4C4C3100.8010000@...626...> References: <4C4C3100.8010000@...626...> Message-ID: <201007251447.48892.gambas@...1...> > Why store the source code in a hidden directory? > Why hide it open source? :-( > The directory is not really hidden, its name just begins with a dot! I did that because all non-hidden files and directories are considered data files that must be stored in the final "executable". Hidden directories are non-data files. Some of them go to the executable ('.gambas', '.lang'), others don't ('.src'). Regards, -- Beno?t Minisini From gambas.fr at ...626... Sun Jul 25 14:53:02 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 25 Jul 2010 14:53:02 +0200 Subject: [Gambas-user] Gambas3 project - hidden sources directory. Why? In-Reply-To: <4C4C3100.8010000@...626...> References: <4C4C3100.8010000@...626...> Message-ID: it's not because the directory is hidden that you are not allowed to see and modify the sources... in fact in reallity the directory is not hidden but have just a dot before the name , but by convention these directory are considered like hidden by the files broswer. try to look a gambas project with Midnight commander (mc) for the compiler and the archiver it say to gambas what file to store in the executable archive... so all files with not a dot in the beginning of the name. 2010/7/25 svitoos : > Why store the source code in a hidden directory? > Why hide it open source? :-( > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Sun Jul 25 14:53:37 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 25 Jul 2010 14:53:37 +0200 Subject: [Gambas-user] Gambas3 project - hidden sources directory. Why? In-Reply-To: References: <4C4C3100.8010000@...626...> Message-ID: lool 2010/7/25 Fabien Bodard : > it's not because the directory is hidden that you are not allowed to > see and modify the sources... in fact in reallity the directory is not > hidden but have just a dot before the name , but by convention these > directory are considered like hidden by the files broswer. try to look > a gambas project with Midnight commander (mc) > for the compiler and the archiver it say to gambas what file to store > in the executable archive... so all files with not a dot in the > beginning of the name. > > 2010/7/25 svitoos : >> Why store the source code in a hidden directory? >> Why hide it open source? :-( >> >> ------------------------------------------------------------------------------ >> This SF.net email is sponsored by Sprint >> What will you do first with EVO, the first 4G phone? >> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > From gambas.fr at ...626... Sun Jul 25 14:54:05 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 25 Jul 2010 14:54:05 +0200 Subject: [Gambas-user] Gambas3 project - hidden sources directory. Why? In-Reply-To: References: <4C4C3100.8010000@...626...> Message-ID: j'ai honte de mon anglais ! 2010/7/25 Fabien Bodard : > lool > > 2010/7/25 Fabien Bodard : >> it's not because the directory is hidden that you are not allowed to >> see and modify the sources... in fact in reallity the directory is not >> hidden but have just a dot before the name , but by convention these >> directory are considered like hidden by the files broswer. try to look >> a gambas project with Midnight commander (mc) >> for the compiler and the archiver it say to gambas what file to store >> in the executable archive... so all files with not a dot in the >> beginning of the name. >> >> 2010/7/25 svitoos : >>> Why store the source code in a hidden directory? >>> Why hide it open source? :-( >>> >>> ------------------------------------------------------------------------------ >>> This SF.net email is sponsored by Sprint >>> What will you do first with EVO, the first 4G phone? >>> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> > From jussi.lahtinen at ...626... Sun Jul 25 15:44:58 2010 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 25 Jul 2010 16:44:58 +0300 Subject: [Gambas-user] Gambas3 project - hidden sources directory. Why? In-Reply-To: References: <4C4C3100.8010000@...626...> Message-ID: What? Is there any other ways to hide file/folder in Linux? Jussi On Sun, Jul 25, 2010 at 15:53, Fabien Bodard wrote: > it's not because the directory is hidden that you are not allowed to > see and modify the sources... in fact in reallity the directory is not > hidden but have just a dot before the name , but by convention these > directory are considered like hidden by the files broswer. try to look > a gambas project with Midnight commander (mc) > for the compiler and the archiver it say to gambas what file to store > in the executable archive... so all files with not a dot in the > beginning of the name. > > 2010/7/25 svitoos : >> Why store the source code in a hidden directory? >> Why hide it open source? :-( >> >> ------------------------------------------------------------------------------ >> This SF.net email is sponsored by Sprint >> What will you do first with EVO, the first 4G phone? >> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first >> _______________________________________________ >> 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 Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Sun Jul 25 15:59:32 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 25 Jul 2010 15:59:32 +0200 Subject: [Gambas-user] Gambas3 project - hidden sources directory. Why? In-Reply-To: References: <4C4C3100.8010000@...626...> Message-ID: no :)... since many years i've think there is another way ... but i was in the false 2010/7/25 Jussi Lahtinen : > What? Is there any other ways to hide file/folder in Linux? > > Jussi > > > On Sun, Jul 25, 2010 at 15:53, Fabien Bodard wrote: >> it's not because the directory is hidden that you are not allowed to >> see and modify the sources... in fact in reallity the directory is not >> hidden but have just a dot before the name , but by convention these >> directory are considered like hidden by the files broswer. try to look >> a gambas project with Midnight commander (mc) >> for the compiler and the archiver it say to gambas what file to store >> in the executable archive... so all files with not a dot in the >> beginning of the name. >> >> 2010/7/25 svitoos : >>> Why store the source code in a hidden directory? >>> Why hide it open source? :-( >>> >>> ------------------------------------------------------------------------------ >>> This SF.net email is sponsored by Sprint >>> What will you do first with EVO, the first 4G phone? >>> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first >>> _______________________________________________ >>> 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 Sprint >> What will you do first with EVO, the first 4G phone? >> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first >> _______________________________________________ >> 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 Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From svitoos at ...626... Sun Jul 25 15:59:58 2010 From: svitoos at ...626... (svitoos) Date: Sun, 25 Jul 2010 17:59:58 +0400 Subject: [Gambas-user] Gambas3 project - hidden sources directory. Why? In-Reply-To: <201007251447.48892.gambas@...1...> References: <4C4C3100.8010000@...626...> <201007251447.48892.gambas@...1...> Message-ID: <4C4C435E.4040206@...626...> 25.07.2010 16:47, Beno?t Minisini ?????: >> Why store the source code in a hidden directory? >> Why hide it open source? :-( >> >> > The directory is not really hidden, its name just begins with a dot! > > I did that because all non-hidden files and directories are considered data > files that must be stored in the final "executable". Hidden directories are > non-data files. Some of them go to the executable ('.gambas', '.lang'), others > don't ('.src'). > > Regards, > > Really hidden in 'New File/Existing' Dialog. It is necessary to click 'View hidden files'. And also look at '. gambas' and other unnecessary directories. A separate source directory is more convenient than dump files in the gambas2 project directory. But it would be better without dot. From doriano.blengino at ...1909... Sun Jul 25 19:50:48 2010 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Sun, 25 Jul 2010 19:50:48 +0200 Subject: [Gambas-user] BUG Install on mandriva In-Reply-To: <201007251254.43965.gambas@...1...> References: <4C49A358.6000307@...2465...> <201007250138.04783.gambas@...1...> <4C4BD58C.20305@...1909...> <201007251254.43965.gambas@...1...> Message-ID: <4C4C7978.1010708@...1909...> Beno?t Minisini ha scritto: >> Now, the single file that should be a link it's easy to correct. But, a >> line saying "link ../component.am" in the middle of a makefile is >> different: the makefile is generated by ./configure; where are the >> instructions that make configure think to do such a thing? Otherwise, I >> can give up for today, and try to download something else next week. I >> am reluctant to use svn because I must put my hands onto a production >> machine: it's not terrible, but at first, I decided not to do it: to >> download a tarball should be trivial. >> >> > I see: you must use a svn client to extract the sources. > > What you are downloading is an image of the subversion repository, which is > the way the subversion server internally stores the data. Useful if you want > to duplicate the repository, not useful if you want to compile the sources. > > You can do the checkout, and then compress it into a *.tag.gz before bringing > it home. > Well: ignoring as usual all the advices I've received (my head is harder than my computer screen), I managed to compile gambas3. Some comments follow, and by no mean they have the sole purpose to criticize; instead, giving that gambas3 is still open to modifications, may be that some idea can be stimulating. Me and others got caught in the same pit - building of gambas3.gambas succeeds even if some required component is missing. While it is true that examining logs or paying attention to the compilation process this pit could be avoided, may be that a better-planned compilation process could solve more coherently. Just a thought. After having launched gambas3 I went to the preferences to see how much I could taylor it to my needs. It seems that the preferred way to set preferences is to let the user choose among a few choices. For some things like the font size, "Normal, small, smaller" could be enough (but not always); when choosing the terminal emulator I see konsole, gnome terminal, xfce, xterm. No one of them is installed, in my (strictly mine) opinion, they all suck. Then I loaded my experimental "Gambas drum machine", where I am developing an ALSA interface class. The first run attempt gave me an error because, it seems, there is no more support for reading/writing to pointers. Is this planned? This seems to be a back-compatibility break. While searching for help about that, I noticed that there is no help around - I will have to get it separately. Then I thought "ok, let's use the new gambas3 capabilities...". But it would be better to have a way to write code compatible to both gambas2 and gambas3 (conditional compilation?). Unfortunately, the CAlsa class is full of pointer playing. Anyway, I tried to do a little step ahead. I have a call to initialize alsa: int snd_seq_open(snd_seq_t **seqp, const char * name, Int streams, Int mode); The first parameter requires a pointer to a pointer, and this is why in the gambas2 version I used a pointer to read from. But now, I wrote: Private Extern snd_seq_open(ByRef Pseq As Pointer, name As String, streams As Integer, mode As Integer) As Integer This declaration is later used by: err = snd_seq_open(handle, "default", SND_SEQ_OPEN_DUPLEX, 0) --or-- err = snd_seq_open(byref handle, "default", SND_SEQ_OPEN_DUPLEX, 0) Both statements die with error #6. This two lines work: ret = VarPtr(handle) err = snd_seq_open(ret, "default", SND_SEQ_OPEN_DUPLEX, 0) It seems that "byref" is ignored in external declaration, but no error is generated. Now alsa is correctly initialized, but the rest of the class relies heavily on pointers, and I am not ready to convert all that mess into gambas structures (have no information about this topic). Moreover, doing so would make the source incompatible with gambas2, and I am not sure about alignment problems. The pointer way can be ugly, but still versatile. What should I do now? Regards, Doriano From gambas at ...1... Sun Jul 25 20:25:05 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 25 Jul 2010 20:25:05 +0200 Subject: [Gambas-user] BUG Install on mandriva In-Reply-To: <4C4C7978.1010708@...1909...> References: <4C49A358.6000307@...2465...> <201007251254.43965.gambas@...1...> <4C4C7978.1010708@...1909...> Message-ID: <201007252025.05228.gambas@...1...> > Beno?t Minisini ha scritto: > >> Now, the single file that should be a link it's easy to correct. But, a > >> line saying "link ../component.am" in the middle of a makefile is > >> different: the makefile is generated by ./configure; where are the > >> instructions that make configure think to do such a thing? Otherwise, I > >> can give up for today, and try to download something else next week. I > >> am reluctant to use svn because I must put my hands onto a production > >> machine: it's not terrible, but at first, I decided not to do it: to > >> download a tarball should be trivial. > > > > I see: you must use a svn client to extract the sources. > > > > What you are downloading is an image of the subversion repository, which > > is the way the subversion server internally stores the data. Useful if > > you want to duplicate the repository, not useful if you want to compile > > the sources. > > > > You can do the checkout, and then compress it into a *.tag.gz before > > bringing it home. > > Well: ignoring as usual all the advices I've received (my head is harder > than my computer screen), I managed to compile gambas3. Some comments > follow, and by no mean they have the sole purpose to criticize; instead, > giving that gambas3 is still open to modifications, may be that some > idea can be stimulating. > > Me and others got caught in the same pit - building of gambas3.gambas > succeeds even if some required component is missing. While it is true > that examining logs or paying attention to the compilation process this > pit could be avoided, may be that a better-planned compilation process > could solve more coherently. Just a thought. Yes, but how? If the compilation of the IDE fails, this is not an error. You may want to compile gambas without the IDE. I have started to collect some warnings so that they are printed at the end of the configuration process. Maybe I could add a warning if for sure the IDE won't be compiled because some component is missing? > > After having launched gambas3 I went to the preferences to see how much > I could taylor it to my needs. It seems that the preferred way to set > preferences is to let the user choose among a few choices. For some > things like the font size, "Normal, small, smaller" could be enough (but > not always); I don't understand: what is the problem with that configuration? > when choosing the terminal emulator I see konsole, gnome > terminal, xfce, xterm. No one of them is installed, in my (strictly > mine) opinion, they all suck. No problem, this option is not used anymore! Instead the xdg scripts are used, so that the opened terminal is the one associated without your desktop. I don't know which terminal will be used on your system then. > > Then I loaded my experimental "Gambas drum machine", where I am > developing an ALSA interface class. The first run attempt gave me an > error because, it seems, there is no more support for reading/writing to > pointers. > Is this planned? The way for accessing memory has changed in Gambas 3. 1) The old way, like Gambas 2: use the MEMORY keyword to open a stream on a memory address. 2) The new way, a bunch of functions to read directly a value at a memory address: BytePtr(), ShortPtr(), IntPtr(), and so on. 3) Support for C-like structures with the STRUCT keyword. Read the wiki about all these keywords and functions for the details. > This seems to be a back-compatibility break. Yes it is. But no features disappeared and new ones were added, so logically you will see the light sooner or later! > While searching for help about that, I noticed that there is no help > around - I will have to get it separately. As generating an online help is time-consuming and always out-of-date, I don't do it anymore. The help needs internet now. But: 1) This may change in the future, after the first release candidate. 2) You can use a web spider to generate the online help, but it takes a long time, there are a lot of pages, even if you download the english pages only. > Then I thought "ok, let's use > the new gambas3 capabilities...". But it would be better to have a way > to write code compatible to both gambas2 and gambas3 (conditional > compilation?). Alas it is more complex than that. Behind most of the syntax changes you have an internal feature change. I have just the time to enhance gambas, but hardly the time to write a Gambas2 -> Gambas3 translator! But you can help there: by just taking notes while doing the conversion, we will be able to write a document about what to do to convert a Gambas 2 project to a Gambas 3 project. > Unfortunately, the CAlsa class is full of pointer > playing. Anyway, I tried to do a little step ahead. I have a call to > initialize alsa: > > int snd_seq_open(snd_seq_t **seqp, const char * name, Int streams, > Int mode); > > The first parameter requires a pointer to a pointer, and this is why in > the gambas2 version I used a pointer to read from. But now, I wrote: > > Private Extern snd_seq_open(ByRef Pseq As Pointer, name As String, > streams As Integer, mode As Integer) As Integer > > This declaration is later used by: > > err = snd_seq_open(handle, "default", SND_SEQ_OPEN_DUPLEX, 0) > --or-- > err = snd_seq_open(byref handle, "default", SND_SEQ_OPEN_DUPLEX, 0) > > Both statements die with error #6. This two lines work: > > ret = VarPtr(handle) > err = snd_seq_open(ret, "default", SND_SEQ_OPEN_DUPLEX, 0) > > It seems that "byref" is ignored in external declaration, but no error > is generated. Yes, Byref is a non-sense for extern declaration. The compiler should raise an error and not ignore it. Apparently, snd_seq_t is an opaque type to a structure. A pointer to a pointer is just a Pointer in Gambas. So your declaration must be: Private Extern snd_seq_open(Pseq As Pointer, name As String, streams As Integer, mode As Integer) As Integer > > Now alsa is correctly initialized, but the rest of the class relies > heavily on pointers, and I am not ready to convert all that mess into > gambas structures (have no information about this topic). Read the wiki documentation on structures first. > Moreover, > doing so would make the source incompatible with gambas2, and I am not > sure about alignment problems. The pointer way can be ugly, but still > versatile. Variables and structure fields are never packed, but aligned to a memory boundary required by its memory length (a Short is stored at an odd address, a Integer at an address which is a multiple of four, and so on...). The declaration is respected, so you may have holes in your structure, if, for example, you declare a Byte and just after an Integer. The *big* problem is that the compiler may reorder the structure fields, and that process is not standardized nor documented. Eventually if that is a big problem, there may be a solution in the libffi library that apparently can send a structure to a C function by taking that problem into account. But that library is far less documented by Gambas, so you see the difficulty. :-) > > What should I do now? > Please read all the documentation about structures, new Gambas functions related to extern functions... Then come back with more precise questions! Regards, -- Beno?t Minisini From doriano.blengino at ...1909... Sun Jul 25 22:57:17 2010 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Sun, 25 Jul 2010 22:57:17 +0200 Subject: [Gambas-user] BUG Install on mandriva In-Reply-To: <201007252025.05228.gambas@...1...> References: <4C49A358.6000307@...2465...> <201007251254.43965.gambas@...1...> <4C4C7978.1010708@...1909...> <201007252025.05228.gambas@...1...> Message-ID: <4C4CA52D.6070809@...1909...> Beno?t Minisini ha scritto: >> Beno?t Minisini ha scritto: >> >> >> Me and others got caught in the same pit - building of gambas3.gambas >> succeeds even if some required component is missing. While it is true >> that examining logs or paying attention to the compilation process this >> pit could be avoided, may be that a better-planned compilation process >> could solve more coherently. Just a thought. >> > > Yes, but how? If the compilation of the IDE fails, this is not an error. You > may want to compile gambas without the IDE. > > I have started to collect some warnings so that they are printed at the end of > the configuration process. Maybe I could add a warning if for sure the IDE > won't be compiled because some component is missing? > I mean that gambas3.gambas should not be created, and therefore not installed, if it is disabled, much the same as other components. Me and the others who saw "no project in..." were fooled by this: if you compile a thing, may be a C source or a Gambas source, the compilation stops if the target can not be built - the compiler does not generate an invalid executable/object, it complains with an error and refuses to go on. It does matter little if this step (compiling gambas3.gambas) is performed in the installation procedure. As I said before, anyway, this is just a thought - as long as there is someone who can say "yes - you need webkit", it is not important... >> After having launched gambas3 I went to the preferences to see how much >> I could taylor it to my needs. It seems that the preferred way to set >> preferences is to let the user choose among a few choices. For some >> things like the font size, "Normal, small, smaller" could be enough (but >> not always); >> > > I don't understand: what is the problem with that configuration? > Simply that if someone wants "bigger"... no way. Only Normal, small or smaller. In this very case, a "font size preference" would cover any possible need. Again, it is just a thought, may be that there are other reasons behind this choice, but I've seen persons using very big fonts because of their handicaps, and also I have used some stupid X servers where a choice of "bigger than normal" would have been useful. Are you afraid that a user can choose a font size of 6 when he needs 18? > The way for accessing memory has changed in Gambas 3. > > 1) The old way, like Gambas 2: use the MEMORY keyword to open a stream on a > memory address. > > 2) The new way, a bunch of functions to read directly a value at a memory > address: BytePtr(), ShortPtr(), IntPtr(), and so on. > > 3) Support for C-like structures with the STRUCT keyword. > > Read the wiki about all these keywords and functions for the details. > > >> This seems to be a back-compatibility break. >> > > Yes it is. But no features disappeared and new ones were added, so logically > you will see the light sooner or later! > It is not my problem, I can write and rewrite my code as many time I want. But if I write code for gambas3 only, and want to publish it, all the other users which still have gambas2 will be left behind. It is true that gambas2 will, one day, go to retire, but when? > >> Then I thought "ok, let's use >> the new gambas3 capabilities...". But it would be better to have a way >> to write code compatible to both gambas2 and gambas3 (conditional >> compilation?). >> > > Alas it is more complex than that. Behind most of the syntax changes you have > an internal feature change. I have just the time to enhance gambas, but hardly > the time to write a Gambas2 -> Gambas3 translator! > > But you can help there: by just taking notes while doing the conversion, we > will be able to write a document about what to do to convert a Gambas 2 > project to a Gambas 3 project. > Uhm, just after the previous email, I realized this is impossible. Conditional compilation is not supported by gambas2, so there is no point in writing a program with conditional defines in it. It would be incompatible with gambas2 anyway. Of course, I can take annotation about the required modifications but, at this moment, the only difference is that read/write from #pointer does not work anymore. >> >> int snd_seq_open(snd_seq_t **seqp, const char * name, Int streams, >> Int mode); >> >> The first parameter requires a pointer to a pointer, and this is why in >> the gambas2 version I used a pointer to read from. But now, I wrote: >> >> Private Extern snd_seq_open(ByRef Pseq As Pointer, name As String, >> streams As Integer, mode As Integer) As Integer >> >> This declaration is later used by: >> >> err = snd_seq_open(handle, "default", SND_SEQ_OPEN_DUPLEX, 0) >> --or-- >> err = snd_seq_open(byref handle, "default", SND_SEQ_OPEN_DUPLEX, 0) >> >> Both statements die with error #6. This two lines work: >> >> ret = VarPtr(handle) >> err = snd_seq_open(ret, "default", SND_SEQ_OPEN_DUPLEX, 0) >> >> It seems that "byref" is ignored in external declaration, but no error >> is generated. >> > > Yes, Byref is a non-sense for extern declaration. The compiler should raise an > error and not ignore it. > Why you say so? This is one of many situations where a pointer in C can be translated with BYREF in gambas. I don't think that byref for external declaration is a non-sense. Moreover, a byref declaration still carries a type definition, where a pointer looses this information. A C "float *value" is better translated with "byref value as double", than a generic "value as pointer". > Apparently, snd_seq_t is an opaque type to a structure. A pointer to a pointer > is just a Pointer in Gambas. So your declaration must be: > > Private Extern snd_seq_open(Pseq As Pointer, name As String, streams As > Integer, mode As Integer) As Integer > I don't agree. As before, a pointer in C is often used because the lack of "byref" (or "var" in pascal). By defining the external function as "byref handle as pointer", in a single line I can define that the function writes into my pointer. >> Moreover, >> doing so would make the source incompatible with gambas2, and I am not >> sure about alignment problems. The pointer way can be ugly, but still >> versatile. >> > > Variables and structure fields are never packed, but aligned to a memory > boundary required by its memory length (a Short is stored at an odd address, a > Integer at an address which is a multiple of four, and so on...). The > declaration is respected, so you may have holes in your structure, if, for > example, you declare a Byte and just after an Integer. > > The *big* problem is that the compiler may reorder the structure fields, and > that process is not standardized nor documented. Eventually if that is a big > problem, there may be a solution in the libffi library that apparently can > send a structure to a C function by taking that problem into account. But that > library is far less documented by Gambas, so you see the difficulty. :-) > I see it. This is why I stressed on pointers (or MEMORY keyword, which I don't know). Another way is to have a PACKED keyword, so the user can put holes where needed. Kind of a dirty thing... but I don't believe that libffi can do magic - if a compiler chooses to reorder the fields, libffi can not know. I say this because I have seen the alsa structures - there is nothing that prevents a compiler to do strange things, but libasound must be compatible with applications, at least on a inter-architecture basis. >> What should I do now? >> >> > > Please read all the documentation about structures, new Gambas functions > related to extern functions... Then come back with more precise questions! > I was referring to use or not use some new gambas3 features. I am not really interested in writing a gambas drum machine - it is only a tutorial on external interfacing. Given that gambas2 and gambas3 has no points in common, it is a hard choice. If the pointer interface was retained in gambas3, one could explain things that are valid for both, and then explain the new features in gambas3. But now, there are two tutorials... one for gambas2 and one for gambas3. Regards, Doriano From gambas at ...1... Sun Jul 25 23:17:40 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 25 Jul 2010 23:17:40 +0200 Subject: [Gambas-user] BUG Install on mandriva In-Reply-To: <4C4CA52D.6070809@...1909...> References: <4C49A358.6000307@...2465...> <201007252025.05228.gambas@...1...> <4C4CA52D.6070809@...1909...> Message-ID: <201007252317.40547.gambas@...1...> > > I mean that gambas3.gambas should not be created, and therefore not > installed, if it is disabled, much the same as other components. Me and > the others who saw "no project in..." were fooled by this: if you > compile a thing, may be a C source or a Gambas source, the compilation > stops if the target can not be built - the compiler does not generate an > invalid executable/object, it complains with an error and refuses to go > on. It does matter little if this step (compiling gambas3.gambas) is > performed in the installation procedure. As I said before, anyway, this > is just a thought - as long as there is someone who can say "yes - you > need webkit", it is not important... Ha, ok, I see! This is a mistake in the installation scripts. You are right, if the compilation fails, no executable should be made! > > >> After having launched gambas3 I went to the preferences to see how much > >> I could taylor it to my needs. It seems that the preferred way to set > >> preferences is to let the user choose among a few choices. For some > >> things like the font size, "Normal, small, smaller" could be enough (but > >> not always); > > > > I don't understand: what is the problem with that configuration? > > Simply that if someone wants "bigger"... no way. Only Normal, small or > smaller. In this very case, a "font size preference" would cover any > possible need. Again, it is just a thought, may be that there are other > reasons behind this choice, but I've seen persons using very big fonts > because of their handicaps, and also I have used some stupid X servers > where a choice of "bigger than normal" would have been useful. Are you > afraid that a user can choose a font size of 6 when he needs 18? Yes, the better should be a fully selectable size. > > > The way for accessing memory has changed in Gambas 3. > > > > 1) The old way, like Gambas 2: use the MEMORY keyword to open a stream on > > a memory address. > > > > 2) The new way, a bunch of functions to read directly a value at a memory > > address: BytePtr(), ShortPtr(), IntPtr(), and so on. > > > > 3) Support for C-like structures with the STRUCT keyword. > > > > Read the wiki about all these keywords and functions for the details. > > > >> This seems to be a back-compatibility break. > > > > Yes it is. But no features disappeared and new ones were added, so > > logically you will see the light sooner or later! > > It is not my problem, I can write and rewrite my code as many time I > want. But if I write code for gambas3 only, and want to publish it, all > the other users which still have gambas2 will be left behind. It is true > that gambas2 will, one day, go to retire, but when? As soon as gambas 3 is out. I will say this year, but this kind of predictions you know... > > >> Then I thought "ok, let's use > >> the new gambas3 capabilities...". But it would be better to have a way > >> to write code compatible to both gambas2 and gambas3 (conditional > >> compilation?). > > > > Alas it is more complex than that. Behind most of the syntax changes you > > have an internal feature change. I have just the time to enhance gambas, > > but hardly the time to write a Gambas2 -> Gambas3 translator! > > > > But you can help there: by just taking notes while doing the conversion, > > we will be able to write a document about what to do to convert a Gambas > > 2 project to a Gambas 3 project. > > Uhm, just after the previous email, I realized this is impossible. > Conditional compilation is not supported by gambas2, so there is no > point in writing a program with conditional defines in it. It would be > incompatible with gambas2 anyway. Of course, I can take annotation about > the required modifications but, at this moment, the only difference is > that read/write from #pointer does not work anymore. You just have to use the MEMORY instruction to get a memory stream, and replace the #pointer by #memoryStream. > > >> int snd_seq_open(snd_seq_t **seqp, const char * name, Int streams, > >> > >> Int mode); > >> > >> The first parameter requires a pointer to a pointer, and this is why in > >> > >> the gambas2 version I used a pointer to read from. But now, I wrote: > >> Private Extern snd_seq_open(ByRef Pseq As Pointer, name As String, > >> > >> streams As Integer, mode As Integer) As Integer > >> > >> This declaration is later used by: > >> err = snd_seq_open(handle, "default", SND_SEQ_OPEN_DUPLEX, 0) > >> > >> --or-- > >> > >> err = snd_seq_open(byref handle, "default", SND_SEQ_OPEN_DUPLEX, > >> 0) > >> > >> Both statements die with error #6. This two lines work: > >> ret = VarPtr(handle) > >> err = snd_seq_open(ret, "default", SND_SEQ_OPEN_DUPLEX, 0) > >> > >> It seems that "byref" is ignored in external declaration, but no error > >> is generated. > > > > Yes, Byref is a non-sense for extern declaration. The compiler should > > raise an error and not ignore it. > > Why you say so? This is one of many situations where a pointer in C can > be translated with BYREF in gambas. I don't think that byref for > external declaration is a non-sense. It is a non-sense in a Gambas way, because ByRef does not use pointers in Gambas. See that page for more details: http://gambasdoc.org/help/doc/byref > Moreover, a byref declaration still > carries a type definition, where a pointer looses this information. A C > "float *value" is better translated with "byref value as double", than a > generic "value as pointer". > > > Apparently, snd_seq_t is an opaque type to a structure. A pointer to a > > pointer > > > > is just a Pointer in Gambas. So your declaration must be: > > Private Extern snd_seq_open(Pseq As Pointer, name As String, streams As > > > > Integer, mode As Integer) As Integer > > I don't agree. As before, a pointer in C is often used because the lack > of "byref" (or "var" in pascal). By defining the external function as > "byref handle as pointer", in a single line I can define that the > function writes into my pointer. You must do that then: Private Extern snd_seq_open(Pseq As Pointer, name As String, streams As Integer, mode As Integer) As Integer snd_seq_open(VarPtr(handle), ...) VarPtr() must be used when a C-function argument is actually a pointer to a variable that will be modified by the called function. > > >> Moreover, > >> doing so would make the source incompatible with gambas2, and I am not > >> sure about alignment problems. The pointer way can be ugly, but still > >> versatile. > > > > Variables and structure fields are never packed, but aligned to a memory > > boundary required by its memory length (a Short is stored at an odd > > address, a Integer at an address which is a multiple of four, and so > > on...). The declaration is respected, so you may have holes in your > > structure, if, for example, you declare a Byte and just after an > > Integer. > > > > The *big* problem is that the compiler may reorder the structure fields, > > and that process is not standardized nor documented. Eventually if that > > is a big problem, there may be a solution in the libffi library that > > apparently can send a structure to a C function by taking that problem > > into account. But that library is far less documented by Gambas, so you > > see the difficulty. :-) > > I see it. This is why I stressed on pointers (or MEMORY keyword, which I > don't know). Another way is to have a PACKED keyword, so the user can > put holes where needed. Kind of a dirty thing... but I don't believe > that libffi can do magic - if a compiler chooses to reorder the fields, > libffi can not know. I say this because I have seen the alsa structures > - there is nothing that prevents a compiler to do strange things, but > libasound must be compatible with applications, at least on a > inter-architecture basis. I think so. And PACKED can be implemented, but then your sources won't work anymore on ARM architecture, where non-aligned access are forbidden and lead to a bus fault! > > >> What should I do now? > > > > Please read all the documentation about structures, new Gambas functions > > related to extern functions... Then come back with more precise > > questions! > > I was referring to use or not use some new gambas3 features. I am not > really interested in writing a gambas drum machine - it is only a > tutorial on external interfacing. Given that gambas2 and gambas3 has no > points in common, it is a hard choice. If the pointer interface was > retained in gambas3, one could explain things that are valid for both, > and then explain the new features in gambas3. But now, there are two > tutorials... one for gambas2 and one for gambas3. Sorry for that! Regards, -- Beno?t Minisini From kevinfishburne at ...1887... Mon Jul 26 05:42:59 2010 From: kevinfishburne at ...1887... (kevinfishburne) Date: Sun, 25 Jul 2010 20:42:59 -0700 (PDT) Subject: [Gambas-user] 2-2.21.0: CheckBox_Click event raises twice on mouseclick, once on space bar Message-ID: <29263179.post@...1379...> I have a checkbox control. I'd like it to call a subroutine whenever it's checked or unchecked. The code looks like this: PUBLIC SUB CheckBox_Preview_Water_Click() Preview.Refresh END The control and event are on the main form. "Preview" is a module and "Refresh" is the procedure name in it. When I actually click the control it triggers the event, which executes Preview.Refresh. After it finishes Preview.Refresh it returns to the event. Just after executing the END statement of the event the event is immediately called again, as if a second trigger had been queued. This behavior does not occur if I check/uncheck the checkbox using the space bar. Any ideas why this could be happening or how I can circumvent it? It also happened in the previous stable GAMBAS release. ----- Kevin Fishburne, Eight Virtues www: http://sales.eightvirtues.com http://sales.eightvirtues.com e-mail: mailto:sales at ...1887... sales at ...1887... phone: (770) 853-6271 -- View this message in context: http://old.nabble.com/2-2.21.0%3A-CheckBox_Click-event-raises-twice-on-mouseclick%2C-once-on-space-bar-tp29263179p29263179.html Sent from the gambas-user mailing list archive at Nabble.com. From doriano.blengino at ...1909... Mon Jul 26 07:56:51 2010 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Mon, 26 Jul 2010 07:56:51 +0200 Subject: [Gambas-user] BUG Install on mandriva In-Reply-To: <201007252317.40547.gambas@...1...> References: <4C49A358.6000307@...2465...> <201007252025.05228.gambas@...1...> <4C4CA52D.6070809@...1909...> <201007252317.40547.gambas@...1...> Message-ID: <4C4D23A3.4010209@...1909...> Beno?t Minisini ha scritto: > > > You just have to use the MEMORY instruction to get a memory stream, and > replace the #pointer by #memoryStream. > As you already stated, it is necessary to get informed. I will fetch the wiki for that. > > >>>> It seems that "byref" is ignored in external declaration, but no error >>>> is generated. >>>> >>> Yes, Byref is a non-sense for extern declaration. The compiler should >>> raise an error and not ignore it. >>> >> Why you say so? This is one of many situations where a pointer in C can >> be translated with BYREF in gambas. I don't think that byref for >> external declaration is a non-sense. >> > > It is a non-sense in a Gambas way, because ByRef does not use pointers in > Gambas. See that page for more details: http://gambasdoc.org/help/doc/byref > > ... >> ... >> > You must do that then: > > Private Extern snd_seq_open(Pseq As Pointer, name As String, streams As > Integer, mode As Integer) As Integer > > snd_seq_open(VarPtr(handle), ...) > > VarPtr() must be used when a C-function argument is actually a pointer to a > variable that will be modified by the called function. > I disagree for two or three reasons. First, an external declaration already implies that the declaration refers to something extraneous to gambas, where things are different. This is even more true for gambas, which only needs EXTERN to interface to modules written in other languages, because it has a more natural and efficient way to use its own modules/components. The second reason is that using BYREF in the external declaration, the task of the function is well defined for now and forever. Actually, in that case, BYREF would internally mean something different - but anyway all the declaration takes a totally different way in its implementation. But, at high, logic level, BYREF would keep its intimate meaning. Third, if I can not declare an external parameter with BYREF, I must then use varptr() on every call - this moves the logic from declaration to its usage - and there is more to type on the keyboard. > >> I see it. This is why I stressed on pointers (or MEMORY keyword, which I >> don't know). Another way is to have a PACKED keyword, so the user can >> put holes where needed. Kind of a dirty thing... but I don't believe >> that libffi can do magic - if a compiler chooses to reorder the fields, >> libffi can not know. I say this because I have seen the alsa structures >> - there is nothing that prevents a compiler to do strange things, but >> libasound must be compatible with applications, at least on a >> inter-architecture basis. >> > > I think so. And PACKED can be implemented, but then your sources won't work > anymore on ARM architecture, where non-aligned access are forbidden and lead > to a bus fault! > The same is true with pointers and MEMORY streams. The idea about PACKED is extreme, it lets the programmer do whatever he wants, with all the (few) benefits and (lot of) caveats of such a thing. But are you saying that memory streams have no risk on ARM? The problem is: are you sure that pointers, memory streams and varptr() are needed? Memory streams can be used to peek everywhere in memory, but you know well that this is a non-sense. The only legitimate memory addresses are those returned by some form of alloc(), or indirectly by functions which use, in turn, alloc(), or addresses already in use by variables. All these things could disappear if you implement correctly "byref" and structures, gaining a much more clean design. > >> I was referring to use or not use some new gambas3 features. I am not >> really interested in writing a gambas drum machine - it is only a >> tutorial on external interfacing. Given that gambas2 and gambas3 has no >> points in common, it is a hard choice. If the pointer interface was >> retained in gambas3, one could explain things that are valid for both, >> and then explain the new features in gambas3. But now, there are two >> tutorials... one for gambas2 and one for gambas3. >> > > Sorry for that! > If it was not funny for me to write a tutorial, I didn't start to do it. So, if *two* tutorials have to be written, there is double fun! :-) ...and double time... :-( Regards, Doriano From gambas at ...1... Mon Jul 26 12:45:53 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 26 Jul 2010 12:45:53 +0200 Subject: [Gambas-user] BUG Install on mandriva In-Reply-To: <4C4D23A3.4010209@...1909...> References: <4C49A358.6000307@...2465...> <201007252317.40547.gambas@...1...> <4C4D23A3.4010209@...1909...> Message-ID: <201007261245.53845.gambas@...1...> > > VarPtr() must be used when a C-function argument is actually a pointer to > > a variable that will be modified by the called function. > > I disagree for two or three reasons. First, an external declaration > already implies that the declaration refers to something extraneous to > gambas, where things are different. This is even more true for gambas, > which only needs EXTERN to interface to modules written in other > languages, because it has a more natural and efficient way to use its > own modules/components. > The second reason is that using BYREF in the external declaration, the > task of the function is well defined for now and forever. Actually, in > that case, BYREF would internally mean something different - but anyway > all the declaration takes a totally different way in its implementation. > But, at high, logic level, BYREF would keep its intimate meaning. > Third, if I can not declare an external parameter with BYREF, I must > then use varptr() on every call - this moves the logic from declaration > to its usage - and there is more to type on the keyboard. This is not possible, because Gambas use dynamic linking. You have to specify VarPtr() at function call. Moreover, even if I agree that the ByRef syntax is nicer, it cannot be used there again because of the dynamic linking: ByRef for a Gambas function implies compiling a different code than your ByRef for an extern function, and as Gambas may not know at compile time if a function is extern or "intern", he cannot do that. Moreover, whereas ByRef can be applied to any Gambas assignment expression, VarPtr() can only be applied to a local variable or a global variable of the current class. So... > > >> I see it. This is why I stressed on pointers (or MEMORY keyword, which I > >> don't know). Another way is to have a PACKED keyword, so the user can > >> put holes where needed. Kind of a dirty thing... but I don't believe > >> that libffi can do magic - if a compiler chooses to reorder the fields, > >> libffi can not know. I say this because I have seen the alsa structures > >> - there is nothing that prevents a compiler to do strange things, but > >> libasound must be compatible with applications, at least on a > >> inter-architecture basis. > > > > I think so. And PACKED can be implemented, but then your sources won't > > work anymore on ARM architecture, where non-aligned access are forbidden > > and lead to a bus fault! > > The same is true with pointers and MEMORY streams. The idea about PACKED > is extreme, it lets the programmer do whatever he wants, with all the > (few) benefits and (lot of) caveats of such a thing. But are you saying > that memory streams have no risk on ARM? Yes, because data is read by using memcpy(), not a pointer access. > The problem is: are you sure that pointers, memory streams and varptr() > are needed? Yes. Having a stream allows to use all the stream functions, so it is useful. > Memory streams can be used to peek everywhere in memory, but > you know well that this is a non-sense. The only legitimate memory > addresses are those returned by some form of alloc(), or indirectly by > functions which use, in turn, alloc(), or addresses already in use by > variables. All these things could disappear if you implement correctly > "byref" and structures, gaining a much more clean design. I admit that the design may not be perfect, but again all these syntax cover all the needed features for memory access. This is not just a matter of using one keyword instead of another one. And structures are implemented correctly, except that you cannot pack them. And beware: memory allocated by Alloc() must be freed with Free(), and you must not use Free() to free memory allocated by an extern function! Alloc() does not call the glibc malloc() directly, and Free() does not call the glibc free() directly too. Regards, -- Beno?t Minisini From doriano.blengino at ...1909... Mon Jul 26 13:05:37 2010 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Mon, 26 Jul 2010 13:05:37 +0200 Subject: [Gambas-user] BUG Install on mandriva In-Reply-To: <201007261245.53845.gambas@...1...> References: <4C49A358.6000307@...2465...> <201007252317.40547.gambas@...1...> <4C4D23A3.4010209@...1909...> <201007261245.53845.gambas@...1...> Message-ID: <4C4D6C01.1000703@...1909...> Beno?t Minisini ha scritto: >>> VarPtr() must be used when a C-function argument is actually a pointer to >>> a variable that will be modified by the called function. >>> >> I disagree for two or three reasons. First, an external declaration >> already implies that the declaration refers to something extraneous to >> gambas, where things are different. This is even more true for gambas, >> which only needs EXTERN to interface to modules written in other >> languages, because it has a more natural and efficient way to use its >> own modules/components. >> The second reason is that using BYREF in the external declaration, the >> task of the function is well defined for now and forever. Actually, in >> that case, BYREF would internally mean something different - but anyway >> all the declaration takes a totally different way in its implementation. >> But, at high, logic level, BYREF would keep its intimate meaning. >> Third, if I can not declare an external parameter with BYREF, I must >> then use varptr() on every call - this moves the logic from declaration >> to its usage - and there is more to type on the keyboard. >> > This is not possible, because Gambas use dynamic linking. You have to specify > VarPtr() at function call. > > Moreover, even if I agree that the ByRef syntax is nicer, it cannot be used > there again because of the dynamic linking: ByRef for a Gambas function > implies compiling a different code than your ByRef for an extern function, and > as Gambas may not know at compile time if a function is extern or "intern", he > cannot do that. > I understand. > > I admit that the design may not be perfect, but again all these syntax cover > all the needed features for memory access. This is not just a matter of using > one keyword instead of another one. And structures are implemented correctly, > except that you cannot pack them. > > And beware: memory allocated by Alloc() must be freed with Free(), and you > must not use Free() to free memory allocated by an extern function! Alloc() > does not call the glibc malloc() directly, and Free() does not call the glibc > free() directly too. > I see your point - I will use what's already inside the box. This leads to my last question: how can I download a local copy of the wiki? I tried two or three times with wget, but the result is unuseable. Regards, Doriano From leandrosansilva at ...626... Mon Jul 26 19:08:09 2010 From: leandrosansilva at ...626... (Leandro Santiago) Date: Mon, 26 Jul 2010 14:08:09 -0300 Subject: [Gambas-user] Error compiling gambas3 on Ubuntu 10.04 Message-ID: Hello to all. In last revisions I can't anymore compile gambas in my ubuntu 10.04 32-bit (gcc 4.4.3). I'm using svn rev 3071 and I did ./reconf; configure and make clean. The last lines of make output: gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/opt/gambas3/bin\"" -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -MT gbx3-gbx_c_process.o -MD -MP -MF .deps/gbx3-gbx_c_process.Tpo -c -o gbx3-gbx_c_process.o `test -f 'gbx_c_process.c' || echo './'`gbx_c_process.c gbx_c_process.c: In function ?run_process?: gbx_c_process.c:542: warning: ignoring return value of ?chdir?, declared with attribute warn_unused_result gbx_c_process.c: In function ?callback_child?: gbx_c_process.c:573: warning: ignoring return value of ?read?, declared with attribute warn_unused_result gbx_c_process.c: In function ?signal_child?: gbx_c_process.c:619: warning: ignoring return value of ?write?, declared with attribute warn_unused_result mv -f .deps/gbx3-gbx_c_process.Tpo .deps/gbx3-gbx_c_process.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/opt/gambas3/bin\"" -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -MT gbx3-gbx_c_subcollection.o -MD -MP -MF .deps/gbx3-gbx_c_subcollection.Tpo -c -o gbx3-gbx_c_subcollection.o `test -f 'gbx_c_subcollection.c' || echo './'`gbx_c_subcollection.c mv -f .deps/gbx3-gbx_c_subcollection.Tpo .deps/gbx3-gbx_c_subcollection.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/opt/gambas3/bin\"" -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -MT gbx3-gbx_c_string.o -MD -MP -MF .deps/gbx3-gbx_c_string.Tpo -c -o gbx3-gbx_c_string.o `test -f 'gbx_c_string.c' || echo './'`gbx_c_string.c mv -f .deps/gbx3-gbx_c_string.Tpo .deps/gbx3-gbx_c_string.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/opt/gambas3/bin\"" -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -MT gbx3-gbx_component.o -MD -MP -MF .deps/gbx3-gbx_component.Tpo -c -o gbx3-gbx_component.o `test -f 'gbx_component.c' || echo './'`gbx_component.c mv -f .deps/gbx3-gbx_component.Tpo .deps/gbx3-gbx_component.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/opt/gambas3/bin\"" -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -MT gbx3-gbx_extern.o -MD -MP -MF .deps/gbx3-gbx_extern.Tpo -c -o gbx3-gbx_extern.o `test -f 'gbx_extern.c' || echo './'`gbx_extern.c gbx_extern.c: In function ?EXTERN_call?: gbx_extern.c:655: warning: implicit declaration of function ?THROW_ILLEGAL? gbx_extern.c: At top level: gbx_extern.c:666: error: expected ?)? before ?*? token make[4]: ** [gbx3-gbx_extern.o] Erro 1 make[4]: Saindo do diret?rio `/home/tenchi/projects/gambas3/main/gbx' make[3]: ** [all-recursive] Erro 1 make[3]: Saindo do diret?rio `/home/tenchi/projects/gambas3/main' make[2]: ** [all] Erro 2 make[2]: Saindo do diret?rio `/home/tenchi/projects/gambas3/main' make[1]: ** [all-recursive] Erro 1 make[1]: Saindo do diret?rio `/home/tenchi/projects/gambas3' make: ** [all] Erro 2 tenchi at ...2466...:~/projects/gambas3 From gambas at ...1... Mon Jul 26 20:11:31 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 26 Jul 2010 20:11:31 +0200 Subject: [Gambas-user] Error compiling gambas3 on Ubuntu 10.04 In-Reply-To: References: Message-ID: <201007262011.32267.gambas@...1...> > Hello to all. In last revisions I can't anymore compile gambas in my > ubuntu 10.04 32-bit (gcc 4.4.3). > I'm using svn rev 3071 and I did ./reconf; configure and make clean. > The last lines of make output: > > gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/opt/gambas3/bin\"" > -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os > -I../share -D_REENTRANT -MT gbx3-gbx_c_process.o -MD -MP -MF > .deps/gbx3-gbx_c_process.Tpo -c -o gbx3-gbx_c_process.o `test -f > 'gbx_c_process.c' || echo './'`gbx_c_process.c > gbx_c_process.c: In function ?run_process?: > gbx_c_process.c:542: warning: ignoring return value of ?chdir?, > declared with attribute warn_unused_result > gbx_c_process.c: In function ?callback_child?: > gbx_c_process.c:573: warning: ignoring return value of ?read?, > declared with attribute warn_unused_result > gbx_c_process.c: In function ?signal_child?: > gbx_c_process.c:619: warning: ignoring return value of ?write?, > declared with attribute warn_unused_result > mv -f .deps/gbx3-gbx_c_process.Tpo .deps/gbx3-gbx_c_process.Po > gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/opt/gambas3/bin\"" > -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os > -I../share -D_REENTRANT -MT gbx3-gbx_c_subcollection.o -MD -MP -MF > .deps/gbx3-gbx_c_subcollection.Tpo -c -o gbx3-gbx_c_subcollection.o > `test -f 'gbx_c_subcollection.c' || echo './'`gbx_c_subcollection.c > mv -f .deps/gbx3-gbx_c_subcollection.Tpo .deps/gbx3-gbx_c_subcollection.Po > gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/opt/gambas3/bin\"" > -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os > -I../share -D_REENTRANT -MT gbx3-gbx_c_string.o -MD -MP -MF > .deps/gbx3-gbx_c_string.Tpo -c -o gbx3-gbx_c_string.o `test -f > 'gbx_c_string.c' || echo './'`gbx_c_string.c > mv -f .deps/gbx3-gbx_c_string.Tpo .deps/gbx3-gbx_c_string.Po > gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/opt/gambas3/bin\"" > -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os > -I../share -D_REENTRANT -MT gbx3-gbx_component.o -MD -MP -MF > .deps/gbx3-gbx_component.Tpo -c -o gbx3-gbx_component.o `test -f > 'gbx_component.c' || echo './'`gbx_component.c > mv -f .deps/gbx3-gbx_component.Tpo .deps/gbx3-gbx_component.Po > gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/opt/gambas3/bin\"" > -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os > -I../share -D_REENTRANT -MT gbx3-gbx_extern.o -MD -MP -MF > .deps/gbx3-gbx_extern.Tpo -c -o gbx3-gbx_extern.o `test -f > 'gbx_extern.c' || echo './'`gbx_extern.c > gbx_extern.c: In function ?EXTERN_call?: > gbx_extern.c:655: warning: implicit declaration of function ?THROW_ILLEGAL? > gbx_extern.c: At top level: > gbx_extern.c:666: error: expected ?)? before ?*? token > make[4]: ** [gbx3-gbx_extern.o] Erro 1 > make[4]: Saindo do diret?rio `/home/tenchi/projects/gambas3/main/gbx' > make[3]: ** [all-recursive] Erro 1 > make[3]: Saindo do diret?rio `/home/tenchi/projects/gambas3/main' > make[2]: ** [all] Erro 2 > make[2]: Saindo do diret?rio `/home/tenchi/projects/gambas3/main' > make[1]: ** [all-recursive] Erro 1 > make[1]: Saindo do diret?rio `/home/tenchi/projects/gambas3' > make: ** [all] Erro 2 > tenchi at ...2466...:~/projects/gambas3 > Fixed in revision #3072. But you should install the libffi development packages, otherwise you won't be able to use extern functions. Regards, -- Beno?t Minisini From gambas at ...1... Mon Jul 26 20:17:37 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 26 Jul 2010 20:17:37 +0200 Subject: [Gambas-user] 2-2.21.0: CheckBox_Click event raises twice on mouseclick, once on space bar In-Reply-To: <29263179.post@...1379...> References: <29263179.post@...1379...> Message-ID: <201007262017.37606.gambas@...1...> > I have a checkbox control. I'd like it to call a subroutine whenever it's > checked or unchecked. The code looks like this: > > PUBLIC SUB CheckBox_Preview_Water_Click() > > Preview.Refresh > > END > > The control and event are on the main form. "Preview" is a module and > "Refresh" is the procedure name in it. > > When I actually click the control it triggers the event, which executes > Preview.Refresh. After it finishes Preview.Refresh it returns to the event. > Just after executing the END statement of the event the event is > immediately called again, as if a second trigger had been queued. > > This behavior does not occur if I check/uncheck the checkbox using the > space bar. Any ideas why this could be happening or how I can circumvent > it? It also happened in the previous stable GAMBAS release. > > ----- > Kevin Fishburne, Eight Virtues > www: http://sales.eightvirtues.com http://sales.eightvirtues.com > e-mail: mailto:sales at ...1887... sales at ...1887... > phone: (770) 853-6271 Please provide your project, or make a little project that reproduces the problem. And tell me if you use GTK+ or QT. Regards, -- Beno?t Minisini From kevinfishburne at ...1887... Mon Jul 26 20:29:40 2010 From: kevinfishburne at ...1887... (kevinfishburne) Date: Mon, 26 Jul 2010 11:29:40 -0700 (PDT) Subject: [Gambas-user] 2-2.21.0: CheckBox_Click event raises twice on mouseclick, once on space bar In-Reply-To: <201007262017.37606.gambas@...1...> References: <29263179.post@...1379...> <201007262017.37606.gambas@...1...> Message-ID: <29269448.post@...1379...> Beno?t Minisini wrote: > > Please provide your project, or make a little project that reproduces the > problem. And tell me if you use GTK+ or QT. > http://old.nabble.com/file/p29269448/Test.tar.bz2 Test.tar.bz2 I tried it with both GTK and QT and the problem only occurs in GTK. For the time being I'm going to switch my project to QT to avoid it. The attachment is just a single form with a single checkbox control and accurately reproduces the problem. ----- Kevin Fishburne, Eight Virtues www: http://sales.eightvirtues.com http://sales.eightvirtues.com e-mail: mailto:sales at ...1887... sales at ...1887... phone: (770) 853-6271 -- View this message in context: http://old.nabble.com/2-2.21.0%3A-CheckBox_Click-event-raises-twice-on-mouseclick%2C-once-on-space-bar-tp29263179p29269448.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Mon Jul 26 20:33:54 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 26 Jul 2010 20:33:54 +0200 Subject: [Gambas-user] 2-2.21.0: CheckBox_Click event raises twice on mouseclick, once on space bar In-Reply-To: <29269448.post@...1379...> References: <29263179.post@...1379...> <201007262017.37606.gambas@...1...> <29269448.post@...1379...> Message-ID: <201007262033.54666.gambas@...1...> > Beno?t Minisini wrote: > > Please provide your project, or make a little project that reproduces the > > problem. And tell me if you use GTK+ or QT. > > http://old.nabble.com/file/p29269448/Test.tar.bz2 Test.tar.bz2 > > I tried it with both GTK and QT and the problem only occurs in GTK. For the > time being I'm going to switch my project to QT to avoid it. The attachment > is just a single form with a single checkbox control and accurately > reproduces the problem. > > ----- > Kevin Fishburne, Eight Virtues > www: http://sales.eightvirtues.com http://sales.eightvirtues.com > e-mail: mailto:sales at ...1887... sales at ...1887... > phone: (770) 853-6271 Thanks. That's weird! -- Beno?t Minisini From ea7dfh at ...2382... Mon Jul 26 20:54:18 2010 From: ea7dfh at ...2382... (EA7DFH) Date: Mon, 26 Jul 2010 20:54:18 +0200 Subject: [Gambas-user] Bug in Gambas2 packager In-Reply-To: <4C03E3FC.7000606@...2382...> References: <4C02D2F0.4070409@...2382...> <201005310011.26280.gambas@...1...> <4C03D382.8080501@...2382...> <4C03E3FC.7000606@...2382...> Message-ID: <4C4DD9DA.4080008@...2382...> El 31/05/10 18:29, EA7DFH escribi?: > > I filled this bug to launchpad. For those who are affected, please take > a moment to add your own comment or subscribe on this bug. Perhaps we > should make more "pressure", ;-) > > https://bugs.launchpad.net/ubuntu/+source/gambas2/+bug/587957 > > Regards, > > Today I managed to talk with the maintainer of Debian packages of "Gambas" regarding the wrong package name of gambas-gb-db-sqlite3, which is now finally settled for the latest version 2.21 http://ftp-master.debian.org/new/gambas2_2.21.0-1.html We only have to wait until ftpmasters will upload to repos. Ubuntu is another history... I don't know how and when they will update their repositories, but anyway, on my own, I will update the bug on Launchpad. Thanks to Jose Luis Redrejo (Debian Maintainer and Gambas co-developer) and of course, thanks to Beno?t for his hard work. Best regards -- Jesus Guardon From kevinfishburne at ...1887... Mon Jul 26 21:08:04 2010 From: kevinfishburne at ...1887... (kevinfishburne) Date: Mon, 26 Jul 2010 12:08:04 -0700 (PDT) Subject: [Gambas-user] 2-2.21.0: CheckBox_Click event raises twice on mouseclick, once on space bar In-Reply-To: <201007262033.54666.gambas@...1...> References: <29263179.post@...1379...> <201007262017.37606.gambas@...1...> <29269448.post@...1379...> <201007262033.54666.gambas@...1...> Message-ID: <29269725.post@...1379...> Beno?t Minisini wrote: > > Thanks. That's weird! > No problem. Glad to be able to help with a bugfix. I hate bugs. ;) Not really related to the post, but great work on the new 2.x release and I'm looking forward to the first stable 3x release. ----- Kevin Fishburne, Eight Virtues www: http://sales.eightvirtues.com http://sales.eightvirtues.com e-mail: mailto:sales at ...1887... sales at ...1887... phone: (770) 853-6271 -- View this message in context: http://old.nabble.com/2-2.21.0%3A-CheckBox_Click-event-raises-twice-on-mouseclick%2C-once-on-space-bar-tp29263179p29269725.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Mon Jul 26 21:33:19 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 26 Jul 2010 21:33:19 +0200 Subject: [Gambas-user] 2-2.21.0: CheckBox_Click event raises twice on mouseclick, once on space bar In-Reply-To: <29269725.post@...1379...> References: <29263179.post@...1379...> <201007262033.54666.gambas@...1...> <29269725.post@...1379...> Message-ID: <201007262133.19302.gambas@...1...> > Beno?t Minisini wrote: > > Thanks. That's weird! > > No problem. Glad to be able to help with a bugfix. I hate bugs. ;) > > Not really related to the post, but great work on the new 2.x release and > I'm looking forward to the first stable 3x release. > > ----- > Kevin Fishburne, Eight Virtues > www: http://sales.eightvirtues.com http://sales.eightvirtues.com > e-mail: mailto:sales at ...1887... sales at ...1887... > phone: (770) 853-6271 OK, this is fixed in revision 3073. I think I should make a 2.21.1 soon... It's funny how people always find boring bugs *just* after the release. :-) -- Beno?t Minisini From math.eber at ...221... Mon Jul 26 22:23:00 2010 From: math.eber at ...221... (Matti) Date: Mon, 26 Jul 2010 22:23:00 +0200 Subject: [Gambas-user] How to make strings translatable Message-ID: <4C4DEEA4.9000809@...221...> Hi List, I don't understand this: If I have a string like IF Message.Warning("The file " & aFiles[i] & " will be deleted.", "OK", "Cancel") = 2 THEN RETURN How should I mark it to be translated? If I use IF Message.Warning(("The file ") & aFiles[i] & (" will be deleted."), "OK", ("Cancel")) = 2 THEN RETURN there are two strings to be translated, and the togetherness is lost. Thanks Matti From gambas at ...1... Mon Jul 26 22:31:13 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 26 Jul 2010 22:31:13 +0200 Subject: [Gambas-user] How to make strings translatable In-Reply-To: <4C4DEEA4.9000809@...221...> References: <4C4DEEA4.9000809@...221...> Message-ID: <201007262231.13742.gambas@...1...> > Hi List, > > I don't understand this: > If I have a string like > IF Message.Warning("The file " & aFiles[i] & " will be deleted.", "OK", > "Cancel") = 2 THEN RETURN > How should I mark it to be translated? > If I use > IF Message.Warning(("The file ") & aFiles[i] & (" will be deleted."), "OK", > ("Cancel")) = 2 THEN RETURN > there are two strings to be translated, and the togetherness is lost. > > Thanks > Matti > You *must* use the Subst() function, and write: If Message.Warning(Subst(("The file &1 will be deleted."), aFiles[i]), ("OK"), ("Cancel")) = 2 Then Return Because the grammar changes with the language. Regards, -- Beno?t Minisini From math.eber at ...221... Mon Jul 26 22:44:14 2010 From: math.eber at ...221... (Matti) Date: Mon, 26 Jul 2010 22:44:14 +0200 Subject: [Gambas-user] How to make strings translatable In-Reply-To: <201007262231.13742.gambas@...1...> References: <4C4DEEA4.9000809@...221...> <201007262231.13742.gambas@...1...> Message-ID: <4C4DF39E.1040402@...221...> Thanks! Now I understand it. Matti Am 26.07.2010 22:31, schrieb Beno?t Minisini: >> Hi List, >> >> I don't understand this: >> If I have a string like >> IF Message.Warning("The file " & aFiles[i] & " will be deleted.", "OK", >> "Cancel") = 2 THEN RETURN >> How should I mark it to be translated? >> If I use >> IF Message.Warning(("The file ") & aFiles[i] & (" will be deleted."), "OK", >> ("Cancel")) = 2 THEN RETURN >> there are two strings to be translated, and the togetherness is lost. >> >> Thanks >> Matti >> > > You *must* use the Subst() function, and write: > > If Message.Warning(Subst(("The file &1 will be deleted."), aFiles[i]), > ("OK"), ("Cancel")) = 2 Then Return > > Because the grammar changes with the language. > > Regards, > From kevinfishburne at ...1887... Tue Jul 27 01:01:00 2010 From: kevinfishburne at ...1887... (kevinfishburne) Date: Mon, 26 Jul 2010 16:01:00 -0700 (PDT) Subject: [Gambas-user] 2-2.21.0: CheckBox_Click event raises twice on mouseclick, once on space bar In-Reply-To: <201007262133.19302.gambas@...1...> References: <29263179.post@...1379...> <201007262017.37606.gambas@...1...> <29269448.post@...1379...> <201007262033.54666.gambas@...1...> <29269725.post@...1379...> <201007262133.19302.gambas@...1...> Message-ID: <29271604.post@...1379...> Beno?t Minisini wrote: > > OK, this is fixed in revision 3073. I think I should make a 2.21.1 soon... > It's funny how people always find boring bugs *just* after the release. > :-) > Yeah, I only compiled the newest release yesterday, even after reading the changelog, hoping the issue had been fixed. It persists in the previous stable release as well. A different issue I just discovered after changing my project to use QT is that the main form doesn't display until all startup procedures have finished execution, even after adding: FormMain.Show WAIT 0.5 The main form simply will not appear, whatever I try, until all code execution has stopped. :/ ----- Kevin Fishburne, Eight Virtues www: http://sales.eightvirtues.com http://sales.eightvirtues.com e-mail: mailto:sales at ...1887... sales at ...1887... phone: (770) 853-6271 -- View this message in context: http://old.nabble.com/2-2.21.0%3A-CheckBox_Click-event-raises-twice-on-mouseclick%2C-once-on-space-bar-tp29263179p29271604.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Tue Jul 27 01:03:51 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 27 Jul 2010 01:03:51 +0200 Subject: [Gambas-user] 2-2.21.0: CheckBox_Click event raises twice on mouseclick, once on space bar In-Reply-To: <29271604.post@...1379...> References: <29263179.post@...1379...> <201007262133.19302.gambas@...1...> <29271604.post@...1379...> Message-ID: <201007270103.51178.gambas@...1...> > Beno?t Minisini wrote: > > OK, this is fixed in revision 3073. I think I should make a 2.21.1 > > soon... It's funny how people always find boring bugs *just* after the > > release. > > > > :-) > > Yeah, I only compiled the newest release yesterday, even after reading the > changelog, hoping the issue had been fixed. It persists in the previous > stable release as well. > > A different issue I just discovered after changing my project to use QT is > that the main form doesn't display until all startup procedures have > finished execution, even after adding: > > FormMain.Show > WAIT 0.5 > > The main form simply will not appear, whatever I try, until all code > execution has stopped. :/ > You enter the event loop once the Main() function is finished. Why do you want to display a form before? It's weird too! -- Beno?t Minisini From kevinfishburne at ...1887... Tue Jul 27 01:16:23 2010 From: kevinfishburne at ...1887... (kevinfishburne) Date: Mon, 26 Jul 2010 16:16:23 -0700 (PDT) Subject: [Gambas-user] 2-2.21.0: CheckBox_Click event raises twice on mouseclick, once on space bar In-Reply-To: <201007270103.51178.gambas@...1...> References: <29263179.post@...1379...> <201007262017.37606.gambas@...1...> <29269448.post@...1379...> <201007262033.54666.gambas@...1...> <29269725.post@...1379...> <201007262133.19302.gambas@...1...> <29271604.post@...1379...> <201007270103.51178.gambas@...1...> Message-ID: <29271697.post@...1379...> Beno?t Minisini wrote: > > You enter the event loop once the Main() function is finished. Why do you > want > to display a form before? It's weird too! > I want the form to display as soon as the program is run, basically. I have the Form_Open procedure immediately execute several procedures, which takes about 20 seconds, but would like the form to show before the procedures execute so the user knows the program has been run. GTK shows the form as soon as I do FormMain.Show/WAIT 0.5, but QT doesn't show the form until it has exited Form_Open. Here's the code: PUBLIC SUB Form_Open() ' General initialization. ' Show the main form. FormMain.Show WAIT 0.5 ' Create config directories. IF Exist(User.Home & "/.Sanctimonia") = FALSE THEN MKDIR User.Home & "/.Sanctimonia" ' Create temporary elevation files. Elevation.Temp_File_Create Tile.Temp_File_Create ' Update preview with old data from elevation file. Preview.Refresh ' Load elevation template into preview cache (remove when finished debugging). Elevation.Template_Load("default.png") END I wonder if ultimately there is a way to better ensure consistency between GTK and QT. I don't know how each is specifically implemented, but I've noticed several discrepancies between the two along GAMBAS's development. ----- Kevin Fishburne, Eight Virtues www: http://sales.eightvirtues.com http://sales.eightvirtues.com e-mail: mailto:sales at ...1887... sales at ...1887... phone: (770) 853-6271 -- View this message in context: http://old.nabble.com/2-2.21.0%3A-CheckBox_Click-event-raises-twice-on-mouseclick%2C-once-on-space-bar-tp29263179p29271697.html Sent from the gambas-user mailing list archive at Nabble.com. From leandrosansilva at ...626... Tue Jul 27 04:47:05 2010 From: leandrosansilva at ...626... (Leandro Santiago) Date: Mon, 26 Jul 2010 23:47:05 -0300 Subject: [Gambas-user] Error compiling gambas3 on Ubuntu 10.04 In-Reply-To: <201007262011.32267.gambas@...1...> References: <201007262011.32267.gambas@...1...> Message-ID: Thx, Now it compiles. 2010/7/26 Beno?t Minisini : >> Hello to all. In last revisions I can't anymore compile gambas in my >> ubuntu 10.04 32-bit (gcc 4.4.3). >> I'm using svn rev 3071 and I did ./reconf; configure and make clean. >> The last lines of make output: >> >> gcc -DHAVE_CONFIG_H -I. -I.. ? ?-DGAMBAS_PATH="\"/opt/gambas3/bin\"" >> -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os >> -I../share -D_REENTRANT ? ?-MT gbx3-gbx_c_process.o -MD -MP -MF >> .deps/gbx3-gbx_c_process.Tpo -c -o gbx3-gbx_c_process.o `test -f >> 'gbx_c_process.c' || echo './'`gbx_c_process.c >> gbx_c_process.c: In function ?run_process?: >> gbx_c_process.c:542: warning: ignoring return value of ?chdir?, >> declared with attribute warn_unused_result >> gbx_c_process.c: In function ?callback_child?: >> gbx_c_process.c:573: warning: ignoring return value of ?read?, >> declared with attribute warn_unused_result >> gbx_c_process.c: In function ?signal_child?: >> gbx_c_process.c:619: warning: ignoring return value of ?write?, >> declared with attribute warn_unused_result >> mv -f .deps/gbx3-gbx_c_process.Tpo .deps/gbx3-gbx_c_process.Po >> gcc -DHAVE_CONFIG_H -I. -I.. ? ?-DGAMBAS_PATH="\"/opt/gambas3/bin\"" >> -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os >> -I../share -D_REENTRANT ? ?-MT gbx3-gbx_c_subcollection.o -MD -MP -MF >> .deps/gbx3-gbx_c_subcollection.Tpo -c -o gbx3-gbx_c_subcollection.o >> `test -f 'gbx_c_subcollection.c' || echo './'`gbx_c_subcollection.c >> mv -f .deps/gbx3-gbx_c_subcollection.Tpo .deps/gbx3-gbx_c_subcollection.Po >> gcc -DHAVE_CONFIG_H -I. -I.. ? ?-DGAMBAS_PATH="\"/opt/gambas3/bin\"" >> -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os >> -I../share -D_REENTRANT ? ?-MT gbx3-gbx_c_string.o -MD -MP -MF >> .deps/gbx3-gbx_c_string.Tpo -c -o gbx3-gbx_c_string.o `test -f >> 'gbx_c_string.c' || echo './'`gbx_c_string.c >> mv -f .deps/gbx3-gbx_c_string.Tpo .deps/gbx3-gbx_c_string.Po >> gcc -DHAVE_CONFIG_H -I. -I.. ? ?-DGAMBAS_PATH="\"/opt/gambas3/bin\"" >> -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os >> -I../share -D_REENTRANT ? ?-MT gbx3-gbx_component.o -MD -MP -MF >> .deps/gbx3-gbx_component.Tpo -c -o gbx3-gbx_component.o `test -f >> 'gbx_component.c' || echo './'`gbx_component.c >> mv -f .deps/gbx3-gbx_component.Tpo .deps/gbx3-gbx_component.Po >> gcc -DHAVE_CONFIG_H -I. -I.. ? ?-DGAMBAS_PATH="\"/opt/gambas3/bin\"" >> -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os >> -I../share -D_REENTRANT ? ?-MT gbx3-gbx_extern.o -MD -MP -MF >> .deps/gbx3-gbx_extern.Tpo -c -o gbx3-gbx_extern.o `test -f >> 'gbx_extern.c' || echo './'`gbx_extern.c >> gbx_extern.c: In function ?EXTERN_call?: >> gbx_extern.c:655: warning: implicit declaration of function ?THROW_ILLEGAL? >> gbx_extern.c: At top level: >> gbx_extern.c:666: error: expected ?)? before ?*? token >> make[4]: ** [gbx3-gbx_extern.o] Erro 1 >> make[4]: Saindo do diret?rio `/home/tenchi/projects/gambas3/main/gbx' >> make[3]: ** [all-recursive] Erro 1 >> make[3]: Saindo do diret?rio `/home/tenchi/projects/gambas3/main' >> make[2]: ** [all] Erro 2 >> make[2]: Saindo do diret?rio `/home/tenchi/projects/gambas3/main' >> make[1]: ** [all-recursive] Erro 1 >> make[1]: Saindo do diret?rio `/home/tenchi/projects/gambas3' >> make: ** [all] Erro 2 >> tenchi at ...2466...:~/projects/gambas3 >> > > Fixed in revision #3072. But you should install the libffi development > packages, otherwise you won't be able to use extern functions. > > Regards, > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > The Palm PDK Hot Apps Program offers developers who use the > Plug-In Development Kit to bring their C/C++ apps to Palm for a share > of $1 Million in cash or HP Products. Visit us here for more details: > http://ad.doubleclick.net/clk;226879339;13503038;l? > http://clk.atdmt.com/CRS/go/247765532/direct/01/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From rterry at ...1946... Tue Jul 27 04:48:46 2010 From: rterry at ...1946... (richard terry) Date: Tue, 27 Jul 2010 12:48:46 +1000 Subject: [Gambas-user] 2-2.21.0: CheckBox_Click event raises twice on mouseclick, once on space bar In-Reply-To: <29271697.post@...1379...> References: <29263179.post@...1379...> <201007270103.51178.gambas@...1...> <29271697.post@...1379...> Message-ID: <201007271248.46581.rterry@...1946...> On Tuesday 27 July 2010 09:16:23 kevinfishburne wrote: Kevin, I've found this is a problem with gambas/qt, I've many many many dozens of forms in my project (lost count), some of which pull quite a bit of data from a postgresql backend. As a work-a-round suggested by someone else on the list - on forms which are 'doing alot' at startup - I put a timer on the form and in timer1_timer, put all the code you want to execute once the gui is visible, and set its interval to an appropriate amount to let the gui finish first. Works a treat - just experiment with the time required. Regards Richard > Beno?t Minisini wrote: > > You enter the event loop once the Main() function is finished. Why do you > > want > > to display a form before? It's weird too! > > I want the form to display as soon as the program is run, basically. > > I have the Form_Open procedure immediately execute several procedures, > which takes about 20 seconds, but would like the form to show before the > procedures execute so the user knows the program has been run. GTK shows > the form as soon as I do FormMain.Show/WAIT 0.5, but QT doesn't show the > form until it has exited Form_Open. Here's the code: > > PUBLIC SUB Form_Open() > > ' General initialization. > > ' Show the main form. > FormMain.Show > WAIT 0.5 > > ' Create config directories. > IF Exist(User.Home & "/.Sanctimonia") = FALSE THEN MKDIR User.Home & > "/.Sanctimonia" > > ' Create temporary elevation files. > Elevation.Temp_File_Create > Tile.Temp_File_Create > > ' Update preview with old data from elevation file. > Preview.Refresh > > ' Load elevation template into preview cache (remove when finished > debugging). > Elevation.Template_Load("default.png") > > END > > I wonder if ultimately there is a way to better ensure consistency between > GTK and QT. I don't know how each is specifically implemented, but I've > noticed several discrepancies between the two along GAMBAS's development. > > ----- > Kevin Fishburne, Eight Virtues > www: http://sales.eightvirtues.com http://sales.eightvirtues.com > e-mail: mailto:sales at ...1887... sales at ...1887... > phone: (770) 853-6271 > From doriano.blengino at ...1909... Tue Jul 27 06:49:13 2010 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Tue, 27 Jul 2010 06:49:13 +0200 Subject: [Gambas-user] BUG Install on mandriva In-Reply-To: <4C4D6C01.1000703@...1909...> References: <4C49A358.6000307@...2465...> <201007252317.40547.gambas@...1...> <4C4D23A3.4010209@...1909...> <201007261245.53845.gambas@...1...> <4C4D6C01.1000703@...1909...> Message-ID: <4C4E6549.8090609@...1909...> Doriano Blengino ha scritto: > > This leads to my last question: how can I download a local copy of the > wiki? I tried two or three times with wget, but the result is unuseable. > Forget it - I finally got what I need. May be that in the help, about pointers (url: /help/lang/type/pointer), it should be specified that Gambas3 does not permit anymore to read/write from them as they were a stream? Regards, Doriano From mailinglist at ...2465... Tue Jul 27 12:19:31 2010 From: mailinglist at ...2465... (MailingLists) Date: Tue, 27 Jul 2010 10:19:31 +0000 Subject: [Gambas-user] BUG Install on mandriva In-Reply-To: <4C4B4154.20308@...2465...> References: <4C49A358.6000307@...2465...> <201007241214.03621.gambas@...1...> <4C4B0D60.8050001@...2465...> <201007241602.03993.gambas@...1...> <4C4B4154.20308@...2465...> Message-ID: <4C4EB2B3.2090402@...2465...> Hello everybody, I tried to compile Gambas 2.21 from the svn. First of all, I observed that the problems with the share symbolic link between gb.qt and gb.gtk share folders are not existing with the sources from svn. The link is presente whereas it is not with the .tar.gz as I wrote above. Unfortunately as you will see in the attached file, I have another issue. Thank you for your answer. Best regards, Le 24/07/2010 19:39, MailingLists a ?crit : > Thank you for answering. > > I executed the following command in order to have the symbolici link: > ln -s gb.qt/share/ gb.gtk/share. > No more success but I have an idea. > Actually as I saw that you put a new release I try to compile it. > And when I decompress the archive, I have 2 times this message : > tar:XXXX/gb.qt/share is a folder whereas a file was expected. > As it concerns the folder you were talking about, I imagine that it > could help you. > > I execute the make command on the 2.21 release and attach you the result. > Best regards > > > Le 24/07/2010 14:02, Beno?t Minisini a ?crit : >>> Hy, >>> >>> I'm really sorry, but I followed strictly the procedure described in >>> the >>> install file. >>> So I now I consider the website here are some additionnal pieces of >>> information : >>> Mandriva 2010.0 >>> Intel Centrino DUo >>> Kernel : 2.6.31.13-desktop-1mnb >>> Trying to compile gambase 2.20 >>> what is installed : >>> kdebase3-common for 2009.1 >>> kdebase3 >>> libkdecore4 >>> libkdecore4-devel >>> >>> here in attached file the different step of my compilation executed as >>> root on the main folder : >>> 1 # ./reconf-all> 1-recon-all_as_root.txt 2>&1 see in attached file >>> 2 # ./configure> 2-configure_as_root.txt 2>&1 see in attached file >>> 3 # make> 3-make_as_root.txt 2>&1 see in attached file >>> >>> >>> The error is at the end of the third file. >>> If you ask something more to me, please precise what you want >>> because, I >>> think I followed the procedure, isn't it? >> Now yes. :-) >> >> You have an error message about a missing file that should be there. >> Do you >> have a symbolic link/gb.gtk/share that points at >> /gb.qt/share? is the directory of the gambas >> sources >> you uncompressed... >> > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > > > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: 1-recon-all_as_root.txt URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: 2-configure_as_root.txt URL: From gambas at ...1... Tue Jul 27 10:41:39 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 27 Jul 2010 10:41:39 +0200 Subject: [Gambas-user] BUG Install on mandriva In-Reply-To: <4C4EB2B3.2090402@...2465...> References: <4C49A358.6000307@...2465...> <4C4B4154.20308@...2465...> <4C4EB2B3.2090402@...2465...> Message-ID: <201007271041.39920.gambas@...1...> > Hello everybody, > > I tried to compile Gambas 2.21 from the svn. First of all, I observed > that the problems with the share symbolic link between gb.qt and gb.gtk > share folders are not existing with the sources from svn. > The link is presente whereas it is not with the .tar.gz as I wrote above. I think you have a problem on your Mandriva, because the symbolic links are present in the *.tar.gz file. How do you uncompress it? > Unfortunately as you will see in the attached file, I have another issue. > > Thank you for your answer. > > Best regards, > Apparently your reconf-all output is truncated. Can you provide the full one? And can you run './reconf-all', './configure' and 'make' as a normal user? Regards, -- Beno?t Minisini From gambas at ...1... Tue Jul 27 10:42:17 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 27 Jul 2010 10:42:17 +0200 Subject: [Gambas-user] BUG Install on mandriva In-Reply-To: <4C4E6549.8090609@...1909...> References: <4C49A358.6000307@...2465...> <4C4D6C01.1000703@...1909...> <4C4E6549.8090609@...1909...> Message-ID: <201007271042.17206.gambas@...1...> > Doriano Blengino ha scritto: > > This leads to my last question: how can I download a local copy of the > > wiki? I tried two or three times with wget, but the result is unuseable. > > Forget it - I finally got what I need. > > May be that in the help, about pointers (url: /help/lang/type/pointer), > it should be specified that Gambas3 does not permit anymore to > read/write from them as they were a stream? > > Regards, > Doriano > Done. I did it in the READ and WRITE documentation pages. Regards, -- Beno?t Minisini From mailinglist at ...2465... Tue Jul 27 15:54:52 2010 From: mailinglist at ...2465... (MailingLists) Date: Tue, 27 Jul 2010 13:54:52 +0000 Subject: [Gambas-user] BUG Install on mandriva In-Reply-To: <201007271041.39920.gambas@...1...> References: <4C49A358.6000307@...2465...> <4C4B4154.20308@...2465...> <4C4EB2B3.2090402@...2465...> <201007271041.39920.gambas@...1...> Message-ID: <4C4EE52C.7010908@...2465...> Rnak you, everything is fine now with the 2.20 release. I will check for the 2.21 issue as I will have time Le 27/07/2010 08:41, Beno?t Minisini a ?crit : >> Hello everybody, >> >> I tried to compile Gambas 2.21 from the svn. First of all, I observed >> that the problems with the share symbolic link between gb.qt and gb.gtk >> share folders are not existing with the sources from svn. >> The link is presente whereas it is not with the .tar.gz as I wrote above. > I think you have a problem on your Mandriva, because the symbolic links are > present in the *.tar.gz file. How do you uncompress it? > >> Unfortunately as you will see in the attached file, I have another issue. >> >> Thank you for your answer. >> >> Best regards, >> > Apparently your reconf-all output is truncated. Can you provide the full one? > And can you run './reconf-all', './configure' and 'make' as a normal user? > > Regards, > From ea7dfh at ...2382... Tue Jul 27 18:06:45 2010 From: ea7dfh at ...2382... (EA7DFH) Date: Tue, 27 Jul 2010 18:06:45 +0200 Subject: [Gambas-user] Bug in Gambas2 packager In-Reply-To: <4C4DD9DA.4080008@...2382...> References: <4C02D2F0.4070409@...2382...> <201005310011.26280.gambas@...1...> <4C03D382.8080501@...2382...> <4C03E3FC.7000606@...2382...> <4C4DD9DA.4080008@...2382...> Message-ID: <4C4F0415.8050409@...2382...> El 26/07/10 20:54, EA7DFH escribi?: > El 31/05/10 18:29, EA7DFH escribi?: > >> I filled this bug to launchpad. For those who are affected, please take >> a moment to add your own comment or subscribe on this bug. Perhaps we >> should make more "pressure", ;-) >> >> https://bugs.launchpad.net/ubuntu/+source/gambas2/+bug/587957 >> >> Regards, >> >> >> > Today I managed to talk with the maintainer of Debian packages of > "Gambas" regarding the wrong package name of gambas-gb-db-sqlite3, which > is now finally settled for the latest version 2.21 > > http://ftp-master.debian.org/new/gambas2_2.21.0-1.html > > We only have to wait until ftpmasters will upload to repos. > > Ubuntu is another history... I don't know how and when they will update > their repositories, but > anyway, on my own, I will update the bug on Launchpad. > > Thanks to Jose Luis Redrejo (Debian Maintainer and Gambas co-developer) > and of course, thanks to Beno?t for his hard work. > > > Best regards > > Hi, good news: Changes accepted in Debian: http://packages.qa.debian.org/g/gambas2.html Regards, -- Jesus, EA7DFH From karl.reinl at ...9... Tue Jul 27 21:40:01 2010 From: karl.reinl at ...9... (Karl Reinl) Date: Tue, 27 Jul 2010 21:40:01 +0200 Subject: [Gambas-user] gambas2 and libtool < 2.x Message-ID: <1280259601.8611.18.camel@...40...> Salut, to whom it concern. the last gambas version that supports libtool < 2.x is from 07 Mar 2010 - Release of Gambas 2.20.1 SVN-Revision:~2771 -- Charlie Marchander sa libert? contre la s?curit?, c'est un pacte diabolique. From pinozollo at ...626... Wed Jul 28 14:41:03 2010 From: pinozollo at ...626... (Pino Zollo) Date: Wed, 28 Jul 2010 08:41:03 -0400 Subject: [Gambas-user] Compiling on Debian 5.0.5 GAMBAS 2.2.21.0 Message-ID: <201007280841.03694.pinozollo@...626...> Hi... ./configure fails with: ------------------------------------- === configuring in main (/usr/src/gambas2-2.21.0/main) configure: running /bin/sh ./configure --disable-option-checking '--prefix=/usr/local' --cache-file=/dev/null --srcdir=. ./configure: line 1872: syntax error near unexpected token `main' ./configure: line 1872: `GB_INIT(main)' configure: error: ./configure failed for main ------------------------------------- Al previous versions have compiled well. Ciao Pino -- "In the universe there is no time existing as a physical reality, there is no past, no present and no future" "Time is a mind construction into which one experiences motion" "Time is a flow of irreversible material changes" -Davide Fiscaletti Key ID: 0xF6768208 Key fingerprint = B16D 0A7C 5B29 A334 CE6A 71F6 EAF8 3D88 F676 8208 Key server: hkp://wwwkeys.eu.pgp.net From sevoir75 at ...626... Thu Jul 29 13:04:54 2010 From: sevoir75 at ...626... (=?ISO-8859-1?Q?Szenogr=E1di?= Norbert) Date: Thu, 29 Jul 2010 13:04:54 +0200 Subject: [Gambas-user] post data and file http form Message-ID: <1280401494.1674.25.camel@...2393...> Dear All, Can you help me, how can I send datas and files to html form from Gambas2 app? Best Regards, Sevoir From jose2190 at ...626... Thu Jul 29 18:02:11 2010 From: jose2190 at ...626... (jose) Date: Thu, 29 Jul 2010 13:02:11 -0300 Subject: [Gambas-user] Post data and files Message-ID: <1280419331.1955.5.camel@...2461...> hello everybody! Can you help?, how can I send datas and files to php from Gambas2 app? thanks! From doriano.blengino at ...1909... Thu Jul 29 18:22:51 2010 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Thu, 29 Jul 2010 18:22:51 +0200 Subject: [Gambas-user] post data and file http form In-Reply-To: <1280401494.1674.25.camel@...2393...> References: <1280401494.1674.25.camel@...2393...> Message-ID: <4C51AADB.2010906@...1909...> Szenogr?di Norbert ha scritto: > Dear All, > > Can you help me, how can I send datas and files to html form from > Gambas2 app? > Dear Sevoir, you should be more specific... anyway, consult the help: there are the components gb.net for low level; gb.net.curl for high level, and gb.web. I don't know those components, but they seem to be useful to you. Read the specs and see if they do what you want. From doriano.blengino at ...1909... Thu Jul 29 18:24:26 2010 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Thu, 29 Jul 2010 18:24:26 +0200 Subject: [Gambas-user] Post data and files In-Reply-To: <1280419331.1955.5.camel@...2461...> References: <1280419331.1955.5.camel@...2461...> Message-ID: <4C51AB3A.3060502@...1909...> jose ha scritto: > hello everybody! > > Can you help?, how can I send datas and files to php from > Gambas2 app? > Dear Jose, you should be more specific... do you mean send data to a remote server running a php page? Consult the help: there are the components gb.net for low level; gb.net.curl for high level, and gb.web. I don't know those components, but they seem to be useful to you. Read the specs and see if they do what you want. Regards, Doriano From ea7dfh at ...2382... Thu Jul 29 20:32:39 2010 From: ea7dfh at ...2382... (EA7DFH) Date: Thu, 29 Jul 2010 20:32:39 +0200 Subject: [Gambas-user] Post data and files In-Reply-To: <4C51AB3A.3060502@...1909...> References: <1280419331.1955.5.camel@...2461...> <4C51AB3A.3060502@...1909...> Message-ID: <4C51C947.3000507@...2382...> El 29/07/10 18:24, Doriano Blengino escribi?: > jose ha scritto: > >> hello everybody! >> >> Can you help?, how can I send datas and files to php from >> Gambas2 app? >> >> > Dear Jose, > > you should be more specific... do you mean send data to a remote server > running a php page? > > Consult the help: there are the components gb.net for low level; > gb.net.curl for high level, and gb.web. I don't know those components, > but they seem to be useful to you. Read the specs and see if they do > what you want. > > Regards, > Doriano > Jose, please add this to the list of your "must read": http://catb.org/esr/faqs/smart-questions.html Regards, Jesus From jose2190 at ...626... Thu Jul 29 23:25:08 2010 From: jose2190 at ...626... (jose) Date: Thu, 29 Jul 2010 18:25:08 -0300 Subject: [Gambas-user] Post data and files In-Reply-To: <4C51C947.3000507@...2382...> References: <1280419331.1955.5.camel@...2461...> <4C51AB3A.3060502@...1909...> <4C51C947.3000507@...2382...> Message-ID: <1280438708.1916.14.camel@...2461...> Hello people of the forum prawns: I have problems trying to send variables from one form to a PHP file hosted on a remote server. Currently I have installed Gambas 2.20, I have sought information about it but most of the documentation is limited. My remote server using PHP 5, there is some documentation. Unfortunately my native language is Spanish, so my communication is limited. Regards From sevoir75 at ...626... Fri Jul 30 09:12:50 2010 From: sevoir75 at ...626... (=?ISO-8859-1?Q?Szenogr=E1di?= Norbert) Date: Fri, 30 Jul 2010 09:12:50 +0200 Subject: [Gambas-user] Post data and files In-Reply-To: <1280438708.1916.14.camel@...2461...> References: <1280419331.1955.5.camel@...2461...> <4C51AB3A.3060502@...1909...> <4C51C947.3000507@...2382...> <1280438708.1916.14.camel@...2461...> Message-ID: <1280473970.1861.19.camel@...2393...> Hi Jose, I had same problem yesterday. My solving: with installed curl test.php: Gambas2 code example: 2 textbox (txtBox1.text => thing1; txtBox2.text => thing2) 1 textbox for file link (fileBox.text => file) FMain.class: PUBLIC SUB Button1_Click() DIM comm AS String comm = "curl " comm &= " -F " & Chr(34) & "file=@" & fileBox.text & Chr(34) comm &= " -F " & Chr(34) & "thing1=" & txtBox1.text & Chr(34) comm &= " -F " & Chr(34) & "thing2=" & txtBox2.text & Chr(34) comm &= " http://www.yourhost.xy/test.php" shell (comm) End /// Best Regards, Sevoir 2010. 07. 29, cs?t?rt?k keltez?ssel 18.25-kor jose ezt ?rta: > Hello people of the forum prawns: > I have problems trying to send variables from one form to a PHP file > hosted on a remote server. > > Currently I have installed Gambas 2.20, I have sought information about > it but most of the documentation is limited. > > My remote server using PHP 5, there is some documentation. > > Unfortunately my native language is Spanish, so my communication is > limited. > > Regards > > > ------------------------------------------------------------------------------ > The Palm PDK Hot Apps Program offers developers who use the > Plug-In Development Kit to bring their C/C++ apps to Palm for a share > of $1 Million in cash or HP Products. Visit us here for more details: > http://p.sf.net/sfu/dev2dev-palm > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From Gambas at ...1950... Fri Jul 30 10:48:13 2010 From: Gambas at ...1950... (Caveat) Date: Fri, 30 Jul 2010 10:48:13 +0200 Subject: [Gambas-user] Post data and files In-Reply-To: <1280473970.1861.19.camel@...2393...> References: <1280419331.1955.5.camel@...2461...> <4C51AB3A.3060502@...1909...> <4C51C947.3000507@...2382...> <1280438708.1916.14.camel@...2461...> <1280473970.1861.19.camel@...2393...> Message-ID: <1280479693.22465.121.camel@...2413...> Hi Jose and Sevoir You do not need to use Shell and command lines to do POST of data to a web page! Use HttpClient from gb.net.curl in Gambas. I have enclosed a simple project which demonstrates this. Regards, Caveat -------------- next part -------------- A non-text attachment was scrubbed... Name: TestProject2.tar.gz Type: application/x-compressed-tar Size: 9941 bytes Desc: not available URL: From sevoir75 at ...626... Fri Jul 30 12:15:12 2010 From: sevoir75 at ...626... (=?ISO-8859-1?Q?Szenogr=E1di?= Norbert) Date: Fri, 30 Jul 2010 12:15:12 +0200 Subject: [Gambas-user] Post data and files In-Reply-To: <1280479693.22465.121.camel@...2413...> References: <1280419331.1955.5.camel@...2461...> <4C51AB3A.3060502@...1909...> <4C51C947.3000507@...2382...> <1280438708.1916.14.camel@...2461...> <1280473970.1861.19.camel@...2393...> <1280479693.22465.121.camel@...2413...> Message-ID: <1280484912.1861.32.camel@...2393...> Hi Ceveat, It's okay and thank you this sample. But, can you help that how can send file(s) with this sample? Best Regards, Sevoir 2010. 07. 30, p?ntek keltez?ssel 10.48-kor Caveat ezt ?rta: > Hi Jose and Sevoir > > You do not need to use Shell and command lines to do POST of data to a > web page! > > Use HttpClient from gb.net.curl in Gambas. > > I have enclosed a simple project which demonstrates this. > > Regards, > Caveat > > > ------------------------------------------------------------------------------ > The Palm PDK Hot Apps Program offers developers who use the > Plug-In Development Kit to bring their C/C++ apps to Palm for a share > of $1 Million in cash or HP Products. Visit us here for more details: > http://p.sf.net/sfu/dev2dev-palm > _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From jose2190 at ...626... Fri Jul 30 16:30:28 2010 From: jose2190 at ...626... (jose) Date: Fri, 30 Jul 2010 11:30:28 -0300 Subject: [Gambas-user] Post data and files In-Reply-To: <1280484912.1861.32.camel@...2393...> References: <1280419331.1955.5.camel@...2461...> <4C51AB3A.3060502@...1909...> <4C51C947.3000507@...2382...> <1280438708.1916.14.camel@...2461...> <1280473970.1861.19.camel@...2393...> <1280479693.22465.121.camel@...2413...> <1280484912.1861.32.camel@...2393...> Message-ID: <1280500228.1793.6.camel@...2461...> Hey amigos!, thanks for all the help offered, Caveat code you sent is excellent, very clear and said .... With this information I am in the final stages of concluding a cms in php, supplementing with a graphical interface. As soon as I finish, I will release under GPL. This was thanks to you all! Greetings and thanks again! From gambas.fr at ...626... Fri Jul 30 17:31:41 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 30 Jul 2010 17:31:41 +0200 Subject: [Gambas-user] post data and file http form In-Reply-To: <4C51AADB.2010906@...1909...> References: <1280401494.1674.25.camel@...2393...> <4C51AADB.2010906@...1909...> Message-ID: i think its better like this ... send htmlform data part to gambas2 application (=cgi) it is that ? (in the other way ...) 2010/7/29 Doriano Blengino : > Szenogr?di Norbert ha scritto: >> Dear All, >> >> Can you help me, how can I send datas and files to html form from >> Gambas2 app? >> > Dear Sevoir, > > you should be more specific... anyway, consult the help: there are the > components gb.net for low level; gb.net.curl for high level, and gb.web. > I don't know those components, but they seem to be useful to you. Read > the specs and see if they do what you want. > > > ------------------------------------------------------------------------------ > The Palm PDK Hot Apps Program offers developers who use the > Plug-In Development Kit to bring their C/C++ apps to Palm for a share > of $1 Million in cash or HP Products. Visit us here for more details: > http://p.sf.net/sfu/dev2dev-palm > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From kazutaka802 at ...1907... Fri Jul 30 16:32:27 2010 From: kazutaka802 at ...1907... (HARADA Kazutaka) Date: Fri, 30 Jul 2010 23:32:27 +0900 Subject: [Gambas-user] menu.popup does not work with tray icon Message-ID: <4C52E27B.2000400@...1907...> Hi All, I found a strange problem for menu.popup() method. To reproduce the problem, unpack the attached small project, run it, and do the following steps. 1. Right click tray icon and menu is displayed. (OK) 2. Double click tray icon and second form is open. (OK) 3. Then close second form. (OK) 4. Right click tray icon again, but popup menu is NOT displayed (NOT OK) It only happens with gb.gtk. (gb.qt works fine.) I'm running gambas-2.21.0 with gnome-2.30.2, gtk-2.20, qt-3.3.8. Thanks, -- -------------------------------------- Kazutaka HARADA e-mail:kazutaka802 at ...1907... -------------------------------------- -------------- next part -------------- A non-text attachment was scrubbed... Name: traytest-0.0.1.tar.gz Type: application/x-gzip Size: 7970 bytes Desc: not available URL: From gambas at ...1... Fri Jul 30 17:52:26 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 30 Jul 2010 17:52:26 +0200 Subject: [Gambas-user] menu.popup does not work with tray icon In-Reply-To: <4C52E27B.2000400@...1907...> References: <4C52E27B.2000400@...1907...> Message-ID: <201007301752.26639.gambas@...1...> > Hi All, > > I found a strange problem for menu.popup() method. > > To reproduce the problem, unpack the attached small project, > run it, and do the following steps. > > 1. Right click tray icon and menu is displayed. (OK) > 2. Double click tray icon and second form is open. (OK) > 3. Then close second form. (OK) > 4. Right click tray icon again, but popup menu is NOT displayed (NOT OK) > > It only happens with gb.gtk. (gb.qt works fine.) > > I'm running gambas-2.21.0 with gnome-2.30.2, gtk-2.20, qt-3.3.8. > > Thanks, It works for me, but I'm using KDE 4. I will try with gnome... -- Beno?t Minisini From gambas at ...1... Fri Jul 30 19:22:12 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 30 Jul 2010 19:22:12 +0200 Subject: [Gambas-user] Window.Show() behaviour In-Reply-To: <29271697.post@...1379...> References: <29263179.post@...1379...> <201007270103.51178.gambas@...1...> <29271697.post@...1379...> Message-ID: <201007301922.12129.gambas@...1...> > Beno?t Minisini wrote: > > You enter the event loop once the Main() function is finished. Why do you > > want > > to display a form before? It's weird too! > > I want the form to display as soon as the program is run, basically. > > I have the Form_Open procedure immediately execute several procedures, > which takes about 20 seconds, but would like the form to show before the > procedures execute so the user knows the program has been run. GTK shows > the form as soon as I do FormMain.Show/WAIT 0.5, but QT doesn't show the > form until it has exited Form_Open. Here's the code: > > PUBLIC SUB Form_Open() > > ' General initialization. > > ' Show the main form. > FormMain.Show > WAIT 0.5 > > ' Create config directories. > IF Exist(User.Home & "/.Sanctimonia") = FALSE THEN MKDIR User.Home & > "/.Sanctimonia" > > ' Create temporary elevation files. > Elevation.Temp_File_Create > Tile.Temp_File_Create > > ' Update preview with old data from elevation file. > Preview.Refresh > > ' Load elevation template into preview cache (remove when finished > debugging). > Elevation.Template_Load("default.png") > > END > > I wonder if ultimately there is a way to better ensure consistency between > GTK and QT. I don't know how each is specifically implemented, but I've > noticed several discrepancies between the two along GAMBAS's development. > > ----- > Kevin Fishburne, Eight Virtues > www: http://sales.eightvirtues.com http://sales.eightvirtues.com > e-mail: mailto:sales at ...1887... sales at ...1887... > phone: (770) 853-6271 In revision #3077, for Gambas 3, gb.qt4 should now behave like gb.gtk when showing windows. And when you notice a difference between gb.qt(4) and gb.gtk, please tell me! It usually should be fixed, as the goal is to have the same behaviour in both components as much as possible. Regards, -- Beno?t Minisini From gambas at ...1... Sat Jul 31 10:56:41 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 31 Jul 2010 10:56:41 +0200 Subject: [Gambas-user] menu.popup does not work with tray icon In-Reply-To: <201007301752.26639.gambas@...1...> References: <4C52E27B.2000400@...1907...> <201007301752.26639.gambas@...1...> Message-ID: <201007311056.41205.gambas@...1...> > > Hi All, > > > > I found a strange problem for menu.popup() method. > > > > To reproduce the problem, unpack the attached small project, > > run it, and do the following steps. > > > > 1. Right click tray icon and menu is displayed. (OK) > > 2. Double click tray icon and second form is open. (OK) > > 3. Then close second form. (OK) > > 4. Right click tray icon again, but popup menu is NOT displayed (NOT OK) > > > > It only happens with gb.gtk. (gb.qt works fine.) > > > > I'm running gambas-2.21.0 with gnome-2.30.2, gtk-2.20, qt-3.3.8. > > > > Thanks, > > It works for me, but I'm using KDE 4. I will try with gnome... Ok, no it wasn't, and I fixed the bug in revision #3083! If you want to test... -- Beno?t Minisini From kazutaka802 at ...1907... Sat Jul 31 11:50:53 2010 From: kazutaka802 at ...1907... (HARADA Kazutaka) Date: Sat, 31 Jul 2010 18:50:53 +0900 Subject: [Gambas-user] menu.popup does not work with tray icon In-Reply-To: <201007311056.41205.gambas@...1...> References: <4C52E27B.2000400@...1907...> <201007301752.26639.gambas@...1...> <201007311056.41205.gambas@...1...> Message-ID: <4C53F1FD.6010907@...1907...> >> It works for me, but I'm using KDE 4. I will try with gnome... > > Ok, no it wasn't, and I fixed the bug in revision #3083! If you want to > test... I made a patch from svn rev 3083 and applied it to gambas-2.21.0 then popup menu works fine now. Thanks for you great work! -- -------------------------------------- Kazutaka HARADA e-mail:kazutaka802 at ...1907... -------------------------------------- From math.eber at ...221... Sat Jul 31 14:17:12 2010 From: math.eber at ...221... (Matti) Date: Sat, 31 Jul 2010 14:17:12 +0200 Subject: [Gambas-user] signal#11 in Gambas3 Message-ID: <4C541448.4030306@...221...> Hi, I have a dialog right at the start of a program, and if the user aborts the dialog, the program should quit. In gambas2 this worked: If Dialog.SelectDirectory() Then Quit Endif In gambas3 (v 3083) I get the signal#11 (for the program, not for gambas itself) at this point. Also tried Me.Close, with same result. Is there a new way to close an app, or is it a bug? Thanks Matti From math.eber at ...221... Sat Jul 31 18:39:46 2010 From: math.eber at ...221... (Matti) Date: Sat, 31 Jul 2010 18:39:46 +0200 Subject: [Gambas-user] Bug in gb3: save as Message-ID: <4C5451D2.20902@...221...> Hi, here ist svn version 3083 on a SuSe 11.2. When you do 'Save project as...', the form FMain will show not as form but as plain text. If you close the form and class and reopen it, FMain works again. Regards Matti From gambas at ...1... Sat Jul 31 20:37:46 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 31 Jul 2010 20:37:46 +0200 Subject: [Gambas-user] Bug in gb3: save as In-Reply-To: <4C5451D2.20902@...221...> References: <4C5451D2.20902@...221...> Message-ID: <201007312037.46755.gambas@...1...> > Hi, > > here ist svn version 3083 on a SuSe 11.2. > When you do 'Save project as...', the form FMain will show not as form but > as plain text. > If you close the form and class and reopen it, FMain works again. > > Regards > Matti > I know. I have forgot that bug, but I knew it. :-) Thanks for remind me! -- Beno?t Minisini From math.eber at ...221... Sat Jul 31 21:47:11 2010 From: math.eber at ...221... (Matti) Date: Sat, 31 Jul 2010 21:47:11 +0200 Subject: [Gambas-user] Bug in gb3: save as In-Reply-To: <201007312037.46755.gambas@...1...> References: <4C5451D2.20902@...221...> <201007312037.46755.gambas@...1...> Message-ID: <4C547DBF.8050302@...221...> You're welcome. Never mind, you must have tons of forgettable things... :-) Am 31.07.2010 20:37, schrieb Beno?t Minisini: >> Hi, >> >> here ist svn version 3083 on a SuSe 11.2. >> When you do 'Save project as...', the form FMain will show not as form but >> as plain text. >> If you close the form and class and reopen it, FMain works again. >> >> Regards >> Matti >> > > I know. I have forgot that bug, but I knew it. :-) > > Thanks for remind me! >