From gambas at ...2524... Sun Jan 1 02:08:01 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 01 Jan 2012 01:08:01 +0000 Subject: [Gambas-user] Issue 179 in gambas: Download source for 3.0 tar.gz doesn't include ./configure Message-ID: <0-6813199134517018827-6756245622498448817-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 179 by zed.s... at ...626...: Download source for 3.0 tar.gz doesn't include ./configure http://code.google.com/p/gambas/issues/detail?id=179 1) Describe the problem. The whole world pre-creates the ./configure. Gambas's tar.gz doesn't have one. autoreconf fails and shouldn't be required. 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: 3.0 download source. 5) Explain clearly how to reproduce the bug or the crash. Download source. tar -xjvf gambas-3.0.tar.bz3 cd gambas-3.0 ./configure Fail. From nando_f at ...951... Sun Jan 1 04:33:36 2012 From: nando_f at ...951... (nando) Date: Sat, 31 Dec 2011 23:33:36 -0400 Subject: [Gambas-user] Question about REPLACE$ Message-ID: <20120101032611.M41798@...951...> Question: Code piece dim i as integer dim s as string i = 12345 s = "the number is " Replace$( s , "", STR$(i) , gb.case) Replace$( s , "", STR$(i) , gb.case) The first Replace will do the substitution The second Replace will not do the substitution The Question is this: will the second Replace internally perform the STR$(i) conversion to be ready for a possible substitution even though there are no substitutions to do? -Fernando From gambas at ...2524... Sun Jan 1 05:33:34 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 01 Jan 2012 04:33:34 +0000 Subject: [Gambas-user] Issue 1 in gambas: Gambas 3 has not been release yet In-Reply-To: <5-6813199134517018827-10510653250435311728-gambas=googlecode.com@...2524...> References: <5-6813199134517018827-10510653250435311728-gambas=googlecode.com@...2524...> <0-6813199134517018827-10510653250435311728-gambas=googlecode.com@...2524...> Message-ID: <6-6813199134517018827-10510653250435311728-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #6 on issue 1 by benoit.m... at ...626...: Gambas 3 has not been release yet http://code.google.com/p/gambas/issues/detail?id=1 Fixed in revision #4385. From gambas.fr at ...626... Sun Jan 1 10:31:15 2012 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 1 Jan 2012 10:31:15 +0100 Subject: [Gambas-user] Question about REPLACE$ In-Reply-To: <20120101032611.M41798@...951...> References: <20120101032611.M41798@...951...> Message-ID: 2012/1/1 nando : > Question: Code piece > > ?dim i as integer > ?dim s as string > > ?i = 12345 > ?s = "the number is " > > ?Replace$( s , "", STR$(i) , gb.case) > ?Replace$( s , "", STR$(i) , gb.case) > > > The first Replace will do the substitution > The second Replace will not do the substitution > > The Question is this: > > ?will the second Replace internally perform the STR$(i) conversion > ?to be ready for a possible substitution even though there are > ?no substitutions to do? > > -Fernando > > ------------------------------------------------------------------------------ > Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex > infrastructure or vast IT resources to deliver seamless, secure access to > virtual desktops. With this all-in-one solution, easily deploy virtual > desktops for less than the cost of PCs and save 60% on VDI infrastructure > costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard You can control that yourself by making your own function Public sub MyStr(value as varian) as string Debug( "Conversion") return str(Value) end From gambas at ...2524... Sun Jan 1 15:52:31 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 01 Jan 2012 14:52:31 +0000 Subject: [Gambas-user] Issue 180 in gambas: Process_Read event receives extra newline characters. Message-ID: <0-6813199134517018827-12513076045567757329-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 180 by jussi.la... at ...626...: Process_Read event receives extra newline characters. http://code.google.com/p/gambas/issues/detail?id=180 1) Describe the problem. Process_Read event receives extra newline characters. 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: TRUNK Revision: r4387 Operating system: Linux Distribution: Xubuntu Architecture: x86_64 GUI component: QT4 / GTK+ Desktop used: XFCE 3) Provide a little project that reproduces the bug or the crash. Attached. Attachments: ExecBug-0.0.1.tar.gz 5.7 KB From admin at ...2701... Sun Jan 1 16:27:52 2012 From: admin at ...2701... (J_Mischk3) Date: Sun, 1 Jan 2012 07:27:52 -0800 (PST) Subject: [Gambas-user] Shared Memory usefull? Message-ID: <33062027.post@...1379...> I think, that could be a nice component for Gambas, so we can use it for quasi threading some programms. ( I see no multithreadingfeatures in gambas ) Now I want to make a new component, but the example in the documentation ( part Main-files and so on ) are simply blank. Where can I see, how to write this new component in C for Gambas? I have enough expirience in C, so I need "only" the part, how to fill it for Gambas. Have a nice 2012 and thanks for Gmabas3, it looks very usefull. -- View this message in context: http://old.nabble.com/Shared-Memory-usefull--tp33062027p33062027.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...2524... Sun Jan 1 17:51:52 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 01 Jan 2012 16:51:52 +0000 Subject: [Gambas-user] Issue 180 in gambas: Process_Read event receives extra newline characters. In-Reply-To: <0-6813199134517018827-12513076045567757329-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-12513076045567757329-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-12513076045567757329-gambas=googlecode.com@...2524...> Updates: Status: Invalid Labels: -Version Version-TRUNK Comment #1 on issue 180 by benoit.m... at ...626...: Process_Read event receives extra newline characters. http://code.google.com/p/gambas/issues/detail?id=180 Maybe you should write your program correctly? Put a debug line at the top of the Process_Read() method to print which character you are reading. And you will see that you are receiving the characters sent by the echo command correctly. From jussi.lahtinen at ...626... Sun Jan 1 17:52:38 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 1 Jan 2012 18:52:38 +0200 Subject: [Gambas-user] Shared Memory usefull? In-Reply-To: <33062027.post@...1379...> References: <33062027.post@...1379...> Message-ID: Example component gb.xml is written with C, maybe you can use it as example (/trunk/gb.xml/src) . Jussi On Sun, Jan 1, 2012 at 17:27, J_Mischk3 wrote: > > I think, that could be a nice component for Gambas, so we can use it for > quasi threading some programms. ( I see no multithreadingfeatures in gambas > ) > > Now I want to make a new component, but the example in the documentation ( > part Main-files and so on ) are simply blank. > > Where can I see, how to write this new component in C for Gambas? I have > enough expirience in C, so I need "only" the part, how to fill it for > Gambas. > > Have a nice 2012 and thanks for Gmabas3, it looks very usefull. > -- > View this message in context: > http://old.nabble.com/Shared-Memory-usefull--tp33062027p33062027.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > > ------------------------------------------------------------------------------ > Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex > infrastructure or vast IT resources to deliver seamless, secure access to > virtual desktops. With this all-in-one solution, easily deploy virtual > desktops for less than the cost of PCs and save 60% on VDI infrastructure > costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...2524... Sun Jan 1 18:01:54 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 01 Jan 2012 17:01:54 +0000 Subject: [Gambas-user] Issue 179 in gambas: Download source for 3.0 tar.gz doesn't include ./configure In-Reply-To: <0-6813199134517018827-6756245622498448817-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-6756245622498448817-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-6756245622498448817-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -Version -Priority-Medium Version-TRUNK Priority-Low Comment #1 on issue 179 by benoit.m... at ...626...: Download source for 3.0 tar.gz doesn't include ./configure http://code.google.com/p/gambas/issues/detail?id=179 For some reasons, the generated configure file didn't work everywhere as expected, unless it was regenerated by the autoconf of the target system. So I removed it. That problem needs some investigation, but autoconf is like one of the seven hells, so I don't know when I will look at that problem. From gambas at ...2524... Sun Jan 1 18:05:54 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 01 Jan 2012 17:05:54 +0000 Subject: [Gambas-user] Issue 172 in gambas: Using static symbols on objects not consistent In-Reply-To: <8-6813199134517018827-4122091894508805600-gambas=googlecode.com@...2524...> References: <8-6813199134517018827-4122091894508805600-gambas=googlecode.com@...2524...> <0-6813199134517018827-4122091894508805600-gambas=googlecode.com@...2524...> Message-ID: <9-6813199134517018827-4122091894508805600-gambas=googlecode.com@...2524...> Updates: Labels: -Priority-Medium Priority-Low Comment #9 on issue 172 by benoit.m... at ...626...: Using static symbols on objects not consistent http://code.google.com/p/gambas/issues/detail?id=172 (No comment was entered for this change.) From jussi.lahtinen at ...626... Sun Jan 1 18:16:59 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 1 Jan 2012 19:16:59 +0200 Subject: [Gambas-user] Issue 180 in gambas: Process_Read event receives extra newline characters. In-Reply-To: <1-6813199134517018827-12513076045567757329-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-12513076045567757329-gambas=googlecode.com@...2524...> <1-6813199134517018827-12513076045567757329-gambas=googlecode.com@...2524...> Message-ID: Sorry my bad, code is from old project and it has worked well as long as I changed "<" to "<="!? Don't know why... Jussi On Sun, Jan 1, 2012 at 18:51, wrote: > Updates: > Status: Invalid > Labels: -Version Version-TRUNK > > Comment #1 on issue 180 by benoit.m... at ...626...: Process_Read event > receives extra newline characters. > http://code.google.com/p/gambas/issues/detail?id=180 > > Maybe you should write your program correctly? > > Put a debug line at the top of the Process_Read() method to print which > character you are reading. And you will see that you are receiving the > characters sent by the echo command correctly. > > > > ------------------------------------------------------------------------------ > Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex > infrastructure or vast IT resources to deliver seamless, secure access to > virtual desktops. With this all-in-one solution, easily deploy virtual > desktops for less than the cost of PCs and save 60% on VDI infrastructure > costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...2524... Sun Jan 1 19:36:11 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 01 Jan 2012 18:36:11 +0000 Subject: [Gambas-user] Issue 181 in gambas: Crash with certain menu caption. Message-ID: <0-6813199134517018827-9691118861731232159-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 181 by jussi.la... at ...626...: Crash with certain menu caption. http://code.google.com/p/gambas/issues/detail?id=181 1) Describe the problem. Crash with certain menu caption. 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: TRUNK Revision: r4387 Operating system: Linux Distribution: Xubuntu Architecture: x86_64 GUI component: GTK+ Desktop used: XFCE 3) Provide a little project that reproduces the bug or the crash. Attached. 5) Explain clearly how to reproduce the bug or the crash. Start and close the attached project few times to get it crash. Attachments: MenuCrash-0.0.1.tar.gz 4.5 KB From gambas at ...2524... Mon Jan 2 04:38:48 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 02 Jan 2012 03:38:48 +0000 Subject: [Gambas-user] Issue 182 in gambas: Rmdir should have an error code to report the deletion of a folder with content Message-ID: <0-6813199134517018827-14491615997377405895-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 182 by sebi... at ...626...: Rmdir should have an error code to report the deletion of a folder with content http://code.google.com/p/gambas/issues/detail?id=182 If you execute Rmdir over a folder with content, it will return error 42 (System Error) and message . For better understanding, and easy the detection of this kind of errors, it should return a proper error code only raised when an attempt to delete a non empty directory is made From sebikul at ...626... Mon Jan 2 06:10:36 2012 From: sebikul at ...626... (Sebastian Kulesz) Date: Mon, 2 Jan 2012 02:10:36 -0300 Subject: [Gambas-user] Creating an Ubuntu Source Package for uploading to a PPA Message-ID: With the recent release of Gambas 3 as a stable IDE, I wanted to release a Beta version of a software i'm developing, and test the Launchpad PPA release system for future releases. I'm very familiar with Arch Linux system (the OS I currently use), and I know that uploading a package to the AUR (https://wiki.archlinux.org/index.php/AUR) involves creating only a file with shell instructions. But i'm having serious trouble when creating a source package to upload to Launchpad. I have little knowledge about the debianization (content of ./debian folder) of an application. But not enough to completely package an application without errors. I tried creating an Ubuntu .deb package using the Gambas IDE, and the used the created .changes file to create the PPA package. But for a reason I could not identify, it was failing constantly, complaining about the chengelog format, the signing of files, etc. I wanted to ask, first, if it would be possible to add this as a feature on the IDE (creating a source package) and optionally execute dput if available to upload it. This would require to include signing features to Gambas, as well as creating a proper changelog (./debian/changelog) file, following the ubuntu packaging guide, which should include the full Ubuntu release name and not just the state of the application in the project configuration (i.e.: The created changelog specifies the release as "unstable" if set in the IDE, but when creating the source package it should specify the Ubuntu release: precise, onereic, natty, etc) This would obviously be a non trivial feature, as it would require a lot of work, testing, debugging, and needs to be done by someone with knowledge of both Debian/Ubuntu packaging, and Gambas programming. But IMHO, a good IDE is not good just by easing the programming of software but by easing the release of it. I think Gambas would REALLY benefit from this, as it would help spread it's use, while at the same time help people submit their application to developers.ubuntu.com to make them available to the Ubuntu Software Center, besides the Launchpad solution I just proposed. It would be nice, if the above proposal is not possible (at least in the short time), to have a guide on how to build this source package using native tools, such as debhelper and dh_make (specifying what to include in the rules/control/install files), and any other required step. I would like to know what you think of this proposal. is it to hard? would it take too much time (Gambas 4 feature)? I'm open to any comments, please. Thanks! and have a nice year ;) From support at ...2529... Mon Jan 2 06:48:56 2012 From: support at ...2529... (John Spikowski) Date: Sun, 01 Jan 2012 21:48:56 -0800 Subject: [Gambas-user] Creating an Ubuntu Source Package for uploading to a PPA In-Reply-To: References: Message-ID: <1325483336.2131.27.camel@...1833...> On Mon, 2012-01-02 at 02:10 -0300, Sebastian Kulesz wrote: > I would like to know what you think of this proposal. is it to hard? > would it take too much time (Gambas 4 feature)? I'm open to any > comments, please. If I created a Gambas 3 application and wanted to distribute it to my customers that have a bare bones Linux system, what are the steps in doing this without having to give them a full development system as well? From sebikul at ...626... Mon Jan 2 07:20:50 2012 From: sebikul at ...626... (Sebastian Kulesz) Date: Mon, 2 Jan 2012 03:20:50 -0300 Subject: [Gambas-user] Code snippets category in the wiki Message-ID: Hi!! I would like to know what do you think about a Code Snippets category being added to the wiki. It would be a place to share common pieces of code that tend to be used (and coded from scratch) a lot. From gambas at ...2524... Mon Jan 2 10:33:08 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 02 Jan 2012 09:33:08 +0000 Subject: [Gambas-user] Issue 183 in gambas: Install Gambas 3 on Mandriva 2011.2 Message-ID: <0-6813199134517018827-9543092773629140940-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 183 by LeMandri... at ...626...: Install Gambas 3 on Mandriva 2011.2 http://code.google.com/p/gambas/issues/detail?id=183 1) Missing paquets when installing ? 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: 3.0 Operating system: Linux Distribution: Mandriva Architecture: x86_64 Desktop used: KDE [yves at ...2750... T?l?chargements]$ ./reconf-all ./reconf-all: line 7: libtoolize : commande introuvable ./reconf-all: line 8: autoreconf : commande introuvable Happy new year ! From nando_f at ...951... Mon Jan 2 13:10:13 2012 From: nando_f at ...951... (nando) Date: Mon, 2 Jan 2012 08:10:13 -0400 Subject: [Gambas-user] GAMBAS Test Suite question Message-ID: <20120102120700.M96449@...951...> I'd like to know if there is a comprehensive test suite out there to test all (or as much as possible of) of GAMBAS ? It would be easier over time and new releases to run the 'big' test to prove anything that might become broken. Opinions? -Fernando From jussi.lahtinen at ...626... Mon Jan 2 16:30:37 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 2 Jan 2012 17:30:37 +0200 Subject: [Gambas-user] Code snippets category in the wiki In-Reply-To: References: Message-ID: Idea is great, but it will need volunteers... Jussi On Mon, Jan 2, 2012 at 08:20, Sebastian Kulesz wrote: > Hi!! > > I would like to know what do you think about a Code Snippets category > being added to the wiki. It would be a place to share common pieces of > code that tend to be used (and coded from scratch) a lot. > > > ------------------------------------------------------------------------------ > Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex > infrastructure or vast IT resources to deliver seamless, secure access to > virtual desktops. With this all-in-one solution, easily deploy virtual > desktops for less than the cost of PCs and save 60% on VDI infrastructure > costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From mohareve at ...626... Mon Jan 2 17:03:08 2012 From: mohareve at ...626... (M. Cs.) Date: Mon, 2 Jan 2012 17:03:08 +0100 Subject: [Gambas-user] Cannot close GUI application Message-ID: The command Quit() won't work in my application, so I cannot terminate the process. The GUI disappears, but the process remains. Is there any safe way to close a GUI application? Csaba From linuxos at ...1896... Mon Jan 2 18:36:01 2012 From: linuxos at ...1896... (Olivier Cruilles) Date: Mon, 2 Jan 2012 18:36:01 +0100 Subject: [Gambas-user] Cannot close GUI application In-Reply-To: References: Message-ID: <31EFC54C-3DA6-4B19-9239-D2C8B5C5FC1F@...1896...> Hello, Did you use the quit() command in the main Form ? Olivier Cruilles Mail: linuxos at ...1896... Le 2 janv. 2012 ? 17:03, M. Cs. a ?crit : > The command Quit() won't work in my application, so I cannot terminate > the process. The GUI disappears, but the process remains. Is there any > safe way to close a GUI application? > > Csaba > > ------------------------------------------------------------------------------ > Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex > infrastructure or vast IT resources to deliver seamless, secure access to > virtual desktops. With this all-in-one solution, easily deploy virtual > desktops for less than the cost of PCs and save 60% on VDI infrastructure > costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From ron at ...1740... Mon Jan 2 18:38:14 2012 From: ron at ...1740... (Ron) Date: Mon, 2 Jan 2012 18:38:14 +0100 Subject: [Gambas-user] Cannot close GUI application In-Reply-To: <31EFC54C-3DA6-4B19-9239-D2C8B5C5FC1F@...1896...> References: <31EFC54C-3DA6-4B19-9239-D2C8B5C5FC1F@...1896...> Message-ID: Just close all open handles file hand timers hand close main form with me.close Ron Op 2 jan. 2012 18:36 schreef "Olivier Cruilles" het volgende: > Hello, > > Did you use the quit() command in the main Form ? > > > > > > Olivier Cruilles > Mail: linuxos at ...1896... > > Le 2 janv. 2012 ? 17:03, M. Cs. a ?crit : > > > The command Quit() won't work in my application, so I cannot terminate > > the process. The GUI disappears, but the process remains. Is there any > > safe way to close a GUI application? > > > > Csaba > > > > > ------------------------------------------------------------------------------ > > Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex > > infrastructure or vast IT resources to deliver seamless, secure access to > > virtual desktops. With this all-in-one solution, easily deploy virtual > > desktops for less than the cost of PCs and save 60% on VDI infrastructure > > costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------------ > Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex > infrastructure or vast IT resources to deliver seamless, secure access to > virtual desktops. With this all-in-one solution, easily deploy virtual > desktops for less than the cost of PCs and save 60% on VDI infrastructure > costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From linuxos at ...1896... Mon Jan 2 18:46:10 2012 From: linuxos at ...1896... (Olivier Cruilles) Date: Mon, 2 Jan 2012 18:46:10 +0100 Subject: [Gambas-user] Cannot close GUI application In-Reply-To: References: <31EFC54C-3DA6-4B19-9239-D2C8B5C5FC1F@...1896...> Message-ID: I think in this case that there is an object non closed and for this reason gambas does not want to close your application. Olivier Cruilles Mail: linuxos at ...1896... Le 2 janv. 2012 ? 18:38, Ron a ?crit : > Just close all open handles file hand timers hand close main form with > me.close > Ron > Op 2 jan. 2012 18:36 schreef "Olivier Cruilles" > het volgende: > >> Hello, >> >> Did you use the quit() command in the main Form ? >> >> >> >> >> >> Olivier Cruilles >> Mail: linuxos at ...1896... >> >> Le 2 janv. 2012 ? 17:03, M. Cs. a ?crit : >> >>> The command Quit() won't work in my application, so I cannot terminate >>> the process. The GUI disappears, but the process remains. Is there any >>> safe way to close a GUI application? >>> >>> Csaba >>> >>> >> ------------------------------------------------------------------------------ >>> Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex >>> infrastructure or vast IT resources to deliver seamless, secure access to >>> virtual desktops. With this all-in-one solution, easily deploy virtual >>> desktops for less than the cost of PCs and save 60% on VDI infrastructure >>> costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> ------------------------------------------------------------------------------ >> Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex >> infrastructure or vast IT resources to deliver seamless, secure access to >> virtual desktops. With this all-in-one solution, easily deploy virtual >> desktops for less than the cost of PCs and save 60% on VDI infrastructure >> costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex > infrastructure or vast IT resources to deliver seamless, secure access to > virtual desktops. With this all-in-one solution, easily deploy virtual > desktops for less than the cost of PCs and save 60% on VDI infrastructure > costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From jussi.lahtinen at ...626... Mon Jan 2 19:24:56 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 2 Jan 2012 20:24:56 +0200 Subject: [Gambas-user] Running programs from terminal and by double clicking. Message-ID: Hi! Strange problem. For some reason I'm not able to start child processes if the parent program is launched by double clicking. This is very specific issue. Firstly child program must be made with gambas, and it must be evoked with certain command. Here is code (also ready project is attached) to test the problem: Private hProcess As Process Public Sub Button1_Click() Dim sTmp As String = Application.Path &/ "ExecBug2.gambas" If Exist(sTmp) = False Then Error.Raise("Binary file is missing!") hProcess = Exec ["gbr3", sTmp] For Input As "Process" Wait 1 If hProcess.State = hProcess.Running Then Message("Project is started from terminal!") Else Message("Project is started by double clicking with mouse!") Endif End Steps to reproduce the problem: 1. Open the code in IDE and compile two different executables from it, name them ExecBug.gambas and ExecBug2.gambas. 2. Make sure the executables are in same folder! 3. Double click on ExecBug.gambas and read the message; it should tell you how you started ExecBug.gambas. 4. Open terminal to the folder and type "./ExecBug.gambas". 5 Now you should have two instances of this program (ExecBug.gambas and ExecBug2.gambas) and message should tell you it is started from terminal. This is new behaviour, but I don't know when this exactly emerged. I would say month ago everything worked. Am I missing something? Problem with my machine? Can someone confirm? Thanks! Jussi Gambas 3 @ Ubuntu 11.10 64bit -------------- next part -------------- A non-text attachment was scrubbed... Name: ExecBug-2.0.23.tar.gz Type: application/x-gzip Size: 5030 bytes Desc: not available URL: From gambas at ...1... Mon Jan 2 19:57:33 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 02 Jan 2012 19:57:33 +0100 Subject: [Gambas-user] Cannot close GUI application In-Reply-To: References: Message-ID: <4F01FE1D.4050301@...1...> Le 02/01/2012 17:03, M. Cs. a ?crit : > The command Quit() won't work in my application, so I cannot terminate > the process. The GUI disappears, but the process remains. Is there any > safe way to close a GUI application? > > Csaba > Please elaborate. Send me a project so that I can reproduce the problem. The QUIT instruction aborts the program brutally (almost), so it should quit! -- Beno?t Minisini From gambas at ...1... Mon Jan 2 19:58:11 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 02 Jan 2012 19:58:11 +0100 Subject: [Gambas-user] Code snippets category in the wiki In-Reply-To: References: Message-ID: <4F01FE43.3040503@...1...> Le 02/01/2012 07:20, Sebastian Kulesz a ?crit : > Hi!! > > I would like to know what do you think about a Code Snippets category > being added to the wiki. It would be a place to share common pieces of > code that tend to be used (and coded from scratch) a lot. > Yes, great idea. As soon as I don't do it myself, it's already a good idea. :-) -- Beno?t Minisini From gambas at ...1... Mon Jan 2 20:01:46 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 02 Jan 2012 20:01:46 +0100 Subject: [Gambas-user] Running programs from terminal and by double clicking. In-Reply-To: References: Message-ID: <4F01FF1A.2070102@...1...> Le 02/01/2012 19:24, Jussi Lahtinen a ?crit : > Hi! > Strange problem. For some reason I'm not able to start child processes if > the parent program is launched by double clicking. > This is very specific issue. Firstly child program must be made with > gambas, and it must be evoked with certain command. > > Here is code (also ready project is attached) to test the problem: > > Private hProcess As Process > > Public Sub Button1_Click() > > Dim sTmp As String = Application.Path&/ "ExecBug2.gambas" > > If Exist(sTmp) = False Then Error.Raise("Binary file is missing!") > > hProcess = Exec ["gbr3", sTmp] For Input As "Process" > > Wait 1 > > If hProcess.State = hProcess.Running Then > Message("Project is started from terminal!") > Else > Message("Project is started by double clicking with mouse!") > Endif > > End > > > Steps to reproduce the problem: > > 1. Open the code in IDE and compile two different executables from it, name > them ExecBug.gambas and ExecBug2.gambas. > 2. Make sure the executables are in same folder! > 3. Double click on ExecBug.gambas and read the message; it should tell you > how you started ExecBug.gambas. > 4. Open terminal to the folder and type "./ExecBug.gambas". > 5 Now you should have two instances of this program (ExecBug.gambas and > ExecBug2.gambas) and message should tell you it is started from terminal. > > > This is new behaviour, but I don't know when this exactly emerged. I would > say month ago everything worked. > Am I missing something? Problem with my machine? > > Can someone confirm? > Thanks! > > Jussi > > Gambas 3 @ Ubuntu 11.10 64bit > Exec ["gbr3" ... ] will search for gbr3 in the PATH environment variable. Maybe you don't have the same PATH when you run a command from a terminal, and when you run it by "double-clicking" on an icon? Note that if PATH is not defined, the program is searched in /usr and /usr/bin. Regards, -- Beno?t Minisini From sebikul at ...626... Mon Jan 2 20:51:09 2012 From: sebikul at ...626... (Sebi) Date: Mon, 2 Jan 2012 19:51:09 +0000 Subject: [Gambas-user] Code snippets category in the wiki In-Reply-To: <4F01FE43.3040503@...1...> References: <4F01FE43.3040503@...1...> Message-ID: <29297019-1325533869-cardhu_decombobulator_blackberry.rim.net-1647220737-@...2753...> I tried to create a page at using my credentials, but it seems I can only edit pages. Could you check this please? -----Original Message----- From: Beno?t Minisini Date: Mon, 02 Jan 2012 19:58:11 To: mailing list for gambas users Reply-To: mailing list for gambas users Subject: Re: [Gambas-user] Code snippets category in the wiki Le 02/01/2012 07:20, Sebastian Kulesz a ?crit : > Hi!! > > I would like to know what do you think about a Code Snippets category > being added to the wiki. It would be a place to share common pieces of > code that tend to be used (and coded from scratch) a lot. > Yes, great idea. As soon as I don't do it myself, it's already a good idea. :-) -- Beno?t Minisini ------------------------------------------------------------------------------ Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex infrastructure or vast IT resources to deliver seamless, secure access to virtual desktops. With this all-in-one solution, easily deploy virtual desktops for less than the cost of PCs and save 60% on VDI infrastructure costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas.fr at ...626... Mon Jan 2 20:51:46 2012 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 2 Jan 2012 20:51:46 +0100 Subject: [Gambas-user] Cannot close GUI application In-Reply-To: <4F01FE1D.4050301@...1...> References: <4F01FE1D.4050301@...1...> Message-ID: Le 2 janvier 2012 19:57, Beno?t Minisini a ?crit : > Le 02/01/2012 17:03, M. Cs. a ?crit : >> The command Quit() won't work in my application, so I cannot terminate >> the process. The GUI disappears, but the process remains. Is there any >> safe way to close a GUI application? >> >> Csaba >> > > Please elaborate. Send me a project so that I can reproduce the problem. > The QUIT instruction aborts the program brutally (almost), so it should > quit! I'm on it ... Bad design... many variables are not freed. It's not a bug > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex > infrastructure or vast IT resources to deliver seamless, secure access to > virtual desktops. With this all-in-one solution, easily deploy virtual > desktops for less than the cost of PCs and save 60% on VDI infrastructure > costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard From gambas.fr at ...626... Mon Jan 2 20:53:17 2012 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 2 Jan 2012 20:53:17 +0100 Subject: [Gambas-user] Code snippets category in the wiki In-Reply-To: <29297019-1325533869-cardhu_decombobulator_blackberry.rim.net-1647220737-@...2753...> References: <4F01FE43.3040503@...1...> <29297019-1325533869-cardhu_decombobulator_blackberry.rim.net-1647220737-@...2753...> Message-ID: 2012/1/2 Sebi : > I tried to create a page at using my credentials, but it seems I can only edit pages. Could you check this please? have you try to click on create ? > -----Original Message----- > From: Beno?t Minisini > Date: Mon, 02 Jan 2012 19:58:11 > To: mailing list for gambas users > Reply-To: mailing list for gambas users > Subject: Re: [Gambas-user] Code snippets category in the wiki > > Le 02/01/2012 07:20, Sebastian Kulesz a ?crit : >> Hi!! >> >> I would like to know what do you think about a Code Snippets category >> being added to the wiki. It would be a place to share common pieces of >> code that tend to be used (and coded from scratch) a lot. >> > > Yes, great idea. As soon as I don't do it myself, it's already a good > idea. :-) > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex > infrastructure or vast IT resources to deliver seamless, secure access to > virtual desktops. With this all-in-one solution, easily deploy virtual > desktops for less than the cost of PCs and save 60% on VDI infrastructure > costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > ------------------------------------------------------------------------------ > Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex > infrastructure or vast IT resources to deliver seamless, secure access to > virtual desktops. With this all-in-one solution, easily deploy virtual > desktops for less than the cost of PCs and save 60% on VDI infrastructure > costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard From jussi.lahtinen at ...626... Mon Jan 2 21:09:39 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 2 Jan 2012 22:09:39 +0200 Subject: [Gambas-user] Running programs from terminal and by double clicking. In-Reply-To: <4F01FF1A.2070102@...1...> References: <4F01FF1A.2070102@...1...> Message-ID: > Exec ["gbr3" ... ] will search for gbr3 in the PATH environment > variable. Maybe you don't have the same PATH when you run a command from > a terminal, and when you run it by "double-clicking" on an icon? Note > that if PATH is not defined, the program is searched in /usr and /usr/bin. > In my system gbr3 is in /usr/local/bin/, and if it is searched only in /usr and /usr/bin, then it really is missing... But: $ echo $PATH /usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games And I copied gbr3 to /usr/bin but result is same. Also the problem is gone if I change: hProcess = Exec ["gbr3", sTmp] For Input As "Process" To: hProcess = Exec ["gbr3", sTmp] As "Process" Any ideas? Jussi From ron at ...1740... Mon Jan 2 21:16:36 2012 From: ron at ...1740... (Ron) Date: Mon, 2 Jan 2012 21:16:36 +0100 Subject: [Gambas-user] Cannot close GUI application In-Reply-To: References: <4F01FE1D.4050301@...1...> Message-ID: You always get unfreed stuff when using Quit in a GUI project is my experience. In Form_Close() ' exit program Main.CloseAll() FMain.Close END In CloseAll() I close all file handles, sockets, serial ports and stop timers. Then FMain.Close does the trick nicely. Regards, Ron_2nd. 2012/1/2 Fabien Bodard > Le 2 janvier 2012 19:57, Beno?t Minisini > a ?crit : > > Le 02/01/2012 17:03, M. Cs. a ?crit : > >> The command Quit() won't work in my application, so I cannot terminate > >> the process. The GUI disappears, but the process remains. Is there any > >> safe way to close a GUI application? > >> > >> Csaba > >> > > > > Please elaborate. Send me a project so that I can reproduce the problem. > > The QUIT instruction aborts the program brutally (almost), so it should > > quit! > > I'm on it ... Bad design... many variables are not freed. > > It's not a bug > > > > > -- > > Beno?t Minisini > > > > > ------------------------------------------------------------------------------ > > Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex > > infrastructure or vast IT resources to deliver seamless, secure access to > > virtual desktops. With this all-in-one solution, easily deploy virtual > > desktops for less than the cost of PCs and save 60% on VDI infrastructure > > costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > -- > Fabien Bodard > > > ------------------------------------------------------------------------------ > Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex > infrastructure or vast IT resources to deliver seamless, secure access to > virtual desktops. With this all-in-one solution, easily deploy virtual > desktops for less than the cost of PCs and save 60% on VDI infrastructure > costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From rmorgan62 at ...626... Mon Jan 2 21:39:54 2012 From: rmorgan62 at ...626... (Randall Morgan) Date: Mon, 2 Jan 2012 12:39:54 -0800 Subject: [Gambas-user] GAMBAS Test Suite question In-Reply-To: <20120102120700.M96449@...951...> References: <20120102120700.M96449@...951...> Message-ID: There are several stand-alone tools at: http://ltp.sourceforge.net/tooltable.php You can find some tools from Oracle here: http://www.oracle.com/technetwork/oem/downloads/index-084446.html And lots of Linux specific info here: http://www.opengroup.org/testing/linux-test/ Hope this helps, Randall On Mon, Jan 2, 2012 at 4:10 AM, nando wrote: > I'd like to know if there is a comprehensive test suite out there to > test all (or as much as possible of) of GAMBAS ? > > It would be easier over time and new releases to run the 'big' test > to prove anything that might become broken. > > Opinions? > -Fernando > > > ------------------------------------------------------------------------------ > Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex > infrastructure or vast IT resources to deliver seamless, secure access to > virtual desktops. With this all-in-one solution, easily deploy virtual > desktops for less than the cost of PCs and save 60% on VDI infrastructure > costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- If you ask me if it can be done. The answer is YES, it can always be done. The correct questions however are... What will it cost, and how long will it take? From jussi.lahtinen at ...626... Mon Jan 2 21:52:16 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 2 Jan 2012 22:52:16 +0200 Subject: [Gambas-user] GAMBAS Test Suite question In-Reply-To: <20120102120700.M96449@...951...> References: <20120102120700.M96449@...951...> Message-ID: I attached my crappy version of it. I run it automatically with my compile script. It's free for all use. Jussi On Mon, Jan 2, 2012 at 14:10, nando wrote: > I'd like to know if there is a comprehensive test suite out there to > test all (or as much as possible of) of GAMBAS ? > > It would be easier over time and new releases to run the 'big' test > to prove anything that might become broken. > > Opinions? > -Fernando > > > ------------------------------------------------------------------------------ > Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex > infrastructure or vast IT resources to deliver seamless, secure access to > virtual desktops. With this all-in-one solution, easily deploy virtual > desktops for less than the cost of PCs and save 60% on VDI infrastructure > costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -------------- next part -------------- A non-text attachment was scrubbed... Name: GambasTester-0.9.21.tar.gz Type: application/x-gzip Size: 16037 bytes Desc: not available URL: From vuott at ...325... Mon Jan 2 21:58:59 2012 From: vuott at ...325... (Ru Vuott) Date: Mon, 2 Jan 2012 20:58:59 +0000 (GMT) Subject: [Gambas-user] Unable to save a GIF picture In-Reply-To: <4EFBA0F1.6000106@...1...> Message-ID: <1325537939.72059.YahooMailClassic@...2695...> Hello, ...I try: $Screenshot = Desktop.Screenshot() $Screenshot.Save("meaImago.gif") but with .gif there's a problemem: I have this error: "Unable to save picture" Regards Paolo From jussi.lahtinen at ...626... Mon Jan 2 22:20:56 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 2 Jan 2012 23:20:56 +0200 Subject: [Gambas-user] Running programs from terminal and by double clicking. In-Reply-To: References: Message-ID: Sorry, not Ubuntu! I'm using Xubuntu. Jussi On Mon, Jan 2, 2012 at 20:24, Jussi Lahtinen wrote: > Hi! > Strange problem. For some reason I'm not able to start child processes if > the parent program is launched by double clicking. > This is very specific issue. Firstly child program must be made with > gambas, and it must be evoked with certain command. > > Here is code (also ready project is attached) to test the problem: > > Private hProcess As Process > > Public Sub Button1_Click() > > Dim sTmp As String = Application.Path &/ "ExecBug2.gambas" > > If Exist(sTmp) = False Then Error.Raise("Binary file is missing!") > > hProcess = Exec ["gbr3", sTmp] For Input As "Process" > > Wait 1 > > If hProcess.State = hProcess.Running Then > Message("Project is started from terminal!") > Else > Message("Project is started by double clicking with mouse!") > Endif > > End > > > Steps to reproduce the problem: > > 1. Open the code in IDE and compile two different executables from it, > name them ExecBug.gambas and ExecBug2.gambas. > 2. Make sure the executables are in same folder! > 3. Double click on ExecBug.gambas and read the message; it should tell you > how you started ExecBug.gambas. > 4. Open terminal to the folder and type "./ExecBug.gambas". > 5 Now you should have two instances of this program (ExecBug.gambas and > ExecBug2.gambas) and message should tell you it is started from terminal. > > > This is new behaviour, but I don't know when this exactly emerged. I would > say month ago everything worked. > Am I missing something? Problem with my machine? > > Can someone confirm? > Thanks! > > Jussi > > Gambas 3 @ Ubuntu 11.10 64bit > > > > > > > > > From gambas.fr at ...626... Mon Jan 2 23:41:52 2012 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 2 Jan 2012 23:41:52 +0100 Subject: [Gambas-user] Unable to save a GIF picture In-Reply-To: <1325537939.72059.YahooMailClassic@...2695...> References: <4EFBA0F1.6000106@...1...> <1325537939.72059.YahooMailClassic@...2695...> Message-ID: 2012/1/2 Ru Vuott : > Hello, > > ...I try: > > $Screenshot = Desktop.Screenshot() > $Screenshot.Save("meaImago.gif") if i remember well the Gif isn't a free format > > but with .gif there's a problemem: > > I have this error: "Unable to save picture" > > > Regards > Paolo > > > > ------------------------------------------------------------------------------ > Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex > infrastructure or vast IT resources to deliver seamless, secure access to > virtual desktops. With this all-in-one solution, easily deploy virtual > desktops for less than the cost of PCs and save 60% on VDI infrastructure > costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard From vuott at ...325... Mon Jan 2 23:49:27 2012 From: vuott at ...325... (Ru Vuott) Date: Mon, 2 Jan 2012 22:49:27 +0000 (GMT) Subject: [Gambas-user] Unable to save a GIF picture In-Reply-To: Message-ID: <1325544567.30171.YahooMailClassic@...2695...> > if i remember well the Gif isn't a free format ...ok, Fabien, but I see this format in the Documentation: http://gambasdoc.org/help/comp/gb.image.io/image/save?v3 ...maybe a misprint ? Ciao Paolo --- Lun 2/1/12, Fabien Bodard ha scritto: > Da: Fabien Bodard > Oggetto: Re: [Gambas-user] Unable to save a GIF picture > A: "mailing list for gambas users" > Data: Luned? 2 gennaio 2012, 23:41 > 2012/1/2 Ru Vuott : > > Hello, > > > > ...I try: > > > > $Screenshot = Desktop.Screenshot() > > $Screenshot.Save("meaImago.gif") > > > > > > but with .gif there's a problemem: > > > > I have this error: "Unable to save picture" > > > > > > Regards > > Paolo > > > > > > > > > ------------------------------------------------------------------------------ > > Ridiculously easy VDI. With Citrix VDI-in-a-Box, you > don't need a complex > > infrastructure or vast IT resources to deliver > seamless, secure access to > > virtual desktops. With this all-in-one solution, > easily deploy virtual > > desktops for less than the cost of PCs and save 60% on > VDI infrastructure > > costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > -- > Fabien Bodard > > ------------------------------------------------------------------------------ > Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't > need a complex > infrastructure or vast IT resources to deliver seamless, > secure access to > virtual desktops. With this all-in-one solution, easily > deploy virtual > desktops for less than the cost of PCs and save 60% on VDI > infrastructure > costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Tue Jan 3 01:32:44 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Tue, 03 Jan 2012 01:32:44 +0100 Subject: [Gambas-user] Unable to save a GIF picture In-Reply-To: <1325544567.30171.YahooMailClassic@...2695...> References: <1325544567.30171.YahooMailClassic@...2695...> Message-ID: <4F024CAC.1060908@...1...> Le 02/01/2012 23:49, Ru Vuott a ?crit : >> if i remember well the Gif isn't a free format > > > ...ok, Fabien, but I see this format in the Documentation: > > http://gambasdoc.org/help/comp/gb.image.io/image/save?v3 > > ...maybe a misprint ? > > Ciao > Paolo > Actually, gb.image.io relies on the gdk-pixbuf library to save the picture. So the supported formats are the one supported by that library. -- Beno?t Minisini From ggd543 at ...626... Tue Jan 3 08:19:32 2012 From: ggd543 at ...626... (Liu Yongjian) Date: Tue, 3 Jan 2012 15:19:32 +0800 Subject: [Gambas-user] Can't enable some components of Gambas 3 on Ubuntu 11.10 Message-ID: I have install the following required packages : build-essential autoconf libbz2-dev libfbclient2 libmysqlclient-dev unixodbc-dev libpq-dev libsqlite0-dev libsqlite3-dev libgtk2.0-dev libldap2-dev libcurl4-gnutls-dev libgtkglext1-dev libpcre3-dev libsdl-sound1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev libsage-dev libxml2-dev libxslt1-dev libbonobo2-dev libcos4-dev libomniorb4-dev librsvg2-dev libpoppler-dev libpoppler-glib-dev libasound2-dev libesd0-dev libdirectfb-dev libaa1-dev libxtst-dev libffi-dev kdelibs4-dev firebird2.1-dev libqt4-dev libglew1.5-dev libimlib2-dev libv4l-dev libsdl-ttf2.0-dev libgnome-keyring-dev libgdk-pixbuf2.0-dev linux-libc-dev using `sudo apt-get install ` command But these components : gb.compress.bzlib2 gb.compress.zlib gb.db.mysql gb.db.odbc gb.db.postgresql gb.db.sqlite2 gb.desktop gb.gtk gb.pcre gb.qt4 gb.sdl gb.sdl.sound are disable yet . -- Thank you From ggd543 at ...626... Tue Jan 3 09:17:39 2012 From: ggd543 at ...626... (Liu Yongjian) Date: Tue, 3 Jan 2012 16:17:39 +0800 Subject: [Gambas-user] Can't enable some components of Gambas 3 on Ubuntu 11.10 In-Reply-To: References: Message-ID: I use Gambas 2 , the following component is disable : - gb.qt - gb.qt.kde - gb.qte even if I have install the package `libqt3-mt-dev`. Note: I can't install ` kdelibs4-dev`. On Tue, Jan 3, 2012 at 3:19 PM, Liu Yongjian wrote: > I have install the following required packages : > > > build-essential autoconf libbz2-dev libfbclient2 libmysqlclient-dev unixodbc-dev libpq-dev libsqlite0-dev libsqlite3-dev libgtk2.0-dev libldap2-dev libcurl4-gnutls-dev libgtkglext1-dev libpcre3-dev libsdl-sound1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev libsage-dev libxml2-dev libxslt1-dev libbonobo2-dev libcos4-dev libomniorb4-dev librsvg2-dev libpoppler-dev libpoppler-glib-dev libasound2-dev libesd0-dev libdirectfb-dev libaa1-dev libxtst-dev libffi-dev kdelibs4-dev firebird2.1-dev libqt4-dev libglew1.5-dev libimlib2-dev libv4l-dev libsdl-ttf2.0-dev libgnome-keyring-dev libgdk-pixbuf2.0-dev linux-libc-dev > > > using `sudo apt-get install ` command > > But these components : > > gb.compress.bzlib2 > gb.compress.zlib > gb.db.mysql > gb.db.odbc > gb.db.postgresql > gb.db.sqlite2 > gb.desktop > gb.gtk > gb.pcre > gb.qt4 > gb.sdl > gb.sdl.sound > > > are disable yet . > > -- > Thank you > -- Thank you From girardhenri at ...67... Tue Jan 3 11:29:27 2012 From: girardhenri at ...67... (Girard Henri) Date: Tue, 3 Jan 2012 11:29:27 +0100 Subject: [Gambas-user] Can't enable some components of Gambas 3 on Ubuntu 11.10 In-Reply-To: References: Message-ID: ?? It depends on which debian version you are ? I use ubuntu 12.04 (alpha) but 11.10 is very similar. you won't have kde because kdelibs4-dev aren't in repos anymore. I installed gambas2 from apt-get but I don't like the old theme : so I apt-get a native qt3 theme "polymer", but I could compile it, I only compile gambas3 and suggest to you smoothly forget about gambas2... But as there a lot of apps in gambas2 and not in gambas3 we still need both... So it's normal you don't have kde qte but i don't remember if qt compiled ? Best for you is to get gambas2 from repos and try to google if apps you need are done, otherwise try to make them... regards Le 03/01/2012 09:17, Liu Yongjian a ?crit : > I use Gambas 2 , the following component is disable : > > - gb.qt > - gb.qt.kde > - gb.qte > > even if I have install the package `libqt3-mt-dev`. Note: I can't install ` > kdelibs4-dev`. > > On Tue, Jan 3, 2012 at 3:19 PM, Liu Yongjian wrote: > >> I have install the following required packages : >> >> >> build-essential autoconf libbz2-dev libfbclient2 libmysqlclient-dev unixodbc-dev libpq-dev libsqlite0-dev libsqlite3-dev libgtk2.0-dev libldap2-dev libcurl4-gnutls-dev libgtkglext1-dev libpcre3-dev libsdl-sound1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev libsage-dev libxml2-dev libxslt1-dev libbonobo2-dev libcos4-dev libomniorb4-dev librsvg2-dev libpoppler-dev libpoppler-glib-dev libasound2-dev libesd0-dev libdirectfb-dev libaa1-dev libxtst-dev libffi-dev kdelibs4-dev firebird2.1-dev libqt4-dev libglew1.5-dev libimlib2-dev libv4l-dev libsdl-ttf2.0-dev libgnome-keyring-dev libgdk-pixbuf2.0-dev linux-libc-dev >> >> >> using `sudo apt-get install ` command >> >> But these components : >> >> gb.compress.bzlib2 >> gb.compress.zlib >> gb.db.mysql >> gb.db.odbc >> gb.db.postgresql >> gb.db.sqlite2 >> gb.desktop >> gb.gtk >> gb.pcre >> gb.qt4 >> gb.sdl >> gb.sdl.sound >> >> >> are disable yet . >> >> -- >> Thank you >> > > From jussi.lahtinen at ...626... Tue Jan 3 18:25:52 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Tue, 3 Jan 2012 19:25:52 +0200 Subject: [Gambas-user] Can't enable some components of Gambas 3 on Ubuntu 11.10 In-Reply-To: References: Message-ID: Send output of reconf and configure. Example: ( ./reconf-all && ./configure -C ) > ~/Desktop/compile.log 2>&1 Jussi On Tue, Jan 3, 2012 at 09:19, Liu Yongjian wrote: > I have install the following required packages : > > > build-essential autoconf libbz2-dev libfbclient2 libmysqlclient-dev > unixodbc-dev libpq-dev libsqlite0-dev libsqlite3-dev libgtk2.0-dev > libldap2-dev libcurl4-gnutls-dev libgtkglext1-dev libpcre3-dev > libsdl-sound1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev > libsage-dev libxml2-dev libxslt1-dev libbonobo2-dev libcos4-dev > libomniorb4-dev librsvg2-dev libpoppler-dev libpoppler-glib-dev > libasound2-dev libesd0-dev libdirectfb-dev libaa1-dev libxtst-dev > libffi-dev kdelibs4-dev firebird2.1-dev libqt4-dev libglew1.5-dev > libimlib2-dev libv4l-dev libsdl-ttf2.0-dev libgnome-keyring-dev > libgdk-pixbuf2.0-dev linux-libc-dev > > > using `sudo apt-get install ` command > > But these components : > > gb.compress.bzlib2 > gb.compress.zlib > gb.db.mysql > gb.db.odbc > gb.db.postgresql > gb.db.sqlite2 > gb.desktop > gb.gtk > gb.pcre > gb.qt4 > gb.sdl > gb.sdl.sound > > > are disable yet . > > -- > Thank you > > ------------------------------------------------------------------------------ > Write once. Port to many. > Get the SDK and tools to simplify cross-platform app development. Create > new or port existing apps to sell to consumers worldwide. Explore the > Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join > http://p.sf.net/sfu/intel-appdev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From mohareve at ...626... Tue Jan 3 21:08:33 2012 From: mohareve at ...626... (M. Cs.) Date: Tue, 3 Jan 2012 21:08:33 +0100 Subject: [Gambas-user] Cannot close GUI application In-Reply-To: References: <4F01FE1D.4050301@...1...> Message-ID: Thanks for the replies! Csaba 2012/1/2, Ron : > You always get unfreed stuff when using Quit in a GUI project is my > experience. > > In Form_Close() > > ' exit program > Main.CloseAll() > FMain.Close > > END > > In CloseAll() I close all file handles, sockets, serial ports and stop > timers. > Then FMain.Close does the trick nicely. > > Regards, > Ron_2nd. > 2012/1/2 Fabien Bodard > >> Le 2 janvier 2012 19:57, Beno?t Minisini >> a ?crit : >> > Le 02/01/2012 17:03, M. Cs. a ?crit : >> >> The command Quit() won't work in my application, so I cannot terminate >> >> the process. The GUI disappears, but the process remains. Is there any >> >> safe way to close a GUI application? >> >> >> >> Csaba >> >> >> > >> > Please elaborate. Send me a project so that I can reproduce the problem. >> > The QUIT instruction aborts the program brutally (almost), so it should >> > quit! >> >> I'm on it ... Bad design... many variables are not freed. >> >> It's not a bug >> >> > >> > -- >> > Beno?t Minisini >> > >> > >> ------------------------------------------------------------------------------ >> > Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a >> > complex >> > infrastructure or vast IT resources to deliver seamless, secure access >> > to >> > virtual desktops. With this all-in-one solution, easily deploy virtual >> > desktops for less than the cost of PCs and save 60% on VDI >> > infrastructure >> > costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> >> -- >> Fabien Bodard >> >> >> ------------------------------------------------------------------------------ >> Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex >> infrastructure or vast IT resources to deliver seamless, secure access to >> virtual desktops. With this all-in-one solution, easily deploy virtual >> desktops for less than the cost of PCs and save 60% on VDI infrastructure >> costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex > infrastructure or vast IT resources to deliver seamless, secure access to > virtual desktops. With this all-in-one solution, easily deploy virtual > desktops for less than the cost of PCs and save 60% on VDI infrastructure > costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Tue Jan 3 21:32:46 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Tue, 3 Jan 2012 22:32:46 +0200 Subject: [Gambas-user] Running programs from terminal and by double clicking. In-Reply-To: References: <4F01FF1A.2070102@...1...> Message-ID: Experimenting more with this... and apparently I have not used "For Input" in any other of my projects. Since also this fails: hProcess = Exec ["echo", "hello?"] For Input As "Process" So, child program does *not* have to be written with gambas. That was my hasty conclusion. Jussi On Mon, Jan 2, 2012 at 22:09, Jussi Lahtinen wrote: > > Exec ["gbr3" ... ] will search for gbr3 in the PATH environment >> variable. Maybe you don't have the same PATH when you run a command from >> a terminal, and when you run it by "double-clicking" on an icon? Note >> that if PATH is not defined, the program is searched in /usr and /usr/bin. >> > > In my system gbr3 is in /usr/local/bin/, and if it is searched only in > /usr and /usr/bin, then it really is missing... > > But: > $ echo $PATH > > /usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games > > And I copied gbr3 to /usr/bin but result is same. > > Also the problem is gone if I change: > > hProcess = Exec ["gbr3", sTmp] For Input As "Process" > To: > hProcess = Exec ["gbr3", sTmp] As "Process" > > > Any ideas? > > > Jussi > > From gambas at ...1... Tue Jan 3 23:39:07 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Tue, 03 Jan 2012 23:39:07 +0100 Subject: [Gambas-user] Running programs from terminal and by double clicking. In-Reply-To: References: <4F01FF1A.2070102@...1...> Message-ID: <4F03838B.3010404@...1...> Le 03/01/2012 21:32, Jussi Lahtinen a ?crit : > Experimenting more with this... and apparently I have not used "For Input" > in any other of my projects. > Since also this fails: > hProcess = Exec ["echo", "hello?"] For Input As "Process" > > So, child program does *not* have to be written with gambas. That was my > hasty conclusion. > > Jussi > > I confirm the problem, but I don't understand why it fails. "Exec / Shell ... For Input" runs the child program inside a "virtual terminal". To do it, you have to follow a precise sequence of system calls, and I thought I did it right. But apparently, if the parent process does not have a terminal already (for example, when it is run from a double-click on an icon), then the creation of the virtual terminal for the child fails. And so the child program is not run. I will investigate. And first I will try to add more informative error messages about what happens exactly. Stay tune... -- Beno?t Minisini From skylineds at ...2755... Wed Jan 4 01:01:00 2012 From: skylineds at ...2755... (Dick) Date: Tue, 03 Jan 2012 18:01 -0600 Subject: [Gambas-user] Compile error Gambas3 Message-ID: <25497046.uzURCYqoZc@...2756...> Hi all, First off: a Happy New Year to all!! Congrats with the release of Gambas3. So far I am running into the following problem: During the make processs the Message || || Unable to compile gb.form.stock || is generated. Mr Fabian, I have a few rather complex reports as far as the layout goes, If you are interested, I can send you the code plus the output (.pdf). Just let me know how to get it to you. [System] OperatingSystem=Linux Kernel=3.1.0-1.2-desktop Architecture=x86_64 Memory=1773120 kB DistributionVendor=SuSE DistributionRelease=openSUSE 12.1 (x86_64) VERSION = 12.1 CODENAME = Asparagus Desktop=KDE4 [Gambas 2] Version=2.23.1 Path=/usr/bin/gbx2 [Gambas 3] Version=3.0.0 Path=/usr/local/bin/gbx3 [Libraries] Qt4=libQtCore.so.4.7.4 GTK+=libgtk-x11-2.0.so.0.2400.7 Thanks, Dick Davis, Houston Texas From jussi.lahtinen at ...626... Wed Jan 4 17:06:48 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 4 Jan 2012 18:06:48 +0200 Subject: [Gambas-user] Compile error Gambas3 In-Reply-To: <25497046.uzURCYqoZc@...2756...> References: <25497046.uzURCYqoZc@...2756...> Message-ID: Probably some package missing, see output of configure script. Jussi On Wed, Jan 4, 2012 at 02:01, Dick wrote: > Hi all, > First off: a Happy New Year to all!! > Congrats with the release of Gambas3. > > So far I am running into the following problem: > During the make processs the Message > || > || Unable to compile gb.form.stock > || > is generated. > > Mr Fabian, I have a few rather complex reports as far as the layout goes, > If you are interested, I can send you the code plus the output (.pdf). > Just let me know how to get it to you. > > > [System] > OperatingSystem=Linux > Kernel=3.1.0-1.2-desktop > Architecture=x86_64 > Memory=1773120 kB > DistributionVendor=SuSE > DistributionRelease=openSUSE 12.1 (x86_64) > VERSION = 12.1 > CODENAME = Asparagus > Desktop=KDE4 > > [Gambas 2] > Version=2.23.1 > Path=/usr/bin/gbx2 > > [Gambas 3] > Version=3.0.0 > Path=/usr/local/bin/gbx3 > > [Libraries] > Qt4=libQtCore.so.4.7.4 > GTK+=libgtk-x11-2.0.so.0.2400.7 > > Thanks, > Dick Davis, > Houston Texas > > > ------------------------------------------------------------------------------ > Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex > infrastructure or vast IT resources to deliver seamless, secure access to > virtual desktops. With this all-in-one solution, easily deploy virtual > desktops for less than the cost of PCs and save 60% on VDI infrastructure > costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From zachsmith022 at ...626... Thu Jan 5 04:45:32 2012 From: zachsmith022 at ...626... (Zach Smith) Date: Wed, 4 Jan 2012 21:45:32 -0600 Subject: [Gambas-user] restarting a gambas application In-Reply-To: <4E207B92.8060000@...626...> References: <4E207B92.8060000@...626...> Message-ID: On Fri, Jul 15, 2011 at 12:40 PM, wrote: > > Does anyone know how to automatically close and restart a running gambas > program? > > For example, if I have a program update available, I'd like to click a > button in my program ("Install/Run update") that would start an intermediate > program that would stop my program, then the intermediate program would > overwrite the main program with an upgraded version, then it would start the > upgraded program, and then the intermediate program would quit. ?The problem > is that by using the shell or exec commands a child process is created and > the parent app. never quits. > > The thing I'm looking for would be somewhat similar to what happens when you > run xfrun4 in Xfce. ?There, you press Alt+F2 to bring up a command entry > box, it then starts the program you have typed in and then xfrun4 quits. > ?There are no remaining parent/child issues. I'm posting my own reply in case someone finds it useful. Something like this seems to do what I need: Shell "nohup galculator > process.out 2> process.err < /dev/null &" or simply, Shell "nohup galculator &" From gambas at ...2524... Thu Jan 5 11:03:19 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 05 Jan 2012 10:03:19 +0000 Subject: [Gambas-user] Issue 184 in gambas: Gambas3 ide cannot reset/delete choosed font to default/empty font... on controls Message-ID: <0-6813199134517018827-14011734729134426887-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 184 by marcobra... at ...626...: Gambas3 ide cannot reset/delete choosed font to default/empty font... on controls http://code.google.com/p/gambas/issues/detail?id=184 1) Describe the problem. Gambas3 ide: cannot reset choosed control font to default/empty font... must manually edit the .form definition file into .src dir... 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: 3.0 Revision: 3.0 Operating system: Linux Distribution: Ubuntu Architecture: x86 GUI component: QT4 Desktop used: Gnome 3) Provide a little project that reproduces the bug or the crash. not a crash 4) If your project needs a database, try to provide it, or part of it. no needed 5) Explain clearly how to reproduce the bug or the crash. On a control (i.e. a label) select a font from font list to assign to the control then try to set font to nothing... i cannot unset to empty font (i want to reset control font to no particular font) I get success only by manually edit the .src/Form....form file, can be the only solution on this very good ide ? Many thanks... Marco From mohareve at ...626... Thu Jan 5 12:35:35 2012 From: mohareve at ...626... (M. Cs.) Date: Thu, 5 Jan 2012 12:35:35 +0100 Subject: [Gambas-user] File opening dialog and one more question Message-ID: Hi, in G2 we had a file opening dialog which was identical as KDE's native one. It seems to be removed, or am I wrong? I would like to have that old one. It's more convenient with the system-wide bookmarks etc. And the question: I don't understand the STATIC word's meaning. Is it given to define a constant inside a class? What's the practical usage of it? I have to redesign my Gambas project, and I need to know the exact usage. The documentation didn't make it clear to me. I Know what Public and what Private is. Thanks! Csaba From mohareve at ...626... Thu Jan 5 12:46:05 2012 From: mohareve at ...626... (M. Cs.) Date: Thu, 5 Jan 2012 12:46:05 +0100 Subject: [Gambas-user] Dependencies in packages Message-ID: Another question: In the package making dialog there is a list of dependencies to be added to the package. How can I add mp3info as dependency? I've tried to add just string mp3info without min and max versions, but the installer is not pulling it as dependency. Thanks! From Gambas at ...1950... Thu Jan 5 13:04:08 2012 From: Gambas at ...1950... (Caveat) Date: Thu, 05 Jan 2012 13:04:08 +0100 Subject: [Gambas-user] File opening dialog and one more question In-Reply-To: References: Message-ID: <1325765048.10679.64.camel@...2150...> Part one I never really looked into how GTK-alike the FileChooser was, but it didn't seem to 'fit' on my regular forms, so I just made a small Form which handles file choosing/opening and raises the appropriate events. To answer part two... As I understand it, static variables exist only once for the class regardless of how many instances of the class you have in memory. Non-static variables exist per instance of the class. A static variable that's not defined as a Const can be a little dangerous (or at least confusing), as anyone changing the value on a particular instance of the class changes it for all other instances of that class too (as there is only one 'copy' of the variable). Const implies static...so the static keyword is optional when defining a const. As an example, you might have a CurrencyConverter class which defines Euro to Belgian Francs as a static const set to 40.3333, UKP to US$ as static (but not const... so changing it on one instance of CurrencyConverter will change it for all instances), and the amount to convert as non-static, non-const... hope that example made some sense! Regards, Caveat On Thu, 2012-01-05 at 12:35 +0100, M. Cs. wrote: > Hi, > in G2 we had a file opening dialog which was identical as KDE's native > one. It seems to be removed, or am I wrong? I would like to have that > old one. It's more convenient with the system-wide bookmarks etc. > > And the question: I don't understand the STATIC word's meaning. Is it > given to define a constant inside a class? What's the practical usage > of it? I have to redesign my Gambas project, and I need to know the > exact usage. The documentation didn't make it clear to me. I Know what > Public and what Private is. Thanks! > > Csaba > > ------------------------------------------------------------------------------ > Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex > infrastructure or vast IT resources to deliver seamless, secure access to > virtual desktops. With this all-in-one solution, easily deploy virtual > desktops for less than the cost of PCs and save 60% on VDI infrastructure > costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From mohareve at ...626... Thu Jan 5 16:40:26 2012 From: mohareve at ...626... (M. Cs.) Date: Thu, 5 Jan 2012 16:40:26 +0100 Subject: [Gambas-user] File opening dialog and one more question In-Reply-To: <1325765048.10679.64.camel@...2150...> References: <1325765048.10679.64.camel@...2150...> Message-ID: Unfortunately the built-in file opening dialog just doesn't work for me. The project has been ported from G2 to G3. I have a filter added for the .tar.gz filetype but although it shows the correct files, I cannot open them. The OK button simply doesn't work. It's maybe up to the porting. I'll check it. 2012/1/5, Caveat : > Part one > > I never really looked into how GTK-alike the FileChooser was, but it > didn't seem to 'fit' on my regular forms, so I just made a small Form > which handles file choosing/opening and raises the appropriate events. > > To answer part two... > > As I understand it, static variables exist only once for the class > regardless of how many instances of the class you have in memory. > Non-static variables exist per instance of the class. > > A static variable that's not defined as a Const can be a little > dangerous (or at least confusing), as anyone changing the value on a > particular instance of the class changes it for all other instances of > that class too (as there is only one 'copy' of the variable). Const > implies static...so the static keyword is optional when defining a > const. > > As an example, you might have a CurrencyConverter class which defines > Euro to Belgian Francs as a static const set to 40.3333, UKP to US$ as > static (but not const... so changing it on one instance of > CurrencyConverter will change it for all instances), and the amount to > convert as non-static, non-const... hope that example made some sense! > > Regards, > Caveat > > > On Thu, 2012-01-05 at 12:35 +0100, M. Cs. wrote: >> Hi, >> in G2 we had a file opening dialog which was identical as KDE's native >> one. It seems to be removed, or am I wrong? I would like to have that >> old one. It's more convenient with the system-wide bookmarks etc. >> >> And the question: I don't understand the STATIC word's meaning. Is it >> given to define a constant inside a class? What's the practical usage >> of it? I have to redesign my Gambas project, and I need to know the >> exact usage. The documentation didn't make it clear to me. I Know what >> Public and what Private is. Thanks! >> >> Csaba >> >> ------------------------------------------------------------------------------ >> Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex >> infrastructure or vast IT resources to deliver seamless, secure access to >> virtual desktops. With this all-in-one solution, easily deploy virtual >> desktops for less than the cost of PCs and save 60% on VDI infrastructure >> costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex > infrastructure or vast IT resources to deliver seamless, secure access to > virtual desktops. With this all-in-one solution, easily deploy virtual > desktops for less than the cost of PCs and save 60% on VDI infrastructure > costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From mohareve at ...626... Thu Jan 5 17:12:49 2012 From: mohareve at ...626... (M. Cs.) Date: Thu, 5 Jan 2012 17:12:49 +0100 Subject: [Gambas-user] The good old tar-1.13 is still an obstacle Message-ID: Hello, I simply don't know how to install tar-1.13 on Kubuntu Oneiric. The old method of creating it from sources an then making a symbolic link with ln -s /usr/local/bin/tar-1.13 /usr/bin/tar-1.13 doesn't solves the problem. Any working solution of faking it? Csaba From mohareve at ...626... Thu Jan 5 17:35:12 2012 From: mohareve at ...626... (M. Cs.) Date: Thu, 5 Jan 2012 17:35:12 +0100 Subject: [Gambas-user] File opening dialog and one more question In-Reply-To: References: <1325765048.10679.64.camel@...2150...> Message-ID: Yes, it was caused by porting. I've fixed it. 2012/1/5, M. Cs. : > Unfortunately the built-in file opening dialog just doesn't work for > me. The project has been ported from G2 to G3. I have a filter added > for the .tar.gz filetype but although it shows the correct files, I > cannot open them. The OK button simply doesn't work. It's maybe up to > the porting. I'll check it. > > 2012/1/5, Caveat : >> Part one >> >> I never really looked into how GTK-alike the FileChooser was, but it >> didn't seem to 'fit' on my regular forms, so I just made a small Form >> which handles file choosing/opening and raises the appropriate events. >> >> To answer part two... >> >> As I understand it, static variables exist only once for the class >> regardless of how many instances of the class you have in memory. >> Non-static variables exist per instance of the class. >> >> A static variable that's not defined as a Const can be a little >> dangerous (or at least confusing), as anyone changing the value on a >> particular instance of the class changes it for all other instances of >> that class too (as there is only one 'copy' of the variable). Const >> implies static...so the static keyword is optional when defining a >> const. >> >> As an example, you might have a CurrencyConverter class which defines >> Euro to Belgian Francs as a static const set to 40.3333, UKP to US$ as >> static (but not const... so changing it on one instance of >> CurrencyConverter will change it for all instances), and the amount to >> convert as non-static, non-const... hope that example made some sense! >> >> Regards, >> Caveat >> >> >> On Thu, 2012-01-05 at 12:35 +0100, M. Cs. wrote: >>> Hi, >>> in G2 we had a file opening dialog which was identical as KDE's native >>> one. It seems to be removed, or am I wrong? I would like to have that >>> old one. It's more convenient with the system-wide bookmarks etc. >>> >>> And the question: I don't understand the STATIC word's meaning. Is it >>> given to define a constant inside a class? What's the practical usage >>> of it? I have to redesign my Gambas project, and I need to know the >>> exact usage. The documentation didn't make it clear to me. I Know what >>> Public and what Private is. Thanks! >>> >>> Csaba >>> >>> ------------------------------------------------------------------------------ >>> Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a >>> complex >>> infrastructure or vast IT resources to deliver seamless, secure access >>> to >>> virtual desktops. With this all-in-one solution, easily deploy virtual >>> desktops for less than the cost of PCs and save 60% on VDI >>> infrastructure >>> costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> >> ------------------------------------------------------------------------------ >> Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex >> infrastructure or vast IT resources to deliver seamless, secure access to >> virtual desktops. With this all-in-one solution, easily deploy virtual >> desktops for less than the cost of PCs and save 60% on VDI infrastructure >> costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > From jussi.lahtinen at ...626... Thu Jan 5 19:02:16 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 5 Jan 2012 20:02:16 +0200 Subject: [Gambas-user] Issue 184 in gambas: Gambas3 ide cannot reset/delete choosed font to default/empty font... on controls In-Reply-To: <0-6813199134517018827-14011734729134426887-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-14011734729134426887-gambas=googlecode.com@...2524...> Message-ID: I cannot reproduce. Do not open select font dialog, instead just click on font name and hit backspace. Jussi On Thu, Jan 5, 2012 at 12:03, wrote: > Status: New > Owner: ---- > Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any > Desktop-Any GUI-Any > > New issue 184 by marcobra... at ...626...: Gambas3 ide cannot reset/delete > choosed font to default/empty font... on controls > http://code.google.com/p/gambas/issues/detail?id=184 > > 1) Describe the problem. > > Gambas3 ide: cannot reset choosed control font to default/empty font... > must manually edit the .form definition file into .src dir... > > 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): > > Version: 3.0 > Revision: 3.0 > Operating system: Linux > Distribution: Ubuntu > Architecture: x86 > GUI component: QT4 > Desktop used: Gnome > > 3) Provide a little project that reproduces the bug or the crash. > not a crash > > 4) If your project needs a database, try to provide it, or part of it. > no needed > > 5) Explain clearly how to reproduce the bug or the crash. > > On a control (i.e. a label) select a font from font list to assign to the > control > then try to set font to nothing... > i cannot unset to empty font (i want to reset control font to no particular > font) > I get success only by manually edit the .src/Form....form file, can be the > only solution on this very good ide ? > > Many thanks... > > Marco > > > > > > > > ------------------------------------------------------------------------------ > Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex > infrastructure or vast IT resources to deliver seamless, secure access to > virtual desktops. With this all-in-one solution, easily deploy virtual > desktops for less than the cost of PCs and save 60% on VDI infrastructure > costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Thu Jan 5 21:17:09 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Thu, 05 Jan 2012 21:17:09 +0100 Subject: [Gambas-user] Dependencies in packages In-Reply-To: References: Message-ID: <4F060545.3090609@...1...> Le 05/01/2012 12:46, M. Cs. a ?crit : > Another question: > In the package making dialog there is a list of dependencies to be > added to the package. How can I add mp3info as dependency? I've tried > to add just string mp3info without min and max versions, but the > installer is not pulling it as dependency. Thanks! > It should... Provided that "mp3info" is really the name of the package and not just the name of the program. -- Beno?t Minisini From gambas at ...1... Thu Jan 5 21:18:09 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Thu, 05 Jan 2012 21:18:09 +0100 Subject: [Gambas-user] The good old tar-1.13 is still an obstacle In-Reply-To: References: Message-ID: <4F060581.6080905@...1...> Le 05/01/2012 17:12, M. Cs. a ?crit : > Hello, > I simply don't know how to install tar-1.13 on Kubuntu Oneiric. The > old method of creating it from sources an then making a symbolic link > with ln -s /usr/local/bin/tar-1.13 /usr/bin/tar-1.13 doesn't solves > the problem. Any working solution of faking it? > > Csaba > Personnaly, I create a symbolic link name "tar-1.13" that points at the actual current tar, and the last time I tried it worked. -- Beno?t Minisini From gambas at ...1... Thu Jan 5 21:23:14 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Thu, 05 Jan 2012 21:23:14 +0100 Subject: [Gambas-user] File opening dialog and one more question In-Reply-To: References: Message-ID: <4F0606B2.30104@...1...> Le 05/01/2012 12:35, M. Cs. a ?crit : > Hi, > in G2 we had a file opening dialog which was identical as KDE's native > one. It seems to be removed, or am I wrong? I would like to have that > old one. It's more convenient with the system-wide bookmarks etc. I'm not sure. But when you call Dialog.Open(), the standard Qt file dialog is used (or the GTK+ one if you use gb.gtk). Then maybe Qt can use the KDE dialog if it is present, but I don't think so. In GB2, you had a gb.qt.kde component that uses the KDE3 dialog automatically. In GB3, you don't have any KDE4 component, so you don't have the KDE dialogs. > > And the question: I don't understand the STATIC word's meaning. Is it > given to define a constant inside a class? What's the practical usage > of it? I have to redesign my Gambas project, and I need to know the > exact usage. The documentation didn't make it clear to me. I Know what > Public and what Private is. Thanks! > > Csaba > "Static" means: - For a variable, that the variable is stored in the class, not in any object. So there is only one such variable. Its value does not depend on the object. - For a method (or a property), that the method cannot use any non-static symbol (ME is NULL). - For a constant, nothing, as a constant is always static (as its value cannot change). I hope it will be clear for you! Regards, -- Beno?t Minisini From mohareve at ...626... Fri Jan 6 00:36:59 2012 From: mohareve at ...626... (M. Cs.) Date: Fri, 6 Jan 2012 00:36:59 +0100 Subject: [Gambas-user] File opening dialog and one more question In-Reply-To: <4F0606B2.30104@...1...> References: <4F0606B2.30104@...1...> Message-ID: Thank you! 2012/1/5, Beno?t Minisini : > Le 05/01/2012 12:35, M. Cs. a ?crit : >> Hi, >> in G2 we had a file opening dialog which was identical as KDE's native >> one. It seems to be removed, or am I wrong? I would like to have that >> old one. It's more convenient with the system-wide bookmarks etc. > > I'm not sure. But when you call Dialog.Open(), the standard Qt file > dialog is used (or the GTK+ one if you use gb.gtk). Then maybe Qt can > use the KDE dialog if it is present, but I don't think so. > > In GB2, you had a gb.qt.kde component that uses the KDE3 dialog > automatically. In GB3, you don't have any KDE4 component, so you don't > have the KDE dialogs. > >> >> And the question: I don't understand the STATIC word's meaning. Is it >> given to define a constant inside a class? What's the practical usage >> of it? I have to redesign my Gambas project, and I need to know the >> exact usage. The documentation didn't make it clear to me. I Know what >> Public and what Private is. Thanks! >> >> Csaba >> > > "Static" means: > > - For a variable, that the variable is stored in the class, not in any > object. So there is only one such variable. Its value does not depend on > the object. > > - For a method (or a property), that the method cannot use any > non-static symbol (ME is NULL). > > - For a constant, nothing, as a constant is always static (as its value > cannot change). > > I hope it will be clear for you! > > Regards, > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex > infrastructure or vast IT resources to deliver seamless, secure access to > virtual desktops. With this all-in-one solution, easily deploy virtual > desktops for less than the cost of PCs and save 60% on VDI infrastructure > costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From tobiasboe1 at ...20... Fri Jan 6 01:36:33 2012 From: tobiasboe1 at ...20... (tobias) Date: Fri, 06 Jan 2012 01:36:33 +0100 Subject: [Gambas-user] chmod? Message-ID: <4F064211.2020606@...20...> hi, i can't find any interface (except Extern or Exec) to chmod(2) in gambas. is there one? i think there should... regards, tobi From bbruen at ...2308... Fri Jan 6 02:01:38 2012 From: bbruen at ...2308... (bbruen at ...2308...) Date: Fri, 06 Jan 2012 12:01:38 +1100 Subject: [Gambas-user] File opening dialog and one more question In-Reply-To: References: <4F0606B2.30104@...1...> Message-ID: <20120106120138.21835u7ybdjfm0oi@...2757...> Just to add to caveat and Benoit's answers. Static, when applied to variables, refers to the "storage class" (or more properly "storage mode") of the variable. Whereas "public" and "private" refer to the scope or accessibility of the variable. It is important not to confuse these aspects. When applied to methods it has an entirely different meaning. In effect it is a "compiler" directive that allows the method to be addressed directly rather than that address being resolved at runtime. Thus (in OO theory) a static method is not resolved by "virtual dispatch" as it is not subject to polymorphism or overriding in descendant classes. (I am limited at the moment to a %$#$%# MacBook so I cant tell how far this theory is adhered to by gambas.) Finally, there is a third completely different usage of the keyword Static in gambas. That is, "Create Static", which is applied to classes. Its' meaning in that context is entirely different again, and best explained by the help page. hth Bruce From bbruen at ...2308... Fri Jan 6 01:47:47 2012 From: bbruen at ...2308... (bbruen at ...2308...) Date: Fri, 06 Jan 2012 11:47:47 +1100 Subject: [Gambas-user] chmod? In-Reply-To: <4F064211.2020606@...20...> References: <4F064211.2020606@...20...> Message-ID: <20120106114747.13702b59l72d890z@...2757...> Quoting tobias : > hi, > > i can't find any interface (except Extern or Exec) to chmod(2) in > gambas. is there one? i think there should... > > regards, > tobi I was going to say Stat.Perm but I had never realized that it is read only. I agree that there should be one. Bruce From gambas at ...1... Fri Jan 6 02:48:20 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Fri, 06 Jan 2012 02:48:20 +0100 Subject: [Gambas-user] Running programs from terminal and by double clicking. In-Reply-To: References: Message-ID: <4F0652E4.4080908@...1...> Le 02/01/2012 22:20, Jussi Lahtinen a ?crit : > Sorry, not Ubuntu! I'm using Xubuntu. > > Jussi > Hi, The bug should be fixed in revision #4392. Regards, -- Beno?t Minisini From dima.malkov.russia at ...626... Fri Jan 6 03:47:17 2012 From: dima.malkov.russia at ...626... (Dmitriy) Date: Fri, 06 Jan 2012 13:47:17 +1100 Subject: [Gambas-user] Wrap mode for gb.qt4.editor Message-ID: <4F0660B5.2000000@...626...> Can I enable Wrap mode for gb.qt4.editor? If I can't, will It be possible soon? P.S. I found help system in Gambas2 better then in Gambas3. Samples and source of IDE are poor commented :-). So, I don't know, how I can study programming Gambas or just understand how samples work. I have no resources except mail lists. At my opinion writing console programs is a good point to begin studying Gambas. I took a book for C++ (Robert Lafore, Object-Oriented Programming in C++ 4-th Ed) and began translate programs from It to Gambas. So, when I was translating example of card game from 6-th section, I found: ------------------------------------------------------ /////////////////////// enum Suit { clubs, diamonds, hearts, spades }; const int jack = 11; const int queen = 12; const int king = 13; const int ace = 14; /////////////////////// class card { private: int number; Suit suit; public: card() {} card(int n, Suit s): number(n), suit(s) {} void dysplay(); bool isEqual(card); //result of comparison two cards } /////////////////////// void card::dysplay() { ... } bool card::isEqual(card c2) { ... } /////////////////////// ------------------------------------------------------ I don't know how to translate it the best way. How to work with "ENUM" in Gambas? P.P.S. Is there anybody, who writes LaTeX often and isn't satisfied with Kile and TeXMaker? I want to write LaTeX-editor in Gambas. I want it will work like IDE for Gambas3. I think it is not very difficult task. ------------------------ Regards, Dmitrij Malkov From dima.malkov.russia at ...626... Fri Jan 6 10:45:52 2012 From: dima.malkov.russia at ...626... (Dmitrij Malkov) Date: Fri, 06 Jan 2012 20:45:52 +1100 Subject: [Gambas-user] File opening dialog and one more question Message-ID: <4F06C2D0.2050208@...626...> "Static" means: - For a variable, that the variable is stored in the class, not in any object. So there is only one such variable. Its value does not depend on the object. - For a method (or a property), that the method cannot use any non-static symbol (ME is NULL). - For a constant, nothing, as a constant is always static (as its value cannot change). I hope it will be clear for you! Regards, -- Beno?t Minisini I am interesting in STATIC too. I think a real example will be a better explanation. Create new console project and put the next text in MMain.module |' Gambas module file Public Sub Main() 'Use <> instead <> 'to activate constructor Dim Unit1, Unit2 As New CUnit Dim Unit3, Unit4 As New CUnit 'Theese objects are not created yet? Dim Unit5, Unit6 As CUnit 'We have 4 objects created CUnit.HowManyUnits() 'Uncomment last two lines and see '"Unexpected DIM as MMain.module:20" 'In C++ that will not cause an error 'Dim Unit7 As CUnit 'CUnit.HowManyUnits() End| And create new class "CUnit" with text |' Gambas class file Static Private NumberOfUnits As Integer = 0 'constructor Public Sub _new() NumberOfUnits += 1 Print "New Unit was created" End Static Public Sub HowManyUnits() Print "There are "; NumberOfUnits; " objects of class 'CUnit'" End| Output in console: |New Unit was created New Unit was created New Unit was created New Unit was created There are 4 objects of class 'CUnit'| Now comment all "DIM ..." lines and run. Output in console without any error: |There are 0 objects of class 'CUnit'| This code is not clear to me. What the difference between "PUBLIC SUB _new()" and "PUBLIC SUB New()" ? And why I can't create objects of class CUnits after calling CUnit.HowManyUnits()? -------------- next part -------------- A non-text attachment was scrubbed... Name: OOP_3_STATIC-0.0.1.tar.gz Type: application/x-gzip Size: 4965 bytes Desc: not available URL: From mohareve at ...626... Fri Jan 6 11:42:49 2012 From: mohareve at ...626... (M. Cs.) Date: Fri, 6 Jan 2012 11:42:49 +0100 Subject: [Gambas-user] Another basics Message-ID: Hello, before i take off with redesign, I'd like to check whether I'm right or not: 1. Modules are for functions and procedures. To split the program into building bricks 2. Classes for object construction. If I need an object, I'm using classes with private variables, private subs for the internal tasks of a class, and public subs for communication between the modules and classes. Am I right? Csaba From dima.malkov.russia at ...626... Fri Jan 6 13:31:45 2012 From: dima.malkov.russia at ...626... (Dmitrij Malkov) Date: Fri, 06 Jan 2012 23:31:45 +1100 Subject: [Gambas-user] Another basics Message-ID: <4F06E9B1.2040402@...626...> Hi! We have the same task, comrade! I am interesting in Gambas3's Object Oriented Programming paradigm too. I think you are right. It is good to make some small guide that will illustrate on samples language's opportunities in console without any components. How to create classes, how to inherit an existed class, what are PROPERTY and METHOD, what is ENUM, how to write constructor and destructor and other things. It is not enough to say, what this words mean. Guide should explain, that we have really need of them, and what mistakes can be made by user. And all explain without the Forms. It is good to know, what new opportunities will be add or removed in future in this key. From bbruen at ...2308... Fri Jan 6 13:40:40 2012 From: bbruen at ...2308... (bbruen at ...2308...) Date: Fri, 06 Jan 2012 23:40:40 +1100 Subject: [Gambas-user] File opening dialog and one more question In-Reply-To: <4F06C2D0.2050208@...626...> References: <4F06C2D0.2050208@...626...> Message-ID: <1cbc30e921b3c354fba2843664386040@...2308...> > ? And why I can't create objects of class CUnits after calling > CUnit.HowManyUnits()? A) Because gambas syntax doesn't allow it. B) What in the great scheme of things has this got to do with Static? From gambas.fr at ...626... Fri Jan 6 16:07:04 2012 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 6 Jan 2012 16:07:04 +0100 Subject: [Gambas-user] Another basics In-Reply-To: <4F06E9B1.2040402@...626...> References: <4F06E9B1.2040402@...626...> Message-ID: well :) i'm not a true professionnal of computing so words i use are not good. (and my english is really bad) In a class you have 3 time _Init Called only one time at the first use of the class _New Called at each NEW instantiation _Free Called when a classe is freed (when the ref to this class instance not stored anywhere) You can access a public var from anywhere but this var is linked to an instance If you use static public the var is accessible from the class name like with a module and not depend of an instance. (it allow for example to share a value between each instance of a class Private var is accessible ony from the sub of the current class static private can be used only from a static sub. I use public var for property that just store a value and can be accessed in read write mode i use property for value that need controle or that generate an event for example dim $iX as private property X as integer Private X_Read() as Integer return $iX end Private X_Write(Value as integer) $iX = min(Value,100) 'max 100 RefreshDraw() 'redraw the object when the x is changed end You can use Property Read for a read only value this is some basis..... -- Fabien Bodard From dima.malkov.russia at ...626... Fri Jan 6 16:33:28 2012 From: dima.malkov.russia at ...626... (Dmitrij Malkov) Date: Fri, 6 Jan 2012 07:33:28 -0800 (PST) Subject: [Gambas-user] File opening dialog and one more question In-Reply-To: <1cbc30e921b3c354fba2843664386040@...2308...> References: <4F06C2D0.2050208@...626...> <1cbc30e921b3c354fba2843664386040@...2308...> Message-ID: <33093687.post@...1379...> bbb888 wrote: > >> ? And why I can't create objects of class CUnits after calling >> CUnit.HowManyUnits()? > > A) Because gambas syntax doesn't allow it. > B) What in the great scheme of things has this got to do with Static? > About "B". I'm not an englishman, so, as I understood you, you are wondered of how the function CUnit.HowManyUnits() refers to Static or what It does with static variables or what the practical value of class CUnits and this function is. This code I wrote after reading about Static variables and functions in the C++ book. In that book autor explained that Static variables are not cloned when new object of some class are been existed and every object can read and modify the static variables that are common for all of them. Besides, Static variables can be read and modified without any object just by "ClassName.Function" where "Function" is a static function that works with static variables. The code I have written here is a translated to Gambas code from that book about C++, It illustrates that static variables are not cloning while creation of a new object. I wondered that the code ------------------------------------------- Public Sub Main() CUnit.HowManyUnits() End ------------------------------------------- works, but the code ------------------------------------------- Public Sub Main() CUnit.HowManyUnits() Dim Unit1 As New CUnit End ------------------------------------------- does not ("Dim is unexpected"). I awaited a message like "CUnit is not an object" in a worst time. You answered, that gambas syntax doesn't allow it. But in the documentation the next only is written: "All DIM declarations must be in the FUNCTION or SUB before the first executable command." I don't see that I have breaked this. Thank you. ------------ Dmitrij Malkov -- View this message in context: http://old.nabble.com/File-opening-dialog-and-one-more-question-tp33085420p33093687.html Sent from the gambas-user mailing list archive at Nabble.com. From willy at ...2734... Fri Jan 6 16:40:28 2012 From: willy at ...2734... (Willy Raets) Date: Fri, 06 Jan 2012 16:40:28 +0100 Subject: [Gambas-user] File opening dialog and one more question In-Reply-To: <33093687.post@...1379...> References: <4F06C2D0.2050208@...626...> <1cbc30e921b3c354fba2843664386040@...2308...> <33093687.post@...1379...> Message-ID: <1325864428.2807.2.camel@...2735...> On vr, 2012-01-06 at 07:33 -0800, Dmitrij Malkov wrote: > I wondered that the code > ------------------------------------------- > Public Sub Main() > CUnit.HowManyUnits() > End > ------------------------------------------- > works, but the code > ------------------------------------------- > Public Sub Main() > CUnit.HowManyUnits() > Dim Unit1 As New CUnit > End > ------------------------------------------- > does not ("Dim is unexpected"). I awaited a message like "CUnit is not an > object" in a worst time. You answered, that gambas syntax doesn't allow it. > But in the documentation the next only is written: "All DIM declarations > must be in the FUNCTION or SUB before the first executable command." I don't > see that I have breaked this. Well you have broken that. Afther Public Sub or Function Dim comes first. In your code Dim comes second Try: Public Sub Main() Dim Unit1 As New CUnit CUnit.HowManyUnits() End Willy From mohareve at ...626... Fri Jan 6 16:55:03 2012 From: mohareve at ...626... (M. Cs.) Date: Fri, 6 Jan 2012 16:55:03 +0100 Subject: [Gambas-user] Another basics In-Reply-To: References: <4F06E9B1.2040402@...626...> Message-ID: Hello Fabien, and I also think it would be nice to hear about how to keep the code clean. I have to rewrite the things in order to have a program without unfreed allocations. What I intend to do is to use more private variables on modules and well defined functions to access to them across the modules if needed. 2012/1/6, Fabien Bodard : > well :) > > i'm not a true professionnal of computing so words i use are not good. > (and my english is really bad) > > In a class you have 3 time > > _Init > Called only one time at the first use of the class > > _New > Called at each NEW instantiation > > _Free > Called when a classe is freed (when the ref to this class instance > not stored anywhere) > > > > > You can access a public var from anywhere but this var is linked to an > instance > > If you use static public the var is accessible from the class name > like with a module and not depend of an instance. (it allow for > example to share a value between each instance of a class > > Private var is accessible ony from the sub of the current class > > static private can be used only from a static sub. > > > > I use public var for property that just store a value and can be > accessed in read write mode > > i use property for value that need controle or that generate an event > > > for example > dim $iX as private > property X as integer > > Private X_Read() as Integer > return $iX > end > > Private X_Write(Value as integer) > $iX = min(Value,100) 'max 100 > RefreshDraw() 'redraw the object when the x is changed > end > > > You can use Property Read for a read only value > > > this is some basis..... > > -- > Fabien Bodard > > ------------------------------------------------------------------------------ > Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex > infrastructure or vast IT resources to deliver seamless, secure access to > virtual desktops. With this all-in-one solution, easily deploy virtual > desktops for less than the cost of PCs and save 60% on VDI infrastructure > costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From dima.malkov.russia at ...626... Fri Jan 6 17:04:21 2012 From: dima.malkov.russia at ...626... (Dmitrij Malkov) Date: Fri, 6 Jan 2012 08:04:21 -0800 (PST) Subject: [Gambas-user] File opening dialog and one more question In-Reply-To: <1325864428.2807.2.camel@...2735...> References: <4F06C2D0.2050208@...626...> <1cbc30e921b3c354fba2843664386040@...2308...> <33093687.post@...1379...> <1325864428.2807.2.camel@...2735...> Message-ID: <33093901.post@...1379...> Willy Raets wrote: > > On vr, 2012-01-06 at 07:33 -0800, Dmitrij Malkov wrote: > >> I wondered that the code >> ------------------------------------------- >> Public Sub Main() >> CUnit.HowManyUnits() >> End >> ------------------------------------------- >> works, but the code >> ------------------------------------------- >> Public Sub Main() >> CUnit.HowManyUnits() >> Dim Unit1 As New CUnit >> End >> ------------------------------------------- >> does not ("Dim is unexpected"). I awaited a message like "CUnit is not an >> object" in a worst time. You answered, that gambas syntax doesn't allow >> it. >> But in the documentation the next only is written: "All DIM declarations >> must be in the FUNCTION or SUB before the first executable command." I >> don't >> see that I have breaked this. > > > Well you have broken that. > Afther Public Sub or Function Dim comes first. > In your code Dim comes second > > Try: > > Public Sub Main() > Dim Unit1 As New CUnit > CUnit.HowManyUnits() > End > > Willy > So easy? Ok. But why the code Public Sub Main() CUnit.HowManyUnits() End works correct without any DIM at all? If Benoit will say, that this code works and that code doesn't because just gambas syntax allows this and deprecates that and my brain is small to understand these simple things, so, I will calm down. -- View this message in context: http://old.nabble.com/File-opening-dialog-and-one-more-question-tp33085420p33093901.html Sent from the gambas-user mailing list archive at Nabble.com. From Gambas at ...1950... Fri Jan 6 17:57:15 2012 From: Gambas at ...1950... (Caveat) Date: Fri, 06 Jan 2012 17:57:15 +0100 Subject: [Gambas-user] File opening dialog and one more question In-Reply-To: <33093901.post@...1379...> References: <4F06C2D0.2050208@...626...> <1cbc30e921b3c354fba2843664386040@...2308...> <33093687.post@...1379...> <1325864428.2807.2.camel@...2735...> <33093901.post@...1379...> Message-ID: <1325869035.10679.71.camel@...2150...> > works correct without any DIM at all? Because HowManyUnits is a static function so you don't need to create any instances of CUnit to be able to call that function. Regards, Caveat On Fri, 2012-01-06 at 08:04 -0800, Dmitrij Malkov wrote: > > works correct without any DIM at all? From dima.malkov.russia at ...626... Fri Jan 6 18:22:21 2012 From: dima.malkov.russia at ...626... (Dmitrij Malkov) Date: Fri, 6 Jan 2012 09:22:21 -0800 (PST) Subject: [Gambas-user] File opening dialog and one more question In-Reply-To: <1325869035.10679.71.camel@...2150...> References: <4F06C2D0.2050208@...626...> <1cbc30e921b3c354fba2843664386040@...2308...> <33093687.post@...1379...> <1325864428.2807.2.camel@...2735...> <33093901.post@...1379...> <1325869035.10679.71.camel@...2150...> Message-ID: <33094447.post@...1379...> Caveat wrote: > > >> works correct without any DIM at all? > > Because HowManyUnits is a static function so you don't need to create > any instances of CUnit to be able to call that function. > > Yes. All my problem was in my messing up "DIM" and real creation of an object. Code that satisfying me: Public Sub Main() Dim Unit1, Unit2, Unit3, Unit4 As CUnit CUnit.HowManyUnits() Unit1 = New CUnit Unit2 = New CUnit CUnit.HowManyUnits() Unit3 = New CUnit Unit4 = New CUnit CUnit.HowManyUnits() End The output is: There are 0 objects of class 'CUnit' New Unit was created New Unit was created There are 2 objects of class 'CUnit' New Unit was created New Unit was created There are 4 objects of class 'CUnit' All right, thanks to everybody, I calmed down. -- View this message in context: http://old.nabble.com/File-opening-dialog-and-one-more-question-tp33085420p33094447.html Sent from the gambas-user mailing list archive at Nabble.com. From mohareve at ...626... Fri Jan 6 19:21:26 2012 From: mohareve at ...626... (M. Cs.) Date: Fri, 6 Jan 2012 19:21:26 +0100 Subject: [Gambas-user] The good old tar-1.13 is still an obstacle In-Reply-To: <4F060581.6080905@...1...> References: <4F060581.6080905@...1...> Message-ID: Hello Benoit! Your method doesn't work on Kubuntu 11.10. I simply cannot create Slackware package with IDE. Any other solution? Csaba 2012/1/5, Beno?t Minisini : > Le 05/01/2012 17:12, M. Cs. a ?crit : >> Hello, >> I simply don't know how to install tar-1.13 on Kubuntu Oneiric. The >> old method of creating it from sources an then making a symbolic link >> with ln -s /usr/local/bin/tar-1.13 /usr/bin/tar-1.13 doesn't solves >> the problem. Any working solution of faking it? >> >> Csaba >> > > Personnaly, I create a symbolic link name "tar-1.13" that points at the > actual current tar, and the last time I tried it worked. > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex > infrastructure or vast IT resources to deliver seamless, secure access to > virtual desktops. With this all-in-one solution, easily deploy virtual > desktops for less than the cost of PCs and save 60% on VDI infrastructure > costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From wally at ...2037... Fri Jan 6 19:23:22 2012 From: wally at ...2037... (Wally) Date: Fri, 06 Jan 2012 19:23:22 +0100 Subject: [Gambas-user] gb.qt4.ext dial marks ? Message-ID: <6206189.nRTLiUaDxE@...46...> How to display tickmarks on a gb.qt4.ext dial control ? thx From dima.malkov.russia at ...626... Sat Jan 7 05:48:11 2012 From: dima.malkov.russia at ...626... (Dmitrij Malkov) Date: Fri, 6 Jan 2012 20:48:11 -0800 (PST) Subject: [Gambas-user] File opening dialog and one more question In-Reply-To: <33094447.post@...1379...> References: <4F06C2D0.2050208@...626...> <1cbc30e921b3c354fba2843664386040@...2308...> <33093687.post@...1379...> <1325864428.2807.2.camel@...2735...> <33093901.post@...1379...> <1325869035.10679.71.camel@...2150...> <33094447.post@...1379...> Message-ID: <33097176.post@...1379...> Now I have modified the code. In CUnits: ------------------------------------------------------- ' Gambas class file Static Private NumberOfUnits As Integer = 0 Static Private CountOfCreations As Integer = 0 Private Id As Integer 'Identity number 'constructor Public Sub _new() NumberOfUnits += 1 CountOfCreations += 1 MakeIdentification() 'Print "New Unit was created" End Static Public Sub HowManyUnits() Print "There are "; NumberOfUnits; " objects of class 'CUnit'" End Private Sub MakeIdentification() Id = CountOfCreations End Public Sub PrintIdentification() Print "Identity number of the object is "; Id End ------------------------------------------------------- In MMain: ------------------------------------------------------- ' Gambas module file Public Sub Main() Dim Unit1, Unit2, Unit3, Unit4 As CUnit Dim i As Integer 'counter Dim aUnit As New CUnit[5] 'Array CUnit.HowManyUnits() Unit1 = New CUnit Unit2 = New CUnit CUnit.HowManyUnits() Unit3 = New CUnit Unit4 = New CUnit CUnit.HowManyUnits() 'creation in a cycle For i = 1 To 100 SubForCycleCreation() Next CUnit.HowManyUnits() 'creation to an array For i = 0 To 4 aUnit[i] = New CUnit Next CUnit.HowManyUnits() aUnit[0].PrintIdentification() End Public Sub SubForCycleCreation() Dim Unit5 As CUnit Unit5 = New CUnit End ------------------------------------------------------- The output is: ------------------------------------------------------- There are 0 objects of class 'CUnit' There are 2 objects of class 'CUnit' There are 4 objects of class 'CUnit' There are 104 objects of class 'CUnit' There are 109 objects of class 'CUnit' Identity number of the object is 105 ------------------------------------------------------- Why I can't the line "Dim aUnit As New CUnit[5] 'Array" in MMain write without "NEW"? In the documentation in Array declarations: "DIM Identifier AS [ NEW ] Datatype [ Array dimensions ... ]" . So, "NEW" is optional here, but I have a mistake without It. What interesting tricks we can add to this program? This program could be a sample. :-) When I write in MMain "Unit1." an autocomlection window rises with a help window. My functions in the help window are naked. Maybe it will be nice to see in a help window first comment lines above my functions. :-) '--doc-- 'comments for 'documenting subs PUBLIC SUB DocunebtedSub() END -- View this message in context: http://old.nabble.com/File-opening-dialog-and-one-more-question-tp33085420p33097176.html Sent from the gambas-user mailing list archive at Nabble.com. From rmorgan62 at ...626... Sat Jan 7 05:50:43 2012 From: rmorgan62 at ...626... (Randall Morgan) Date: Fri, 6 Jan 2012 20:50:43 -0800 Subject: [Gambas-user] Wrap mode for gb.qt4.editor In-Reply-To: <4F0660B5.2000000@...626...> References: <4F0660B5.2000000@...626...> Message-ID: There is no parallel to the enum in Gambas (I hope one will exist in the next version) so you have a couple choices. The simplest is to define Constance for the suit values. DIM Const Clubs As Integer = 0 DIM Const Diamonds As Integer = 1 .... An enum would help in porting C/C++ libraries to Gambas as well. Hope that helps Randall On Thu, Jan 5, 2012 at 6:47 PM, Dmitriy wrote: > Can I enable Wrap mode for gb.qt4.editor? If I can't, will It be > possible soon? > > > P.S. > I found help system in Gambas2 better then in Gambas3. Samples and > source of IDE are poor commented :-). So, I don't know, how I can study > programming Gambas or just understand how samples work. I have no > resources except mail lists. At my opinion writing console programs is a > good point to begin studying Gambas. I took a book for C++ (Robert > Lafore, Object-Oriented Programming in C++ 4-th Ed) and began translate > programs from It to Gambas. So, when I was translating example of card > game from 6-th section, I found: > ------------------------------------------------------ > /////////////////////// > enum Suit { clubs, diamonds, hearts, spades }; > const int jack = 11; > const int queen = 12; > const int king = 13; > const int ace = 14; > /////////////////////// > class card > { > private: > int number; > Suit suit; > public: > card() {} > card(int n, Suit s): number(n), suit(s) {} > void dysplay(); > bool isEqual(card); //result of comparison two cards > } > /////////////////////// > void card::dysplay() > { > ... > } > > bool card::isEqual(card c2) > { > ... > } > /////////////////////// > ------------------------------------------------------ > I don't know how to translate it the best way. How to work with "ENUM" > in Gambas? > > > P.P.S. > Is there anybody, who writes LaTeX often and isn't satisfied with Kile > and TeXMaker? I want to write LaTeX-editor in Gambas. I want it will > work like IDE for Gambas3. I think it is not very difficult task. > > ------------------------ > Regards, > Dmitrij Malkov > > > ------------------------------------------------------------------------------ > Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex > infrastructure or vast IT resources to deliver seamless, secure access to > virtual desktops. With this all-in-one solution, easily deploy virtual > desktops for less than the cost of PCs and save 60% on VDI infrastructure > costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- If you ask me if it can be done. The answer is YES, it can always be done. The correct questions however are... What will it cost, and how long will it take? From rmorgan62 at ...626... Sat Jan 7 06:24:04 2012 From: rmorgan62 at ...626... (Randall Morgan) Date: Fri, 6 Jan 2012 21:24:04 -0800 Subject: [Gambas-user] Another basics In-Reply-To: References: <4F06E9B1.2040402@...626...> Message-ID: Hi, I've been writing a book on Gambas though work took me away from the project for a bit. I've decided to get back to it. I am no writer but I too saw the need for a better text on Gambas. There is a wiki but it has limited information. I've been writing this using Lyx but will post it on the web. Perhaps those who use it can give me feed back. I am dyslexic and so you can expect to find a LOT of spelling errors in my docs. So any help in correcting them and any technical direction would be nice. I'll post back here one I have it up. Randall On Fri, Jan 6, 2012 at 7:55 AM, M. Cs. wrote: > Hello Fabien, > and I also think it would be nice to hear about how to keep the code > clean. I have to rewrite the things in order to have a program without > unfreed allocations. > What I intend to do is to use more private variables on modules and > well defined functions to access to them across the modules if needed. > > 2012/1/6, Fabien Bodard : > > well :) > > > > i'm not a true professionnal of computing so words i use are not good. > > (and my english is really bad) > > > > In a class you have 3 time > > > > _Init > > Called only one time at the first use of the class > > > > _New > > Called at each NEW instantiation > > > > _Free > > Called when a classe is freed (when the ref to this class instance > > not stored anywhere) > > > > > > > > > > You can access a public var from anywhere but this var is linked to an > > instance > > > > If you use static public the var is accessible from the class name > > like with a module and not depend of an instance. (it allow for > > example to share a value between each instance of a class > > > > Private var is accessible ony from the sub of the current class > > > > static private can be used only from a static sub. > > > > > > > > I use public var for property that just store a value and can be > > accessed in read write mode > > > > i use property for value that need controle or that generate an event > > > > > > for example > > dim $iX as private > > property X as integer > > > > Private X_Read() as Integer > > return $iX > > end > > > > Private X_Write(Value as integer) > > $iX = min(Value,100) 'max 100 > > RefreshDraw() 'redraw the object when the x is changed > > end > > > > > > You can use Property Read for a read only value > > > > > > this is some basis..... > > > > -- > > Fabien Bodard > > > > > ------------------------------------------------------------------------------ > > Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex > > infrastructure or vast IT resources to deliver seamless, secure access to > > virtual desktops. With this all-in-one solution, easily deploy virtual > > desktops for less than the cost of PCs and save 60% on VDI infrastructure > > costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > ------------------------------------------------------------------------------ > Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex > infrastructure or vast IT resources to deliver seamless, secure access to > virtual desktops. With this all-in-one solution, easily deploy virtual > desktops for less than the cost of PCs and save 60% on VDI infrastructure > costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- If you ask me if it can be done. The answer is YES, it can always be done. The correct questions however are... What will it cost, and how long will it take? From rmorgan62 at ...626... Sat Jan 7 06:24:40 2012 From: rmorgan62 at ...626... (Randall Morgan) Date: Fri, 6 Jan 2012 21:24:40 -0800 Subject: [Gambas-user] Another basics In-Reply-To: References: <4F06E9B1.2040402@...626...> Message-ID: Perhaps this will commit me to writing a bit more every week.... On Fri, Jan 6, 2012 at 9:24 PM, Randall Morgan wrote: > Hi, > > I've been writing a book on Gambas though work took me away from the > project for a bit. I've decided to get back to it. I am no writer but I too > saw the need for a better text on Gambas. There is a wiki but it has > limited information. I've been writing this using Lyx but will post it on > the web. Perhaps those who use it can give me feed back. I am dyslexic and > so you can expect to find a LOT of spelling errors in my docs. So any help > in correcting them and any technical direction would be nice. > > I'll post back here one I have it up. > > Randall > > > > On Fri, Jan 6, 2012 at 7:55 AM, M. Cs. wrote: > >> Hello Fabien, >> and I also think it would be nice to hear about how to keep the code >> clean. I have to rewrite the things in order to have a program without >> unfreed allocations. >> What I intend to do is to use more private variables on modules and >> well defined functions to access to them across the modules if needed. >> >> 2012/1/6, Fabien Bodard : >> > well :) >> > >> > i'm not a true professionnal of computing so words i use are not good. >> > (and my english is really bad) >> > >> > In a class you have 3 time >> > >> > _Init >> > Called only one time at the first use of the class >> > >> > _New >> > Called at each NEW instantiation >> > >> > _Free >> > Called when a classe is freed (when the ref to this class instance >> > not stored anywhere) >> > >> > >> > >> > >> > You can access a public var from anywhere but this var is linked to an >> > instance >> > >> > If you use static public the var is accessible from the class name >> > like with a module and not depend of an instance. (it allow for >> > example to share a value between each instance of a class >> > >> > Private var is accessible ony from the sub of the current class >> > >> > static private can be used only from a static sub. >> > >> > >> > >> > I use public var for property that just store a value and can be >> > accessed in read write mode >> > >> > i use property for value that need controle or that generate an event >> > >> > >> > for example >> > dim $iX as private >> > property X as integer >> > >> > Private X_Read() as Integer >> > return $iX >> > end >> > >> > Private X_Write(Value as integer) >> > $iX = min(Value,100) 'max 100 >> > RefreshDraw() 'redraw the object when the x is changed >> > end >> > >> > >> > You can use Property Read for a read only value >> > >> > >> > this is some basis..... >> > >> > -- >> > Fabien Bodard >> > >> > >> ------------------------------------------------------------------------------ >> > Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a >> complex >> > infrastructure or vast IT resources to deliver seamless, secure access >> to >> > virtual desktops. With this all-in-one solution, easily deploy virtual >> > desktops for less than the cost of PCs and save 60% on VDI >> infrastructure >> > costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > >> >> >> ------------------------------------------------------------------------------ >> Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex >> infrastructure or vast IT resources to deliver seamless, secure access to >> virtual desktops. With this all-in-one solution, easily deploy virtual >> desktops for less than the cost of PCs and save 60% on VDI infrastructure >> costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > > -- > If you ask me if it can be done. The answer is YES, it can always be done. > The correct questions however are... What will it cost, and how long will > it take? > -- If you ask me if it can be done. The answer is YES, it can always be done. The correct questions however are... What will it cost, and how long will it take? From wally at ...2037... Sat Jan 7 08:34:48 2012 From: wally at ...2037... (Wally) Date: Sat, 07 Jan 2012 08:34:48 +0100 Subject: [Gambas-user] gb.qt4.ext dial marks ? Message-ID: <2753451.Md64vQa0rI@...46...> Hello Gambas3 on OpenSuse 12.1 gambas svn evision 4393 libqt4 version 4.7.4 Slider1.Mark = TRUE --> displays tickmarks Dial1.Mark = TRUE --> nothing visible happens (see example attached project) How to display tickmarks on a gb.qt4.ext dial control ? thanks wally -------------- next part -------------- A non-text attachment was scrubbed... Name: pg_002-0.0.1.tar.gz Type: application/x-compressed-tar Size: 4863 bytes Desc: not available URL: From bespalov.av at ...626... Sat Jan 7 08:42:50 2012 From: bespalov.av at ...626... (=?KOI8-R?B?4czFy9PFyiDixdPQwczP1w==?=) Date: Sat, 7 Jan 2012 13:42:50 +0600 Subject: [Gambas-user] Which component library uses gb.image, gb.image.effect? Message-ID: Hi! Which component library uses gb.image, gb.image.effect? I want to make a application for photo editing and want to know whether the fairly good working Image.Balantse() is not worse the ShotWell? -- Alexey. From dima.malkov.russia at ...626... Sat Jan 7 10:09:54 2012 From: dima.malkov.russia at ...626... (Dmitrij Malkov) Date: Sat, 7 Jan 2012 01:09:54 -0800 (PST) Subject: [Gambas-user] File opening dialog and one more question In-Reply-To: <33097176.post@...1379...> References: <4F06C2D0.2050208@...626...> <1cbc30e921b3c354fba2843664386040@...2308...> <33093687.post@...1379...> <1325864428.2807.2.camel@...2735...> <33093901.post@...1379...> <1325869035.10679.71.camel@...2150...> <33094447.post@...1379...> <33097176.post@...1379...> Message-ID: <33097604.post@...1379...> I add a new class, child to CUnit. I named It "CUnitChild". It's code: ------------------------------------------ ' Gambas class file Inherits CUnit ------------------------------------------ And I add creation on object of this class in the middle of MMain: ------------------------------------------ ' Gambas module file Public Sub Main() Dim Unit1, Unit2, Unit3, Unit4 As CUnit Dim i As Integer 'counter Dim aUnit As New CUnit[5] 'Array Dim Child1 As CUnitChild 'Inherited of CUnit CUnit.HowManyUnits() Unit1 = New CUnit Unit2 = New CUnit CUnit.HowManyUnits() Unit3 = New CUnit Unit4 = New CUnit CUnit.HowManyUnits() 'trying to create and work with 'child class of CUnit Child1 = New CUnitChild CUnitChild.HowManyUnits() Child1.PrintIdentification() 'creation in a cycle For i = 1 To 100 SubForCycleCreation() Next CUnit.HowManyUnits() 'creation to an array For i = 0 To 4 aUnit[i] = New CUnit Next CUnit.HowManyUnits() aUnit[0].PrintIdentification() End Public Sub SubForCycleCreation() Dim Unit5 As CUnit Unit5 = New CUnit End ------------------------------------------ The output is ------------------------------------------ There are 0 objects of class 'CUnit' There are 2 objects of class 'CUnit' There are 4 objects of class 'CUnit' There are 5 objects of class 'CUnit' Identity number of the object is 5 There are 105 objects of class 'CUnit' There are 110 objects of class 'CUnit' Identity number of the object is 106 ------------------------------------------ Oh my God! "PRIVATE" in Gambas3 is the same, as "Protected" in C++, because the existion of the object "Child1" changed the private data "Static Private NumberOfUnits" of the class "CUnit". Maybe I am wrong. How to rewrite constructor for a child class? How to write and test destructors? http://old.nabble.com/file/p33097604/OOP_3_STATIC-0.0.1.tar.gz OOP_3_STATIC-0.0.1.tar.gz -- View this message in context: http://old.nabble.com/File-opening-dialog-and-one-more-question-tp33085420p33097604.html Sent from the gambas-user mailing list archive at Nabble.com. From matteo.pasotti at ...626... Sat Jan 7 12:37:24 2012 From: matteo.pasotti at ...626... (Matteo Pasotti) Date: Sat, 07 Jan 2012 12:37:24 +0100 Subject: [Gambas-user] The good old tar-1.13 is still an obstacle In-Reply-To: References: <4F060581.6080905@...1...> Message-ID: <4F082E74.3000603@...626...> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Il 06/01/2012 19:21, M. Cs. ha scritto: > Hello Benoit! > Your method doesn't work on Kubuntu 11.10. I simply cannot create > Slackware package with IDE. Any other solution? > > Csaba > I've installed tar-1.13 (starting from sources) into a different path and then I made a symlink into /bin. It works but I still receive this error trying to build slackware packages using Gambas IDE: Package.MakeTgzPackage.1199: File or directory does not exist I'm on Mageia 1. Am I doing something wrong? Regards, - -- Matteo -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mageia - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJPCC5xAAoJED3LowjDDWbNCZEIAJbIn4iaq9GQJFH76wx+RB1I ITf2wQGbWFjjTudBcVZ/ggeX9rOh9klMDH0umBH/ASphWkLLIVJyNT0ICih8+tbW AHM3KwOVEDFdRuatFOqWcJLbcYaDHU4PQPPvWIxNhUWFhTphD3L7edVdi68S5EDf 4Oc2r8YsnZg2MmszE392+lgCEnpzIef284pkqKilvowi7V3uv66ct1H01X/Uq5Qn GtSeAGkrZe7ZbVah2cCwL/mZ5H9d//BNJIxjJ6vPB5pnnvFGVXJXC6AAjPCJWFss 7TnNNq+WAQA+CegfyRtBpT3ZEOBdhZTiHwkq86sTdTbh0S9QTa7jDoAGHxXN1EU= =L7YN -----END PGP SIGNATURE----- From jussi.lahtinen at ...626... Sat Jan 7 15:14:48 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sat, 7 Jan 2012 16:14:48 +0200 Subject: [Gambas-user] Running programs from terminal and by double clicking. In-Reply-To: <4F0652E4.4080908@...1...> References: <4F0652E4.4080908@...1...> Message-ID: > The bug should be fixed in revision #4392. > Confirmed. However the fix caused some changes, earlier only control character \n was received, now there is \r also. But I don't think this matters, it is just something to be taken into consideration. Jussi From dima.malkov.russia at ...626... Sat Jan 7 15:43:26 2012 From: dima.malkov.russia at ...626... (Dmitrij Malkov) Date: Sat, 7 Jan 2012 06:43:26 -0800 (PST) Subject: [Gambas-user] Another basics In-Reply-To: References: <4F06E9B1.2040402@...626...> Message-ID: <33098567.post@...1379...> > I've been writing a book on Gambas. This is great deal. > I've been writing this using Lyx but will post it on the web. Maybe LaTeX is better? I can convert It to LaTeX if you want. > So any help in correcting them and any technical direction would be nice. Books written by the community or several autors are better then books written by individuals. The books are being modified continuously are better then books has being released at once. What license did you choose for the book? If community will write some book continuously and depending on version of some program, LaTeX format is prefered then Lyx. > I'll post back here one I have it up. GOOD LUCK! I am in impatience. -- View this message in context: http://old.nabble.com/Another-basics-tp33092238p33098567.html Sent from the gambas-user mailing list archive at Nabble.com. From tobiasboe1 at ...20... Sat Jan 7 17:20:32 2012 From: tobiasboe1 at ...20... (tobias) Date: Sat, 07 Jan 2012 17:20:32 +0100 Subject: [Gambas-user] chmod? In-Reply-To: <20120106114747.13702b59l72d890z@...2757...> References: <4F064211.2020606@...20...> <20120106114747.13702b59l72d890z@...2757...> Message-ID: <4F0870D0.8070002@...20...> bbruen at ...2308... wrote: > Quoting tobias : > >> hi, >> >> i can't find any interface (except Extern or Exec) to chmod(2) in >> gambas. is there one? i think there should... >> >> regards, >> tobi > > I was going to say Stat.Perm but I had never realized that it is read only. > I agree that there should be one. > Bruce > > > > > ------------------------------------------------------------------------------ > Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex > infrastructure or vast IT resources to deliver seamless, secure access to > virtual desktops. With this all-in-one solution, easily deploy virtual > desktops for less than the cost of PCs and save 60% on VDI infrastructure > costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user to revive this one... if it is appreciated, i'll try to write a class or something (i'll see...) to provide the functionality. (i remember there is a page on the wiki on how to program classes in c for gambas...) From gambas at ...1... Sat Jan 7 18:55:33 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 07 Jan 2012 18:55:33 +0100 Subject: [Gambas-user] Running programs from terminal and by double clicking. In-Reply-To: References: <4F0652E4.4080908@...1...> Message-ID: <4F088715.3020900@...1...> Le 07/01/2012 15:14, Jussi Lahtinen a ?crit : >> The bug should be fixed in revision #4392. >> > > > Confirmed. > However the fix caused some changes, earlier only control character \n was > received, now there is \r also. > But I don't think this matters, it is just something to be taken into > consideration. > > Jussi What are you talking about? There was nothing sent or received in the project you sent me, was it? -- Beno?t Minisini From rmorgan62 at ...626... Sat Jan 7 21:22:26 2012 From: rmorgan62 at ...626... (Randall Morgan) Date: Sat, 7 Jan 2012 12:22:26 -0800 Subject: [Gambas-user] Another basics In-Reply-To: <33098567.post@...1379...> References: <4F06E9B1.2040402@...626...> <33098567.post@...1379...> Message-ID: LyX is built on Latex and LeX and is a powerful editor for handling Latex documents. The book is intended to be a static document and will be released as such. Call me old fashioned but I see a place for both static and dynamic documents. Static documents can always be referred back to for information and maintain the state of that information. While dynamic documents often loose information during editing. A dynamic document is meant to provide the latest information with as few errors as possible. But it looses the ability to be referenced as the reference point may or may not exist at any future point. One concern of mine about this great information age is that so much has become dynamic and is placed in digital formats using technologies that will become obsolete. So at some point the documents themselves are lost due to the technology creep. A printed document may suffer from it's inability to be modified in the field but it trades that for its quotability and reference ability. Having multiple authors is also a two edged sword. The benefit are that you have multiple view points and a greater pool of knowledge to draw from. However, you can loose constancy very easily. Resulting in a text that is not cohesive and fails to tie points together. Editors work hard to develop a cohesive text out of chapters penned by multiple authors. So dynamic is not always better nor is multiple authors always better. Each approach has it's own advantages and disadvantages. That said, I will release the book in two forms. PDF for free download and Self Published through Lulu for those who want a printed copy. I will maintain the copyright but will allow free use for any purpose. I have not chosen a license yet. But my intent is to provide a freely available source of information for learning programming using Gambas. A website will be setup to provide code for downloading and errata. I am working on final edits to the first few chapters today. Since the book is geared toward those with little or no programming experience these chapters are more remedial than the remainder of the book and serve as an introduction to programming. On Sat, Jan 7, 2012 at 6:43 AM, Dmitrij Malkov wrote: > > > > I've been writing a book on Gambas. > > This is great deal. > > > I've been writing this using Lyx but will post it on the web. > > Maybe LaTeX is better? I can convert It to LaTeX if you want. > > > So any help in correcting them and any technical direction would be nice. > > Books written by the community or several autors are better then books > written by individuals. The books are being modified continuously are > better > then books has being released at once. What license did you choose for the > book? If community will write some book continuously and depending on > version of some program, LaTeX format is prefered then Lyx. > > > I'll post back here one I have it up. > > GOOD LUCK! I am in impatience. > > -- > View this message in context: > http://old.nabble.com/Another-basics-tp33092238p33098567.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > > ------------------------------------------------------------------------------ > Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex > infrastructure or vast IT resources to deliver seamless, secure access to > virtual desktops. With this all-in-one solution, easily deploy virtual > desktops for less than the cost of PCs and save 60% on VDI infrastructure > costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- If you ask me if it can be done. The answer is YES, it can always be done. The correct questions however are... What will it cost, and how long will it take? From wally at ...2037... Sat Jan 7 21:59:26 2012 From: wally at ...2037... (Wally) Date: Sat, 07 Jan 2012 21:59:26 +0100 Subject: [Gambas-user] gb.qt4.ext dial marks ? In-Reply-To: <2753451.Md64vQa0rI@...46...> References: <2753451.Md64vQa0rI@...46...> Message-ID: <2687789.LJYmuSR8bi@...46...> OK, found the reason. Tickmarks are not shown in "Oxygen" but e.g. in "Plastique" -style No Gambas problem, sorry :) On Saturday, January 07, 2012 08:34:48 Wally wrote: > Hello > > Gambas3 on OpenSuse 12.1 > gambas svn evision 4393 > libqt4 version 4.7.4 > > Slider1.Mark = TRUE --> displays tickmarks > Dial1.Mark = TRUE --> nothing visible happens > (see example attached project) > > How to display tickmarks on a gb.qt4.ext dial control ? > > thanks wally From bespalov.av at ...626... Sat Jan 7 22:06:47 2012 From: bespalov.av at ...626... (=?KOI8-R?B?4czFy9PFyiDixdPQwczP1w==?=) Date: Sun, 8 Jan 2012 03:06:47 +0600 Subject: [Gambas-user] What is the difference between classes Draw and Paint? Message-ID: Please tell me. What is the difference between classes Draw and Paint? Paint.DrawImage(hImage, 0, 0) and Draw.Image(hImage, 0, 0) gives the same result? Thanks. -- Alexey. From tommyline at ...2340... Sun Jan 8 00:28:16 2012 From: tommyline at ...2340... (tommyline at ...2340...) Date: Sat, 7 Jan 2012 23:28:16 +0000 (GMT) Subject: [Gambas-user] reconf-all error in Linux Mint 12 Message-ID: <25119218.7581.1325978896332.JavaMail.root@...2632...> Hi group! I have just installed Linux Mint 12 32bit, and tried to install Gambas3 ver. 4393. Can't go through reconf-all. Older version did reconf and configure, but with missing dependencies, which are difficult to solve with Gnome 3. reconf-all output: libtoolize: putting auxiliary files in `.'. libtoolize: copying file `./ltmain.sh' libtoolize: You should add the contents of the following files to `aclocal.m4': libtoolize: `/usr/share/aclocal/libtool.m4' libtoolize: `/usr/share/aclocal/ltoptions.m4' libtoolize: `/usr/share/aclocal/ltversion.m4' libtoolize: `/usr/share/aclocal/ltsugar.m4' libtoolize: `/usr/share/aclocal/lt~obsolete.m4' libtoolize: Remember to add `LT_INIT' to configure.ac. libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.ac and libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree. libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am. autoreconf: Entering directory `.' autoreconf: configure.ac: not using Gettext autoreconf: running: aclocal /usr/share/aclocal/gtkglextmm-1.2.m4:225: warning: underquoted definition of AC_GTKGLEXTMM_SUPPORTS_MULTIHEAD /usr/share/aclocal/gtkglextmm-1.2.m4:225: run info '(automake)Extending aclocal' /usr/share/aclocal/gtkglextmm-1.2.m4:225: or see http://sources.redhat.com/automake/automake.html#Extending-aclocal autoreconf: configure.ac: tracing autoreconf: configure.ac: adding subdirectory main to autoreconf autoreconf: Entering directory `main' autoreconf: running: aclocal -I m4 --install /usr/share/aclocal/gtkglextmm-1.2.m4:225: warning: underquoted definition of AC_GTKGLEXTMM_SUPPORTS_MULTIHEAD /usr/share/aclocal/gtkglextmm-1.2.m4:225: run info '(automake)Extending aclocal' /usr/share/aclocal/gtkglextmm-1.2.m4:225: or see http://sources.redhat.com/automake/automake.html#Extending-aclocal aclocal: installing `m4/libtool.m4' from `/usr/share/aclocal/libtool.m4' aclocal: installing `m4/ltoptions.m4' from `/usr/share/aclocal/ltoptions.m4' aclocal: installing `m4/ltsugar.m4' from `/usr/share/aclocal/ltsugar.m4' aclocal: installing `m4/ltversion.m4' from `/usr/share/aclocal/ltversion.m4' aclocal: installing `m4/lt~obsolete.m4' from `/usr/share/aclocal/lt~obsolete.m4' autoreconf: running: libtoolize --install --copy libtoolize: putting auxiliary files in `.'. libtoolize: copying file `./config.guess' libtoolize: copying file `./config.sub' libtoolize: copying file `./install-sh' libtoolize: copying file `./ltmain.sh' /usr/share/aclocal/gtkglextmm-1.2.m4:225: warning: underquoted definition of AC_GTKGLEXTMM_SUPPORTS_MULTIHEAD /usr/share/aclocal/gtkglextmm-1.2.m4:225: run info '(automake)Extending aclocal' /usr/share/aclocal/gtkglextmm-1.2.m4:225: or see http://sources.redhat.com/automake/automake.html#Extending-aclocal autoreconf: running: /usr/bin/autoconf configure:4090: error: possibly undefined macro: AC_LIBLTDL_CONVENIENCE If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. autoreconf: /usr/bin/autoconf failed with exit status: 1 Regards. Tomek. From petterfilip at ...626... Sun Jan 8 01:07:25 2012 From: petterfilip at ...626... (pf) Date: Sun, 08 Jan 2012 01:07:25 +0100 Subject: [Gambas-user] Upgraded to 3.0.0, Serial port example no longer works Message-ID: <4F08DE3D.5040100@...626...> Hi I upgraded to 3.0.0 The serial port example doesnt work anymore. When i get input on the serial port i stops with an error. Public Sub SPort_Read() Dim s As String Read #Sport, s, Lof(Sport) ' At this line i get an error saying: End of file in FSerialPort:53 TextArea1.Text = TextArea1.Text & s End Christer From gambas at ...2524... Sun Jan 8 04:01:44 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 08 Jan 2012 03:01:44 +0000 Subject: [Gambas-user] Issue 181 in gambas: Crash with certain menu caption. In-Reply-To: <0-6813199134517018827-9691118861731232159-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-9691118861731232159-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-9691118861731232159-gambas=googlecode.com@...2524...> Updates: Status: NeedsInfo Labels: -Version -Type-Bug Version-TRUNK Type-Crash Comment #1 on issue 181 by benoit.m... at ...626...: Crash with certain menu caption. http://code.google.com/p/gambas/issues/detail?id=181 I cannot reproduce the crash: the project works as expected on my machine, and valgrind detects no problem. Can you give more information? From gambas at ...2524... Sun Jan 8 04:05:45 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 08 Jan 2012 03:05:45 +0000 Subject: [Gambas-user] Issue 182 in gambas: Rmdir should have an error code to report the deletion of a folder with content In-Reply-To: <0-6813199134517018827-14491615997377405895-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-14491615997377405895-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-14491615997377405895-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -Version -Type-Bug Version-TRUNK Type-Enhancement Comment #1 on issue 182 by benoit.m... at ...626...: Rmdir should have an error code to report the deletion of a folder with content http://code.google.com/p/gambas/issues/detail?id=182 (No comment was entered for this change.) From gambas at ...2524... Sun Jan 8 04:09:46 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 08 Jan 2012 03:09:46 +0000 Subject: [Gambas-user] Issue 183 in gambas: Install Gambas 3 on Mandriva 2011.2 In-Reply-To: <0-6813199134517018827-9543092773629140940-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-9543092773629140940-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-9543092773629140940-gambas=googlecode.com@...2524...> Updates: Status: WontFix Labels: -Version Version-TRUNK Comment #1 on issue 183 by benoit.m... at ...626...: Install Gambas 3 on Mandriva 2011.2 http://code.google.com/p/gambas/issues/detail?id=183 You must install autoconf, libtool and all needed development packages. From gambas at ...2524... Sun Jan 8 04:13:47 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 08 Jan 2012 03:13:47 +0000 Subject: [Gambas-user] Issue 184 in gambas: Gambas3 ide cannot reset/delete choosed font to default/empty font... on controls In-Reply-To: <0-6813199134517018827-14011734729134426887-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-14011734729134426887-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-14011734729134426887-gambas=googlecode.com@...2524...> Updates: Status: WontFix Labels: -Version Version-TRUNK Comment #1 on issue 184 by benoit.m... at ...626...: Gambas3 ide cannot reset/delete choosed font to default/empty font... on controls http://code.google.com/p/gambas/issues/detail?id=184 To restore the Font property to its default value, you have to hit the backspace or the delete key in the property sheet. From gambas at ...2524... Sun Jan 8 04:17:48 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 08 Jan 2012 03:17:48 +0000 Subject: [Gambas-user] Issue 130 in gambas: Undo / Redo in the form editor In-Reply-To: <1-6813199134517018827-13458801535548182978-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-13458801535548182978-gambas=googlecode.com@...2524...> <0-6813199134517018827-13458801535548182978-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-13458801535548182978-gambas=googlecode.com@...2524...> Updates: Status: Started Labels: -Priority-Low Priority-Medium Comment #2 on issue 130 by benoit.m... at ...626...: Undo / Redo in the form editor http://code.google.com/p/gambas/issues/detail?id=130 (No comment was entered for this change.) From gambas at ...2524... Sun Jan 8 07:39:23 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 08 Jan 2012 06:39:23 +0000 Subject: [Gambas-user] Issue 185 in gambas: Editing a line changes font spacing Message-ID: <0-6813199134517018827-9150352820753408673-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 185 by zachsmit... at ...626...: Editing a line changes font spacing http://code.google.com/p/gambas/issues/detail?id=185 1) Describe the problem. When editing any line, the font spacing appears to widen but the cursor position does not adjust accordingly. 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): [System] OperatingSystem=Linux Kernel=3.1.7-1-ARCH Architecture=x86_64 Memory=4052020 kB DistributionVendor=arch DistributionRelease=n/a Desktop=Xfce [Gambas 2] Version=2.23.1 Path=/usr/bin/gbx2 [Gambas 3] Version=3.0.0 Path=/usr/bin/gbx3 [Libraries] Qt4=libQtCore.so.4.8.0 GTK+=libgtk-x11-2.0.so.0.2400.8\ 5) Explain clearly how to reproduce the bug or the crash. The first line in the image shows syntax highlighting. The second line is a duplicate for comparison. It shows the line after a single space character was added to the end of the line. The cursor should be positioned one space width after the end of the line. It makes editing difficult since the cursor is not in the right position while typing. This happens in r4388 as well as the latest Arch binary package. I don't see this happening in x86, only in x86_64. I'm not sure if there is something configurable in qt that may be the cause. Attachments: font.png 7.8 KB From ph at ...1769... Sun Jan 8 14:34:00 2012 From: ph at ...1769... (Ph.sf) Date: Sun, 08 Jan 2012 11:34:00 -0200 Subject: [Gambas-user] Issue 182 in gambas: Rmdir should have an error code to report the deletion of a folder with content Message-ID: gambas at ...2524... escreveu: >Updates: > Status: Accepted > Labels: -Version -Type-Bug Version-TRUNK Type-Enhancement > >Comment #1 on issue 182 by benoit.m... at ...626...: Rmdir should have an >error code to report the deletion of a folder with content >http://code.google.com/p/gambas/issues/detail?id=182 > >(No comment was entered for this change.) > > >------------------------------------------------------------------------------ >Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex >infrastructure or vast IT resources to deliver seamless, secure access to >virtual desktops. With this all-in-one solution, easily deploy virtual >desktops for less than the cost of PCs and save 60% on VDI infrastructure >costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox >_______________________________________________ >Gambas-user mailing list >Gambas-user at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/gambas-user From jussi.lahtinen at ...626... Sun Jan 8 18:24:21 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 8 Jan 2012 19:24:21 +0200 Subject: [Gambas-user] Running programs from terminal and by double clicking. In-Reply-To: <4F088715.3020900@...1...> References: <4F0652E4.4080908@...1...> <4F088715.3020900@...1...> Message-ID: Example: hProcess = Exec ["echo", "hello?"] For Input As "Process" In this case child process used to sent "hello?\n" to parent process, now it will send "hello?\r\n". If you do this: $ echo "hello?" > test.txt And open test.txt in hexeditor, you will see that only \n is really send to output. So, \r is unexpected to me. However I'm not saying this is wrong. Jussi 2012/1/7 Beno?t Minisini > Le 07/01/2012 15:14, Jussi Lahtinen a ?crit : > >> The bug should be fixed in revision #4392. > >> > > > > > > Confirmed. > > However the fix caused some changes, earlier only control character \n > was > > received, now there is \r also. > > But I don't think this matters, it is just something to be taken into > > consideration. > > > > Jussi > > What are you talking about? There was nothing sent or received in the > project you sent me, was it? > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex > infrastructure or vast IT resources to deliver seamless, secure access to > virtual desktops. With this all-in-one solution, easily deploy virtual > desktops for less than the cost of PCs and save 60% on VDI infrastructure > costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...2524... Sun Jan 8 18:48:08 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 08 Jan 2012 17:48:08 +0000 Subject: [Gambas-user] Issue 181 in gambas: Crash with certain menu caption. In-Reply-To: <1-6813199134517018827-9691118861731232159-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-9691118861731232159-gambas=googlecode.com@...2524...> <0-6813199134517018827-9691118861731232159-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-9691118861731232159-gambas=googlecode.com@...2524...> Comment #2 on issue 181 by jussi.la... at ...626...: Crash with certain menu caption. http://code.google.com/p/gambas/issues/detail?id=181 I ran: valgrind --log-file=$HOME/Desktop/valgrind-memcheck.log --tool=memcheck --num-callers=50 gbx3 And I couldn't reproduce the crash with valgrind, but the logs are not clear either. See attachment. Is there some other information I could provide? Attachments: valgrind-memcheck.log 62.1 KB From gambas at ...2524... Mon Jan 9 05:23:07 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 09 Jan 2012 04:23:07 +0000 Subject: [Gambas-user] Issue 185 in gambas: Editing a line changes font spacing In-Reply-To: <0-6813199134517018827-9150352820753408673-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-9150352820753408673-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-9150352820753408673-gambas=googlecode.com@...2524...> Updates: Status: NeedsInfo Labels: -Version Version-TRUNK Comment #1 on issue 185 by benoit.m... at ...626...: Editing a line changes font spacing http://code.google.com/p/gambas/issues/detail?id=185 I need the project source file that has this problem, and the font you use. From eilert-sprachen at ...221... Mon Jan 9 09:08:59 2012 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Mon, 09 Jan 2012 09:08:59 +0100 Subject: [Gambas-user] Gambas3: ScrollArea doesn't scroll Message-ID: <4F0AA09B.20909@...221...> Here I am definitely understanding something wrong. I need a graphical object that allows for drawing some sort of specialized table that can expand and collapse certain rows like a TreeView. So I decided to program that either based on HTML in a RichText thing or better everything by myself in a DrawingArea. The DrawingArea would have to expand according to the contents and be controlled by ScrollBars. Then I found there is a ScrollArea in Gambas3 which could do 90 % of the job by itself. This is my understanding: A ScrollArea should be a DrawingArea which is enlarged automagically as soon as you draw beyond its borders and will produce ScrollBars for the user to slide the area forth and back below the visible frame that confines it on screen. Do you agree? Ok, I have a small ScrollArea, say 100 x 100 px. In Form_Open, I set its Contents to 2500 x 2500 px as from the documentation I understand it won't do that by itself (why not?). It shows two ScrollBars. I draw a line from 1,1 to 500,500. When I move the ScrollBars, nothing happens, i. e. the image shows the beginning of the line and stands still. This happens in qt (KDE4) as well as GTK (LXDE). The ScrollArea is not cached. I guess if I really have to move it by code, I will produce a whole lot of unnecessary Draw events. But just in case, how would their position be calculated? I would have to read the ScrollBar values, but their output is not documented - is it percent? Or relative to anything? (I cannot give you code snippets as this happened on my laptop this weekend, and I don't have G3 here in my office yet.) Really looking forward to your comments! Rolf From gambas at ...2524... Mon Jan 9 11:29:58 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 09 Jan 2012 10:29:58 +0000 Subject: [Gambas-user] Issue 184 in gambas: Gambas3 ide cannot reset/delete choosed font to default/empty font... on controls In-Reply-To: <1-6813199134517018827-14011734729134426887-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-14011734729134426887-gambas=googlecode.com@...2524...> <0-6813199134517018827-14011734729134426887-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-14011734729134426887-gambas=googlecode.com@...2524...> Comment #2 on issue 184 by marcobra... at ...626...: Gambas3 ide cannot reset/delete choosed font to default/empty font... on controls http://code.google.com/p/gambas/issues/detail?id=184 Thanks work... FYI i use svn. 4394 From gambas at ...1... Mon Jan 9 12:51:27 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 09 Jan 2012 12:51:27 +0100 Subject: [Gambas-user] Gambas3: ScrollArea doesn't scroll In-Reply-To: <4F0AA09B.20909@...221...> References: <4F0AA09B.20909@...221...> Message-ID: <4F0AD4BF.8050801@...1...> Le 09/01/2012 09:08, Rolf-Werner Eilert a ?crit : > Here I am definitely understanding something wrong. > > I need a graphical object that allows for drawing some sort of > specialized table that can expand and collapse certain rows like a > TreeView. So I decided to program that either based on HTML in a > RichText thing or better everything by myself in a DrawingArea. The > DrawingArea would have to expand according to the contents and be > controlled by ScrollBars. Then I found there is a ScrollArea in Gambas3 > which could do 90 % of the job by itself. > > This is my understanding: A ScrollArea should be a DrawingArea which is > enlarged automagically as soon as you draw beyond its borders and will > produce ScrollBars for the user to slide the area forth and back below > the visible frame that confines it on screen. > > Do you agree? > > Ok, I have a small ScrollArea, say 100 x 100 px. > > In Form_Open, I set its Contents to 2500 x 2500 px as from the > documentation I understand it won't do that by itself (why not?). > > It shows two ScrollBars. > > I draw a line from 1,1 to 500,500. > > When I move the ScrollBars, nothing happens, i. e. the image shows the > beginning of the line and stands still. This happens in qt (KDE4) as > well as GTK (LXDE). > > The ScrollArea is not cached. I guess if I really have to move it by > code, I will produce a whole lot of unnecessary Draw events. > > But just in case, how would their position be calculated? I would have > to read the ScrollBar values, but their output is not documented - is it > percent? Or relative to anything? > > (I cannot give you code snippets as this happened on my laptop this > weekend, and I don't have G3 here in my office yet.) > > Really looking forward to your comments! > > Rolf > Because when you draw, you need to use the ScrollX and ScrollY to know how much you must translate what you draw inside the Draw event handler. Nothing is physically moved, it is really "just" a DrawingArea with two scrollbars entirely made in Gambas (the source code is in gb.form if you are curious). Regards, -- Beno?t Minisini From eilert-sprachen at ...221... Mon Jan 9 13:01:50 2012 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Mon, 09 Jan 2012 13:01:50 +0100 Subject: [Gambas-user] Some thoughts on Gambas3 Message-ID: <4F0AD72E.1070203@...221...> This weekend, I had some time playing around with brandnew baby Gambas 3.0 :-) and found some features of the help worth to be enhanced. A) It's nice to have help browsers at several places (in the editor, for the toolbox and for the help) that access the texts from the wiki, but we have a poor WiFi in the house, and when my internet connection is down I'll see no help at all (I'm also thinking of our holiday in Sweden in summer, when we have no constant internet connection). So some sort of "basic local help repo" would be useful, maybe the current version from the date the tar-file was made. Or some monthly archive which can be downloaded separately by those who wish it. B) In the toolbox help window, you cannot access forth and back, and when you click on a link there, it will jump to that page and you have no way to get back. Maybe links should be blocked here, or we need extra buttons. C) There are a lot of dead links in the help which say "This ... is not included in 3.0", but when you go there directly, the page IS there. Sorry I can't give you any example, it's on my laptop at home. D) It would be nice to have an indication of the library the object is contained in. For example, I don't know which library contains ScrollArea, and from the wiki main pages, I don't see any way of accessing these chapters directly. That's about the most important stuff, now it's time for lunch :-) Regards Rolf From eilert-sprachen at ...221... Mon Jan 9 13:07:26 2012 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Mon, 09 Jan 2012 13:07:26 +0100 Subject: [Gambas-user] Gambas3: ScrollArea doesn't scroll In-Reply-To: <4F0AD4BF.8050801@...1...> References: <4F0AA09B.20909@...221...> <4F0AD4BF.8050801@...1...> Message-ID: <4F0AD87E.1060108@...221...> Am 09.01.2012 12:51, schrieb Beno?t Minisini: > Le 09/01/2012 09:08, Rolf-Werner Eilert a ?crit : >> Here I am definitely understanding something wrong. >> >> I need a graphical object that allows for drawing some sort of >> specialized table that can expand and collapse certain rows like a >> TreeView. So I decided to program that either based on HTML in a >> RichText thing or better everything by myself in a DrawingArea. The >> DrawingArea would have to expand according to the contents and be >> controlled by ScrollBars. Then I found there is a ScrollArea in Gambas3 >> which could do 90 % of the job by itself. >> >> This is my understanding: A ScrollArea should be a DrawingArea which is >> enlarged automagically as soon as you draw beyond its borders and will >> produce ScrollBars for the user to slide the area forth and back below >> the visible frame that confines it on screen. >> >> Do you agree? >> >> Ok, I have a small ScrollArea, say 100 x 100 px. >> >> In Form_Open, I set its Contents to 2500 x 2500 px as from the >> documentation I understand it won't do that by itself (why not?). >> >> It shows two ScrollBars. >> >> I draw a line from 1,1 to 500,500. >> >> When I move the ScrollBars, nothing happens, i. e. the image shows the >> beginning of the line and stands still. This happens in qt (KDE4) as >> well as GTK (LXDE). >> >> The ScrollArea is not cached. I guess if I really have to move it by >> code, I will produce a whole lot of unnecessary Draw events. >> >> But just in case, how would their position be calculated? I would have >> to read the ScrollBar values, but their output is not documented - is it >> percent? Or relative to anything? >> >> (I cannot give you code snippets as this happened on my laptop this >> weekend, and I don't have G3 here in my office yet.) >> >> Really looking forward to your comments! >> >> Rolf >> > > Because when you draw, you need to use the ScrollX and ScrollY to know > how much you must translate what you draw inside the Draw event handler. > > Nothing is physically moved, it is really "just" a DrawingArea with two > scrollbars entirely made in Gambas (the source code is in gb.form if you > are curious). > > Regards, > Ok, I think I understand: With the help of ScrollX and ScrollY I have to decide at which coordinate within my large drawing I start to draw to 1,1 on the DrawingArea? Rolf From gambas at ...1... Mon Jan 9 13:39:02 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 09 Jan 2012 13:39:02 +0100 Subject: [Gambas-user] Gambas3: ScrollArea doesn't scroll In-Reply-To: <4F0AD87E.1060108@...221...> References: <4F0AA09B.20909@...221...> <4F0AD4BF.8050801@...1...> <4F0AD87E.1060108@...221...> Message-ID: <4F0ADFE6.1080106@...1...> > > Ok, I think I understand: With the help of ScrollX and ScrollY I have to > decide at which coordinate within my large drawing I start to draw to > 1,1 on the DrawingArea? > > Rolf > Yes. If you don't care with drawing everything at each draw event, it is just a matter of translating the coordinate system with Draw.Translate(). -- Beno?t Minisini From gambas at ...1... Mon Jan 9 13:42:50 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 09 Jan 2012 13:42:50 +0100 Subject: [Gambas-user] chmod? In-Reply-To: <4F0870D0.8070002@...20...> References: <4F064211.2020606@...20...> <20120106114747.13702b59l72d890z@...2757...> <4F0870D0.8070002@...20...> Message-ID: <4F0AE0CA.4080206@...1...> Le 07/01/2012 17:20, tobias a ?crit : > bbruen at ...2308... wrote: >> Quoting tobias: >> >>> hi, >>> >>> i can't find any interface (except Extern or Exec) to chmod(2) in >>> gambas. is there one? i think there should... >>> >>> regards, >>> tobi >> >> I was going to say Stat.Perm but I had never realized that it is read only. >> I agree that there should be one. >> Bruce >> >> >> >> >> ------------------------------------------------------------------------------ >> Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex >> infrastructure or vast IT resources to deliver seamless, secure access to >> virtual desktops. With this all-in-one solution, easily deploy virtual >> desktops for less than the cost of PCs and save 60% on VDI infrastructure >> costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > to revive this one... if it is appreciated, i'll try to write a class or > something (i'll see...) to provide the functionality. (i remember > there is a page on the wiki on how to program classes in c for gambas...) > There is two reasons why there is no support for chmod(), chown()... 1) That way I was sure that Gambas programs will not try to change file security without notice. 2) There were not really Windows-compatible. Now: 1) It is a false sense of security, and there is the EXTERN keyword now. A better solution would be "sandboxing" the interpreter, by adding some configuration to forbid some dangerous features on demand. 2) I don't care anymore with Windows compatibility. So I may add some instructions or functions for that features. I will see. Regards, -- Beno?t Minisini From gambas at ...2524... Tue Jan 10 00:34:35 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 09 Jan 2012 23:34:35 +0000 Subject: [Gambas-user] Issue 185 in gambas: Editing a line changes font spacing In-Reply-To: <1-6813199134517018827-9150352820753408673-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-9150352820753408673-gambas=googlecode.com@...2524...> <0-6813199134517018827-9150352820753408673-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-9150352820753408673-gambas=googlecode.com@...2524...> Comment #2 on issue 185 by zachsmit... at ...626...: Editing a line changes font spacing http://code.google.com/p/gambas/issues/detail?id=185 Here is a test project that exhibits the behavior, but all of my projects exhibit the same behavior. I'm using monospace 9 for the editor and console. The console exhibits this behavior also. Changing to a different font does not solve the problem. Attachments: test101-0.0.1.tar.gz 4.4 KB From vuott at ...325... Tue Jan 10 00:46:09 2012 From: vuott at ...325... (Ru Vuott) Date: Mon, 9 Jan 2012 23:46:09 +0000 (GMT) Subject: [Gambas-user] Mirror-like rotation of a text character or an image... In-Reply-To: <4EFBA0F1.6000106@...1...> Message-ID: <1326152769.76893.YahooMailClassic@...2758...> Hello, I'ld like to get a specular/mirror-like rotation of a character (only as example: from "d" to "b") or an *image*... suggestion ? Thanks Paolo From shanep1967 at ...169... Tue Jan 10 06:14:49 2012 From: shanep1967 at ...169... (Shane Powell) Date: Tue, 10 Jan 2012 16:14:49 +1100 Subject: [Gambas-user] Sqlite3 bug ? Message-ID: <4F0BC949.4020809@...169...> not sure if this is a bug but when i access this database i get a copy of pictures that should not be there ie: in the program attatached i have 6 records the first has a picture the 2nd and 3rd have no pictures but i -------------- next part -------------- A non-text attachment was scrubbed... Name: Sqlite3_test-0.0.1.tar.gz Type: application/x-gzip Size: 18550 bytes Desc: not available URL: From shanep1967 at ...169... Tue Jan 10 06:30:46 2012 From: shanep1967 at ...169... (Shane Powell) Date: Tue, 10 Jan 2012 16:30:46 +1100 Subject: [Gambas-user] Sqlite3 bug ? Message-ID: <4F0BCD06.4050104@...169...> seems my last post was cut off not sure if this is a bug but when i access this database i get a copy of pictures that should not be there ie: in the program attached i have 6 records the 1st has a picture the 2nd and 3rd have no pictures but i get the data from the 1st record see program using latest trunk version -------------- next part -------------- A non-text attachment was scrubbed... Name: Sqlite3_test-0.0.1.tar.gz Type: application/x-gzip Size: 18550 bytes Desc: not available URL: From eilert-sprachen at ...221... Tue Jan 10 08:19:00 2012 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Tue, 10 Jan 2012 08:19:00 +0100 Subject: [Gambas-user] Gambas3: ScrollArea doesn't scroll In-Reply-To: <4F0ADFE6.1080106@...1...> References: <4F0AA09B.20909@...221...> <4F0AD4BF.8050801@...1...> <4F0AD87E.1060108@...221...> <4F0ADFE6.1080106@...1...> Message-ID: <4F0BE664.3050302@...221...> Am 09.01.2012 13:39, schrieb Beno?t Minisini: >> >> Ok, I think I understand: With the help of ScrollX and ScrollY I have to >> decide at which coordinate within my large drawing I start to draw to >> 1,1 on the DrawingArea? >> >> Rolf >> > > Yes. If you don't care with drawing everything at each draw event, it is > just a matter of translating the coordinate system with Draw.Translate(). > Last evening I found that with Gambas3 under KDE nothing is shown in ScrollArea and DrawingArea, the areas just stay cleared, but no error occurs. When I switch them cached = TRUE it will crash with Sig #11 after some drawings, but the IDE doesn't crash. Under LXDE everything works flawlessly. Rolf From eilert-sprachen at ...221... Tue Jan 10 12:07:28 2012 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Tue, 10 Jan 2012 12:07:28 +0100 Subject: [Gambas-user] Looking for graphics from 3.0 Message-ID: <4F0C1BF0.50304@...221...> Hi Benoit, I'm looking for the two black triangle arrows that serve in the editor for showing if a function has been collapsed or not. Where in the sources are they? Thank you Rolf From gambas at ...1... Tue Jan 10 13:11:37 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Tue, 10 Jan 2012 13:11:37 +0100 Subject: [Gambas-user] Looking for graphics from 3.0 In-Reply-To: <4F0C1BF0.50304@...221...> References: <4F0C1BF0.50304@...221...> Message-ID: <4F0C2AF9.4020401@...1...> Le 10/01/2012 12:07, Rolf-Werner Eilert a ?crit : > Hi Benoit, > > I'm looking for the two black triangle arrows that serve in the editor > for showing if a function has been collapsed or not. Where in the > sources are they? > > Thank you > > Rolf > Nowhere. They come from the underlying widget theme. -- Beno?t Minisini From gambas at ...2524... Tue Jan 10 14:42:38 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 10 Jan 2012 13:42:38 +0000 Subject: [Gambas-user] Issue 186 in gambas: gambas3: ide datasource: cannot get list of tables of an active defined postgresql connection Message-ID: <0-6813199134517018827-7393408930841018059-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 186 by marcobra... at ...626...: gambas3: ide datasource: cannot get list of tables of an active defined postgresql connection http://code.google.com/p/gambas/issues/detail?id=186 1) Describe the problem. gambas3, using ide on datasource property table: cannot get list of tables of an active selected working postgresql connection 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: TRUNK Revision: r4394 Operating system: Linux Distribution: Ubuntu Architecture: x86 GUI component: QT4 / GTK+ Desktop used: Gnome 3) Provide a little project that reproduces the bug or the crash. Simply try on a postgresql db 4) If your project needs a database, try to provide it, or part of it. Cannot provide... e very huge database... 5) Explain clearly how to reproduce the bug or the crash. Using IDE - Define a postgresql connection and be sure it is working (remember password into properties) - Open a form define a datasource to be connected with the active already defined connection Then try to list tables from datasource properties i cannot get table listed... Thanks IMPORTANT NOTE: if you encounter several different problems or bugs, (for example, a bug in your project, and an interpreter crash while debugging it), please create distinct issues! From emil.lenngren at ...626... Tue Jan 10 15:24:47 2012 From: emil.lenngren at ...626... (Emil Lenngren) Date: Tue, 10 Jan 2012 15:24:47 +0100 Subject: [Gambas-user] File opening dialog and one more question In-Reply-To: <33097604.post@...1379...> References: <4F06C2D0.2050208@...626...> <1cbc30e921b3c354fba2843664386040@...2308...> <33093687.post@...1379...> <1325864428.2807.2.camel@...2735...> <33093901.post@...1379...> <1325869035.10679.71.camel@...2150...> <33094447.post@...1379...> <33097176.post@...1379...> <33097604.post@...1379...> Message-ID: No, private is really private. You call a public sub which changed the private data ;) I suggest you read the documentation at http://gambasdoc.org/help/cat/objectmodel?v3 2012/1/7 Dmitrij Malkov > > I add a new class, child to CUnit. I named It "CUnitChild". It's code: > ------------------------------------------ > ' Gambas class file > > Inherits CUnit > ------------------------------------------ > > > > And I add creation on object of this class in the middle of MMain: > ------------------------------------------ > ' Gambas module file > > Public Sub Main() > Dim Unit1, Unit2, Unit3, Unit4 As CUnit > Dim i As Integer 'counter > Dim aUnit As New CUnit[5] 'Array > Dim Child1 As CUnitChild 'Inherited of CUnit > > CUnit.HowManyUnits() > Unit1 = New CUnit > Unit2 = New CUnit > CUnit.HowManyUnits() > Unit3 = New CUnit > Unit4 = New CUnit > CUnit.HowManyUnits() > > 'trying to create and work with > 'child class of CUnit > Child1 = New CUnitChild > CUnitChild.HowManyUnits() > Child1.PrintIdentification() > > 'creation in a cycle > For i = 1 To 100 > SubForCycleCreation() > Next > CUnit.HowManyUnits() > > 'creation to an array > For i = 0 To 4 > aUnit[i] = New CUnit > Next > CUnit.HowManyUnits() > > aUnit[0].PrintIdentification() > End > > Public Sub SubForCycleCreation() > Dim Unit5 As CUnit > Unit5 = New CUnit > End > ------------------------------------------ > > > The output is > ------------------------------------------ > There are 0 objects of class 'CUnit' > There are 2 objects of class 'CUnit' > There are 4 objects of class 'CUnit' > There are 5 objects of class 'CUnit' > Identity number of the object is 5 > There are 105 objects of class 'CUnit' > There are 110 objects of class 'CUnit' > Identity number of the object is 106 > ------------------------------------------ > > > Oh my God! "PRIVATE" in Gambas3 is the same, as "Protected" in C++, because > the existion of the object "Child1" changed the private data "Static > Private > NumberOfUnits" of the class "CUnit". Maybe I am wrong. > > How to rewrite constructor for a child class? > How to write and test destructors? > > http://old.nabble.com/file/p33097604/OOP_3_STATIC-0.0.1.tar.gz > OOP_3_STATIC-0.0.1.tar.gz > -- > View this message in context: > http://old.nabble.com/File-opening-dialog-and-one-more-question-tp33085420p33097604.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > > ------------------------------------------------------------------------------ > Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex > infrastructure or vast IT resources to deliver seamless, secure access to > virtual desktops. With this all-in-one solution, easily deploy virtual > desktops for less than the cost of PCs and save 60% on VDI infrastructure > costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From and.bertini at ...626... Tue Jan 10 17:36:54 2012 From: and.bertini at ...626... (Andrea Bertini) Date: Tue, 10 Jan 2012 17:36:54 +0100 Subject: [Gambas-user] How to print from TextEdit control? Message-ID: Is it possible to print richtext format from textedit control? I saw the example of G3 called 'printing' but can not adapt it. Thanks On the occasion of a great hope for a happy 2012!:-) Andrea Bertini ** From gambas at ...2524... Tue Jan 10 17:53:27 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 10 Jan 2012 16:53:27 +0000 Subject: [Gambas-user] Issue 187 in gambas: Interpreter stuck in an infinite loop Message-ID: <0-6813199134517018827-2644271553888399919-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 187 by emil.len... at ...626...: Interpreter stuck in an infinite loop http://code.google.com/p/gambas/issues/detail?id=187 1) Describe the problem. It is easy to make the interpreter stuck in an infinite loop. 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: 3.0 3) Provide a little project that reproduces the bug or the crash. Sub no_retval() End Public Sub Main() Print no_retval() = no_retval() End 5) Explain clearly how to reproduce the bug or the crash. Run some code like the one above. Many operators results in the same bug. The expected result is that the interpreter throws an error saying "no return value" or something similar. Instead, it gets stuck in an infinite loop when it wants to find out what types the operands are of. From nando_f at ...951... Tue Jan 10 19:04:39 2012 From: nando_f at ...951... (nando) Date: Tue, 10 Jan 2012 14:04:39 -0400 Subject: [Gambas-user] Gambas Object Reference Count Message-ID: <20120110180305.M61677@...951...> Benoit, Is there a way to find out what the actual reference count is for a GAMBAS object at runtime? -Fernando From emil.lenngren at ...626... Tue Jan 10 19:06:48 2012 From: emil.lenngren at ...626... (Emil Lenngren) Date: Tue, 10 Jan 2012 19:06:48 +0100 Subject: [Gambas-user] Gambas Object Reference Count In-Reply-To: <20120110180305.M61677@...951...> References: <20120110180305.M61677@...951...> Message-ID: See http://gambasdoc.org/help/comp/gb/object/count?v3 2012/1/10 nando > Benoit, > Is there a way to find out what the actual reference count is for a GAMBAS > object at runtime? > -Fernando > > > ------------------------------------------------------------------------------ > Write once. Port to many. > Get the SDK and tools to simplify cross-platform app development. Create > new or port existing apps to sell to consumers worldwide. Explore the > Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join > http://p.sf.net/sfu/intel-appdev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From nando_f at ...951... Tue Jan 10 19:14:28 2012 From: nando_f at ...951... (nando) Date: Tue, 10 Jan 2012 14:14:28 -0400 Subject: [Gambas-user] Gambas Object Reference Count In-Reply-To: References: <20120110180305.M61677@...951...> Message-ID: <20120110181311.M24656@...951...> Thank you Emil. I don't use 3.0 yet - but will soon. And thank you Benoit. -Fernando ---------- Original Message ----------- From: Emil Lenngren To: nando_f at ...951..., mailing list for gambas users Sent: Tue, 10 Jan 2012 19:06:48 +0100 Subject: Re: [Gambas-user] Gambas Object Reference Count > See http://gambasdoc.org/help/comp/gb/object/count?v3 > > 2012/1/10 nando > > > Benoit, > > Is there a way to find out what the actual reference count is for a GAMBAS > > object at runtime? > > -Fernando > > > > > > ------------------------------------------------------------------------------ > > Write once. Port to many. > > Get the SDK and tools to simplify cross-platform app development. Create > > new or port existing apps to sell to consumers worldwide. Explore the > > Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join > > http://p.sf.net/sfu/intel-appdev > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------------ > Write once. Port to many. > Get the SDK and tools to simplify cross-platform app development. Create > new or port existing apps to sell to consumers worldwide. Explore the > Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join > http://p.sf.net/sfu/intel-appdev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From emil.lenngren at ...626... Tue Jan 10 19:17:19 2012 From: emil.lenngren at ...626... (Emil Lenngren) Date: Tue, 10 Jan 2012 19:17:19 +0100 Subject: [Gambas-user] Gambas Object Reference Count In-Reply-To: <20120110181311.M24656@...951...> References: <20120110180305.M61677@...951...> <20120110181311.M24656@...951...> Message-ID: It works the same way in version 2 ;) /Emil 2012/1/10 nando > Thank you Emil. > I don't use 3.0 yet - but will soon. > And thank you Benoit. > -Fernando > > > ---------- Original Message ----------- > From: Emil Lenngren > To: nando_f at ...951..., mailing list for gambas users > > Sent: Tue, 10 Jan 2012 19:06:48 +0100 > Subject: Re: [Gambas-user] Gambas Object Reference Count > > > See http://gambasdoc.org/help/comp/gb/object/count?v3 > > > > 2012/1/10 nando > > > > > Benoit, > > > Is there a way to find out what the actual reference count is for a > GAMBAS > > > object at runtime? > > > -Fernando > > > > > > > > > > ------------------------------------------------------------------------------ > > > Write once. Port to many. > > > Get the SDK and tools to simplify cross-platform app development. > Create > > > new or port existing apps to sell to consumers worldwide. Explore the > > > Intel AppUpSM program developer opportunity. > appdeveloper.intel.com/join > > > http://p.sf.net/sfu/intel-appdev > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > ------------------------------------------------------------------------------ > > Write once. Port to many. > > Get the SDK and tools to simplify cross-platform app development. Create > > new or port existing apps to sell to consumers worldwide. Explore the > > Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join > > http://p.sf.net/sfu/intel-appdev > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > ------- End of Original Message ------- > > > > ------------------------------------------------------------------------------ > Write once. Port to many. > Get the SDK and tools to simplify cross-platform app development. Create > new or port existing apps to sell to consumers worldwide. Explore the > Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join > http://p.sf.net/sfu/intel-appdev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...2524... Wed Jan 11 02:24:19 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 11 Jan 2012 01:24:19 +0000 Subject: [Gambas-user] Issue 187 in gambas: Interpreter stuck in an infinite loop In-Reply-To: <0-6813199134517018827-2644271553888399919-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-2644271553888399919-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-2644271553888399919-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -Version Version-TRUNK Comment #1 on issue 187 by benoit.m... at ...626...: Interpreter stuck in an infinite loop http://code.google.com/p/gambas/issues/detail?id=187 (No comment was entered for this change.) From gambas at ...2524... Wed Jan 11 02:50:30 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 11 Jan 2012 01:50:30 +0000 Subject: [Gambas-user] Issue 187 in gambas: Interpreter stuck in an infinite loop In-Reply-To: <1-6813199134517018827-2644271553888399919-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-2644271553888399919-gambas=googlecode.com@...2524...> <0-6813199134517018827-2644271553888399919-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-2644271553888399919-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #2 on issue 187 by benoit.m... at ...626...: Interpreter stuck in an infinite loop http://code.google.com/p/gambas/issues/detail?id=187 It should be fixed in revision #4395. From gambas at ...2524... Wed Jan 11 03:51:14 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 11 Jan 2012 02:51:14 +0000 Subject: [Gambas-user] Issue 187 in gambas: Interpreter stuck in an infinite loop In-Reply-To: <2-6813199134517018827-2644271553888399919-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-2644271553888399919-gambas=googlecode.com@...2524...> <0-6813199134517018827-2644271553888399919-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-2644271553888399919-gambas=googlecode.com@...2524...> Updates: Labels: -Version-TRUNK Version-3.0.0 Comment #3 on issue 187 by benoit.m... at ...626...: Interpreter stuck in an infinite loop http://code.google.com/p/gambas/issues/detail?id=187 (No comment was entered for this change.) From gambas at ...2524... Wed Jan 11 03:55:23 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 11 Jan 2012 02:55:23 +0000 Subject: [Gambas-user] Issue 186 in gambas: gambas3: ide datasource: cannot get list of tables of an active defined postgresql connection In-Reply-To: <0-6813199134517018827-7393408930841018059-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-7393408930841018059-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-7393408930841018059-gambas=googlecode.com@...2524...> Updates: Status: Fixed Labels: -Version Version-3.0.0 Comment #1 on issue 186 by benoit.m... at ...626...: gambas3: ide datasource: cannot get list of tables of an active defined postgresql connection http://code.google.com/p/gambas/issues/detail?id=186 It should be fixed in revision #4396. From gambas at ...2524... Wed Jan 11 03:59:26 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 11 Jan 2012 02:59:26 +0000 Subject: [Gambas-user] Issue 179 in gambas: Download source for 3.0 tar.gz doesn't include ./configure In-Reply-To: <1-6813199134517018827-6756245622498448817-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-6756245622498448817-gambas=googlecode.com@...2524...> <0-6813199134517018827-6756245622498448817-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-6756245622498448817-gambas=googlecode.com@...2524...> Updates: Labels: -Version-TRUNK Version-3.0.0 Comment #2 on issue 179 by benoit.m... at ...626...: Download source for 3.0 tar.gz doesn't include ./configure http://code.google.com/p/gambas/issues/detail?id=179 (No comment was entered for this change.) From gambas at ...2524... Wed Jan 11 04:34:03 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 11 Jan 2012 03:34:03 +0000 Subject: [Gambas-user] Issue 188 in gambas: Creating a new directory in the data project data causes a seg. fault Message-ID: <0-6813199134517018827-7699354405385977273-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 188 by zachsmit... at ...626...: Creating a new directory in the data project data causes a seg. fault http://code.google.com/p/gambas/issues/detail?id=188 1) Describe the problem. Right click on Data project directory in the IDE. Select New > Directory. Hit the Esc key and then it seg. faults. 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): [System] OperatingSystem=Linux Kernel=3.1.7-1-ARCH Architecture=x86_64 Memory=4052020 kB DistributionVendor=arch DistributionRelease=n/a Desktop=Xfce [Gambas 3] Version=3.0.0 Path=/usr/bin/gbx3 From gambas at ...2524... Wed Jan 11 09:59:24 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 11 Jan 2012 08:59:24 +0000 Subject: [Gambas-user] Issue 189 in gambas: gambas3: postgresql connection password issue at runtime Message-ID: <0-6813199134517018827-12835994645982421519-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 189 by marcobra... at ...626...: gambas3: postgresql connection password issue at runtime http://code.google.com/p/gambas/issues/detail?id=189 1) Describe the problem. Using postgresql database connection type Defined new connection with password set to be remember... OK Using ide i get table list from datasource then i select a table... OK At runtime i get this: - a yellow tips "Cannot open database no password supplies..." - gb.db: warning: unable to retrieve connection password: mybd/db1: Unknown symbol 'Passwords' in class '>Desktop' 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: TRUNK Revision: r4396 Operating system: Linux Distribution: Ubuntu Architecture: x86 GUI component: QT4/GTK+ Desktop used: Gnome 3) Provide a little project that reproduces the bug or the crash. Made new connection to database i will get some 4) If your project needs a database, try to provide it, or part of it. cannot provide very huge db 5) Explain clearly how to reproduce the bug or the crash. Define a connection with password remembering then use on dataview... Run the project... Thanks From sholzy2010 at ...43... Wed Jan 11 16:09:09 2012 From: sholzy2010 at ...43... (No Way) Date: Wed, 11 Jan 2012 07:09:09 -0800 (PST) Subject: [Gambas-user] Foreign Keys on SQLite3 Message-ID: <1326294549.52349.YahooMailClassic@...2760...> I've been searching for a way to create and use foreign keys in Gambas 2 or Gambas 3. Is it possible to set foreign keys on a SQLite3 db? If so, how? From gambas at ...2524... Wed Jan 11 20:13:03 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 11 Jan 2012 19:13:03 +0000 Subject: [Gambas-user] Issue 190 in gambas: Crash with OpenGL projects Message-ID: <0-6813199134517018827-729842094719205194-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 190 by jussi.la... at ...626...: Crash with OpenGL projects http://code.google.com/p/gambas/issues/detail?id=190 1) Describe the problem. OpenGL projects crash when run. 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: TRUNK Revision: r4396 Operating system: Linux Distribution: Xubuntu Architecture: x86_64 Desktop used: XFCE 3) Provide a little project that reproduces the bug or the crash. Try example TunnelSDL. Valgrind logs attached in case of problems to reproduce the problem. [System] OperatingSystem=Linux Kernel=3.0.0-14-generic Architecture=x86_64 Memory=4056292 kB DistributionVendor=Ubuntu DistributionRelease="Ubuntu 11.10" Desktop=Xfce [Gambas 3] Version=3.0.90 Path=/usr/local/bin/gbx3 Attachments: valgrind-memcheck.log 4.2 KB valgrind-callgrind.log 1.2 KB From shordi at ...626... Wed Jan 11 22:33:00 2012 From: shordi at ...626... (=?ISO-8859-1?Q?Jorge_Carri=F3n?=) Date: Wed, 11 Jan 2012 22:33:00 +0100 Subject: [Gambas-user] Foreign Keys on SQLite3 In-Reply-To: <1326294549.52349.YahooMailClassic@...2760...> References: <1326294549.52349.YahooMailClassic@...2760...> Message-ID: Yes it's posible. All that you have to do is myconnecsqlite3.Open() myconnecsqlite3.Exec("PRAGMA foreign_keys = 1") and foreign keys is active for sqlite3. Regards 2012/1/11 No Way > I've been searching for a way to create and use foreign keys in Gambas 2 > or Gambas 3. Is it possible to set foreign keys on a SQLite3 db? If so, how? > > > > > > ------------------------------------------------------------------------------ > Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex > infrastructure or vast IT resources to deliver seamless, secure access to > virtual desktops. With this all-in-one solution, easily deploy virtual > desktops for less than the cost of PCs and save 60% on VDI infrastructure > costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...2524... Thu Jan 12 00:37:39 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 11 Jan 2012 23:37:39 +0000 Subject: [Gambas-user] Issue 191 in gambas: Editor toolbar is center aligned instead of left aligned Message-ID: <0-6813199134517018827-1407575767820651975-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 191 by zachsmit... at ...626...: Editor toolbar is center aligned instead of left aligned http://code.google.com/p/gambas/issues/detail?id=191 1) Describe the problem. The IDE editor toolbar was at one time left aligned just like the form toolbar. Now, the editor toolbar is center aligned. I'm not sure if this change was intentional. See images below. 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): [System] OperatingSystem=Linux Kernel=3.1.7-1-ARCH Architecture=x86_64 Memory=4052020 kB DistributionVendor=arch DistributionRelease=n/a Desktop=Xfce [Gambas 3] Version=3.0.0 Path=/usr/bin/gbx3 [Libraries] Qt4=libQtCore.so.4.8.0 GTK+=libgtk-x11-2.0.so.0.2400.8 Attachments: form_toolbar.png 10.1 KB editor_toolbar.png 13.6 KB From gambas at ...2524... Thu Jan 12 05:46:55 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 12 Jan 2012 04:46:55 +0000 Subject: [Gambas-user] Issue 189 in gambas: gambas3: postgresql connection password issue at runtime In-Reply-To: <0-6813199134517018827-12835994645982421519-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-12835994645982421519-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-12835994645982421519-gambas=googlecode.com@...2524...> Updates: Status: NeedsInfo Labels: -Version Version-TRUNK Comment #1 on issue 189 by benoit.m... at ...626...: gambas3: postgresql connection password issue at runtime http://code.google.com/p/gambas/issues/detail?id=189 You apparently have a compilation problem. Please provide the full output of ./configure / make / make install. From gambas at ...2524... Thu Jan 12 05:55:58 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 12 Jan 2012 04:55:58 +0000 Subject: [Gambas-user] Issue 188 in gambas: Creating a new directory in the data project data causes a seg. fault In-Reply-To: <0-6813199134517018827-7699354405385977273-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-7699354405385977273-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-7699354405385977273-gambas=googlecode.com@...2524...> Updates: Status: NeedsInfo Labels: -Version Version-3.0.0 Comment #1 on issue 188 by benoit.m... at ...626...: Creating a new directory in the data project data causes a seg. fault http://code.google.com/p/gambas/issues/detail?id=188 I don't have a segfault. Just a warning printed by the IDE. Can you give more details? Can you send a project that reproduces the crash? Can you run the IDE inside valgrind as explained on the website? From gambas at ...2524... Thu Jan 12 06:26:07 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 12 Jan 2012 05:26:07 +0000 Subject: [Gambas-user] Issue 191 in gambas: Editor toolbar is center aligned instead of left aligned In-Reply-To: <0-6813199134517018827-1407575767820651975-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-1407575767820651975-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-1407575767820651975-gambas=googlecode.com@...2524...> Updates: Status: NeedsInfo Labels: -Version Version-3.0.0 Comment #1 on issue 191 by benoit.m... at ...626...: Editor toolbar is center aligned instead of left aligned http://code.google.com/p/gambas/issues/detail?id=191 Can you clik on the toolbar with the right mouse button, choose "Configure", and then click on the "Reset" button to reset the toolbar configuration? Does it solve your problem? From gambas at ...2524... Thu Jan 12 06:30:10 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 12 Jan 2012 05:30:10 +0000 Subject: [Gambas-user] Issue 190 in gambas: Crash with OpenGL projects In-Reply-To: <0-6813199134517018827-729842094719205194-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-729842094719205194-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-729842094719205194-gambas=googlecode.com@...2524...> Updates: Status: NeedsInfo Labels: -Version Version-TRUNK Comment #1 on issue 190 by benoit.m... at ...626...: Crash with OpenGL projects http://code.google.com/p/gambas/issues/detail?id=190 It works perfectly there... Can you provide the full output of your compilation process? Can you run the project inside gdb and at crash, run that inside gdb: (gdb) p DEBUG_get_current_position() and send me the result? From gambas at ...1... Thu Jan 12 06:34:59 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Thu, 12 Jan 2012 06:34:59 +0100 Subject: [Gambas-user] Upgraded to 3.0.0, Serial port example no longer works In-Reply-To: <4F08DE3D.5040100@...626...> References: <4F08DE3D.5040100@...626...> Message-ID: <4F0E7103.1060103@...1...> Le 08/01/2012 01:07, pf a ?crit : > Hi > > I upgraded to 3.0.0 > > The serial port example doesnt work anymore. > When i get input on the serial port i stops with an error. > > Public Sub SPort_Read() > Dim s As String > Read #Sport, s, Lof(Sport) ' At this line i get an > error saying: End of file in FSerialPort:53 > TextArea1.Text = TextArea1.Text& s > End > > > Christer > Do you mean that the same example runs correctly with Gambas 2 on the same system ? -- Beno?t Minisini From gambas at ...1... Thu Jan 12 06:36:27 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Thu, 12 Jan 2012 06:36:27 +0100 Subject: [Gambas-user] Gambas3: ScrollArea doesn't scroll In-Reply-To: <4F0BE664.3050302@...221...> References: <4F0AA09B.20909@...221...> <4F0AD4BF.8050801@...1...> <4F0AD87E.1060108@...221...> <4F0ADFE6.1080106@...1...> <4F0BE664.3050302@...221...> Message-ID: <4F0E715B.5080600@...1...> Le 10/01/2012 08:19, Rolf-Werner Eilert a ?crit : > Am 09.01.2012 13:39, schrieb Beno?t Minisini: >>> >>> Ok, I think I understand: With the help of ScrollX and ScrollY I have to >>> decide at which coordinate within my large drawing I start to draw to >>> 1,1 on the DrawingArea? >>> >>> Rolf >>> >> >> Yes. If you don't care with drawing everything at each draw event, it is >> just a matter of translating the coordinate system with Draw.Translate(). >> > > Last evening I found that with Gambas3 under KDE nothing is shown in > ScrollArea and DrawingArea, the areas just stay cleared, but no error > occurs. When I switch them cached = TRUE it will crash with Sig #11 > after some drawings, but the IDE doesn't crash. Under LXDE everything > works flawlessly. > > Rolf > Which graphics system is configured for your Qt library: 'X11', 'Raster' or 'OpenGL'? -- Beno?t Minisini From gambas at ...1... Thu Jan 12 07:26:09 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Thu, 12 Jan 2012 07:26:09 +0100 Subject: [Gambas-user] Sqlite3 bug ? In-Reply-To: <4F0BCD06.4050104@...169...> References: <4F0BCD06.4050104@...169...> Message-ID: <4F0E7D01.2000507@...1...> Le 10/01/2012 06:30, Shane Powell a ?crit : > > seems my last post was cut off > > > not sure if this is a bug but when i access this database i get a copy of > pictures that should not be there ie: in the program attached i have > 6 records the 1st has a picture the 2nd and 3rd have no pictures but i > get the data from the 1st record see program > > using latest trunk version > > The bug should have been fixed in revision #4397. Regards, -- Beno?t Minisini From gambas at ...2524... Thu Jan 12 07:28:42 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 12 Jan 2012 06:28:42 +0000 Subject: [Gambas-user] Issue 130 in gambas: Undo / Redo in the form editor In-Reply-To: <2-6813199134517018827-13458801535548182978-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-13458801535548182978-gambas=googlecode.com@...2524...> <0-6813199134517018827-13458801535548182978-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-13458801535548182978-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #3 on issue 130 by benoit.m... at ...626...: Undo / Redo in the form editor http://code.google.com/p/gambas/issues/detail?id=130 (No comment was entered for this change.) From eilert-sprachen at ...221... Thu Jan 12 08:48:41 2012 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Thu, 12 Jan 2012 08:48:41 +0100 Subject: [Gambas-user] Gambas3: ScrollArea doesn't scroll In-Reply-To: <4F0E715B.5080600@...1...> References: <4F0AA09B.20909@...221...> <4F0AD4BF.8050801@...1...> <4F0AD87E.1060108@...221...> <4F0ADFE6.1080106@...1...> <4F0BE664.3050302@...221...> <4F0E715B.5080600@...1...> Message-ID: <4F0E9059.2010309@...221...> Am 12.01.2012 06:36, schrieb Beno?t Minisini: > Le 10/01/2012 08:19, Rolf-Werner Eilert a ?crit : >> Am 09.01.2012 13:39, schrieb Beno?t Minisini: >>>> >>>> Ok, I think I understand: With the help of ScrollX and ScrollY I have to >>>> decide at which coordinate within my large drawing I start to draw to >>>> 1,1 on the DrawingArea? >>>> >>>> Rolf >>>> >>> >>> Yes. If you don't care with drawing everything at each draw event, it is >>> just a matter of translating the coordinate system with Draw.Translate(). >>> >> >> Last evening I found that with Gambas3 under KDE nothing is shown in >> ScrollArea and DrawingArea, the areas just stay cleared, but no error >> occurs. When I switch them cached = TRUE it will crash with Sig #11 >> after some drawings, but the IDE doesn't crash. Under LXDE everything >> works flawlessly. >> >> Rolf >> > > Which graphics system is configured for your Qt library: 'X11', 'Raster' > or 'OpenGL'? > Hmmm - before I go searching for an answer: Where can I verify that? Rolf From gambas.fr at ...626... Thu Jan 12 09:56:08 2012 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 12 Jan 2012 09:56:08 +0100 Subject: [Gambas-user] Another basics In-Reply-To: References: <4F06E9B1.2040402@...626...> <33098567.post@...1379...> Message-ID: Great :-) From gambas at ...2524... Thu Jan 12 10:12:31 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 12 Jan 2012 09:12:31 +0000 Subject: [Gambas-user] Issue 189 in gambas: gambas3: postgresql connection password issue at runtime In-Reply-To: <1-6813199134517018827-12835994645982421519-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-12835994645982421519-gambas=googlecode.com@...2524...> <0-6813199134517018827-12835994645982421519-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-12835994645982421519-gambas=googlecode.com@...2524...> Comment #2 on issue 189 by marcobra... at ...626...: gambas3: postgresql connection password issue at runtime http://code.google.com/p/gambas/issues/detail?id=189 Run... ( ./configure -C; make; sudo make install ) > output.txt 2>&1 in attach output.txt Attachments: output.txt 338 KB From gambas at ...2524... Thu Jan 12 11:06:02 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 12 Jan 2012 10:06:02 +0000 Subject: [Gambas-user] Issue 189 in gambas: gambas3: postgresql connection password issue at runtime In-Reply-To: <2-6813199134517018827-12835994645982421519-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-12835994645982421519-gambas=googlecode.com@...2524...> <0-6813199134517018827-12835994645982421519-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-12835994645982421519-gambas=googlecode.com@...2524...> Comment #3 on issue 189 by marcobra... at ...626...: gambas3: postgresql connection password issue at runtime http://code.google.com/p/gambas/issues/detail?id=189 Benoit seems good now i supposed recompile dress my issue... Many thanks From gambas at ...2524... Thu Jan 12 11:55:21 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 12 Jan 2012 10:55:21 +0000 Subject: [Gambas-user] Issue 192 in gambas: SQLite3 Exec of a 'Select' statement returns too many rows Message-ID: <0-6813199134517018827-4107020696536388556-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 192 by john.aar... at ...626...: SQLite3 Exec of a 'Select' statement returns too many rows http://code.google.com/p/gambas/issues/detail?id=192 Problem with Result object in that SQLite3 Exec of a 'Select' statement returns too many rows. Version: TRUNK or BRANCHES/2.0 or 2.22.0 Revision: r1234 (if you use a development version) Operating system: Linux Distribution: Ubuntu 10.04 Architecture: x86 GUI component: GTK+ (i.e. default) Desktop used: Gnome I'm using Ubuntu 10.04 which uses SQLite3 version 3.6.22. I'm using Gambas 2.22. I've created a database one of whose tables is called country with definition of: Create Table country (_id Integer Primary Key AutoIncrement, country Text Not Null); When I run code: PUBLIC ResultCountry AS Result PUBLIC SUB SelectCountry() DIM query AS String query = "Select * From country" ResultCountry = DatabaseConnection.Exec(query) PRINT "Count = " & ResultCountry.Count FOR EACH ResultCountry PRINT ResultCountry!_id, ResultCountry!country NEXT CATCH Error.Raise("Select database country table records error
Error: " & DConv(Error.Text)) END I get in Console: Count = 2 1 France 2 Great Britain 4 5 6France 5 6Great Britain The above looks contradictory in that it shows a count of 2 rows but 'ResultCountry' contains 7 rows some of which have a duplicate primary key! SQLite Manager & SQLite database browser both show that the table only contains 2 records i.e.: 1 France 2 Great Britain I've even dropped & recreated the table but with the same result. Project & database attached. PS I found out about this because in subsequent code (which called the above SUB and used the resulting 'ResultCountry'), I had a runtime error of 'Not an object' and I started putting in print statements to find out the cause. Attachments: JewishHeritage.tar.gz 8.2 KB JewishHeritage.db 8.0 KB From gambas at ...2524... Thu Jan 12 11:59:23 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 12 Jan 2012 10:59:23 +0000 Subject: [Gambas-user] Issue 192 in gambas: SQLite3 Exec of a 'Select' statement returns too many rows In-Reply-To: <0-6813199134517018827-4107020696536388556-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-4107020696536388556-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-4107020696536388556-gambas=googlecode.com@...2524...> Comment #1 on issue 192 by john.aar... at ...626...: SQLite3 Exec of a 'Select' statement returns too many rows http://code.google.com/p/gambas/issues/detail?id=192 I forgot to enter the Gambas version as 2.22 (i.e. I left in the information relating to the development version). From eilert-sprachen at ...221... Thu Jan 12 12:18:12 2012 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Thu, 12 Jan 2012 12:18:12 +0100 Subject: [Gambas-user] What to use instead of CInt Message-ID: <4F0EC174.5030706@...221...> I remember having read that in Gambas3 there is no CInt etc. any longer. What do you recommend to use instead? And what do I use instead of CStr? Rolf From rmorgan62 at ...626... Thu Jan 12 14:30:39 2012 From: rmorgan62 at ...626... (Randall Morgan) Date: Thu, 12 Jan 2012 05:30:39 -0800 Subject: [Gambas-user] What to use instead of CInt In-Reply-To: <4F0EC174.5030706@...221...> References: <4F0EC174.5030706@...221...> Message-ID: I believe CInt() and CStr() are still part of Gambas 3. They seem to work fine in my programs. On Thu, Jan 12, 2012 at 3:18 AM, Rolf-Werner Eilert < eilert-sprachen at ...221...> wrote: > I remember having read that in Gambas3 there is no CInt etc. any longer. > > What do you recommend to use instead? And what do I use instead of CStr? > > Rolf > > > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Mar 27 - Feb 2 > Save $400 by Jan. 27 > Register now! > http://p.sf.net/sfu/rsa-sfdev2dev2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- If you ask me if it can be done. The answer is YES, it can always be done. The correct questions however are... What will it cost, and how long will it take? From gambas at ...2524... Thu Jan 12 17:01:35 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 12 Jan 2012 16:01:35 +0000 Subject: [Gambas-user] Issue 190 in gambas: Crash with OpenGL projects In-Reply-To: <1-6813199134517018827-729842094719205194-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-729842094719205194-gambas=googlecode.com@...2524...> <0-6813199134517018827-729842094719205194-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-729842094719205194-gambas=googlecode.com@...2524...> Comment #2 on issue 190 by jussi.la... at ...626...: Crash with OpenGL projects http://code.google.com/p/gambas/issues/detail?id=190 See compile.log for normal compilation. And gbxcomp.log for debug compilation of gbx3. ( make "CFLAGS=-O0 -g" "CXXFLAGS=-O0 -g" && sudo make install ) > ~/Desktop/gbxcomp.log 2>&1 From compile.log, I spotted this "gbi3: warning: component gb.qt4 not found"!? However gb.qt4 can be selected from IDE component list, and it works perfectly. Starting program: /usr/local/bin/gbx3 [Thread debugging using libthread_db enabled] [New Thread 0x7fffee84f700 (LWP 24094)] Program received signal SIGSEGV, Segmentation fault. 0x0000000000000000 in ?? () (gdb) p DEBUG_get_current_position() $1 = 0x67d0c0 "CTunnel.tunnelAfficher.122" (gdb) bt #0 0x0000000000000000 in ?? () #1 0x00007ffff196ffe0 in ?? () from /usr/lib/nvidia-current/libnvidia-glcore.so.280.13 #2 0x000000000041035d in EXEC_native_quick () at gbx_exec.c:1084 #3 0x0000000000410213 in EXEC_native_check (defined=1 '\001') at gbx_exec.c:1031 #4 0x0000000000455aeb in EXEC_loop () at gbx_exec_loop.c:993 #5 0x000000000040f860 in EXEC_function_loop () at gbx_exec.c:859 #6 0x000000000040f7b1 in EXEC_function_real () at gbx_exec.c:846 #7 0x000000000041214a in EXEC_public_desc (class=0x6b5348, object=0x6b5348, desc=0x6f44a8, nparam=0) at gbx_exec.c:1497 #8 0x00000000004319e4 in raise_event (observer=0x6b5348, object=0x7023a8, func_id=1, nparam=0) at gbx_api.c:534 #9 0x0000000000432004 in GB_Raise (object=0x7023a8, event_id=11, nparam=0) at gbx_api.c:655 #10 0x00007ffff4ce4e21 in Update (this=0x702450) at Cwindow.cpp:339 #11 myWin::Update (this=0x702450) at Cwindow.cpp:309 #12 0x00007ffff4ce0211 in SDLapplication::ManageEvents (this=, no_input=false) at SDLapp.cpp:189 #13 0x00007ffff4ce5085 in my_loop () at main.cpp:146 #14 0x000000000043e7d7 in main (argc=1, argv=0x7fffffffe278) at gbx.c:389 Attachments: compilelogs.tar.gz 47.3 KB From jussi.lahtinen at ...626... Thu Jan 12 17:16:45 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 12 Jan 2012 18:16:45 +0200 Subject: [Gambas-user] What to use instead of CInt In-Reply-To: <4F0EC174.5030706@...221...> References: <4F0EC174.5030706@...221...> Message-ID: Maybe you mix them up with IsString and IsInteger? IsString is removed and IsInteger just changed it's behaviour from some development phase... Jussi On Thu, Jan 12, 2012 at 13:18, Rolf-Werner Eilert < eilert-sprachen at ...221...> wrote: > I remember having read that in Gambas3 there is no CInt etc. any longer. > > What do you recommend to use instead? And what do I use instead of CStr? > > Rolf > > > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Mar 27 - Feb 2 > Save $400 by Jan. 27 > Register now! > http://p.sf.net/sfu/rsa-sfdev2dev2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From eilert-sprachen at ...221... Thu Jan 12 17:26:02 2012 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Thu, 12 Jan 2012 17:26:02 +0100 Subject: [Gambas-user] What to use instead of CInt In-Reply-To: References: <4F0EC174.5030706@...221...> Message-ID: <4F0F099A.90308@...221...> Ok, that's possible... :-) Thank you! Rolf Am 12.01.2012 17:16, schrieb Jussi Lahtinen: > Maybe you mix them up with IsString and IsInteger? > IsString is removed and IsInteger just changed it's behaviour from some > development phase... > > Jussi > > > > > On Thu, Jan 12, 2012 at 13:18, Rolf-Werner Eilert< > eilert-sprachen at ...221...> wrote: > >> I remember having read that in Gambas3 there is no CInt etc. any longer. >> >> What do you recommend to use instead? And what do I use instead of CStr? >> >> Rolf >> >> >> ------------------------------------------------------------------------------ >> RSA(R) Conference 2012 >> Mar 27 - Feb 2 >> Save $400 by Jan. 27 >> Register now! >> http://p.sf.net/sfu/rsa-sfdev2dev2 >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Mar 27 - Feb 2 > Save $400 by Jan. 27 > Register now! > http://p.sf.net/sfu/rsa-sfdev2dev2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...2524... Thu Jan 12 17:26:47 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 12 Jan 2012 16:26:47 +0000 Subject: [Gambas-user] Issue 190 in gambas: Crash with OpenGL projects In-Reply-To: <2-6813199134517018827-729842094719205194-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-729842094719205194-gambas=googlecode.com@...2524...> <0-6813199134517018827-729842094719205194-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-729842094719205194-gambas=googlecode.com@...2524...> Comment #3 on issue 190 by jussi.la... at ...626...: Crash with OpenGL projects http://code.google.com/p/gambas/issues/detail?id=190 "CTunnel.tunnelAfficher.122" points to "gl.end()" I had extra newline in sources from trying to debug it. From sholzy2010 at ...43... Thu Jan 12 23:03:40 2012 From: sholzy2010 at ...43... (No Way) Date: Thu, 12 Jan 2012 14:03:40 -0800 (PST) Subject: [Gambas-user] Gambas-user Digest, Vol 68, Issue 21 In-Reply-To: Message-ID: <1326405820.71627.YahooMailClassic@...2762...> Thanks, Jorge! I'll give it a try. > > Message: 2 > Date: Wed, 11 Jan 2012 22:33:00 +0100 > From: Jorge Carri?n > Subject: Re: [Gambas-user] Foreign Keys on SQLite3 > To: mailing list for gambas users > Message-ID: > ??? > > Content-Type: text/plain; charset=ISO-8859-1 > > Yes it's posible. All that you have to do is > > myconnecsqlite3.Open() > myconnecsqlite3.Exec("PRAGMA foreign_keys = 1") > > and foreign keys is active for sqlite3. > > Regards > > > 2012/1/11 No Way > > > I've been searching for a way to create and use > foreign keys in Gambas 2 > > or Gambas 3. Is it possible to set foreign keys on a > SQLite3 db? If so, how? > > From gambas at ...2524... Fri Jan 13 01:16:45 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 13 Jan 2012 00:16:45 +0000 Subject: [Gambas-user] Issue 191 in gambas: Editor toolbar is center aligned instead of left aligned In-Reply-To: <1-6813199134517018827-1407575767820651975-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-1407575767820651975-gambas=googlecode.com@...2524...> <0-6813199134517018827-1407575767820651975-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-1407575767820651975-gambas=googlecode.com@...2524...> Comment #2 on issue 191 by zachsmit... at ...626...: Editor toolbar is center aligned instead of left aligned http://code.google.com/p/gambas/issues/detail?id=191 Yes, that fixed it. Thanks. From shanep1967 at ...169... Fri Jan 13 02:42:31 2012 From: shanep1967 at ...169... (Shane Powell) Date: Fri, 13 Jan 2012 12:42:31 +1100 Subject: [Gambas-user] Sqlite3 bug ? In-Reply-To: <4F0E7D01.2000507@...1...> References: <4F0BCD06.4050104@...169...> <4F0E7D01.2000507@...1...> Message-ID: <4F0F8C07.4010008@...169...> On 12/01/12 17:26, Beno?t Minisini wrote: > Le 10/01/2012 06:30, Shane Powell a ?crit : >> seems my last post was cut off >> >> >> not sure if this is a bug but when i access this database i get a copy of >> pictures that should not be there ie: in the program attached i have >> 6 records the 1st has a picture the 2nd and 3rd have no pictures but i >> get the data from the 1st record see program >> >> using latest trunk version >> >> > The bug should have been fixed in revision #4397. > > Regards, > Thanks Benoit From gambas at ...1... Fri Jan 13 09:05:02 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Fri, 13 Jan 2012 09:05:02 +0100 Subject: [Gambas-user] Running programs from terminal and by double clicking. In-Reply-To: References: <4F0652E4.4080908@...1...> <4F088715.3020900@...1...> Message-ID: <4F0FE5AE.1020601@...1...> Le 08/01/2012 18:24, Jussi Lahtinen a ?crit : > Example: > hProcess = Exec ["echo", "hello?"] For Input As "Process" > > In this case child process used to sent "hello?\n" to parent process, now > it will send "hello?\r\n". > > If you do this: > $ echo "hello?"> test.txt > > And open test.txt in hexeditor, you will see that only \n is really send to > output. > So, \r is unexpected to me. However I'm not saying this is wrong. > > Jussi > That should be fixed in revision #4398. However, I don't understand why that unexpected conversion didn't occur before. But hey... it is the past now. Regards, -- Beno?t Minisini From mohareve at ...626... Fri Jan 13 13:02:50 2012 From: mohareve at ...626... (M. Cs.) Date: Fri, 13 Jan 2012 13:02:50 +0100 Subject: [Gambas-user] Difficulties using Gambas 3 IDE Message-ID: It's quite difficult to use the new IDE: I'm designing a project using panels and Hboxes and Vboxes and other expanders, but it is almost impossible to determine which element I'm editing. The Property box is messing the names of the elements, after few settings done. After 5-6 settings I cannot distinguish whether I'm doing the setup of a proper element or not. The packager doesn't draws the external dependencies at all. Is this a number of bugs? From jussi.lahtinen at ...626... Fri Jan 13 15:10:54 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Fri, 13 Jan 2012 16:10:54 +0200 Subject: [Gambas-user] Running programs from terminal and by double clicking. In-Reply-To: <4F0FE5AE.1020601@...1...> References: <4F0652E4.4080908@...1...> <4F088715.3020900@...1...> <4F0FE5AE.1020601@...1...> Message-ID: > That should be fixed in revision #4398. > Confirmed, it is fixed now! Jussi From gambas at ...2524... Fri Jan 13 16:41:50 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 13 Jan 2012 15:41:50 +0000 Subject: [Gambas-user] Issue 192 in gambas: SQLite3 Exec of a 'Select' statement returns too many rows In-Reply-To: <1-6813199134517018827-4107020696536388556-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-4107020696536388556-gambas=googlecode.com@...2524...> <0-6813199134517018827-4107020696536388556-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-4107020696536388556-gambas=googlecode.com@...2524...> Comment #2 on issue 192 by john.aar... at ...626...: SQLite3 Exec of a 'Select' statement returns too many rows http://code.google.com/p/gambas/issues/detail?id=192 Please ignore (& remove?) this issue. I must have been sleeping when I thought I'd found a bug. What appear to be extra rows in the database table are due to PRINT statements that I put in the code in order to debug the cause of a runtime window popping up which said 'Not an object'. PS is it possible to add more information to this popup window e.g. line of code or its number? From vuott at ...325... Sat Jan 14 01:10:24 2012 From: vuott at ...325... (Ru Vuott) Date: Sat, 14 Jan 2012 00:10:24 +0000 (GMT) Subject: [Gambas-user] QPaintDevice: Cannot destroy paint device that is being painted In-Reply-To: <4EFBA0F1.6000106@...1...> Message-ID: <1326499824.9481.YahooMailClassic@...2695...> Hello Beno?t, using Paint (in Gambas-3), like: Dim h As Image h = h.Load("imago_mea.gif") paint.Begin(h) etc...etc... when I run program, console restores this message: << QPaintDevice: Cannot destroy paint device that is being painted >> ....what's that ? Regards Paolo From gambas at ...2524... Sat Jan 14 07:24:04 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 14 Jan 2012 06:24:04 +0000 Subject: [Gambas-user] Issue 192 in gambas: SQLite3 Exec of a 'Select' statement returns too many rows In-Reply-To: <2-6813199134517018827-4107020696536388556-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-4107020696536388556-gambas=googlecode.com@...2524...> <0-6813199134517018827-4107020696536388556-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-4107020696536388556-gambas=googlecode.com@...2524...> Updates: Status: Invalid Labels: -Version Version-2.22.0 Comment #3 on issue 192 by benoit.m... at ...626...: SQLite3 Exec of a 'Select' statement returns too many rows http://code.google.com/p/gambas/issues/detail?id=192 Can you elaborate. If you have a runtime error message, you should have a class name and a line number with it! From gambas at ...2524... Sat Jan 14 18:21:08 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 14 Jan 2012 17:21:08 +0000 Subject: [Gambas-user] Issue 192 in gambas: SQLite3 Exec of a 'Select' statement returns too many rows In-Reply-To: <3-6813199134517018827-4107020696536388556-gambas=googlecode.com@...2524...> References: <3-6813199134517018827-4107020696536388556-gambas=googlecode.com@...2524...> <0-6813199134517018827-4107020696536388556-gambas=googlecode.com@...2524...> Message-ID: <4-6813199134517018827-4107020696536388556-gambas=googlecode.com@...2524...> Comment #4 on issue 192 by john.aar... at ...626...: SQLite3 Exec of a 'Select' statement returns too many rows http://code.google.com/p/gambas/issues/detail?id=192 As I said in comment #2, please ignore & remove this issue. It was posted in error. From admhardsoft at ...253... Sun Jan 15 05:54:35 2012 From: admhardsoft at ...253... (=?iso-8859-1?Q?Tom=E1s_Rodriguez?=) Date: Sat, 14 Jan 2012 20:54:35 -0800 (PST) Subject: [Gambas-user] [SPAM] This Kit changed all my life... Message-ID: <1326603275.93331.androidMobile@...2764...>

those debt collectors called me off the hook I took my chances with this I needed a quick and easy solution.
http://www.widder-kaninchen.de/lastnews/23PaulBrown/ im finally back in the swing of things
this is the real deal!
bye!

From gambas at ...2524... Sun Jan 15 09:55:34 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 15 Jan 2012 08:55:34 +0000 Subject: [Gambas-user] Issue 182 in gambas: Rmdir should have an error code to report the deletion of a folder with content In-Reply-To: <1-6813199134517018827-14491615997377405895-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-14491615997377405895-gambas=googlecode.com@...2524...> <0-6813199134517018827-14491615997377405895-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-14491615997377405895-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #2 on issue 182 by benoit.m... at ...626...: Rmdir should have an error code to report the deletion of a folder with content http://code.google.com/p/gambas/issues/detail?id=182 Done in revision #4400. From gambas at ...2524... Sun Jan 15 09:59:35 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 15 Jan 2012 08:59:35 +0000 Subject: [Gambas-user] Issue 188 in gambas: Creating a new directory in the data project data causes a seg. fault In-Reply-To: <1-6813199134517018827-7699354405385977273-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-7699354405385977273-gambas=googlecode.com@...2524...> <0-6813199134517018827-7699354405385977273-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-7699354405385977273-gambas=googlecode.com@...2524...> Updates: Labels: -Type-Bug Type-Crash Comment #2 on issue 188 by benoit.m... at ...626...: Creating a new directory in the data project data causes a seg. fault http://code.google.com/p/gambas/issues/detail?id=188 (No comment was entered for this change.) From gambas at ...2524... Sun Jan 15 10:10:38 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 15 Jan 2012 09:10:38 +0000 Subject: [Gambas-user] Issue 42 in gambas: In Gambas3 (2.99.0), Line Input hangs up. In-Reply-To: <8-6813199134517018827-1841156127414826682-gambas=googlecode.com@...2524...> References: <8-6813199134517018827-1841156127414826682-gambas=googlecode.com@...2524...> <0-6813199134517018827-1841156127414826682-gambas=googlecode.com@...2524...> Message-ID: <9-6813199134517018827-1841156127414826682-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #9 on issue 42 by benoit.m... at ...626...: In Gambas3 (2.99.0), Line Input hangs up. http://code.google.com/p/gambas/issues/detail?id=42 Apparently it is fixed now. The IDE does not hang anymore. From gambas at ...2524... Sun Jan 15 10:14:38 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 15 Jan 2012 09:14:38 +0000 Subject: [Gambas-user] Issue 9 in gambas: expanding a treeview item does not move the internal cursor In-Reply-To: <1-6813199134517018827-7364263139078494543-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-7364263139078494543-gambas=googlecode.com@...2524...> <0-6813199134517018827-7364263139078494543-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-7364263139078494543-gambas=googlecode.com@...2524...> Updates: Status: WontFix Comment #2 on issue 9 by benoit.m... at ...626...: expanding a treeview item does not move the internal cursor http://code.google.com/p/gambas/issues/detail?id=9 No news from one year, I close the issue! From gambas at ...1... Sun Jan 15 11:24:24 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 15 Jan 2012 11:24:24 +0100 Subject: [Gambas-user] chmod? In-Reply-To: <20120106114747.13702b59l72d890z@...2757...> References: <4F064211.2020606@...20...> <20120106114747.13702b59l72d890z@...2757...> Message-ID: <4F12A958.1060401@...1...> Le 06/01/2012 01:47, bbruen at ...2308... a ?crit : > > Quoting tobias: > >> hi, >> >> i can't find any interface (except Extern or Exec) to chmod(2) in >> gambas. is there one? i think there should... >> >> regards, >> tobi > > I was going to say Stat.Perm but I had never realized that it is read only. > I agree that there should be one. > Bruce > In revision #4401, I added three new instructions: - CHMOD to change the file permissions. - CHOWN to change the file owner. - CHGRP to change the file group. Moreover, Stat.Auth is a new property that returns the file permissions as a string, using the same syntax as the CHMOD instruction. For more details, see the wiki. Regards, -- Beno?t Minisini From tobiasboe1 at ...20... Sun Jan 15 13:08:11 2012 From: tobiasboe1 at ...20... (tobias) Date: Sun, 15 Jan 2012 13:08:11 +0100 Subject: [Gambas-user] chmod? In-Reply-To: <4F12A958.1060401@...1...> References: <4F064211.2020606@...20...> <20120106114747.13702b59l72d890z@...2757...> <4F12A958.1060401@...1...> Message-ID: <4F12C1AB.4020106@...20...> Beno?t Minisini schrieb: > Le 06/01/2012 01:47, bbruen at ...2308... a ?crit : >> Quoting tobias: >> >>> hi, >>> >>> i can't find any interface (except Extern or Exec) to chmod(2) in >>> gambas. is there one? i think there should... >>> >>> regards, >>> tobi >> I was going to say Stat.Perm but I had never realized that it is read only. >> I agree that there should be one. >> Bruce >> > > In revision #4401, I added three new instructions: > > - CHMOD to change the file permissions. > - CHOWN to change the file owner. > - CHGRP to change the file group. > > Moreover, Stat.Auth is a new property that returns the file permissions > as a string, using the same syntax as the CHMOD instruction. > > For more details, see the wiki. > > Regards, > wow, great! (i some kind of finished my workaround class a few days ago but will be happy to use the new instructions then!) From jussi.lahtinen at ...626... Sun Jan 15 16:34:33 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 15 Jan 2012 17:34:33 +0200 Subject: [Gambas-user] chmod? In-Reply-To: <4F12A958.1060401@...1...> References: <4F064211.2020606@...20...> <20120106114747.13702b59l72d890z@...2757...> <4F12A958.1060401@...1...> Message-ID: Great! Are these new commands, IDE features, etc going out in stabile Gambas version any soon? Meaning are these example for version 3.1 or 4..? Jussi 2012/1/15 Beno?t Minisini > Le 06/01/2012 01:47, bbruen at ...2308... a ?crit : > > > > Quoting tobias: > > > >> hi, > >> > >> i can't find any interface (except Extern or Exec) to chmod(2) in > >> gambas. is there one? i think there should... > >> > >> regards, > >> tobi > > > > I was going to say Stat.Perm but I had never realized that it is read > only. > > I agree that there should be one. > > Bruce > > > > In revision #4401, I added three new instructions: > > - CHMOD to change the file permissions. > - CHOWN to change the file owner. > - CHGRP to change the file group. > > Moreover, Stat.Auth is a new property that returns the file permissions > as a string, using the same syntax as the CHMOD instruction. > > For more details, see the wiki. > > Regards, > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Mar 27 - Feb 2 > Save $400 by Jan. 27 > Register now! > http://p.sf.net/sfu/rsa-sfdev2dev2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From tobiasboe1 at ...20... Sun Jan 15 16:37:15 2012 From: tobiasboe1 at ...20... (tobias) Date: Sun, 15 Jan 2012 16:37:15 +0100 Subject: [Gambas-user] chmod? In-Reply-To: References: <4F064211.2020606@...20...> <20120106114747.13702b59l72d890z@...2757...> <4F12A958.1060401@...1...> Message-ID: <4F12F2AB.5070208@...20...> Jussi Lahtinen schrieb: > Great! > Are these new commands, IDE features, etc going out in stabile Gambas > version any soon? > Meaning are these example for version 3.1 or 4..? > > Jussi > > > > > 2012/1/15 Beno?t Minisini > >> Le 06/01/2012 01:47, bbruen at ...2308... a ?crit : >>> Quoting tobias: >>> >>>> hi, >>>> >>>> i can't find any interface (except Extern or Exec) to chmod(2) in >>>> gambas. is there one? i think there should... >>>> >>>> regards, >>>> tobi >>> I was going to say Stat.Perm but I had never realized that it is read >> only. >>> I agree that there should be one. >>> Bruce >>> >> In revision #4401, I added three new instructions: >> >> - CHMOD to change the file permissions. >> - CHOWN to change the file owner. >> - CHGRP to change the file group. >> >> Moreover, Stat.Auth is a new property that returns the file permissions >> as a string, using the same syntax as the CHMOD instruction. >> >> For more details, see the wiki. >> >> Regards, >> >> -- >> Beno?t Minisini >> >> they're listed as "Only in 3.1 version" in the doc. From jussi.lahtinen at ...626... Sun Jan 15 16:45:45 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 15 Jan 2012 17:45:45 +0200 Subject: [Gambas-user] chmod? In-Reply-To: <4F12F2AB.5070208@...20...> References: <4F064211.2020606@...20...> <20120106114747.13702b59l72d890z@...2757...> <4F12A958.1060401@...1...> <4F12F2AB.5070208@...20...> Message-ID: Oh yes... Thanks! Jussi On Sun, Jan 15, 2012 at 17:37, tobias wrote: > Jussi Lahtinen schrieb: > > Great! > > Are these new commands, IDE features, etc going out in stabile Gambas > > version any soon? > > Meaning are these example for version 3.1 or 4..? > > > > Jussi > > > > > > > > > > 2012/1/15 Beno?t Minisini > > > >> Le 06/01/2012 01:47, bbruen at ...2308... a ?crit : > >>> Quoting tobias: > >>> > >>>> hi, > >>>> > >>>> i can't find any interface (except Extern or Exec) to chmod(2) in > >>>> gambas. is there one? i think there should... > >>>> > >>>> regards, > >>>> tobi > >>> I was going to say Stat.Perm but I had never realized that it is read > >> only. > >>> I agree that there should be one. > >>> Bruce > >>> > >> In revision #4401, I added three new instructions: > >> > >> - CHMOD to change the file permissions. > >> - CHOWN to change the file owner. > >> - CHGRP to change the file group. > >> > >> Moreover, Stat.Auth is a new property that returns the file permissions > >> as a string, using the same syntax as the CHMOD instruction. > >> > >> For more details, see the wiki. > >> > >> Regards, > >> > >> -- > >> Beno?t Minisini > >> > >> > > they're listed as "Only in 3.1 version" in the doc. > > > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Mar 27 - Feb 2 > Save $400 by Jan. 27 > Register now! > http://p.sf.net/sfu/rsa-sfdev2dev2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...2524... Sun Jan 15 18:51:25 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 15 Jan 2012 17:51:25 +0000 Subject: [Gambas-user] Issue 193 in gambas: SQLite Foreign Key code not allowed Message-ID: <0-6813199134517018827-14671211105331585139-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 193 by john.aar... at ...626...: SQLite Foreign Key code not allowed http://code.google.com/p/gambas/issues/detail?id=193 I'm using SQLite 3.6.22. I've installed the gambas3-gb-db-sqlite3 package. I'm not able to specify a Foreign Key for a SQLite3 table (country 'linked' to city table) in Gambas code (though I can do it when running SQLite3 from Terminal). Code sample: DatabaseConnection.Exec("PRAGMA foreign_keys = 1") ' Check if the database has a country table If Not DatabaseConnection.Tables.Exist("country") Then Print "Database country table not found. Creating new country table" ' Add a country table to the database DatabaseConnection.Begin JHTable = DatabaseConnection.Tables.Add("country") With JHTable .Fields.Add("_id", db.Serial) ' id field as autoinc integer .Fields.Add("country", db.String) ' country field as unlimited string .PrimaryKey = ["_id"] .Update() End With DatabaseConnection.Commit End If If Not DatabaseConnection.Tables.Exist("city") Then Print "Database city table not found. Creating new city table" ' Add a city table to the database DatabaseConnection.Begin JHTable = DatabaseConnection.Tables.Add("city") With JHTable .Fields.Add("_id", db.Serial) '_id field as autoinc integer .Fields.Add("city", db.String) 'city field as unlimited string .Fields.Add("country_id", db.Integer) 'country_id field as integer" .PrimaryKey = ["_id"] .ForeignKey("country_id", "country", "_id", "CASCADE", "CASCADE") ' Foreign Key not working in Gambas2 .Update() End With DatabaseConnection.Commit The problem is that the Gambas3 runtime gives a popup stating "Unknown symbol 'ForeignKey' in class 'Table'". In Gambas2, it gave a compilation error on the ForeignKey line. For both Gambas2 & Gambas3, I changed the code to remove the With &End With statements and explicitly coded JHTable before each 'Fields.' with the result that a ForeignKey selectio option was not given though a PrimaryKey selection option was given. Version: 2.22 & 3.0 Operating system: Linux / FreeBSD Distribution: Ubuntu 10.04 Architecture: x86 GUI component: GTK+ (as I haven't specified the GUI) Desktop used: Gnome2 Project attached - relevant code is in ModuleDatabase. Database (after running code attached). Attachments: JewishHeritage.tar.gz 22.9 KB JewishHeritage.db 3.0 KB From gambas at ...2524... Sun Jan 15 21:55:32 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 15 Jan 2012 20:55:32 +0000 Subject: [Gambas-user] Issue 193 in gambas: SQLite Foreign Key code not allowed In-Reply-To: <0-6813199134517018827-14671211105331585139-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-14671211105331585139-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-14671211105331585139-gambas=googlecode.com@...2524...> Updates: Labels: -Version -Type-Bug -Priority-Medium Version-TRUNK Type-Enhancement Priority-Low Comment #1 on issue 193 by benoit.m... at ...626...: SQLite Foreign Key code not allowed http://code.google.com/p/gambas/issues/detail?id=193 There is no support for SQL foreign keys in Gambas gb.db component. To use them, you must create your table with SQL requests sent by the Exec() method. Or maybe create your table with Gambas methods, and then use "ALTER TABLE" to add the foreign keys. From gambas at ...2524... Sun Jan 15 21:59:33 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 15 Jan 2012 20:59:33 +0000 Subject: [Gambas-user] Issue 191 in gambas: Editor toolbar is center aligned instead of left aligned In-Reply-To: <2-6813199134517018827-1407575767820651975-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-1407575767820651975-gambas=googlecode.com@...2524...> <0-6813199134517018827-1407575767820651975-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-1407575767820651975-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #3 on issue 191 by benoit.m... at ...626...: Editor toolbar is center aligned instead of left aligned http://code.google.com/p/gambas/issues/detail?id=191 (No comment was entered for this change.) From kevinfishburne at ...1887... Mon Jan 16 07:43:40 2012 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Mon, 16 Jan 2012 01:43:40 -0500 Subject: [Gambas-user] gb3: "Mathematic error" Message-ID: <4F13C71C.8000608@...1887...> Why would I get the runtime error "Mathematic error" in this function: Public Function Distance(x1 As Single, y1 As Single, x2 As Single, y2 As Single) As Single Return Abs(Sqr((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1))) End The values of the variables are: ?x2 & " " & x1 & " " & x2 & " " & x1 & " " & y2 & " " & y1 & " " & y2 & " " & y1 174.248779296875 2.40799128109576E-41 174.248779296875 2.40799128109576E-41 146.759170532227 7.19552647834628E+27 146.759170532227 7.19552647834628E+27 Using GAMBAS 3, revision unknown. I'm recompiling now to see if it makes a difference, but please let me know what this error means and what could cause it. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From kevinfishburne at ...1887... Mon Jan 16 08:05:38 2012 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Mon, 16 Jan 2012 02:05:38 -0500 Subject: [Gambas-user] gb3: "Mathematic error" In-Reply-To: <4F13C71C.8000608@...1887...> References: <4F13C71C.8000608@...1887...> Message-ID: <4F13CC42.6010402@...1887...> On 01/16/2012 01:43 AM, Kevin Fishburne wrote: > Why would I get the runtime error "Mathematic error" in this function: > > Public Function Distance(x1 As Single, y1 As Single, x2 As Single, y2 As > Single) As Single > Return Abs(Sqr((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1))) > End > > The values of the variables are: > > ?x2& " "& x1& " "& x2& " "& x1& " "& y2& " "& y1& " "& y2& > " "& y1 > > 174.248779296875 2.40799128109576E-41 174.248779296875 > 2.40799128109576E-41 146.759170532227 7.19552647834628E+27 > 146.759170532227 7.19552647834628E+27 > > Using GAMBAS 3, revision unknown. I'm recompiling now to see if it makes > a difference, but please let me know what this error means and what > could cause it. > I changed the first line (old one) to the second: 'Return Abs(Sqr((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1))) Return Sqr((x2 - x1) ^ 2 + (y2 - y1) ^ 2) and it gives me no problems. Seems like I really screwed up the distance calculation, but even so this may be a bug so hopefully I've contributed to a solution. Still curious of course as to what the error might mean. Maybe it should just say "You suck at math." :) -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From gambas at ...1... Mon Jan 16 08:33:37 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 16 Jan 2012 08:33:37 +0100 Subject: [Gambas-user] gb3: "Mathematic error" In-Reply-To: <4F13CC42.6010402@...1887...> References: <4F13C71C.8000608@...1887...> <4F13CC42.6010402@...1887...> Message-ID: <4F13D2D1.7090508@...1...> Le 16/01/2012 08:05, Kevin Fishburne a ?crit : > On 01/16/2012 01:43 AM, Kevin Fishburne wrote: >> Why would I get the runtime error "Mathematic error" in this function: >> >> Public Function Distance(x1 As Single, y1 As Single, x2 As Single, y2 As >> Single) As Single >> Return Abs(Sqr((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1))) >> End >> >> The values of the variables are: >> >> ?x2& ""& x1& ""& x2& ""& x1& ""& y2& ""& y1& ""& y2& >> ""& y1 >> >> 174.248779296875 2.40799128109576E-41 174.248779296875 >> 2.40799128109576E-41 146.759170532227 7.19552647834628E+27 >> 146.759170532227 7.19552647834628E+27 >> >> Using GAMBAS 3, revision unknown. I'm recompiling now to see if it makes >> a difference, but please let me know what this error means and what >> could cause it. >> > > I changed the first line (old one) to the second: > > 'Return Abs(Sqr((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1))) > Return Sqr((x2 - x1) ^ 2 + (y2 - y1) ^ 2) > > and it gives me no problems. Seems like I really screwed up the distance > calculation, but even so this may be a bug so hopefully I've contributed > to a solution. Still curious of course as to what the error might mean. > Maybe it should just say "You suck at math." :) > You get a mathematic error because of an overflow. (y2 - y1) * (y2 - y1) cannot be expressed by a Single in your example. The "^" operator deals with Float internally, so you don't get an error. Anyway, to compute a distance, you can use the Hyp() or the Mag() function. It will be faster. Regards, -- Beno?t Minisini From admhardsoft at ...253... Mon Jan 16 13:05:12 2012 From: admhardsoft at ...253... (=?iso-8859-1?Q?Tom=E1s_Rodriguez?=) Date: Mon, 16 Jan 2012 04:05:12 -0800 (PST) Subject: [Gambas-user] no economic problems since i started it... Message-ID: <1326715512.14248.androidMobile@...2733...>

hello!
my credit was slowly starting to crumble I consider myself lucky to have found this my options were fading fast...
http://Reteta-Ta.ro/newsjournal/30NeilWalsh/ everything seems to have worked in my favor
just trying to help out a friend!
see you later

From gambas at ...2524... Mon Jan 16 16:18:00 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 16 Jan 2012 15:18:00 +0000 Subject: [Gambas-user] Issue 193 in gambas: SQLite Foreign Key code not allowed In-Reply-To: <1-6813199134517018827-14671211105331585139-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-14671211105331585139-gambas=googlecode.com@...2524...> <0-6813199134517018827-14671211105331585139-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-14671211105331585139-gambas=googlecode.com@...2524...> Comment #2 on issue 193 by john.aar... at ...626...: SQLite Foreign Key code not allowed http://code.google.com/p/gambas/issues/detail?id=193 This is is a newbie question but is there no support for Foreign Keys in gb.sqlite3 component? I didn't realise that a table could be created using the Exec() method. I've done that (including the Foreign Key clause) and it worked! PS Unfortunately, sqlite3 does not allow "ALTER TABLE ADD CONSTRAINT" to add the foreign key: I've tried it & the statement was rejected with a syntax error. Further confirmation can be found on: http://stackoverflow.com/questions/1884818/how-do-i-add-a-foreign-key-to-an-existing-sqlite-3-6-21-table From jussi.lahtinen at ...626... Mon Jan 16 17:45:10 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 16 Jan 2012 18:45:10 +0200 Subject: [Gambas-user] Question about Object.Size and object symbol enumeration Message-ID: Hi! Seems like function Object.SizeOf() always returns numbers dividable by 8. Is this because objects are allocated as 64 bit chunks in 64 bit OS, or is this bug? I used following code: Dim hTesting As New CTest Print Object.SizeOf(hTesting) CTest contains only public test variables like: Public Test As Byte Public Test2 As Byte Other question. Is it possible to enumerate constants from object? I have big exported class which contains only constants, and I would like to handle them automatically in another program. Jussi From gambas at ...2524... Mon Jan 16 17:50:39 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 16 Jan 2012 16:50:39 +0000 Subject: [Gambas-user] Issue 181 in gambas: Crash with certain menu caption. In-Reply-To: <2-6813199134517018827-9691118861731232159-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-9691118861731232159-gambas=googlecode.com@...2524...> <0-6813199134517018827-9691118861731232159-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-9691118861731232159-gambas=googlecode.com@...2524...> Comment #3 on issue 181 by jussi.la... at ...626...: Crash with certain menu caption. http://code.google.com/p/gambas/issues/detail?id=181 (gdb) run Starting program: /usr/local/bin/gbx3 [Thread debugging using libthread_db enabled] [New Thread 0x7fffedebb700 (LWP 32474)] Program received signal SIGSEGV, Segmentation fault. 0x00007ffff5108a85 in g_type_name () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 (gdb) bt #0 0x00007ffff5108a85 in g_type_name () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 #1 0x00007ffff6094a88 in gtk_rc_get_style_by_paths () from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0 #2 0x00007ffff67c0310 in gt_get_style (name=0x7ffff67f95b9 "GtkLayout", type=-402646016) at gtools.cpp:1155 #3 0x00007ffff67c620d in gDesktop::bgColor () at gdesktop.cpp:132 #4 0x00007ffff67da2f7 in gMenu::updateColor (win=0x7a5f80) at gmenu.cpp:810 #5 0x00007ffff67dd14f in gMainWindow::embedMenuBar (this=0x7a5f80, border=0x7a7010) at gmainwindow.cpp:1389 #6 0x00007ffff67da2bc in gMenu::gMenu (this=0x7b14e0, par=0x7a5f80, hidden=false) at gmenu.cpp:383 #7 0x00007ffff67eedf1 in CMENU_new (_object=0x7afb78, _param=) at CMenu.cpp:119 #8 0x000000000040a745 in EXEC_native () at gbx_exec.c:1239 #9 0x000000000040aeb6 in EXEC_special (special=, class=, object=, nparam=1, drop=1 '\001') at gbx_exec.c:1555 #10 0x000000000040b058 in EXEC_special_inheritance (special=0, class=0x67c058, object=0x7afb78, nparam=1, drop=1 '\001') at gbx_exec.c:1699 #11 0x000000000040b587 in EXEC_new () at gbx_exec.c:1911 From tobiasboe1 at ...20... Mon Jan 16 18:04:16 2012 From: tobiasboe1 at ...20... (tobias) Date: Mon, 16 Jan 2012 18:04:16 +0100 Subject: [Gambas-user] Question about Object.Size and object symbol enumeration In-Reply-To: References: Message-ID: <4F145890.8030800@...20...> hi, Jussi Lahtinen wrote: > Hi! > Seems like function Object.SizeOf() always returns numbers dividable by 8. > Is this because objects are allocated as 64 bit chunks in 64 bit OS, or is > this bug? > > I used following code: > > Dim hTesting As New CTest > > Print Object.SizeOf(hTesting) > > > CTest contains only public test variables like: > Public Test As Byte > Public Test2 As Byte > > > Other question. > Is it possible to enumerate constants from object? > I have big exported class which contains only constants, > and I would like to handle them automatically in another program. > i think, i'm not the man to answer your first question (maybe it is some alignment/padding thing). but for the second question: Class.Symbols and Class[sSymbol] will do it: DIM sSym AS String DIM hCls AS Class ' let hObj be the instance of your big exported class (btw, you don't ' need to have an instance for this, i think...) hCls = Object.Class(hObj) FOR EACH sSym IN Classes[hCls.Name].Symbols IF hCls[sSym].Kind = Class.Constant THEN PRINT "constant: "; sSym; " = "; hCls[sSym].Value ENDIF NEXT regards, tobi From gambas at ...1... Mon Jan 16 18:19:08 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 16 Jan 2012 18:19:08 +0100 Subject: [Gambas-user] Question about Object.Size and object symbol enumeration In-Reply-To: References: Message-ID: <4F145C0C.4000703@...1...> Le 16/01/2012 17:45, Jussi Lahtinen a ?crit : > Hi! > Seems like function Object.SizeOf() always returns numbers dividable by 8. > Is this because objects are allocated as 64 bit chunks in 64 bit OS, or is > this bug? > Object sizes are always padded so that their size is a multiple of 8 bytes. What's the problem with that? -- Beno?t Minisini From jussi.lahtinen at ...626... Mon Jan 16 18:19:33 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 16 Jan 2012 19:19:33 +0200 Subject: [Gambas-user] Question about Object.Size and object symbol enumeration In-Reply-To: <4F145890.8030800@...20...> References: <4F145890.8030800@...20...> Message-ID: > > i think, i'm not the man to answer your first question (maybe it is some > alignment/padding thing). > No no it's about memory size... > but for the second question: Class.Symbols and Class[sSymbol] will do it: > > DIM sSym AS String > DIM hCls AS Class > > ' let hObj be the instance of your big exported class (btw, you don't > ' need to have an instance for this, i think...) > hCls = Object.Class(hObj) > > FOR EACH sSym IN Classes[hCls.Name].Symbols > IF hCls[sSym].Kind = Class.Constant THEN > PRINT "constant: "; sSym; " = "; hCls[sSym].Value > ENDIF > NEXT > Looks like exactly what I need! Thanks! Jussi From tobiasboe1 at ...20... Mon Jan 16 18:28:17 2012 From: tobiasboe1 at ...20... (tobias) Date: Mon, 16 Jan 2012 18:28:17 +0100 Subject: [Gambas-user] Question about Object.Size and object symbol enumeration In-Reply-To: References: <4F145890.8030800@...20...> Message-ID: <4F145E31.6040709@...20...> Jussi Lahtinen schrieb: >> i think, i'm not the man to answer your first question (maybe it is some >> alignment/padding thing). >> > > No no it's about memory size... > > > > >> but for the second question: Class.Symbols and Class[sSymbol] will do it: >> >> DIM sSym AS String >> DIM hCls AS Class >> >> ' let hObj be the instance of your big exported class (btw, you don't >> ' need to have an instance for this, i think...) >> hCls = Object.Class(hObj) >> >> FOR EACH sSym IN Classes[hCls.Name].Symbols >> IF hCls[sSym].Kind = Class.Constant THEN >> PRINT "constant: "; sSym; " = "; hCls[sSym].Value >> ENDIF >> NEXT >> > > Looks like exactly what I need! Thanks! > > Jussi i have to correct me a bit: FOR EACH sSym IN Classes[hCls.Name].Symbols in fact contains overhead (i tested it first without the hCls variable and had to use Classes[sName] then)... simply use: ... IN hCls.Symbols From jussi.lahtinen at ...626... Mon Jan 16 18:55:38 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 16 Jan 2012 19:55:38 +0200 Subject: [Gambas-user] Question about Object.Size and object symbol enumeration In-Reply-To: <4F145C0C.4000703@...1...> References: <4F145C0C.4000703@...1...> Message-ID: Just wondering where Object.SizeOf is usually needed for... Example, you can use SizeOf() function to determine needed space to write memory to file. But Object.SizeOf cannot be used for that. Maybe there should be warning in documentation about dissimilarities between SizeOf() and Object.SizeOf. But not really a problem, since you can enumerate object symbols. Jussi 2012/1/16 Beno?t Minisini > Le 16/01/2012 17:45, Jussi Lahtinen a ?crit : > > Hi! > > Seems like function Object.SizeOf() always returns numbers dividable by > 8. > > Is this because objects are allocated as 64 bit chunks in 64 bit OS, or > is > > this bug? > > > > Object sizes are always padded so that their size is a multiple of 8 bytes. > > What's the problem with that? > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Mar 27 - Feb 2 > Save $400 by Jan. 27 > Register now! > http://p.sf.net/sfu/rsa-sfdev2dev2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jacontreras at ...2715... Mon Jan 16 18:21:26 2012 From: jacontreras at ...2715... (Ing. Alfonso Contreras) Date: Mon, 16 Jan 2012 11:21:26 -0600 Subject: [Gambas-user] Update Help In-Reply-To: <4F145C0C.4000703@...1...> References: <4F145C0C.4000703@...1...> Message-ID: Hi, I have the 2.99.6 gambas versi?n, how can i update that version to the latest? Thank you Alfonso From rmorgan62 at ...626... Mon Jan 16 19:53:15 2012 From: rmorgan62 at ...626... (Randall Morgan) Date: Mon, 16 Jan 2012 10:53:15 -0800 Subject: [Gambas-user] Update Help In-Reply-To: References: <4F145C0C.4000703@...1...> Message-ID: Just check out the latest version from svn. See: http://www.gambasdoc.org/help/howto/svn On Mon, Jan 16, 2012 at 9:21 AM, Ing. Alfonso Contreras < jacontreras at ...2715...> wrote: > Hi, I have the 2.99.6 gambas versi?n, how can i update that version to the > latest? > > > Thank you > > Alfonso > > > > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Mar 27 - Feb 2 > Save $400 by Jan. 27 > Register now! > http://p.sf.net/sfu/rsa-sfdev2dev2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- If you ask me if it can be done. The answer is YES, it can always be done. The correct questions however are... What will it cost, and how long will it take? From rmorgan62 at ...626... Tue Jan 17 01:59:06 2012 From: rmorgan62 at ...626... (Randall Morgan) Date: Mon, 16 Jan 2012 16:59:06 -0800 Subject: [Gambas-user] Exporting Program text from project files Message-ID: Hi Everyone, This is probably a a question for Benoit, but I'm asking everyone. I need to automate the inclusion of Gambas code into LyX (a latex editor) and would like to pass it through pygment or some other code highlighter before inserting it into my lyx document. I've been doing this manually but it is becoming a pain. So I figure either Gambas 3 or python script should do... To do this I need to know how the project files are stored and how best to retrieve the text from them. Any info would be of great help, Thanks -- If you ask me if it can be done. The answer is YES, it can always be done. The correct questions however are... What will it cost, and how long will it take? From gambas at ...1... Tue Jan 17 03:11:38 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Tue, 17 Jan 2012 03:11:38 +0100 Subject: [Gambas-user] Exporting Program text from project files In-Reply-To: References: Message-ID: <4F14D8DA.5060001@...1...> Le 17/01/2012 01:59, Randall Morgan a ?crit : > Hi Everyone, > > This is probably a a question for Benoit, but I'm asking everyone. I need > to automate the inclusion of Gambas code into LyX (a latex editor) and > would like to pass it through pygment or some other code highlighter before > inserting it into my lyx document. I've been doing this manually but it is > becoming a pain. So I figure either Gambas 3 or python script should do... > To do this I need to know how the project files are stored and how best to > retrieve the text from them. > > Any info would be of great help, > > Thanks > Source files are stored in the ".src" sub-directory of your project directory, exactly as you see them in the IDE project tree. Regards, -- Beno?t Minisini From gambas at ...2524... Tue Jan 17 04:53:56 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 17 Jan 2012 03:53:56 +0000 Subject: [Gambas-user] Issue 185 in gambas: Editing a line changes font spacing In-Reply-To: <2-6813199134517018827-9150352820753408673-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-9150352820753408673-gambas=googlecode.com@...2524...> <0-6813199134517018827-9150352820753408673-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-9150352820753408673-gambas=googlecode.com@...2524...> Comment #3 on issue 185 by zachsmit... at ...626...: Editing a line changes font spacing http://code.google.com/p/gambas/issues/detail?id=185 I've solved the problem by changing the font hinting in Xfce (Settings-> Appearance-> Fonts-> Rendering-> Hinting). If anti-aliasing is enabled and hinting is set to 'none or 'slight' then it causes problems in the Gambas IDE. If it is set to 'medium' or 'full' then there is no problem. Most running apps are affected immediately by changing the hinting but the IDE apparently only uses the setting at start up. Changing the hinting while the IDE is running has no effect. It took a while to figure it out because among the apps I use, only Gambas was affected by this. From rmorgan62 at ...626... Tue Jan 17 07:22:31 2012 From: rmorgan62 at ...626... (Randall Morgan) Date: Mon, 16 Jan 2012 22:22:31 -0800 Subject: [Gambas-user] Exporting Program text from project files In-Reply-To: <4F14D8DA.5060001@...1...> References: <4F14D8DA.5060001@...1...> Message-ID: Thanks Benoit, For some reason I was thinking the project was compressed. I guess its just using hidden file... 2012/1/16 Beno?t Minisini > Le 17/01/2012 01:59, Randall Morgan a ?crit : > > Hi Everyone, > > > > This is probably a a question for Benoit, but I'm asking everyone. I need > > to automate the inclusion of Gambas code into LyX (a latex editor) and > > would like to pass it through pygment or some other code highlighter > before > > inserting it into my lyx document. I've been doing this manually but it > is > > becoming a pain. So I figure either Gambas 3 or python script should > do... > > To do this I need to know how the project files are stored and how best > to > > retrieve the text from them. > > > > Any info would be of great help, > > > > Thanks > > > > Source files are stored in the ".src" sub-directory of your project > directory, exactly as you see them in the IDE project tree. > > Regards, > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- If you ask me if it can be done. The answer is YES, it can always be done. The correct questions however are... What will it cost, and how long will it take? From gambas at ...2524... Tue Jan 17 08:15:12 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 17 Jan 2012 07:15:12 +0000 Subject: [Gambas-user] Issue 185 in gambas: Editing a line changes font spacing In-Reply-To: <3-6813199134517018827-9150352820753408673-gambas=googlecode.com@...2524...> References: <3-6813199134517018827-9150352820753408673-gambas=googlecode.com@...2524...> <0-6813199134517018827-9150352820753408673-gambas=googlecode.com@...2524...> Message-ID: <4-6813199134517018827-9150352820753408673-gambas=googlecode.com@...2524...> Comment #4 on issue 185 by benoit.m... at ...626...: Editing a line changes font spacing http://code.google.com/p/gambas/issues/detail?id=185 I can't reproduce the problem anyway with KDE. Maybe this is not just a matter of font hinting. Which font resolution do yo use? From eilert-sprachen at ...221... Tue Jan 17 08:48:11 2012 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Tue, 17 Jan 2012 08:48:11 +0100 Subject: [Gambas-user] Gambas3: ScrollArea doesn't scroll In-Reply-To: <4F0E715B.5080600@...1...> References: <4F0AA09B.20909@...221...> <4F0AD4BF.8050801@...1...> <4F0AD87E.1060108@...221...> <4F0ADFE6.1080106@...1...> <4F0BE664.3050302@...221...> <4F0E715B.5080600@...1...> Message-ID: <4F1527BB.2090703@...221...> Am 12.01.2012 06:36, schrieb Beno?t Minisini: > Le 10/01/2012 08:19, Rolf-Werner Eilert a ?crit : >> Am 09.01.2012 13:39, schrieb Beno?t Minisini: >>>> >>>> Ok, I think I understand: With the help of ScrollX and ScrollY I have to >>>> decide at which coordinate within my large drawing I start to draw to >>>> 1,1 on the DrawingArea? >>>> >>>> Rolf >>>> >>> >>> Yes. If you don't care with drawing everything at each draw event, it is >>> just a matter of translating the coordinate system with Draw.Translate(). >>> >> >> Last evening I found that with Gambas3 under KDE nothing is shown in >> ScrollArea and DrawingArea, the areas just stay cleared, but no error >> occurs. When I switch them cached = TRUE it will crash with Sig #11 >> after some drawings, but the IDE doesn't crash. Under LXDE everything >> works flawlessly. >> >> Rolf >> > > Which graphics system is configured for your Qt library: 'X11', 'Raster' > or 'OpenGL'? > Hi Benoit, I still don't know where to look for an answer to this. Frankly spoken, I do not even know what you mean: Gambas' Qt library, or system's Qt library? Have a nice Tuesday Rolf From gambas at ...1... Tue Jan 17 10:01:20 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Tue, 17 Jan 2012 10:01:20 +0100 Subject: [Gambas-user] Gambas3: ScrollArea doesn't scroll In-Reply-To: <4F1527BB.2090703@...221...> References: <4F0AA09B.20909@...221...> <4F0AD4BF.8050801@...1...> <4F0AD87E.1060108@...221...> <4F0ADFE6.1080106@...1...> <4F0BE664.3050302@...221...> <4F0E715B.5080600@...1...> <4F1527BB.2090703@...221...> Message-ID: <4F1538E0.2000107@...1...> Le 17/01/2012 08:48, Rolf-Werner Eilert a ?crit : > Am 12.01.2012 06:36, schrieb Beno?t Minisini: >> Le 10/01/2012 08:19, Rolf-Werner Eilert a ?crit : >>> Am 09.01.2012 13:39, schrieb Beno?t Minisini: >>>>> >>>>> Ok, I think I understand: With the help of ScrollX and ScrollY I have to >>>>> decide at which coordinate within my large drawing I start to draw to >>>>> 1,1 on the DrawingArea? >>>>> >>>>> Rolf >>>>> >>>> >>>> Yes. If you don't care with drawing everything at each draw event, it is >>>> just a matter of translating the coordinate system with Draw.Translate(). >>>> >>> >>> Last evening I found that with Gambas3 under KDE nothing is shown in >>> ScrollArea and DrawingArea, the areas just stay cleared, but no error >>> occurs. When I switch them cached = TRUE it will crash with Sig #11 >>> after some drawings, but the IDE doesn't crash. Under LXDE everything >>> works flawlessly. >>> >>> Rolf >>> >> >> Which graphics system is configured for your Qt library: 'X11', 'Raster' >> or 'OpenGL'? >> > > Hi Benoit, > > I still don't know where to look for an answer to this. Frankly spoken, > I do not even know what you mean: Gambas' Qt library, or system's Qt > library? > > Have a nice Tuesday > > Rolf > The Qt graphics system defined how things are drawn on the screen by Qt: - X11: by using X11 and XRender libraries. - Raster: by doing everything in memory, and just blitting the result to X11. - OpenGL: by using OpenGL. KDE has a entry for that in the control center on my Ubuntu, named "Qt Graphics System". It just modifies a shell script file named "qt-graphicssystem.sh" located in ~/.kde/env. That script just defined the value of the QT_GRAPHICSSYSTEM environment variable. You can test your crashing application by defining this environmental variable directory from a shell console: $ cd /path/to/my/project $ QT_GRAPHICSSYSTEM=raster gbx3 The value of QT_GRAPHICSSYSTEM can be "raster", "x11" or "opengl" (in lower case). Regards, -- Beno?t Minisini From kevinfishburne at ...1887... Tue Jan 17 11:18:47 2012 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Tue, 17 Jan 2012 05:18:47 -0500 Subject: [Gambas-user] gb3: "Mathematic error" In-Reply-To: <4F13D2D1.7090508@...1...> References: <4F13C71C.8000608@...1887...> <4F13CC42.6010402@...1887...> <4F13D2D1.7090508@...1...> Message-ID: <4F154B07.7080704@...1887...> On 01/16/2012 02:33 AM, Beno?t Minisini wrote: > Le 16/01/2012 08:05, Kevin Fishburne a ?crit : >> On 01/16/2012 01:43 AM, Kevin Fishburne wrote: >>> Why would I get the runtime error "Mathematic error" in this function: >>> >>> Public Function Distance(x1 As Single, y1 As Single, x2 As Single, y2 As >>> Single) As Single >>> Return Abs(Sqr((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1))) >>> End >>> >>> The values of the variables are: >>> >>> ?x2& ""& x1& ""& x2& ""& x1& ""& y2& ""& y1& ""& y2& >>> ""& y1 >>> >>> 174.248779296875 2.40799128109576E-41 174.248779296875 >>> 2.40799128109576E-41 146.759170532227 7.19552647834628E+27 >>> 146.759170532227 7.19552647834628E+27 >>> >>> Using GAMBAS 3, revision unknown. I'm recompiling now to see if it makes >>> a difference, but please let me know what this error means and what >>> could cause it. >>> >> I changed the first line (old one) to the second: >> >> 'Return Abs(Sqr((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1))) >> Return Sqr((x2 - x1) ^ 2 + (y2 - y1) ^ 2) >> >> and it gives me no problems. Seems like I really screwed up the distance >> calculation, but even so this may be a bug so hopefully I've contributed >> to a solution. Still curious of course as to what the error might mean. >> Maybe it should just say "You suck at math." :) >> > You get a mathematic error because of an overflow. (y2 - y1) * (y2 - y1) > cannot be expressed by a Single in your example. > > The "^" operator deals with Float internally, so you don't get an error. > > Anyway, to compute a distance, you can use the Hyp() or the Mag() > function. It will be faster. Sometimes it calculates without error, other times it doesn't. Changing all the datatypes to float doesn't make any difference either. Thanks for the efficiency tip on Hyp() and Mag(), but it still looks like there's a problem with math here. How should a manual distance calculation be expressed without overflow if that's the problem? -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From kevinfishburne at ...1887... Tue Jan 17 11:35:37 2012 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Tue, 17 Jan 2012 05:35:37 -0500 Subject: [Gambas-user] gb3: "Mathematic error" In-Reply-To: <4F154B07.7080704@...1887...> References: <4F13C71C.8000608@...1887...> <4F13CC42.6010402@...1887...> <4F13D2D1.7090508@...1...> <4F154B07.7080704@...1887...> Message-ID: <4F154EF9.1050706@...1887...> On 01/17/2012 05:18 AM, Kevin Fishburne wrote: > On 01/16/2012 02:33 AM, Beno?t Minisini wrote: >> Le 16/01/2012 08:05, Kevin Fishburne a ?crit : >>> On 01/16/2012 01:43 AM, Kevin Fishburne wrote: >>>> Why would I get the runtime error "Mathematic error" in this function: >>>> >>>> Public Function Distance(x1 As Single, y1 As Single, x2 As Single, y2 As >>>> Single) As Single >>>> Return Abs(Sqr((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1))) >>>> End >>>> >>>> The values of the variables are: >>>> >>>> ?x2& ""& x1& ""& x2& ""& x1& ""& y2& ""& y1& ""& y2& >>>> ""& y1 >>>> >>>> 174.248779296875 2.40799128109576E-41 174.248779296875 >>>> 2.40799128109576E-41 146.759170532227 7.19552647834628E+27 >>>> 146.759170532227 7.19552647834628E+27 >>>> >>>> Using GAMBAS 3, revision unknown. I'm recompiling now to see if it makes >>>> a difference, but please let me know what this error means and what >>>> could cause it. >>>> >>> I changed the first line (old one) to the second: >>> >>> 'Return Abs(Sqr((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1))) >>> Return Sqr((x2 - x1) ^ 2 + (y2 - y1) ^ 2) >>> >>> and it gives me no problems. Seems like I really screwed up the distance >>> calculation, but even so this may be a bug so hopefully I've contributed >>> to a solution. Still curious of course as to what the error might mean. >>> Maybe it should just say "You suck at math." :) >>> >> You get a mathematic error because of an overflow. (y2 - y1) * (y2 - y1) >> cannot be expressed by a Single in your example. >> >> The "^" operator deals with Float internally, so you don't get an error. >> >> Anyway, to compute a distance, you can use the Hyp() or the Mag() >> function. It will be faster. > Sometimes it calculates without error, other times it doesn't. Changing > all the datatypes to float doesn't make any difference either. Thanks > for the efficiency tip on Hyp() and Mag(), but it still looks like > there's a problem with math here. How should a manual distance > calculation be expressed without overflow if that's the problem? > Just discovered it has to do with one of the passed values being zero. Why is that? -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From bill-lancaster at ...2231... Tue Jan 17 13:25:09 2012 From: bill-lancaster at ...2231... (Bill-Lancaster) Date: Tue, 17 Jan 2012 04:25:09 -0800 (PST) Subject: [Gambas-user] Document viewing in 3.0 Message-ID: <33153744.post@...1379...> What is the best way to view documents in Gambas 3.0? I believe the drawingarea control is not available. In particular I wish to view .pnm and .pdf files. The new pdf viewer is fine for pdf files. -- View this message in context: http://old.nabble.com/Document-viewing-in-3.0-tp33153744p33153744.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas.fr at ...626... Tue Jan 17 14:02:12 2012 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 17 Jan 2012 14:02:12 +0100 Subject: [Gambas-user] Document viewing in 3.0 In-Reply-To: <33153744.post@...1379...> References: <33153744.post@...1379...> Message-ID: 2012/1/17 Bill-Lancaster : > > What is the best way to view documents in Gambas 3.0? hem... i don't understand what you wan't to know :/ > I believe the drawingarea control is not available. > In particular I wish to view .pnm and .pdf files. ?The new pdn'tf viewer is > fine for pdf files. > -- > View this message in context: http://old.nabble.com/Document-viewing-in-3.0-tp33153744p33153744.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard From bill-lancaster at ...2231... Tue Jan 17 14:36:50 2012 From: bill-lancaster at ...2231... (Bill-Lancaster) Date: Tue, 17 Jan 2012 05:36:50 -0800 (PST) Subject: [Gambas-user] Document viewing in 3.0 In-Reply-To: References: <33153744.post@...1379...> Message-ID: <33154217.post@...1379...> I wish to display the content of .pnm files in a form -- View this message in context: http://old.nabble.com/Document-viewing-in-3.0-tp33153744p33154217.html Sent from the gambas-user mailing list archive at Nabble.com. From bill-lancaster at ...2231... Tue Jan 17 15:00:20 2012 From: bill-lancaster at ...2231... (Bill-Lancaster) Date: Tue, 17 Jan 2012 06:00:20 -0800 (PST) Subject: [Gambas-user] Document viewing in 3.0 In-Reply-To: <33154217.post@...1379...> References: <33153744.post@...1379...> <33154217.post@...1379...> Message-ID: <33154348.post@...1379...> A search in http://gambasdoc.org/help/ for "DrawingArea" resulted in this message:- "This class does not exist in version 3.0. " I don't really know what that means because I can use DrawingArea in my Gambas 3.0 project OK. So - problem solved -- View this message in context: http://old.nabble.com/Document-viewing-in-3.0-tp33153744p33154348.html Sent from the gambas-user mailing list archive at Nabble.com. From eilert-sprachen at ...221... Tue Jan 17 15:37:44 2012 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Tue, 17 Jan 2012 15:37:44 +0100 Subject: [Gambas-user] Document viewing in 3.0 In-Reply-To: <33153744.post@...1379...> References: <33153744.post@...1379...> Message-ID: <4F1587B8.5000209@...221...> Am 17.01.2012 13:25, schrieb Bill-Lancaster: > > What is the best way to view documents in Gambas 3.0? > I believe the drawingarea control is not available. > In particular I wish to view .pnm and .pdf files. The new pdf viewer is > fine for pdf files. Oh :-) there is a pdf viewer now? Is it able to show .ps files, too? Rolf From gambas at ...1... Tue Jan 17 16:22:45 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Tue, 17 Jan 2012 16:22:45 +0100 Subject: [Gambas-user] gb3: "Mathematic error" In-Reply-To: <4F154EF9.1050706@...1887...> References: <4F13C71C.8000608@...1887...> <4F13CC42.6010402@...1887...> <4F13D2D1.7090508@...1...> <4F154B07.7080704@...1887...> <4F154EF9.1050706@...1887...> Message-ID: <4F159245.1060602@...1...> Le 17/01/2012 11:35, Kevin Fishburne a ?crit : > On 01/17/2012 05:18 AM, Kevin Fishburne wrote: >> On 01/16/2012 02:33 AM, Beno?t Minisini wrote: >>> Le 16/01/2012 08:05, Kevin Fishburne a ?crit : >>>> On 01/16/2012 01:43 AM, Kevin Fishburne wrote: >>>>> Why would I get the runtime error "Mathematic error" in this function: >>>>> >>>>> Public Function Distance(x1 As Single, y1 As Single, x2 As Single, y2 As >>>>> Single) As Single >>>>> Return Abs(Sqr((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1))) >>>>> End >>>>> >>>>> The values of the variables are: >>>>> >>>>> ?x2& ""& x1& ""& x2& ""& x1& ""& y2& ""& y1& ""& y2& >>>>> ""& y1 >>>>> >>>>> 174.248779296875 2.40799128109576E-41 174.248779296875 >>>>> 2.40799128109576E-41 146.759170532227 7.19552647834628E+27 >>>>> 146.759170532227 7.19552647834628E+27 >>>>> >>>>> Using GAMBAS 3, revision unknown. I'm recompiling now to see if it makes >>>>> a difference, but please let me know what this error means and what >>>>> could cause it. >>>>> >>>> I changed the first line (old one) to the second: >>>> >>>> 'Return Abs(Sqr((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1))) >>>> Return Sqr((x2 - x1) ^ 2 + (y2 - y1) ^ 2) >>>> >>>> and it gives me no problems. Seems like I really screwed up the distance >>>> calculation, but even so this may be a bug so hopefully I've contributed >>>> to a solution. Still curious of course as to what the error might mean. >>>> Maybe it should just say "You suck at math." :) >>>> >>> You get a mathematic error because of an overflow. (y2 - y1) * (y2 - y1) >>> cannot be expressed by a Single in your example. >>> >>> The "^" operator deals with Float internally, so you don't get an error. >>> >>> Anyway, to compute a distance, you can use the Hyp() or the Mag() >>> function. It will be faster. >> Sometimes it calculates without error, other times it doesn't. Changing >> all the datatypes to float doesn't make any difference either. Thanks >> for the efficiency tip on Hyp() and Mag(), but it still looks like >> there's a problem with math here. How should a manual distance >> calculation be expressed without overflow if that's the problem? >> > > Just discovered it has to do with one of the passed values being zero. > Why is that? > Apparently you are not shocked by a coordinate of 7.19E+27... That causes the overflow with Single (not Float). -- Beno?t Minisini From bill-lancaster at ...2231... Tue Jan 17 16:27:25 2012 From: bill-lancaster at ...2231... (Bill-Lancaster) Date: Tue, 17 Jan 2012 07:27:25 -0800 (PST) Subject: [Gambas-user] Document viewing in 3.0 In-Reply-To: <4F1587B8.5000209@...221...> References: <33153744.post@...1379...> <4F1587B8.5000209@...221...> Message-ID: <33154883.post@...1379...> Just tried opening a .ps file, "bad PDF Format" was the result! Bill -- View this message in context: http://old.nabble.com/Document-viewing-in-3.0-tp33153744p33154883.html Sent from the gambas-user mailing list archive at Nabble.com. From eilert-sprachen at ...221... Tue Jan 17 18:30:32 2012 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Tue, 17 Jan 2012 18:30:32 +0100 Subject: [Gambas-user] Document viewing in 3.0 In-Reply-To: <33154883.post@...1379...> References: <33153744.post@...1379...> <4F1587B8.5000209@...221...> <33154883.post@...1379...> Message-ID: <4F15B038.5040305@...221...> Am 17.01.2012 16:27, schrieb Bill-Lancaster: > > Just tried opening a .ps file, "bad PDF Format" was the result! > Bill Ok - :-( it's a bit of a pity, but alas... maybe I'll find a way to make use of the pdf viewing capability :-) Regards Rolf From gambas.fr at ...626... Tue Jan 17 18:38:00 2012 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 17 Jan 2012 18:38:00 +0100 Subject: [Gambas-user] gb3: "Mathematic error" In-Reply-To: <4F159245.1060602@...1...> References: <4F13C71C.8000608@...1887...> <4F13CC42.6010402@...1887...> <4F13D2D1.7090508@...1...> <4F154B07.7080704@...1887...> <4F154EF9.1050706@...1887...> <4F159245.1060602@...1...> Message-ID: Le 17 janvier 2012 16:22, Beno?t Minisini a ?crit : > Le 17/01/2012 11:35, Kevin Fishburne a ?crit : >> On 01/17/2012 05:18 AM, Kevin Fishburne wrote: >>> On 01/16/2012 02:33 AM, Beno?t Minisini wrote: >>>> Le 16/01/2012 08:05, Kevin Fishburne a ?crit : >>>>> On 01/16/2012 01:43 AM, Kevin Fishburne wrote: >>>>>> Why would I get the runtime error "Mathematic error" in this function: >>>>>> >>>>>> Public Function Distance(x1 As Single, y1 As Single, x2 As Single, y2 As >>>>>> Single) As Single >>>>>> ? ? ? ? Return Abs(Sqr((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1))) >>>>>> End >>>>>> >>>>>> The values of the variables are: >>>>>> >>>>>> ?x2& ? ? ?""& ? ? ?x1& ? ? ?""& ? ? ?x2& ? ? ?""& ? ? ?x1& ? ? ?""& ? ? ?y2& ? ? ?""& ? ? ?y1& ? ? ?""& ? ? ?y2& >>>>>> ""& ? ? ?y1 >>>>>> >>>>>> 174.248779296875 2.40799128109576E-41 174.248779296875 >>>>>> 2.40799128109576E-41 146.759170532227 7.19552647834628E+27 >>>>>> 146.759170532227 7.19552647834628E+27 >>>>>> >>>>>> Using GAMBAS 3, revision unknown. I'm recompiling now to see if it makes >>>>>> a difference, but please let me know what this error means and what >>>>>> could cause it. >>>>>> >>>>> I changed the first line (old one) to the second: >>>>> >>>>> 'Return Abs(Sqr((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1))) >>>>> Return Sqr((x2 - x1) ^ 2 + (y2 - y1) ^ 2) >>>>> >>>>> and it gives me no problems. Seems like I really screwed up the distance >>>>> calculation, but even so this may be a bug so hopefully I've contributed >>>>> to a solution. Still curious of course as to what the error might mean. >>>>> Maybe it should just say "You suck at math." :) >>>>> >>>> You get a mathematic error because of an overflow. (y2 - y1) * (y2 - y1) >>>> cannot be expressed by a Single in your example. >>>> >>>> The "^" operator deals with Float internally, so you don't get an error. >>>> >>>> Anyway, to compute a distance, you can use the Hyp() or the Mag() >>>> function. It will be faster. >>> Sometimes it calculates without error, other times it doesn't. Changing >>> all the datatypes to float doesn't make any difference either. Thanks >>> for the efficiency tip on Hyp() and Mag(), but it still looks like >>> there's a problem with math here. How should a manual distance >>> calculation be expressed without overflow if that's the problem? >>> >> >> Just discovered it has to do with one of the passed values being zero. >> Why is that? >> > > Apparently you are not shocked by a coordinate of 7.19E+27... That > causes the overflow with Single (not Float). :) > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard From gambas.fr at ...626... Tue Jan 17 18:41:19 2012 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 17 Jan 2012 18:41:19 +0100 Subject: [Gambas-user] Document viewing in 3.0 In-Reply-To: <4F15B038.5040305@...221...> References: <33153744.post@...1379...> <4F1587B8.5000209@...221...> <33154883.post@...1379...> <4F15B038.5040305@...221...> Message-ID: 2012/1/17 Rolf-Werner Eilert : > Am 17.01.2012 16:27, schrieb Bill-Lancaster: >> >> Just tried opening a .ps file, "bad PDF Format" was the result! >> Bill > > Ok - :-( it's a bit of a pity, but alas... maybe I'll find a way to make > use of the pdf viewing capability :-) in fact it's poppler capacities :) for ps ... see ghostscript > Regards > > Rolf > > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard From jussi.lahtinen at ...626... Tue Jan 17 19:47:14 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Tue, 17 Jan 2012 20:47:14 +0200 Subject: [Gambas-user] Document viewing in 3.0 In-Reply-To: <33154348.post@...1379...> References: <33153744.post@...1379...> <33154217.post@...1379...> <33154348.post@...1379...> Message-ID: Documentation of Gambas 3 is just not ready yet. Maybe there should be default text something like "Page is missing or this class does not exist in version 3.0.". Jussi On Tue, Jan 17, 2012 at 16:00, Bill-Lancaster wrote: > > A search in http://gambasdoc.org/help/ for "DrawingArea" resulted in this > message:- > > "This class does not exist in version 3.0. " > > I don't really know what that means because I can use DrawingArea in my > Gambas 3.0 project OK. > > So - problem solved > > > -- > View this message in context: > http://old.nabble.com/Document-viewing-in-3.0-tp33153744p33154348.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Tue Jan 17 20:14:33 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Tue, 17 Jan 2012 20:14:33 +0100 Subject: [Gambas-user] Document viewing in 3.0 In-Reply-To: References: <33153744.post@...1379...> <33154217.post@...1379...> <33154348.post@...1379...> Message-ID: <4F15C899.1040708@...1...> Le 17/01/2012 19:47, Jussi Lahtinen a ?crit : > Documentation of Gambas 3 is just not ready yet. > Maybe there should be default text something like "Page is missing or this > class does not exist in version 3.0.". > > Jussi > I don't know what you are talking about. http://gambasdoc.org/help/comp/gb.qt4/drawingarea?v3 -- Beno?t Minisini From jussi.lahtinen at ...626... Tue Jan 17 20:55:22 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Tue, 17 Jan 2012 21:55:22 +0200 Subject: [Gambas-user] Document viewing in 3.0 In-Reply-To: <4F15C899.1040708@...1...> References: <33153744.post@...1379...> <33154217.post@...1379...> <33154348.post@...1379...> <4F15C899.1040708@...1...> Message-ID: Aaa... of course, Bill and I have clicked on: http://gambasdoc.org/help/comp/gb.qt/drawingarea?v3 There is no Gambas 3 drawingarea in gb.qt, because there is no gb.qt, it's gb.qt4 now. Maybe redirection then? Jussi 2012/1/17 Beno?t Minisini > Le 17/01/2012 19:47, Jussi Lahtinen a ?crit : > > Documentation of Gambas 3 is just not ready yet. > > Maybe there should be default text something like "Page is missing or > this > > class does not exist in version 3.0.". > > > > Jussi > > > > I don't know what you are talking about. > > http://gambasdoc.org/help/comp/gb.qt4/drawingarea?v3 > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Tue Jan 17 21:00:42 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Tue, 17 Jan 2012 21:00:42 +0100 Subject: [Gambas-user] Document viewing in 3.0 In-Reply-To: References: <33153744.post@...1379...> <33154217.post@...1379...> <33154348.post@...1379...> <4F15C899.1040708@...1...> Message-ID: <4F15D36A.7070501@...1...> Le 17/01/2012 20:55, Jussi Lahtinen a ?crit : > Aaa... of course, Bill and I have clicked on: > http://gambasdoc.org/help/comp/gb.qt/drawingarea?v3 > > There is no Gambas 3 drawingarea in gb.qt, because there is no gb.qt, it's > gb.qt4 now. > Maybe redirection then? > > Jussi > Why redirecting? There is no ambiguity. -- Beno?t Minisini From rmorgan62 at ...626... Tue Jan 17 21:08:47 2012 From: rmorgan62 at ...626... (Randall Morgan) Date: Tue, 17 Jan 2012 12:08:47 -0800 Subject: [Gambas-user] Document viewing in 3.0 In-Reply-To: <4F15D36A.7070501@...1...> References: <33153744.post@...1379...> <33154217.post@...1379...> <33154348.post@...1379...> <4F15C899.1040708@...1...> <4F15D36A.7070501@...1...> Message-ID: I think a statement to the fact the gb.qt was replaced by gd.qt4 in Gambas 3 would stop any confusion. I do think that most readers would assume the draw object no longer existed at all. The solution would be a "For xxx See here" link and point people to the replacement via a link on the page. This is not ambiguous to those familiar with the development of Gambas 3 but to new comers or those who have not had much exposure do not have the background knowledge of the developer. 2012/1/17 Beno?t Minisini > Le 17/01/2012 20:55, Jussi Lahtinen a ?crit : > > Aaa... of course, Bill and I have clicked on: > > http://gambasdoc.org/help/comp/gb.qt/drawingarea?v3 > > > > There is no Gambas 3 drawingarea in gb.qt, because there is no gb.qt, > it's > > gb.qt4 now. > > Maybe redirection then? > > > > Jussi > > > > Why redirecting? There is no ambiguity. > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- If you ask me if it can be done. The answer is YES, it can always be done. The correct questions however are... What will it cost, and how long will it take? From jussi.lahtinen at ...626... Tue Jan 17 21:29:06 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Tue, 17 Jan 2012 22:29:06 +0200 Subject: [Gambas-user] Document viewing in 3.0 In-Reply-To: <4F15D36A.7070501@...1...> References: <33153744.post@...1379...> <33154217.post@...1379...> <33154348.post@...1379...> <4F15C899.1040708@...1...> <4F15D36A.7070501@...1...> Message-ID: Yes, there is no ambiguity, but as we can see, in practice, some people get confused. '"For xxx See here" link' is also fine idea. Personally this doesn't matter much to me as I know it now, but I think it would be helpful to others. Jussi 2012/1/17 Beno?t Minisini > Le 17/01/2012 20:55, Jussi Lahtinen a ?crit : > > Aaa... of course, Bill and I have clicked on: > > http://gambasdoc.org/help/comp/gb.qt/drawingarea?v3 > > > > There is no Gambas 3 drawingarea in gb.qt, because there is no gb.qt, > it's > > gb.qt4 now. > > Maybe redirection then? > > > > Jussi > > > > Why redirecting? There is no ambiguity. > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Tue Jan 17 21:35:49 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Tue, 17 Jan 2012 22:35:49 +0200 Subject: [Gambas-user] Document viewing in 3.0 In-Reply-To: References: <33153744.post@...1379...> <33154217.post@...1379...> <33154348.post@...1379...> <4F15C899.1040708@...1...> <4F15D36A.7070501@...1...> Message-ID: Hmmm... maybe there is also ambiguity. Message is "This class does not exist in version 3.0.", which implies that only the class is missing, when in reality the whole component is missing. Jussi On Tue, Jan 17, 2012 at 22:29, Jussi Lahtinen wrote: > Yes, there is no ambiguity, but as we can see, in practice, some people > get confused. > '"For xxx See here" link' is also fine idea. > > Personally this doesn't matter much to me as I know it now, but I think it > would be helpful to others. > > Jussi > > > > > > > 2012/1/17 Beno?t Minisini > >> Le 17/01/2012 20:55, Jussi Lahtinen a ?crit : >> > Aaa... of course, Bill and I have clicked on: >> > http://gambasdoc.org/help/comp/gb.qt/drawingarea?v3 >> > >> > There is no Gambas 3 drawingarea in gb.qt, because there is no gb.qt, >> it's >> > gb.qt4 now. >> > Maybe redirection then? >> > >> > Jussi >> > >> >> Why redirecting? There is no ambiguity. >> >> -- >> Beno?t Minisini >> >> >> ------------------------------------------------------------------------------ >> Keep Your Developer Skills Current with LearnDevNow! >> The most comprehensive online learning library for Microsoft developers >> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, >> Metro Style Apps, more. Free future releases when you subscribe now! >> http://p.sf.net/sfu/learndevnow-d2d >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > From gambas at ...2524... Wed Jan 18 00:53:12 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 17 Jan 2012 23:53:12 +0000 Subject: [Gambas-user] Issue 185 in gambas: Editing a line changes font spacing In-Reply-To: <4-6813199134517018827-9150352820753408673-gambas=googlecode.com@...2524...> References: <4-6813199134517018827-9150352820753408673-gambas=googlecode.com@...2524...> <0-6813199134517018827-9150352820753408673-gambas=googlecode.com@...2524...> Message-ID: <5-6813199134517018827-9150352820753408673-gambas=googlecode.com@...2524...> Comment #5 on issue 185 by zachsmit... at ...626...: Editing a line changes font spacing http://code.google.com/p/gambas/issues/detail?id=185 My DPI setting is 92. I've made the DPI higher and lower and restarted Gambas each time to see the result but it did not help. It makes the edited text either expand or shrink but it never matches the length of an unedited line. The cursor positioning is wrong as well. It is never in the right spot. From gambas at ...2524... Wed Jan 18 03:42:09 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 18 Jan 2012 02:42:09 +0000 Subject: [Gambas-user] Issue 185 in gambas: Editing a line changes font spacing In-Reply-To: <5-6813199134517018827-9150352820753408673-gambas=googlecode.com@...2524...> References: <5-6813199134517018827-9150352820753408673-gambas=googlecode.com@...2524...> <0-6813199134517018827-9150352820753408673-gambas=googlecode.com@...2524...> Message-ID: <6-6813199134517018827-9150352820753408673-gambas=googlecode.com@...2524...> Comment #6 on issue 185 by benoit.m... at ...626...: Editing a line changes font spacing http://code.google.com/p/gambas/issues/detail?id=185 Maybe it is Qt 4.8 then... I have only Qt 4.7 with my Ubuntu. From gambas at ...2524... Wed Jan 18 04:36:54 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 18 Jan 2012 03:36:54 +0000 Subject: [Gambas-user] Issue 185 in gambas: Editing a line changes font spacing In-Reply-To: <6-6813199134517018827-9150352820753408673-gambas=googlecode.com@...2524...> References: <6-6813199134517018827-9150352820753408673-gambas=googlecode.com@...2524...> <0-6813199134517018827-9150352820753408673-gambas=googlecode.com@...2524...> Message-ID: <7-6813199134517018827-9150352820753408673-gambas=googlecode.com@...2524...> Updates: Status: Accepted Comment #7 on issue 185 by benoit.m... at ...626...: Editing a line changes font spacing http://code.google.com/p/gambas/issues/detail?id=185 Is it better with revision #4404, if I disable font kerning? From gambas at ...2524... Wed Jan 18 06:03:46 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 18 Jan 2012 05:03:46 +0000 Subject: [Gambas-user] Issue 185 in gambas: Editing a line changes font spacing In-Reply-To: <7-6813199134517018827-9150352820753408673-gambas=googlecode.com@...2524...> References: <7-6813199134517018827-9150352820753408673-gambas=googlecode.com@...2524...> <0-6813199134517018827-9150352820753408673-gambas=googlecode.com@...2524...> Message-ID: <8-6813199134517018827-9150352820753408673-gambas=googlecode.com@...2524...> Comment #8 on issue 185 by zachsmit... at ...626...: Editing a line changes font spacing http://code.google.com/p/gambas/issues/detail?id=185 No, that didn't seem to change anything. From girardhenri at ...67... Wed Jan 18 09:32:27 2012 From: girardhenri at ...67... (Girard Henri) Date: Wed, 18 Jan 2012 09:32:27 +0100 Subject: [Gambas-user] ubuntu 12.04 error with libvtkzip or vtkzlib ? In-Reply-To: <4F13CC42.6010402@...1887...> References: <4F13C71C.8000608@...1887...> <4F13CC42.6010402@...1887...> Message-ID: Hi, I have been running precise pangolin for few months now, gambas3 compiled well... Today first time I have got this error, I can't find this libvtkzlib, any help ? regards Henri ------------------------------------------------------------------------------------------------------------------ make[4]: quittant le r?pertoire ? /home/riri/svn/trunk/gb.compress.bzlib2/src ? make[4]: entrant dans le r?pertoire ? /home/riri/svn/trunk/gb.compress.bzlib2 ? make[4]: quittant le r?pertoire ? /home/riri/svn/trunk/gb.compress.bzlib2 ? make[3]: quittant le r?pertoire ? /home/riri/svn/trunk/gb.compress.bzlib2 ? make[2]: quittant le r?pertoire ? /home/riri/svn/trunk/gb.compress.bzlib2 ? Making all in gb.compress.zlib make[2]: entrant dans le r?pertoire ? /home/riri/svn/trunk/gb.compress.zlib ? make all-recursive make[3]: entrant dans le r?pertoire ? /home/riri/svn/trunk/gb.compress.zlib ? Making all in src make[4]: entrant dans le r?pertoire ? /home/riri/svn/trunk/gb.compress.zlib/src ? /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include/vtk-5.8/vtkzlib/ -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -MT main.lo -MD -MP -MF .deps/main.Tpo -c -o main.lo main.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include/vtk-5.8/vtkzlib/ -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -MT main.lo -MD -MP -MF .deps/main.Tpo -c main.c -fPIC -DPIC -o .libs/main.o In file included from /usr/local/include/vtk-5.8/vtkzlib/zlib.h:34:0, from main.c:35: /usr/local/include/vtk-5.8/vtkzlib/zconf.h:15:35: fatal error: vtkzlib/zlibDllConfig.h: No such file or directory compilation terminated. make[4]: *** [main.lo] Erreur 1 make[4]: quittant le r?pertoire ? /home/riri/svn/trunk/gb.compress.zlib/src ? make[3]: *** [all-recursive] Erreur 1 make[3]: quittant le r?pertoire ? /home/riri/svn/trunk/gb.compress.zlib ? make[2]: *** [all] Erreur 2 make[2]: quittant le r?pertoire ? /home/riri/svn/trunk/gb.compress.zlib ? make[1]: *** [all-recursive] Erreur 1 make[1]: quittant le r?pertoire ? /home/riri/svn/trunk ? make: *** [all] Erreur 2 From rmorgan62 at ...626... Mon Jan 16 19:58:36 2012 From: rmorgan62 at ...626... (Randall Morgan) Date: Mon, 16 Jan 2012 10:58:36 -0800 Subject: [Gambas-user] Help Message-ID: Hi Everyone, I am looking for a good example of an exponential algorithm. It seems that everyone uses the Towers of Hanoi problem. I need something simple for my section on algorithms however, I am wanting something other than the usual TOH demo. Any ideas? Thanks for your help! -- If you ask me if it can be done. The answer is YES, it can always be done. The correct questions however are... What will it cost, and how long will it take? From gambas at ...1... Wed Jan 18 11:57:35 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Wed, 18 Jan 2012 11:57:35 +0100 Subject: [Gambas-user] ubuntu 12.04 error with libvtkzip or vtkzlib ? In-Reply-To: References: <4F13C71C.8000608@...1887...> <4F13CC42.6010402@...1887...> Message-ID: <4F16A59F.8080204@...1...> Le 18/01/2012 09:32, Girard Henri a ?crit : > Hi, > > I have been running precise pangolin for few months now, gambas3 > compiled well... Today first time I have got this error, I can't find > this libvtkzlib, any help ? > regards > Henri > > ------------------------------------------------------------------------------------------------------------------ > make[4]: quittant le r?pertoire ? > /home/riri/svn/trunk/gb.compress.bzlib2/src ? > make[4]: entrant dans le r?pertoire ? > /home/riri/svn/trunk/gb.compress.bzlib2 ? > make[4]: quittant le r?pertoire ? /home/riri/svn/trunk/gb.compress.bzlib2 ? > make[3]: quittant le r?pertoire ? /home/riri/svn/trunk/gb.compress.bzlib2 ? > make[2]: quittant le r?pertoire ? /home/riri/svn/trunk/gb.compress.bzlib2 ? > Making all in gb.compress.zlib > make[2]: entrant dans le r?pertoire ? > /home/riri/svn/trunk/gb.compress.zlib ? > make all-recursive > make[3]: entrant dans le r?pertoire ? > /home/riri/svn/trunk/gb.compress.zlib ? > Making all in src > make[4]: entrant dans le r?pertoire ? > /home/riri/svn/trunk/gb.compress.zlib/src ? > /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. > -I.. -I/usr/local/include/vtk-5.8/vtkzlib/ -pipe -Wall > -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -MT main.lo > -MD -MP -MF .deps/main.Tpo -c -o main.lo main.c > libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. > -I/usr/local/include/vtk-5.8/vtkzlib/ -pipe -Wall -Wno-unused-value > -fsigned-char -fvisibility=hidden -g -Os -MT main.lo -MD -MP -MF > .deps/main.Tpo -c main.c -fPIC -DPIC -o .libs/main.o > In file included from /usr/local/include/vtk-5.8/vtkzlib/zlib.h:34:0, > from main.c:35: > /usr/local/include/vtk-5.8/vtkzlib/zconf.h:15:35: fatal error: > vtkzlib/zlibDllConfig.h: No such file or directory > compilation terminated. > make[4]: *** [main.lo] Erreur 1 > make[4]: quittant le r?pertoire ? > /home/riri/svn/trunk/gb.compress.zlib/src ? > make[3]: *** [all-recursive] Erreur 1 > make[3]: quittant le r?pertoire ? /home/riri/svn/trunk/gb.compress.zlib ? > make[2]: *** [all] Erreur 2 > make[2]: quittant le r?pertoire ? /home/riri/svn/trunk/gb.compress.zlib ? > make[1]: *** [all-recursive] Erreur 1 > make[1]: quittant le r?pertoire ? /home/riri/svn/trunk ? > make: *** [all] Erreur 2 > Apparently something located in /usr/local is incorrectly taken for the zlib.h header. If you remove it, things will go nicer. If you can't remove it, you will have to use "./configure" flags to tell where zlib.h is located. Regards, -- Beno?t Minisini From girardhenri at ...67... Wed Jan 18 14:09:52 2012 From: girardhenri at ...67... (Girard Henri) Date: Wed, 18 Jan 2012 14:09:52 +0100 Subject: [Gambas-user] ubuntu 12.04 error with libvtkzip or vtkzlib ? In-Reply-To: <4F16839B.8050909@...67...> References: <4F13C71C.8000608@...1887...> <4F13CC42.6010402@...1887...> <4F16839B.8050909@...67...> Message-ID: After I have been searching : files are in the right place but not found... Le 18/01/2012 09:32, Girard Henri a ?crit : > Hi, > > I have been running precise pangolin for few months now, gambas3 > compiled well... Today first time I have got this error, I can't find > this libvtkzlib, any help ? > regards > Henri > > ------------------------------------------------------------------------------------------------------------------ > > make[4]: quittant le r?pertoire ? > /home/riri/svn/trunk/gb.compress.bzlib2/src ? > make[4]: entrant dans le r?pertoire ? > /home/riri/svn/trunk/gb.compress.bzlib2 ? > make[4]: quittant le r?pertoire ? > /home/riri/svn/trunk/gb.compress.bzlib2 ? > make[3]: quittant le r?pertoire ? > /home/riri/svn/trunk/gb.compress.bzlib2 ? > make[2]: quittant le r?pertoire ? > /home/riri/svn/trunk/gb.compress.bzlib2 ? > Making all in gb.compress.zlib > make[2]: entrant dans le r?pertoire ? > /home/riri/svn/trunk/gb.compress.zlib ? > make all-recursive > make[3]: entrant dans le r?pertoire ? > /home/riri/svn/trunk/gb.compress.zlib ? > Making all in src > make[4]: entrant dans le r?pertoire ? > /home/riri/svn/trunk/gb.compress.zlib/src ? > /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. > -I.. -I/usr/local/include/vtk-5.8/vtkzlib/ -pipe -Wall > -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -MT > main.lo -MD -MP -MF .deps/main.Tpo -c -o main.lo main.c > libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. > -I/usr/local/include/vtk-5.8/vtkzlib/ -pipe -Wall -Wno-unused-value > -fsigned-char -fvisibility=hidden -g -Os -MT main.lo -MD -MP -MF > .deps/main.Tpo -c main.c -fPIC -DPIC -o .libs/main.o > In file included from /usr/local/include/vtk-5.8/vtkzlib/zlib.h:34:0, > from main.c:35: > /usr/local/include/vtk-5.8/vtkzlib/zconf.h:15:35: fatal error: > vtkzlib/zlibDllConfig.h: No such file or directory > compilation terminated. > make[4]: *** [main.lo] Erreur 1 > make[4]: quittant le r?pertoire ? > /home/riri/svn/trunk/gb.compress.zlib/src ? > make[3]: *** [all-recursive] Erreur 1 > make[3]: quittant le r?pertoire ? /home/riri/svn/trunk/gb.compress.zlib ? > make[2]: *** [all] Erreur 2 > make[2]: quittant le r?pertoire ? /home/riri/svn/trunk/gb.compress.zlib ? > make[1]: *** [all-recursive] Erreur 1 > make[1]: quittant le r?pertoire ? /home/riri/svn/trunk ? > make: *** [all] Erreur 2 > From mohareve at ...626... Wed Jan 18 14:17:58 2012 From: mohareve at ...626... (M. Cs.) Date: Wed, 18 Jan 2012 14:17:58 +0100 Subject: [Gambas-user] Database question Message-ID: Hi! Is there any built in function in Gambas3 which can secure the database connection from the errors caused by special characters? I have written functions for replacing the dangerous characters like ', +, . and so on, but I'd like to know whether there is a way to make queries secure from failures. Thanks! From Gambas at ...1950... Wed Jan 18 14:20:21 2012 From: Gambas at ...1950... (Caveat) Date: Wed, 18 Jan 2012 14:20:21 +0100 Subject: [Gambas-user] ubuntu 12.04 error with libvtkzip or vtkzlib ? In-Reply-To: References: <4F13C71C.8000608@...1887...> <4F13CC42.6010402@...1887...> <4F16839B.8050909@...67...> Message-ID: <1326892821.10679.534.camel@...2150...> Perhaps a permissions problem? You can sometimes get a not-found error for a file (in a dir) you have no permission to read... ls -l should tell you all you need to know... Also, I have gotten in the habit of doing a ./reconf-all before reporting compile errors as that sometimes helps sort out the problem. Regards, Caveat On Wed, 2012-01-18 at 14:09 +0100, Girard Henri wrote: > After I have been searching : files are in the right place but not found... > > Le 18/01/2012 09:32, Girard Henri a ?crit : > > Hi, > > > > I have been running precise pangolin for few months now, gambas3 > > compiled well... Today first time I have got this error, I can't find > > this libvtkzlib, any help ? > > regards > > Henri > > > > ------------------------------------------------------------------------------------------------------------------ > > > > make[4]: quittant le r?pertoire ? > > /home/riri/svn/trunk/gb.compress.bzlib2/src ? > > make[4]: entrant dans le r?pertoire ? > > /home/riri/svn/trunk/gb.compress.bzlib2 ? > > make[4]: quittant le r?pertoire ? > > /home/riri/svn/trunk/gb.compress.bzlib2 ? > > make[3]: quittant le r?pertoire ? > > /home/riri/svn/trunk/gb.compress.bzlib2 ? > > make[2]: quittant le r?pertoire ? > > /home/riri/svn/trunk/gb.compress.bzlib2 ? > > Making all in gb.compress.zlib > > make[2]: entrant dans le r?pertoire ? > > /home/riri/svn/trunk/gb.compress.zlib ? > > make all-recursive > > make[3]: entrant dans le r?pertoire ? > > /home/riri/svn/trunk/gb.compress.zlib ? > > Making all in src > > make[4]: entrant dans le r?pertoire ? > > /home/riri/svn/trunk/gb.compress.zlib/src ? > > /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. > > -I.. -I/usr/local/include/vtk-5.8/vtkzlib/ -pipe -Wall > > -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -MT > > main.lo -MD -MP -MF .deps/main.Tpo -c -o main.lo main.c > > libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. > > -I/usr/local/include/vtk-5.8/vtkzlib/ -pipe -Wall -Wno-unused-value > > -fsigned-char -fvisibility=hidden -g -Os -MT main.lo -MD -MP -MF > > .deps/main.Tpo -c main.c -fPIC -DPIC -o .libs/main.o > > In file included from /usr/local/include/vtk-5.8/vtkzlib/zlib.h:34:0, > > from main.c:35: > > /usr/local/include/vtk-5.8/vtkzlib/zconf.h:15:35: fatal error: > > vtkzlib/zlibDllConfig.h: No such file or directory > > compilation terminated. > > make[4]: *** [main.lo] Erreur 1 > > make[4]: quittant le r?pertoire ? > > /home/riri/svn/trunk/gb.compress.zlib/src ? > > make[3]: *** [all-recursive] Erreur 1 > > make[3]: quittant le r?pertoire ? /home/riri/svn/trunk/gb.compress.zlib ? > > make[2]: *** [all] Erreur 2 > > make[2]: quittant le r?pertoire ? /home/riri/svn/trunk/gb.compress.zlib ? > > make[1]: *** [all-recursive] Erreur 1 > > make[1]: quittant le r?pertoire ? /home/riri/svn/trunk ? > > make: *** [all] Erreur 2 > > > > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From tobiasboe1 at ...20... Wed Jan 18 14:49:29 2012 From: tobiasboe1 at ...20... (tobias) Date: Wed, 18 Jan 2012 14:49:29 +0100 Subject: [Gambas-user] Database question In-Reply-To: References: Message-ID: <4F16CDE9.10801@...20...> M. Cs. wrote: > Hi! > Is there any built in function in Gambas3 which can secure the > database connection from the errors caused by special characters? > > I have written functions for replacing the dangerous characters like > ', +, . and so on, but I'd like to know whether there is a way to make > queries secure from failures. > > Thanks! > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user there was (once? in gb2) a Quote class in gb that implemented a Shell function used for quoting a string for use in a shell. do you mean something like that? (preventing sql injection?) btw, where has this class gone in gb3? From john.aaron.rose at ...1601... Wed Jan 18 15:44:32 2012 From: john.aaron.rose at ...1601... (John Rose) Date: Wed, 18 Jan 2012 14:44:32 +0000 Subject: [Gambas-user] Suppressing display of hidden files by Dialog's OpenFile & SaveFile functions Message-ID: When I use Dialog's OpenFile & SaveFile functions, the popup always shows hidden files. Is there a way of suppressing their display? If not, where is the best place for suggesting improvements to Gambas? From bespalov.av at ...626... Wed Jan 18 15:52:32 2012 From: bespalov.av at ...626... (=?KOI8-R?B?4czFy9PFyiDixdPQwczP1w==?=) Date: Wed, 18 Jan 2012 20:52:32 +0600 Subject: [Gambas-user] Which container to use for Draw Image? Message-ID: Hi! Please help me. Which container to use for Draw Image? So you can determine which of Image Clicked. I used to DrawArea at HPanel. But I do not know how to identify the object in the event DrawArea Click (). This is part my code: -------------------------------------------------- Public Sub DrawImages(mhImage As Image[], Parent As Container, SizeArea As Integer) Dim hImage As Image Dim hArea As DrawingArea MVars.mAreas.Clear() Parent.Children.Clear() For Each hImage In mhImage hArea = New DrawingArea(Parent) Object.Attach(hArea, FMain, "hArea") MVars.mAreas.Add(hArea) hArea.Cached = True hArea.Border = 2 DrawImage(hImage, hArea, SizeArea) 'Draw Image on hArea Next End ---------------------------------------------------- In FMain code: ---------------------------------------------------- Public Sub hArea_DblClick() Message.Info("!!!") End ---------------------------------------------------- It is work. But can i determine which of Image i Clicked?? -- ____ ? ????????? ???????. From tobiasboe1 at ...20... Wed Jan 18 15:58:44 2012 From: tobiasboe1 at ...20... (tobias) Date: Wed, 18 Jan 2012 15:58:44 +0100 Subject: [Gambas-user] Which container to use for Draw Image? In-Reply-To: References: Message-ID: <4F16DE24.9040903@...20...> ??????? ???????? schrieb: > Hi! > Please help me. > > > Which container to use for Draw Image? > So you can determine which of Image Clicked. > > I used to DrawArea at HPanel. But I do not know how to identify the object in > the event DrawArea Click (). > > This is part my code: > > -------------------------------------------------- > Public Sub DrawImages(mhImage As Image[], Parent As Container, SizeArea As > Integer) > Dim hImage As Image > Dim hArea As DrawingArea > > MVars.mAreas.Clear() > Parent.Children.Clear() > > For Each hImage In mhImage > hArea = New DrawingArea(Parent) > Object.Attach(hArea, FMain, "hArea") > MVars.mAreas.Add(hArea) > > hArea.Cached = True > hArea.Border = 2 > > DrawImage(hImage, hArea, SizeArea) 'Draw Image on hArea > Next > End > ---------------------------------------------------- > > In FMain code: > > ---------------------------------------------------- > Public Sub hArea_DblClick() > Message.Info("!!!") > End > ---------------------------------------------------- > It is work. But can i determine which of Image i Clicked?? > since you create multiple DrawingAreas with the same event name, so all objects individually will raise the hArea_DblClick event. but there is one trick: the object that raised a particular event can be referred to from within the event handler by using the Last object. consequently Last will be a reference to the particular DrawingArea dblclicked. From bespalov.av at ...626... Wed Jan 18 16:13:44 2012 From: bespalov.av at ...626... (=?KOI8-R?B?4czFy9PFyiDixdPQwczP1w==?=) Date: Wed, 18 Jan 2012 21:13:44 +0600 Subject: [Gambas-user] Which container to use for Draw Image? In-Reply-To: <4F16DE24.9040903@...20...> References: <4F16DE24.9040903@...20...> Message-ID: Thank you, tobias! But I do not quite understand what you mean. Could give an example of code? 18 ?????? 2012 ?. 21:58 ???????????? tobias ???????: > ??????? ???????? schrieb: > > Hi! > > Please help me. > > > > > > Which container to use for Draw Image? > > So you can determine which of Image Clicked. > > > > I used to DrawArea at HPanel. But I do not know how to identify the > object in > > the event DrawArea Click (). > > > > This is part my code: > > > > -------------------------------------------------- > > Public Sub DrawImages(mhImage As Image[], Parent As Container, SizeArea > As > > Integer) > > Dim hImage As Image > > Dim hArea As DrawingArea > > > > MVars.mAreas.Clear() > > Parent.Children.Clear() > > > > For Each hImage In mhImage > > hArea = New DrawingArea(Parent) > > Object.Attach(hArea, FMain, "hArea") > > MVars.mAreas.Add(hArea) > > > > hArea.Cached = True > > hArea.Border = 2 > > > > DrawImage(hImage, hArea, SizeArea) 'Draw Image on hArea > > Next > > End > > ---------------------------------------------------- > > > > In FMain code: > > > > ---------------------------------------------------- > > Public Sub hArea_DblClick() > > Message.Info("!!!") > > End > > ---------------------------------------------------- > > It is work. But can i determine which of Image i Clicked?? > > > > since you create multiple DrawingAreas with the same event name, so all > objects individually will raise the hArea_DblClick event. > but there is one trick: the object that raised a particular event can be > referred to from within the event handler by using the Last object. > consequently Last will be a reference to the particular DrawingArea > dblclicked. > > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- ____ ? ????????? ???????. From tobiasboe1 at ...20... Wed Jan 18 16:18:38 2012 From: tobiasboe1 at ...20... (tobias) Date: Wed, 18 Jan 2012 16:18:38 +0100 Subject: [Gambas-user] Which container to use for Draw Image? In-Reply-To: References: <4F16DE24.9040903@...20...> Message-ID: <4F16E2CE.9030708@...20...> ??????? ???????? schrieb: > Thank you, tobias! > But I do not quite understand what you mean. > Could give an example of code? > > 18 ?????? 2012 ?. 21:58 ???????????? tobias ???????: > >> ??????? ???????? schrieb: >>> Hi! >>> Please help me. >>> >>> >>> Which container to use for Draw Image? >>> So you can determine which of Image Clicked. >>> >>> I used to DrawArea at HPanel. But I do not know how to identify the >> object in >>> the event DrawArea Click (). >>> >>> This is part my code: >>> >>> -------------------------------------------------- >>> Public Sub DrawImages(mhImage As Image[], Parent As Container, SizeArea >> As >>> Integer) >>> Dim hImage As Image >>> Dim hArea As DrawingArea >>> >>> MVars.mAreas.Clear() >>> Parent.Children.Clear() >>> >>> For Each hImage In mhImage >>> hArea = New DrawingArea(Parent) >>> Object.Attach(hArea, FMain, "hArea") >>> MVars.mAreas.Add(hArea) >>> >>> hArea.Cached = True >>> hArea.Border = 2 >>> >>> DrawImage(hImage, hArea, SizeArea) 'Draw Image on hArea >>> Next >>> End >>> ---------------------------------------------------- >>> >>> In FMain code: >>> >>> ---------------------------------------------------- >>> Public Sub hArea_DblClick() >>> Message.Info("!!!") >>> End >>> ---------------------------------------------------- >>> It is work. But can i determine which of Image i Clicked?? >>> >> since you create multiple DrawingAreas with the same event name, so all >> objects individually will raise the hArea_DblClick event. >> but there is one trick: the object that raised a particular event can be >> referred to from within the event handler by using the Last object. >> consequently Last will be a reference to the particular DrawingArea >> dblclicked. >> >> i think source code was originally invented to break the language barrier ;) Public Sub hArea_DblClick() Print Last.Cached End this will print out the value of the particular DrawingArea.Cached property. (sry, nothing useful came into my mind with the DrawingArea class...). see gambasdoc.org/help/lang/last?v3 for details. From bespalov.av at ...626... Wed Jan 18 16:32:34 2012 From: bespalov.av at ...626... (=?KOI8-R?B?4czFy9PFyiDixdPQwczP1w==?=) Date: Wed, 18 Jan 2012 21:32:34 +0600 Subject: [Gambas-user] Which container to use for Draw Image? In-Reply-To: <4F16E2CE.9030708@...20...> References: <4F16DE24.9040903@...20...> <4F16E2CE.9030708@...20...> Message-ID: Thank you, this is what I need. I will try. 18 ?????? 2012 ?. 22:18 ???????????? tobias ???????: > ??????? ???????? schrieb: > > Thank you, tobias! > > But I do not quite understand what you mean. > > Could give an example of code? > > > > 18 ?????? 2012 ?. 21:58 ???????????? tobias ???????: > > > >> ??????? ???????? schrieb: > >>> Hi! > >>> Please help me. > >>> > >>> > >>> Which container to use for Draw Image? > >>> So you can determine which of Image Clicked. > >>> > >>> I used to DrawArea at HPanel. But I do not know how to identify the > >> object in > >>> the event DrawArea Click (). > >>> > >>> This is part my code: > >>> > >>> -------------------------------------------------- > >>> Public Sub DrawImages(mhImage As Image[], Parent As Container, SizeArea > >> As > >>> Integer) > >>> Dim hImage As Image > >>> Dim hArea As DrawingArea > >>> > >>> MVars.mAreas.Clear() > >>> Parent.Children.Clear() > >>> > >>> For Each hImage In mhImage > >>> hArea = New DrawingArea(Parent) > >>> Object.Attach(hArea, FMain, "hArea") > >>> MVars.mAreas.Add(hArea) > >>> > >>> hArea.Cached = True > >>> hArea.Border = 2 > >>> > >>> DrawImage(hImage, hArea, SizeArea) 'Draw Image on hArea > >>> Next > >>> End > >>> ---------------------------------------------------- > >>> > >>> In FMain code: > >>> > >>> ---------------------------------------------------- > >>> Public Sub hArea_DblClick() > >>> Message.Info("!!!") > >>> End > >>> ---------------------------------------------------- > >>> It is work. But can i determine which of Image i Clicked?? > >>> > >> since you create multiple DrawingAreas with the same event name, so all > >> objects individually will raise the hArea_DblClick event. > >> but there is one trick: the object that raised a particular event can be > >> referred to from within the event handler by using the Last object. > >> consequently Last will be a reference to the particular DrawingArea > >> dblclicked. > >> > >> > > i think source code was originally invented to break the language barrier > ;) > > Public Sub hArea_DblClick() > Print Last.Cached > End > > this will print out the value of the particular DrawingArea.Cached > property. (sry, nothing useful came into my mind with the DrawingArea > class...). see gambasdoc.org/help/lang/last?v3 for details. > > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- ____ ? ????????? ???????. From sebikul at ...626... Wed Jan 18 16:35:41 2012 From: sebikul at ...626... (Sebi) Date: Wed, 18 Jan 2012 15:35:41 +0000 Subject: [Gambas-user] Database question In-Reply-To: <4F16CDE9.10801@...20...> References: <4F16CDE9.10801@...20...> Message-ID: <746325262-1326900943-cardhu_decombobulator_blackberry.rim.net-1214155685-@...2753...> The function you are talking about is Shell(string). But it's useless in this case, as it escapes spaces and other characters others than the needed to avoid sql injection techniques. -----Original Message----- From: tobias Date: Wed, 18 Jan 2012 14:49:29 To: mailing list for gambas users Reply-To: mailing list for gambas users Subject: Re: [Gambas-user] Database question M. Cs. wrote: > Hi! > Is there any built in function in Gambas3 which can secure the > database connection from the errors caused by special characters? > > I have written functions for replacing the dangerous characters like > ', +, . and so on, but I'd like to know whether there is a way to make > queries secure from failures. > > Thanks! > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user there was (once? in gb2) a Quote class in gb that implemented a Shell function used for quoting a string for use in a shell. do you mean something like that? (preventing sql injection?) btw, where has this class gone in gb3? ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Wed Jan 18 19:15:35 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Wed, 18 Jan 2012 19:15:35 +0100 Subject: [Gambas-user] Database question In-Reply-To: References: Message-ID: <4F170C47.3050004@...1...> Le 18/01/2012 14:17, M. Cs. a ?crit : > Hi! > Is there any built in function in Gambas3 which can secure the > database connection from the errors caused by special characters? > > I have written functions for replacing the dangerous characters like > ', +, . and so on, but I'd like to know whether there is a way to make > queries secure from failures. > > Thanks! > SQL quoting is automatically done by the following methods of the Connection class: Exec(), Find(), Edit(), Delete(), Subst(), provided that: - You use "&1", "&2"... inside the request string to tell where quoted arguments must be inserted. - You actually pass these arguments. Is it what you need? -- Beno?t Minisini From mohareve at ...626... Wed Jan 18 19:33:45 2012 From: mohareve at ...626... (M. Cs.) Date: Wed, 18 Jan 2012 19:33:45 +0100 Subject: [Gambas-user] Database question In-Reply-To: <4F170C47.3050004@...1...> References: <4F170C47.3050004@...1...> Message-ID: Yes, Benoit. I'll check the documentation, since I always used the Myconnection.Exec("SELECT FROM table WHERE field='"& myvar & "';) form of the querying, and now I would like to change it to a more convenient way, since I always had to assure myvar is safe. 2012/1/18, Beno?t Minisini : > Le 18/01/2012 14:17, M. Cs. a ?crit : >> Hi! >> Is there any built in function in Gambas3 which can secure the >> database connection from the errors caused by special characters? >> >> I have written functions for replacing the dangerous characters like >> ', +, . and so on, but I'd like to know whether there is a way to make >> queries secure from failures. >> >> Thanks! >> > > SQL quoting is automatically done by the following methods of the > Connection class: Exec(), Find(), Edit(), Delete(), Subst(), provided that: > > - You use "&1", "&2"... inside the request string to tell where quoted > arguments must be inserted. > > - You actually pass these arguments. > > Is it what you need? > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From john.aaron.rose at ...1601... Wed Jan 18 19:42:52 2012 From: john.aaron.rose at ...1601... (John Rose) Date: Wed, 18 Jan 2012 18:42:52 +0000 Subject: [Gambas-user] 'Null object' when loading image from a .jpg file Message-ID: I get a popup window containing 'Null object' at runtime (which unfortunately does not point at problem line of code, though I think that it must be 'image = Image.Load(Dialog.Path)') with following code, when I click ButtonImportImage: CodePublic Sub ButtonImportImage_Click() Dim image As Image Inc Application.Busy Dialog.Filter = ImageFileFilter(True) Dialog.Title = "Import Image" ' load image If Dialog.OpenFile() Then Return Print "import image path=", Dialog.Path image = Image.Load(Dialog.Path) ' save image & thumb to temp files SaveImageAndThumb(image) ButtonExportImage.Enabled = True Finally Dec Application.Busy Catch Message.Warning(ERROR.Text) End On execution, TempImagePath is valid and points to a .jpg file which loads with Graphics apps such as gThumbThumbViewer. I'm baffled as to the cause. Any ideas? Grasping at straws: I'm using Gambas3 with SQLite 3.6.22. I just noticed that Gambas3 has a new component gb.image.io - image loading & saving. If I try and select it (in Project Properties) it seems to be incompatible with gb.gui, gb.gtk & gb.qt4. Perhaps it's needed for the Image.Load line - I need to load an Image for the SaveImageAndThumb procedure (which is working when called by another Sub). From gambas at ...1... Wed Jan 18 20:00:44 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Wed, 18 Jan 2012 20:00:44 +0100 Subject: [Gambas-user] 'Null object' when loading image from a .jpg file In-Reply-To: References: Message-ID: <4F1716DC.6060606@...1...> Le 18/01/2012 19:42, John Rose a ?crit : > I get a popup window containing 'Null object' at runtime (which > unfortunately does not point at problem line of code, though I think that > it must be 'image = Image.Load(Dialog.Path)') with following code, when I > click ButtonImportImage: > CodePublic Sub ButtonImportImage_Click() > Dim image As Image > Inc Application.Busy > Dialog.Filter = ImageFileFilter(True) > Dialog.Title = "Import Image" > ' load image > If Dialog.OpenFile() Then Return > Print "import image path=", Dialog.Path > image = Image.Load(Dialog.Path) > ' save image& thumb to temp files > SaveImageAndThumb(image) > ButtonExportImage.Enabled = True > Finally > Dec Application.Busy > Catch > Message.Warning(ERROR.Text) > End > On execution, TempImagePath is valid and points to a .jpg file which loads > with Graphics apps such as gThumbThumbViewer. I'm baffled as to the cause. > Any ideas? > > Grasping at straws: I'm using Gambas3 with SQLite 3.6.22. I just noticed > that Gambas3 has a new component gb.image.io - image loading& saving. If I > try and select it (in Project Properties) it seems to be incompatible with > gb.gui, gb.gtk& gb.qt4. Perhaps it's needed for the Image.Load line - I > need to load an Image for the SaveImageAndThumb procedure (which is working > when called by another Sub). Please provide a full project that reproduces your problem. Regards, -- Beno?t Minisini From girardhenri at ...67... Wed Jan 18 21:50:46 2012 From: girardhenri at ...67... (girard henri) Date: Wed, 18 Jan 2012 21:50:46 +0100 Subject: [Gambas-user] ubuntu 12.04 error with libvtkzip or vtkzlib ? In-Reply-To: References: <4F13C71C.8000608@...1887...> <4F13CC42.6010402@...1887...> Message-ID: I reinstalled from scrash pangolin and there is no more problem... I guess a bad vtk installation ? Le 18/01/2012 09:32, Girard Henri a ?crit : > Hi, > > I have been running precise pangolin for few months now, gambas3 > compiled well... Today first time I have got this error, I can't find > this libvtkzlib, any help ? > regards > Henri > > ------------------------------------------------------------------------------------------------------------------ > make[4]: quittant le r?pertoire ? > /home/riri/svn/trunk/gb.compress.bzlib2/src ? > make[4]: entrant dans le r?pertoire ? > /home/riri/svn/trunk/gb.compress.bzlib2 ? > make[4]: quittant le r?pertoire ? /home/riri/svn/trunk/gb.compress.bzlib2 ? > make[3]: quittant le r?pertoire ? /home/riri/svn/trunk/gb.compress.bzlib2 ? > make[2]: quittant le r?pertoire ? /home/riri/svn/trunk/gb.compress.bzlib2 ? > Making all in gb.compress.zlib > make[2]: entrant dans le r?pertoire ? > /home/riri/svn/trunk/gb.compress.zlib ? > make all-recursive > make[3]: entrant dans le r?pertoire ? > /home/riri/svn/trunk/gb.compress.zlib ? > Making all in src > make[4]: entrant dans le r?pertoire ? > /home/riri/svn/trunk/gb.compress.zlib/src ? > /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. > -I.. -I/usr/local/include/vtk-5.8/vtkzlib/ -pipe -Wall > -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -MT main.lo > -MD -MP -MF .deps/main.Tpo -c -o main.lo main.c > libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. > -I/usr/local/include/vtk-5.8/vtkzlib/ -pipe -Wall -Wno-unused-value > -fsigned-char -fvisibility=hidden -g -Os -MT main.lo -MD -MP -MF > .deps/main.Tpo -c main.c -fPIC -DPIC -o .libs/main.o > In file included from /usr/local/include/vtk-5.8/vtkzlib/zlib.h:34:0, > from main.c:35: > /usr/local/include/vtk-5.8/vtkzlib/zconf.h:15:35: fatal error: > vtkzlib/zlibDllConfig.h: No such file or directory > compilation terminated. > make[4]: *** [main.lo] Erreur 1 > make[4]: quittant le r?pertoire ? > /home/riri/svn/trunk/gb.compress.zlib/src ? > make[3]: *** [all-recursive] Erreur 1 > make[3]: quittant le r?pertoire ? /home/riri/svn/trunk/gb.compress.zlib ? > make[2]: *** [all] Erreur 2 > make[2]: quittant le r?pertoire ? /home/riri/svn/trunk/gb.compress.zlib ? > make[1]: *** [all-recursive] Erreur 1 > make[1]: quittant le r?pertoire ? /home/riri/svn/trunk ? > make: *** [all] Erreur 2 > > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From gambas at ...2524... Wed Jan 18 23:22:17 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 18 Jan 2012 22:22:17 +0000 Subject: [Gambas-user] Issue 194 in gambas: "IIf" is buggy Message-ID: <0-6813199134517018827-15360940081847258855-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 194 by emil.len... at ...626...: "IIf" is buggy http://code.google.com/p/gambas/issues/detail?id=194 1) Describe the problem. IIf does not do the correct job when the true part and false part are of different types. 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: TRUNK Revision: r4404 3) Provide a little project that reproduces the bug or the crash. Dim i As Integer For i = 1 To 2 Print Int(IIf(i = 1, 1.0, 1)) Next 5) Explain clearly how to reproduce the bug or the crash. Running the code above prints out 1 0 when 1 1 is expected. This is due to that first time IIf returns a Float, but second time an Integer. IIf should convert the return value to the one that SUBR_check_good_type returns or something..., that is almost already implemented ;) This is the current code: void SUBR_if(ushort code) { TYPE type; SUBR_ENTER_PARAM(3); VALUE_conv_boolean(PARAM); switch (code & 0x1F) { case 0: type = SUBR_check_good_type(&PARAM[1], 2); if (type != T_VARIANT) { *PC |= 1; goto __TYPE; } else { *PC |= 2; goto __VARIANT; } case 1: __TYPE: *RETURN = PARAM->_boolean.value ? PARAM[1] : PARAM[2]; break; case 2: __VARIANT: if (PARAM->_boolean.value) { VALUE_conv_variant(&PARAM[1]); *RETURN = PARAM[1]; } else { VALUE_conv_variant(&PARAM[2]); *RETURN = PARAM[2]; } break; } SUBR_LEAVE(); } From john.aaron.rose at ...1601... Wed Jan 18 23:46:38 2012 From: john.aaron.rose at ...1601... (John Rose) Date: Wed, 18 Jan 2012 22:46:38 +0000 Subject: [Gambas-user] 'Null object' when loading image from a .jpg file Message-ID: Project attached as requested. -------------- next part -------------- A non-text attachment was scrubbed... Name: JewishHeritage.tar.gz Type: application/x-gzip Size: 30243 bytes Desc: not available URL: From rmorgan62 at ...626... Wed Jan 18 23:58:55 2012 From: rmorgan62 at ...626... (Randall Morgan) Date: Wed, 18 Jan 2012 14:58:55 -0800 Subject: [Gambas-user] Issue 194 in gambas: "IIf" is buggy In-Reply-To: <0-6813199134517018827-15360940081847258855-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-15360940081847258855-gambas=googlecode.com@...2524...> Message-ID: I think the result is correct. I would expect a result of 1,0 as 1 is equal to 1 but 2 is not equal to 1. On Wed, Jan 18, 2012 at 2:22 PM, wrote: > Status: New > Owner: ---- > Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any > Desktop-Any GUI-Any > > New issue 194 by emil.len... at ...626...: "IIf" is buggy > http://code.google.com/p/gambas/issues/detail?id=194 > > 1) Describe the problem. > IIf does not do the correct job when the true part and false part are of > different types. > > 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): > > Version: TRUNK > Revision: r4404 > > 3) Provide a little project that reproduces the bug or the crash. > Dim i As Integer > For i = 1 To 2 > Print Int(IIf(i = 1, 1.0, 1)) > Next > > 5) Explain clearly how to reproduce the bug or the crash. > Running the code above prints out > 1 > 0 > when > 1 > 1 > is expected. This is due to that first time IIf returns a Float, but second > time an Integer. IIf should convert the return value to the one that > SUBR_check_good_type returns or something..., that is almost already > implemented ;) > > This is the current code: > > void SUBR_if(ushort code) > { > TYPE type; > SUBR_ENTER_PARAM(3); > > VALUE_conv_boolean(PARAM); > > switch (code & 0x1F) > { > case 0: > > type = SUBR_check_good_type(&PARAM[1], 2); > if (type != T_VARIANT) > { > *PC |= 1; > goto __TYPE; > } > else > { > *PC |= 2; > goto __VARIANT; > } > > case 1: > __TYPE: > > *RETURN = PARAM->_boolean.value ? PARAM[1] : > PARAM[2]; > > break; > > case 2: > __VARIANT: > > if (PARAM->_boolean.value) > { > VALUE_conv_variant(&PARAM[1]); > *RETURN = PARAM[1]; > } > else > { > VALUE_conv_variant(&PARAM[2]); > *RETURN = PARAM[2]; > } > > break; > } > > SUBR_LEAVE(); > } > > > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- If you ask me if it can be done. The answer is YES, it can always be done. The correct questions however are... What will it cost, and how long will it take? From emil.lenngren at ...626... Thu Jan 19 00:04:34 2012 From: emil.lenngren at ...626... (Emil Lenngren) Date: Thu, 19 Jan 2012 00:04:34 +0100 Subject: [Gambas-user] Issue 194 in gambas: "IIf" is buggy In-Reply-To: References: <0-6813199134517018827-15360940081847258855-gambas=googlecode.com@...2524...> Message-ID: No :) It should print the same as: Print IIf(True, 1.0, 1) Print IIf(False, 1.0, 1) which prints 1 1 2012/1/18 Randall Morgan > I think the result is correct. I would expect a result of 1,0 as 1 is equal > to 1 but 2 is not equal to 1. > > On Wed, Jan 18, 2012 at 2:22 PM, wrote: > > > Status: New > > Owner: ---- > > Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any > > Desktop-Any GUI-Any > > > > New issue 194 by emil.len... at ...626...: "IIf" is buggy > > http://code.google.com/p/gambas/issues/detail?id=194 > > > > 1) Describe the problem. > > IIf does not do the correct job when the true part and false part are of > > different types. > > > > 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): > > > > Version: TRUNK > > Revision: r4404 > > > > 3) Provide a little project that reproduces the bug or the crash. > > Dim i As Integer > > For i = 1 To 2 > > Print Int(IIf(i = 1, 1.0, 1)) > > Next > > > > 5) Explain clearly how to reproduce the bug or the crash. > > Running the code above prints out > > 1 > > 0 > > when > > 1 > > 1 > > is expected. This is due to that first time IIf returns a Float, but > second > > time an Integer. IIf should convert the return value to the one that > > SUBR_check_good_type returns or something..., that is almost already > > implemented ;) > > > > This is the current code: > > > > void SUBR_if(ushort code) > > { > > TYPE type; > > SUBR_ENTER_PARAM(3); > > > > VALUE_conv_boolean(PARAM); > > > > switch (code & 0x1F) > > { > > case 0: > > > > type = SUBR_check_good_type(&PARAM[1], 2); > > if (type != T_VARIANT) > > { > > *PC |= 1; > > goto __TYPE; > > } > > else > > { > > *PC |= 2; > > goto __VARIANT; > > } > > > > case 1: > > __TYPE: > > > > *RETURN = PARAM->_boolean.value ? PARAM[1] : > > PARAM[2]; > > > > break; > > > > case 2: > > __VARIANT: > > > > if (PARAM->_boolean.value) > > { > > VALUE_conv_variant(&PARAM[1]); > > *RETURN = PARAM[1]; > > } > > else > > { > > VALUE_conv_variant(&PARAM[2]); > > *RETURN = PARAM[2]; > > } > > > > break; > > } > > > > SUBR_LEAVE(); > > } > > > > > > > > > ------------------------------------------------------------------------------ > > Keep Your Developer Skills Current with LearnDevNow! > > The most comprehensive online learning library for Microsoft developers > > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > > Metro Style Apps, more. Free future releases when you subscribe now! > > http://p.sf.net/sfu/learndevnow-d2d > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > -- > If you ask me if it can be done. The answer is YES, it can always be done. > The correct questions however are... What will it cost, and how long will > it take? > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From rmorgan62 at ...626... Thu Jan 19 00:17:07 2012 From: rmorgan62 at ...626... (Randall Morgan) Date: Wed, 18 Jan 2012 15:17:07 -0800 Subject: [Gambas-user] Issue 194 in gambas: "IIf" is buggy In-Reply-To: References: <0-6813199134517018827-15360940081847258855-gambas=googlecode.com@...2524...> Message-ID: Yes, you're right. I didn't look at your code close enough before I stuck my foot in my mouth ;-) On Wed, Jan 18, 2012 at 3:04 PM, Emil Lenngren wrote: > No :) > It should print the same as: > Print IIf(True, 1.0, 1) > Print IIf(False, 1.0, 1) > which prints > 1 > 1 > > 2012/1/18 Randall Morgan > > > I think the result is correct. I would expect a result of 1,0 as 1 is > equal > > to 1 but 2 is not equal to 1. > > > > On Wed, Jan 18, 2012 at 2:22 PM, wrote: > > > > > Status: New > > > Owner: ---- > > > Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any > > > Desktop-Any GUI-Any > > > > > > New issue 194 by emil.len... at ...626...: "IIf" is buggy > > > http://code.google.com/p/gambas/issues/detail?id=194 > > > > > > 1) Describe the problem. > > > IIf does not do the correct job when the true part and false part are > of > > > different types. > > > > > > 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): > > > > > > Version: TRUNK > > > Revision: r4404 > > > > > > 3) Provide a little project that reproduces the bug or the crash. > > > Dim i As Integer > > > For i = 1 To 2 > > > Print Int(IIf(i = 1, 1.0, 1)) > > > Next > > > > > > 5) Explain clearly how to reproduce the bug or the crash. > > > Running the code above prints out > > > 1 > > > 0 > > > when > > > 1 > > > 1 > > > is expected. This is due to that first time IIf returns a Float, but > > second > > > time an Integer. IIf should convert the return value to the one that > > > SUBR_check_good_type returns or something..., that is almost already > > > implemented ;) > > > > > > This is the current code: > > > > > > void SUBR_if(ushort code) > > > { > > > TYPE type; > > > SUBR_ENTER_PARAM(3); > > > > > > VALUE_conv_boolean(PARAM); > > > > > > switch (code & 0x1F) > > > { > > > case 0: > > > > > > type = SUBR_check_good_type(&PARAM[1], 2); > > > if (type != T_VARIANT) > > > { > > > *PC |= 1; > > > goto __TYPE; > > > } > > > else > > > { > > > *PC |= 2; > > > goto __VARIANT; > > > } > > > > > > case 1: > > > __TYPE: > > > > > > *RETURN = PARAM->_boolean.value ? PARAM[1] : > > > PARAM[2]; > > > > > > break; > > > > > > case 2: > > > __VARIANT: > > > > > > if (PARAM->_boolean.value) > > > { > > > VALUE_conv_variant(&PARAM[1]); > > > *RETURN = PARAM[1]; > > > } > > > else > > > { > > > VALUE_conv_variant(&PARAM[2]); > > > *RETURN = PARAM[2]; > > > } > > > > > > break; > > > } > > > > > > SUBR_LEAVE(); > > > } > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > Keep Your Developer Skills Current with LearnDevNow! > > > The most comprehensive online learning library for Microsoft developers > > > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, > MVC3, > > > Metro Style Apps, more. Free future releases when you subscribe now! > > > http://p.sf.net/sfu/learndevnow-d2d > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > -- > > If you ask me if it can be done. The answer is YES, it can always be > done. > > The correct questions however are... What will it cost, and how long will > > it take? > > > > > ------------------------------------------------------------------------------ > > Keep Your Developer Skills Current with LearnDevNow! > > The most comprehensive online learning library for Microsoft developers > > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > > Metro Style Apps, more. Free future releases when you subscribe now! > > http://p.sf.net/sfu/learndevnow-d2d > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- If you ask me if it can be done. The answer is YES, it can always be done. The correct questions however are... What will it cost, and how long will it take? From gambas at ...2524... Thu Jan 19 01:26:26 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 19 Jan 2012 00:26:26 +0000 Subject: [Gambas-user] Issue 195 in gambas: The bit manipulation functions does not work correctly on Shorts when negative values are returned Message-ID: <0-6813199134517018827-3980911674262998236-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 195 by emil.len... at ...626...: The bit manipulation functions does not work correctly on Shorts when negative values are returned http://code.google.com/p/gambas/issues/detail?id=195 1) Describe the problem. The bit manipulation functions at http://gambasdoc.org/help/cat/bit?v3 does not work correctly when negative Shorts are returned. If, for example, the return value should be -1, it actually returns a Short with the value 65535 (which is outside the Short range!). 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: TRUNK Revision: r4404 3) Provide a little project that reproduces the bug or the crash. Print Asr(CShort(-4), 1) '=> 65534 Print BSet(CShort(-2), 0) '=> 65535 Print Ror(CShort(1), 1) '=> 32768 Print Shl(CShort(-1), 0) '=> 65535 And a little tip for the Shr/Asr implementation: Are this kind of code really needed? val = (((int)val >> bit) & 0x7FFFFFFF) | (((int)val) & 0x80000000); Wouldn't it be enough with: val = ((int)val >> bit); since >> with signed datatypes in C already keeps the sign? From gambas at ...2524... Thu Jan 19 01:49:36 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 19 Jan 2012 00:49:36 +0000 Subject: [Gambas-user] Issue 194 in gambas: "IIf" is buggy In-Reply-To: <0-6813199134517018827-15360940081847258855-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-15360940081847258855-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-15360940081847258855-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -Version Version-TRUNK Comment #1 on issue 194 by benoit.m... at ...626...: "IIf" is buggy http://code.google.com/p/gambas/issues/detail?id=194 (No comment was entered for this change.) From gambas at ...2524... Thu Jan 19 02:07:44 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 19 Jan 2012 01:07:44 +0000 Subject: [Gambas-user] Issue 4 in gambas: Autosizing and centering a label does not center a label In-Reply-To: <3-6813199134517018827-14811208213942043935-gambas=googlecode.com@...2524...> References: <3-6813199134517018827-14811208213942043935-gambas=googlecode.com@...2524...> <0-6813199134517018827-14811208213942043935-gambas=googlecode.com@...2524...> Message-ID: <4-6813199134517018827-14811208213942043935-gambas=googlecode.com@...2524...> Updates: Labels: GUI-Any Comment #4 on issue 4 by benoit.m... at ...626...: Autosizing and centering a label does not center a label http://code.google.com/p/gambas/issues/detail?id=4 (No comment was entered for this change.) From gambas at ...2524... Thu Jan 19 02:11:47 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 19 Jan 2012 01:11:47 +0000 Subject: [Gambas-user] Issue 5 in gambas: GUI crash on menu editor In-Reply-To: <3-6813199134517018827-4365405718336369436-gambas=googlecode.com@...2524...> References: <3-6813199134517018827-4365405718336369436-gambas=googlecode.com@...2524...> <0-6813199134517018827-4365405718336369436-gambas=googlecode.com@...2524...> Message-ID: <4-6813199134517018827-4365405718336369436-gambas=googlecode.com@...2524...> Updates: Labels: GUI-Any Comment #4 on issue 5 by benoit.m... at ...626...: GUI crash on menu editor http://code.google.com/p/gambas/issues/detail?id=5 (No comment was entered for this change.) From gambas at ...2524... Thu Jan 19 02:15:49 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 19 Jan 2012 01:15:49 +0000 Subject: [Gambas-user] Issue 12 in gambas: Disabled timer keep running In-Reply-To: <1-6813199134517018827-1818788958963045096-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-1818788958963045096-gambas=googlecode.com@...2524...> <0-6813199134517018827-1818788958963045096-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-1818788958963045096-gambas=googlecode.com@...2524...> Updates: Status: WontFix Comment #2 on issue 12 by benoit.m... at ...626...: Disabled timer keep running http://code.google.com/p/gambas/issues/detail?id=12 No news from one year, I close the issue! From gambas at ...2524... Thu Jan 19 02:26:54 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 19 Jan 2012 01:26:54 +0000 Subject: [Gambas-user] Issue 194 in gambas: "IIf" is buggy In-Reply-To: <1-6813199134517018827-15360940081847258855-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-15360940081847258855-gambas=googlecode.com@...2524...> <0-6813199134517018827-15360940081847258855-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-15360940081847258855-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #2 on issue 194 by benoit.m... at ...626...: "IIf" is buggy http://code.google.com/p/gambas/issues/detail?id=194 It should be fixed in revision #4405. From gambas at ...2524... Thu Jan 19 02:35:57 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 19 Jan 2012 01:35:57 +0000 Subject: [Gambas-user] Issue 195 in gambas: The bit manipulation functions does not work correctly on Shorts when negative values are returned In-Reply-To: <0-6813199134517018827-3980911674262998236-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-3980911674262998236-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-3980911674262998236-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -Version Version-TRUNK Comment #1 on issue 195 by benoit.m... at ...626...: The bit manipulation functions does not work correctly on Shorts when negative values are returned http://code.google.com/p/gambas/issues/detail?id=195 (No comment was entered for this change.) From gambas at ...2524... Thu Jan 19 02:40:00 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 19 Jan 2012 01:40:00 +0000 Subject: [Gambas-user] Issue 195 in gambas: The bit manipulation functions does not work correctly on Shorts when negative values are returned In-Reply-To: <1-6813199134517018827-3980911674262998236-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-3980911674262998236-gambas=googlecode.com@...2524...> <0-6813199134517018827-3980911674262998236-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-3980911674262998236-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #2 on issue 195 by benoit.m... at ...626...: The bit manipulation functions does not work correctly on Shorts when negative values are returned http://code.google.com/p/gambas/issues/detail?id=195 It should be fixed in revision #4406. As for your tip: apparently you are right, but I must check why I did that before - I don't remember. From gambas at ...2524... Thu Jan 19 03:14:19 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 19 Jan 2012 02:14:19 +0000 Subject: [Gambas-user] Issue 194 in gambas: "IIf" is buggy In-Reply-To: <2-6813199134517018827-15360940081847258855-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-15360940081847258855-gambas=googlecode.com@...2524...> <0-6813199134517018827-15360940081847258855-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-15360940081847258855-gambas=googlecode.com@...2524...> Comment #3 on issue 194 by emil.len... at ...626...: "IIf" is buggy http://code.google.com/p/gambas/issues/detail?id=194 I'm afraid that fix does not work for pure objects? (A truncated class-pointer will be sent to VALUE_convert, and it will overwrite the higher bits of *PC). I think setting (code & 0x1F) to a special value (maybe 0x1F) indicating that both operands are of the same type, i.e. no conversion has to be done, can be a good idea to prevent this... From gambas at ...2524... Thu Jan 19 03:23:24 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 19 Jan 2012 02:23:24 +0000 Subject: [Gambas-user] Issue 196 in gambas: Inline arrays with different types Message-ID: <0-6813199134517018827-5551267813478645716-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 196 by emil.len... at ...626...: Inline arrays with different types http://code.google.com/p/gambas/issues/detail?id=196 1) Describe the problem. There are some cases where different types prevent an inline array from being created. 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: TRUNK Revision: r4406 3) Provide a little project that reproduces the bug or the crash. Dim a As New Integer[1] Dim b As New Float[1] Print [a, b, 1] It thinks Object[] is the correct array-type to create, resulting in bad conversion (runtime error) from Integer to Object. The correct array-type would be a Variant[]. From gambas at ...2524... Thu Jan 19 03:38:30 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 19 Jan 2012 02:38:30 +0000 Subject: [Gambas-user] Issue 194 in gambas: "IIf" is buggy In-Reply-To: <3-6813199134517018827-15360940081847258855-gambas=googlecode.com@...2524...> References: <3-6813199134517018827-15360940081847258855-gambas=googlecode.com@...2524...> <0-6813199134517018827-15360940081847258855-gambas=googlecode.com@...2524...> Message-ID: <4-6813199134517018827-15360940081847258855-gambas=googlecode.com@...2524...> Updates: Status: Accepted Comment #4 on issue 194 by benoit.m... at ...626...: "IIf" is buggy http://code.google.com/p/gambas/issues/detail?id=194 Is it better with revision #4407? From gambas at ...2524... Thu Jan 19 03:42:34 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 19 Jan 2012 02:42:34 +0000 Subject: [Gambas-user] Issue 194 in gambas: "IIf" is buggy In-Reply-To: <4-6813199134517018827-15360940081847258855-gambas=googlecode.com@...2524...> References: <4-6813199134517018827-15360940081847258855-gambas=googlecode.com@...2524...> <0-6813199134517018827-15360940081847258855-gambas=googlecode.com@...2524...> Message-ID: <5-6813199134517018827-15360940081847258855-gambas=googlecode.com@...2524...> Comment #5 on issue 194 by benoit.m... at ...626...: "IIf" is buggy http://code.google.com/p/gambas/issues/detail?id=194 And yes, I should use a different function that SUBR_check_good_type() in the IIf() implementation. That function was made for inline arrays detection. From gambas at ...2524... Thu Jan 19 03:46:36 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 19 Jan 2012 02:46:36 +0000 Subject: [Gambas-user] Issue 196 in gambas: Inline arrays with different types In-Reply-To: <0-6813199134517018827-5551267813478645716-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-5551267813478645716-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-5551267813478645716-gambas=googlecode.com@...2524...> Updates: Status: Fixed Labels: -Version Version-TRUNK Comment #1 on issue 196 by benoit.m... at ...626...: Inline arrays with different types http://code.google.com/p/gambas/issues/detail?id=196 It should be fixed in revision #4408. From kevinfishburne at ...1887... Thu Jan 19 05:31:13 2012 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Wed, 18 Jan 2012 23:31:13 -0500 Subject: [Gambas-user] gb3: "Mathematic error" In-Reply-To: References: <4F13C71C.8000608@...1887...> <4F13CC42.6010402@...1887...> <4F13D2D1.7090508@...1...> <4F154B07.7080704@...1887...> <4F154EF9.1050706@...1887...> <4F159245.1060602@...1...> Message-ID: <4F179C91.3040907@...1887...> On 01/17/2012 12:38 PM, Fabien Bodard wrote: > Le 17 janvier 2012 16:22, Beno?t Minisini > a ?crit : >> Le 17/01/2012 11:35, Kevin Fishburne a ?crit : >>> On 01/17/2012 05:18 AM, Kevin Fishburne wrote: >>>> On 01/16/2012 02:33 AM, Beno?t Minisini wrote: >>>>> Le 16/01/2012 08:05, Kevin Fishburne a ?crit : >>>>>> On 01/16/2012 01:43 AM, Kevin Fishburne wrote: >>>>>>> Why would I get the runtime error "Mathematic error" in this function: >>>>>>> >>>>>>> Public Function Distance(x1 As Single, y1 As Single, x2 As Single, y2 As >>>>>>> Single) As Single >>>>>>> Return Abs(Sqr((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1))) >>>>>>> End >>>>>>> >>>>>>> The values of the variables are: >>>>>>> >>>>>>> ?x2& ""& x1& ""& x2& ""& x1& ""& y2& ""& y1& ""& y2& >>>>>>> ""& y1 >>>>>>> >>>>>>> 174.248779296875 2.40799128109576E-41 174.248779296875 >>>>>>> 2.40799128109576E-41 146.759170532227 7.19552647834628E+27 >>>>>>> 146.759170532227 7.19552647834628E+27 >>>>>>> >>>>>>> Using GAMBAS 3, revision unknown. I'm recompiling now to see if it makes >>>>>>> a difference, but please let me know what this error means and what >>>>>>> could cause it. >>>>>>> >>>>>> I changed the first line (old one) to the second: >>>>>> >>>>>> 'Return Abs(Sqr((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1))) >>>>>> Return Sqr((x2 - x1) ^ 2 + (y2 - y1) ^ 2) >>>>>> >>>>>> and it gives me no problems. Seems like I really screwed up the distance >>>>>> calculation, but even so this may be a bug so hopefully I've contributed >>>>>> to a solution. Still curious of course as to what the error might mean. >>>>>> Maybe it should just say "You suck at math." :) >>>>>> >>>>> You get a mathematic error because of an overflow. (y2 - y1) * (y2 - y1) >>>>> cannot be expressed by a Single in your example. >>>>> >>>>> The "^" operator deals with Float internally, so you don't get an error. >>>>> >>>>> Anyway, to compute a distance, you can use the Hyp() or the Mag() >>>>> function. It will be faster. >>>> Sometimes it calculates without error, other times it doesn't. Changing >>>> all the datatypes to float doesn't make any difference either. Thanks >>>> for the efficiency tip on Hyp() and Mag(), but it still looks like >>>> there's a problem with math here. How should a manual distance >>>> calculation be expressed without overflow if that's the problem? >>>> >>> Just discovered it has to do with one of the passed values being zero. >>> Why is that? >>> >> Apparently you are not shocked by a coordinate of 7.19E+27... That >> causes the overflow with Single (not Float). > :) > Sorry guys. It was that time of the night when one sees two of everything. I called it a night and picked it up the next day with no problems. Bad data was being fed to the function as a result of something unrelated. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From gambas at ...2524... Thu Jan 19 10:34:20 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 19 Jan 2012 09:34:20 +0000 Subject: [Gambas-user] Issue 197 in gambas: Example of aplet for Lubuntu Message-ID: <0-6813199134517018827-11401136402606669836-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 197 by abbat... at ...626...: Example of aplet for Lubuntu http://code.google.com/p/gambas/issues/detail?id=197 1) Need an example of applet like current time is for Lubuntu. Thanks a lot From mohareve at ...626... Thu Jan 19 13:39:54 2012 From: mohareve at ...626... (M. Cs.) Date: Thu, 19 Jan 2012 13:39:54 +0100 Subject: [Gambas-user] Database question In-Reply-To: References: <4F170C47.3050004@...1...> Message-ID: I'm sorry Benoit, I would like to ask your help with this kind of insertions: If I have a table called MyTable with creation: CREATE TABLE CENTRAL(VName Text,FPath TEXT,FName TEXT,FSubs INTEGER,FSize REAL,FChanged TEXT); How could I ensure the failsafe insert query with following fields: VName-> Photos 5. FPath -> /Image3 /2011 FName-> Brother's day.jpg FSubs-> 1 FSize-> 568234.2 FChanged-> 2011-12-06 So how to use &1 and &2 arguments in work? And how can I retrieve the fields where FName is Like sign ' as in Brother's day.jpg? The query usually fails just like that If I try to seek for the files containing certain characters which are in use by the Sqlite backend. I only need two lines of the answer. Thanks! Csaba 2012/1/18, M. Cs. : > Yes, Benoit. I'll check the documentation, since I always used the > Myconnection.Exec("SELECT FROM table WHERE field='"& myvar & "';) form > of the querying, and now I would like to change it to a more > convenient way, since I always had to assure myvar is safe. > > 2012/1/18, Beno?t Minisini : >> Le 18/01/2012 14:17, M. Cs. a ?crit : >>> Hi! >>> Is there any built in function in Gambas3 which can secure the >>> database connection from the errors caused by special characters? >>> >>> I have written functions for replacing the dangerous characters like >>> ', +, . and so on, but I'd like to know whether there is a way to make >>> queries secure from failures. >>> >>> Thanks! >>> >> >> SQL quoting is automatically done by the following methods of the >> Connection class: Exec(), Find(), Edit(), Delete(), Subst(), provided >> that: >> >> - You use "&1", "&2"... inside the request string to tell where quoted >> arguments must be inserted. >> >> - You actually pass these arguments. >> >> Is it what you need? >> >> -- >> Beno?t Minisini >> >> ------------------------------------------------------------------------------ >> Keep Your Developer Skills Current with LearnDevNow! >> The most comprehensive online learning library for Microsoft developers >> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, >> Metro Style Apps, more. Free future releases when you subscribe now! >> http://p.sf.net/sfu/learndevnow-d2d >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > From mohareve at ...626... Thu Jan 19 14:09:00 2012 From: mohareve at ...626... (M. Cs.) Date: Thu, 19 Jan 2012 14:09:00 +0100 Subject: [Gambas-user] Database question In-Reply-To: References: <4F170C47.3050004@...1...> Message-ID: Some more clarification of my problem: I had two procedures to communicate with the sqlite database: Public Sub Trans(be As String) As String Dim atmen As String atmen = Replace$(be, "$", ".") atmen = Replace$(atmen, "?", "-") atmen = Replace$(atmen, "_", " ") atmen = Replace$(atmen, "?", "/") atmen = Replace$(atmen, "?", "+") atmen = Replace$(atmen, "?", "'") atmen = Replace$(atmen, "?", ":") Return atmen End Public Sub TransB(be As String) As String Dim atmen As String atmen = Replace$(be, ".", "$") atmen = Replace$(atmen, "-", "?") atmen = Replace$(atmen, " ", "_") atmen = Replace$(atmen, "/", "?") atmen = Replace$(atmen, "+", "?") atmen = Replace$(atmen, "'", "?") atmen = Replace$(atmen, ":", "?") Return atmen End These were the guards for special characters. The first one did the conversion from database to GUI, the second did encode the strings for the database insertion. I suppose there is a better way for doing it. I'd like to learn that way! 2012/1/19, M. Cs. : > I'm sorry Benoit, > I would like to ask your help with this kind of insertions: > If I have a table called MyTable with creation: > > CREATE TABLE CENTRAL(VName Text,FPath TEXT,FName TEXT,FSubs > INTEGER,FSize REAL,FChanged TEXT); > > How could I ensure the failsafe insert query with following fields: > VName-> Photos 5. > FPath -> /Image3 /2011 > FName-> Brother's day.jpg > FSubs-> 1 > FSize-> 568234.2 > FChanged-> 2011-12-06 > > So how to use &1 and &2 arguments in work? > > And how can I retrieve the fields where FName is Like sign ' as in > Brother's day.jpg? > > The query usually fails just like that If I try to seek for the files > containing certain characters which are in use by the Sqlite backend. > > I only need two lines of the answer. Thanks! > > Csaba > > > 2012/1/18, M. Cs. : >> Yes, Benoit. I'll check the documentation, since I always used the >> Myconnection.Exec("SELECT FROM table WHERE field='"& myvar & "';) form >> of the querying, and now I would like to change it to a more >> convenient way, since I always had to assure myvar is safe. >> >> 2012/1/18, Beno?t Minisini : >>> Le 18/01/2012 14:17, M. Cs. a ?crit : >>>> Hi! >>>> Is there any built in function in Gambas3 which can secure the >>>> database connection from the errors caused by special characters? >>>> >>>> I have written functions for replacing the dangerous characters like >>>> ', +, . and so on, but I'd like to know whether there is a way to make >>>> queries secure from failures. >>>> >>>> Thanks! >>>> >>> >>> SQL quoting is automatically done by the following methods of the >>> Connection class: Exec(), Find(), Edit(), Delete(), Subst(), provided >>> that: >>> >>> - You use "&1", "&2"... inside the request string to tell where quoted >>> arguments must be inserted. >>> >>> - You actually pass these arguments. >>> >>> Is it what you need? >>> >>> -- >>> Beno?t Minisini >>> >>> ------------------------------------------------------------------------------ >>> Keep Your Developer Skills Current with LearnDevNow! >>> The most comprehensive online learning library for Microsoft developers >>> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, >>> Metro Style Apps, more. Free future releases when you subscribe now! >>> http://p.sf.net/sfu/learndevnow-d2d >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> > From ron at ...1740... Thu Jan 19 14:23:53 2012 From: ron at ...1740... (Ron) Date: Thu, 19 Jan 2012 14:23:53 +0100 Subject: [Gambas-user] How to delete copy of class/object Message-ID: <4F181969.60104@...1740...> Hi community, Let say I have a class called CMyMsg like this: ' Gambas class file PUBLIC Length AS Integer ' packet length PUBLIC Prio AS Integer ' 0 = normal, 1 = system PUBLIC Node AS Integer ' node id PUBLIC Key AS String PUBLIC Packet AS NEW Byte[] ' data to send PUBLIC AwaitAck AS Boolean PUBLIC SUB SetLength(iLength AS Integer) Length = iLength END PUBLIC SUB SetPrio(iPrio AS Integer) Prio = iPrio END PUBLIC SUB SetNode(iNode AS Integer) Node = iNode END PUBLIC SUB SetKey(sKey AS String) Key = sKey END PUBLIC SUB SetPacket(aPack AS Byte[]) Packet = aPack END PUBLIC SUB SetAwaitAck(bAck AS Boolean) AwaitAck = bAck END And I instantiate several copies of it in my project with this: PRIVATE oMyMsgs AS NEW Object[] PUBLIC SUB CreatePacket() DIM MyMsg AS NEW CMyMsg MyMsg.SetKey(Rnd) MyMsg.SetLength(iPacketLen + 2) MyMsg.SetPrio(0) MyMsg.SetAwaitAck(TRUE)) MyMsg.SetPacket(bBuffer) oMyMsgs.Add(MyMsg) END Further down, I loop through these objects in oMyMsgs and do something with them like this: PUBLIC SUB ParsePackets() DIM MyMsg AS CMyMsg FOR EACH MyMsg IN oMyMsgs ProcessIt(MyMsg) ' question is how to delete the MyMsg entry here and remove it from oMyMsgs objects list? ' or is there another way to do this efficiently? NEXT Thanks in advance! Regard, Ron_2nd. From Gambas at ...1950... Thu Jan 19 14:50:51 2012 From: Gambas at ...1950... (Caveat) Date: Thu, 19 Jan 2012 14:50:51 +0100 Subject: [Gambas-user] Database question In-Reply-To: References: <4F170C47.3050004@...1...> Message-ID: <1326981051.2882.273.camel@...2150...> As Benoit says... > SQL quoting is automatically done by the following methods of the > Connection class: Exec(), Find(), Edit(), Delete(), Subst(), provided > that: > - You use "&1", "&2"... inside the request string to tell where > quoted arguments must be inserted. > - You actually pass these arguments. Example: ... conn = DataAccess.getConnection() rSet = conn.Exec("select * from ART001 where CLEF = &1", "AS200000") ' ... or e.g. conn.Exec("select * from ART001 ' where CLEF = &1 AND DELE = &2", "AS200000", "0") ' ... etc. If rSet Not Null Then If rSet.Count > 0 Then rSet.MoveFirst Print rSet["CLEF"], rSet["NOMNL"] Endif Endif Kind regards, Caveat On Thu, 2012-01-19 at 14:09 +0100, M. Cs. wrote: > Some more clarification of my problem: > I had two procedures to communicate with the sqlite database: > > Public Sub Trans(be As String) As String > Dim atmen As String > atmen = Replace$(be, "$", ".") > atmen = Replace$(atmen, "?", "-") > atmen = Replace$(atmen, "_", " ") > atmen = Replace$(atmen, "?", "/") > atmen = Replace$(atmen, "?", "+") > atmen = Replace$(atmen, "?", "'") > atmen = Replace$(atmen, "?", ":") > > Return atmen > End > > Public Sub TransB(be As String) As String > Dim atmen As String > atmen = Replace$(be, ".", "$") > atmen = Replace$(atmen, "-", "?") > atmen = Replace$(atmen, " ", "_") > atmen = Replace$(atmen, "/", "?") > atmen = Replace$(atmen, "+", "?") > atmen = Replace$(atmen, "'", "?") > atmen = Replace$(atmen, ":", "?") > Return atmen > End > > These were the guards for special characters. > The first one did the conversion from database to GUI, the second did > encode the strings for the database insertion. > I suppose there is a better way for doing it. > I'd like to learn that way! > > 2012/1/19, M. Cs. : > > I'm sorry Benoit, > > I would like to ask your help with this kind of insertions: > > If I have a table called MyTable with creation: > > > > CREATE TABLE CENTRAL(VName Text,FPath TEXT,FName TEXT,FSubs > > INTEGER,FSize REAL,FChanged TEXT); > > > > How could I ensure the failsafe insert query with following fields: > > VName-> Photos 5. > > FPath -> /Image3 /2011 > > FName-> Brother's day.jpg > > FSubs-> 1 > > FSize-> 568234.2 > > FChanged-> 2011-12-06 > > > > So how to use &1 and &2 arguments in work? > > > > And how can I retrieve the fields where FName is Like sign ' as in > > Brother's day.jpg? > > > > The query usually fails just like that If I try to seek for the files > > containing certain characters which are in use by the Sqlite backend. > > > > I only need two lines of the answer. Thanks! > > > > Csaba > > > > > > 2012/1/18, M. Cs. : > >> Yes, Benoit. I'll check the documentation, since I always used the > >> Myconnection.Exec("SELECT FROM table WHERE field='"& myvar & "';) form > >> of the querying, and now I would like to change it to a more > >> convenient way, since I always had to assure myvar is safe. > >> > >> 2012/1/18, Beno?t Minisini : > >>> Le 18/01/2012 14:17, M. Cs. a ?crit : > >>>> Hi! > >>>> Is there any built in function in Gambas3 which can secure the > >>>> database connection from the errors caused by special characters? > >>>> > >>>> I have written functions for replacing the dangerous characters like > >>>> ', +, . and so on, but I'd like to know whether there is a way to make > >>>> queries secure from failures. > >>>> > >>>> Thanks! > >>>> > >>> > >>> SQL quoting is automatically done by the following methods of the > >>> Connection class: Exec(), Find(), Edit(), Delete(), Subst(), provided > >>> that: > >>> > >>> - You use "&1", "&2"... inside the request string to tell where quoted > >>> arguments must be inserted. > >>> > >>> - You actually pass these arguments. > >>> > >>> Is it what you need? > >>> > >>> -- > >>> Beno?t Minisini > >>> > >>> ------------------------------------------------------------------------------ > >>> Keep Your Developer Skills Current with LearnDevNow! > >>> The most comprehensive online learning library for Microsoft developers > >>> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > >>> Metro Style Apps, more. Free future releases when you subscribe now! > >>> http://p.sf.net/sfu/learndevnow-d2d > >>> _______________________________________________ > >>> Gambas-user mailing list > >>> Gambas-user at lists.sourceforge.net > >>> https://lists.sourceforge.net/lists/listinfo/gambas-user > >>> > >> > > > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From mohareve at ...626... Thu Jan 19 14:59:45 2012 From: mohareve at ...626... (M. Cs.) Date: Thu, 19 Jan 2012 14:59:45 +0100 Subject: [Gambas-user] Database question In-Reply-To: <1326981051.2882.273.camel@...2150...> References: <4F170C47.3050004@...1...> <1326981051.2882.273.camel@...2150...> Message-ID: Thanks Caveat! This little helped to me! A good example is worthy a thousand words! Csaba 2012/1/19, Caveat : > As Benoit says... > >> SQL quoting is automatically done by the following methods of the >> Connection class: Exec(), Find(), Edit(), Delete(), Subst(), provided >> that: > >> - You use "&1", "&2"... inside the request string to tell where >> quoted arguments must be inserted. > >> - You actually pass these arguments. > > Example: > > ... > conn = DataAccess.getConnection() > rSet = conn.Exec("select * from ART001 where CLEF = &1", "AS200000") > ' ... or e.g. conn.Exec("select * from ART001 > ' where CLEF = &1 AND DELE = &2", "AS200000", "0") > ' ... etc. > If rSet Not Null Then > If rSet.Count > 0 Then > rSet.MoveFirst > Print rSet["CLEF"], rSet["NOMNL"] > Endif > Endif > > Kind regards, > Caveat > > On Thu, 2012-01-19 at 14:09 +0100, M. Cs. wrote: >> Some more clarification of my problem: >> I had two procedures to communicate with the sqlite database: >> >> Public Sub Trans(be As String) As String >> Dim atmen As String >> atmen = Replace$(be, "$", ".") >> atmen = Replace$(atmen, "?", "-") >> atmen = Replace$(atmen, "_", " ") >> atmen = Replace$(atmen, "?", "/") >> atmen = Replace$(atmen, "?", "+") >> atmen = Replace$(atmen, "?", "'") >> atmen = Replace$(atmen, "?", ":") >> >> Return atmen >> End >> >> Public Sub TransB(be As String) As String >> Dim atmen As String >> atmen = Replace$(be, ".", "$") >> atmen = Replace$(atmen, "-", "?") >> atmen = Replace$(atmen, " ", "_") >> atmen = Replace$(atmen, "/", "?") >> atmen = Replace$(atmen, "+", "?") >> atmen = Replace$(atmen, "'", "?") >> atmen = Replace$(atmen, ":", "?") >> Return atmen >> End >> >> These were the guards for special characters. >> The first one did the conversion from database to GUI, the second did >> encode the strings for the database insertion. >> I suppose there is a better way for doing it. >> I'd like to learn that way! >> >> 2012/1/19, M. Cs. : >> > I'm sorry Benoit, >> > I would like to ask your help with this kind of insertions: >> > If I have a table called MyTable with creation: >> > >> > CREATE TABLE CENTRAL(VName Text,FPath TEXT,FName TEXT,FSubs >> > INTEGER,FSize REAL,FChanged TEXT); >> > >> > How could I ensure the failsafe insert query with following fields: >> > VName-> Photos 5. >> > FPath -> /Image3 /2011 >> > FName-> Brother's day.jpg >> > FSubs-> 1 >> > FSize-> 568234.2 >> > FChanged-> 2011-12-06 >> > >> > So how to use &1 and &2 arguments in work? >> > >> > And how can I retrieve the fields where FName is Like sign ' as in >> > Brother's day.jpg? >> > >> > The query usually fails just like that If I try to seek for the files >> > containing certain characters which are in use by the Sqlite backend. >> > >> > I only need two lines of the answer. Thanks! >> > >> > Csaba >> > >> > >> > 2012/1/18, M. Cs. : >> >> Yes, Benoit. I'll check the documentation, since I always used the >> >> Myconnection.Exec("SELECT FROM table WHERE field='"& myvar & "';) form >> >> of the querying, and now I would like to change it to a more >> >> convenient way, since I always had to assure myvar is safe. >> >> >> >> 2012/1/18, Beno?t Minisini : >> >>> Le 18/01/2012 14:17, M. Cs. a ?crit : >> >>>> Hi! >> >>>> Is there any built in function in Gambas3 which can secure the >> >>>> database connection from the errors caused by special characters? >> >>>> >> >>>> I have written functions for replacing the dangerous characters like >> >>>> ', +, . and so on, but I'd like to know whether there is a way to >> >>>> make >> >>>> queries secure from failures. >> >>>> >> >>>> Thanks! >> >>>> >> >>> >> >>> SQL quoting is automatically done by the following methods of the >> >>> Connection class: Exec(), Find(), Edit(), Delete(), Subst(), provided >> >>> that: >> >>> >> >>> - You use "&1", "&2"... inside the request string to tell where quoted >> >>> arguments must be inserted. >> >>> >> >>> - You actually pass these arguments. >> >>> >> >>> Is it what you need? >> >>> >> >>> -- >> >>> Beno?t Minisini >> >>> >> >>> ------------------------------------------------------------------------------ >> >>> Keep Your Developer Skills Current with LearnDevNow! >> >>> The most comprehensive online learning library for Microsoft >> >>> developers >> >>> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, >> >>> MVC3, >> >>> Metro Style Apps, more. Free future releases when you subscribe now! >> >>> http://p.sf.net/sfu/learndevnow-d2d >> >>> _______________________________________________ >> >>> Gambas-user mailing list >> >>> Gambas-user at lists.sourceforge.net >> >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >>> >> >> >> > >> >> ------------------------------------------------------------------------------ >> Keep Your Developer Skills Current with LearnDevNow! >> The most comprehensive online learning library for Microsoft developers >> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, >> Metro Style Apps, more. Free future releases when you subscribe now! >> http://p.sf.net/sfu/learndevnow-d2d >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From john.aaron.rose at ...1601... Thu Jan 19 16:41:36 2012 From: john.aaron.rose at ...1601... (John Rose) Date: Thu, 19 Jan 2012 15:41:36 +0000 Subject: [Gambas-user] ValueBox value validation Message-ID: I have a problem with validating a user-entered value in a ValueBox. I've tried LostFocus & Leave and neither seems to do the validation i.e. no message box appears for incorrect values. So I thought that I would try Change, even though the documentation says that it is raised on each character typed in (rather than at the end of typing in the changes to the value) which would not be any good. However, I'm not able to use the Change event (i.e. not in popup menu for event and has no effect at runtime) for a Valuebox: looks like a bug. I've tried using KeyRelease, but that applies to each character change, so that it rejects the value as each character is entered. Code fragment is: Public Sub ValueBoxLatitude_Change() Dim latitude As Float Dim i As Integer Print "Latitude Validation" latitude = Last.Value If latitude < -90 Or latitude > 90 Then Message.Info("Must be between -90 and +90 - try again") Last.SetFocus Stop Event Endif i = CInt(latitude * 1000000) Print "CInt(latitude * 1000000)=", i If (latitude * 1000000) - CFloat(i) <> 0.0 Then Message.Info("More than 6 decimal digits - try again") Last.SetFocus Stop Event Endif End PS what event should this validation be under? From Gambas at ...1950... Thu Jan 19 17:17:19 2012 From: Gambas at ...1950... (Caveat) Date: Thu, 19 Jan 2012 17:17:19 +0100 Subject: [Gambas-user] ValueBox value validation In-Reply-To: References: Message-ID: <1326989839.2882.353.camel@...2150...> Oh, looks like you're right (I have Gambas3, rev 4409). I just added a ValueBox to an existing Form and put in the following code: Public Sub ValueBox1_LostFocus() Print "ValueBox: Oh no, I lost my focus! I'm sure it's around here somewhere..." End Public Sub cbxLockingSystem_LostFocus() Print "ComboBox: Oh no, I lost my focus! I'm sure it's around here somewhere..." End The ComboBox fires off LostFocus quite happily, but the ValueBox never does. I wanted to check the docs to see if there was anything funny about ValueBox (perhaps doesn't support LostFocus) but the component doesn't appear in the gb.qt4 docs... http://gambasdoc.org/help/comp/gb.qt4?v3&show Guess it's over to the devs... Kind regards, Caveat On Thu, 2012-01-19 at 15:41 +0000, John Rose wrote: > I have a problem with validating a user-entered value in a ValueBox. I've > tried LostFocus & Leave and neither seems to do the validation i.e. no > message box appears for incorrect values. So I thought that I would try > Change, even though the documentation says that it is raised on each > character typed in (rather than at the end of typing in the changes to the > value) which would not be any good. However, I'm not able to use the Change > event (i.e. not in popup menu for event and has no effect at runtime) for a > Valuebox: looks like a bug. I've tried using KeyRelease, but that applies > to each character change, so that it rejects the value as each character is > entered. Code fragment is: > Public Sub ValueBoxLatitude_Change() > Dim latitude As Float > Dim i As Integer > Print "Latitude Validation" > latitude = Last.Value > If latitude < -90 Or latitude > 90 Then > Message.Info("Must be between -90 and +90 - try again") > Last.SetFocus > Stop Event > Endif > i = CInt(latitude * 1000000) > Print "CInt(latitude * 1000000)=", i > If (latitude * 1000000) - CFloat(i) <> 0.0 Then > Message.Info("More than 6 decimal digits - try again") > Last.SetFocus > Stop Event > Endif > End > > PS what event should this validation be under? > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From jussi.lahtinen at ...626... Thu Jan 19 17:28:43 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 19 Jan 2012 18:28:43 +0200 Subject: [Gambas-user] How to delete copy of class/object In-Reply-To: <4F181969.60104@...1740...> References: <4F181969.60104@...1740...> Message-ID: Maybe I don't understand the question, but why not just like this: Do ProcessIt(oMyMsg[0]) oMyMsgs.Remove(0) Loop Until oMyMsg.Count = 0 Jussi On Thu, Jan 19, 2012 at 15:23, Ron wrote: > Hi community, > > Let say I have a class called CMyMsg like this: > > ' Gambas class file > > PUBLIC Length AS Integer ' packet length > PUBLIC Prio AS Integer ' 0 = normal, 1 = system > PUBLIC Node AS Integer ' node id > PUBLIC Key AS String > PUBLIC Packet AS NEW Byte[] ' data to send > PUBLIC AwaitAck AS Boolean > > PUBLIC SUB SetLength(iLength AS Integer) > > Length = iLength > > END > > PUBLIC SUB SetPrio(iPrio AS Integer) > > Prio = iPrio > > END > > PUBLIC SUB SetNode(iNode AS Integer) > > Node = iNode > > END > > PUBLIC SUB SetKey(sKey AS String) > > Key = sKey > > END > > PUBLIC SUB SetPacket(aPack AS Byte[]) > > Packet = aPack > > END > > PUBLIC SUB SetAwaitAck(bAck AS Boolean) > > AwaitAck = bAck > > END > > And I instantiate several copies of it in my project with this: > > PRIVATE oMyMsgs AS NEW Object[] > > PUBLIC SUB CreatePacket() > > DIM MyMsg AS NEW CMyMsg > > MyMsg.SetKey(Rnd) > MyMsg.SetLength(iPacketLen + 2) > MyMsg.SetPrio(0) > MyMsg.SetAwaitAck(TRUE)) > MyMsg.SetPacket(bBuffer) > > oMyMsgs.Add(MyMsg) > > END > > Further down, I loop through these objects in oMyMsgs and do something > with them like this: > > PUBLIC SUB ParsePackets() > > DIM MyMsg AS CMyMsg > > FOR EACH MyMsg IN oMyMsgs > > ProcessIt(MyMsg) > > ' question is how to delete the MyMsg entry here and remove it from > oMyMsgs objects list? > ' or is there another way to do this efficiently? > > NEXT > > Thanks in advance! > > Regard, > Ron_2nd. > > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From ron at ...1740... Thu Jan 19 17:31:38 2012 From: ron at ...1740... (Ron) Date: Thu, 19 Jan 2012 17:31:38 +0100 Subject: [Gambas-user] How to delete copy of class/object In-Reply-To: References: <4F181969.60104@...1740...> Message-ID: yes looks like i need that, will try, thanks alot! Ron Op 19 jan. 2012 17:29 schreef "Jussi Lahtinen" het volgende: > Maybe I don't understand the question, but why not just like this: > > Do > > ProcessIt(oMyMsg[0]) > > oMyMsgs.Remove(0) > > Loop Until oMyMsg.Count = 0 > > > Jussi > > > > > > > > > > On Thu, Jan 19, 2012 at 15:23, Ron wrote: > > > Hi community, > > > > Let say I have a class called CMyMsg like this: > > > > ' Gambas class file > > > > PUBLIC Length AS Integer ' packet length > > PUBLIC Prio AS Integer ' 0 = normal, 1 = system > > PUBLIC Node AS Integer ' node id > > PUBLIC Key AS String > > PUBLIC Packet AS NEW Byte[] ' data to send > > PUBLIC AwaitAck AS Boolean > > > > PUBLIC SUB SetLength(iLength AS Integer) > > > > Length = iLength > > > > END > > > > PUBLIC SUB SetPrio(iPrio AS Integer) > > > > Prio = iPrio > > > > END > > > > PUBLIC SUB SetNode(iNode AS Integer) > > > > Node = iNode > > > > END > > > > PUBLIC SUB SetKey(sKey AS String) > > > > Key = sKey > > > > END > > > > PUBLIC SUB SetPacket(aPack AS Byte[]) > > > > Packet = aPack > > > > END > > > > PUBLIC SUB SetAwaitAck(bAck AS Boolean) > > > > AwaitAck = bAck > > > > END > > > > And I instantiate several copies of it in my project with this: > > > > PRIVATE oMyMsgs AS NEW Object[] > > > > PUBLIC SUB CreatePacket() > > > > DIM MyMsg AS NEW CMyMsg > > > > MyMsg.SetKey(Rnd) > > MyMsg.SetLength(iPacketLen + 2) > > MyMsg.SetPrio(0) > > MyMsg.SetAwaitAck(TRUE)) > > MyMsg.SetPacket(bBuffer) > > > > oMyMsgs.Add(MyMsg) > > > > END > > > > Further down, I loop through these objects in oMyMsgs and do something > > with them like this: > > > > PUBLIC SUB ParsePackets() > > > > DIM MyMsg AS CMyMsg > > > > FOR EACH MyMsg IN oMyMsgs > > > > ProcessIt(MyMsg) > > > > ' question is how to delete the MyMsg entry here and remove it from > > oMyMsgs objects list? > > ' or is there another way to do this efficiently? > > > > NEXT > > > > Thanks in advance! > > > > Regard, > > Ron_2nd. > > > > > > > ------------------------------------------------------------------------------ > > Keep Your Developer Skills Current with LearnDevNow! > > The most comprehensive online learning library for Microsoft developers > > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > > Metro Style Apps, more. Free future releases when you subscribe now! > > http://p.sf.net/sfu/learndevnow-d2d > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From mohareve at ...626... Thu Jan 19 21:57:53 2012 From: mohareve at ...626... (M. Cs.) Date: Thu, 19 Jan 2012 21:57:53 +0100 Subject: [Gambas-user] Help! I can't find the error Message-ID: querry = "SELECT * FROM MP3;" tablak = DBconX.Exec(querry) DBconX.Begin() For Each tablak a1 = Trans(tablak!file) a2 = Trans(tablak!path) a3 = Trans(tablak!Volume) a4 = Trans(tablak!title) a5 = Trans(tablak!artist) a6 = Trans(tablak!album) a7 = Trans(tablak!genre) a8 = Trans(tablak!year) a9 = tablak!lenght a10 = Trans(tablak!lyric) DBconX.Exec("UPDATE MP3 SET file=&1,path=&2,Volume=&3,title=&4,artist=&5,album=&6,genre=&7,year=&8,lenght=&9,lyric=&10 WHERE file=&11 AND path=&12 AND Volume=&13 AND title=&14 AND artist=&15 AND album=&16 AND genre=&17 AND year=&18 AND lenght=&19 AND lyric=&20", a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, tablak!file, tablak!path, tablak!Volume, tablak!title, tablak!artist, tablak!album, tablak!genre, tablak!year, tablak!lenght, tablak!lyric) Next DBconX.Commit() Every variable is defined, the connection is opened the results are retrieved, yet at UPDATE it tells me error. I can't see why. Thanks! From support at ...2529... Thu Jan 19 22:32:15 2012 From: support at ...2529... (John Spikowski) Date: Thu, 19 Jan 2012 13:32:15 -0800 Subject: [Gambas-user] Help! I can't find the error In-Reply-To: References: Message-ID: <1327008735.2269.16.camel@...1833...> On Thu, 2012-01-19 at 21:57 +0100, M. Cs. wrote: > querry = "SELECT * FROM MP3;" > tablak = DBconX.Exec(querry) > DBconX.Begin() > For Each tablak > a1 = Trans(tablak!file) > a2 = Trans(tablak!path) > a3 = Trans(tablak!Volume) > a4 = Trans(tablak!title) > a5 = Trans(tablak!artist) > a6 = Trans(tablak!album) > a7 = Trans(tablak!genre) > a8 = Trans(tablak!year) > a9 = tablak!lenght > a10 = Trans(tablak!lyric) > DBconX.Exec("UPDATE MP3 SET > file=&1,path=&2,Volume=&3,title=&4,artist=&5,album=&6,genre=&7,year=&8,lenght=&9,lyric=&10 > WHERE file=&11 AND path=&12 AND Volume=&13 AND title=&14 AND > artist=&15 AND album=&16 AND genre=&17 AND year=&18 AND lenght=&19 AND > lyric=&20", a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, tablak!file, > tablak!path, tablak!Volume, tablak!title, tablak!artist, tablak!album, > tablak!genre, tablak!year, tablak!lenght, tablak!lyric) > Next > DBconX.Commit() > > Every variable is defined, the connection is opened the results are > retrieved, yet at UPDATE it tells me error. I can't see why. > > Thanks! Wild guess. Would any of your columns be of an auto increment type? IF TRUE THEN don't update/insert that column with your data. (skip the column) From gambas at ...2524... Fri Jan 20 01:31:37 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 20 Jan 2012 00:31:37 +0000 Subject: [Gambas-user] Issue 194 in gambas: "IIf" is buggy In-Reply-To: <5-6813199134517018827-15360940081847258855-gambas=googlecode.com@...2524...> References: <5-6813199134517018827-15360940081847258855-gambas=googlecode.com@...2524...> <0-6813199134517018827-15360940081847258855-gambas=googlecode.com@...2524...> Message-ID: <6-6813199134517018827-15360940081847258855-gambas=googlecode.com@...2524...> Comment #6 on issue 194 by emil.len... at ...626...: "IIf" is buggy http://code.google.com/p/gambas/issues/detail?id=194 I think that will work :) From gambas at ...2524... Fri Jan 20 07:47:12 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 20 Jan 2012 06:47:12 +0000 Subject: [Gambas-user] Issue 198 in gambas: ShowHidden property in OpenFile, SaveFile & SelectDir functions Message-ID: <0-6813199134517018827-676827649239186179-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 198 by john.aar... at ...626...: ShowHidden property in OpenFile, SaveFile & SelectDir functions http://code.google.com/p/gambas/issues/detail?id=198 It would be nice if the OpenFile, SaveFile & SelectDir functions would allow for the suppression of the display of hidden files/directories. The display of these hidden files/directories is a nuisance in that they occur before the non-hidden files & thus have to be scrolled through and are rarely selected by a user. This could be done in the same way as the FileChooser & DirChooser controls in the gb.form component i.e. by having a Boolean property of ShowHidden. Version: 2.22 & 3.0 Operating system: Linux / FreeBSD Distribution: Ubuntu 10.04 Architecture: x86 GUI component: GTK+ (as I haven't specified the GUI) Desktop used: Gnome2 From john.aaron.rose at ...1601... Fri Jan 20 07:51:13 2012 From: john.aaron.rose at ...1601... (John Rose) Date: Fri, 20 Jan 2012 06:51:13 +0000 Subject: [Gambas-user] ValueBox value validation Message-ID: Thanks, Caveat, for confirming this bug. I'll now report it as an issue. From gambas at ...2524... Fri Jan 20 08:04:22 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 20 Jan 2012 07:04:22 +0000 Subject: [Gambas-user] Issue 199 in gambas: LostFocus & Leave events not activated for ValueBox Message-ID: <0-6813199134517018827-10985591416947314832-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 199 by john.aaron.rose at ...626...: LostFocus & Leave events not activated for ValueBox http://code.google.com/p/gambas/issues/detail?id=199 I have a problem with validating a user-entered value in a ValueBox. I've tried LostFocus & Leave and neither seems to do the validation i.e. no Print "Latitude Validation" executes and no message box appears for incorrect values. Looks like a bug. So I thought that I would try Change, even though the documentation says that it is raised on each character typed in (rather than at the end of typing in the changes to the value) which would not be any good. However, I'm not able to use the Change event (i.e. not in popup menu for event and has no effect at runtime) for a Valuebox: looks like another bug. I've tried using KeyRelease, but that applies to each character change, so that it rejects the value as each character is entered. PS Should I log this as another issue? Code fragment is: Public Sub ValueBoxLatitude_LostFocus() Dim latitude As Float Dim i As Integer Print "Latitude Validation" latitude = Last.Value If latitude < -90 Or latitude > 90 Then Message.Info("Must be between -90 and +90 - try again") Last.SetFocus Stop Event Endif i = CInt(latitude * 1000000) Print "CInt(latitude * 1000000)=", i If (latitude * 1000000) - CFloat(i) <> 0.0 Then Message.Info("More than 6 decimal digits - try again") Last.SetFocus Stop Event Endif End Version: 3.0 Operating system: Linux Distribution: Ubuntu 10.04 Architecture: x86 GUI component: GTK+ (as I haven't specified the GUI) Desktop used: Gnome2 Project attached. Database attached. Attachments: JewishHeritage.tar.gz 29.4 KB JewishHeritage.db 8.0 KB From john.aaron.rose at ...1601... Fri Jan 20 08:33:26 2012 From: john.aaron.rose at ...1601... (John Rose) Date: Fri, 20 Jan 2012 07:33:26 +0000 Subject: [Gambas-user] Search tool button for code in IDE Message-ID: Perhaps I'm missing something. However, I don't see a Search tool button for code in the IDE (though there is one for the Console). If not, I think that it would be a useful addition to the IDE. From gambas at ...2524... Fri Jan 20 08:47:52 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 20 Jan 2012 07:47:52 +0000 Subject: [Gambas-user] Issue 194 in gambas: "IIf" is buggy In-Reply-To: <6-6813199134517018827-15360940081847258855-gambas=googlecode.com@...2524...> References: <6-6813199134517018827-15360940081847258855-gambas=googlecode.com@...2524...> <0-6813199134517018827-15360940081847258855-gambas=googlecode.com@...2524...> Message-ID: <7-6813199134517018827-15360940081847258855-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #7 on issue 194 by benoit.m... at ...626...: "IIf" is buggy http://code.google.com/p/gambas/issues/detail?id=194 (No comment was entered for this change.) From gambas at ...2524... Fri Jan 20 08:54:59 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 20 Jan 2012 07:54:59 +0000 Subject: [Gambas-user] Issue 199 in gambas: LostFocus & Leave events not activated for ValueBox In-Reply-To: <0-6813199134517018827-10985591416947314832-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-10985591416947314832-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-10985591416947314832-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -Version -GUI-Any Version-TRUNK GUI-GTK Comment #1 on issue 199 by benoit.m... at ...626...: LostFocus & Leave events not activated for ValueBox http://code.google.com/p/gambas/issues/detail?id=199 (No comment was entered for this change.) From gambas at ...2524... Fri Jan 20 08:59:01 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 20 Jan 2012 07:59:01 +0000 Subject: [Gambas-user] Issue 197 in gambas: Example of aplet for Lubuntu In-Reply-To: <0-6813199134517018827-11401136402606669836-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-11401136402606669836-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-11401136402606669836-gambas=googlecode.com@...2524...> Updates: Status: Invalid Comment #1 on issue 197 by benoit.m... at ...626...: Example of aplet for Lubuntu http://code.google.com/p/gambas/issues/detail?id=197 This is a bug tracker, not a mailing-list nor a forum. Please post such request on the mailing-list! From gambas at ...2524... Fri Jan 20 09:03:03 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 20 Jan 2012 08:03:03 +0000 Subject: [Gambas-user] Issue 193 in gambas: SQLite Foreign Key code not allowed In-Reply-To: <2-6813199134517018827-14671211105331585139-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-14671211105331585139-gambas=googlecode.com@...2524...> <0-6813199134517018827-14671211105331585139-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-14671211105331585139-gambas=googlecode.com@...2524...> Updates: Status: Accepted Comment #3 on issue 193 by benoit.m... at ...626...: SQLite Foreign Key code not allowed http://code.google.com/p/gambas/issues/detail?id=193 Mmm. It will be difficult to implement foreign key support in the database component, which is agnostic, if some specific database system like sqlite does not implement it fully. From gambas at ...2524... Fri Jan 20 09:18:14 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 20 Jan 2012 08:18:14 +0000 Subject: [Gambas-user] Issue 199 in gambas: LostFocus & Leave events not activated for ValueBox In-Reply-To: <1-6813199134517018827-10985591416947314832-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-10985591416947314832-gambas=googlecode.com@...2524...> <0-6813199134517018827-10985591416947314832-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-10985591416947314832-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #2 on issue 199 by benoit.m... at ...626...: LostFocus & Leave events not activated for ValueBox http://code.google.com/p/gambas/issues/detail?id=199 It should be fixed in revision #4411. From gambas at ...2524... Fri Jan 20 09:25:19 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 20 Jan 2012 08:25:19 +0000 Subject: [Gambas-user] Issue 198 in gambas: ShowHidden property in OpenFile, SaveFile & SelectDir functions In-Reply-To: <0-6813199134517018827-676827649239186179-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-676827649239186179-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-676827649239186179-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -Version -Type-Bug -Priority-Medium Version-TRUNK Type-Enhancement Priority-Low Comment #1 on issue 198 by benoit.m... at ...626...: ShowHidden property in OpenFile, SaveFile & SelectDir functions http://code.google.com/p/gambas/issues/detail?id=198 I'm afraid it is impossible with standard Qt dialogs, so I can't implement it in a toolkit-independent manner. I will think about it... From gambas at ...2524... Fri Jan 20 09:29:21 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 20 Jan 2012 08:29:21 +0000 Subject: [Gambas-user] Issue 185 in gambas: Editing a line changes font spacing In-Reply-To: <8-6813199134517018827-9150352820753408673-gambas=googlecode.com@...2524...> References: <8-6813199134517018827-9150352820753408673-gambas=googlecode.com@...2524...> <0-6813199134517018827-9150352820753408673-gambas=googlecode.com@...2524...> Message-ID: <9-6813199134517018827-9150352820753408673-gambas=googlecode.com@...2524...> Comment #9 on issue 185 by benoit.m... at ...626...: Editing a line changes font spacing http://code.google.com/p/gambas/issues/detail?id=185 Mmm. Then I don't see. There may be be something weird on your machine, as nobody else reported that problem. :-/ From and.bertini at ...626... Fri Jan 20 10:01:40 2012 From: and.bertini at ...626... (Andrea Bertini) Date: Fri, 20 Jan 2012 10:01:40 +0100 Subject: [Gambas-user] Database manager error Message-ID: <4F192D74.1050205@...626...> During the table's editing if you try to delete all the fields from the last, program exit. Andrea Bertini From nando_f at ...951... Fri Jan 20 10:11:42 2012 From: nando_f at ...951... (nando) Date: Fri, 20 Jan 2012 05:11:42 -0400 Subject: [Gambas-user] Help! I can't find the error In-Reply-To: References: Message-ID: <20120120090907.M72322@...951...> I see 10 items to SET. I count more than 10 vars in the list of variables ?? -Fernando ---------- Original Message ----------- From: "M. Cs." To: mailing list for gambas users Sent: Thu, 19 Jan 2012 21:57:53 +0100 Subject: [Gambas-user] Help! I can't find the error > querry = "SELECT * FROM MP3;" > tablak = DBconX.Exec(querry) > DBconX.Begin() > For Each tablak > a1 = Trans(tablak!file) > a2 = Trans(tablak!path) > a3 = Trans(tablak!Volume) > a4 = Trans(tablak!title) > a5 = Trans(tablak!artist) > a6 = Trans(tablak!album) > a7 = Trans(tablak!genre) > a8 = Trans(tablak!year) > a9 = tablak!lenght > a10 = Trans(tablak!lyric) > DBconX.Exec("UPDATE MP3 SET > file=&1,path=&2,Volume=&3,title=&4,artist=&5,album=&6,genre=&7,year=&8,lenght=&9, > lyric=&10 WHERE file=&11 AND path=&12 AND Volume=&13 AND title=&14 AND > artist=&15 AND album=&16 AND genre=&17 AND year=&18 AND lenght=&19 AND > lyric=&20", a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, tablak!file, tablak!path, > tablak!Volume, tablak!title, tablak!artist, tablak!album, tablak!genre, > tablak!year, tablak!lenght, tablak!lyric) Next DBconX.Commit() > > Every variable is defined, the connection is opened the results are > retrieved, yet at UPDATE it tells me error. I can't see why. > > Thanks! > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From Gambas at ...1950... Fri Jan 20 10:13:48 2012 From: Gambas at ...1950... (Caveat) Date: Fri, 20 Jan 2012 10:13:48 +0100 Subject: [Gambas-user] Issue 199 in gambas: LostFocus & Leave events not activated for ValueBox In-Reply-To: <2-6813199134517018827-10985591416947314832-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-10985591416947314832-gambas=googlecode.com@...2524...> <0-6813199134517018827-10985591416947314832-gambas=googlecode.com@...2524...> <2-6813199134517018827-10985591416947314832-gambas=googlecode.com@...2524...> Message-ID: <1327050828.2882.356.camel@...2150...> Looks good to me :-D ComboBox: Oh no, I lost my focus! I'm sure it's around here somewhere... ValueBox: Oh no, I lost my focus! I'm sure it's around here somewhere... ComboBox: Oh no, I lost my focus! I'm sure it's around here somewhere... ValueBox: Oh no, I lost my focus! I'm sure it's around here somewhere... ComboBox: Oh no, I lost my focus! I'm sure it's around here somewhere... Kind regards, Caveat On Fri, 2012-01-20 at 08:18 +0000, gambas at ...2524... wrote: > Updates: > Status: Fixed > > Comment #2 on issue 199 by benoit.m... at ...626...: LostFocus & Leave events > not activated for ValueBox > http://code.google.com/p/gambas/issues/detail?id=199 > > It should be fixed in revision #4411. > > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From bespalov.av at ...626... Fri Jan 20 12:16:56 2012 From: bespalov.av at ...626... (=?KOI8-R?B?4czFy9PFyiDixdPQwczP1w==?=) Date: Fri, 20 Jan 2012 17:16:56 +0600 Subject: [Gambas-user] How to speed up the display of images at DrawingArea? Message-ID: Hi! How to speed up the display of images at DrawingArea? If the image is large (10MB), it is displayed for a long time. How can I change the size or quality image? Thanks. -- ____ Alexey. From abbat.81 at ...787... Fri Jan 20 13:07:33 2012 From: abbat.81 at ...787... (abbat) Date: Fri, 20 Jan 2012 04:07:33 -0800 (PST) Subject: [Gambas-user] An example of applet (own text in it) for LXPanel on Gambas 3 Message-ID: <33173919.post@...1379...> Hi! Is it possible to find a simple example of such a applet like date for LXPanel? Thanks. -- View this message in context: http://old.nabble.com/An-example-of-applet-%28own-text-in-it%29-for-LXPanel-on-Gambas-3-tp33173919p33173919.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...2524... Fri Jan 20 14:57:08 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 20 Jan 2012 13:57:08 +0000 Subject: [Gambas-user] Issue 185 in gambas: Editing a line changes font spacing In-Reply-To: <9-6813199134517018827-9150352820753408673-gambas=googlecode.com@...2524...> References: <9-6813199134517018827-9150352820753408673-gambas=googlecode.com@...2524...> <0-6813199134517018827-9150352820753408673-gambas=googlecode.com@...2524...> Message-ID: <10-6813199134517018827-9150352820753408673-gambas=googlecode.com@...2524...> Comment #10 on issue 185 by zachsmit... at ...626...: Editing a line changes font spacing http://code.google.com/p/gambas/issues/detail?id=185 It seems to be a problem with Qt 4.8. https://bbs.archlinux.org/viewtopic.php?id=132368 From john.aaron.rose at ...1601... Fri Jan 20 19:03:54 2012 From: john.aaron.rose at ...1601... (John Rose) Date: Fri, 20 Jan 2012 18:03:54 +0000 Subject: [Gambas-user] 'Null object' when loading image from a .jpg file Message-ID: This project might be more help to this issue as it's much smaller than my original one. When it crashes (in ButtonImportImage_Click()) on the Picture.Load command (I've also tried Image.Load with thsame result), a message box pops up wth 'Null object' displayed but not showing line number or anything else. I've tried pointing the File Dialog at various .jpg files, with the same result. -------------- next part -------------- A non-text attachment was scrubbed... Name: Test.tar.gz Type: application/x-gzip Size: 11330 bytes Desc: not available URL: From math.eber at ...221... Fri Jan 20 19:44:16 2012 From: math.eber at ...221... (Matti) Date: Fri, 20 Jan 2012 19:44:16 +0100 Subject: [Gambas-user] 'Null object' when loading image from a .jpg file In-Reply-To: References: Message-ID: <4F19B600.5080305@...221...> You can't do Dim picture As Picture picture = Picture.Load(Dialog.Path) image = picture.Image as picture and image are reserved keywords. use "mypicture" and "myimage" instead, and it works. Am 20.01.2012 19:03, schrieb John Rose: > This project might be more help to this issue as it's much smaller than my > original one. When it crashes (in ButtonImportImage_Click()) on the > Picture.Load command (I've also tried Image.Load with thsame result), a > message box pops up wth 'Null object' displayed but not showing line number > or anything else. I've tried pointing the File Dialog at various .jpg > files, with the same result. From math.eber at ...221... Fri Jan 20 20:00:24 2012 From: math.eber at ...221... (Matti) Date: Fri, 20 Jan 2012 20:00:24 +0100 Subject: [Gambas-user] Unable to compile gb.form.stock Message-ID: <4F19B9C8.2070203@...221...> I compiled svn version 4409, and at the end of su -c "make install", I got the message || || Unable to compile gb.form.stock || But all the icons are shown and are usable. Regards Matti From john.aaron.rose at ...1601... Fri Jan 20 20:16:56 2012 From: john.aaron.rose at ...1601... (John Rose) Date: Fri, 20 Jan 2012 19:16:56 +0000 Subject: [Gambas-user] Bizarre things with controls Message-ID: When ButtonSearch is clicked, even though the only previous event coding on TextAreaDetails is to clear & refresh it, text appears in it: this is as though ComboBoxTitle has been clicked. To display the Text in the TextBox part of a ComboBox (i.e. ComboBoxTitle, again in ButtonSearch_Click), it seems to be necessary also to put that same text as the first item of the list in the ListBox part: that item is not then shown at runtime in the popup list. Fragments of code from the attached Test project: Public Sub ButtonSearch_Click() ClearTitleAndDetails 'clears TextAreaDetails . . . With ComboBoxTitle .Text = "Select Title" .Add("Select Title") .Add("T1") .Add("T2") .Add("T3") .Enabled = True .Refresh End With End Public Sub ComboBoxTitle_Click() EnableMainControls ' TextAreaDetails.Text = "Lines of text." End -------------- next part -------------- A non-text attachment was scrubbed... Name: Test.tar.gz Type: application/x-gzip Size: 11330 bytes Desc: not available URL: From gambas at ...2524... Fri Jan 20 20:24:26 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 20 Jan 2012 19:24:26 +0000 Subject: [Gambas-user] Issue 190 in gambas: Crash with OpenGL projects In-Reply-To: <3-6813199134517018827-729842094719205194-gambas=googlecode.com@...2524...> References: <3-6813199134517018827-729842094719205194-gambas=googlecode.com@...2524...> <0-6813199134517018827-729842094719205194-gambas=googlecode.com@...2524...> Message-ID: <4-6813199134517018827-729842094719205194-gambas=googlecode.com@...2524...> Comment #4 on issue 190 by jussi.la... at ...626...: Crash with OpenGL projects http://code.google.com/p/gambas/issues/detail?id=190 Put this issue on hold! Seems like there are problems with current nvidia driver. From john.aaron.rose at ...1601... Fri Jan 20 20:29:39 2012 From: john.aaron.rose at ...1601... (John Rose) Date: Fri, 20 Jan 2012 19:29:39 +0000 Subject: [Gambas-user] 'Null object' when loading image from a .jpg file Message-ID: Matti, Thanks for that. You were c orrect. I never thought that picture and image are reserved keywords. I assumed that they would not be as they are not the same as Picture & Image. PS Please ignore my follow up message on this topic sent 5 minutes ago! From gambas at ...1... Fri Jan 20 20:56:30 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Fri, 20 Jan 2012 20:56:30 +0100 Subject: [Gambas-user] Unable to compile gb.form.stock In-Reply-To: <4F19B9C8.2070203@...221...> References: <4F19B9C8.2070203@...221...> Message-ID: <4F19C6EE.1080709@...1...> Le 20/01/2012 20:00, Matti a ?crit : > I compiled svn version 4409, and at the end of su -c "make install", I got the > message > || > || Unable to compile gb.form.stock > || > > But all the icons are shown and are usable. > > Regards > Matti > Please recompile from scratch and send the full output of the compilation & installation process! There must be a problem somewhere. -- Beno?t Minisini From gambas at ...2524... Fri Jan 20 20:59:56 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 20 Jan 2012 19:59:56 +0000 Subject: [Gambas-user] Issue 190 in gambas: Crash with OpenGL projects In-Reply-To: <4-6813199134517018827-729842094719205194-gambas=googlecode.com@...2524...> References: <4-6813199134517018827-729842094719205194-gambas=googlecode.com@...2524...> <0-6813199134517018827-729842094719205194-gambas=googlecode.com@...2524...> Message-ID: <5-6813199134517018827-729842094719205194-gambas=googlecode.com@...2524...> Comment #5 on issue 190 by benoit.m... at ...626...: Crash with OpenGL projects http://code.google.com/p/gambas/issues/detail?id=190 I think so. What does "put ... on hold" mean? From keithclark at ...2185... Fri Jan 20 21:15:47 2012 From: keithclark at ...2185... (Keith Clark) Date: Fri, 20 Jan 2012 15:15:47 -0500 Subject: [Gambas-user] Fill list box with mysql query Message-ID: <4F19CB73.6040507@...2185...> How would I go about filling a listbox with a result from a mysql query? I know how to connect, write the query and get the result back in say $Result. The $Result would contain only one field with multiple rows. Thanks, Keith From gambas at ...2524... Fri Jan 20 21:43:25 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 20 Jan 2012 20:43:25 +0000 Subject: [Gambas-user] Issue 200 in gambas: [gb.dbus] A bug in the handling of errors when calling the dbus Message-ID: <0-6813199134517018827-16931357403594640603-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 200 by svit... at ...626...: [gb.dbus] A bug in the handling of errors when calling the dbus http://code.google.com/p/gambas/issues/detail?id=200 1) Describe the problem. When call has no return value, no error is raised. Even if the call was wrong. When calling a function, there is no detailed error message. There is only "Unable to call method". 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: 3.0.0 Revision: none Operating system: Linux Distribution: other Architecture: x86 GUI component: none Desktop used: none 3) Provide a little project that reproduces the bug or the crash. attached project and patch CODE: Public Sub Main() Dim o As Object Print "BUG 1" Print "Try DBus[\"system://org.freedesktop.UDisks\"][\"/org/freedesktop/UDisks\"].Uninhibit(\"fake_cookie\")" Try DBus["system://org.freedesktop.UDisks"]["/org/freedesktop/UDisks"].Uninhibit("fake_cookie") If Error Then Print "NO BUG. Error message:";; Error.Text Else Print "BUG! No error message" End If Print "BUG 2" Print "Try DBus[\"system://org.freedesktop.UDisks\"][\"/org/freedesktop/UDisks\"].FindDeviceByDeviceFile(\"/fake_device\")" Try o = DBus["system://org.freedesktop.UDisks"]["/org/freedesktop/UDisks"].FindDeviceByDeviceFile("/fake_device") If Error Then If Error.Text = "Unable to call method" Then Print "BUG! No detailed error message: ";; Error.Text Else Print "NO BUG. Error message is detailed:";; Error.Text End If Else Print "No error. Strange" End If End Output: BUG 1 Try DBus["system://org.freedesktop.UDisks"]["/org/freedesktop/UDisks"].Uninhibit("fake_cookie") BUG! No error message BUG 2 Try DBus["system://org.freedesktop.UDisks"]["/org/freedesktop/UDisks"].FindDeviceByDeviceFile("/fake_device") BUG! No detailed error message: Unable to call method gbx3: warning: 6 allocation(s) non freed. After patch: BUG 1 Try DBus["system://org.freedesktop.UDisks"]["/org/freedesktop/UDisks"].Uninhibit("fake_cookie") NO BUG. Error message: org.freedesktop.UDisks.Error.Failed: No such inhibitor BUG 2 Try DBus["system://org.freedesktop.UDisks"]["/org/freedesktop/UDisks"].FindDeviceByDeviceFile("/fake_device") NO BUG. Error message is detailed: org.freedesktop.UDisks.Error.Failed: No such device gbx3: warning: 4 allocation(s) non freed. Allocation warning is probably another bug. Attachments: bug-gb.dbus-error-handle-0.0.1.tar.gz 4.7 KB gb-dbus-handle-error-bug.patch 1.3 KB From mohareve at ...626... Fri Jan 20 21:46:03 2012 From: mohareve at ...626... (M. Cs.) Date: Fri, 20 Jan 2012 21:46:03 +0100 Subject: [Gambas-user] Fill list box with mysql query In-Reply-To: <4F19CB73.6040507@...2185...> References: <4F19CB73.6040507@...2185...> Message-ID: $Result=MyConnection.Exec("SELECT * FROM Mytable;") FOR EACH $Result MyListbox.Add($Result!fieldname) NEXT 2012/1/20, Keith Clark : > How would I go about filling a listbox with a result from a mysql > query? I know how to connect, write the query and get the result back > in say $Result. > > The $Result would contain only one field with multiple rows. > > Thanks, > > Keith > > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...2524... Fri Jan 20 22:06:39 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 20 Jan 2012 21:06:39 +0000 Subject: [Gambas-user] Issue 190 in gambas: Crash with OpenGL projects In-Reply-To: <5-6813199134517018827-729842094719205194-gambas=googlecode.com@...2524...> References: <5-6813199134517018827-729842094719205194-gambas=googlecode.com@...2524...> <0-6813199134517018827-729842094719205194-gambas=googlecode.com@...2524...> Message-ID: <6-6813199134517018827-729842094719205194-gambas=googlecode.com@...2524...> Comment #6 on issue 190 by jussi.la... at ...626...: Crash with OpenGL projects http://code.google.com/p/gambas/issues/detail?id=190 It means, it is wise to ignore this issue until driver problems are resolved (if you or anyone were actively investigating this issue). But if you are sure that this is not problem of Gambas, I think this issue should be marked as invalid. From keithclark at ...2185... Fri Jan 20 22:38:04 2012 From: keithclark at ...2185... (Keith Clark) Date: Fri, 20 Jan 2012 16:38:04 -0500 Subject: [Gambas-user] MySQL last_insert_id value Message-ID: <4F19DEBC.7050305@...2185...> How would I get the MySQL last_insert_id() value into an integer variable inside gambas? I tried with CurrentID=db.exec("select last_insert_id() as last") but I get a type mismatch error. Expecting integer, got result. Thanks, Keith From tobiasboe1 at ...20... Fri Jan 20 22:39:16 2012 From: tobiasboe1 at ...20... (tobias) Date: Fri, 20 Jan 2012 22:39:16 +0100 Subject: [Gambas-user] Convert string to integer with arbitrary base Message-ID: <4F19DF04.5070505@...20...> hi, i haven't found any function to convert a string to an integer with this string containing signs of an arbitrary number base. won't it be useful? this is a piece of code i once wrote for this purpose in c: /* * STR: I string containing symbols * AL: I alphabet to put symbols in order * RET: O result in integer format * return value: O number of symbols put into the integer */ char stoi_al(char *str, char *al, unsigned int *ret) { int i; unsigned int n = 0, base, c = 0; char *ind; base = strlen(al); for (i = 0, str[i]; i++) { if (!(ind = strchr(al, str[i]))) break; n = n * base + ind - al; c++; } *ret = n; return c; } for i just needed it to work this unsigned integers it does just that but can certainly be expanded (using '-' to negate will however imply that '-' is not part of AL). example for hex conversion would be: stoi("ffffffff", "0123456789abcdef", &i); printf("%u", i); is this appreciated or didn't i recognise a function already existing in gambas here? i haven't thought about any risks yet when playing around with the alphabet... regards, tobi From tobiasboe1 at ...20... Fri Jan 20 23:14:32 2012 From: tobiasboe1 at ...20... (tobias) Date: Fri, 20 Jan 2012 23:14:32 +0100 Subject: [Gambas-user] MySQL last_insert_id value In-Reply-To: <4F19DEBC.7050305@...2185...> References: <4F19DEBC.7050305@...2185...> Message-ID: <4F19E748.9050700@...20...> hi, > How would I get the MySQL last_insert_id() value into an integer > variable inside gambas? > > I tried with > > CurrentID=db.exec("select last_insert_id() as last") > > but I get a type mismatch error. Expecting integer, got result. > > Thanks, > > Keith > i suppose CurrentID is an integer? you get that error because you actually want to stuff a Result object (the return value of DB.Exec()) into an integer (CurrentID as i guessed). to get the desired value you should use the returned Result object like this: CurrentID = DB.Exec("select last_insert_id() as last")["last"] which will get you the value of field "last" in the Result. see the doc for details. regards, tobi From tobiasboe1 at ...20... Fri Jan 20 23:17:45 2012 From: tobiasboe1 at ...20... (tobias) Date: Fri, 20 Jan 2012 23:17:45 +0100 Subject: [Gambas-user] Convert string to integer with arbitrary base In-Reply-To: <4F19DF04.5070505@...20...> References: <4F19DF04.5070505@...20...> Message-ID: <4F19E809.7000909@...20...> oops, make this comma in the for loop head a semicolon... > /* > * STR: I string containing symbols > * AL: I alphabet to put symbols in order > * RET: O result in integer format > * return value: O number of symbols put into the integer > */ > char stoi_al(char *str, char *al, unsigned int *ret) > { > int i; > unsigned int n = 0, base, c = 0; > char *ind; > > base = strlen(al); > for (i = 0, str[i]; i++) > { > if (!(ind = strchr(al, str[i]))) break; > n = n * base + ind - al; > c++; > } > *ret = n; > return c; > } > From keithclark at ...2185... Fri Jan 20 23:46:58 2012 From: keithclark at ...2185... (Keith Clark) Date: Fri, 20 Jan 2012 17:46:58 -0500 Subject: [Gambas-user] MySQL last_insert_id value In-Reply-To: <4F19E748.9050700@...20...> References: <4F19DEBC.7050305@...2185...> <4F19E748.9050700@...20...> Message-ID: <4F19EEE2.6070407@...2185...> On 12-01-20 05:14 PM, tobias wrote: > hi, > >> How would I get the MySQL last_insert_id() value into an integer >> variable inside gambas? >> >> I tried with >> >> CurrentID=db.exec("select last_insert_id() as last") >> >> but I get a type mismatch error. Expecting integer, got result. >> >> Thanks, >> >> Keith >> > i suppose CurrentID is an integer? > you get that error because you actually want to stuff a Result object > (the return value of DB.Exec()) into an integer (CurrentID as i > guessed). to get the desired value you should use the returned Result > object like this: > > CurrentID = DB.Exec("select last_insert_id() as last")["last"] > > which will get you the value of field "last" in the Result. > see the doc for details. > > regards, > tobi > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user Thanks Tobi....I'm still having some trouble understanding and implementing this db.exec function. Could you point me to the documentation that shows some examples? I don't seem to find many via Google. Keith From tobiasboe1 at ...20... Sat Jan 21 00:04:26 2012 From: tobiasboe1 at ...20... (tobias) Date: Sat, 21 Jan 2012 00:04:26 +0100 Subject: [Gambas-user] MySQL last_insert_id value In-Reply-To: <4F19EEE2.6070407@...2185...> References: <4F19DEBC.7050305@...2185...> <4F19E748.9050700@...20...> <4F19EEE2.6070407@...2185...> Message-ID: <4F19F2FA.1030604@...20...> On 20.01.2012 23:46, Keith Clark wrote: > On 12-01-20 05:14 PM, tobias wrote: >> hi, >> >>> How would I get the MySQL last_insert_id() value into an integer >>> variable inside gambas? >>> >>> I tried with >>> >>> CurrentID=db.exec("select last_insert_id() as last") >>> >>> but I get a type mismatch error. Expecting integer, got result. >>> >>> Thanks, >>> >>> Keith >>> >> i suppose CurrentID is an integer? >> you get that error because you actually want to stuff a Result object >> (the return value of DB.Exec()) into an integer (CurrentID as i >> guessed). to get the desired value you should use the returned Result >> object like this: >> >> CurrentID = DB.Exec("select last_insert_id() as last")["last"] >> >> which will get you the value of field "last" in the Result. >> see the doc for details. >> >> regards, >> tobi >> >> ------------------------------------------------------------------------------ >> Keep Your Developer Skills Current with LearnDevNow! >> The most comprehensive online learning library for Microsoft developers >> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, >> Metro Style Apps, more. Free future releases when you subscribe now! >> http://p.sf.net/sfu/learndevnow-d2d >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > Thanks Tobi....I'm still having some trouble understanding and > implementing this db.exec function. Could you point me to the > documentation that shows some examples? I don't seem to find many via > Google. > > Keith > > > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user i wrote a paper for school about this topic last year and had most of my information from the mailing list (see archive), the doc (everything below gambasdoc.org/help/comp/gb.db) and the picture database example which may be a good point to start. i could send you the paper but it's german... From Gambas at ...1950... Sat Jan 21 00:55:41 2012 From: Gambas at ...1950... (Caveat) Date: Sat, 21 Jan 2012 00:55:41 +0100 Subject: [Gambas-user] Convert string to integer with arbitrary base In-Reply-To: <4F19E809.7000909@...20...> References: <4F19DF04.5070505@...20...> <4F19E809.7000909@...20...> Message-ID: <1327103741.2882.374.camel@...2150...> Hi Tobias I'm sorry if I haven't completely understood your request (perhaps you're asking Benoit for a function built in to Gambas?) but I have here some code I wrote to help me do arbitrary conversions of a number in any base to any other base (well up to base 36 anyway... then I ran out of digits!). It works with unsigned ints and simply returns -1 if a digit is out of range e.g. trying to convert "3G" from hex. There's 2 parts to it, toInt() and intToBase() which can be called independently but I tend to just use convertBase() all the time. It's probably not very efficient, but it works well enough for me and has found its way into a few different projects of mine (I tend to do quite a few things that require binary or hex conversions...). Benoit will probably point us to some inbuilt function in Gambas that makes all of this redundant but he can't take away the fun I had writing it ;-) Anyway, here's the code: ' Give some convenient names for the common bases Public Const BASE_BINARY As Integer = 2 Public Const BASE_OCTAL As Integer = 8 Public Const BASE_DENARY As Integer = 10 Public Const BASE_TEN As Integer = 10 Public Const BASE_HEX As Integer = 16 ' This table of digit values allows up to base36, using the same ' principle as for standard hex representation ' (i.e. A=10, B=11...F=15 etc) Private DIGITS As String[] = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"] Public Function convertBase(numberIn As String, fromBase As Integer, toBase As Integer) As String Dim value As Integer value = toInt(numberIn, fromBase) Return intToBase(value, toBase) End Public Function intToBase(numberIn As Integer, base As Integer) As String Dim remain, numToDivide As Integer Dim result As String = "" numToDivide = numberIn If numToDivide < 1 Then result = "0" Else Do While numToDivide / base > 0 remain = numToDivide Mod base numToDivide = (Int)(numToDivide / base) result = DIGITS[remain] & result Loop End If Return result End Public Function toInt(inputStr As String, base As Integer) As Integer Dim idx, mult, result, value As Integer mult = 1 For idx = Len(inputStr) To 1 Step -1 ' If we're in a base with digits bigger than 9 ' we need the Find to return 10 for A, 11 for B, 12 for C etc. value = DIGITS.Find(UCase(Mid$(inputStr, idx, 1))) ' If we have a digit out of range, return -1 If value >= base Then Return -1 Endif value = value * mult result = result + value mult = mult * base Next Return result End Kind regards, Caveat On Fri, 2012-01-20 at 23:17 +0100, tobias wrote: > oops, > make this comma in the for loop head a semicolon... > > > /* > > * STR: I string containing symbols > > * AL: I alphabet to put symbols in order > > * RET: O result in integer format > > * return value: O number of symbols put into the integer > > */ > > char stoi_al(char *str, char *al, unsigned int *ret) > > { > > int i; > > unsigned int n = 0, base, c = 0; > > char *ind; > > > > base = strlen(al); > > for (i = 0, str[i]; i++) > > { > > if (!(ind = strchr(al, str[i]))) break; > > n = n * base + ind - al; > > c++; > > } > > *ret = n; > > return c; > > } > > > > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...2524... Sat Jan 21 02:17:14 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 21 Jan 2012 01:17:14 +0000 Subject: [Gambas-user] Issue 200 in gambas: [gb.dbus] A bug in the handling of errors when calling the dbus In-Reply-To: <0-6813199134517018827-16931357403594640603-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-16931357403594640603-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-16931357403594640603-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -Version Version-TRUNK Comment #1 on issue 200 by benoit.m... at ...626...: [gb.dbus] A bug in the handling of errors when calling the dbus http://code.google.com/p/gambas/issues/detail?id=200 (No comment was entered for this change.) From gambas at ...2524... Sat Jan 21 02:48:27 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 21 Jan 2012 01:48:27 +0000 Subject: [Gambas-user] Issue 201 in gambas: If enable gb.image.io you need disable gb.gt4 and gb.gtk and gb.gui Message-ID: <0-6813199134517018827-10878391952100552770-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 201 by bespalov... at ...626...: If enable gb.image.io you need disable gb.gt4 and gb.gtk and gb.gui http://code.google.com/p/gambas/issues/detail?id=201 If you enable gb.image.io, you need disable gb.gt4 and gb.gtk and gb.gui. How use gb.image.io? Version: 3.0.0 Operating system: Linux Distribution: Fedora Architecture: x86_64 / GUI component: QT3 / QT4 / GTK+ Desktop used: Gnome3 From gambas at ...2524... Sat Jan 21 03:03:35 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 21 Jan 2012 02:03:35 +0000 Subject: [Gambas-user] Issue 202 in gambas: How use hImage.Resize Message-ID: <0-6813199134517018827-4527222575858099578-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 202 by bespalov... at ...626...: How use hImage.Resize http://code.google.com/p/gambas/issues/detail?id=202 My Image size 4000 * 4000 pixel. If I done: hImage.Resize(200, 200) Draw.Begin(hArea) Draw.Image(hImage, 0, 0) Draw.End I can see ???? part of the Image. How use hImage.Resize() for resize or scaled Image. I want to get a small image for a quick Draw.Image() From gambas at ...2524... Sat Jan 21 03:44:51 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 21 Jan 2012 02:44:51 +0000 Subject: [Gambas-user] Issue 202 in gambas: How use hImage.Resize In-Reply-To: <0-6813199134517018827-4527222575858099578-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-4527222575858099578-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-4527222575858099578-gambas=googlecode.com@...2524...> Updates: Status: Invalid Comment #1 on issue 202 by benoit.m... at ...626...: How use hImage.Resize http://code.google.com/p/gambas/issues/detail?id=202 This is a bug tracker, not a forum. Please post your help requests on the mailing-list. From gambas at ...2524... Sat Jan 21 03:48:53 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 21 Jan 2012 02:48:53 +0000 Subject: [Gambas-user] Issue 201 in gambas: If enable gb.image.io you need disable gb.gt4 and gb.gtk and gb.gui In-Reply-To: <0-6813199134517018827-10878391952100552770-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-10878391952100552770-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-10878391952100552770-gambas=googlecode.com@...2524...> Updates: Status: WontFix Labels: -Version Version-TRUNK Comment #1 on issue 201 by benoit.m... at ...626...: If enable gb.image.io you need disable gb.gt4 and gb.gtk and gb.gui http://code.google.com/p/gambas/issues/detail?id=201 This is not a bug. You don't need gb.image.io if you use gb.qt4 or gb.gtk, as Qt4 and GTK+ already have support for loading and saving images. From bespalov.av at ...626... Sat Jan 21 04:07:14 2012 From: bespalov.av at ...626... (=?KOI8-R?B?4czFy9PFyiDixdPQwczP1w==?=) Date: Sat, 21 Jan 2012 09:07:14 +0600 Subject: [Gambas-user] How use Image.Resize Message-ID: My Image size 4000 * 4000 pixel. If I done: hImage.Resize(200, 200) Draw.Begin(hArea) Draw.Image(hImage, 0, 0) Draw.End I can see only part of the Image. How use hImage.Resize() for resize or scaled Image. I want to get a small image for a quick Draw.Image() -- ____ Alexey. From gambas at ...2524... Sat Jan 21 04:21:07 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 21 Jan 2012 03:21:07 +0000 Subject: [Gambas-user] Issue 200 in gambas: [gb.dbus] A bug in the handling of errors when calling the dbus In-Reply-To: <1-6813199134517018827-16931357403594640603-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-16931357403594640603-gambas=googlecode.com@...2524...> <0-6813199134517018827-16931357403594640603-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-16931357403594640603-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #2 on issue 200 by benoit.m... at ...626...: [gb.dbus] A bug in the handling of errors when calling the dbus http://code.google.com/p/gambas/issues/detail?id=200 Thanks for the patch. The bugs should be fixed in revision #4413, the memory leak included. From gambas at ...2524... Sat Jan 21 04:25:09 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 21 Jan 2012 03:25:09 +0000 Subject: [Gambas-user] Issue 200 in gambas: [gb.dbus] A bug in the handling of errors when calling the dbus In-Reply-To: <2-6813199134517018827-16931357403594640603-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-16931357403594640603-gambas=googlecode.com@...2524...> <0-6813199134517018827-16931357403594640603-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-16931357403594640603-gambas=googlecode.com@...2524...> Updates: Labels: -Version-TRUNK Version-3.0.0 Comment #3 on issue 200 by benoit.m... at ...626...: [gb.dbus] A bug in the handling of errors when calling the dbus http://code.google.com/p/gambas/issues/detail?id=200 (No comment was entered for this change.) From gambas at ...2524... Sat Jan 21 04:29:11 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 21 Jan 2012 03:29:11 +0000 Subject: [Gambas-user] Issue 199 in gambas: LostFocus & Leave events not activated for ValueBox In-Reply-To: <2-6813199134517018827-10985591416947314832-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-10985591416947314832-gambas=googlecode.com@...2524...> <0-6813199134517018827-10985591416947314832-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-10985591416947314832-gambas=googlecode.com@...2524...> Updates: Labels: -Version-TRUNK Version-3.0.0 Comment #3 on issue 199 by benoit.m... at ...626...: LostFocus & Leave events not activated for ValueBox http://code.google.com/p/gambas/issues/detail?id=199 (No comment was entered for this change.) From gambas at ...2524... Sat Jan 21 04:33:14 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 21 Jan 2012 03:33:14 +0000 Subject: [Gambas-user] Issue 196 in gambas: Inline arrays with different types In-Reply-To: <1-6813199134517018827-5551267813478645716-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-5551267813478645716-gambas=googlecode.com@...2524...> <0-6813199134517018827-5551267813478645716-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-5551267813478645716-gambas=googlecode.com@...2524...> Updates: Labels: -Version-TRUNK Version-3.0.0 Comment #2 on issue 196 by benoit.m... at ...626...: Inline arrays with different types http://code.google.com/p/gambas/issues/detail?id=196 (No comment was entered for this change.) From gambas at ...2524... Sat Jan 21 04:37:17 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 21 Jan 2012 03:37:17 +0000 Subject: [Gambas-user] Issue 195 in gambas: The bit manipulation functions does not work correctly on Shorts when negative values are returned In-Reply-To: <2-6813199134517018827-3980911674262998236-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-3980911674262998236-gambas=googlecode.com@...2524...> <0-6813199134517018827-3980911674262998236-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-3980911674262998236-gambas=googlecode.com@...2524...> Updates: Labels: -Version-TRUNK Version-3.0.0 Comment #3 on issue 195 by benoit.m... at ...626...: The bit manipulation functions does not work correctly on Shorts when negative values are returned http://code.google.com/p/gambas/issues/detail?id=195 (No comment was entered for this change.) From gambas at ...2524... Sat Jan 21 04:41:19 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 21 Jan 2012 03:41:19 +0000 Subject: [Gambas-user] Issue 194 in gambas: "IIf" is buggy In-Reply-To: <7-6813199134517018827-15360940081847258855-gambas=googlecode.com@...2524...> References: <7-6813199134517018827-15360940081847258855-gambas=googlecode.com@...2524...> <0-6813199134517018827-15360940081847258855-gambas=googlecode.com@...2524...> Message-ID: <8-6813199134517018827-15360940081847258855-gambas=googlecode.com@...2524...> Updates: Labels: -Version-TRUNK Version-3.0.0 Comment #8 on issue 194 by benoit.m... at ...626...: "IIf" is buggy http://code.google.com/p/gambas/issues/detail?id=194 (No comment was entered for this change.) From gambas at ...2524... Sat Jan 21 04:45:22 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 21 Jan 2012 03:45:22 +0000 Subject: [Gambas-user] Issue 190 in gambas: Crash with OpenGL projects In-Reply-To: <6-6813199134517018827-729842094719205194-gambas=googlecode.com@...2524...> References: <6-6813199134517018827-729842094719205194-gambas=googlecode.com@...2524...> <0-6813199134517018827-729842094719205194-gambas=googlecode.com@...2524...> Message-ID: <7-6813199134517018827-729842094719205194-gambas=googlecode.com@...2524...> Updates: Status: WontFix Labels: -Version-TRUNK Version-3.0.0 Comment #7 on issue 190 by benoit.m... at ...626...: Crash with OpenGL projects http://code.google.com/p/gambas/issues/detail?id=190 OK. From gambas at ...2524... Sat Jan 21 04:49:24 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 21 Jan 2012 03:49:24 +0000 Subject: [Gambas-user] Issue 189 in gambas: gambas3: postgresql connection password issue at runtime In-Reply-To: <3-6813199134517018827-12835994645982421519-gambas=googlecode.com@...2524...> References: <3-6813199134517018827-12835994645982421519-gambas=googlecode.com@...2524...> <0-6813199134517018827-12835994645982421519-gambas=googlecode.com@...2524...> Message-ID: <4-6813199134517018827-12835994645982421519-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #4 on issue 189 by benoit.m... at ...626...: gambas3: postgresql connection password issue at runtime http://code.google.com/p/gambas/issues/detail?id=189 OK, I close the issue then. From gambas at ...2524... Sat Jan 21 04:53:26 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 21 Jan 2012 03:53:26 +0000 Subject: [Gambas-user] Issue 185 in gambas: Editing a line changes font spacing In-Reply-To: <11-6813199134517018827-9150352820753408673-gambas=googlecode.com@...2524...> References: <11-6813199134517018827-9150352820753408673-gambas=googlecode.com@...2524...> <0-6813199134517018827-9150352820753408673-gambas=googlecode.com@...2524...> Message-ID: <12-6813199134517018827-9150352820753408673-gambas=googlecode.com@...2524...> Updates: Labels: -Version-Any Version-TRUNK Comment #12 on issue 185 by benoit.m... at ...626...: Editing a line changes font spacing http://code.google.com/p/gambas/issues/detail?id=185 (No comment was entered for this change.) From gambas at ...2524... Sat Jan 21 05:25:46 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 21 Jan 2012 04:25:46 +0000 Subject: [Gambas-user] Issue 203 in gambas: Sub declaration allows a return value just like a function Message-ID: <0-6813199134517018827-271853248819185915-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 203 by zachsmit... at ...626...: Sub declaration allows a return value just like a function http://code.google.com/p/gambas/issues/detail?id=203 1) A sub declaration allows a return value just like a function, yet the syntax page does not show that this is allowed. 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: TRUNK Revision: r4404 [System] OperatingSystem=Linux Kernel=3.1.9-2-ARCH Architecture=x86_64 Memory=4052012 kB DistributionVendor=arch DistributionRelease=n/a Desktop=Xfce [Gambas 2] Version=2.23.1 Path=/usr/bin/gbx2 [Gambas 3] Version=3.0.90 Path=/usr/bin/gbx3 [Libraries] Qt4=libQtCore.so.4.8.0 GTK+=libgtk-x11-2.0.so.0.2400.8 This code acts like a function. Is it intentional or a bug? Public Sub IsThisaFunction() As Boolean Return False End From gambas at ...2524... Sat Jan 21 10:17:49 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 21 Jan 2012 09:17:49 +0000 Subject: [Gambas-user] Issue 203 in gambas: Sub declaration allows a return value just like a function In-Reply-To: <0-6813199134517018827-271853248819185915-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-271853248819185915-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-271853248819185915-gambas=googlecode.com@...2524...> Updates: Status: WontFix Labels: -Version Version-TRUNK Comment #1 on issue 203 by benoit.m... at ...626...: Sub declaration allows a return value just like a function http://code.google.com/p/gambas/issues/detail?id=203 This is intentional. From gambas at ...2524... Sat Jan 21 14:11:30 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 21 Jan 2012 13:11:30 +0000 Subject: [Gambas-user] Issue 204 in gambas: [gb.dbus] A memory leaks in the handling of errors when calling the dbus Message-ID: <0-6813199134517018827-15515168212106388893-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 204 by svit... at ...626...: [gb.dbus] A memory leaks in the handling of errors when calling the dbus http://code.google.com/p/gambas/issues/detail?id=204 1) Describe the problem. subj 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: TRUNK Revision: r4413 Operating system: any Distribution: any Architecture: any GUI component: any Desktop used: any 3) Provide a little project that reproduces the bug or the crash. attached 4) If your project needs a database, try to provide it, or part of it. none 5) Explain clearly how to reproduce the bug or the crash. run: valgrind gbx3 /home/my/Devel/Gambas/3/probe/bug-gb.dbus-error-handle-memory-leaks.gambas output: valgrind gbr3 /home/my/Devel/Gambas/3/probe/bug-gb.dbus-error-handle-memory-leaks.gambas ==32605== Memcheck, a memory error detector ==32605== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al. ==32605== Using Valgrind-3.6.1 and LibVEX; rerun with -h for copyright info ==32605== Command: gbr3 /home/my/Devel/Gambas/3/probe/bug-gb.dbus-error-handle-memory-leaks.gambas ==32605== ==32605== ==32605== HEAP SUMMARY: ==32605== in use at exit: 22,266 bytes in 78 blocks ==32605== total heap usage: 1,036 allocs, 958 frees, 153,875 bytes allocated ==32605== ==32605== LEAK SUMMARY: ==32605== definitely lost: 61 bytes in 2 blocks ==32605== indirectly lost: 0 bytes in 0 blocks ==32605== possibly lost: 0 bytes in 0 blocks ==32605== still reachable: 22,205 bytes in 76 blocks ==32605== suppressed: 0 bytes in 0 blocks ==32605== Rerun with --leak-check=full to see details of leaked memory ==32605== ==32605== For counts of detected and suppressed errors, rerun with: -v ==32605== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 27 from 10) 6) Workaround Need to add a call dbus_error_free (&error) in the error handler. Attachments: bug-gb.dbus-error-handle-memory-leaks-0.0.3.tar.gz 4.5 KB From mohareve at ...626... Sat Jan 21 17:48:48 2012 From: mohareve at ...626... (M. Cs.) Date: Sat, 21 Jan 2012 17:48:48 +0100 Subject: [Gambas-user] How to auto-adjust GridView column widths? Message-ID: Is there a way to force a GridView control with 4 columns to adjust the column's width to the content's width? How would it work with a control which expands or stretches itself during maximizing the FMain? Thanks! From gambas at ...2524... Sat Jan 21 21:11:20 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 21 Jan 2012 20:11:20 +0000 Subject: [Gambas-user] Issue 204 in gambas: [gb.dbus] A memory leaks in the handling of errors when calling the dbus In-Reply-To: <0-6813199134517018827-15515168212106388893-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-15515168212106388893-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-15515168212106388893-gambas=googlecode.com@...2524...> Updates: Status: Fixed Labels: -Version Version-TRUNK Comment #1 on issue 204 by benoit.m... at ...626...: [gb.dbus] A memory leaks in the handling of errors when calling the dbus http://code.google.com/p/gambas/issues/detail?id=204 Fixed in revision #4414. From john.aaron.rose at ...1601... Sun Jan 22 07:58:23 2012 From: john.aaron.rose at ...1601... (John Rose) Date: Sun, 22 Jan 2012 06:58:23 +0000 Subject: [Gambas-user] SelectDirectory does not use Dialog.Path correctly Message-ID: SelectDirectory function does not display the 'Directory Chooser' popup with the initial path set to Home.User when Dialog.Path has previously been set to Home.User. From bbruen at ...2308... Sun Jan 22 09:32:29 2012 From: bbruen at ...2308... (bbruen at ...2308...) Date: Sun, 22 Jan 2012 19:32:29 +1100 Subject: [Gambas-user] SelectDirectory does not use Dialog.Path correctly In-Reply-To: References: Message-ID: <20120122193229.10081mg34ys42nx9@...2757...> uppercase??? Quoting John Rose : > SelectDirectory function does not display the 'Directory Chooser' popup > with the initial path set to Home.User when Dialog.Path has previously been > set to Home.User. > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From wally at ...2037... Sun Jan 22 09:54:22 2012 From: wally at ...2037... (Wally) Date: Sun, 22 Jan 2012 09:54:22 +0100 Subject: [Gambas-user] curve fitting library ? Message-ID: <2019610.XWL4lkhpvt@...46...> Does anyone have experience with curve fitting and/or peakfinding using gambas ? (e.g. example code) Is there a plain C library (Linux) known, suitable to this problem and gambas ? Something like "fityk" (which is written in C++) but written in plain C to use with "EXTERN" I might wrap the fityk C++ or try Gnu Scientific Library, but i'm still searching for alternatives. wally From rmorgan62 at ...626... Sun Jan 22 11:18:30 2012 From: rmorgan62 at ...626... (Randall Morgan) Date: Sun, 22 Jan 2012 02:18:30 -0800 Subject: [Gambas-user] curve fitting library ? In-Reply-To: <2019610.XWL4lkhpvt@...46...> References: <2019610.XWL4lkhpvt@...46...> Message-ID: Not with Gambas and it's been a long while. But if you understand the algorithms used and the type of curve fitting you desire for your problem domain then implementing it in Gambas is not a problem. You may want to google curve fitting algorithms. You need to know if you want a linear, polynomial, rational, cubic, or nonlinear fitting. Then find a C/C++/Python implementation and flow chart the algorithm. Then you can easily convert it to Gambas or any programming language. On Sun, Jan 22, 2012 at 12:54 AM, Wally wrote: > > Does anyone have experience with curve fitting and/or peakfinding > using gambas ? (e.g. example code) > > Is there a plain C library (Linux) known, suitable to this problem > and gambas ? > > Something like "fityk" (which is written in C++) but written in plain C > to use with "EXTERN" > > I might wrap the fityk C++ or try Gnu Scientific Library, but i'm still > searching for alternatives. > > wally > > > > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- If you ask me if it can be done. The answer is YES, it can always be done. The correct questions however are... What will it cost, and how long will it take? From gambas at ...1... Sun Jan 22 13:49:55 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 22 Jan 2012 13:49:55 +0100 Subject: [Gambas-user] How to auto-adjust GridView column widths? In-Reply-To: References: Message-ID: <4F1C05F3.1070706@...1...> Le 21/01/2012 17:48, M. Cs. a ?crit : > Is there a way to force a GridView control with 4 columns to adjust > the column's width to the content's width? > > How would it work with a control which expands or stretches itself > during maximizing the FMain? > > Thanks! > Normally you have to set the column width to -1 to make it adjust its contents. But I'm not sure that it works with GridView using the Data event. Just test and tell me. :-) -- Beno?t Minisini From gambas at ...1... Sun Jan 22 13:52:17 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 22 Jan 2012 13:52:17 +0100 Subject: [Gambas-user] SelectDirectory does not use Dialog.Path correctly In-Reply-To: References: Message-ID: <4F1C0681.1020801@...1...> Le 22/01/2012 07:58, John Rose a ?crit : > SelectDirectory function does not display the 'Directory Chooser' popup > with the initial path set to Home.User when Dialog.Path has previously been > set to Home.User. Please give some details. Which GUI component do you use? Which desktop? Do you use gb.form.dialog or not? -- Beno?t Minisini From gambas at ...1... Sun Jan 22 14:14:18 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 22 Jan 2012 14:14:18 +0100 Subject: [Gambas-user] Bizarre things with controls In-Reply-To: References: Message-ID: <4F1C0BAA.6030104@...1...> Le 20/01/2012 20:16, John Rose a ?crit : > When ButtonSearch is clicked, even though the only previous event coding on > TextAreaDetails is to clear& refresh it, text appears in it: this is as > though ComboBoxTitle has been clicked. > > To display the Text in the TextBox part of a ComboBox (i.e. ComboBoxTitle, > again in ButtonSearch_Click), it seems to be necessary also to put that > same text as the first item of the list in the ListBox part: that item is > not then shown at runtime in the popup list. > > Fragments of code from the attached Test project: > Public Sub ButtonSearch_Click() > ClearTitleAndDetails 'clears TextAreaDetails > . > . > . > With ComboBoxTitle > .Text = "Select Title" > .Add("Select Title") > .Add("T1") > .Add("T2") > .Add("T3") > .Enabled = True > .Refresh > End With > End > > Public Sub ComboBoxTitle_Click() > EnableMainControls ' > TextAreaDetails.Text = "Lines of text." > End > There was actually a bug in gb.gtk that let you use the ComboBox.Insert() method whereas the combo-box is read-only. I fixed that in revision #4415. Can you fix your code too, and try your project with that revision? Then tell me if the behaviour is more logical. Regards, -- Beno?t Minisini From abbat.81 at ...787... Sun Jan 22 14:59:22 2012 From: abbat.81 at ...787... (abbat) Date: Sun, 22 Jan 2012 05:59:22 -0800 (PST) Subject: [Gambas-user] An example of applet (own text in it) for LXPanel on Gambas 3 In-Reply-To: <33173919.post@...1379...> References: <33173919.post@...1379...> Message-ID: <33183252.post@...1379...> Is it imposible? abbat wrote: > > Hi! > > Is it possible to find a simple example of such a applet like date for > LXPanel? > > Thanks. > > > -- View this message in context: http://old.nabble.com/An-example-of-applet-%28own-text-in-it%29-for-LXPanel-on-Gambas-3-tp33173919p33183252.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...2524... Sun Jan 22 15:01:48 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 22 Jan 2012 14:01:48 +0000 Subject: [Gambas-user] Issue 181 in gambas: Crash with certain menu caption. In-Reply-To: <3-6813199134517018827-9691118861731232159-gambas=googlecode.com@...2524...> References: <3-6813199134517018827-9691118861731232159-gambas=googlecode.com@...2524...> <0-6813199134517018827-9691118861731232159-gambas=googlecode.com@...2524...> Message-ID: <4-6813199134517018827-9691118861731232159-gambas=googlecode.com@...2524...> Comment #4 on issue 181 by benoit.m... at ...626...: Crash with certain menu caption. http://code.google.com/p/gambas/issues/detail?id=181 Which GTK+ widget theme do you use exactly? From gambas at ...2524... Sun Jan 22 15:40:55 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 22 Jan 2012 14:40:55 +0000 Subject: [Gambas-user] Issue 181 in gambas: Crash with certain menu caption. In-Reply-To: <4-6813199134517018827-9691118861731232159-gambas=googlecode.com@...2524...> References: <4-6813199134517018827-9691118861731232159-gambas=googlecode.com@...2524...> <0-6813199134517018827-9691118861731232159-gambas=googlecode.com@...2524...> Message-ID: <5-6813199134517018827-9691118861731232159-gambas=googlecode.com@...2524...> Comment #5 on issue 181 by jussi.la... at ...626...: Crash with certain menu caption. http://code.google.com/p/gambas/issues/detail?id=181 Sassandra, but I tried several others and problem persisted. From bespalov.av at ...626... Sun Jan 22 15:58:47 2012 From: bespalov.av at ...626... (=?KOI8-R?B?4czFy9PFyiDixdPQwczP1w==?=) Date: Sun, 22 Jan 2012 20:58:47 +0600 Subject: [Gambas-user] How use Image.Resize Message-ID: I think Image.Resize(w, h) not working properly. Instead of resizing image, it cuts out part of image. Say what? -- ____ Alexey. From jussi.lahtinen at ...626... Sun Jan 22 16:05:54 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 22 Jan 2012 17:05:54 +0200 Subject: [Gambas-user] How use Image.Resize In-Reply-To: References: Message-ID: Image.Resize() resizes it's boundaries not the picture. See Draw.Picture(). http://gambasdoc.org/help/comp/gb.qt4/draw/picture?v3 Jussi On Sun, Jan 22, 2012 at 16:58, ??????? ???????? wrote: > I think Image.Resize(w, h) not working properly. > > Instead of resizing image, it cuts out part of image. > > Say what? > > -- > ____ > Alexey. > > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Sun Jan 22 16:07:25 2012 From: gambas at ...1... (=?UTF-8?B?QmVub8OudCBNaW5pc2luaQ==?=) Date: Sun, 22 Jan 2012 16:07:25 +0100 Subject: [Gambas-user] How use Image.Resize In-Reply-To: References: Message-ID: <4F1C262D.2080302@...1...> Le 22/01/2012 15:58, ??????? ???????? a ?crit : > I think Image.Resize(w, h) not working properly. > > Instead of resizing image, it cuts out part of image. > > Say what? > Resize() changes the size of the image, but does not stretch its contents. You need the Stretch() method for that. You will find it in gb.qt4 or gb.gtk. Regards, -- Beno?t Minisini From gambas at ...1... Sun Jan 22 16:08:02 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 22 Jan 2012 16:08:02 +0100 Subject: [Gambas-user] Database manager error In-Reply-To: <4F192D74.1050205@...626...> References: <4F192D74.1050205@...626...> Message-ID: <4F1C2652.8070402@...1...> Le 20/01/2012 10:01, Andrea Bertini a ?crit : > During the table's editing if you try to delete all the fields from the > last, program exit. > > Andrea Bertini > It should be fixed in revision #4415. Regards, -- Beno?t Minisini From lordheavym at ...626... Sun Jan 22 16:11:30 2012 From: lordheavym at ...626... (Laurent Carlier) Date: Sun, 22 Jan 2012 16:11:30 +0100 Subject: [Gambas-user] How use Image.Resize In-Reply-To: References: Message-ID: <5268080.H43leEaNqP@...2592...> > I think Image.Resize(w, h) not working properly. > > Instead of resizing image, it cuts out part of image. > > Say what? > > Perhaps http://gambasdoc.org/help/comp/gb.qt/image/stretch ++ From bespalov.av at ...626... Sun Jan 22 17:20:05 2012 From: bespalov.av at ...626... (=?KOI8-R?B?4czFy9PFyiDixdPQwczP1w==?=) Date: Sun, 22 Jan 2012 22:20:05 +0600 Subject: [Gambas-user] How use Image.Resize In-Reply-To: <5268080.H43leEaNqP@...2592...> References: <5268080.H43leEaNqP@...2592...> Message-ID: Thank you! There, I was not looking. 2012/1/22 Laurent Carlier > > I think Image.Resize(w, h) not working properly. > > > > Instead of resizing image, it cuts out part of image. > > > > Say what? > > > > > > Perhaps http://gambasdoc.org/help/comp/gb.qt/image/stretch > > ++ > > > > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- ____ ? ????????? ???????. From john.aaron.rose at ...1601... Sun Jan 22 17:28:43 2012 From: john.aaron.rose at ...1601... (John Rose) Date: Sun, 22 Jan 2012 16:28:43 +0000 Subject: [Gambas-user] Bizarre things with controls Message-ID: Benoit, I do not know how to install #4415. Can you refer me to a howto for it? From emil.lenngren at ...626... Sun Jan 22 17:30:57 2012 From: emil.lenngren at ...626... (Emil Lenngren) Date: Sun, 22 Jan 2012 17:30:57 +0100 Subject: [Gambas-user] Bizarre things with controls In-Reply-To: References: Message-ID: The howto is at http://gambasdoc.org/help/howto/svn?view 2012/1/22 John Rose > Benoit, > > I do not know how to install #4415. Can you refer me to a howto for it? > > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From mohareve at ...626... Sun Jan 22 19:42:24 2012 From: mohareve at ...626... (M. Cs.) Date: Sun, 22 Jan 2012 19:42:24 +0100 Subject: [Gambas-user] How to auto-adjust GridView column widths? In-Reply-To: <4F1C05F3.1070706@...1...> References: <4F1C05F3.1070706@...1...> Message-ID: Public Sub gv_Data(x As Integer, y As Integer) ' Fills the GridView with the querry results Dim i As Integer Dim szine As String If ((x Mod 2) = 0) Then szine = &E5E5E5& Else szine = &FFFFFF& Endif Select Case y Case 0 gV.Data.Text = Keress.Name(x) gV.Data.BackGround = szine Case 1 gV.Data.Text = Keress.Volm(x) gV.Data.BackGround = szine Case 2 gV.Data.Text = Keress.Road(x) gV.Data.BackGround = szine Case 3 gV.Data.Text = Keress.Size(x) gV.Data.BackGround = szine Case 4 gV.Data.Text = Keress.When(x) gV.Data.BackGround = szine End Select End Tell me just where to put, and how. I've tried many versions but always resulting with Stack overflow error. Thanks! Csaba 2012/1/22, Beno?t Minisini : > Le 21/01/2012 17:48, M. Cs. a ?crit : >> Is there a way to force a GridView control with 4 columns to adjust >> the column's width to the content's width? >> >> How would it work with a control which expands or stretches itself >> during maximizing the FMain? >> >> Thanks! >> > > Normally you have to set the column width to -1 to make it adjust its > contents. But I'm not sure that it works with GridView using the Data event. > > Just test and tell me. :-) > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Sun Jan 22 19:55:47 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 22 Jan 2012 19:55:47 +0100 Subject: [Gambas-user] How to auto-adjust GridView column widths? In-Reply-To: References: <4F1C05F3.1070706@...1...> Message-ID: <4F1C5BB3.7040104@...1...> Le 22/01/2012 19:42, M. Cs. a ?crit : > Public Sub gv_Data(x As Integer, y As Integer) ' Fills the GridView > with the querry results > Dim i As Integer > Dim szine As String > If ((x Mod 2) = 0) Then > szine =&E5E5E5& > Else > szine =&FFFFFF& > Endif > > Select Case y > Case 0 > gV.Data.Text = Keress.Name(x) > gV.Data.BackGround = szine > Case 1 > gV.Data.Text = Keress.Volm(x) > gV.Data.BackGround = szine > Case 2 > gV.Data.Text = Keress.Road(x) > gV.Data.BackGround = szine > Case 3 > gV.Data.Text = Keress.Size(x) > gV.Data.BackGround = szine > Case 4 > gV.Data.Text = Keress.When(x) > gV.Data.BackGround = szine > > End Select > > End > > Tell me just where to put, and how. I've tried many versions but > always resulting with Stack overflow error. > Thanks! > > Csaba > Anywhere not in the Data event handler, as adjusting the column width will call it recursively. -- Beno?t Minisini From abbat.81 at ...787... Sun Jan 22 21:37:02 2012 From: abbat.81 at ...787... (abbat) Date: Sun, 22 Jan 2012 12:37:02 -0800 (PST) Subject: [Gambas-user] example of applet (own text in it) for GNOME Panel on Gambas 3 Message-ID: <33184757.post@...1379...> Need an example of applet (own text in it) for GNOME Panel on Gambas 3 Can someone be kind and show how to do it? Thanks -- View this message in context: http://old.nabble.com/example-of-applet-%28own-text-in-it%29-for-GNOME-Panel-on-Gambas-3-tp33184757p33184757.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...2524... Sun Jan 22 23:18:47 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 22 Jan 2012 22:18:47 +0000 Subject: [Gambas-user] Issue 181 in gambas: Crash with certain menu caption. In-Reply-To: <5-6813199134517018827-9691118861731232159-gambas=googlecode.com@...2524...> References: <5-6813199134517018827-9691118861731232159-gambas=googlecode.com@...2524...> <0-6813199134517018827-9691118861731232159-gambas=googlecode.com@...2524...> Message-ID: <6-6813199134517018827-9691118861731232159-gambas=googlecode.com@...2524...> Comment #6 on issue 181 by jussi.la... at ...626...: Crash with certain menu caption. http://code.google.com/p/gambas/issues/detail?id=181 When I run gambas3 from terminal on my virtual machine (xubuntu 11.10 64bit), I will get this: $ gambas3 QGtkStyle was unable to detect the current GTK+ theme. gb.qt4: warning: unable to load Qt translation: en_US.UTF-8 And checkboxes doesn't look like they should in this theme. However, I cannot see the crash. On my actual installation of Xubuntu, I will get only: $ gambas3 gb.qt4: warning: unable to load Qt translation: en_GB.utf8 From mohareve at ...626... Mon Jan 23 00:15:07 2012 From: mohareve at ...626... (M. Cs.) Date: Mon, 23 Jan 2012 00:15:07 +0100 Subject: [Gambas-user] DB.Quote() doesn't quotes apostrophes Message-ID: I have a dinamically created query text. I don't know the number of parameters passed to the DB.Exec, so I cannot use &1,&2,... form. I need to use the DB.Quote() My problem is: If I have a string mystring="Blackmore's Night", the DB.Quote(mystring) won't quote the ', so the query will crash. In fact I'm getting query string SELECT * FROM CATALOGS WHERE VName='Blackmore's Night'.... It occurs with sqlite database. Is there any solution for that? Thanks! Csaba From abbat.81 at ...787... Mon Jan 23 01:10:48 2012 From: abbat.81 at ...787... (abbat) Date: Sun, 22 Jan 2012 16:10:48 -0800 (PST) Subject: [Gambas-user] How to create simple applet? Message-ID: <33185455.post@...1379...> How to create simple applet with text? Thanks -- View this message in context: http://old.nabble.com/How-to-create-simple-applet--tp33185455p33185455.html Sent from the gambas-user mailing list archive at Nabble.com. From rmorgan62 at ...626... Mon Jan 23 02:02:17 2012 From: rmorgan62 at ...626... (Randall Morgan) Date: Sun, 22 Jan 2012 17:02:17 -0800 Subject: [Gambas-user] curve fitting library ? In-Reply-To: References: <2019610.XWL4lkhpvt@...46...> Message-ID: Just a thought, You could write a callable wrapper around numpy then call that from Gambas. Would give you all the power of the python numerical library from within Gambas. On Sun, Jan 22, 2012 at 2:18 AM, Randall Morgan wrote: > Not with Gambas and it's been a long while. But if you understand the > algorithms used and the type of curve fitting you desire for your problem > domain then implementing it in Gambas is not a problem. > > You may want to google curve fitting algorithms. You need to know if you > want a linear, polynomial, rational, cubic, or nonlinear fitting. Then find > a C/C++/Python implementation and flow chart the algorithm. Then you can > easily convert it to Gambas or any programming language. > > > > On Sun, Jan 22, 2012 at 12:54 AM, Wally wrote: > >> >> Does anyone have experience with curve fitting and/or peakfinding >> using gambas ? (e.g. example code) >> >> Is there a plain C library (Linux) known, suitable to this problem >> and gambas ? >> >> Something like "fityk" (which is written in C++) but written in plain C >> to use with "EXTERN" >> >> I might wrap the fityk C++ or try Gnu Scientific Library, but i'm still >> searching for alternatives. >> >> wally >> >> >> >> ------------------------------------------------------------------------------ >> Try before you buy = See our experts in action! >> The most comprehensive online learning library for Microsoft developers >> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, >> Metro Style Apps, more. Free future releases when you subscribe now! >> http://p.sf.net/sfu/learndevnow-dev2 >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > > -- > If you ask me if it can be done. The answer is YES, it can always be done. > The correct questions however are... What will it cost, and how long will > it take? > -- If you ask me if it can be done. The answer is YES, it can always be done. The correct questions however are... What will it cost, and how long will it take? From rterry at ...1823... Mon Jan 23 05:57:19 2012 From: rterry at ...1823... (richard terry) Date: Mon, 23 Jan 2012 15:57:19 +1100 Subject: [Gambas-user] DB.Quote() doesn't quotes apostrophes In-Reply-To: References: Message-ID: <201201231557.19354.rterry@...1823...> On Monday 23 January 2012 10:15:07 M. Cs. wrote: > I have a dinamically created query text. I don't know the number of > parameters passed to the DB.Exec, so I cannot use &1,&2,... form. I > need to use the DB.Quote() > My problem is: If I have a string > mystring="Blackmore's Night", > the DB.Quote(mystring) won't quote the ', so the query will crash. In > fact I'm getting query string > SELECT * FROM CATALOGS WHERE VName='Blackmore's Night'.... > It occurs with sqlite database. > Is there any solution for that? In postgres I'd use this "$$Blackmore's NIght$$" Haven't followed the thread so don't know what db you are using Apologies if this is wide of the mark. richard > > Thanks! > > Csaba > > --------------------------------------------------------------------------- > --- Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From support at ...2529... Mon Jan 23 06:03:46 2012 From: support at ...2529... (John Spikowski) Date: Sun, 22 Jan 2012 21:03:46 -0800 Subject: [Gambas-user] DB.Quote() doesn't quotes apostrophes In-Reply-To: References: Message-ID: <1327295026.2019.2.camel@...1833...> On Mon, 2012-01-23 at 00:15 +0100, M. Cs. wrote: > I have a dinamically created query text. I don't know the number of > parameters passed to the DB.Exec, so I cannot use &1,&2,... form. I > need to use the DB.Quote() > My problem is: If I have a string > mystring="Blackmore's Night", > the DB.Quote(mystring) won't quote the ', so the query will crash. In > fact I'm getting query string > SELECT * FROM CATALOGS WHERE VName='Blackmore's Night'.... > It occurs with sqlite database. > Is there any solution for that? In MySQL there is a function to escape your data before doing and INSERT/UPDATE. If the quote is the only issue, then use VName='Blackmore''s Night' From wally at ...2037... Mon Jan 23 08:44:13 2012 From: wally at ...2037... (Wally) Date: Mon, 23 Jan 2012 08:44:13 +0100 Subject: [Gambas-user] curve fitting library ? In-Reply-To: References: <2019610.XWL4lkhpvt@...46...> Message-ID: <2060409.nrha3QEPfL@...46...> I assume you do not have a code example, right ? On Sunday, January 22, 2012 17:02:17 Randall Morgan wrote: > Just a thought, > > You could write a callable wrapper around numpy then call that from Gambas. > Would give you all the power of the python numerical library from within > Gambas. > > On Sun, Jan 22, 2012 at 2:18 AM, Randall Morgan wrote: > > Not with Gambas and it's been a long while. But if you understand the > > algorithms used and the type of curve fitting you desire for your > > problem > > domain then implementing it in Gambas is not a problem. > > > > You may want to google curve fitting algorithms. You need to know if you > > want a linear, polynomial, rational, cubic, or nonlinear fitting. Then > > find a C/C++/Python implementation and flow chart the algorithm. Then > > you can easily convert it to Gambas or any programming language. > > > > On Sun, Jan 22, 2012 at 12:54 AM, Wally wrote: > >> Does anyone have experience with curve fitting and/or peakfinding > >> using gambas ? (e.g. example code) > >> > >> Is there a plain C library (Linux) known, suitable to this problem > >> and gambas ? > >> > >> Something like "fityk" (which is written in C++) but written in plain > >> C > >> to use with "EXTERN" > >> > >> I might wrap the fityk C++ or try Gnu Scientific Library, but i'm > >> still > >> searching for alternatives. > >> > >> wally > >> > >> > >> > >> ---------------------------------------------------------------------- > >> -------- Try before you buy = See our experts in action! > >> The most comprehensive online learning library for Microsoft > >> developers > >> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, > >> MVC3, > >> Metro Style Apps, more. Free future releases when you subscribe now! > >> http://p.sf.net/sfu/learndevnow-dev2 > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > -- > > If you ask me if it can be done. The answer is YES, it can always be > > done. The correct questions however are... What will it cost, and how > > long will it take? From rmorgan62 at ...626... Mon Jan 23 09:06:49 2012 From: rmorgan62 at ...626... (Randall Morgan) Date: Mon, 23 Jan 2012 00:06:49 -0800 Subject: [Gambas-user] curve fitting library ? In-Reply-To: <2060409.nrha3QEPfL@...46...> References: <2019610.XWL4lkhpvt@...46...> <2060409.nrha3QEPfL@...46...> Message-ID: Most of the stuff I did in signal processing was on the 68000 and Z80's. So I let most of that go a very long time ago. Besides, unless you know what you are looking for in a smoothing algorithm, any code would be useless. For example, the simplest algorithm for smoothing is the moving average method. It's very simple to write in any programming language. Simple decide on the number of data points you are going to track and then average the value of that many points. That average becomes you first point. Slide the window up one value (or more, as long as there is plenty of overlap), allowing the low value(s) to fall out of the window, then calculate the average again. and plot your next point. Continue until you're out of input data. This issue with the moving average method is that you will flatten your data and loose your peaks. Since you have not said what your data is being used for or how you are getting it, it is impossible to guess what method of smoothing would be appropriate. So you need to ask yourself, are my peaks important? Is my data timed? What am I doing with it once I smooth it out? If you are displaying it, what information in your data is important to convey to the viewer? Etc... Without details no one can really help you. Give me specifics and perhaps I can be of more help. On Sun, Jan 22, 2012 at 11:44 PM, Wally wrote: > > I assume you do not have a code example, right ? > > > On Sunday, January 22, 2012 17:02:17 Randall Morgan wrote: > > Just a thought, > > > > You could write a callable wrapper around numpy then call that from > Gambas. > > Would give you all the power of the python numerical library from within > > Gambas. > > > > On Sun, Jan 22, 2012 at 2:18 AM, Randall Morgan > wrote: > > > Not with Gambas and it's been a long while. But if you understand the > > > algorithms used and the type of curve fitting you desire for your > > > problem > > > domain then implementing it in Gambas is not a problem. > > > > > > You may want to google curve fitting algorithms. You need to know if > you > > > want a linear, polynomial, rational, cubic, or nonlinear fitting. Then > > > find a C/C++/Python implementation and flow chart the algorithm. Then > > > you can easily convert it to Gambas or any programming language. > > > > > > On Sun, Jan 22, 2012 at 12:54 AM, Wally wrote: > > >> Does anyone have experience with curve fitting and/or peakfinding > > >> using gambas ? (e.g. example code) > > >> > > >> Is there a plain C library (Linux) known, suitable to this problem > > >> and gambas ? > > >> > > >> Something like "fityk" (which is written in C++) but written in plain > > >> C > > >> to use with "EXTERN" > > >> > > >> I might wrap the fityk C++ or try Gnu Scientific Library, but i'm > > >> still > > >> searching for alternatives. > > >> > > >> wally > > >> > > >> > > >> > > >> ---------------------------------------------------------------------- > > >> -------- Try before you buy = See our experts in action! > > >> The most comprehensive online learning library for Microsoft > > >> developers > > >> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, > > >> MVC3, > > >> Metro Style Apps, more. Free future releases when you subscribe now! > > >> http://p.sf.net/sfu/learndevnow-dev2 > > >> _______________________________________________ > > >> Gambas-user mailing list > > >> Gambas-user at lists.sourceforge.net > > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > -- > > > If you ask me if it can be done. The answer is YES, it can always be > > > done. The correct questions however are... What will it cost, and how > > > long will it take? > > > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- If you ask me if it can be done. The answer is YES, it can always be done. The correct questions however are... What will it cost, and how long will it take? From wally at ...2037... Mon Jan 23 09:38:24 2012 From: wally at ...2037... (Wally) Date: Mon, 23 Jan 2012 09:38:24 +0100 Subject: [Gambas-user] curve fitting library ? In-Reply-To: References: <2019610.XWL4lkhpvt@...46...> <2060409.nrha3QEPfL@...46...> Message-ID: <2438000.aqditoxkj2@...46...> The signal data i want to process comes from a HPLC detctor, which generates analog voltage outputs. e.g. every second one meqasurement. The data is typical chromatography data as generated by several spectroscopic methods. The time base can be set to different values but mostly i use 1 Hz. A 16bit ADc convert this analog data to digital float values So i get a list of "Y"values with constant time-delta. The data is noisy - so i uesed in 1st step Sawatzky-Golay smoothing. These data contains usually few peaks which i need to find. I need maximumvalue, time value of maximum, half-height-width and area of every single peak. Sometimes peaks are very close so area is overlapping. The fityk-package is doing all this jobs very simple but i can not use in gambas. Another candidate, which is suitable to use with ganbas is Gnu Scientific Library. There are a lot of numerical functions available, but accessing this functions, was so far, too difficult for me to code with gambas. I always mess up all the pointer stuff needed to declare and access this functionality. So i ask here to find a simple plain C library or Gambas-, even VB-code to do this jobs. wally On Monday, January 23, 2012 00:06:49 Randall Morgan wrote: > Most of the stuff I did in signal processing was on the 68000 and Z80's. So > I let most of that go a very long time ago. Besides, unless you know what > you are looking for in a smoothing algorithm, any code would be useless. > For example, the simplest algorithm for smoothing is the moving average > method. It's very simple to write in any programming language. Simple > decide on the number of data points you are going to track and then average > the value of that many points. That average becomes you first point. Slide > the window up one value (or more, as long as there is plenty of overlap), > allowing the low value(s) to fall out of the window, then calculate the > average again. and plot your next point. Continue until you're out of input > data. > > This issue with the moving average method is that you will flatten your > data and loose your peaks. Since you have not said what your data is being > used for or how you are getting it, it is impossible to guess what method > of smoothing would be appropriate. So you need to ask yourself, are my > peaks important? Is my data timed? What am I doing with it once I smooth it > out? If you are displaying it, what information in your data is important > to convey to the viewer? Etc... Without details no one can really help you. > Give me specifics and perhaps I can be of more help. > > On Sun, Jan 22, 2012 at 11:44 PM, Wally wrote: > > I assume you do not have a code example, right ? > > > > On Sunday, January 22, 2012 17:02:17 Randall Morgan wrote: > > > Just a thought, > > > > > > You could write a callable wrapper around numpy then call that from > > > > Gambas. > > > > > Would give you all the power of the python numerical library from > > > within Gambas. > > > > > > On Sun, Jan 22, 2012 at 2:18 AM, Randall Morgan > > > > > > > wrote: > > > > Not with Gambas and it's been a long while. But if you > > > > understand the > > > > algorithms used and the type of curve fitting you desire for > > > > your > > > > problem > > > > domain then implementing it in Gambas is not a problem. > > > > > > > > You may want to google curve fitting algorithms. You need to > > > > know if > > > > you > > > > > > want a linear, polynomial, rational, cubic, or nonlinear > > > > fitting. Then find a C/C++/Python implementation and flow chart > > > > the algorithm. Then you can easily convert it to Gambas or any > > > > programming language.> > > > > > > On Sun, Jan 22, 2012 at 12:54 AM, Wally wrote: > > > >> Does anyone have experience with curve fitting and/or > > > >> peakfinding > > > >> using gambas ? (e.g. example code) > > > >> > > > >> Is there a plain C library (Linux) known, suitable to this > > > >> problem > > > >> and gambas ? > > > >> > > > >> Something like "fityk" (which is written in C++) but written > > > >> in plain C > > > >> to use with "EXTERN" > > > >> > > > >> I might wrap the fityk C++ or try Gnu Scientific Library, but > > > >> i'm > > > >> still > > > >> searching for alternatives. > > > >> > > > >> wally > > > >> > > > >> > > > >> > > > >> -------------------------------------------------------------- > > > >> -------- -------- Try before you buy = See our experts in > > > >> action! > > > >> The most comprehensive online learning library for Microsoft > > > >> developers > > > >> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, > > > >> CSS3, > > > >> MVC3, > > > >> Metro Style Apps, more. Free future releases when you > > > >> subscribe now! > > > >> http://p.sf.net/sfu/learndevnow-dev2 > > > >> _______________________________________________ > > > >> Gambas-user mailing list > > > >> Gambas-user at lists.sourceforge.net > > > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > -- > > > > If you ask me if it can be done. The answer is YES, it can > > > > always be > > > > done. The correct questions however are... What will it cost, > > > > and how > > > > long will it take? > > > > ------------------------------------------------------------------------ > > ------ Try before you buy = See our experts in action! > > The most comprehensive online learning library for Microsoft developers > > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > > Metro Style Apps, more. Free future releases when you subscribe now! > > http://p.sf.net/sfu/learndevnow-dev2 > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user From rmorgan62 at ...626... Mon Jan 23 10:03:06 2012 From: rmorgan62 at ...626... (Randall Morgan) Date: Mon, 23 Jan 2012 01:03:06 -0800 Subject: [Gambas-user] curve fitting library ? In-Reply-To: <2438000.aqditoxkj2@...46...> References: <2019610.XWL4lkhpvt@...46...> <2060409.nrha3QEPfL@...46...> <2438000.aqditoxkj2@...46...> Message-ID: Wally, SG and RDP both would do a decent job for you since you need to preserve your peaks. I don't have code for this but you can find psuedo code for it on Wikipedia. The sudo code should be easy to convert into Gambas. It would be nice if one Gambas had tools like GSL, Armadillo, PyLab, and Numpy. I think it will get there but not anytime soon. Still RDP does not need any external libraries. You can use the built in math functions. You don't need a coefficients like you do with SG. SG will give better over-all smoothing. But under Gambas would require a lot more work. As for porting GSL to Gambas that is not a trivial task. Not impossible but it's not something you'll do in a few hours... I've ported much of the TIdy Library to Gambas for use with data extraction and web crawling. But it took me weeks to do only a portion of the library. Hope this helps On Mon, Jan 23, 2012 at 12:38 AM, Wally wrote: > > The signal data i want to process comes from a HPLC detctor, which > generates analog voltage outputs. e.g. every second one meqasurement. > The data is typical chromatography data as generated by several > spectroscopic methods. > The time base can be set to different values but mostly i use 1 Hz. > A 16bit ADc convert this analog data to digital float values > So i get a list of "Y"values with constant time-delta. > The data is noisy - so i uesed in 1st step Sawatzky-Golay smoothing. > > These data contains usually few peaks which i need to find. I need > maximumvalue, time value of maximum, half-height-width and area of > every single peak. Sometimes peaks are very close so area is overlapping. > > The fityk-package is doing all this jobs very simple but i can not use in > gambas. Another candidate, which is suitable to use with ganbas is > Gnu Scientific Library. There are a lot of numerical functions available, > but accessing this functions, was so far, too difficult for me to code > with > gambas. I always mess up all the pointer stuff needed to declare and access > this functionality. So i ask here to find a simple plain C library or > Gambas-, even VB-code to do this jobs. > > wally > > On Monday, January 23, 2012 00:06:49 Randall Morgan wrote: > > Most of the stuff I did in signal processing was on the 68000 and Z80's. > So > > I let most of that go a very long time ago. Besides, unless you know what > > you are looking for in a smoothing algorithm, any code would be useless. > > For example, the simplest algorithm for smoothing is the moving average > > method. It's very simple to write in any programming language. Simple > > decide on the number of data points you are going to track and then > average > > the value of that many points. That average becomes you first point. > Slide > > the window up one value (or more, as long as there is plenty of overlap), > > allowing the low value(s) to fall out of the window, then calculate the > > average again. and plot your next point. Continue until you're out of > input > > data. > > > > This issue with the moving average method is that you will flatten your > > data and loose your peaks. Since you have not said what your data is > being > > used for or how you are getting it, it is impossible to guess what method > > of smoothing would be appropriate. So you need to ask yourself, are my > > peaks important? Is my data timed? What am I doing with it once I smooth > it > > out? If you are displaying it, what information in your data is important > > to convey to the viewer? Etc... Without details no one can really help > you. > > Give me specifics and perhaps I can be of more help. > > > > On Sun, Jan 22, 2012 at 11:44 PM, Wally wrote: > > > I assume you do not have a code example, right ? > > > > > > On Sunday, January 22, 2012 17:02:17 Randall Morgan wrote: > > > > Just a thought, > > > > > > > > You could write a callable wrapper around numpy then call that from > > > > > > Gambas. > > > > > > > Would give you all the power of the python numerical library from > > > > within Gambas. > > > > > > > > On Sun, Jan 22, 2012 at 2:18 AM, Randall Morgan > > > > > > > > > > wrote: > > > > > Not with Gambas and it's been a long while. But if you > > > > > understand the > > > > > algorithms used and the type of curve fitting you desire for > > > > > your > > > > > problem > > > > > domain then implementing it in Gambas is not a problem. > > > > > > > > > > You may want to google curve fitting algorithms. You need to > > > > > know if > > > > > > you > > > > > > > > want a linear, polynomial, rational, cubic, or nonlinear > > > > > fitting. Then find a C/C++/Python implementation and flow chart > > > > > the algorithm. Then you can easily convert it to Gambas or any > > > > > programming language.> > > > > > > > On Sun, Jan 22, 2012 at 12:54 AM, Wally wrote: > > > > >> Does anyone have experience with curve fitting and/or > > > > >> peakfinding > > > > >> using gambas ? (e.g. example code) > > > > >> > > > > >> Is there a plain C library (Linux) known, suitable to this > > > > >> problem > > > > >> and gambas ? > > > > >> > > > > >> Something like "fityk" (which is written in C++) but written > > > > >> in plain C > > > > >> to use with "EXTERN" > > > > >> > > > > >> I might wrap the fityk C++ or try Gnu Scientific Library, but > > > > >> i'm > > > > >> still > > > > >> searching for alternatives. > > > > >> > > > > >> wally > > > > >> > > > > >> > > > > >> > > > > >> -------------------------------------------------------------- > > > > >> -------- -------- Try before you buy = See our experts in > > > > >> action! > > > > >> The most comprehensive online learning library for Microsoft > > > > >> developers > > > > >> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, > > > > >> CSS3, > > > > >> MVC3, > > > > >> Metro Style Apps, more. Free future releases when you > > > > >> subscribe now! > > > > >> http://p.sf.net/sfu/learndevnow-dev2 > > > > >> _______________________________________________ > > > > >> Gambas-user mailing list > > > > >> Gambas-user at lists.sourceforge.net > > > > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > -- > > > > > If you ask me if it can be done. The answer is YES, it can > > > > > always be > > > > > done. The correct questions however are... What will it cost, > > > > > and how > > > > > long will it take? > > > > > > > ------------------------------------------------------------------------ > > > ------ Try before you buy = See our experts in action! > > > The most comprehensive online learning library for Microsoft developers > > > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, > MVC3, > > > Metro Style Apps, more. Free future releases when you subscribe now! > > > http://p.sf.net/sfu/learndevnow-dev2 > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- If you ask me if it can be done. The answer is YES, it can always be done. The correct questions however are... What will it cost, and how long will it take? From Gambas at ...1950... Mon Jan 23 10:08:53 2012 From: Gambas at ...1950... (Caveat) Date: Mon, 23 Jan 2012 10:08:53 +0100 Subject: [Gambas-user] Bizarre things with controls In-Reply-To: References: Message-ID: <1327309733.2882.403.camel@...2150...> Hi John, For compiling Gambas, I use a script which was originally inspired by Kevin Fishburne of this mailing list. I've hacked it around a bit and added stuff to it over time. The script is called comp_gambas and is attached herewith. The script contains all (?) the commands needed for compiling with or without optimisations, getting the latest or a specific svn version etc. I just comment out/uncomment lines as needed. Perhaps this script should be hosted somewhere on gambasdoc so we can maintain it/point new "compilers of Gambas" to it... Kind regards, Caveat On Sun, 2012-01-22 at 16:28 +0000, John Rose wrote: > Benoit, > > I do not know how to install #4415. Can you refer me to a howto for it? > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -------------- next part -------------- # # Install dependencies, normally only needs running once # This example works for Ubuntu, but YMMV # #echo Installing dependencies... #sudo apt-get install build-essential autoconf libbz2-dev libfbclient2 libmysqlclient-dev unixodbc-dev libpq-dev libsqlite0-dev libsqlite3-dev libgtk2.0-dev libldap2-dev libcurl4-gnutls-dev libgtkglext1-dev libpcre3-dev libsdl-sound1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev libsage-dev libxml2-dev libxslt1-dev libbonobo2-dev libcos4-dev libomniorb4-dev librsvg2-dev libpoppler-dev libpoppler-glib-dev libasound2-dev libesd0-dev libdirectfb-dev libaa1-dev libxtst-dev libffi-dev kdelibs4-dev firebird2.1-dev libqt4-dev libglew1.5-dev libimlib2-dev libv4l-dev libsdl-ttf2.0-dev libgnome-keyring-dev libgdk-pixbuf2.0-dev # # If you run comp_gamas from the right dir, you probably don't need this # # cd ~/dev/gambas3 # # Completely remove all source/build files # #echo Removing existing trunk #rm -fr trunk # # Check out latest revision # echo Checking out latest revision svn checkout https://gambas.svn.sourceforge.net/svnroot/gambas/gambas/trunk/ cd trunk # # Check out specific revision # # echo Checking out specific revision 4152 # mkdir rev4152 # svn checkout -r 4152 https://gambas.svn.sourceforge.net/svnroot/gambas/gambas/trunk/ rev4152 # cd rev4152 # # Reconf all # #echo Reconfigure all #./reconf-all # # Configure, normal with optimize ON # echo Configure - optimization ON ./configure # # Configure, optimize OFF for debugging # #echo Configure - optimization OFF #./configure --disable-optimization # # Delete previous build stuff # echo Make clean make clean # # Normal make # echo Make with optimizations make # # Make without optimizing, usually for debugging # #echo Make without optimizations #make "CFLAGS=-O0 -g" "CXXFLAGS=-O0 -g" # # Install # echo sudo make install sudo make install # # Start Gambas3 # echo Done, starting Gambas3... gambas3 From john.aaron.rose at ...1601... Mon Jan 23 10:19:01 2012 From: john.aaron.rose at ...1601... (John Rose) Date: Mon, 23 Jan 2012 09:19:01 +0000 Subject: [Gambas-user] Bizarre things with controls Message-ID: Caveat, Thanks for your comp_gambas script. I just ran the sudo apt-get command that you supplied. Everything OK except for 'Couldn't find package libgdk-pixbuf2.0-dev' I'm using Ubuntu Lucid. Can you point me tothis package? From Gambas at ...1950... Mon Jan 23 10:22:33 2012 From: Gambas at ...1950... (Caveat) Date: Mon, 23 Jan 2012 10:22:33 +0100 Subject: [Gambas-user] How to create simple applet? In-Reply-To: <33185455.post@...1379...> References: <33185455.post@...1379...> Message-ID: <1327310553.2882.416.camel@...2150...> On Sun, 2012-01-22 at 16:10 -0800, abbat wrote: > How to create simple applet with text? > > Thanks That's the fourth time you've asked the same question on this list within a matter of days. The chances of getting an answer do not increase with the number of times you ask the same question... in fact, you may find there's an inverse relationship :-P Having said that, there's a lot of friendly, helpful people on the list so have a little patience and perhaps someone will come up with the answer or an example for you. If not, well then I guess it's time for you to roll up your sleeves and work it out for yourself, then tell us how you did it! :-D Even if you don't succeed in doing it yourself, you may find your chances of getting an answer will increase if you show you're prepared to put some work into finding a solution for yourself... then let us know what you have tried, what has and hasn't worked, and be a little more specific in saying where you need help rather than having your mails sound like "I want you to write this program for me, and I want you to write it NOW!" ;-) Kind regards, Caveat From johny.provoost at ...27... Mon Jan 23 11:17:34 2012 From: johny.provoost at ...27... (Johny Provoost) Date: Mon, 23 Jan 2012 11:17:34 +0100 Subject: [Gambas-user] DB.Quote() doesn't quotes apostrophes In-Reply-To: References: Message-ID: <4F1D33BE.7040104@...27...> op 23-01-12 00:15, M. Cs. schreef: > I have a dinamically created query text. I don't know the number of > parameters passed to the DB.Exec, so I cannot use&1,&2,... form. I > need to use the DB.Quote() > My problem is: If I have a string > mystring="Blackmore's Night", > the DB.Quote(mystring) won't quote the ', so the query will crash. In > fact I'm getting query string > SELECT * FROM CATALOGS WHERE VName='Blackmore's Night'.... > It occurs with sqlite database. > Is there any solution for that? > > Thanks! > > Csaba > > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > I always use "\"" instead of the ' so names with ' can be used FMain.tmpSQL = "SELECT * FROM adressen where Naam =" & "\"" & FMain.txtNaam.Text & "\"" or VVar="Blackmore's Night" tmpSQL="SELECT * from CATALOGS WHERE VName= & "\"" & VVar & "\"" Succes, Johny From wally at ...2037... Mon Jan 23 11:31:44 2012 From: wally at ...2037... (Wally) Date: Mon, 23 Jan 2012 11:31:44 +0100 Subject: [Gambas-user] curve fitting library ? In-Reply-To: References: <2019610.XWL4lkhpvt@...46...> <2438000.aqditoxkj2@...46...> Message-ID: <1434415.2nXqED8T2r@...46...> Do you think it's possible to create a gambas module, similar to "gb.db.sqlite3" or "gb.cairo" but , lets say "gb.gsl" or "gb.math" ? These gb.moduls seems to be able to use C++ Libraries. Ok, most of the people which are able to to this, usually do not have time to do it. I have time but no experience, maybe some help in beginnig might be sufficient - at least for some simple finctionality. But may be this requires too much experience and i might not be helpful at all. What do you think ? > Gambas had tools like GSL, Armadillo, PyLab, and Numpy On Monday, January 23, 2012 01:03:06 Randall Morgan wrote: > Wally, > > SG and RDP both would do a decent job for you since you need to preserve > your peaks. I don't have code for this but you can find psuedo code for it > on Wikipedia. The sudo code should be easy to convert into Gambas. It would > be nice if one Gambas had tools like GSL, Armadillo, PyLab, and Numpy. I > think it will get there but not anytime soon. Still RDP does not need any > external libraries. You can use the built in math functions. You don't need > a coefficients like you do with SG. SG will give better over-all > smoothing. But under Gambas would require a lot more work. > > As for porting GSL to Gambas that is not a trivial task. Not impossible but > it's not something you'll do in a few hours... I've ported much of the TIdy > Library to Gambas for use with data extraction and web crawling. But it > took me weeks to do only a portion of the library. > > Hope this helps > > On Mon, Jan 23, 2012 at 12:38 AM, Wally wrote: > > The signal data i want to process comes from a HPLC detctor, which > > generates analog voltage outputs. e.g. every second one meqasurement. > > The data is typical chromatography data as generated by several > > spectroscopic methods. > > The time base can be set to different values but mostly i use 1 Hz. > > A 16bit ADc convert this analog data to digital float values > > So i get a list of "Y"values with constant time-delta. > > The data is noisy - so i uesed in 1st step Sawatzky-Golay smoothing. > > > > These data contains usually few peaks which i need to find. I need > > maximumvalue, time value of maximum, half-height-width and area of > > every single peak. Sometimes peaks are very close so area is > > overlapping. > > > > The fityk-package is doing all this jobs very simple but i can not use > > in > > gambas. Another candidate, which is suitable to use with ganbas is > > Gnu Scientific Library. There are a lot of numerical functions > > available, > > but accessing this functions, was so far, too difficult for me to code > > with > > gambas. I always mess up all the pointer stuff needed to declare and > > access this functionality. So i ask here to find a simple plain C > > library or Gambas-, even VB-code to do this jobs. > > > > wally > > > > On Monday, January 23, 2012 00:06:49 Randall Morgan wrote: > > > Most of the stuff I did in signal processing was on the 68000 and > > > Z80's.> > > So > > > > > I let most of that go a very long time ago. Besides, unless you know > > > what you are looking for in a smoothing algorithm, any code would > > > be useless. For example, the simplest algorithm for smoothing is > > > the moving average method. It's very simple to write in any > > > programming language. Simple decide on the number of data points > > > you are going to track and then> > > average > > > > > the value of that many points. That average becomes you first point. > > > > Slide > > > > > the window up one value (or more, as long as there is plenty of > > > overlap), allowing the low value(s) to fall out of the window, then > > > calculate the average again. and plot your next point. Continue > > > until you're out of> > > input > > > > > data. > > > > > > This issue with the moving average method is that you will flatten > > > your > > > data and loose your peaks. Since you have not said what your data is > > > > being > > > > > used for or how you are getting it, it is impossible to guess what > > > method of smoothing would be appropriate. So you need to ask > > > yourself, are my peaks important? Is my data timed? What am I doing > > > with it once I smooth> > > it > > > > > out? If you are displaying it, what information in your data is > > > important to convey to the viewer? Etc... Without details no one > > > can really help> > > you. > > > > > Give me specifics and perhaps I can be of more help. > > > > > > On Sun, Jan 22, 2012 at 11:44 PM, Wally wrote: > > > > I assume you do not have a code example, right ? > > > > > > > > On Sunday, January 22, 2012 17:02:17 Randall Morgan wrote: > > > > > Just a thought, > > > > > > > > > > You could write a callable wrapper around numpy then call > > > > > that from > > > > > > > > Gambas. > > > > > > > > > Would give you all the power of the python numerical library > > > > > from > > > > > within Gambas. > > > > > > > > > > On Sun, Jan 22, 2012 at 2:18 AM, Randall Morgan > > > > > > > > > > > > > wrote: > > > > > > Not with Gambas and it's been a long while. But if you > > > > > > understand the > > > > > > algorithms used and the type of curve fitting you desire > > > > > > for > > > > > > your > > > > > > problem > > > > > > domain then implementing it in Gambas is not a problem. > > > > > > > > > > > > You may want to google curve fitting algorithms. You > > > > > > need to > > > > > > know if > > > > > > > > you > > > > > > > > > > want a linear, polynomial, rational, cubic, or nonlinear > > > > > > fitting. Then find a C/C++/Python implementation and > > > > > > flow chart > > > > > > the algorithm. Then you can easily convert it to Gambas > > > > > > or any > > > > > > programming language.> > > > > > > > > > > > > > > On Sun, Jan 22, 2012 at 12:54 AM, Wally wrote: > > > > > >> Does anyone have experience with curve fitting and/or > > > > > >> peakfinding > > > > > >> using gambas ? (e.g. example code) > > > > > >> > > > > > >> Is there a plain C library (Linux) known, suitable to > > > > > >> this > > > > > >> problem > > > > > >> and gambas ? > > > > > >> > > > > > >> Something like "fityk" (which is written in C++) but > > > > > >> written > > > > > >> in plain C > > > > > >> to use with "EXTERN" > > > > > >> > > > > > >> I might wrap the fityk C++ or try Gnu Scientific > > > > > >> Library, but > > > > > >> i'm > > > > > >> still > > > > > >> searching for alternatives. > > > > > >> > > > > > >> wally > > > > > >> > > > > > >> > > > > > >> > > > > > >> ------------------------------------------------------ > > > > > >> -------- > > > > > >> -------- -------- Try before you buy = See our experts > > > > > >> in > > > > > >> action! > > > > > >> The most comprehensive online learning library for > > > > > >> Microsoft > > > > > >> developers > > > > > >> is just $99.99! Visual Studio, SharePoint, SQL - plus > > > > > >> HTML5, > > > > > >> CSS3, > > > > > >> MVC3, > > > > > >> Metro Style Apps, more. Free future releases when you > > > > > >> subscribe now! > > > > > >> http://p.sf.net/sfu/learndevnow-dev2 > > > > > >> _______________________________________________ > > > > > >> Gambas-user mailing list > > > > > >> Gambas-user at lists.sourceforge.net > > > > > >> https://lists.sourceforge.net/lists/listinfo/gambas-us > > > > > >> er > > > > > > > > > > > > -- > > > > > > If you ask me if it can be done. The answer is YES, it > > > > > > can > > > > > > always be > > > > > > done. The correct questions however are... What will it > > > > > > cost, > > > > > > and how > > > > > > long will it take? > > > > ------------------------------------------------------------------------ > > > > > > ------ Try before you buy = See our experts in action! > > > > The most comprehensive online learning library for Microsoft > > > > developers is just $99.99! Visual Studio, SharePoint, SQL - > > > > plus HTML5, CSS3,> > > MVC3, > > > > > > Metro Style Apps, more. Free future releases when you subscribe > > > > now! > > > > http://p.sf.net/sfu/learndevnow-dev2 > > > > _______________________________________________ > > > > Gambas-user mailing list > > > > Gambas-user at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------ > > ------ Try before you buy = See our experts in action! > > The most comprehensive online learning library for Microsoft developers > > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > > Metro Style Apps, more. Free future releases when you subscribe now! > > http://p.sf.net/sfu/learndevnow-dev2 > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Mon Jan 23 11:45:31 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 23 Jan 2012 11:45:31 +0100 Subject: [Gambas-user] DB.Quote() doesn't quotes apostrophes In-Reply-To: References: Message-ID: <4F1D3A4B.2010504@...1...> Le 23/01/2012 00:15, M. Cs. a ?crit : > I have a dinamically created query text. I don't know the number of > parameters passed to the DB.Exec, so I cannot use&1,&2,... form. I > need to use the DB.Quote() > My problem is: If I have a string > mystring="Blackmore's Night", > the DB.Quote(mystring) won't quote the ', so the query will crash. In > fact I'm getting query string > SELECT * FROM CATALOGS WHERE VName='Blackmore's Night'.... > It occurs with sqlite database. > Is there any solution for that? > > Thanks! > > Csaba > You must use DB.Subst(), not DB.Quote(). Maybe I said DB.Quote() somewhere recently, that was a mistake then. Anyway you are right: DB.Quote(), which is used for quoting fields or table names, is unable to quote "'" correctly. But you should not use such character inside table or field names, so... Regards, -- Beno?t Minisini From gambas at ...1... Mon Jan 23 11:47:47 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 23 Jan 2012 11:47:47 +0100 Subject: [Gambas-user] curve fitting library ? In-Reply-To: <2019610.XWL4lkhpvt@...46...> References: <2019610.XWL4lkhpvt@...46...> Message-ID: <4F1D3AD3.20508@...1...> Le 22/01/2012 09:54, Wally a ?crit : > > Does anyone have experience with curve fitting and/or peakfinding > using gambas ? (e.g. example code) > > Is there a plain C library (Linux) known, suitable to this problem > and gambas ? > > Something like "fityk" (which is written in C++) but written in plain C > to use with "EXTERN" > > I might wrap the fityk C++ or try Gnu Scientific Library, but i'm still > searching for alternatives. > > wally > There is a GSLSpline example provided with Gambas. Does it help? -- Beno?t Minisini From rmorgan62 at ...626... Mon Jan 23 11:51:36 2012 From: rmorgan62 at ...626... (Randall Morgan) Date: Mon, 23 Jan 2012 02:51:36 -0800 Subject: [Gambas-user] curve fitting library ? In-Reply-To: <4F1D3AD3.20508@...1...> References: <2019610.XWL4lkhpvt@...46...> <4F1D3AD3.20508@...1...> Message-ID: Yes it is entirely possible. It just take a little time and elbow grease. To use C++ you simply have to write a C wrapper. 2012/1/23 Beno?t Minisini > Le 22/01/2012 09:54, Wally a ?crit : > > > > Does anyone have experience with curve fitting and/or peakfinding > > using gambas ? (e.g. example code) > > > > Is there a plain C library (Linux) known, suitable to this problem > > and gambas ? > > > > Something like "fityk" (which is written in C++) but written in plain C > > to use with "EXTERN" > > > > I might wrap the fityk C++ or try Gnu Scientific Library, but i'm still > > searching for alternatives. > > > > wally > > > > There is a GSLSpline example provided with Gambas. Does it help? > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- If you ask me if it can be done. The answer is YES, it can always be done. The correct questions however are... What will it cost, and how long will it take? From wally at ...2037... Mon Jan 23 11:59:11 2012 From: wally at ...2037... (Wally) Date: Mon, 23 Jan 2012 11:59:11 +0100 Subject: [Gambas-user] curve fitting library ? In-Reply-To: <4F1D3AD3.20508@...1...> References: <2019610.XWL4lkhpvt@...46...> <4F1D3AD3.20508@...1...> Message-ID: <2019775.srBOrIOCza@...46...> On Monday, January 23, 2012 11:47:47 Beno?t Minisini wrote: > Le 22/01/2012 09:54, Wally a ?crit : > > Does anyone have experience with curve fitting and/or peakfinding > > using gambas ? (e.g. example code) > > > > Is there a plain C library (Linux) known, suitable to this problem > > and gambas ? > > > > Something like "fityk" (which is written in C++) but written in plain C > > to use with "EXTERN" > > > > I might wrap the fityk C++ or try Gnu Scientific Library, but i'm still > > searching for alternatives. > > > > wally > > There is a GSLSpline example provided with Gambas. Does it help? I did this example :) From rmorgan62 at ...626... Mon Jan 23 12:06:29 2012 From: rmorgan62 at ...626... (Randall Morgan) Date: Mon, 23 Jan 2012 03:06:29 -0800 Subject: [Gambas-user] curve fitting library ? In-Reply-To: <2019775.srBOrIOCza@...46...> References: <2019610.XWL4lkhpvt@...46...> <4F1D3AD3.20508@...1...> <2019775.srBOrIOCza@...46...> Message-ID: You must be familiar with C at some level? I'd be surprised if the GSL doesn't already have a C wrapper somewhere. I haven't used it in many years so I can't recall, and I am sure it has changed. It sounds like you've already got a start. So you just need to invest more time into porting GSL to Gambas. On Mon, Jan 23, 2012 at 2:59 AM, Wally wrote: > On Monday, January 23, 2012 11:47:47 Beno?t Minisini wrote: > > Le 22/01/2012 09:54, Wally a ?crit : > > > Does anyone have experience with curve fitting and/or peakfinding > > > using gambas ? (e.g. example code) > > > > > > Is there a plain C library (Linux) known, suitable to this problem > > > and gambas ? > > > > > > Something like "fityk" (which is written in C++) but written in plain C > > > to use with "EXTERN" > > > > > > I might wrap the fityk C++ or try Gnu Scientific Library, but i'm still > > > searching for alternatives. > > > > > > wally > > > > There is a GSLSpline example provided with Gambas. Does it help? > > > I did this example :) > > > > > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- If you ask me if it can be done. The answer is YES, it can always be done. The correct questions however are... What will it cost, and how long will it take? From gambas at ...1... Mon Jan 23 12:11:06 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 23 Jan 2012 12:11:06 +0100 Subject: [Gambas-user] curve fitting library ? In-Reply-To: <2019775.srBOrIOCza@...46...> References: <2019610.XWL4lkhpvt@...46...> <4F1D3AD3.20508@...1...> <2019775.srBOrIOCza@...46...> Message-ID: <4F1D404A.8020801@...1...> Le 23/01/2012 11:59, Wally a ?crit : > On Monday, January 23, 2012 11:47:47 Beno?t Minisini wrote: >> Le 22/01/2012 09:54, Wally a ?crit : >>> Does anyone have experience with curve fitting and/or peakfinding >>> using gambas ? (e.g. example code) >>> >>> Is there a plain C library (Linux) known, suitable to this problem >>> and gambas ? >>> >>> Something like "fityk" (which is written in C++) but written in plain C >>> to use with "EXTERN" >>> >>> I might wrap the fityk C++ or try Gnu Scientific Library, but i'm still >>> searching for alternatives. >>> >>> wally >> >> There is a GSLSpline example provided with Gambas. Does it help? > > > I did this example :) > Oops. And what's the problem with it? -- Beno?t Minisini From wally at ...2037... Mon Jan 23 12:29:43 2012 From: wally at ...2037... (Wally) Date: Mon, 23 Jan 2012 12:29:43 +0100 Subject: [Gambas-user] curve fitting library ? In-Reply-To: References: <2019610.XWL4lkhpvt@...46...> <2019775.srBOrIOCza@...46...> Message-ID: <2620561.soiXmaam6Z@...46...> Randall, Benoit this example, using the spline stuff from the GSL is one of the most simple functions in GSL. All the intersting rest is much more confusing. Have a look how easy fityk doing a peakfind on very noisy data: (not sure the mailinglist allow me to attach screenshots ) honmepage: fityk.nieto.pl On the other hand this fityk is not really free opensource i think. But here is a code example of guessing gaussian peak from a clean exp function: #include #include #include using namespace std; using namespace fityk; int main() { Fityk *f = new Fityk; cout << f->get_info("version", true) << endl; cout << "ln(2) = " << f->calculate_expr("ln(2)") << endl; const double mu = 12.345; for (int i = 0; i != 500; ++i) { double x = i / 100. + 10; double y = ceil(100 * exp(-(x-mu)*(x-mu)/2)); f->add_point(x, y, sqrt(y)); } f->execute("Y = randnormal(y, s)"); f->execute("guess %gauss = Gaussian"); f->execute("fit"); cout << "peak center: " << f->calculate_expr("%gauss.Center") << endl; delete f; return 0; } output: Fityk 0.9.8 ln(2) = 0.693147 peak center: 12.3485 So ithink an implematation of GSL (or similar, maybe gnuplot)) would be great - but i'm not able to do it without help. On Monday, January 23, 2012 03:06:29 Randall Morgan wrote: > You must be familiar with C at some level? I'd be surprised if the GSL > doesn't already have a C wrapper somewhere. I haven't used it in many years > so I can't recall, and I am sure it has changed. It sounds like you've > already got a start. So you just need to invest more time into porting GSL > to Gambas. > > On Mon, Jan 23, 2012 at 2:59 AM, Wally wrote: > > On Monday, January 23, 2012 11:47:47 Beno?t Minisini wrote: > > > Le 22/01/2012 09:54, Wally a ?crit : > > > > Does anyone have experience with curve fitting and/or > > > > peakfinding > > > > using gambas ? (e.g. example code) > > > > > > > > Is there a plain C library (Linux) known, suitable to this > > > > problem > > > > and gambas ? > > > > > > > > Something like "fityk" (which is written in C++) but written in > > > > plain C to use with "EXTERN" > > > > > > > > I might wrap the fityk C++ or try Gnu Scientific Library, but > > > > i'm still searching for alternatives. > > > > > > > > wally > > > > > > There is a GSLSpline example provided with Gambas. Does it help? > > > > I did this example :) > > > > > > > > > > ------------------------------------------------------------------------ > > ------ Try before you buy = See our experts in action! > > The most comprehensive online learning library for Microsoft developers > > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > > Metro Style Apps, more. Free future releases when you subscribe now! > > http://p.sf.net/sfu/learndevnow-dev2 > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user -------------- next part -------------- A non-text attachment was scrubbed... Name: fityk_snapshot_001.png Type: image/png Size: 107125 bytes Desc: not available URL: From abbat.81 at ...787... Mon Jan 23 12:32:56 2012 From: abbat.81 at ...787... (abbat) Date: Mon, 23 Jan 2012 03:32:56 -0800 (PST) Subject: [Gambas-user] How to know Height and Width of screen? Message-ID: <33187109.post@...1379...> in VB.NET I get it by this way: Dim yy As Integer = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height Dim xx As Integer = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width How to do it in Gambas 3? Thanks -- View this message in context: http://old.nabble.com/How-to-know-Height-and-Width-of-screen--tp33187109p33187109.html Sent from the gambas-user mailing list archive at Nabble.com. From rmorgan62 at ...626... Mon Jan 23 12:42:32 2012 From: rmorgan62 at ...626... (Randall Morgan) Date: Mon, 23 Jan 2012 03:42:32 -0800 Subject: [Gambas-user] curve fitting library ? In-Reply-To: <2620561.soiXmaam6Z@...46...> References: <2019610.XWL4lkhpvt@...46...> <2019775.srBOrIOCza@...46...> <2620561.soiXmaam6Z@...46...> Message-ID: I don't think this app is licensed OSS. So I am not sure if you can legally write a module with it. The GSL or similar library is the way to go. I have my plate full at the moment but I will try to give you as much guidance as I can. Be forewarned I too am still learning. Give me a day or two to go over the GSL and then we'll see what we can get done. send me your demo of the spline as well. On Mon, Jan 23, 2012 at 3:29 AM, Wally wrote: > Randall, Benoit > > this example, using the spline stuff from the GSL is one of the most simple > functions in GSL. All the intersting rest is much more confusing. > > Have a look how easy fityk doing a peakfind on very noisy data: > (not sure the mailinglist allow me to attach screenshots ) > honmepage: fityk.nieto.pl > > On the other hand this fityk is not really free opensource i think. > > But here is a code example of guessing gaussian peak from a > clean exp function: > > #include > #include > > #include > > using namespace std; > using namespace fityk; > > int main() > { > Fityk *f = new Fityk; > cout << f->get_info("version", true) << endl; > cout << "ln(2) = " << f->calculate_expr("ln(2)") << endl; > const double mu = 12.345; > for (int i = 0; i != 500; ++i) { > double x = i / 100. + 10; > double y = ceil(100 * exp(-(x-mu)*(x-mu)/2)); > f->add_point(x, y, sqrt(y)); > } > f->execute("Y = randnormal(y, s)"); > f->execute("guess %gauss = Gaussian"); > f->execute("fit"); > cout << "peak center: " << f->calculate_expr("%gauss.Center") << endl; > delete f; > return 0; > } > > output: > > Fityk 0.9.8 > ln(2) = 0.693147 > peak center: 12.3485 > > So ithink an implematation of GSL (or similar, maybe gnuplot)) > would be great - but i'm not able to do it without help. > > > > On Monday, January 23, 2012 03:06:29 Randall Morgan wrote: > > You must be familiar with C at some level? I'd be surprised if the GSL > > doesn't already have a C wrapper somewhere. I haven't used it in many > years > > so I can't recall, and I am sure it has changed. It sounds like you've > > already got a start. So you just need to invest more time into porting > GSL > > to Gambas. > > > > On Mon, Jan 23, 2012 at 2:59 AM, Wally wrote: > > > On Monday, January 23, 2012 11:47:47 Beno?t Minisini wrote: > > > > Le 22/01/2012 09:54, Wally a ?crit : > > > > > Does anyone have experience with curve fitting and/or > > > > > peakfinding > > > > > using gambas ? (e.g. example code) > > > > > > > > > > Is there a plain C library (Linux) known, suitable to this > > > > > problem > > > > > and gambas ? > > > > > > > > > > Something like "fityk" (which is written in C++) but written in > > > > > plain C to use with "EXTERN" > > > > > > > > > > I might wrap the fityk C++ or try Gnu Scientific Library, but > > > > > i'm still searching for alternatives. > > > > > > > > > > wally > > > > > > > > There is a GSLSpline example provided with Gambas. Does it help? > > > > > > I did this example :) > > > > > > > > > > > > > > > > ------------------------------------------------------------------------ > > > ------ Try before you buy = See our experts in action! > > > The most comprehensive online learning library for Microsoft developers > > > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, > MVC3, > > > Metro Style Apps, more. Free future releases when you subscribe now! > > > http://p.sf.net/sfu/learndevnow-dev2 > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- If you ask me if it can be done. The answer is YES, it can always be done. The correct questions however are... What will it cost, and how long will it take? From gambas at ...1... Mon Jan 23 12:46:37 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 23 Jan 2012 12:46:37 +0100 Subject: [Gambas-user] How to know Height and Width of screen? In-Reply-To: <33187109.post@...1379...> References: <33187109.post@...1379...> Message-ID: <4F1D489D.4050508@...1...> Le 23/01/2012 12:32, abbat a ?crit : > > > in VB.NET I get it by this way: > > Dim yy As Integer = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height > Dim xx As Integer = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width > > How to do it in Gambas 3? > > Thanks Desktop.Width / Desktop.Height or Desktop.AvailableWidth / Desktop.AvailableHeight. If you need a specific screen, you must use the Screens class. Screens[ References: <2019610.XWL4lkhpvt@...46...> <2620561.soiXmaam6Z@...46...> Message-ID: <663663476.x1KaglQyBL@...46...> The spline example is member of Gambas3 examples "Examples-> Drawing->GSLSpline" or see attachment I'll try to contact the author of fityk to get his opinion about what we want to do. Fityk seems more clear and easier to implement. On the other hand GSL covers a much wider range of functionality. On Monday, January 23, 2012 03:42:32 Randall Morgan wrote: > I don't think this app is licensed OSS. So I am not sure if you can legally > write a module with it. The GSL or similar library is the way to go. > > I have my plate full at the moment but I will try to give you as > much guidance as I can. Be forewarned I too am still learning. Give me a > day or two to go over the GSL and then we'll see what we can get done. > > send me your demo of the spline as well. > > On Mon, Jan 23, 2012 at 3:29 AM, Wally wrote: > > Randall, Benoit > > > > this example, using the spline stuff from the GSL is one of the most > > simple functions in GSL. All the intersting rest is much more > > confusing. > > > > Have a look how easy fityk doing a peakfind on very noisy data: > > (not sure the mailinglist allow me to attach screenshots ) > > honmepage: fityk.nieto.pl > > > > On the other hand this fityk is not really free opensource i think. > > > > But here is a code example of guessing gaussian peak from a > > clean exp function: > > > > #include > > #include > > > > #include > > > > using namespace std; > > using namespace fityk; > > > > int main() > > { > > > > Fityk *f = new Fityk; > > cout << f->get_info("version", true) << endl; > > cout << "ln(2) = " << f->calculate_expr("ln(2)") << endl; > > const double mu = 12.345; > > for (int i = 0; i != 500; ++i) { > > > > double x = i / 100. + 10; > > double y = ceil(100 * exp(-(x-mu)*(x-mu)/2)); > > f->add_point(x, y, sqrt(y)); > > > > } > > f->execute("Y = randnormal(y, s)"); > > f->execute("guess %gauss = Gaussian"); > > f->execute("fit"); > > cout << "peak center: " << f->calculate_expr("%gauss.Center") << > > endl; > > delete f; > > return 0; > > > > } > > > > output: > > > > Fityk 0.9.8 > > ln(2) = 0.693147 > > peak center: 12.3485 > > > > So ithink an implematation of GSL (or similar, maybe gnuplot)) > > would be great - but i'm not able to do it without help. > > > > On Monday, January 23, 2012 03:06:29 Randall Morgan wrote: > > > You must be familiar with C at some level? I'd be surprised if the > > > GSL > > > doesn't already have a C wrapper somewhere. I haven't used it in > > > many > > > > years > > > > > so I can't recall, and I am sure it has changed. It sounds like > > > you've > > > already got a start. So you just need to invest more time into > > > porting > > > > GSL > > > > > to Gambas. > > > > > > On Mon, Jan 23, 2012 at 2:59 AM, Wally wrote: > > > > On Monday, January 23, 2012 11:47:47 Beno?t Minisini wrote: > > > > > Le 22/01/2012 09:54, Wally a ?crit : > > > > > > Does anyone have experience with curve fitting and/or > > > > > > peakfinding > > > > > > using gambas ? (e.g. example code) > > > > > > > > > > > > Is there a plain C library (Linux) known, suitable to > > > > > > this > > > > > > problem > > > > > > and gambas ? > > > > > > > > > > > > Something like "fityk" (which is written in C++) but > > > > > > written in > > > > > > plain C to use with "EXTERN" > > > > > > > > > > > > I might wrap the fityk C++ or try Gnu Scientific > > > > > > Library, but > > > > > > i'm still searching for alternatives. > > > > > > > > > > > > wally > > > > > > > > > > There is a GSLSpline example provided with Gambas. Does it > > > > > help? > > > > > > > > I did this example :) > > > > ------------------------------------------------------------------------ > > > > > > ------ Try before you buy = See our experts in action! > > > > The most comprehensive online learning library for Microsoft > > > > developers is just $99.99! Visual Studio, SharePoint, SQL - > > > > plus HTML5, CSS3,> > > MVC3, > > > > > > Metro Style Apps, more. Free future releases when you subscribe > > > > now! > > > > http://p.sf.net/sfu/learndevnow-dev2 > > > > _______________________________________________ > > > > Gambas-user mailing list > > > > Gambas-user at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------ > > ------ Try before you buy = See our experts in action! > > The most comprehensive online learning library for Microsoft developers > > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > > Metro Style Apps, more. Free future releases when you subscribe now! > > http://p.sf.net/sfu/learndevnow-dev2 > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user -------------- next part -------------- A non-text attachment was scrubbed... Name: GSLSpline-3.0.tar.gz Type: application/x-compressed-tar Size: 9878 bytes Desc: not available URL: From mohareve at ...626... Mon Jan 23 14:03:36 2012 From: mohareve at ...626... (M. Cs.) Date: Mon, 23 Jan 2012 14:03:36 +0100 Subject: [Gambas-user] DB.Quote() doesn't quotes apostrophes In-Reply-To: <4F1D3A4B.2010504@...1...> References: <4F1D3A4B.2010504@...1...> Message-ID: Well, that was the thing I was fearing: I must handle the characters by my own. The strange thing is , that if I have something like DB.Exec("SELECT * FROM CATALOGS WHERE VName=&1","Blackmore's Night'") the query won't fail. I can even have query DB.Exec("SELECT * FROM CATALOGS WHERE VName LiKE &1","%'%") and the result won't fail. I wonder why? What's the advance in .Exec over .Quote? I will try Johnny's trick. Thanks! Csaba 2012/1/23, Beno?t Minisini : > Le 23/01/2012 00:15, M. Cs. a ?crit : >> I have a dinamically created query text. I don't know the number of >> parameters passed to the DB.Exec, so I cannot use&1,&2,... form. I >> need to use the DB.Quote() >> My problem is: If I have a string >> mystring="Blackmore's Night", >> the DB.Quote(mystring) won't quote the ', so the query will crash. In >> fact I'm getting query string >> SELECT * FROM CATALOGS WHERE VName='Blackmore's Night'.... >> It occurs with sqlite database. >> Is there any solution for that? >> >> Thanks! >> >> Csaba >> > > You must use DB.Subst(), not DB.Quote(). Maybe I said DB.Quote() > somewhere recently, that was a mistake then. > > Anyway you are right: DB.Quote(), which is used for quoting fields or > table names, is unable to quote "'" correctly. But you should not use > such character inside table or field names, so... > > Regards, > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Mon Jan 23 14:04:01 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 23 Jan 2012 15:04:01 +0200 Subject: [Gambas-user] How to create simple applet? In-Reply-To: <33185455.post@...1379...> References: <33185455.post@...1379...> Message-ID: Reason for why I haven't answer, is, I don't quite understand what you want to know. If you can start Gambas IDE, there shouldn't be any problems to create just an some applet. Where do you need this text? In form title? To a label? What is the problem exactly? Jussi On Mon, Jan 23, 2012 at 02:10, abbat wrote: > > How to create simple applet with text? > > Thanks > -- > View this message in context: > http://old.nabble.com/How-to-create-simple-applet--tp33185455p33185455.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Mon Jan 23 14:19:17 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 23 Jan 2012 14:19:17 +0100 Subject: [Gambas-user] DB.Quote() doesn't quotes apostrophes In-Reply-To: References: <4F1D3A4B.2010504@...1...> Message-ID: <4F1D5E55.8010003@...1...> Le 23/01/2012 14:03, M. Cs. a ?crit : > Well, that was the thing I was fearing: I must handle the characters > by my own. The strange thing is , that if I have something like > DB.Exec("SELECT * FROM CATALOGS WHERE VName=&1","Blackmore's Night'") > the query won't fail. > I can even have query > DB.Exec("SELECT * FROM CATALOGS WHERE VName LiKE&1","%'%") > and the result won't fail. I wonder why? What's the advance in .Exec > over .Quote? > > I will try Johnny's trick. > Thanks! > > Csaba > Did you read my mail? -- Beno?t Minisini From mohareve at ...626... Mon Jan 23 14:33:59 2012 From: mohareve at ...626... (M. Cs.) Date: Mon, 23 Jan 2012 14:33:59 +0100 Subject: [Gambas-user] DB.Quote() doesn't quotes apostrophes In-Reply-To: <4F1D5E55.8010003@...1...> References: <4F1D3A4B.2010504@...1...> <4F1D5E55.8010003@...1...> Message-ID: I'm sorry Benoit, but I didn't realized that in "You must use DB.Subst()" the You is me. I was thinking you are answering to Johnny. I'll give a try. Csaba 2012/1/23, Beno?t Minisini : > Le 23/01/2012 14:03, M. Cs. a ?crit : >> Well, that was the thing I was fearing: I must handle the characters >> by my own. The strange thing is , that if I have something like >> DB.Exec("SELECT * FROM CATALOGS WHERE VName=&1","Blackmore's Night'") >> the query won't fail. >> I can even have query >> DB.Exec("SELECT * FROM CATALOGS WHERE VName LiKE&1","%'%") >> and the result won't fail. I wonder why? What's the advance in .Exec >> over .Quote? >> >> I will try Johnny's trick. >> Thanks! >> >> Csaba >> > > Did you read my mail? > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From mohareve at ...626... Mon Jan 23 14:48:02 2012 From: mohareve at ...626... (M. Cs.) Date: Mon, 23 Jan 2012 14:48:02 +0100 Subject: [Gambas-user] DB.Quote() doesn't quotes apostrophes In-Reply-To: References: <4F1D3A4B.2010504@...1...> <4F1D5E55.8010003@...1...> Message-ID: Hello again: PRINT DB.Subst("WHERE Name = &1 AND Date = &2", "Benoit", Now) WHERE Name = 'Benoit' AND Date = '2006-02-15 11:51:33.043' This is the given example for the DB.Subst. But what if the user has a textBox input in which he can enter the search phrases divided by gaps like: "Benoit .jpg Summer". I don't know what is going to be entered, maybe the text will be: "Benoit .jpg this Summer". How to form a query text using array ["Benoit",".jpg","this","Summer"] as words to be included if I don't know the number of the words until the runtime? I cannot foresee when will the array &1,&2,&3,...stop, so how could I use DB.Subst which operates with a definite number of arguments? I need something to intercept the problematic charactes before they are submitted to DB.Exec, during the formation of search query text. Do you understand my need? I'm not the one who've invented the ' signs in English language but they are present in almost every title or sentence. Thank you! Csaba 2012/1/23, M. Cs. : > I'm sorry Benoit, but I didn't realized that in "You must use > DB.Subst()" the You is me. I was thinking you are answering to Johnny. > I'll give a try. > > Csaba > > 2012/1/23, Beno?t Minisini : >> Le 23/01/2012 14:03, M. Cs. a ?crit : >>> Well, that was the thing I was fearing: I must handle the characters >>> by my own. The strange thing is , that if I have something like >>> DB.Exec("SELECT * FROM CATALOGS WHERE VName=&1","Blackmore's Night'") >>> the query won't fail. >>> I can even have query >>> DB.Exec("SELECT * FROM CATALOGS WHERE VName LiKE&1","%'%") >>> and the result won't fail. I wonder why? What's the advance in .Exec >>> over .Quote? >>> >>> I will try Johnny's trick. >>> Thanks! >>> >>> Csaba >>> >> >> Did you read my mail? >> >> -- >> Beno?t Minisini >> >> ------------------------------------------------------------------------------ >> Try before you buy = See our experts in action! >> The most comprehensive online learning library for Microsoft developers >> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, >> Metro Style Apps, more. Free future releases when you subscribe now! >> http://p.sf.net/sfu/learndevnow-dev2 >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > From Gambas at ...1950... Mon Jan 23 17:21:16 2012 From: Gambas at ...1950... (Caveat) Date: Mon, 23 Jan 2012 17:21:16 +0100 Subject: [Gambas-user] DB.Quote() doesn't quotes apostrophes In-Reply-To: References: <4F1D3A4B.2010504@...1...> <4F1D5E55.8010003@...1...> Message-ID: <1327335676.2882.459.camel@...2150...> Why not just process one term at a time? Dim conn As Connection Dim termStr As String Dim terms As String[] Dim enteredTerm, escapedTerm As String ... conn = DataAccess.getConnection() ... ' Get termStr from the input box 'termStr = txtQueryInput.Text ' Set termStr manually for testing termStr = "abc def he's fill kill''d fine &1 %2 it's%" terms = Split(termStr, " ") For Each enteredTerm In terms escapedTerm = DB.Subst("&1", enteredTerm) ' do something with the escaped term... ... Next Kind regards, Caveat From abbat.81 at ...787... Mon Jan 23 18:59:00 2012 From: abbat.81 at ...787... (abbat) Date: Mon, 23 Jan 2012 09:59:00 -0800 (PST) Subject: [Gambas-user] How to create simple applet? In-Reply-To: References: <33185455.post@...1379...> Message-ID: <33189838.post@...1379...> I need applet on label which would be situated near time-applet on LXPanel. Sorry, I'm not professional, I tried to understand this manual: http://home.student.utwente.nl/j.vanderhoff/LXPanel_HowTo.html but I could not translate it to Gambas. I just asked a example of such applet on Gambas to modify it, if it possible. Thanks, Peter Jussi Lahtinen wrote: > > Reason for why I haven't answer, is, I don't quite understand what you > want > to know. > If you can start Gambas IDE, there shouldn't be any problems to create > just > an some applet. > > Where do you need this text? In form title? To a label? > What is the problem exactly? > > Jussi > > > > On Mon, Jan 23, 2012 at 02:10, abbat wrote: > >> >> How to create simple applet with text? >> >> Thanks >> -- >> View this message in context: >> http://old.nabble.com/How-to-create-simple-applet--tp33185455p33185455.html >> Sent from the gambas-user mailing list archive at Nabble.com. >> >> >> >> ------------------------------------------------------------------------------ >> Try before you buy = See our experts in action! >> The most comprehensive online learning library for Microsoft developers >> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, >> Metro Style Apps, more. Free future releases when you subscribe now! >> http://p.sf.net/sfu/learndevnow-dev2 >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://old.nabble.com/How-to-create-simple-applet--tp33185455p33189838.html Sent from the gambas-user mailing list archive at Nabble.com. From rmorgan62 at ...626... Mon Jan 23 18:59:16 2012 From: rmorgan62 at ...626... (Randall Morgan) Date: Mon, 23 Jan 2012 09:59:16 -0800 Subject: [Gambas-user] curve fitting library ? In-Reply-To: <663663476.x1KaglQyBL@...46...> References: <2019610.XWL4lkhpvt@...46...> <2620561.soiXmaam6Z@...46...> <663663476.x1KaglQyBL@...46...> Message-ID: Thanks, Wally. I'll go over both but get back to me once you have an answer from the author of fityk. I would still love to see a plot and GSL module for Gambas. But fityk looks like a lot less work right now. GSL has grown quite a bit since I last used it. On Mon, Jan 23, 2012 at 4:29 AM, Wally wrote: > The spline example is member of Gambas3 examples > "Examples-> Drawing->GSLSpline" > or see attachment > > I'll try to contact the author of fityk to get his opinion about what > we want to do. Fityk seems more clear and easier to implement. > On the other hand GSL covers a much wider range of functionality. > > > > On Monday, January 23, 2012 03:42:32 Randall Morgan wrote: > > I don't think this app is licensed OSS. So I am not sure if you can > legally > > write a module with it. The GSL or similar library is the way to go. > > > > I have my plate full at the moment but I will try to give you as > > much guidance as I can. Be forewarned I too am still learning. Give me a > > day or two to go over the GSL and then we'll see what we can get done. > > > > send me your demo of the spline as well. > > > > On Mon, Jan 23, 2012 at 3:29 AM, Wally wrote: > > > Randall, Benoit > > > > > > this example, using the spline stuff from the GSL is one of the most > > > simple functions in GSL. All the intersting rest is much more > > > confusing. > > > > > > Have a look how easy fityk doing a peakfind on very noisy data: > > > (not sure the mailinglist allow me to attach screenshots ) > > > honmepage: fityk.nieto.pl > > > > > > On the other hand this fityk is not really free opensource i think. > > > > > > But here is a code example of guessing gaussian peak from a > > > clean exp function: > > > > > > #include > > > #include > > > > > > #include > > > > > > using namespace std; > > > using namespace fityk; > > > > > > int main() > > > { > > > > > > Fityk *f = new Fityk; > > > cout << f->get_info("version", true) << endl; > > > cout << "ln(2) = " << f->calculate_expr("ln(2)") << endl; > > > const double mu = 12.345; > > > for (int i = 0; i != 500; ++i) { > > > > > > double x = i / 100. + 10; > > > double y = ceil(100 * exp(-(x-mu)*(x-mu)/2)); > > > f->add_point(x, y, sqrt(y)); > > > > > > } > > > f->execute("Y = randnormal(y, s)"); > > > f->execute("guess %gauss = Gaussian"); > > > f->execute("fit"); > > > cout << "peak center: " << f->calculate_expr("%gauss.Center") << > > > endl; > > > delete f; > > > return 0; > > > > > > } > > > > > > output: > > > > > > Fityk 0.9.8 > > > ln(2) = 0.693147 > > > peak center: 12.3485 > > > > > > So ithink an implematation of GSL (or similar, maybe gnuplot)) > > > would be great - but i'm not able to do it without help. > > > > > > On Monday, January 23, 2012 03:06:29 Randall Morgan wrote: > > > > You must be familiar with C at some level? I'd be surprised if the > > > > GSL > > > > doesn't already have a C wrapper somewhere. I haven't used it in > > > > many > > > > > > years > > > > > > > so I can't recall, and I am sure it has changed. It sounds like > > > > you've > > > > already got a start. So you just need to invest more time into > > > > porting > > > > > > GSL > > > > > > > to Gambas. > > > > > > > > On Mon, Jan 23, 2012 at 2:59 AM, Wally wrote: > > > > > On Monday, January 23, 2012 11:47:47 Beno?t Minisini wrote: > > > > > > Le 22/01/2012 09:54, Wally a ?crit : > > > > > > > Does anyone have experience with curve fitting and/or > > > > > > > peakfinding > > > > > > > using gambas ? (e.g. example code) > > > > > > > > > > > > > > Is there a plain C library (Linux) known, suitable to > > > > > > > this > > > > > > > problem > > > > > > > and gambas ? > > > > > > > > > > > > > > Something like "fityk" (which is written in C++) but > > > > > > > written in > > > > > > > plain C to use with "EXTERN" > > > > > > > > > > > > > > I might wrap the fityk C++ or try Gnu Scientific > > > > > > > Library, but > > > > > > > i'm still searching for alternatives. > > > > > > > > > > > > > > wally > > > > > > > > > > > > There is a GSLSpline example provided with Gambas. Does it > > > > > > help? > > > > > > > > > > I did this example :) > > > > > > > ------------------------------------------------------------------------ > > > > > > > > ------ Try before you buy = See our experts in action! > > > > > The most comprehensive online learning library for Microsoft > > > > > developers is just $99.99! Visual Studio, SharePoint, SQL - > > > > > plus HTML5, CSS3,> > > > MVC3, > > > > > > > > Metro Style Apps, more. Free future releases when you subscribe > > > > > now! > > > > > http://p.sf.net/sfu/learndevnow-dev2 > > > > > _______________________________________________ > > > > > Gambas-user mailing list > > > > > Gambas-user at lists.sourceforge.net > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > ------------------------------------------------------------------------ > > > ------ Try before you buy = See our experts in action! > > > The most comprehensive online learning library for Microsoft developers > > > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, > MVC3, > > > Metro Style Apps, more. Free future releases when you subscribe now! > > > http://p.sf.net/sfu/learndevnow-dev2 > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- If you ask me if it can be done. The answer is YES, it can always be done. The correct questions however are... What will it cost, and how long will it take? From mohareve at ...626... Mon Jan 23 19:07:43 2012 From: mohareve at ...626... (M. Cs.) Date: Mon, 23 Jan 2012 19:07:43 +0100 Subject: [Gambas-user] DB.Quote() doesn't quotes apostrophes In-Reply-To: <1327335676.2882.459.camel@...2150...> References: <4F1D3A4B.2010504@...1...> <4F1D5E55.8010003@...1...> <1327335676.2882.459.camel@...2150...> Message-ID: I found a way to do, but I didn't understand what Benoit wanted: If I have a query, I can always do the following: Replace "SELECT * FROM CATALOGS WHERE VName=....." with "SELECT * FROM CATALOGS WHERE " & DB.Subst("VName=&1",...) & "..." That can solve the problem. I'm sorry but something can be very obvious for you, and not so clear to somebody not involved into Gambas! From the documentation I couldn't tell what is the difference between the quotation used by DB.Exec() and what's the gain from a function like DB.Subst(). This is really a painfull point in the documentations. Thanks anyway! Csaba 2012/1/23, Caveat : > Why not just process one term at a time? > > > Dim conn As Connection > Dim termStr As String > Dim terms As String[] > Dim enteredTerm, escapedTerm As String > > ... > conn = DataAccess.getConnection() > ... > ' Get termStr from the input box > 'termStr = txtQueryInput.Text > > ' Set termStr manually for testing > termStr = "abc def he's fill kill''d fine &1 %2 it's%" > > terms = Split(termStr, " ") > For Each enteredTerm In terms > escapedTerm = DB.Subst("&1", enteredTerm) > ' do something with the escaped term... > ... > Next > > Kind regards, > Caveat > > > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From wally at ...2037... Mon Jan 23 19:09:14 2012 From: wally at ...2037... (Wally) Date: Mon, 23 Jan 2012 19:09:14 +0100 Subject: [Gambas-user] curve fitting library ? In-Reply-To: References: <2019610.XWL4lkhpvt@...46...> <663663476.x1KaglQyBL@...46...> Message-ID: <2315471.clKB3oM5pi@...46...> Marcin Wojdyr , author of fityk told me he will post his opinion directlty here to the mailinglist today or tomorrow. On Monday, January 23, 2012 09:59:16 Randall Morgan wrote: > Thanks, Wally. > > I'll go over both but get back to me once you have an answer from the > author of fityk. I would still love to see a plot and GSL module for > Gambas. But fityk looks like a lot less work right now. GSL has grown quite > a bit since I last used it. > > On Mon, Jan 23, 2012 at 4:29 AM, Wally wrote: > > The spline example is member of Gambas3 examples > > "Examples-> Drawing->GSLSpline" > > or see attachment > > > > I'll try to contact the author of fityk to get his opinion about what > > we want to do. Fityk seems more clear and easier to implement. > > On the other hand GSL covers a much wider range of functionality. > > > > On Monday, January 23, 2012 03:42:32 Randall Morgan wrote: > > > I don't think this app is licensed OSS. So I am not sure if you can > > > > legally > > > > > write a module with it. The GSL or similar library is the way to go. > > > > > > I have my plate full at the moment but I will try to give you as > > > much guidance as I can. Be forewarned I too am still learning. Give > > > me a day or two to go over the GSL and then we'll see what we can > > > get done. > > > > > > send me your demo of the spline as well. > > > > > > On Mon, Jan 23, 2012 at 3:29 AM, Wally wrote: > > > > Randall, Benoit > > > > > > > > this example, using the spline stuff from the GSL is one of the > > > > most > > > > simple functions in GSL. All the intersting rest is much more > > > > confusing. > > > > > > > > Have a look how easy fityk doing a peakfind on very noisy data: > > > > (not sure the mailinglist allow me to attach screenshots ) > > > > honmepage: fityk.nieto.pl > > > > > > > > On the other hand this fityk is not really free opensource i > > > > think. > > > > > > > > But here is a code example of guessing gaussian peak from a > > > > clean exp function: > > > > > > > > #include > > > > #include > > > > > > > > #include > > > > > > > > using namespace std; > > > > using namespace fityk; > > > > > > > > int main() > > > > { > > > > > > > > Fityk *f = new Fityk; > > > > cout << f->get_info("version", true) << endl; > > > > cout << "ln(2) = " << f->calculate_expr("ln(2)") << endl; > > > > const double mu = 12.345; > > > > for (int i = 0; i != 500; ++i) { > > > > > > > > double x = i / 100. + 10; > > > > double y = ceil(100 * exp(-(x-mu)*(x-mu)/2)); > > > > f->add_point(x, y, sqrt(y)); > > > > > > > > } > > > > f->execute("Y = randnormal(y, s)"); > > > > f->execute("guess %gauss = Gaussian"); > > > > f->execute("fit"); > > > > cout << "peak center: " << > > > > f->calculate_expr("%gauss.Center") << > > > > endl; > > > > delete f; > > > > return 0; > > > > > > > > } > > > > > > > > output: > > > > > > > > Fityk 0.9.8 > > > > ln(2) = 0.693147 > > > > peak center: 12.3485 > > > > > > > > So ithink an implematation of GSL (or similar, maybe gnuplot)) > > > > would be great - but i'm not able to do it without help. > > > > > > > > On Monday, January 23, 2012 03:06:29 Randall Morgan wrote: > > > > > You must be familiar with C at some level? I'd be surprised > > > > > if the > > > > > GSL > > > > > doesn't already have a C wrapper somewhere. I haven't used > > > > > it in > > > > > many > > > > > > > > years > > > > > > > > > so I can't recall, and I am sure it has changed. It sounds > > > > > like > > > > > you've > > > > > already got a start. So you just need to invest more time > > > > > into > > > > > porting > > > > > > > > GSL > > > > > > > > > to Gambas. > > > > > > > > > > On Mon, Jan 23, 2012 at 2:59 AM, Wally wrote: > > > > > > On Monday, January 23, 2012 11:47:47 Beno?t Minisini wrote: > > > > > > > Le 22/01/2012 09:54, Wally a ?crit : > > > > > > > > Does anyone have experience with curve fitting > > > > > > > > and/or > > > > > > > > peakfinding > > > > > > > > using gambas ? (e.g. example code) > > > > > > > > > > > > > > > > Is there a plain C library (Linux) known, > > > > > > > > suitable to > > > > > > > > this > > > > > > > > problem > > > > > > > > and gambas ? > > > > > > > > > > > > > > > > Something like "fityk" (which is written in C++) > > > > > > > > but > > > > > > > > written in > > > > > > > > plain C to use with "EXTERN" > > > > > > > > > > > > > > > > I might wrap the fityk C++ or try Gnu Scientific > > > > > > > > Library, but > > > > > > > > i'm still searching for alternatives. > > > > > > > > > > > > > > > > wally > > > > > > > > > > > > > > There is a GSLSpline example provided with Gambas. > > > > > > > Does it > > > > > > > help? > > > > > > > > > > > > I did this example :) > > > > ------------------------------------------------------------------------ > > > > > > > > ------ Try before you buy = See our experts in action! > > > > > > The most comprehensive online learning library for > > > > > > Microsoft > > > > > > developers is just $99.99! Visual Studio, SharePoint, > > > > > > SQL - > > > > > > plus HTML5, CSS3,> > > > > > > > > MVC3, > > > > > > > > > > Metro Style Apps, more. Free future releases when you > > > > > > subscribe > > > > > > now! > > > > > > http://p.sf.net/sfu/learndevnow-dev2 > > > > > > _______________________________________________ > > > > > > Gambas-user mailing list > > > > > > Gambas-user at lists.sourceforge.net > > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------ > > > > > > ------ Try before you buy = See our experts in action! > > > > The most comprehensive online learning library for Microsoft > > > > developers is just $99.99! Visual Studio, SharePoint, SQL - > > > > plus HTML5, CSS3,> > > MVC3, > > > > > > Metro Style Apps, more. Free future releases when you subscribe > > > > now! > > > > http://p.sf.net/sfu/learndevnow-dev2 > > > > _______________________________________________ > > > > Gambas-user mailing list > > > > Gambas-user at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------ > > ------ Try before you buy = See our experts in action! > > The most comprehensive online learning library for Microsoft developers > > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > > Metro Style Apps, more. Free future releases when you subscribe now! > > http://p.sf.net/sfu/learndevnow-dev2 > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user From rmorgan62 at ...626... Mon Jan 23 19:11:40 2012 From: rmorgan62 at ...626... (Randall Morgan) Date: Mon, 23 Jan 2012 10:11:40 -0800 Subject: [Gambas-user] curve fitting library ? In-Reply-To: <2315471.clKB3oM5pi@...46...> References: <2019610.XWL4lkhpvt@...46...> <663663476.x1KaglQyBL@...46...> <2315471.clKB3oM5pi@...46...> Message-ID: OK thank you. On Mon, Jan 23, 2012 at 10:09 AM, Wally wrote: > > Marcin Wojdyr , author of fityk told me he will post his opinion > directlty here to the mailinglist today or tomorrow. > > On Monday, January 23, 2012 09:59:16 Randall Morgan wrote: > > Thanks, Wally. > > > > I'll go over both but get back to me once you have an answer from the > > author of fityk. I would still love to see a plot and GSL module for > > Gambas. But fityk looks like a lot less work right now. GSL has grown > quite > > a bit since I last used it. > > > > On Mon, Jan 23, 2012 at 4:29 AM, Wally wrote: > > > The spline example is member of Gambas3 examples > > > "Examples-> Drawing->GSLSpline" > > > or see attachment > > > > > > I'll try to contact the author of fityk to get his opinion about what > > > we want to do. Fityk seems more clear and easier to implement. > > > On the other hand GSL covers a much wider range of functionality. > > > > > > On Monday, January 23, 2012 03:42:32 Randall Morgan wrote: > > > > I don't think this app is licensed OSS. So I am not sure if you can > > > > > > legally > > > > > > > write a module with it. The GSL or similar library is the way to go. > > > > > > > > I have my plate full at the moment but I will try to give you as > > > > much guidance as I can. Be forewarned I too am still learning. Give > > > > me a day or two to go over the GSL and then we'll see what we can > > > > get done. > > > > > > > > send me your demo of the spline as well. > > > > > > > > On Mon, Jan 23, 2012 at 3:29 AM, Wally wrote: > > > > > Randall, Benoit > > > > > > > > > > this example, using the spline stuff from the GSL is one of the > > > > > most > > > > > simple functions in GSL. All the intersting rest is much more > > > > > confusing. > > > > > > > > > > Have a look how easy fityk doing a peakfind on very noisy data: > > > > > (not sure the mailinglist allow me to attach screenshots ) > > > > > honmepage: fityk.nieto.pl > > > > > > > > > > On the other hand this fityk is not really free opensource i > > > > > think. > > > > > > > > > > But here is a code example of guessing gaussian peak from a > > > > > clean exp function: > > > > > > > > > > #include > > > > > #include > > > > > > > > > > #include > > > > > > > > > > using namespace std; > > > > > using namespace fityk; > > > > > > > > > > int main() > > > > > { > > > > > > > > > > Fityk *f = new Fityk; > > > > > cout << f->get_info("version", true) << endl; > > > > > cout << "ln(2) = " << f->calculate_expr("ln(2)") << endl; > > > > > const double mu = 12.345; > > > > > for (int i = 0; i != 500; ++i) { > > > > > > > > > > double x = i / 100. + 10; > > > > > double y = ceil(100 * exp(-(x-mu)*(x-mu)/2)); > > > > > f->add_point(x, y, sqrt(y)); > > > > > > > > > > } > > > > > f->execute("Y = randnormal(y, s)"); > > > > > f->execute("guess %gauss = Gaussian"); > > > > > f->execute("fit"); > > > > > cout << "peak center: " << > > > > > f->calculate_expr("%gauss.Center") << > > > > > endl; > > > > > delete f; > > > > > return 0; > > > > > > > > > > } > > > > > > > > > > output: > > > > > > > > > > Fityk 0.9.8 > > > > > ln(2) = 0.693147 > > > > > peak center: 12.3485 > > > > > > > > > > So ithink an implematation of GSL (or similar, maybe gnuplot)) > > > > > would be great - but i'm not able to do it without help. > > > > > > > > > > On Monday, January 23, 2012 03:06:29 Randall Morgan wrote: > > > > > > You must be familiar with C at some level? I'd be surprised > > > > > > if the > > > > > > GSL > > > > > > doesn't already have a C wrapper somewhere. I haven't used > > > > > > it in > > > > > > many > > > > > > > > > > years > > > > > > > > > > > so I can't recall, and I am sure it has changed. It sounds > > > > > > like > > > > > > you've > > > > > > already got a start. So you just need to invest more time > > > > > > into > > > > > > porting > > > > > > > > > > GSL > > > > > > > > > > > to Gambas. > > > > > > > > > > > > On Mon, Jan 23, 2012 at 2:59 AM, Wally wrote: > > > > > > > On Monday, January 23, 2012 11:47:47 Beno?t Minisini wrote: > > > > > > > > Le 22/01/2012 09:54, Wally a ?crit : > > > > > > > > > Does anyone have experience with curve fitting > > > > > > > > > and/or > > > > > > > > > peakfinding > > > > > > > > > using gambas ? (e.g. example code) > > > > > > > > > > > > > > > > > > Is there a plain C library (Linux) known, > > > > > > > > > suitable to > > > > > > > > > this > > > > > > > > > problem > > > > > > > > > and gambas ? > > > > > > > > > > > > > > > > > > Something like "fityk" (which is written in C++) > > > > > > > > > but > > > > > > > > > written in > > > > > > > > > plain C to use with "EXTERN" > > > > > > > > > > > > > > > > > > I might wrap the fityk C++ or try Gnu Scientific > > > > > > > > > Library, but > > > > > > > > > i'm still searching for alternatives. > > > > > > > > > > > > > > > > > > wally > > > > > > > > > > > > > > > > There is a GSLSpline example provided with Gambas. > > > > > > > > Does it > > > > > > > > help? > > > > > > > > > > > > > > I did this example :) > > > > > > > ------------------------------------------------------------------------ > > > > > > > > > > ------ Try before you buy = See our experts in action! > > > > > > > The most comprehensive online learning library for > > > > > > > Microsoft > > > > > > > developers is just $99.99! Visual Studio, SharePoint, > > > > > > > SQL - > > > > > > > plus HTML5, CSS3,> > > > > > > > > > > MVC3, > > > > > > > > > > > > Metro Style Apps, more. Free future releases when you > > > > > > > subscribe > > > > > > > now! > > > > > > > http://p.sf.net/sfu/learndevnow-dev2 > > > > > > > _______________________________________________ > > > > > > > Gambas-user mailing list > > > > > > > Gambas-user at lists.sourceforge.net > > > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > ------------------------------------------------------------------------ > > > > > > > > ------ Try before you buy = See our experts in action! > > > > > The most comprehensive online learning library for Microsoft > > > > > developers is just $99.99! Visual Studio, SharePoint, SQL - > > > > > plus HTML5, CSS3,> > > > MVC3, > > > > > > > > Metro Style Apps, more. Free future releases when you subscribe > > > > > now! > > > > > http://p.sf.net/sfu/learndevnow-dev2 > > > > > _______________________________________________ > > > > > Gambas-user mailing list > > > > > Gambas-user at lists.sourceforge.net > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > ------------------------------------------------------------------------ > > > ------ Try before you buy = See our experts in action! > > > The most comprehensive online learning library for Microsoft developers > > > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, > MVC3, > > > Metro Style Apps, more. Free future releases when you subscribe now! > > > http://p.sf.net/sfu/learndevnow-dev2 > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- If you ask me if it can be done. The answer is YES, it can always be done. The correct questions however are... What will it cost, and how long will it take? From rmorgan62 at ...626... Mon Jan 23 19:18:18 2012 From: rmorgan62 at ...626... (Randall Morgan) Date: Mon, 23 Jan 2012 10:18:18 -0800 Subject: [Gambas-user] curve fitting library ? In-Reply-To: References: <2019610.XWL4lkhpvt@...46...> <663663476.x1KaglQyBL@...46...> <2315471.clKB3oM5pi@...46...> Message-ID: Wally, I just found this: http://fityk.nieto.pl/intro.html#about If you scroll down you'll find that the fityk library is licensed under the GPL 2 or later. This should allow us to create derivative works. Take a look at the license and I will too. Randall On Mon, Jan 23, 2012 at 10:11 AM, Randall Morgan wrote: > OK thank you. > > > On Mon, Jan 23, 2012 at 10:09 AM, Wally wrote: > >> >> Marcin Wojdyr , author of fityk told me he will post his opinion >> directlty here to the mailinglist today or tomorrow. >> >> On Monday, January 23, 2012 09:59:16 Randall Morgan wrote: >> > Thanks, Wally. >> > >> > I'll go over both but get back to me once you have an answer from the >> > author of fityk. I would still love to see a plot and GSL module for >> > Gambas. But fityk looks like a lot less work right now. GSL has grown >> quite >> > a bit since I last used it. >> > >> > On Mon, Jan 23, 2012 at 4:29 AM, Wally wrote: >> > > The spline example is member of Gambas3 examples >> > > "Examples-> Drawing->GSLSpline" >> > > or see attachment >> > > >> > > I'll try to contact the author of fityk to get his opinion about what >> > > we want to do. Fityk seems more clear and easier to implement. >> > > On the other hand GSL covers a much wider range of functionality. >> > > >> > > On Monday, January 23, 2012 03:42:32 Randall Morgan wrote: >> > > > I don't think this app is licensed OSS. So I am not sure if you can >> > > >> > > legally >> > > >> > > > write a module with it. The GSL or similar library is the way to go. >> > > > >> > > > I have my plate full at the moment but I will try to give you as >> > > > much guidance as I can. Be forewarned I too am still learning. Give >> > > > me a day or two to go over the GSL and then we'll see what we can >> > > > get done. >> > > > >> > > > send me your demo of the spline as well. >> > > > >> > > > On Mon, Jan 23, 2012 at 3:29 AM, Wally wrote: >> > > > > Randall, Benoit >> > > > > >> > > > > this example, using the spline stuff from the GSL is one of the >> > > > > most >> > > > > simple functions in GSL. All the intersting rest is much more >> > > > > confusing. >> > > > > >> > > > > Have a look how easy fityk doing a peakfind on very noisy data: >> > > > > (not sure the mailinglist allow me to attach screenshots ) >> > > > > honmepage: fityk.nieto.pl >> > > > > >> > > > > On the other hand this fityk is not really free opensource i >> > > > > think. >> > > > > >> > > > > But here is a code example of guessing gaussian peak from a >> > > > > clean exp function: >> > > > > >> > > > > #include >> > > > > #include >> > > > > >> > > > > #include >> > > > > >> > > > > using namespace std; >> > > > > using namespace fityk; >> > > > > >> > > > > int main() >> > > > > { >> > > > > >> > > > > Fityk *f = new Fityk; >> > > > > cout << f->get_info("version", true) << endl; >> > > > > cout << "ln(2) = " << f->calculate_expr("ln(2)") << endl; >> > > > > const double mu = 12.345; >> > > > > for (int i = 0; i != 500; ++i) { >> > > > > >> > > > > double x = i / 100. + 10; >> > > > > double y = ceil(100 * exp(-(x-mu)*(x-mu)/2)); >> > > > > f->add_point(x, y, sqrt(y)); >> > > > > >> > > > > } >> > > > > f->execute("Y = randnormal(y, s)"); >> > > > > f->execute("guess %gauss = Gaussian"); >> > > > > f->execute("fit"); >> > > > > cout << "peak center: " << >> > > > > f->calculate_expr("%gauss.Center") << >> > > > > endl; >> > > > > delete f; >> > > > > return 0; >> > > > > >> > > > > } >> > > > > >> > > > > output: >> > > > > >> > > > > Fityk 0.9.8 >> > > > > ln(2) = 0.693147 >> > > > > peak center: 12.3485 >> > > > > >> > > > > So ithink an implematation of GSL (or similar, maybe gnuplot)) >> > > > > would be great - but i'm not able to do it without help. >> > > > > >> > > > > On Monday, January 23, 2012 03:06:29 Randall Morgan wrote: >> > > > > > You must be familiar with C at some level? I'd be surprised >> > > > > > if the >> > > > > > GSL >> > > > > > doesn't already have a C wrapper somewhere. I haven't used >> > > > > > it in >> > > > > > many >> > > > > >> > > > > years >> > > > > >> > > > > > so I can't recall, and I am sure it has changed. It sounds >> > > > > > like >> > > > > > you've >> > > > > > already got a start. So you just need to invest more time >> > > > > > into >> > > > > > porting >> > > > > >> > > > > GSL >> > > > > >> > > > > > to Gambas. >> > > > > > >> > > > > > On Mon, Jan 23, 2012 at 2:59 AM, Wally wrote: >> > > > > > > On Monday, January 23, 2012 11:47:47 Beno?t Minisini wrote: >> > > > > > > > Le 22/01/2012 09:54, Wally a ?crit : >> > > > > > > > > Does anyone have experience with curve fitting >> > > > > > > > > and/or >> > > > > > > > > peakfinding >> > > > > > > > > using gambas ? (e.g. example code) >> > > > > > > > > >> > > > > > > > > Is there a plain C library (Linux) known, >> > > > > > > > > suitable to >> > > > > > > > > this >> > > > > > > > > problem >> > > > > > > > > and gambas ? >> > > > > > > > > >> > > > > > > > > Something like "fityk" (which is written in C++) >> > > > > > > > > but >> > > > > > > > > written in >> > > > > > > > > plain C to use with "EXTERN" >> > > > > > > > > >> > > > > > > > > I might wrap the fityk C++ or try Gnu Scientific >> > > > > > > > > Library, but >> > > > > > > > > i'm still searching for alternatives. >> > > > > > > > > >> > > > > > > > > wally >> > > > > > > > >> > > > > > > > There is a GSLSpline example provided with Gambas. >> > > > > > > > Does it >> > > > > > > > help? >> > > > > > > >> > > > > > > I did this example :) >> > > >> > > >> ------------------------------------------------------------------------ >> > > >> > > > > > > ------ Try before you buy = See our experts in action! >> > > > > > > The most comprehensive online learning library for >> > > > > > > Microsoft >> > > > > > > developers is just $99.99! Visual Studio, SharePoint, >> > > > > > > SQL - >> > > > > > > plus HTML5, CSS3,> >> > > > > >> > > > > MVC3, >> > > > > >> > > > > > > Metro Style Apps, more. Free future releases when you >> > > > > > > subscribe >> > > > > > > now! >> > > > > > > http://p.sf.net/sfu/learndevnow-dev2 >> > > > > > > _______________________________________________ >> > > > > > > Gambas-user mailing list >> > > > > > > Gambas-user at lists.sourceforge.net >> > > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > >> > > >> ------------------------------------------------------------------------ >> > > >> > > > > ------ Try before you buy = See our experts in action! >> > > > > The most comprehensive online learning library for Microsoft >> > > > > developers is just $99.99! Visual Studio, SharePoint, SQL - >> > > > > plus HTML5, CSS3,> >> > > MVC3, >> > > >> > > > > Metro Style Apps, more. Free future releases when you subscribe >> > > > > now! >> > > > > http://p.sf.net/sfu/learndevnow-dev2 >> > > > > _______________________________________________ >> > > > > Gambas-user mailing list >> > > > > Gambas-user at lists.sourceforge.net >> > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > >> > > >> ------------------------------------------------------------------------ >> > > ------ Try before you buy = See our experts in action! >> > > The most comprehensive online learning library for Microsoft >> developers >> > > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, >> MVC3, >> > > Metro Style Apps, more. Free future releases when you subscribe now! >> > > http://p.sf.net/sfu/learndevnow-dev2 >> > > _______________________________________________ >> > > Gambas-user mailing list >> > > Gambas-user at lists.sourceforge.net >> > > https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> ------------------------------------------------------------------------------ >> Try before you buy = See our experts in action! >> The most comprehensive online learning library for Microsoft developers >> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, >> Metro Style Apps, more. Free future releases when you subscribe now! >> http://p.sf.net/sfu/learndevnow-dev2 >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > > -- > If you ask me if it can be done. The answer is YES, it can always be done. > The correct questions however are... What will it cost, and how long will > it take? > -- If you ask me if it can be done. The answer is YES, it can always be done. The correct questions however are... What will it cost, and how long will it take? From jussi.lahtinen at ...626... Mon Jan 23 19:28:51 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 23 Jan 2012 20:28:51 +0200 Subject: [Gambas-user] How to create simple applet? In-Reply-To: <33189838.post@...1379...> References: <33185455.post@...1379...> <33189838.post@...1379...> Message-ID: Do you mean trayicon? http://gambasdoc.org/help/comp/gb.qt4/trayicon?v3 Jussi On Mon, Jan 23, 2012 at 19:59, abbat wrote: > > > I need applet on label which would be situated near time-applet on LXPanel. > Sorry, I'm not professional, I tried to understand this manual: > http://home.student.utwente.nl/j.vanderhoff/LXPanel_HowTo.html > but I could not translate it to Gambas. > > I just asked a example of such applet on Gambas to modify it, if it > possible. > > Thanks, > Peter > > > Jussi Lahtinen wrote: > > > > Reason for why I haven't answer, is, I don't quite understand what you > > want > > to know. > > If you can start Gambas IDE, there shouldn't be any problems to create > > just > > an some applet. > > > > Where do you need this text? In form title? To a label? > > What is the problem exactly? > > > > Jussi > > > > > > > > On Mon, Jan 23, 2012 at 02:10, abbat wrote: > > > >> > >> How to create simple applet with text? > >> > >> Thanks > >> -- > >> View this message in context: > >> > http://old.nabble.com/How-to-create-simple-applet--tp33185455p33185455.html > >> Sent from the gambas-user mailing list archive at Nabble.com. > >> > >> > >> > >> > ------------------------------------------------------------------------------ > >> Try before you buy = See our experts in action! > >> The most comprehensive online learning library for Microsoft developers > >> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > >> Metro Style Apps, more. Free future releases when you subscribe now! > >> http://p.sf.net/sfu/learndevnow-dev2 > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > > ------------------------------------------------------------------------------ > > Try before you buy = See our experts in action! > > The most comprehensive online learning library for Microsoft developers > > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > > Metro Style Apps, more. Free future releases when you subscribe now! > > http://p.sf.net/sfu/learndevnow-dev2 > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > -- > View this message in context: > http://old.nabble.com/How-to-create-simple-applet--tp33185455p33189838.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Mon Jan 23 19:31:39 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 23 Jan 2012 19:31:39 +0100 Subject: [Gambas-user] DB.Quote() doesn't quotes apostrophes In-Reply-To: References: <4F1D3A4B.2010504@...1...> <4F1D5E55.8010003@...1...> <1327335676.2882.459.camel@...2150...> Message-ID: <4F1DA78B.8090809@...1...> Le 23/01/2012 19:07, M. Cs. a ?crit : > I found a way to do, but I didn't understand what Benoit wanted: > If I have a query, I can always do the following: > Replace > "SELECT * FROM CATALOGS WHERE VName=....." > with > "SELECT * FROM CATALOGS WHERE "& DB.Subst("VName=&1",...)& "..." > > That can solve the problem. > I'm sorry but something can be very obvious for you, and not so clear > to somebody not involved into Gambas! From the documentation I > couldn't tell what is the difference between the quotation used by > DB.Exec() and what's the gain from a function like DB.Subst(). > This is really a painfull point in the documentations. > > Thanks anyway! > Csaba > >> DB.Exec() & its friends internally use DB.Subst(), which does the quoting and nothing more. -- Beno?t Minisini From rmorgan62 at ...626... Mon Jan 23 19:41:55 2012 From: rmorgan62 at ...626... (Randall Morgan) Date: Mon, 23 Jan 2012 10:41:55 -0800 Subject: [Gambas-user] curve fitting library ? In-Reply-To: References: <2019610.XWL4lkhpvt@...46...> <663663476.x1KaglQyBL@...46...> <2315471.clKB3oM5pi@...46...> Message-ID: Looks to me that as long as any derivative work is lincesed GPL and we follow it's terms we should be good to go with the fityk library. On Mon, Jan 23, 2012 at 10:18 AM, Randall Morgan wrote: > Wally, > > I just found this: http://fityk.nieto.pl/intro.html#about > > If you scroll down you'll find that the fityk library is licensed under > the GPL 2 or later. This should allow us to create derivative works. > > Take a look at the license and I will too. > > Randall > > On Mon, Jan 23, 2012 at 10:11 AM, Randall Morgan wrote: > >> OK thank you. >> >> >> On Mon, Jan 23, 2012 at 10:09 AM, Wally wrote: >> >>> >>> Marcin Wojdyr , author of fityk told me he will post his opinion >>> directlty here to the mailinglist today or tomorrow. >>> >>> On Monday, January 23, 2012 09:59:16 Randall Morgan wrote: >>> > Thanks, Wally. >>> > >>> > I'll go over both but get back to me once you have an answer from the >>> > author of fityk. I would still love to see a plot and GSL module for >>> > Gambas. But fityk looks like a lot less work right now. GSL has grown >>> quite >>> > a bit since I last used it. >>> > >>> > On Mon, Jan 23, 2012 at 4:29 AM, Wally wrote: >>> > > The spline example is member of Gambas3 examples >>> > > "Examples-> Drawing->GSLSpline" >>> > > or see attachment >>> > > >>> > > I'll try to contact the author of fityk to get his opinion about what >>> > > we want to do. Fityk seems more clear and easier to implement. >>> > > On the other hand GSL covers a much wider range of functionality. >>> > > >>> > > On Monday, January 23, 2012 03:42:32 Randall Morgan wrote: >>> > > > I don't think this app is licensed OSS. So I am not sure if you can >>> > > >>> > > legally >>> > > >>> > > > write a module with it. The GSL or similar library is the way to >>> go. >>> > > > >>> > > > I have my plate full at the moment but I will try to give you as >>> > > > much guidance as I can. Be forewarned I too am still learning. Give >>> > > > me a day or two to go over the GSL and then we'll see what we can >>> > > > get done. >>> > > > >>> > > > send me your demo of the spline as well. >>> > > > >>> > > > On Mon, Jan 23, 2012 at 3:29 AM, Wally wrote: >>> > > > > Randall, Benoit >>> > > > > >>> > > > > this example, using the spline stuff from the GSL is one of the >>> > > > > most >>> > > > > simple functions in GSL. All the intersting rest is much more >>> > > > > confusing. >>> > > > > >>> > > > > Have a look how easy fityk doing a peakfind on very noisy data: >>> > > > > (not sure the mailinglist allow me to attach screenshots ) >>> > > > > honmepage: fityk.nieto.pl >>> > > > > >>> > > > > On the other hand this fityk is not really free opensource i >>> > > > > think. >>> > > > > >>> > > > > But here is a code example of guessing gaussian peak from a >>> > > > > clean exp function: >>> > > > > >>> > > > > #include >>> > > > > #include >>> > > > > >>> > > > > #include >>> > > > > >>> > > > > using namespace std; >>> > > > > using namespace fityk; >>> > > > > >>> > > > > int main() >>> > > > > { >>> > > > > >>> > > > > Fityk *f = new Fityk; >>> > > > > cout << f->get_info("version", true) << endl; >>> > > > > cout << "ln(2) = " << f->calculate_expr("ln(2)") << endl; >>> > > > > const double mu = 12.345; >>> > > > > for (int i = 0; i != 500; ++i) { >>> > > > > >>> > > > > double x = i / 100. + 10; >>> > > > > double y = ceil(100 * exp(-(x-mu)*(x-mu)/2)); >>> > > > > f->add_point(x, y, sqrt(y)); >>> > > > > >>> > > > > } >>> > > > > f->execute("Y = randnormal(y, s)"); >>> > > > > f->execute("guess %gauss = Gaussian"); >>> > > > > f->execute("fit"); >>> > > > > cout << "peak center: " << >>> > > > > f->calculate_expr("%gauss.Center") << >>> > > > > endl; >>> > > > > delete f; >>> > > > > return 0; >>> > > > > >>> > > > > } >>> > > > > >>> > > > > output: >>> > > > > >>> > > > > Fityk 0.9.8 >>> > > > > ln(2) = 0.693147 >>> > > > > peak center: 12.3485 >>> > > > > >>> > > > > So ithink an implematation of GSL (or similar, maybe gnuplot)) >>> > > > > would be great - but i'm not able to do it without help. >>> > > > > >>> > > > > On Monday, January 23, 2012 03:06:29 Randall Morgan wrote: >>> > > > > > You must be familiar with C at some level? I'd be surprised >>> > > > > > if the >>> > > > > > GSL >>> > > > > > doesn't already have a C wrapper somewhere. I haven't used >>> > > > > > it in >>> > > > > > many >>> > > > > >>> > > > > years >>> > > > > >>> > > > > > so I can't recall, and I am sure it has changed. It sounds >>> > > > > > like >>> > > > > > you've >>> > > > > > already got a start. So you just need to invest more time >>> > > > > > into >>> > > > > > porting >>> > > > > >>> > > > > GSL >>> > > > > >>> > > > > > to Gambas. >>> > > > > > >>> > > > > > On Mon, Jan 23, 2012 at 2:59 AM, Wally >>> wrote: >>> > > > > > > On Monday, January 23, 2012 11:47:47 Beno?t Minisini wrote: >>> > > > > > > > Le 22/01/2012 09:54, Wally a ?crit : >>> > > > > > > > > Does anyone have experience with curve fitting >>> > > > > > > > > and/or >>> > > > > > > > > peakfinding >>> > > > > > > > > using gambas ? (e.g. example code) >>> > > > > > > > > >>> > > > > > > > > Is there a plain C library (Linux) known, >>> > > > > > > > > suitable to >>> > > > > > > > > this >>> > > > > > > > > problem >>> > > > > > > > > and gambas ? >>> > > > > > > > > >>> > > > > > > > > Something like "fityk" (which is written in C++) >>> > > > > > > > > but >>> > > > > > > > > written in >>> > > > > > > > > plain C to use with "EXTERN" >>> > > > > > > > > >>> > > > > > > > > I might wrap the fityk C++ or try Gnu Scientific >>> > > > > > > > > Library, but >>> > > > > > > > > i'm still searching for alternatives. >>> > > > > > > > > >>> > > > > > > > > wally >>> > > > > > > > >>> > > > > > > > There is a GSLSpline example provided with Gambas. >>> > > > > > > > Does it >>> > > > > > > > help? >>> > > > > > > >>> > > > > > > I did this example :) >>> > > >>> > > >>> ------------------------------------------------------------------------ >>> > > >>> > > > > > > ------ Try before you buy = See our experts in action! >>> > > > > > > The most comprehensive online learning library for >>> > > > > > > Microsoft >>> > > > > > > developers is just $99.99! Visual Studio, SharePoint, >>> > > > > > > SQL - >>> > > > > > > plus HTML5, CSS3,> >>> > > > > >>> > > > > MVC3, >>> > > > > >>> > > > > > > Metro Style Apps, more. Free future releases when you >>> > > > > > > subscribe >>> > > > > > > now! >>> > > > > > > http://p.sf.net/sfu/learndevnow-dev2 >>> > > > > > > _______________________________________________ >>> > > > > > > Gambas-user mailing list >>> > > > > > > Gambas-user at lists.sourceforge.net >>> > > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user >>> > > >>> > > >>> ------------------------------------------------------------------------ >>> > > >>> > > > > ------ Try before you buy = See our experts in action! >>> > > > > The most comprehensive online learning library for Microsoft >>> > > > > developers is just $99.99! Visual Studio, SharePoint, SQL - >>> > > > > plus HTML5, CSS3,> >>> > > MVC3, >>> > > >>> > > > > Metro Style Apps, more. Free future releases when you subscribe >>> > > > > now! >>> > > > > http://p.sf.net/sfu/learndevnow-dev2 >>> > > > > _______________________________________________ >>> > > > > Gambas-user mailing list >>> > > > > Gambas-user at lists.sourceforge.net >>> > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user >>> > > >>> > > >>> ------------------------------------------------------------------------ >>> > > ------ Try before you buy = See our experts in action! >>> > > The most comprehensive online learning library for Microsoft >>> developers >>> > > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, >>> MVC3, >>> > > Metro Style Apps, more. Free future releases when you subscribe now! >>> > > http://p.sf.net/sfu/learndevnow-dev2 >>> > > _______________________________________________ >>> > > Gambas-user mailing list >>> > > Gambas-user at lists.sourceforge.net >>> > > https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >>> >>> ------------------------------------------------------------------------------ >>> Try before you buy = See our experts in action! >>> The most comprehensive online learning library for Microsoft developers >>> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, >>> Metro Style Apps, more. Free future releases when you subscribe now! >>> http://p.sf.net/sfu/learndevnow-dev2 >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> >> >> >> -- >> If you ask me if it can be done. The answer is YES, it can always be >> done. The correct questions however are... What will it cost, and how long >> will it take? >> > > > > -- > If you ask me if it can be done. The answer is YES, it can always be done. > The correct questions however are... What will it cost, and how long will > it take? > -- If you ask me if it can be done. The answer is YES, it can always be done. The correct questions however are... What will it cost, and how long will it take? From abbat.81 at ...787... Mon Jan 23 19:52:23 2012 From: abbat.81 at ...787... (abbat) Date: Mon, 23 Jan 2012 10:52:23 -0800 (PST) Subject: [Gambas-user] How to create simple applet? In-Reply-To: References: <33185455.post@...1379...> <33189838.post@...1379...> Message-ID: <33190224.post@...1379...> I mean a time-text near that icon. I need send my text near that icon, like time shows on panel, not pop-up Jussi Lahtinen wrote: > > Do you mean trayicon? > http://gambasdoc.org/help/comp/gb.qt4/trayicon?v3 > > Jussi > > > > On Mon, Jan 23, 2012 at 19:59, abbat wrote: > >> >> >> I need applet on label which would be situated near time-applet on >> LXPanel. >> Sorry, I'm not professional, I tried to understand this manual: >> http://home.student.utwente.nl/j.vanderhoff/LXPanel_HowTo.html >> but I could not translate it to Gambas. >> >> I just asked a example of such applet on Gambas to modify it, if it >> possible. >> >> Thanks, >> Peter >> >> >> Jussi Lahtinen wrote: >> > >> > Reason for why I haven't answer, is, I don't quite understand what you >> > want >> > to know. >> > If you can start Gambas IDE, there shouldn't be any problems to create >> > just >> > an some applet. >> > >> > Where do you need this text? In form title? To a label? >> > What is the problem exactly? >> > >> > Jussi >> > >> > >> > >> > On Mon, Jan 23, 2012 at 02:10, abbat wrote: >> > >> >> >> >> How to create simple applet with text? >> >> >> >> Thanks >> >> -- >> >> View this message in context: >> >> >> http://old.nabble.com/How-to-create-simple-applet--tp33185455p33185455.html >> >> Sent from the gambas-user mailing list archive at Nabble.com. >> >> >> >> >> >> >> >> >> ------------------------------------------------------------------------------ >> >> Try before you buy = See our experts in action! >> >> The most comprehensive online learning library for Microsoft >> developers >> >> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, >> MVC3, >> >> Metro Style Apps, more. Free future releases when you subscribe now! >> >> http://p.sf.net/sfu/learndevnow-dev2 >> >> _______________________________________________ >> >> Gambas-user mailing list >> >> Gambas-user at lists.sourceforge.net >> >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> > >> ------------------------------------------------------------------------------ >> > Try before you buy = See our experts in action! >> > The most comprehensive online learning library for Microsoft developers >> > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, >> MVC3, >> > Metro Style Apps, more. Free future releases when you subscribe now! >> > http://p.sf.net/sfu/learndevnow-dev2 >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > >> > >> >> -- >> View this message in context: >> http://old.nabble.com/How-to-create-simple-applet--tp33185455p33189838.html >> Sent from the gambas-user mailing list archive at Nabble.com. >> >> >> >> ------------------------------------------------------------------------------ >> Try before you buy = See our experts in action! >> The most comprehensive online learning library for Microsoft developers >> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, >> Metro Style Apps, more. Free future releases when you subscribe now! >> http://p.sf.net/sfu/learndevnow-dev2 >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://old.nabble.com/How-to-create-simple-applet--tp33185455p33190224.html Sent from the gambas-user mailing list archive at Nabble.com. From wally at ...2037... Mon Jan 23 19:58:10 2012 From: wally at ...2037... (Wally) Date: Mon, 23 Jan 2012 19:58:10 +0100 Subject: [Gambas-user] curve fitting library ? In-Reply-To: References: <2019610.XWL4lkhpvt@...46...> Message-ID: <6952479.ItGBChLA8t@...46...> Rqandall, let us listen Marcin first. Maybe he has some interesting informations. In fityk i found that the favourie mehtod is "chi squares method". Gsl offers this also : ? Function: double gsl_cdf_chisq_P (double x, double nu) ? Function: double gsl_cdf_chisq_Q (double x, double nu) ? Function: double gsl_cdf_chisq_Pinv (double P, double nu) ? Function: double gsl_cdf_chisq_Qinv (double Q, double nu) On Monday, January 23, 2012 10:41:55 Randall Morgan wrote: > Looks to me that as long as any derivative work is lincesed GPL and we > follow it's terms we should be good to go with the fityk library. > > On Mon, Jan 23, 2012 at 10:18 AM, Randall Morgan wrote: > > Wally, > > > > I just found this: http://fityk.nieto.pl/intro.html#about > > > > If you scroll down you'll find that the fityk library is licensed under > > the GPL 2 or later. This should allow us to create derivative works. > > > > Take a look at the license and I will too. > > > > Randall > > > > On Mon, Jan 23, 2012 at 10:11 AM, Randall Morgan wrote: > >> OK thank you. > >> > >> On Mon, Jan 23, 2012 at 10:09 AM, Wally wrote: > >>> Marcin Wojdyr , author of fityk told me he will post his opinion > >>> directlty here to the mailinglist today or tomorrow. > >>> > >>> On Monday, January 23, 2012 09:59:16 Randall Morgan wrote: > >>> > Thanks, Wally. > >>> > > >>> > I'll go over both but get back to me once you have an answer > >>> > from the > >>> > author of fityk. I would still love to see a plot and GSL module > >>> > for > >>> > Gambas. But fityk looks like a lot less work right now. GSL has > >>> > grown > >>> > >>> quite > >>> > >>> > a bit since I last used it. > >>> > > >>> > On Mon, Jan 23, 2012 at 4:29 AM, Wally wrote: > >>> > > The spline example is member of Gambas3 examples > >>> > > "Examples-> Drawing->GSLSpline" > >>> > > or see attachment > >>> > > > >>> > > I'll try to contact the author of fityk to get his opinion > >>> > > about what we want to do. Fityk seems more clear and easier > >>> > > to implement. On the other hand GSL covers a much wider > >>> > > range of functionality.>>> > > > >>> > > On Monday, January 23, 2012 03:42:32 Randall Morgan wrote: > >>> > > > I don't think this app is licensed OSS. So I am not sure > >>> > > > if you can>>> > > > >>> > > legally > >>> > > > >>> > > > write a module with it. The GSL or similar library is > >>> > > > the way to > >>> > >>> go. > >>> > >>> > > > I have my plate full at the moment but I will try to > >>> > > > give you as > >>> > > > much guidance as I can. Be forewarned I too am still > >>> > > > learning. Give me a day or two to go over the GSL and > >>> > > > then we'll see what we can get done. > >>> > > > > >>> > > > send me your demo of the spline as well. > >>> > > > > >>> > > > On Mon, Jan 23, 2012 at 3:29 AM, Wally wrote: > >>> > > > > Randall, Benoit > >>> > > > > > >>> > > > > this example, using the spline stuff from the GSL is > >>> > > > > one of the > >>> > > > > most > >>> > > > > simple functions in GSL. All the intersting rest is > >>> > > > > much more > >>> > > > > confusing. > >>> > > > > > >>> > > > > Have a look how easy fityk doing a peakfind on very > >>> > > > > noisy data: > >>> > > > > (not sure the mailinglist allow me to attach > >>> > > > > screenshots ) > >>> > > > > honmepage: fityk.nieto.pl > >>> > > > > > >>> > > > > On the other hand this fityk is not really free > >>> > > > > opensource i > >>> > > > > think. > >>> > > > > > >>> > > > > But here is a code example of guessing gaussian peak > >>> > > > > from a > >>> > > > > clean exp function: > >>> > > > > > >>> > > > > #include > >>> > > > > #include > >>> > > > > > >>> > > > > #include > >>> > > > > > >>> > > > > using namespace std; > >>> > > > > using namespace fityk; > >>> > > > > > >>> > > > > int main() > >>> > > > > { > >>> > > > > > >>> > > > > Fityk *f = new Fityk; > >>> > > > > cout << f->get_info("version", true) << endl; > >>> > > > > cout << "ln(2) = " << > >>> > > > > f->calculate_expr("ln(2)") << endl; > >>> > > > > const double mu = 12.345; > >>> > > > > for (int i = 0; i != 500; ++i) { > >>> > > > > > >>> > > > > double x = i / 100. + 10; > >>> > > > > double y = ceil(100 * > >>> > > > > exp(-(x-mu)*(x-mu)/2)); > >>> > > > > f->add_point(x, y, sqrt(y)); > >>> > > > > > >>> > > > > } > >>> > > > > f->execute("Y = randnormal(y, s)"); > >>> > > > > f->execute("guess %gauss = Gaussian"); > >>> > > > > f->execute("fit"); > >>> > > > > cout << "peak center: " << > >>> > > > > f->calculate_expr("%gauss.Center") << > >>> > > > > endl; > >>> > > > > delete f; > >>> > > > > return 0; > >>> > > > > > >>> > > > > } > >>> > > > > > >>> > > > > output: > >>> > > > > > >>> > > > > Fityk 0.9.8 > >>> > > > > ln(2) = 0.693147 > >>> > > > > peak center: 12.3485 > >>> > > > > > >>> > > > > So ithink an implematation of GSL (or similar, maybe > >>> > > > > gnuplot)) > >>> > > > > would be great - but i'm not able to do it without > >>> > > > > help. > >>> > > > > > >>> > > > > On Monday, January 23, 2012 03:06:29 Randall Morgan wrote: > >>> > > > > > You must be familiar with C at some level? I'd > >>> > > > > > be surprised > >>> > > > > > if the > >>> > > > > > GSL > >>> > > > > > doesn't already have a C wrapper somewhere. I > >>> > > > > > haven't used > >>> > > > > > it in > >>> > > > > > many > >>> > > > > > >>> > > > > years > >>> > > > > > >>> > > > > > so I can't recall, and I am sure it has changed. > >>> > > > > > It sounds > >>> > > > > > like > >>> > > > > > you've > >>> > > > > > already got a start. So you just need to invest > >>> > > > > > more time > >>> > > > > > into > >>> > > > > > porting > >>> > > > > > >>> > > > > GSL > >>> > > > > > >>> > > > > > to Gambas. > >>> > > > > > > >>> > > > > > On Mon, Jan 23, 2012 at 2:59 AM, Wally > >>> > > > > > > >>> > >>> wrote: > >>> > > > > > > On Monday, January 23, 2012 11:47:47 Beno?t Minisini wrote: > >>> > > > > > > > Le 22/01/2012 09:54, Wally a ?crit : > >>> > > > > > > > > Does anyone have experience with > >>> > > > > > > > > curve fitting > >>> > > > > > > > > and/or > >>> > > > > > > > > peakfinding > >>> > > > > > > > > using gambas ? (e.g. example > >>> > > > > > > > > code) > >>> > > > > > > > > > >>> > > > > > > > > Is there a plain C library (Linux) > >>> > > > > > > > > known, > >>> > > > > > > > > suitable to > >>> > > > > > > > > this > >>> > > > > > > > > problem > >>> > > > > > > > > and gambas ? > >>> > > > > > > > > > >>> > > > > > > > > Something like "fityk" (which is > >>> > > > > > > > > written in C++) > >>> > > > > > > > > but > >>> > > > > > > > > written in > >>> > > > > > > > > plain C to use with "EXTERN" > >>> > > > > > > > > > >>> > > > > > > > > I might wrap the fityk C++ or try > >>> > > > > > > > > Gnu Scientific > >>> > > > > > > > > Library, but > >>> > > > > > > > > i'm still searching for > >>> > > > > > > > > alternatives. > >>> > > > > > > > > > >>> > > > > > > > > wally > >>> > > > > > > > > >>> > > > > > > > There is a GSLSpline example provided > >>> > > > > > > > with Gambas. > >>> > > > > > > > Does it > >>> > > > > > > > help? > >>> > > > > > > > >>> > > > > > > I did this example :) > >>> > >>> -------------------------------------------------------------------- > >>> ---->>> > >>> > > > > > > ------ Try before you buy = See our experts > >>> > > > > > > in action! > >>> > > > > > > The most comprehensive online learning > >>> > > > > > > library for > >>> > > > > > > Microsoft > >>> > > > > > > developers is just $99.99! Visual Studio, > >>> > > > > > > SharePoint, > >>> > > > > > > SQL - > >>> > > > > > > plus HTML5, CSS3,> > >>> > > > > > >>> > > > > MVC3, > >>> > > > > > >>> > > > > > > Metro Style Apps, more. Free future releases > >>> > > > > > > when you > >>> > > > > > > subscribe > >>> > > > > > > now! > >>> > > > > > > http://p.sf.net/sfu/learndevnow-dev2 > >>> > > > > > > ____________________________________________ > >>> > > > > > > ___ > >>> > > > > > > Gambas-user mailing list > >>> > > > > > > Gambas-user at lists.sourceforge.net > >>> > > > > > > https://lists.sourceforge.net/lists/listinfo > >>> > > > > > > /gambas-user > >>> > >>> -------------------------------------------------------------------- > >>> ---->>> > >>> > > > > ------ Try before you buy = See our experts in > >>> > > > > action! > >>> > > > > The most comprehensive online learning library for > >>> > > > > Microsoft > >>> > > > > developers is just $99.99! Visual Studio, > >>> > > > > SharePoint, SQL - > >>> > > > > plus HTML5, CSS3,> > >>> > > > >>> > > MVC3, > >>> > > > >>> > > > > Metro Style Apps, more. Free future releases when > >>> > > > > you subscribe > >>> > > > > now! > >>> > > > > http://p.sf.net/sfu/learndevnow-dev2 > >>> > > > > _______________________________________________ > >>> > > > > Gambas-user mailing list > >>> > > > > Gambas-user at lists.sourceforge.net > >>> > > > > https://lists.sourceforge.net/lists/listinfo/gambas- > >>> > > > > user > >>> > >>> -------------------------------------------------------------------- > >>> ---->>> > >>> > > ------ Try before you buy = See our experts in action! > >>> > > The most comprehensive online learning library for Microsoft > >>> > >>> developers > >>> > >>> > > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, > >>> > > CSS3, > >>> > >>> MVC3, > >>> > >>> > > Metro Style Apps, more. Free future releases when you > >>> > > subscribe now! http://p.sf.net/sfu/learndevnow-dev2 > >>> > > _______________________________________________ > >>> > > Gambas-user mailing list > >>> > > Gambas-user at lists.sourceforge.net > >>> > > https://lists.sourceforge.net/lists/listinfo/gambas-user > >>> > >>> -------------------------------------------------------------------- > >>> ---------- Try before you buy = See our experts in action! > >>> The most comprehensive online learning library for Microsoft > >>> developers > >>> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, > >>> MVC3, Metro Style Apps, more. Free future releases when you > >>> subscribe now! http://p.sf.net/sfu/learndevnow-dev2 > >>> _______________________________________________ > >>> Gambas-user mailing list > >>> Gambas-user at lists.sourceforge.net > >>> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > >> -- > >> If you ask me if it can be done. The answer is YES, it can always be > >> done. The correct questions however are... What will it cost, and how > >> long will it take? > > > > -- > > If you ask me if it can be done. The answer is YES, it can always be > > done. The correct questions however are... What will it cost, and how > > long will it take? From math.eber at ...221... Mon Jan 23 20:07:33 2012 From: math.eber at ...221... (Matti) Date: Mon, 23 Jan 2012 20:07:33 +0100 Subject: [Gambas-user] Unable to compile gb.form.stock In-Reply-To: <4F19C6EE.1080709@...1...> References: <4F19B9C8.2070203@...221...> <4F19C6EE.1080709@...1...> Message-ID: <4F1DAFF5.8050108@...221...> First, I deleted everything in /trunk, did svn checkout (rev.4415 now) and recompiled. Same result. Then, I deleted everything in /usr/local/bin and /usr/local/share/gambas3, and recompiled again. Same result. There is this warning message, but all the stock icons are usable. Output is attatched. [System] OperatingSystem=Linux Kernel=2.6.37.6-0.11-desktop Architecture=i686 Memory=3044332 kB DistributionVendor=SuSE DistributionRelease=openSUSE 11.4 (i586) VERSION = 11.4 CODENAME = Celadon Desktop=KDE4 [Gambas 3] Version=3.0.90 Path=/usr/local/bin/gbx3 [Libraries] Qt4=libQtCore.so.4.7.1 GTK+=libgtk-x11-2.0.so.0.2200.1 Regards Matti Am 20.01.2012 20:56, schrieb Beno?t Minisini: > Le 20/01/2012 20:00, Matti a ?crit : >> I compiled svn version 4409, and at the end of su -c "make install", I got the >> message >> || >> || Unable to compile gb.form.stock >> || >> >> But all the icons are shown and are usable. >> >> Regards >> Matti >> > > Please recompile from scratch and send the full output of the > compilation& installation process! There must be a problem somewhere. > -------------- next part -------------- A non-text attachment was scrubbed... Name: gb3 svn Installation Protokoll.txt.tar.gz Type: application/x-gzip Size: 16923 bytes Desc: not available URL: From gambas at ...1... Mon Jan 23 20:28:55 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 23 Jan 2012 20:28:55 +0100 Subject: [Gambas-user] Unable to compile gb.form.stock In-Reply-To: <4F1DAFF5.8050108@...221...> References: <4F19B9C8.2070203@...221...> <4F19C6EE.1080709@...1...> <4F1DAFF5.8050108@...221...> Message-ID: <4F1DB4F7.1030309@...1...> Le 23/01/2012 20:07, Matti a ?crit : > First, I deleted everything in /trunk, did svn checkout (rev.4415 now) > and recompiled. > Same result. > > Then, I deleted everything in /usr/local/bin and > /usr/local/share/gambas3, and recompiled again. > Same result. There is this warning message, but all the stock icons are > usable. > > Output is attatched. > OK, the problem should be fixed in revision #4417. Regards, -- Beno?t Minisini From math.eber at ...221... Mon Jan 23 20:48:14 2012 From: math.eber at ...221... (Matti) Date: Mon, 23 Jan 2012 20:48:14 +0100 Subject: [Gambas-user] Unable to compile gb.form.stock In-Reply-To: <4F1DB4F7.1030309@...1...> References: <4F19B9C8.2070203@...221...> <4F19C6EE.1080709@...1...> <4F1DAFF5.8050108@...221...> <4F1DB4F7.1030309@...1...> Message-ID: <4F1DB97E.4000901@...221...> Confirmed. The message has gone now. Am 23.01.2012 20:28, schrieb Beno?t Minisini: > Le 23/01/2012 20:07, Matti a ?crit : >> First, I deleted everything in /trunk, did svn checkout (rev.4415 now) >> and recompiled. >> Same result. >> >> Then, I deleted everything in /usr/local/bin and >> /usr/local/share/gambas3, and recompiled again. >> Same result. There is this warning message, but all the stock icons are >> usable. >> >> Output is attatched. >> > > OK, the problem should be fixed in revision #4417. > > Regards, > From jussi.lahtinen at ...626... Mon Jan 23 21:05:02 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 23 Jan 2012 22:05:02 +0200 Subject: [Gambas-user] How to create simple applet? In-Reply-To: <33190224.post@...1379...> References: <33185455.post@...1379...> <33189838.post@...1379...> <33190224.post@...1379...> Message-ID: OK, now think I understand what you mean... You want to make LXPanel plugin. I rechecked the link you send. I'm not sure you can do that with Gambas. Trayicon shows only small icon, so I don't think you can reasonably fit text to it, but you can put text to tooltip of that icon. Maybe it is the second best option. Another option is that you write that functionality with C, but that's not rookie project. Maybe Benoit is interested in make native Gambas functions for this... Jussi On Mon, Jan 23, 2012 at 20:52, abbat wrote: > > > I mean a time-text near that icon. > I need send my text near that icon, like time shows on panel, not pop-up > > > Jussi Lahtinen wrote: > > > > Do you mean trayicon? > > http://gambasdoc.org/help/comp/gb.qt4/trayicon?v3 > > > > Jussi > > > > > > > > On Mon, Jan 23, 2012 at 19:59, abbat wrote: > > > >> > >> > >> I need applet on label which would be situated near time-applet on > >> LXPanel. > >> Sorry, I'm not professional, I tried to understand this manual: > >> http://home.student.utwente.nl/j.vanderhoff/LXPanel_HowTo.html > >> but I could not translate it to Gambas. > >> > >> I just asked a example of such applet on Gambas to modify it, if it > >> possible. > >> > >> Thanks, > >> Peter > >> > >> > >> Jussi Lahtinen wrote: > >> > > >> > Reason for why I haven't answer, is, I don't quite understand what you > >> > want > >> > to know. > >> > If you can start Gambas IDE, there shouldn't be any problems to create > >> > just > >> > an some applet. > >> > > >> > Where do you need this text? In form title? To a label? > >> > What is the problem exactly? > >> > > >> > Jussi > >> > > >> > > >> > > >> > On Mon, Jan 23, 2012 at 02:10, abbat wrote: > >> > > >> >> > >> >> How to create simple applet with text? > >> >> > >> >> Thanks > >> >> -- > >> >> View this message in context: > >> >> > >> > http://old.nabble.com/How-to-create-simple-applet--tp33185455p33185455.html > >> >> Sent from the gambas-user mailing list archive at Nabble.com. > >> >> > >> >> > >> >> > >> >> > >> > ------------------------------------------------------------------------------ > >> >> Try before you buy = See our experts in action! > >> >> The most comprehensive online learning library for Microsoft > >> developers > >> >> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, > >> MVC3, > >> >> Metro Style Apps, more. Free future releases when you subscribe now! > >> >> http://p.sf.net/sfu/learndevnow-dev2 > >> >> _______________________________________________ > >> >> Gambas-user mailing list > >> >> Gambas-user at lists.sourceforge.net > >> >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> >> > >> > > >> > ------------------------------------------------------------------------------ > >> > Try before you buy = See our experts in action! > >> > The most comprehensive online learning library for Microsoft > developers > >> > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, > >> MVC3, > >> > Metro Style Apps, more. Free future releases when you subscribe now! > >> > http://p.sf.net/sfu/learndevnow-dev2 > >> > _______________________________________________ > >> > Gambas-user mailing list > >> > Gambas-user at lists.sourceforge.net > >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > >> > > >> > >> -- > >> View this message in context: > >> > http://old.nabble.com/How-to-create-simple-applet--tp33185455p33189838.html > >> Sent from the gambas-user mailing list archive at Nabble.com. > >> > >> > >> > >> > ------------------------------------------------------------------------------ > >> Try before you buy = See our experts in action! > >> The most comprehensive online learning library for Microsoft developers > >> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > >> Metro Style Apps, more. Free future releases when you subscribe now! > >> http://p.sf.net/sfu/learndevnow-dev2 > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > > ------------------------------------------------------------------------------ > > Try before you buy = See our experts in action! > > The most comprehensive online learning library for Microsoft developers > > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > > Metro Style Apps, more. Free future releases when you subscribe now! > > http://p.sf.net/sfu/learndevnow-dev2 > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > -- > View this message in context: > http://old.nabble.com/How-to-create-simple-applet--tp33185455p33190224.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From abbat.81 at ...787... Mon Jan 23 21:14:08 2012 From: abbat.81 at ...787... (abbat) Date: Mon, 23 Jan 2012 12:14:08 -0800 (PST) Subject: [Gambas-user] How to create simple applet? In-Reply-To: References: <33185455.post@...1379...> <33189838.post@...1379...> <33190224.post@...1379...> Message-ID: <33190761.post@...1379...> I hope he is interested in this function. Thanks for support. Peter. Jussi Lahtinen wrote: > > OK, now think I understand what you mean... You want to make LXPanel > plugin. > I rechecked the link you send. I'm not sure you can do that with Gambas. > > Trayicon shows only small icon, so I don't think you can reasonably fit > text to it, > but you can put text to tooltip of that icon. Maybe it is the second best > option. > > Another option is that you write that functionality with C, but that's not > rookie project. > > Maybe Benoit is interested in make native Gambas functions for this... > > Jussi > > > > > On Mon, Jan 23, 2012 at 20:52, abbat wrote: > >> >> >> I mean a time-text near that icon. >> I need send my text near that icon, like time shows on panel, not pop-up >> >> >> Jussi Lahtinen wrote: >> > >> > Do you mean trayicon? >> > http://gambasdoc.org/help/comp/gb.qt4/trayicon?v3 >> > >> > Jussi >> > >> > >> > >> > On Mon, Jan 23, 2012 at 19:59, abbat wrote: >> > >> >> >> >> >> >> I need applet on label which would be situated near time-applet on >> >> LXPanel. >> >> Sorry, I'm not professional, I tried to understand this manual: >> >> http://home.student.utwente.nl/j.vanderhoff/LXPanel_HowTo.html >> >> but I could not translate it to Gambas. >> >> >> >> I just asked a example of such applet on Gambas to modify it, if it >> >> possible. >> >> >> >> Thanks, >> >> Peter >> >> >> >> >> >> Jussi Lahtinen wrote: >> >> > >> >> > Reason for why I haven't answer, is, I don't quite understand what >> you >> >> > want >> >> > to know. >> >> > If you can start Gambas IDE, there shouldn't be any problems to >> create >> >> > just >> >> > an some applet. >> >> > >> >> > Where do you need this text? In form title? To a label? >> >> > What is the problem exactly? >> >> > >> >> > Jussi >> >> > >> >> > >> >> > >> >> > On Mon, Jan 23, 2012 at 02:10, abbat wrote: >> >> > >> >> >> >> >> >> How to create simple applet with text? >> >> >> >> >> >> Thanks >> >> >> -- >> >> >> View this message in context: >> >> >> >> >> >> http://old.nabble.com/How-to-create-simple-applet--tp33185455p33185455.html >> >> >> Sent from the gambas-user mailing list archive at Nabble.com. >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> ------------------------------------------------------------------------------ >> >> >> Try before you buy = See our experts in action! >> >> >> The most comprehensive online learning library for Microsoft >> >> developers >> >> >> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, >> >> MVC3, >> >> >> Metro Style Apps, more. Free future releases when you subscribe >> now! >> >> >> http://p.sf.net/sfu/learndevnow-dev2 >> >> >> _______________________________________________ >> >> >> Gambas-user mailing list >> >> >> Gambas-user at lists.sourceforge.net >> >> >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> >> >> > >> >> >> ------------------------------------------------------------------------------ >> >> > Try before you buy = See our experts in action! >> >> > The most comprehensive online learning library for Microsoft >> developers >> >> > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, >> >> MVC3, >> >> > Metro Style Apps, more. Free future releases when you subscribe now! >> >> > http://p.sf.net/sfu/learndevnow-dev2 >> >> > _______________________________________________ >> >> > Gambas-user mailing list >> >> > Gambas-user at lists.sourceforge.net >> >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> > >> >> > >> >> >> >> -- >> >> View this message in context: >> >> >> http://old.nabble.com/How-to-create-simple-applet--tp33185455p33189838.html >> >> Sent from the gambas-user mailing list archive at Nabble.com. >> >> >> >> >> >> >> >> >> ------------------------------------------------------------------------------ >> >> Try before you buy = See our experts in action! >> >> The most comprehensive online learning library for Microsoft >> developers >> >> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, >> MVC3, >> >> Metro Style Apps, more. Free future releases when you subscribe now! >> >> http://p.sf.net/sfu/learndevnow-dev2 >> >> _______________________________________________ >> >> Gambas-user mailing list >> >> Gambas-user at lists.sourceforge.net >> >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> > >> ------------------------------------------------------------------------------ >> > Try before you buy = See our experts in action! >> > The most comprehensive online learning library for Microsoft developers >> > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, >> MVC3, >> > Metro Style Apps, more. Free future releases when you subscribe now! >> > http://p.sf.net/sfu/learndevnow-dev2 >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > >> > >> >> -- >> View this message in context: >> http://old.nabble.com/How-to-create-simple-applet--tp33185455p33190224.html >> Sent from the gambas-user mailing list archive at Nabble.com. >> >> >> >> ------------------------------------------------------------------------------ >> Try before you buy = See our experts in action! >> The most comprehensive online learning library for Microsoft developers >> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, >> Metro Style Apps, more. Free future releases when you subscribe now! >> http://p.sf.net/sfu/learndevnow-dev2 >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://old.nabble.com/How-to-create-simple-applet--tp33185455p33190761.html Sent from the gambas-user mailing list archive at Nabble.com. From ekimtrah at ...67... Mon Jan 23 23:16:27 2012 From: ekimtrah at ...67... (ekimtrah) Date: Mon, 23 Jan 2012 14:16:27 -0800 (PST) Subject: [Gambas-user] Out of Memory Error In-Reply-To: <33185400.post@...1379...> References: <33185400.post@...1379...> Message-ID: <33191569.post@...1379...> ekimtrah wrote: > > It runs out of memory in the RemoveBetween function on the web page in the > code but not on other Web Pages. > I found the problem, had to change WHILE (StartStrPos > 0) to WHILE (StartStrPos > 0) AND (EndStrPos > StartStrPos) There is a tag at the end of that page I was loading that has no end ">" -- View this message in context: http://old.nabble.com/Out-of-Memory-Error-tp33185400p33191569.html Sent from the gambas-user mailing list archive at Nabble.com. From rmorgan62 at ...626... Tue Jan 24 06:02:38 2012 From: rmorgan62 at ...626... (Randall Morgan) Date: Mon, 23 Jan 2012 21:02:38 -0800 Subject: [Gambas-user] curve fitting library ? In-Reply-To: <6952479.ItGBChLA8t@...46...> References: <2019610.XWL4lkhpvt@...46...> <6952479.ItGBChLA8t@...46...> Message-ID: Wally, I've been looking at the GSL and Gambas C/C++ components. I'm thinking we can create a gsl component in C. I'm playing around with that idea now. If I can get some simple examples working then I know I can get more advanced things working. Writing a C based component should make life a little easier. On Mon, Jan 23, 2012 at 10:58 AM, Wally wrote: > Rqandall, > > let us listen Marcin first. Maybe he has some interesting informations. > In fityk i found that the favourie mehtod is "chi squares method". > > Gsl offers this also : > ? Function: double gsl_cdf_chisq_P (double x, double nu) > ? Function: double gsl_cdf_chisq_Q (double x, double nu) > ? Function: double gsl_cdf_chisq_Pinv (double P, double nu) > ? Function: double gsl_cdf_chisq_Qinv (double Q, double nu) > > > > > > > > On Monday, January 23, 2012 10:41:55 Randall Morgan wrote: > > Looks to me that as long as any derivative work is lincesed GPL and we > > follow it's terms we should be good to go with the fityk library. > > > > On Mon, Jan 23, 2012 at 10:18 AM, Randall Morgan >wrote: > > > Wally, > > > > > > I just found this: http://fityk.nieto.pl/intro.html#about > > > > > > If you scroll down you'll find that the fityk library is licensed under > > > the GPL 2 or later. This should allow us to create derivative works. > > > > > > Take a look at the license and I will too. > > > > > > Randall > > > > > > On Mon, Jan 23, 2012 at 10:11 AM, Randall Morgan > wrote: > > >> OK thank you. > > >> > > >> On Mon, Jan 23, 2012 at 10:09 AM, Wally wrote: > > >>> Marcin Wojdyr , author of fityk told me he will post his opinion > > >>> directlty here to the mailinglist today or tomorrow. > > >>> > > >>> On Monday, January 23, 2012 09:59:16 Randall Morgan wrote: > > >>> > Thanks, Wally. > > >>> > > > >>> > I'll go over both but get back to me once you have an answer > > >>> > from the > > >>> > author of fityk. I would still love to see a plot and GSL module > > >>> > for > > >>> > Gambas. But fityk looks like a lot less work right now. GSL has > > >>> > grown > > >>> > > >>> quite > > >>> > > >>> > a bit since I last used it. > > >>> > > > >>> > On Mon, Jan 23, 2012 at 4:29 AM, Wally wrote: > > >>> > > The spline example is member of Gambas3 examples > > >>> > > "Examples-> Drawing->GSLSpline" > > >>> > > or see attachment > > >>> > > > > >>> > > I'll try to contact the author of fityk to get his opinion > > >>> > > about what we want to do. Fityk seems more clear and easier > > >>> > > to implement. On the other hand GSL covers a much wider > > >>> > > range of functionality.>>> > > > > >>> > > On Monday, January 23, 2012 03:42:32 Randall Morgan wrote: > > >>> > > > I don't think this app is licensed OSS. So I am not sure > > >>> > > > if you can>>> > > > > >>> > > legally > > >>> > > > > >>> > > > write a module with it. The GSL or similar library is > > >>> > > > the way to > > >>> > > >>> go. > > >>> > > >>> > > > I have my plate full at the moment but I will try to > > >>> > > > give you as > > >>> > > > much guidance as I can. Be forewarned I too am still > > >>> > > > learning. Give me a day or two to go over the GSL and > > >>> > > > then we'll see what we can get done. > > >>> > > > > > >>> > > > send me your demo of the spline as well. > > >>> > > > > > >>> > > > On Mon, Jan 23, 2012 at 3:29 AM, Wally > wrote: > > >>> > > > > Randall, Benoit > > >>> > > > > > > >>> > > > > this example, using the spline stuff from the GSL is > > >>> > > > > one of the > > >>> > > > > most > > >>> > > > > simple functions in GSL. All the intersting rest is > > >>> > > > > much more > > >>> > > > > confusing. > > >>> > > > > > > >>> > > > > Have a look how easy fityk doing a peakfind on very > > >>> > > > > noisy data: > > >>> > > > > (not sure the mailinglist allow me to attach > > >>> > > > > screenshots ) > > >>> > > > > honmepage: fityk.nieto.pl > > >>> > > > > > > >>> > > > > On the other hand this fityk is not really free > > >>> > > > > opensource i > > >>> > > > > think. > > >>> > > > > > > >>> > > > > But here is a code example of guessing gaussian peak > > >>> > > > > from a > > >>> > > > > clean exp function: > > >>> > > > > > > >>> > > > > #include > > >>> > > > > #include > > >>> > > > > > > >>> > > > > #include > > >>> > > > > > > >>> > > > > using namespace std; > > >>> > > > > using namespace fityk; > > >>> > > > > > > >>> > > > > int main() > > >>> > > > > { > > >>> > > > > > > >>> > > > > Fityk *f = new Fityk; > > >>> > > > > cout << f->get_info("version", true) << endl; > > >>> > > > > cout << "ln(2) = " << > > >>> > > > > f->calculate_expr("ln(2)") << endl; > > >>> > > > > const double mu = 12.345; > > >>> > > > > for (int i = 0; i != 500; ++i) { > > >>> > > > > > > >>> > > > > double x = i / 100. + 10; > > >>> > > > > double y = ceil(100 * > > >>> > > > > exp(-(x-mu)*(x-mu)/2)); > > >>> > > > > f->add_point(x, y, sqrt(y)); > > >>> > > > > > > >>> > > > > } > > >>> > > > > f->execute("Y = randnormal(y, s)"); > > >>> > > > > f->execute("guess %gauss = Gaussian"); > > >>> > > > > f->execute("fit"); > > >>> > > > > cout << "peak center: " << > > >>> > > > > f->calculate_expr("%gauss.Center") << > > >>> > > > > endl; > > >>> > > > > delete f; > > >>> > > > > return 0; > > >>> > > > > > > >>> > > > > } > > >>> > > > > > > >>> > > > > output: > > >>> > > > > > > >>> > > > > Fityk 0.9.8 > > >>> > > > > ln(2) = 0.693147 > > >>> > > > > peak center: 12.3485 > > >>> > > > > > > >>> > > > > So ithink an implematation of GSL (or similar, maybe > > >>> > > > > gnuplot)) > > >>> > > > > would be great - but i'm not able to do it without > > >>> > > > > help. > > >>> > > > > > > >>> > > > > On Monday, January 23, 2012 03:06:29 Randall Morgan wrote: > > >>> > > > > > You must be familiar with C at some level? I'd > > >>> > > > > > be surprised > > >>> > > > > > if the > > >>> > > > > > GSL > > >>> > > > > > doesn't already have a C wrapper somewhere. I > > >>> > > > > > haven't used > > >>> > > > > > it in > > >>> > > > > > many > > >>> > > > > > > >>> > > > > years > > >>> > > > > > > >>> > > > > > so I can't recall, and I am sure it has changed. > > >>> > > > > > It sounds > > >>> > > > > > like > > >>> > > > > > you've > > >>> > > > > > already got a start. So you just need to invest > > >>> > > > > > more time > > >>> > > > > > into > > >>> > > > > > porting > > >>> > > > > > > >>> > > > > GSL > > >>> > > > > > > >>> > > > > > to Gambas. > > >>> > > > > > > > >>> > > > > > On Mon, Jan 23, 2012 at 2:59 AM, Wally > > >>> > > > > > > > >>> > > >>> wrote: > > >>> > > > > > > On Monday, January 23, 2012 11:47:47 Beno?t Minisini > wrote: > > >>> > > > > > > > Le 22/01/2012 09:54, Wally a ?crit : > > >>> > > > > > > > > Does anyone have experience with > > >>> > > > > > > > > curve fitting > > >>> > > > > > > > > and/or > > >>> > > > > > > > > peakfinding > > >>> > > > > > > > > using gambas ? (e.g. example > > >>> > > > > > > > > code) > > >>> > > > > > > > > > > >>> > > > > > > > > Is there a plain C library (Linux) > > >>> > > > > > > > > known, > > >>> > > > > > > > > suitable to > > >>> > > > > > > > > this > > >>> > > > > > > > > problem > > >>> > > > > > > > > and gambas ? > > >>> > > > > > > > > > > >>> > > > > > > > > Something like "fityk" (which is > > >>> > > > > > > > > written in C++) > > >>> > > > > > > > > but > > >>> > > > > > > > > written in > > >>> > > > > > > > > plain C to use with "EXTERN" > > >>> > > > > > > > > > > >>> > > > > > > > > I might wrap the fityk C++ or try > > >>> > > > > > > > > Gnu Scientific > > >>> > > > > > > > > Library, but > > >>> > > > > > > > > i'm still searching for > > >>> > > > > > > > > alternatives. > > >>> > > > > > > > > > > >>> > > > > > > > > wally > > >>> > > > > > > > > > >>> > > > > > > > There is a GSLSpline example provided > > >>> > > > > > > > with Gambas. > > >>> > > > > > > > Does it > > >>> > > > > > > > help? > > >>> > > > > > > > > >>> > > > > > > I did this example :) > > >>> > > >>> -------------------------------------------------------------------- > > >>> ---->>> > > >>> > > > > > > ------ Try before you buy = See our experts > > >>> > > > > > > in action! > > >>> > > > > > > The most comprehensive online learning > > >>> > > > > > > library for > > >>> > > > > > > Microsoft > > >>> > > > > > > developers is just $99.99! Visual Studio, > > >>> > > > > > > SharePoint, > > >>> > > > > > > SQL - > > >>> > > > > > > plus HTML5, CSS3,> > > >>> > > > > > > >>> > > > > MVC3, > > >>> > > > > > > >>> > > > > > > Metro Style Apps, more. Free future releases > > >>> > > > > > > when you > > >>> > > > > > > subscribe > > >>> > > > > > > now! > > >>> > > > > > > http://p.sf.net/sfu/learndevnow-dev2 > > >>> > > > > > > ____________________________________________ > > >>> > > > > > > ___ > > >>> > > > > > > Gambas-user mailing list > > >>> > > > > > > Gambas-user at lists.sourceforge.net > > >>> > > > > > > https://lists.sourceforge.net/lists/listinfo > > >>> > > > > > > /gambas-user > > >>> > > >>> -------------------------------------------------------------------- > > >>> ---->>> > > >>> > > > > ------ Try before you buy = See our experts in > > >>> > > > > action! > > >>> > > > > The most comprehensive online learning library for > > >>> > > > > Microsoft > > >>> > > > > developers is just $99.99! Visual Studio, > > >>> > > > > SharePoint, SQL - > > >>> > > > > plus HTML5, CSS3,> > > >>> > > > > >>> > > MVC3, > > >>> > > > > >>> > > > > Metro Style Apps, more. Free future releases when > > >>> > > > > you subscribe > > >>> > > > > now! > > >>> > > > > http://p.sf.net/sfu/learndevnow-dev2 > > >>> > > > > _______________________________________________ > > >>> > > > > Gambas-user mailing list > > >>> > > > > Gambas-user at lists.sourceforge.net > > >>> > > > > https://lists.sourceforge.net/lists/listinfo/gambas- > > >>> > > > > user > > >>> > > >>> -------------------------------------------------------------------- > > >>> ---->>> > > >>> > > ------ Try before you buy = See our experts in action! > > >>> > > The most comprehensive online learning library for Microsoft > > >>> > > >>> developers > > >>> > > >>> > > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, > > >>> > > CSS3, > > >>> > > >>> MVC3, > > >>> > > >>> > > Metro Style Apps, more. Free future releases when you > > >>> > > subscribe now! http://p.sf.net/sfu/learndevnow-dev2 > > >>> > > _______________________________________________ > > >>> > > Gambas-user mailing list > > >>> > > Gambas-user at lists.sourceforge.net > > >>> > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > >>> > > >>> -------------------------------------------------------------------- > > >>> ---------- Try before you buy = See our experts in action! > > >>> The most comprehensive online learning library for Microsoft > > >>> developers > > >>> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, > > >>> MVC3, Metro Style Apps, more. Free future releases when you > > >>> subscribe now! http://p.sf.net/sfu/learndevnow-dev2 > > >>> _______________________________________________ > > >>> Gambas-user mailing list > > >>> Gambas-user at lists.sourceforge.net > > >>> https://lists.sourceforge.net/lists/listinfo/gambas-user > > >> > > >> -- > > >> If you ask me if it can be done. The answer is YES, it can always be > > >> done. The correct questions however are... What will it cost, and how > > >> long will it take? > > > > > > -- > > > If you ask me if it can be done. The answer is YES, it can always be > > > done. The correct questions however are... What will it cost, and how > > > long will it take? > > > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- If you ask me if it can be done. The answer is YES, it can always be done. The correct questions however are... What will it cost, and how long will it take? From afroehlke at ...784... Wed Jan 25 16:08:20 2012 From: afroehlke at ...784... (=?iso-8859-1?Q?Andreas_Fr=F6hlke?=) Date: Wed, 25 Jan 2012 16:08:20 +0100 Subject: [Gambas-user] (no subject) Message-ID: <8D42310D957CFB46AA11921A711D4D16057DB6BF9D@...1899...> Hi Beno?t, we're using gambas about 6 years. Now we take a look at gambas3 and have two questions: 1. Why did you make the spacing property of a container to a boolean, instead of leaving it as an integer? It's really frustrating, that we can't set the space between textboxes to 1 pixel automatically (by using arrangement), without changing the whole font-size of the system. If there's a user who has problems with his eyes and set the system font higher, the space between textboxes (and other controls) will get really big, so some formulars are no longer displayable on his screen. There would a big space loss. 2. If we set the space between textboxes by code to 1 pixel and set the border property to none, it looks like the space between the textboxes iss et to 7 pixel. This is because the border in gambas3 just turns to transparent. This issue doesn't exist in gambas1 and gambas2. Here the textboxes "resize" to fit to the border, when the border is set to none. Here we have to rewrite each arrangement function to manage this. Do you see any chance to change these things? Regards Andreas From gambas at ...1... Wed Jan 25 17:20:53 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Wed, 25 Jan 2012 17:20:53 +0100 Subject: [Gambas-user] (no subject) In-Reply-To: <8D42310D957CFB46AA11921A711D4D16057DB6BF9D@...1899...> References: <8D42310D957CFB46AA11921A711D4D16057DB6BF9D@...1899...> Message-ID: <4F202BE5.7090002@...1...> Le 25/01/2012 16:08, Andreas Fr?hlke a ?crit : > Hi Beno?t, > > > > we're using gambas about 6 years. Now we take a look at gambas3 and have two questions: > > > > 1. Why did you make the spacing property of a container to a boolean, instead of leaving it as an integer? It's really frustrating, that we can't set the space between textboxes to 1 pixel automatically (by using arrangement), without changing the whole font-size of the system. > > If there's a user who has problems with his eyes and set the system font higher, the space between textboxes (and other controls) will get really big, so some formulars are no longer displayable on his screen. There would a big space loss. > > > > 2. If we set the space between textboxes by code to 1 pixel and set the border property to none, it looks like the space between the textboxes iss et to 7 pixel. This is because the border in gambas3 just turns to transparent. This issue doesn't exist in gambas1 and gambas2. Here the textboxes "resize" to fit to the border, when the border is set to none. Here we have to rewrite each arrangement function to manage this. > > > > Do you see any chance to change these things? > > Regards > > Andreas > 1) Spacing and Margin are Desktop.Scale pixels, unless you specify that number of pixels in the Padding property. So set Padding to 1. When you have such problems with the changes in these properties, it usually means that your forms are too complex. 2) I don't understand what you are talking about at all. Send a screenshot, give information about your system, and check that it does not depend on your widget theme. Regards, -- Beno?t Minisini From tobiasboe1 at ...20... Thu Jan 26 00:01:00 2012 From: tobiasboe1 at ...20... (tobias) Date: Thu, 26 Jan 2012 00:01:00 +0100 Subject: [Gambas-user] DragNDrop example and drop file problem Message-ID: <4F2089AC.5030101@...20...> hi, i have rev #4413 installed and quickly ran svn update for 4420 and haven't seen any changes related to the following (it's too late for me now to compile on this slow machine): i just checked out DragNDrop exmaple and it seems that TreeView.Find()s should be replaced by TreeView.FindAt()s. that's the first so far... second, i wonder why i can't get dropping files dragged from my desktop working. i saw a topic on the mailing list in which that was no problem. i have set TreeView.Drop = True and expected things to work. is there any voodoo i missed? in case you need it: using kubuntu 11.04, KDE4 and: [Libraries] Qt4=libQtCore.so.4.7.2 GTK+=libgtk-x11-2.0.so.0.2400.4 regards, tobi From bespalov.av at ...626... Thu Jan 26 05:58:27 2012 From: bespalov.av at ...626... (=?KOI8-R?B?4czFy9PFyiDixdPQwczP1w==?=) Date: Thu, 26 Jan 2012 10:58:27 +0600 Subject: [Gambas-user] On-Off Visible DrawingArea. Bag? In-Reply-To: References: Message-ID: Hi! Please see the example. I am Draw the image in DrawingArea. After doing this DrawingArea1.Visible = False. Picture not visible. After DrawingArea1.Visible = True, the picture not see until you do scrolling. DrawingArea1.Refresh ScrollView1.Refresh do not help. This is a bug? -- ____ Alexey. -------------- next part -------------- A non-text attachment was scrubbed... Name: ImageTest.tar.gz Type: application/x-gzip Size: 6156 bytes Desc: not available URL: From jussi.lahtinen at ...626... Thu Jan 26 17:43:24 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 26 Jan 2012 18:43:24 +0200 Subject: [Gambas-user] ARRAYS - Filling with data Message-ID: For some reason this post didn't appear to my email, it's only visible in nabble ( http://old.nabble.com/gambas-user-f3427.html ). Anyone knows why? And the answer to the post, perhaps this way: DIM Walls AS NEW Integer[] Walls.Insert([38, 150, 38, 80, 38, 80, 180, 80, 180, 80, 180, 150, 180, 150, 38, 150]) Walls.Insert([38, 112, 75, 112, 75, 112, 75, 80, 150, 80, 150, 107, 130, 80, 130, 107]) Walls.Insert([108, 80, 108, 92, 90, 92, 110, 92, 110, 92, 110, 107, 110, 107, 180, 107]) Walls.Insert([90, 80, 90, 92, 90, 112, 90, 150, 120, 150, 120, 118, 120, 118, 145, 118]) Walls.Insert([145, 150, 145, 115, 145, 115, 180, 115]) http://gambasdoc.org/help/comp/gb/integer%5B%5D/insert For 2D arrays, I don't know! Why you don't want to load the data from file? The file can be put inside the exec (/Data), so you don't have create separated file nor you have to extract it from there. Jussi From rospolosco at ...152... Thu Jan 26 18:39:34 2012 From: rospolosco at ...152... (Stefano Palmeri) Date: Thu, 26 Jan 2012 18:39:34 +0100 Subject: [Gambas-user] testing my account Message-ID: <201201261839.34437.rospolosco@...152...> testing my account From emil.lenngren at ...626... Thu Jan 26 18:49:06 2012 From: emil.lenngren at ...626... (Emil Lenngren) Date: Thu, 26 Jan 2012 18:49:06 +0100 Subject: [Gambas-user] ARRAYS - Filling with data In-Reply-To: References: Message-ID: There is currently no simple way to assign values to a multi-dimensional array. The only way is to assign one element at a time: arr[0, 1] = 3 arr[0, 2] = 4 and so on. You can get around this by having a Integer[][] instead, or simply use a single-dimensional array but do the position calculation yourself (index = y*rowsize + x). /Emil 2012/1/26 Jussi Lahtinen > For some reason this post didn't appear to my email, it's only visible in > nabble ( http://old.nabble.com/gambas-user-f3427.html ). > Anyone knows why? > > > And the answer to the post, perhaps this way: > > DIM Walls AS NEW Integer[] > > Walls.Insert([38, 150, 38, 80, 38, 80, 180, 80, 180, 80, 180, 150, 180, > 150, 38, 150]) > Walls.Insert([38, 112, 75, 112, 75, 112, 75, 80, 150, 80, 150, 107, 130, > 80, 130, 107]) > Walls.Insert([108, 80, 108, 92, 90, 92, 110, 92, 110, 92, 110, 107, 110, > 107, 180, 107]) > Walls.Insert([90, 80, 90, 92, 90, 112, 90, 150, 120, 150, 120, 118, 120, > 118, 145, 118]) > Walls.Insert([145, 150, 145, 115, 145, 115, 180, 115]) > > http://gambasdoc.org/help/comp/gb/integer%5B%5D/insert > > For 2D arrays, I don't know! > > Why you don't want to load the data from file? > The file can be put inside the exec (/Data), so you don't have create > separated file nor you have to extract it from there. > > > Jussi > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From imageek247 at ...626... Thu Jan 26 19:05:46 2012 From: imageek247 at ...626... (Christian DaGeek247 Stephens) Date: Thu, 26 Jan 2012 12:05:46 -0600 Subject: [Gambas-user] Gambas3 and ubuntu repositories Message-ID: *Hey, when will gambas3 be available on the ubuntu repositories? Or is there another repository that I can add to my repo list in ubuntu to get it? * -- *If a packet hits a pocket on a socket on a port,* *and the bus is interrupted as a very last resort,* *and the address of the memory makes your floppy disk abort,* *then the socket packet pocket has an error to report! * * * * **DaGeek247 of http://dageek247.tk/* From mohareve at ...626... Thu Jan 26 20:15:56 2012 From: mohareve at ...626... (M. Cs.) Date: Thu, 26 Jan 2012 20:15:56 +0100 Subject: [Gambas-user] Gambas3 and ubuntu repositories In-Reply-To: References: Message-ID: deb http://ppa.launchpad.net/nemh/gambas3/ubuntu oneiric main 2012/1/26, Christian DaGeek247 Stephens : > *Hey, when will gambas3 be available on the ubuntu repositories? Or is > there another repository that I can add to my repo list in ubuntu to get it? > * > > -- > *If a packet hits a pocket on a socket on a port,* > *and the bus is interrupted as a very last resort,* > *and the address of the memory makes your floppy disk abort,* > *then the socket packet pocket has an error to report! * > * > * > * **DaGeek247 of http://dageek247.tk/* > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Thu Jan 26 21:08:27 2012 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 26 Jan 2012 21:08:27 +0100 Subject: [Gambas-user] ARRAYS - Filling with data In-Reply-To: References: Message-ID: use an external file... 2012/1/26 Emil Lenngren : > There is currently no simple way to assign values to a multi-dimensional > array. > The only way is to assign one element at a time: > arr[0, 1] = 3 > arr[0, 2] = 4 > and so on. > You can get around this by having a Integer[][] instead, or simply use a > single-dimensional array but do the position calculation yourself (index = > y*rowsize + x). > > /Emil > > 2012/1/26 Jussi Lahtinen > >> For some reason this post didn't appear to my email, it's only visible in >> nabble ( http://old.nabble.com/gambas-user-f3427.html ). >> Anyone knows why? >> >> >> And the answer to the post, perhaps this way: >> >> DIM Walls AS NEW Integer[] >> >> Walls.Insert([38, 150, 38, 80, 38, 80, 180, 80, 180, 80, 180, 150, 180, >> 150, 38, 150]) >> Walls.Insert([38, 112, 75, 112, 75, 112, 75, 80, 150, 80, 150, 107, 130, >> 80, 130, 107]) >> Walls.Insert([108, 80, 108, 92, 90, 92, 110, 92, 110, 92, 110, 107, 110, >> 107, 180, 107]) >> Walls.Insert([90, 80, 90, 92, 90, 112, 90, 150, 120, 150, 120, 118, 120, >> 118, 145, 118]) >> Walls.Insert([145, 150, 145, 115, 145, 115, 180, 115]) >> >> http://gambasdoc.org/help/comp/gb/integer%5B%5D/insert >> >> For 2D arrays, I don't know! >> >> Why you don't want to load the data from file? >> The file can be put inside the exec (/Data), so you don't have create >> separated file nor you have to extract it from there. >> >> >> Jussi >> >> ------------------------------------------------------------------------------ >> Keep Your Developer Skills Current with LearnDevNow! >> The most comprehensive online learning library for Microsoft developers >> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, >> Metro Style Apps, more. Free future releases when you subscribe now! >> http://p.sf.net/sfu/learndevnow-d2d >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard From gambas at ...2524... Thu Jan 26 22:43:37 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 26 Jan 2012 21:43:37 +0000 Subject: [Gambas-user] Issue 188 in gambas: Creating a new directory in the data project data causes a seg. fault In-Reply-To: <3-6813199134517018827-7699354405385977273-gambas=googlecode.com@...2524...> References: <3-6813199134517018827-7699354405385977273-gambas=googlecode.com@...2524...> <0-6813199134517018827-7699354405385977273-gambas=googlecode.com@...2524...> Message-ID: <4-6813199134517018827-7699354405385977273-gambas=googlecode.com@...2524...> Comment #4 on issue 188 by zachsmit... at ...626...: Creating a new directory in the data project data causes a seg. fault http://code.google.com/p/gambas/issues/detail?id=188 Here it is. GNU gdb (GDB) 7.3.1 Copyright (C) 2011 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-unknown-linux-gnu". For bug reporting instructions, please see: ... Reading symbols from /usr/bin/gbx3...(no debugging symbols found)...done. (gdb) run Starting program: /usr/bin/gbx3 [Thread debugging using libthread_db enabled] gb.qt4: warning: unable to load Qt translation: en_US.UTF-8 [New Thread 0x7fffe04a2700 (LWP 12128)] [New Thread 0x7fffdfb89700 (LWP 12129)] Program received signal SIGSEGV, Segmentation fault. 0x00007ffff4f701ce in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4 (gdb) bt #0 0x00007ffff4f701ce in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4 Cannot access memory at address 0x7fffffffcc48 Attachments: valgrind.out 59.9 KB From gambas at ...2524... Thu Jan 26 23:35:04 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 26 Jan 2012 22:35:04 +0000 Subject: [Gambas-user] Issue 188 in gambas: Creating a new directory in the data project data causes a seg. fault In-Reply-To: <4-6813199134517018827-7699354405385977273-gambas=googlecode.com@...2524...> References: <4-6813199134517018827-7699354405385977273-gambas=googlecode.com@...2524...> <0-6813199134517018827-7699354405385977273-gambas=googlecode.com@...2524...> Message-ID: <5-6813199134517018827-7699354405385977273-gambas=googlecode.com@...2524...> Comment #5 on issue 188 by benoit.m... at ...626...: Creating a new directory in the data project data causes a seg. fault http://code.google.com/p/gambas/issues/detail?id=188 Please can you do that again, but by compiling gambas with no optimization and debugging information enabled? From gambas at ...2524... Thu Jan 26 23:39:06 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 26 Jan 2012 22:39:06 +0000 Subject: [Gambas-user] Issue 188 in gambas: Creating a new directory in the data project data causes a seg. fault In-Reply-To: <5-6813199134517018827-7699354405385977273-gambas=googlecode.com@...2524...> References: <5-6813199134517018827-7699354405385977273-gambas=googlecode.com@...2524...> <0-6813199134517018827-7699354405385977273-gambas=googlecode.com@...2524...> Message-ID: <6-6813199134517018827-7699354405385977273-gambas=googlecode.com@...2524...> Comment #6 on issue 188 by benoit.m... at ...626...: Creating a new directory in the data project data causes a seg. fault http://code.google.com/p/gambas/issues/detail?id=188 Moreover, according to valgrind, there are big problems in the widget style you use, but I don't know if that is the cause of the crash. From abbat.81 at ...787... Fri Jan 27 00:13:13 2012 From: abbat.81 at ...787... (abbat) Date: Thu, 26 Jan 2012 15:13:13 -0800 (PST) Subject: [Gambas-user] activate/deactivate Alt-Tab function Message-ID: <33211091.post@...1379...> Is it possible to activate or deactivate Alt-Tab function in Gambas? Thanks -- View this message in context: http://old.nabble.com/activate-deactivate-Alt-Tab-function-tp33211091p33211091.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...2524... Fri Jan 27 00:27:33 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 26 Jan 2012 23:27:33 +0000 Subject: [Gambas-user] Issue 188 in gambas: Creating a new directory in the data project data causes a seg. fault In-Reply-To: <6-6813199134517018827-7699354405385977273-gambas=googlecode.com@...2524...> References: <6-6813199134517018827-7699354405385977273-gambas=googlecode.com@...2524...> <0-6813199134517018827-7699354405385977273-gambas=googlecode.com@...2524...> Message-ID: <7-6813199134517018827-7699354405385977273-gambas=googlecode.com@...2524...> Comment #7 on issue 188 by zachsmit... at ...626...: Creating a new directory in the data project data causes a seg. fault http://code.google.com/p/gambas/issues/detail?id=188 To compile without optimization do I use this? make "CFLAGS=-O0 -g" "CXXFLAGS=-O0 -g" How do I enable debugging information? From gambas at ...1... Fri Jan 27 00:29:44 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Fri, 27 Jan 2012 00:29:44 +0100 Subject: [Gambas-user] DragNDrop example and drop file problem In-Reply-To: <4F2089AC.5030101@...20...> References: <4F2089AC.5030101@...20...> Message-ID: <4F21E1E8.8060203@...1...> Le 26/01/2012 00:01, tobias a ?crit : > hi, > > i have rev #4413 installed and quickly ran svn update for 4420 and > haven't seen any changes related to the following (it's too late for me > now to compile on this slow machine): > i just checked out DragNDrop exmaple and it seems that TreeView.Find()s > should be replaced by TreeView.FindAt()s. > that's the first so far... OK, this is fixed in revision #4421. > > second, i wonder why i can't get dropping files dragged from my desktop > working. i saw a topic on the mailing list in which that was no problem. > i have set TreeView.Drop = True and expected things to work. is there > any voodoo i missed? in case you need it: I need more explanation. Please provide a project and tell me what it should do and what it does instead. Regards, -- Beno?t Minisini From gambas at ...2524... Fri Jan 27 00:50:50 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 26 Jan 2012 23:50:50 +0000 Subject: [Gambas-user] Issue 15 in gambas: Bugs gtk component. In-Reply-To: <3-6813199134517018827-2348850762639234993-gambas=googlecode.com@...2524...> References: <3-6813199134517018827-2348850762639234993-gambas=googlecode.com@...2524...> <0-6813199134517018827-2348850762639234993-gambas=googlecode.com@...2524...> Message-ID: <4-6813199134517018827-2348850762639234993-gambas=googlecode.com@...2524...> Updates: Status: WontFix Comment #4 on issue 15 by benoit.m... at ...626...: Bugs gtk component. http://code.google.com/p/gambas/issues/detail?id=15 No news from one year, I close the issue! From gambas at ...2524... Fri Jan 27 01:13:03 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 27 Jan 2012 00:13:03 +0000 Subject: [Gambas-user] Issue 188 in gambas: Creating a new directory in the data project data causes a seg. fault In-Reply-To: <7-6813199134517018827-7699354405385977273-gambas=googlecode.com@...2524...> References: <7-6813199134517018827-7699354405385977273-gambas=googlecode.com@...2524...> <0-6813199134517018827-7699354405385977273-gambas=googlecode.com@...2524...> Message-ID: <8-6813199134517018827-7699354405385977273-gambas=googlecode.com@...2524...> Comment #8 on issue 188 by zachsmit... at ...626...: Creating a new directory in the data project data causes a seg. fault http://code.google.com/p/gambas/issues/detail?id=188 (gdb) run Starting program: /usr/bin/gbx3 [Thread debugging using libthread_db enabled] gb.qt4: warning: unable to load Qt translation: en_US.UTF-8 [New Thread 0x7fffe043a700 (LWP 11172)] [New Thread 0x7fffdfb21700 (LWP 11173)] Program received signal SIGSEGV, Segmentation fault. 0x00007ffff4f361ce in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4 (gdb) bt #0 0x00007ffff4f361ce in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4 #1 0x00007ffff545681f in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4 #2 0x00007ffff545bd9e in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4 #3 0x00007ffff4f360ac in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4 #4 0x00007ffff54f5e09 in ?? () from /usr/lib/libQtGui.so.4 #5 0x00007ffff54f627b in ?? () from /usr/lib/libQtGui.so.4 #6 0x00007ffff54d2584 in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib/libQtGui.so.4 #7 0x00007ffff54fa292 in ?? () from /usr/lib/libQtGui.so.4 #8 0x00007ffff3b8484d in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0 #9 0x00007ffff3b85048 in ?? () from /usr/lib/libglib-2.0.so.0 #10 0x00007ffff3b85219 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0 #11 0x00007ffff4f650ff in QEventDispatcherGlib::processEvents(QFlags) () from /usr/lib/libQtCore.so.4 #12 0x00007ffff54f9f1e in ?? () from /usr/lib/libQtGui.so.4 #13 0x00007ffff4f34e92 in QEventLoop::processEvents(QFlags) () from /usr/lib/libQtCore.so.4 #14 0x00007ffff4f350e7 in QEventLoop::exec(QFlags) () from /usr/lib/libQtCore.so.4 #15 0x00007ffff4f39c45 in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4 #16 0x00007ffff6c684a8 in ?? () from /usr/lib/gambas3/gb.qt4.so #17 0x000000000043e99f in ?? () #18 0x00007ffff713d38d in __libc_start_main () from /lib/libc.so.6 #19 0x0000000000403f49 in ?? () #20 0x00007fffffffe268 in ?? () #21 0x00000000ffffffff in ?? () #22 0x0000000000000001 in ?? () #23 0x0000000000687460 in ?? () #24 0x0000000000000000 in ?? () From gambas at ...2524... Fri Jan 27 01:19:06 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 27 Jan 2012 00:19:06 +0000 Subject: [Gambas-user] Issue 188 in gambas: Creating a new directory in the data project data causes a seg. fault In-Reply-To: <8-6813199134517018827-7699354405385977273-gambas=googlecode.com@...2524...> References: <8-6813199134517018827-7699354405385977273-gambas=googlecode.com@...2524...> <0-6813199134517018827-7699354405385977273-gambas=googlecode.com@...2524...> Message-ID: <9-6813199134517018827-7699354405385977273-gambas=googlecode.com@...2524...> Comment #9 on issue 188 by benoit.m... at ...626...: Creating a new directory in the data project data causes a seg. fault http://code.google.com/p/gambas/issues/detail?id=188 What do you get from valgrind? And yes, 'make "CFLAGS=-O0 -g" "CXXFLAGS=-O0 -g"' compiles without optimization (-O0) and with debugging information enabled (-g). From gambas at ...2524... Fri Jan 27 02:04:34 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 27 Jan 2012 01:04:34 +0000 Subject: [Gambas-user] Issue 188 in gambas: Creating a new directory in the data project data causes a seg. fault In-Reply-To: <9-6813199134517018827-7699354405385977273-gambas=googlecode.com@...2524...> References: <9-6813199134517018827-7699354405385977273-gambas=googlecode.com@...2524...> <0-6813199134517018827-7699354405385977273-gambas=googlecode.com@...2524...> Message-ID: <10-6813199134517018827-7699354405385977273-gambas=googlecode.com@...2524...> Comment #10 on issue 188 by zachsmit... at ...626...: Creating a new directory in the data project data causes a seg. fault http://code.google.com/p/gambas/issues/detail?id=188 attached Attachments: valgrind.out 64.1 KB From ian.roper at ...1974... Fri Jan 27 06:08:32 2012 From: ian.roper at ...1974... (Ian Roper) Date: Fri, 27 Jan 2012 13:08:32 +0800 Subject: [Gambas-user] Editor 'Split' function is reversed In-Reply-To: <201108231549.42588.gambas@...1...> References: <4E534883.9060004@...2308...> <201108231549.42588.gambas@...1...> Message-ID: <1327640912.4062.8.camel@...2506...> Greetings, In the code editor, if you select on 'right click' Advanced - View - Horizontal Split : It splits vertically Advanced - View - Vertical Split : It splits horizontally [System] OperatingSystem=Linux Kernel=2.6.35-32-generic Architecture=i686 Memory=3609284 kB DistributionVendor=Ubuntu DistributionRelease="Ubuntu 10.10" Desktop=Gnome [Gambas 2] Version=2.21.0 Path=/usr/bin/gbx2 [Gambas 3] Version=2.99.5 Path=/usr/local/bin/gbx3 [Libraries] Qt4=libQtCore.so.4.7.0 GTK+=libgtk-x11-2.0.so.0.2200.0 Revision (r4222) Regards, Ian Roper. Perth Western Australia. From ian.roper at ...1974... Fri Jan 27 06:05:34 2012 From: ian.roper at ...1974... (Ian Roper) Date: Fri, 27 Jan 2012 13:05:34 +0800 Subject: [Gambas-user] Code Folding Issue when used with 'Format page' In-Reply-To: <201108231549.42588.gambas@...1...> References: <4E534883.9060004@...2308...> <201108231549.42588.gambas@...1...> Message-ID: <1327640734.4062.5.camel@...2506...> Greetings, I have found that if the last routine in the editor code display is 'folded' and you select the format option from a right click in the editor (or Ctl-Alt-F), then the last routine is duplicated. I have had this confirmed by another user from the Gambas forum that I belong to, so suspect it is not a 'my machine' problem. No project code supplied as this bug would be common to any project. [System] OperatingSystem=Linux Kernel=2.6.35-32-generic Architecture=i686 Memory=3609284 kB DistributionVendor=Ubuntu DistributionRelease="Ubuntu 10.10" Desktop=Gnome [Gambas 2] Version=2.21.0 Path=/usr/bin/gbx2 [Gambas 3] Version=2.99.5 Path=/usr/local/bin/gbx3 [Libraries] Qt4=libQtCore.so.4.7.0 GTK+=libgtk-x11-2.0.so.0.2200.0 Revision (r4222) Regards, Ian Roper. Perth Western Australia. From ian.roper at ...1974... Fri Jan 27 06:28:26 2012 From: ian.roper at ...1974... (Ian Roper) Date: Fri, 27 Jan 2012 13:28:26 +0800 Subject: [Gambas-user] Issues with 'double click' & Keypress events not working on some controls. In-Reply-To: <201108231549.42588.gambas@...1...> References: <4E534883.9060004@...2308...> <201108231549.42588.gambas@...1...> Message-ID: <1327642106.4062.28.camel@...2506...> Greetings, I understand that this may be a GTK / QT issue but would like to understand if there are any 'work around' that I could use. Control - Date Chooser. Control - Folder Chooser. Note # With folder chooser, a 'slow' double click allows you to edit the folder name so apparently the control is capturing the event but not passing to the Gambas event queue ( which makes sense) My requirement: I was trying to use double click or a key press to select a control item ie: to return the name of a folder or a specific date as required. Project example attached. Project was created as a 'Graphical application' project. [System] OperatingSystem=Linux Kernel=2.6.35-32-generic Architecture=i686 Memory=3609284 kB DistributionVendor=Ubuntu DistributionRelease="Ubuntu 10.10" Desktop=Gnome [Gambas 2] Version=2.21.0 Path=/usr/bin/gbx2 [Gambas 3] Version=2.99.5 Path=/usr/local/bin/gbx3 [Libraries] Qt4=libQtCore.so.4.7.0 GTK+=libgtk-x11-2.0.so.0.2200.0 Revision (r4222) Regards, Ian Roper. Perth Western Australia. -------------- next part -------------- A non-text attachment was scrubbed... Name: DoubleClickIssue.tar.gz Type: application/x-compressed-tar Size: 5240 bytes Desc: not available URL: From gambas at ...1... Fri Jan 27 07:01:01 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Fri, 27 Jan 2012 07:01:01 +0100 Subject: [Gambas-user] Code Folding Issue when used with 'Format page' In-Reply-To: <1327640734.4062.5.camel@...2506...> References: <4E534883.9060004@...2308...> <201108231549.42588.gambas@...1...> <1327640734.4062.5.camel@...2506...> Message-ID: <4F223D9D.8010404@...1...> Le 27/01/2012 06:05, Ian Roper a ?crit : > Greetings, > I have found that if the last routine in the editor code display is > 'folded' and you select the format option from a right click in the > editor (or Ctl-Alt-F), then the last routine is duplicated. > > I have had this confirmed by another user from the Gambas forum that > I belong to, so suspect it is not a 'my machine' problem. > > No project code supplied as this bug would be common to any project. > > [System] > OperatingSystem=Linux > Kernel=2.6.35-32-generic > Architecture=i686 > Memory=3609284 kB > DistributionVendor=Ubuntu > DistributionRelease="Ubuntu 10.10" > Desktop=Gnome > > [Gambas 2] > Version=2.21.0 > Path=/usr/bin/gbx2 > > [Gambas 3] > Version=2.99.5 > Path=/usr/local/bin/gbx3 > > [Libraries] > Qt4=libQtCore.so.4.7.0 > GTK+=libgtk-x11-2.0.so.0.2200.0 > > Revision (r4222) > > Regards, > Ian Roper. > Perth Western Australia. > I will check your three mails, but please can you upgrade to the last Gambas revision? r4222 is three months old now. Regards, -- Beno?t Minisini From oceanosoftlapalma at ...626... Fri Jan 27 07:53:09 2012 From: oceanosoftlapalma at ...626... (=?ISO-8859-1?Q?Ricardo_D=EDaz_Mart=EDn?=) Date: Fri, 27 Jan 2012 07:53:09 +0100 Subject: [Gambas-user] Issues with 'double click' & Keypress events not working on some controls. In-Reply-To: <1327642106.4062.28.camel@...2506...> References: <4E534883.9060004@...2308...> <201108231549.42588.gambas@...1...> <1327642106.4062.28.camel@...2506...> Message-ID: Ian, Have you tried with Activate event? Regards 2012/1/27 Ian Roper > Greetings, > I understand that this may be a GTK / QT issue but would like to > understand if there are any 'work around' that I could use. > > Control - Date Chooser. > Control - Folder Chooser. > > Note # With folder chooser, a 'slow' double click allows you to edit the > folder name so apparently the control is capturing the event but not > passing to the Gambas event queue ( which makes sense) > > > My requirement: > I was trying to use double click or a key press to select a control item > ie: to return the name of a folder or a specific date as required. > > > > Project example attached. > Project was created as a 'Graphical application' project. > > > > [System] > OperatingSystem=Linux > Kernel=2.6.35-32-generic > Architecture=i686 > Memory=3609284 kB > DistributionVendor=Ubuntu > DistributionRelease="Ubuntu 10.10" > Desktop=Gnome > > [Gambas 2] > Version=2.21.0 > Path=/usr/bin/gbx2 > > [Gambas 3] > Version=2.99.5 > Path=/usr/local/bin/gbx3 > > [Libraries] > Qt4=libQtCore.so.4.7.0 > GTK+=libgtk-x11-2.0.so.0.2200.0 > > Revision (r4222) > > Regards, > Ian Roper. > Perth Western Australia. > > > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From abbat.81 at ...787... Fri Jan 27 11:13:20 2012 From: abbat.81 at ...787... (abbat) Date: Fri, 27 Jan 2012 02:13:20 -0800 (PST) Subject: [Gambas-user] How to know Height and Width of screen? In-Reply-To: <4F1D489D.4050508@...1...> References: <33187109.post@...1379...> <4F1D489D.4050508@...1...> Message-ID: <33213054.post@...1379...> This works, but it is WORKAREA. If my resolutions is 1280 x 1024 and panel has 26 px and situated below, Then Desktop.Height = (1024-26) Beno?t Minisini wrote: > > Le 23/01/2012 12:32, abbat a ?crit : >> >> >> in VB.NET I get it by this way: >> >> Dim yy As Integer = >> System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height >> Dim xx As Integer = >> System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width >> >> How to do it in Gambas 3? >> >> Thanks > > Desktop.Width / Desktop.Height or Desktop.AvailableWidth / > Desktop.AvailableHeight. > > If you need a specific screen, you must use the Screens class. > > Screens[ > So it's almost the same thing, with less characters to type. :-) > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://old.nabble.com/How-to-know-Height-and-Width-of-screen--tp33187109p33213054.html Sent from the gambas-user mailing list archive at Nabble.com. From afroehlke at ...784... Fri Jan 27 11:36:11 2012 From: afroehlke at ...784... (=?iso-8859-1?Q?Andreas_Fr=F6hlke?=) Date: Fri, 27 Jan 2012 11:36:11 +0100 Subject: [Gambas-user] (no subject) In-Reply-To: <4F202BE5.7090002@...1...> References: <8D42310D957CFB46AA11921A711D4D16057DB6BF9D@...1899...> <4F202BE5.7090002@...1...> Message-ID: <8D42310D957CFB46AA11921A711D4D16057DB6BFCA@...1899...> Hi again, thanks for the solution for question 1. I think i don't understood how the parameters padding, margin and spacing work in gambas3. Now i understood and it's fine :) 2. I've made a 2 screenshots of the same program in gambas3 and gambas2, so i hope you see what i mean. Regards Andreas -----Urspr?ngliche Nachricht----- Von: Beno?t Minisini [mailto:gambas at ...1...] Gesendet: Mittwoch, 25. Januar 2012 17:21 An: mailing list for gambas users Betreff: Re: [Gambas-user] (no subject) Le 25/01/2012 16:08, Andreas Fr?hlke a ?crit : > Hi Beno?t, > > > > we're using gambas about 6 years. Now we take a look at gambas3 and have two questions: > > > > 1. Why did you make the spacing property of a container to a boolean, instead of leaving it as an integer? It's really frustrating, that we can't set the space between textboxes to 1 pixel automatically (by using arrangement), without changing the whole font-size of the system. > > If there's a user who has problems with his eyes and set the system font higher, the space between textboxes (and other controls) will get really big, so some formulars are no longer displayable on his screen. There would a big space loss. > > > > 2. If we set the space between textboxes by code to 1 pixel and set the border property to none, it looks like the space between the textboxes iss et to 7 pixel. This is because the border in gambas3 just turns to transparent. This issue doesn't exist in gambas1 and gambas2. Here the textboxes "resize" to fit to the border, when the border is set to none. Here we have to rewrite each arrangement function to manage this. > > > > Do you see any chance to change these things? > > Regards > > Andreas > 1) Spacing and Margin are Desktop.Scale pixels, unless you specify that number of pixels in the Padding property. So set Padding to 1. When you have such problems with the changes in these properties, it usually means that your forms are too complex. 2) I don't understand what you are talking about at all. Send a screenshot, give information about your system, and check that it does not depend on your widget theme. Regards, -- Beno?t Minisini ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -------------- next part -------------- A non-text attachment was scrubbed... Name: arrangement_gb3.png Type: image/png Size: 13163 bytes Desc: arrangement_gb3.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: arrangement_gb2.png Type: image/png Size: 17452 bytes Desc: arrangement_gb2.png URL: From rmorgan62 at ...626... Fri Jan 27 12:12:47 2012 From: rmorgan62 at ...626... (Randall Morgan) Date: Fri, 27 Jan 2012 03:12:47 -0800 Subject: [Gambas-user] Fwd: Component Config error In-Reply-To: References: Message-ID: Hi, Using the configuration generated by the make-component script I get a failed configure in my component directory. I have read the readme and the install docs as well as reviewed the wiki pages and have failed to find a solution. I am including the config log for your review. Any help you can give on this issue would be greatly appreciated. Thanks, Randall -- If you ask me if it can be done. The answer is YES, it can always be done. The correct questions however are... What will it cost, and how long will it take? -- If you ask me if it can be done. The answer is YES, it can always be done. The correct questions however are... What will it cost, and how long will it take? -------------- next part -------------- A non-text attachment was scrubbed... Name: config.log.tar.gz Type: application/x-gzip Size: 4507 bytes Desc: not available URL: From wally at ...2037... Fri Jan 27 12:22:47 2012 From: wally at ...2037... (Wally) Date: Fri, 27 Jan 2012 12:22:47 +0100 Subject: [Gambas-user] Fwd: Component Config error In-Reply-To: References: Message-ID: <1546073.R6vTxj2vvX@...46...> Same problem here :( OpenSuse 12.1 Gambas SVN At revision 4421. wally On Friday, January 27, 2012 03:12:47 Randall Morgan wrote: > Hi, > > Using the configuration generated by the make-component script I get a > failed configure in my component directory. > I have read the readme and the install docs as well as reviewed the wiki > pages and have failed to find a solution. > > I am including the config log for your review. > > Any help you can give on this issue would be greatly appreciated. > > Thanks, > > Randall From bbg.holfarm at ...2767... Fri Jan 27 13:23:10 2012 From: bbg.holfarm at ...2767... (rogerHPH) Date: Fri, 27 Jan 2012 04:23:10 -0800 (PST) Subject: [Gambas-user] ARRAYS - Filling with data Message-ID: <33213528.post@...1379...> Thanks, the .Insert works fine and I will investigate the /Data approach - can anyone offer an example ? -- View this message in context: http://old.nabble.com/Re%3A-ARRAYS---Filling-with-data-tp33208699p33213528.html Sent from the gambas-user mailing list archive at Nabble.com. From jussi.lahtinen at ...626... Fri Jan 27 16:29:53 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Fri, 27 Jan 2012 17:29:53 +0200 Subject: [Gambas-user] How to know Height and Width of screen? In-Reply-To: <33213054.post@...1379...> References: <33187109.post@...1379...> <4F1D489D.4050508@...1...> <33213054.post@...1379...> Message-ID: Screen.Height should return the actual screen height. Jussi On Fri, Jan 27, 2012 at 12:13, abbat wrote: > > This works, but it is WORKAREA. > If my resolutions is 1280 x 1024 and panel has 26 px and situated below, > Then Desktop.Height = (1024-26) > > > Beno?t Minisini wrote: > > > > Le 23/01/2012 12:32, abbat a ?crit : > >> > >> > >> in VB.NET I get it by this way: > >> > >> Dim yy As Integer = > >> System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height > >> Dim xx As Integer = > >> System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width > >> > >> How to do it in Gambas 3? > >> > >> Thanks > > > > Desktop.Width / Desktop.Height or Desktop.AvailableWidth / > > Desktop.AvailableHeight. > > > > If you need a specific screen, you must use the Screens class. > > > > Screens[ > > > So it's almost the same thing, with less characters to type. :-) > > > > -- > > Beno?t Minisini > > > > > ------------------------------------------------------------------------------ > > Try before you buy = See our experts in action! > > The most comprehensive online learning library for Microsoft developers > > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > > Metro Style Apps, more. Free future releases when you subscribe now! > > http://p.sf.net/sfu/learndevnow-dev2 > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > -- > View this message in context: > http://old.nabble.com/How-to-know-Height-and-Width-of-screen--tp33187109p33213054.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...2524... Fri Jan 27 16:41:37 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 27 Jan 2012 15:41:37 +0000 Subject: [Gambas-user] Issue 205 in gambas: Desktop.Height <> Screen.AvailableHeight Message-ID: <0-6813199134517018827-16312358124138333154-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 205 by jussi.la... at ...626...: Desktop.Height <> Screen.AvailableHeight http://code.google.com/p/gambas/issues/detail?id=205 1) Describe the problem. Print Screen.Height Print Desktop.Height Print Screen.AvailableHeight Result: 1024 1024 974 Desktop.Height and Screen.AvailableHeight should be same. 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: TRUNK Revision: r4419 Operating system: Linux Distribution: Xubuntu Architecture: x86_64 GUI component: QT4 and GTK+ Desktop used: xfce [System] OperatingSystem=Linux Kernel=3.0.0-15-generic Architecture=x86_64 Memory=4056256 kB DistributionVendor=Ubuntu DistributionRelease="Ubuntu 11.10" Desktop=Xfce [Gambas 3] Version=3.0.90 Path=/usr/local/bin/gbx3 [Libraries] Qt4=libQtCore.so.4.7.4 GTK+=libgtk-x11-2.0.so.0.2400.6 From jussi.lahtinen at ...626... Fri Jan 27 16:50:14 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Fri, 27 Jan 2012 17:50:14 +0200 Subject: [Gambas-user] ARRAYS - Filling with data In-Reply-To: <33213528.post@...1379...> References: <33213528.post@...1379...> Message-ID: Just use IDE to create/move file to Data folder. You can access to it like any file by referring to it's name, but without path, example "myfile.txt". If you use subfolders in Data, then use "myfolder/myfile.txt". Jussi On Fri, Jan 27, 2012 at 14:23, rogerHPH wrote: > > Thanks, the .Insert works fine and I will investigate the /Data approach - > can anyone offer an example ? > -- > View this message in context: > http://old.nabble.com/Re%3A-ARRAYS---Filling-with-data-tp33208699p33213528.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...2524... Fri Jan 27 19:24:01 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 27 Jan 2012 18:24:01 +0000 Subject: [Gambas-user] Issue 205 in gambas: Desktop.Height <> Screen.AvailableHeight In-Reply-To: <0-6813199134517018827-16312358124138333154-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-16312358124138333154-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-16312358124138333154-gambas=googlecode.com@...2524...> Comment #1 on issue 205 by jussi.la... at ...626...: Desktop.Height <> Screen.AvailableHeight http://code.google.com/p/gambas/issues/detail?id=205 Bug happens only if gb.desktop component is used! From emil.lenngren at ...626... Fri Jan 27 19:58:37 2012 From: emil.lenngren at ...626... (Emil Lenngren) Date: Fri, 27 Jan 2012 19:58:37 +0100 Subject: [Gambas-user] ARRAYS - Filling with data In-Reply-To: References: <33213528.post@...1379...> Message-ID: Maybe you can use this to efficiently store and read the array from a file? http://gambasdoc.org/help/lang/datarep?v3 2012/1/27 Jussi Lahtinen > Just use IDE to create/move file to Data folder. > You can access to it like any file by referring to it's name, but without > path, example "myfile.txt". > If you use subfolders in Data, then use "myfolder/myfile.txt". > > Jussi > > > > > On Fri, Jan 27, 2012 at 14:23, rogerHPH > wrote: > > > > > Thanks, the .Insert works fine and I will investigate the /Data approach > - > > can anyone offer an example ? > > -- > > View this message in context: > > > http://old.nabble.com/Re%3A-ARRAYS---Filling-with-data-tp33208699p33213528.html > > Sent from the gambas-user mailing list archive at Nabble.com. > > > > > > > > > ------------------------------------------------------------------------------ > > Try before you buy = See our experts in action! > > The most comprehensive online learning library for Microsoft developers > > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > > Metro Style Apps, more. Free future releases when you subscribe now! > > http://p.sf.net/sfu/learndevnow-dev2 > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From abbat.81 at ...787... Fri Jan 27 20:18:18 2012 From: abbat.81 at ...787... (abbat) Date: Fri, 27 Jan 2012 11:18:18 -0800 (PST) Subject: [Gambas-user] limit of situated of form Message-ID: <33213549.post@...1379...> limit of situated of form How to free situating of a form on screen My Desktop.Height = 900 (shows 876, panal takes 26 px.H) In property of situating of form I have next: Fmain.TopOnly = True Fmain.X = 880 Fmain.Y = 880 http://old.nabble.com/file/p33213549/image_1.png I want form to be above panel like on image 2 http://old.nabble.com/file/p33213549/image_2.png Can I? Thanks -- View this message in context: http://old.nabble.com/limit-of-situated-of-form-tp33213549p33213549.html Sent from the gambas-user mailing list archive at Nabble.com. From math.eber at ...221... Fri Jan 27 21:02:21 2012 From: math.eber at ...221... (Matti) Date: Fri, 27 Jan 2012 21:02:21 +0100 Subject: [Gambas-user] limit of situated of form In-Reply-To: <33213549.post@...1379...> References: <33213549.post@...1379...> Message-ID: <4F2302CD.1090801@...221...> Me.TopOnly = True Me.X = 880 Me.Y = Desktop.Height - Me.Height - 26 works fine here. Am 27.01.2012 20:18, schrieb abbat: > > limit of situated of form > > How to free situating of a form on screen > > My Desktop.Height = 900 (shows 876, panal takes 26 px.H) > In property of situating of form I have next: > > Fmain.TopOnly = True > Fmain.X = 880 > Fmain.Y = 880 > http://old.nabble.com/file/p33213549/image_1.png > > I want form to be above panel like on image 2 > > http://old.nabble.com/file/p33213549/image_2.png > > > > Can I? > Thanks > From abbat.81 at ...787... Fri Jan 27 21:24:25 2012 From: abbat.81 at ...787... (abbat) Date: Fri, 27 Jan 2012 12:24:25 -0800 (PST) Subject: [Gambas-user] limit of situated of form In-Reply-To: <4F2302CD.1090801@...221...> References: <33213549.post@...1379...> <4F2302CD.1090801@...221...> Message-ID: <33216763.post@...1379...> No, I mean another thing. Pushing F5 FMain must be situated into panel (image_2), but it shows wherever, only not into panel (image_1). I'm trying to make a form like clock and flag and situate FNain near them. Something, like this: http://old.nabble.com/file/p33216763/322c1b68a634.jpg Tnanks. Matti-4 wrote: > > Me.TopOnly = True > Me.X = 880 > Me.Y = Desktop.Height - Me.Height - 26 > works fine here. > > > Am 27.01.2012 20:18, schrieb abbat: >> >> limit of situated of form >> >> How to free situating of a form on screen >> >> My Desktop.Height = 900 (shows 876, panal takes 26 px.H) >> In property of situating of form I have next: >> >> Fmain.TopOnly = True >> Fmain.X = 880 >> Fmain.Y = 880 >> http://old.nabble.com/file/p33213549/image_1.png >> >> I want form to be above panel like on image 2 >> >> http://old.nabble.com/file/p33213549/image_2.png >> >> >> >> Can I? >> Thanks >> > > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://old.nabble.com/limit-of-situated-of-form-tp33213549p33216763.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Sat Jan 28 01:52:21 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 28 Jan 2012 01:52:21 +0100 Subject: [Gambas-user] Code Folding Issue when used with 'Format page' In-Reply-To: <1327640734.4062.5.camel@...2506...> References: <4E534883.9060004@...2308...> <201108231549.42588.gambas@...1...> <1327640734.4062.5.camel@...2506...> Message-ID: <4F2346C5.1020109@...1...> Le 27/01/2012 06:05, Ian Roper a ?crit : > Greetings, > I have found that if the last routine in the editor code display is > 'folded' and you select the format option from a right click in the > editor (or Ctl-Alt-F), then the last routine is duplicated. > > I have had this confirmed by another user from the Gambas forum that > I belong to, so suspect it is not a 'my machine' problem. > > No project code supplied as this bug would be common to any project. > It should be fixed in revision #4422. Regards, -- Beno?t Minisini From gambas at ...1... Sat Jan 28 02:13:55 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 28 Jan 2012 02:13:55 +0100 Subject: [Gambas-user] (no subject) In-Reply-To: <8D42310D957CFB46AA11921A711D4D16057DB6BFCA@...1899...> References: <8D42310D957CFB46AA11921A711D4D16057DB6BF9D@...1899...> <4F202BE5.7090002@...1...> <8D42310D957CFB46AA11921A711D4D16057DB6BFCA@...1899...> Message-ID: <4F234BD3.2040907@...1...> Le 27/01/2012 11:36, Andreas Fr?hlke a ?crit : > Hi again, > > thanks for the solution for question 1. I think i don't understood how the parameters padding, margin and spacing work in gambas3. Now i understood and it's fine :) > > 2. I've made a 2 screenshots of the same program in gambas3 and gambas2, so i hope you see what i mean. > > Regards > > Andreas > I need your project! -- Beno?t Minisini From gambas at ...2524... Sat Jan 28 02:22:50 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 28 Jan 2012 01:22:50 +0000 Subject: [Gambas-user] Issue 205 in gambas: Desktop.Height <> Screen.AvailableHeight In-Reply-To: <1-6813199134517018827-16312358124138333154-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-16312358124138333154-gambas=googlecode.com@...2524...> <0-6813199134517018827-16312358124138333154-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-16312358124138333154-gambas=googlecode.com@...2524...> Updates: Status: Fixed Labels: -Version Version-TRUNK Comment #2 on issue 205 by benoit.m... at ...626...: Desktop.Height <> Screen.AvailableHeight http://code.google.com/p/gambas/issues/detail?id=205 It should be fixed in revision #4423. From gambas at ...2524... Sat Jan 28 02:26:50 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 28 Jan 2012 01:26:50 +0000 Subject: [Gambas-user] Issue 188 in gambas: Creating a new directory in the data project data causes a seg. fault In-Reply-To: <10-6813199134517018827-7699354405385977273-gambas=googlecode.com@...2524...> References: <10-6813199134517018827-7699354405385977273-gambas=googlecode.com@...2524...> <0-6813199134517018827-7699354405385977273-gambas=googlecode.com@...2524...> Message-ID: <11-6813199134517018827-7699354405385977273-gambas=googlecode.com@...2524...> Comment #11 on issue 188 by benoit.m... at ...626...: Creating a new directory in the data project data causes a seg. fault http://code.google.com/p/gambas/issues/detail?id=188 According to your valgrind log, gambas was obviously not compiled with debugging information enabled. Did you really recompile and reinstall everything that way? From gambas at ...1... Sat Jan 28 04:12:27 2012 From: gambas at ...1... (=?UTF-8?B?QmVub8OudCBNaW5pc2luaQ==?=) Date: Sat, 28 Jan 2012 04:12:27 +0100 Subject: [Gambas-user] On-Off Visible DrawingArea. Bag? In-Reply-To: References: Message-ID: <4F23679B.5030208@...1...> Le 26/01/2012 05:58, ??????? ???????? a ?crit : > Hi! > > Please see the example. > > I am Draw the image in DrawingArea. > After doing this DrawingArea1.Visible = False. Picture not visible. > After DrawingArea1.Visible = True, the picture not see until you do > scrolling. > > DrawingArea1.Refresh > ScrollView1.Refresh > do not help. > > This is a bug? > Yep. In gb.qt4. It should be fixed in revision #4425. Regards, -- Beno?t Minisini From gambas at ...2524... Sat Jan 28 04:51:27 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 28 Jan 2012 03:51:27 +0000 Subject: [Gambas-user] Issue 188 in gambas: Creating a new directory in the data project data causes a seg. fault In-Reply-To: <11-6813199134517018827-7699354405385977273-gambas=googlecode.com@...2524...> References: <11-6813199134517018827-7699354405385977273-gambas=googlecode.com@...2524...> <0-6813199134517018827-7699354405385977273-gambas=googlecode.com@...2524...> Message-ID: <12-6813199134517018827-7699354405385977273-gambas=googlecode.com@...2524...> Comment #12 on issue 188 by zachsmit... at ...626...: Creating a new directory in the data project data causes a seg. fault http://code.google.com/p/gambas/issues/detail?id=188 Sorry, they were stripped when Arch was building the package. Attached. Attachments: valgrind.out 68.7 KB From gambas at ...2524... Sat Jan 28 08:51:13 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 28 Jan 2012 07:51:13 +0000 Subject: [Gambas-user] Issue 188 in gambas: Creating a new directory in the data project data causes a seg. fault In-Reply-To: <12-6813199134517018827-7699354405385977273-gambas=googlecode.com@...2524...> References: <12-6813199134517018827-7699354405385977273-gambas=googlecode.com@...2524...> <0-6813199134517018827-7699354405385977273-gambas=googlecode.com@...2524...> Message-ID: <13-6813199134517018827-7699354405385977273-gambas=googlecode.com@...2524...> Comment #13 on issue 188 by benoit.m... at ...626...: Creating a new directory in the data project data causes a seg. fault http://code.google.com/p/gambas/issues/detail?id=188 There are a lot of strangeness I will look at. But the crash seems occur in QGtkStyle, so I think there is a problem in the GTK+ widget theme used. From gambas at ...2524... Sat Jan 28 08:55:13 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 28 Jan 2012 07:55:13 +0000 Subject: [Gambas-user] Issue 188 in gambas: Creating a new directory in the data project data causes a seg. fault In-Reply-To: <13-6813199134517018827-7699354405385977273-gambas=googlecode.com@...2524...> References: <13-6813199134517018827-7699354405385977273-gambas=googlecode.com@...2524...> <0-6813199134517018827-7699354405385977273-gambas=googlecode.com@...2524...> Message-ID: <14-6813199134517018827-7699354405385977273-gambas=googlecode.com@...2524...> Comment #14 on issue 188 by benoit.m... at ...626...: Creating a new directory in the data project data causes a seg. fault http://code.google.com/p/gambas/issues/detail?id=188 There are a lot of strangeness I will look at. But the crash seems to occur in QGtkStyle, so I think there is a problem in the GTK+ widget theme used. From gambas at ...1... Sat Jan 28 11:06:00 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 28 Jan 2012 11:06:00 +0100 Subject: [Gambas-user] Gambas WebPage Message-ID: <4F23C888.8070400@...1...> Hi all, I have started the support of a new kind of "form" in the IDE, the "WebPage". WebPage is an HTML page with ASP-like syntax. It is implemented in the gb.web component. The IDE now can edit WebPage, but cannot compile them. Actually it is "just" a matter of modyfing the compiler so that the WebPage is transformed into Gambas code that generates the final HTML. At the moment, the following ASP-like syntax will be implemented: - <% ... %> to insert any Gambas code. - <%= ... %> to insert the result of a Gambas expression. Html$() will be automatically called. - Maybe something like <%INCLUDE ... %> to include a WebPage in another one. Note that the WebPage is a file with a ".webpage" extension, and that, they have their own class file attached (like any form). That way, you don't have to put all your code inside the HTML. Just what is needed. Internally all WebPages will inherit the WebPage class, and will have a "Render" method to render their contents (i.e. print to the standard output - don't forget that a Gambas web application is a CGI script!). They can be startup class too. I'd like to have the thoughts of Gambas users about that: what kind of syntax you would like, what ideas you have... One idea I have would be a standard syntax for the URL received by the CGI script, so that the displayed WebPage would be automatically selected from it. It could be something as simple as "http://myapp.com/
". Thanks in advance for your comments. Regards, -- Beno?t Minisini From Gambas at ...1950... Sat Jan 28 11:16:57 2012 From: Gambas at ...1950... (Caveat) Date: Sat, 28 Jan 2012 11:16:57 +0100 Subject: [Gambas-user] Gambas WebPage In-Reply-To: <4F23C888.8070400@...1...> References: <4F23C888.8070400@...1...> Message-ID: <1327745817.3743.15.camel@...2150...> Nice one Benoit! Will you call this technology GASP (Gambas ASP) or GAWP (GAmbas Web Pages)? :-) Will we have access to the Request and Response just like in asp/jsp? How will we get params from decorated url/post? It would be nice if there were a standard means of accessing the params by name... Kind regards, Caveat On Sat, 2012-01-28 at 11:06 +0100, Beno?t Minisini wrote: > Hi all, > > I have started the support of a new kind of "form" in the IDE, the > "WebPage". > > WebPage is an HTML page with ASP-like syntax. It is implemented in the > gb.web component. > > The IDE now can edit WebPage, but cannot compile them. > > Actually it is "just" a matter of modyfing the compiler so that the > WebPage is transformed into Gambas code that generates the final HTML. > > At the moment, the following ASP-like syntax will be implemented: > > - <% ... %> to insert any Gambas code. > > - <%= ... %> to insert the result of a Gambas expression. Html$() will > be automatically called. > > - Maybe something like <%INCLUDE ... %> to include a WebPage in another one. > > Note that the WebPage is a file with a ".webpage" extension, and that, > they have their own class file attached (like any form). > > That way, you don't have to put all your code inside the HTML. Just what > is needed. > > Internally all WebPages will inherit the WebPage class, and will have a > "Render" method to render their contents (i.e. print to the standard > output - don't forget that a Gambas web application is a CGI script!). > They can be startup class too. > > I'd like to have the thoughts of Gambas users about that: what kind of > syntax you would like, what ideas you have... > > One idea I have would be a standard syntax for the URL received by the > CGI script, so that the displayed WebPage would be automatically > selected from it. It could be something as simple as > "http://myapp.com/". > > Thanks in advance for your comments. > > Regards, > From abbat.81 at ...787... Sat Jan 28 14:07:02 2012 From: abbat.81 at ...787... (abbat) Date: Sat, 28 Jan 2012 05:07:02 -0800 (PST) Subject: [Gambas-user] Location of the form Message-ID: <33219801.post@...1379...> It's not a clone topic. I'm trying to ask clearly so next. http://old.nabble.com/file/p33219801/123.jpg Form location #1 Fmain.X = 80 Fmain.Y = 80 Form location #2 Fmain.X = 300 Fmain.Y = 570 Form location #3 Fmain.X = 350 Fmain.Y = 750 (limit is 570) Form location #4 How to locate my form there? Thanks -- View this message in context: http://old.nabble.com/Location-of-the-form-tp33219801p33219801.html Sent from the gambas-user mailing list archive at Nabble.com. From sebikul at ...626... Sat Jan 28 16:53:36 2012 From: sebikul at ...626... (Sebastian Kulesz) Date: Sat, 28 Jan 2012 12:53:36 -0300 Subject: [Gambas-user] Gambas WebPage In-Reply-To: <4F23C888.8070400@...1...> References: <4F23C888.8070400@...1...> Message-ID: <-2292107692402667752@...714...> I really like this idea, it makes an application really versatile. What I think is that before starting to code it you must define some things. First, the security implications. Will real webpages be able to use that syntax?. A nice feature would be a whitelist of allowed pages that can be executed within a form, maybe with the include tag. Second, and most important. How would you manage to call each event of a form input object, like a textbox? How could someone use the value of a textbox, for example? What happens if two form objects have the same "name" attribute? When an input button is pressed, the user is normally redirected to the "action" webpage, will you override this to execute an event and let the user choose? Third, about the links. A nice syntax would be gambas://FormName/Method/Param1/Param2/... That's all I could think of. Thanks for all the work!! On 28/01/2012, at 07:07, "Beno?t Minisini" wrote: > Hi all, > > I have started the support of a new kind of "form" in the IDE, the > "WebPage". > > WebPage is an HTML page with ASP-like syntax. It is implemented in the > gb.web component. > > The IDE now can edit WebPage, but cannot compile them. > > Actually it is "just" a matter of modyfing the compiler so that the > WebPage is transformed into Gambas code that generates the final HTML. > > At the moment, the following ASP-like syntax will be implemented: > > - <% ... %> to insert any Gambas code. > > - <%= ... %> to insert the result of a Gambas expression. Html$() will > be automatically called. > > - Maybe something like <%INCLUDE ... %> to include a WebPage in another one. > > Note that the WebPage is a file with a ".webpage" extension, and that, > they have their own class file attached (like any form). > > That way, you don't have to put all your code inside the HTML. Just what > is needed. > > Internally all WebPages will inherit the WebPage class, and will have a > "Render" method to render their contents (i.e. print to the standard > output - don't forget that a Gambas web application is a CGI script!). > They can be startup class too. > > I'd like to have the thoughts of Gambas users about that: what kind of > syntax you would like, what ideas you have... > > One idea I have would be a standard syntax for the URL received by the > CGI script, so that the displayed WebPage would be automatically > selected from it. It could be something as simple as > "http://myapp.com/". > > Thanks in advance for your comments. > > Regards, > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From mohareve at ...626... Sat Jan 28 18:56:44 2012 From: mohareve at ...626... (M. Cs.) Date: Sat, 28 Jan 2012 18:56:44 +0100 Subject: [Gambas-user] Gambas WebPage In-Reply-To: <-2292107692402667752@...714...> References: <4F23C888.8070400@...1...> <-2292107692402667752@...714...> Message-ID: Will it be possible to display a native HTML/PHP code in it like in ? Why to depend on ASP? Csaba 2012/1/28, Sebastian Kulesz : > I really like this idea, it makes an application really versatile. > What I think is that before starting to code it you must define some > things. > > First, the security implications. Will real webpages be able to use > that syntax?. A nice feature would be a whitelist of allowed pages > that can be executed within a form, maybe with the include tag. > > Second, and most important. How would you manage to call each event > of a form input object, like a textbox? How could someone use the > value of a textbox, for example? What happens if two form objects have > the same "name" attribute? When an input button is pressed, the user > is normally redirected to the "action" webpage, will you override this > to execute an event and let the user choose? > > Third, about the links. A nice syntax would be > gambas://FormName/Method/Param1/Param2/... > > That's all I could think of. Thanks for all the work!! > > On 28/01/2012, at 07:07, "Beno?t Minisini" > wrote: > >> Hi all, >> >> I have started the support of a new kind of "form" in the IDE, the >> "WebPage". >> >> WebPage is an HTML page with ASP-like syntax. It is implemented in the >> gb.web component. >> >> The IDE now can edit WebPage, but cannot compile them. >> >> Actually it is "just" a matter of modyfing the compiler so that the >> WebPage is transformed into Gambas code that generates the final HTML. >> >> At the moment, the following ASP-like syntax will be implemented: >> >> - <% ... %> to insert any Gambas code. >> >> - <%= ... %> to insert the result of a Gambas expression. Html$() will >> be automatically called. >> >> - Maybe something like <%INCLUDE ... %> to include a WebPage in another >> one. >> >> Note that the WebPage is a file with a ".webpage" extension, and that, >> they have their own class file attached (like any form). >> >> That way, you don't have to put all your code inside the HTML. Just what >> is needed. >> >> Internally all WebPages will inherit the WebPage class, and will have a >> "Render" method to render their contents (i.e. print to the standard >> output - don't forget that a Gambas web application is a CGI script!). >> They can be startup class too. >> >> I'd like to have the thoughts of Gambas users about that: what kind of >> syntax you would like, what ideas you have... >> >> One idea I have would be a standard syntax for the URL received by the >> CGI script, so that the displayed WebPage would be automatically >> selected from it. It could be something as simple as >> "http://myapp.com/". >> >> Thanks in advance for your comments. >> >> Regards, >> >> -- >> Beno?t Minisini >> >> ------------------------------------------------------------------------------ >> Try before you buy = See our experts in action! >> The most comprehensive online learning library for Microsoft developers >> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, >> Metro Style Apps, more. Free future releases when you subscribe now! >> http://p.sf.net/sfu/learndevnow-dev2 >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From ron at ...1740... Sat Jan 28 21:18:25 2012 From: ron at ...1740... (Ron) Date: Sat, 28 Jan 2012 21:18:25 +0100 Subject: [Gambas-user] Gambas WebPage In-Reply-To: References: <4F23C888.8070400@...1...> <-2292107692402667752@...714...> Message-ID: Benoit great news that we can start develop web pages. No idea what I need exactly. I will just start to play with it for my project and let you know what I think then. Regards, Ron_2nd Op 28 jan. 2012 18:57 schreef "M. Cs." het volgende: > Will it be possible to display a native HTML/PHP code in it like in > ? Why to depend on ASP? > > Csaba > > 2012/1/28, Sebastian Kulesz : > > I really like this idea, it makes an application really versatile. > > What I think is that before starting to code it you must define some > > things. > > > > First, the security implications. Will real webpages be able to use > > that syntax?. A nice feature would be a whitelist of allowed pages > > that can be executed within a form, maybe with the include tag. > > > > Second, and most important. How would you manage to call each event > > of a form input object, like a textbox? How could someone use the > > value of a textbox, for example? What happens if two form objects have > > the same "name" attribute? When an input button is pressed, the user > > is normally redirected to the "action" webpage, will you override this > > to execute an event and let the user choose? > > > > Third, about the links. A nice syntax would be > > gambas://FormName/Method/Param1/Param2/... > > > > That's all I could think of. Thanks for all the work!! > > > > On 28/01/2012, at 07:07, "Beno?t Minisini" > > wrote: > > > >> Hi all, > >> > >> I have started the support of a new kind of "form" in the IDE, the > >> "WebPage". > >> > >> WebPage is an HTML page with ASP-like syntax. It is implemented in the > >> gb.web component. > >> > >> The IDE now can edit WebPage, but cannot compile them. > >> > >> Actually it is "just" a matter of modyfing the compiler so that the > >> WebPage is transformed into Gambas code that generates the final HTML. > >> > >> At the moment, the following ASP-like syntax will be implemented: > >> > >> - <% ... %> to insert any Gambas code. > >> > >> - <%= ... %> to insert the result of a Gambas expression. Html$() will > >> be automatically called. > >> > >> - Maybe something like <%INCLUDE ... %> to include a WebPage in another > >> one. > >> > >> Note that the WebPage is a file with a ".webpage" extension, and that, > >> they have their own class file attached (like any form). > >> > >> That way, you don't have to put all your code inside the HTML. Just what > >> is needed. > >> > >> Internally all WebPages will inherit the WebPage class, and will have a > >> "Render" method to render their contents (i.e. print to the standard > >> output - don't forget that a Gambas web application is a CGI script!). > >> They can be startup class too. > >> > >> I'd like to have the thoughts of Gambas users about that: what kind of > >> syntax you would like, what ideas you have... > >> > >> One idea I have would be a standard syntax for the URL received by the > >> CGI script, so that the displayed WebPage would be automatically > >> selected from it. It could be something as simple as > >> "http://myapp.com/". > >> > >> Thanks in advance for your comments. > >> > >> Regards, > >> > >> -- > >> Beno?t Minisini > >> > >> > ------------------------------------------------------------------------------ > >> Try before you buy = See our experts in action! > >> The most comprehensive online learning library for Microsoft developers > >> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > >> Metro Style Apps, more. Free future releases when you subscribe now! > >> http://p.sf.net/sfu/learndevnow-dev2 > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > ------------------------------------------------------------------------------ > > Try before you buy = See our experts in action! > > The most comprehensive online learning library for Microsoft developers > > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > > Metro Style Apps, more. Free future releases when you subscribe now! > > http://p.sf.net/sfu/learndevnow-dev2 > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From ian.roper at ...1974... Sun Jan 29 01:57:59 2012 From: ian.roper at ...1974... (Ian Roper) Date: Sun, 29 Jan 2012 08:57:59 +0800 Subject: [Gambas-user] Editor 'Split' function is reversed In-Reply-To: <1327640912.4062.8.camel@...2506...> References: <4E534883.9060004@...2308...> <201108231549.42588.gambas@...1...> <1327640912.4062.8.camel@...2506...> Message-ID: <1327798679.2453.6.camel@...2506...> I was looking at this yesterday and the 'penny dropped' It's a matter of interpretation of the 'what you would expect to see' from the menu outcome. I expected to the see the 'divider' as being either horizontal or vertical *sigh* The outcome of course is that the layout of the divided screens is as the menu options says. ;) so it's not an error. Regards, Ian Roper. On Fri, 2012-01-27 at 13:08 +0800, Ian Roper wrote: > Greetings, > In the code editor, if you select on 'right click' > > Advanced - View - Horizontal Split : It splits vertically > Advanced - View - Vertical Split : It splits horizontally > > > [System] > OperatingSystem=Linux > Kernel=2.6.35-32-generic > Architecture=i686 > Memory=3609284 kB > DistributionVendor=Ubuntu > DistributionRelease="Ubuntu 10.10" > Desktop=Gnome > > [Gambas 2] > Version=2.21.0 > Path=/usr/bin/gbx2 > > [Gambas 3] > Version=2.99.5 > Path=/usr/local/bin/gbx3 > > [Libraries] > Qt4=libQtCore.so.4.7.0 > GTK+=libgtk-x11-2.0.so.0.2200.0 > > Revision (r4222) > > Regards, > Ian Roper. > Perth Western Australia. > > > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Sent from Ubuntu From demosthenesk at ...626... Sun Jan 29 02:13:07 2012 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Sun, 29 Jan 2012 03:13:07 +0200 Subject: [Gambas-user] Gambas WebPage In-Reply-To: References: <4F23C888.8070400@...1...> <-2292107692402667752@...714...> Message-ID: <1327799587.2349.12.camel@...2768...> This webpage does it replace the .form and .class files we use? On Sat, 2012-01-28 at 21:18 +0100, Ron wrote: > Benoit great news that we can start develop web pages. No idea what I need > exactly. I will just start to play with it for my project and let you know > what I think then. > > Regards, > Ron_2nd > Op 28 jan. 2012 18:57 schreef "M. Cs." het volgende: > > > Will it be possible to display a native HTML/PHP code in it like in > > ? Why to depend on ASP? > > > > Csaba > > > > 2012/1/28, Sebastian Kulesz : > > > I really like this idea, it makes an application really versatile. > > > What I think is that before starting to code it you must define some > > > things. > > > > > > First, the security implications. Will real webpages be able to use > > > that syntax?. A nice feature would be a whitelist of allowed pages > > > that can be executed within a form, maybe with the include tag. > > > > > > Second, and most important. How would you manage to call each event > > > of a form input object, like a textbox? How could someone use the > > > value of a textbox, for example? What happens if two form objects have > > > the same "name" attribute? When an input button is pressed, the user > > > is normally redirected to the "action" webpage, will you override this > > > to execute an event and let the user choose? > > > > > > Third, about the links. A nice syntax would be > > > gambas://FormName/Method/Param1/Param2/... > > > > > > That's all I could think of. Thanks for all the work!! > > > > > > On 28/01/2012, at 07:07, "Beno?t Minisini" > > > wrote: > > > > > >> Hi all, > > >> > > >> I have started the support of a new kind of "form" in the IDE, the > > >> "WebPage". > > >> > > >> WebPage is an HTML page with ASP-like syntax. It is implemented in the > > >> gb.web component. > > >> > > >> The IDE now can edit WebPage, but cannot compile them. > > >> > > >> Actually it is "just" a matter of modyfing the compiler so that the > > >> WebPage is transformed into Gambas code that generates the final HTML. > > >> > > >> At the moment, the following ASP-like syntax will be implemented: > > >> > > >> - <% ... %> to insert any Gambas code. > > >> > > >> - <%= ... %> to insert the result of a Gambas expression. Html$() will > > >> be automatically called. > > >> > > >> - Maybe something like <%INCLUDE ... %> to include a WebPage in another > > >> one. > > >> > > >> Note that the WebPage is a file with a ".webpage" extension, and that, > > >> they have their own class file attached (like any form). > > >> > > >> That way, you don't have to put all your code inside the HTML. Just what > > >> is needed. > > >> > > >> Internally all WebPages will inherit the WebPage class, and will have a > > >> "Render" method to render their contents (i.e. print to the standard > > >> output - don't forget that a Gambas web application is a CGI script!). > > >> They can be startup class too. > > >> > > >> I'd like to have the thoughts of Gambas users about that: what kind of > > >> syntax you would like, what ideas you have... > > >> > > >> One idea I have would be a standard syntax for the URL received by the > > >> CGI script, so that the displayed WebPage would be automatically > > >> selected from it. It could be something as simple as > > >> "http://myapp.com/". > > >> > > >> Thanks in advance for your comments. > > >> > > >> Regards, > > >> > > >> -- > > >> Beno?t Minisini > > >> > > >> > > ------------------------------------------------------------------------------ > > >> Try before you buy = See our experts in action! > > >> The most comprehensive online learning library for Microsoft developers > > >> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > > >> Metro Style Apps, more. Free future releases when you subscribe now! > > >> http://p.sf.net/sfu/learndevnow-dev2 > > >> _______________________________________________ > > >> Gambas-user mailing list > > >> Gambas-user at lists.sourceforge.net > > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > ------------------------------------------------------------------------------ > > > Try before you buy = See our experts in action! > > > The most comprehensive online learning library for Microsoft developers > > > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > > > Metro Style Apps, more. Free future releases when you subscribe now! > > > http://p.sf.net/sfu/learndevnow-dev2 > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > ------------------------------------------------------------------------------ > > Try before you buy = See our experts in action! > > The most comprehensive online learning library for Microsoft developers > > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > > Metro Style Apps, more. Free future releases when you subscribe now! > > http://p.sf.net/sfu/learndevnow-dev2 > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...2524... Sun Jan 29 10:08:13 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 29 Jan 2012 09:08:13 +0000 Subject: [Gambas-user] Issue 206 in gambas: Can't compile Gambas3 Message-ID: <0-6813199134517018827-9494703941182062106-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 206 by john.aaron.rose at ...626...: Can't compile Gambas3 http://code.google.com/p/gambas/issues/detail?id=206 Not sure if this is best place to report this. notable to put on mailing list as none of my messages get there: don't even receive acknowledgements. Using Ubuntu Lucid. Can't generate .txt of output directly. Get: bash: Temporary/output.txt: No such file or directory. Have attached console output by copy & paste. bash: Temporary/output.txt: No such file or directory My webcam works fine so surely the v4l2 stuff is present. Anyway, I've installed a libpt plugin for v4l2: only package I could find for v4l/v4l2 that was not already installed. Still get the same problem on 'sudo make install'. I noticed that there are messages for each X of form: gbc: error: Component not found: gb.X where X is: sdl.sound image.io pdf net.curl v4l I also noticed that the ./Configure -C had messages: || || THESE COMPONENTS ARE DISABLED: || - gb.cairo || - gb.db.mysql || - gb.db.odbc || - gb.db.postgresql || - gb.db.sqlite2 || - gb.dbus || - gb.desktop || - gb.gtk || - gb.image.imlib || - gb.image.io || - gb.net.curl || - gb.net.smtp || - gb.opengl || - gb.pdf || - gb.sdl || - gb.sdl.sound || - gb.v4l || - gb.xml || It looks to me like there's something fundamentally wrong with the Gambas trunk stuff. Any ideas? Attachments: Gambas3-reconf-all.txt 5.6 KB Gambas3 - Configure -C.txt 24.2 KB Gambas3 - make.txt 17.0 KB Gambas3 - sudo make install.txt 19.9 KB From gambas at ...1... Sun Jan 29 12:55:07 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 29 Jan 2012 12:55:07 +0100 Subject: [Gambas-user] Gambas WebPage In-Reply-To: <4F23C888.8070400@...1...> References: <4F23C888.8070400@...1...> Message-ID: <4F25339B.40100@...1...> Le 28/01/2012 11:06, Beno?t Minisini a ?crit : > Hi all, > > I have started the support of a new kind of "form" in the IDE, the > "WebPage". > ... My dear, I see a lot of confusion in these answers! > Will we have access to the Request and Response just like in asp/jsp? You already have an entire ASP-like interface in gb.web. See the wiki documentation for more details. WebPage is just a way of sending an HTML page from a CGI script easier than using PRINT directly. > Will it be possible to display a native HTML/PHP code in it like in > ? Why to depend on ASP? What are you talking about? On the server side, this is Gambas. On the client, JavaScript. > This webpage does it replace the .form and .class files we use? What are you talking about? (bis) There is no relation at all between GUI forms and WebPage! > First, the security implications. Will real webpages be able to use > that syntax?. A nice feature would be a whitelist of allowed pages > that can be executed within a form, maybe with the include tag. I think the EXPORT keyword could be used to mark the WebPage than can actually be printed from an URL, the other ones begin only printable through an <%INCLUDE%> or explicitely. > Second, and most important. How would you manage to call each event > of a form input object, like a textbox? How could someone use the > value of a textbox, for example? What happens if two form objects have > the same "name" attribute? When an input button is pressed, the user > is normally redirected to the "action" webpage, will you override this > to execute an event and let the user choose? I dunno at the moment. We can imagine that a WebPage can raise an event when its URL receive a form post. A WebPage could have a property to register which URL it is associated with. A next step would be something like "ASP.net", i.e. more conventions on how the HTML interacts with the server code, HTLM controls... But this is not a goal at the moment. Regards, -- Beno?t Minisini From jussi.lahtinen at ...626... Sun Jan 29 14:15:07 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 29 Jan 2012 15:15:07 +0200 Subject: [Gambas-user] Location of the form In-Reply-To: <33219801.post@...1379...> References: <33219801.post@...1379...> Message-ID: Maybe this is issue of your window manager. At least with xfwm4 I cannot place windows on panels. Jussi On Sat, Jan 28, 2012 at 15:07, abbat wrote: > > It's not a clone topic. > I'm trying to ask clearly so next. > > http://old.nabble.com/file/p33219801/123.jpg > > Form location #1 > > Fmain.X = 80 > Fmain.Y = 80 > > Form location #2 > > Fmain.X = 300 > Fmain.Y = 570 > > Form location #3 > > Fmain.X = 350 > Fmain.Y = 750 (limit is 570) > > Form location #4 > > How to locate my form there? > > Thanks > > > > -- > View this message in context: > http://old.nabble.com/Location-of-the-form-tp33219801p33219801.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From abbat.81 at ...787... Sun Jan 29 14:23:18 2012 From: abbat.81 at ...787... (abbat) Date: Sun, 29 Jan 2012 05:23:18 -0800 (PST) Subject: [Gambas-user] Location of the form In-Reply-To: References: <33219801.post@...1379...> Message-ID: <33224029.post@...1379...> This is issue of linux. in Lxde I can not place windows on panel too. But if Screen.Height = 100% I'd like to place my window anywhere despite any panel. Jussi Lahtinen wrote: > > Maybe this is issue of your window manager. > At least with xfwm4 I cannot place windows on panels. > > Jussi > > > > On Sat, Jan 28, 2012 at 15:07, abbat wrote: > >> >> It's not a clone topic. >> I'm trying to ask clearly so next. >> >> http://old.nabble.com/file/p33219801/123.jpg >> >> Form location #1 >> >> Fmain.X = 80 >> Fmain.Y = 80 >> >> Form location #2 >> >> Fmain.X = 300 >> Fmain.Y = 570 >> >> Form location #3 >> >> Fmain.X = 350 >> Fmain.Y = 750 (limit is 570) >> >> Form location #4 >> >> How to locate my form there? >> >> Thanks >> >> >> >> -- >> View this message in context: >> http://old.nabble.com/Location-of-the-form-tp33219801p33219801.html >> Sent from the gambas-user mailing list archive at Nabble.com. >> >> >> >> ------------------------------------------------------------------------------ >> Try before you buy = See our experts in action! >> The most comprehensive online learning library for Microsoft developers >> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, >> Metro Style Apps, more. Free future releases when you subscribe now! >> http://p.sf.net/sfu/learndevnow-dev2 >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://old.nabble.com/Location-of-the-form-tp33219801p33224029.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...2524... Sun Jan 29 14:24:01 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 29 Jan 2012 13:24:01 +0000 Subject: [Gambas-user] Issue 206 in gambas: Can't compile Gambas3 In-Reply-To: <0-6813199134517018827-9494703941182062106-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-9494703941182062106-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-9494703941182062106-gambas=googlecode.com@...2524...> Comment #1 on issue 206 by jussi.la... at ...626...: Can't compile Gambas3 http://code.google.com/p/gambas/issues/detail?id=206 Have you installed all needed -devs? http://gambasdoc.org/help/install/ubuntu?view From gambas at ...2524... Sun Jan 29 16:23:26 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 29 Jan 2012 15:23:26 +0000 Subject: [Gambas-user] Issue 206 in gambas: Can't compile Gambas3 In-Reply-To: <1-6813199134517018827-9494703941182062106-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-9494703941182062106-gambas=googlecode.com@...2524...> <0-6813199134517018827-9494703941182062106-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-9494703941182062106-gambas=googlecode.com@...2524...> Comment #2 on issue 206 by john.aaron.rose at ...626...: Can't compile Gambas3 http://code.google.com/p/gambas/issues/detail?id=206 Please provide the names of these devs and (if not packages) where they may be obtained from. From gambas at ...2524... Sun Jan 29 16:31:28 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 29 Jan 2012 15:31:28 +0000 Subject: [Gambas-user] Issue 206 in gambas: Can't compile Gambas3 In-Reply-To: <2-6813199134517018827-9494703941182062106-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-9494703941182062106-gambas=googlecode.com@...2524...> <0-6813199134517018827-9494703941182062106-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-9494703941182062106-gambas=googlecode.com@...2524...> Comment #3 on issue 206 by jussi.la... at ...626...: Can't compile Gambas3 http://code.google.com/p/gambas/issues/detail?id=206 See the link I posted! From gambas at ...2524... Sun Jan 29 16:50:31 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 29 Jan 2012 15:50:31 +0000 Subject: [Gambas-user] Issue 206 in gambas: Can't compile Gambas3 In-Reply-To: <3-6813199134517018827-9494703941182062106-gambas=googlecode.com@...2524...> References: <3-6813199134517018827-9494703941182062106-gambas=googlecode.com@...2524...> <0-6813199134517018827-9494703941182062106-gambas=googlecode.com@...2524...> Message-ID: <4-6813199134517018827-9494703941182062106-gambas=googlecode.com@...2524...> Comment #4 on issue 206 by john.aaron.rose at ...626...: Can't compile Gambas3 http://code.google.com/p/gambas/issues/detail?id=206 Sorry about that: I didn't notice the link. Just ran the apt-get. Got: The following packages have unmet dependencies. libsdl-mixer1.2-dev: Depends: libvorbis-dev but it is not going to be installed libsdl-sound1.2-dev: Depends: libvorbis-dev but it is not going to be installed E: Broken packages All these 3 packages (including libvorbis-dev) are in the Ubuntu repositories. When I try libvorbis-dev, I get: ibvorbis-dev: Depends: libvorbis0a (=1.2.3-3ubuntu1) but 1.3.1-1ubuntu1~ppa1~lucid1 is to be installed Depends: libvorbisenc2 (=1.2.3-3ubuntu1) but 1.3.1-1ubuntu1~ppa1~lucid1 is to be installed Depends: libvorbisfile3 (=1.2.3-3ubuntu1) but 1.3.1-1ubuntu1~ppa1~lucid1 is to be installed I can't work out which ppa it doesn't like. From gambas at ...2524... Sun Jan 29 17:06:36 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 29 Jan 2012 16:06:36 +0000 Subject: [Gambas-user] Issue 206 in gambas: Can't compile Gambas3 In-Reply-To: <4-6813199134517018827-9494703941182062106-gambas=googlecode.com@...2524...> References: <4-6813199134517018827-9494703941182062106-gambas=googlecode.com@...2524...> <0-6813199134517018827-9494703941182062106-gambas=googlecode.com@...2524...> Message-ID: <5-6813199134517018827-9494703941182062106-gambas=googlecode.com@...2524...> Comment #5 on issue 206 by jussi.la... at ...626...: Can't compile Gambas3 http://code.google.com/p/gambas/issues/detail?id=206 I think those are needed only for SDL, and so you should be able to compile gambas without them. If all others were installed, try to compile again. From bbg.holfarm at ...2767... Sun Jan 29 17:45:29 2012 From: bbg.holfarm at ...2767... (rogerHPH) Date: Sun, 29 Jan 2012 08:45:29 -0800 (PST) Subject: [Gambas-user] INITIAL Location of Form Message-ID: <33224807.post@...1379...> How can I position a form at X=0, Y=0 at Program Start, before any other action, e.g. Timer or button_click ? I want to use full width of screen, i.e. to push the Ubuntu v11 "Launcher" bar off the Left Hand side of the screen. The Code below will position the Form anywhere on the screen on Program Start, EXCEPT at 0,0. Co-ordinates in either SUB -new(), or in SUB Form_Open() work fine, except for any position under the "Launcher" bar. However, the Button_Click works and puts the Form at 0,0 and pushes the "Launcher" bar off screen, - but I want this to happen at program start ! ' Gambas class file PUBLIC SUB _new() FMain.X = 800 FMain.Y = 600 END PUBLIC SUB Form_Open() ' FMain.X = 1000 ' FMain.Y = 100 END PUBLIC SUB Button1_Click() FMain.X = 0 FMain.Y = 0 WAIT 1 QUIT END -- View this message in context: http://old.nabble.com/INITIAL-Location-of-Form-tp33224807p33224807.html Sent from the gambas-user mailing list archive at Nabble.com. From mohareve at ...626... Sun Jan 29 18:30:04 2012 From: mohareve at ...626... (M. Cs.) Date: Sun, 29 Jan 2012 18:30:04 +0100 Subject: [Gambas-user] Disabling the window's buttons on forms Message-ID: Hello! How could I disable the Maximize, Minimize and Close buttons on a Form? If I used a borderless form, I'm losing the ability of resizing it, and If I use a form with borders, and If I start a Music on this form, it won't stop upon Close button's being pushed. Any idea? Csaba From gambas at ...2524... Sun Jan 29 18:30:58 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 29 Jan 2012 17:30:58 +0000 Subject: [Gambas-user] Issue 206 in gambas: Can't compile Gambas3 In-Reply-To: <5-6813199134517018827-9494703941182062106-gambas=googlecode.com@...2524...> References: <5-6813199134517018827-9494703941182062106-gambas=googlecode.com@...2524...> <0-6813199134517018827-9494703941182062106-gambas=googlecode.com@...2524...> Message-ID: <6-6813199134517018827-9494703941182062106-gambas=googlecode.com@...2524...> Comment #6 on issue 206 by john.aaron.rose at ...626...: Can't compile Gambas3 http://code.google.com/p/gambas/issues/detail?id=206 Not much has changed. The make gives: Installing the gambas examples... Compiling Automation/DBusExplorer/... gbc: error: Component not found: gb.dbus Compiling Basic/Blights/... OK Compiling Basic/Collection/... OK Compiling Basic/DragNDrop/... OK Compiling Basic/Object/... OK Compiling Basic/Timer/... OK Compiling Control/ArrayOfControls/... OK Compiling Control/Embedder/... gbc: error: Component not found: gb.desktop Compiling Control/HighlightEditor/... OK Compiling Control/TextEdit/... OK Compiling Control/TreeView/... OK Compiling Control/Wizard/... gbc: error: Component not found: gb.desktop Compiling Database/Database/... OK Compiling Database/MySQLExample/... gbc: error: Component not found: gb.db.mysql Compiling Database/PictureDatabase/... OK Compiling Drawing/AnalogWatch/... OK Compiling Drawing/Barcode/... OK Compiling Drawing/Chart/... OK Compiling Drawing/Clock/... OK Compiling Drawing/Gravity/... OK Compiling Drawing/GSLSpline/... OK Compiling Drawing/OnScreenDisplay/... OK Compiling Drawing/Painting/... OK Compiling Games/BeastScroll/... gbc: error: Component not found: gb.image.io Compiling Games/Concent/... gbc: error: Component not found: gb.sdl.sound Compiling Games/DeepSpace/... OK Compiling Games/GameOfLife/... OK Compiling Games/GNUBoxWorld/... OK Compiling Games/Puzzle1To8/... OK Compiling Games/RobotFindsKitten/... OK Compiling Games/Snake/... gbc: error: Component not found: gb.sdl.sound Compiling Games/Solitaire/... OK Compiling Games/StarField/... gbc: error: Component not found: gb.image.io Compiling Image/ImageViewer/... OK Compiling Image/Lighttable/... OK Compiling Misc/Console/... OK Compiling Misc/Evaluator/... OK Compiling Misc/Explorer/... OK Compiling Misc/Notepad/... OK Compiling Misc/PDFViewer/... gbc: error: Component not found: gb.pdf Compiling Networking/ClientSocket/... OK Compiling Networking/DnsClient/... OK Compiling Networking/HTTPGet/... gbc: error: Component not found: gb.net.curl Compiling Networking/HTTPPost/... gbc: error: Component not found: gb.net.curl Compiling Networking/SerialPort/... OK Compiling Networking/ServerSocket/... gbc: error: Component not found: gb.net.curl Compiling Networking/UDPServerClient/... OK Compiling Networking/WebBrowser/... OK Compiling OpenGL/3DWebCam/... gbc: error: Component not found: gb.image.io Compiling OpenGL/GambasGears/... gbc: error: Component not found: gb.image.io Compiling OpenGL/NeHeTutorial/... gbc: error: Component not found: gb.image.io Compiling OpenGL/NeHeTutorialShell/... OK Compiling OpenGL/PDFPresentation/... gbc: error: Component not found: gb.opengl Compiling OpenGL/TunnelSDL/... gbc: error: Component not found: gb.image.io Compiling Printing/Printing/... OK Compiling Printing/ReportExample/... OK Compiling Sound/CDPlayer/... gbc: error: Component not found: gb.sdl.sound Compiling Sound/MusicPlayer/... gbc: error: Component not found: gb.sdl.sound Compiling Video/MoviePlayer/... OK Compiling Video/MyWebCam/... gbc: error: Component not found: gb.v4l Compiling Video/WebCam/... gbc: error: Component not found: gb.v4l make[2]: Nothing to be done for `install-data-am'. make[2]: Leaving directory `/home/john/Gambas/trunk/examples' make[1]: Leaving directory `/home/john/Gambas/trunk/examples' Making install in . make[1]: Entering directory `/home/john/Gambas/trunk' make[2]: Entering directory `/home/john/Gambas/trunk' || || Unable to compile gambas3 || From gambas at ...2524... Sun Jan 29 20:01:24 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 29 Jan 2012 19:01:24 +0000 Subject: [Gambas-user] Issue 206 in gambas: Can't compile Gambas3 In-Reply-To: <6-6813199134517018827-9494703941182062106-gambas=googlecode.com@...2524...> References: <6-6813199134517018827-9494703941182062106-gambas=googlecode.com@...2524...> <0-6813199134517018827-9494703941182062106-gambas=googlecode.com@...2524...> Message-ID: <7-6813199134517018827-9494703941182062106-gambas=googlecode.com@...2524...> Comment #7 on issue 206 by jussi.la... at ...626...: Can't compile Gambas3 http://code.google.com/p/gambas/issues/detail?id=206 You have libxtst-dev installed? Did you try to compile from beginning; ./reconf-all, ./configure -C, etc? Also full logs are needed to find out what is happening. If this command isn't working I think there is something wrong with your system: ( ./reconf-all && ./configure -C && make && sudo make install ) > ~/Desktop/compile.log 2>&1 From wally at ...2037... Sun Jan 29 21:03:55 2012 From: wally at ...2037... (Wally) Date: Sun, 29 Jan 2012 21:03:55 +0100 Subject: [Gambas-user] extern library Message-ID: <3525035.btJeaiBlXI@...46...> Hi how can i tell Gambas3, "Library" command to use "libMyLib.so" in Project Dir or somewhere else ? ' Gambas class file Library "libMyLib:0" '<--- Private Extern ...... thx wally From ron at ...1740... Sun Jan 29 21:17:04 2012 From: ron at ...1740... (Ron) Date: Sun, 29 Jan 2012 21:17:04 +0100 Subject: [Gambas-user] extern library In-Reply-To: <3525035.btJeaiBlXI@...46...> References: <3525035.btJeaiBlXI@...46...> Message-ID: Modify your systems ldconfig config. Regards, Ron_2nd. Op 29 jan. 2012 21:04 schreef "Wally" het volgende: > Hi > > how can i tell Gambas3, "Library" command to use > "libMyLib.so" in Project Dir or somewhere else ? > > ' Gambas class file > Library "libMyLib:0" '<--- > > Private Extern ...... > > thx wally > > > > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From wally at ...2037... Sun Jan 29 21:33:03 2012 From: wally at ...2037... (Wally) Date: Sun, 29 Jan 2012 21:33:03 +0100 Subject: [Gambas-user] extern library In-Reply-To: References: <3525035.btJeaiBlXI@...46...> Message-ID: <1756961.yBaByDlCDY@...46...> No other way ? On Sunday, January 29, 2012 21:17:04 Ron wrote: > Modify your systems ldconfig config. > > Regards, > Ron_2nd. > > Op 29 jan. 2012 21:04 schreef "Wally" het volgende: > > Hi > > > > how can i tell Gambas3, "Library" command to use > > "libMyLib.so" in Project Dir or somewhere else ? > > > > ' Gambas class file > > Library "libMyLib:0" '<--- > > > > Private Extern ...... > > > > thx wally > > > > > > > > ------------------------------------------------------------------------ > > ------ Try before you buy = See our experts in action! > > The most comprehensive online learning library for Microsoft developers > > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > > Metro Style Apps, more. Free future releases when you subscribe now! > > http://p.sf.net/sfu/learndevnow-dev2 > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > ---------------------------------------------------------------------------- > -- Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...2524... Sun Jan 29 21:36:00 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 29 Jan 2012 20:36:00 +0000 Subject: [Gambas-user] Issue 206 in gambas: Can't compile Gambas3 In-Reply-To: <7-6813199134517018827-9494703941182062106-gambas=googlecode.com@...2524...> References: <7-6813199134517018827-9494703941182062106-gambas=googlecode.com@...2524...> <0-6813199134517018827-9494703941182062106-gambas=googlecode.com@...2524...> Message-ID: <8-6813199134517018827-9494703941182062106-gambas=googlecode.com@...2524...> Comment #8 on issue 206 by john.aaron.rose at ...626...: Can't compile Gambas3 http://code.google.com/p/gambas/issues/detail?id=206 I didn't have libxtst-dev installed. I installed it OK. It didn't give the 'Unable to compile Gambas' message. It did give 'gbc: error: Component not found: gb.sdl.sound' and others, none of which I use. I've attached the compile.log if you'd like to have a quick look. I then loaded Gambas3 Ok and loaded my Test project. It showed Gambas version as 3.0.90 (r172). 3.0.90 is the contents of the VERSION file in the trunk directory. So I presume that I am now using the dev version. BTW how does this version number correspond to the #number (I think that it was 4421) on the sourceforge repository? Thanks for your help, Jussi. Attachments: compile.log 280 KB From gambas at ...2524... Sun Jan 29 22:05:15 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 29 Jan 2012 21:05:15 +0000 Subject: [Gambas-user] Issue 206 in gambas: Can't compile Gambas3 In-Reply-To: <8-6813199134517018827-9494703941182062106-gambas=googlecode.com@...2524...> References: <8-6813199134517018827-9494703941182062106-gambas=googlecode.com@...2524...> <0-6813199134517018827-9494703941182062106-gambas=googlecode.com@...2524...> Message-ID: <9-6813199134517018827-9494703941182062106-gambas=googlecode.com@...2524...> Comment #9 on issue 206 by jussi.la... at ...626...: Can't compile Gambas3 http://code.google.com/p/gambas/issues/detail?id=206 > I didn't have libxtst-dev installed. I don't understand why you didn't have it installed. It is on the list of -devs I gave to you at the first place. Download current stable version from http://gambas.sourceforge.net/en/main.html . Or for development version use svn http://gambasdoc.org/help/howto/svn?view . For further help with gambas, get your subscription to mailing list working! This bug report is invalid. From gambas at ...2524... Sun Jan 29 23:18:56 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 29 Jan 2012 22:18:56 +0000 Subject: [Gambas-user] Issue 206 in gambas: Can't compile Gambas3 In-Reply-To: <9-6813199134517018827-9494703941182062106-gambas=googlecode.com@...2524...> References: <9-6813199134517018827-9494703941182062106-gambas=googlecode.com@...2524...> <0-6813199134517018827-9494703941182062106-gambas=googlecode.com@...2524...> Message-ID: <10-6813199134517018827-9494703941182062106-gambas=googlecode.com@...2524...> Updates: Status: Invalid Labels: -Version Version-TRUNK Comment #10 on issue 206 by benoit.m... at ...626...: Can't compile Gambas3 http://code.google.com/p/gambas/issues/detail?id=206 Yep. This is a bug tracker, not a forum, not a mailing-list. Please post your compilation problems on the mailing-list so that someone can help you without polluting the bug tracker! Thanks in advance. From gambas at ...2524... Sun Jan 29 23:58:05 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 29 Jan 2012 22:58:05 +0000 Subject: [Gambas-user] Issue 206 in gambas: Can't compile Gambas3 In-Reply-To: <10-6813199134517018827-9494703941182062106-gambas=googlecode.com@...2524...> References: <10-6813199134517018827-9494703941182062106-gambas=googlecode.com@...2524...> <0-6813199134517018827-9494703941182062106-gambas=googlecode.com@...2524...> Message-ID: <11-6813199134517018827-9494703941182062106-gambas=googlecode.com@...2524...> Comment #11 on issue 206 by john.aaron.rose at ...626...: Can't compile Gambas3 http://code.google.com/p/gambas/issues/detail?id=206 Sorry about using the 'bug reporting' to report a compilation problem. I did say on the original report that I didn't know where to report the problem. Looking at: http://gambas.sourceforge.net/en/main.html it doesn't say where compilation problems should be reported. Also, any message that I currently send to the mailing list is being ignored without even an acknowledgement email. I don't understand either why libxtst-dev was not installed. I copied the Lucid apt-get command from the Ubuntu webpage. Could it be due to the apt-get resulting in: The following packages have unmet dependencies. libsdl-mixer1.2-dev: Depends: libvorbis-dev but it is not going to be installed libsdl-sound1.2-dev: Depends: libvorbis-dev but it is not going to be installed E: Broken packages I have a feeling that Gambas3 is not using the newly compiled Gambas3 (i.e. /usr/bin/gambas3/gambas has a December date). This is why I asked about the version. From gambas at ...2524... Mon Jan 30 00:16:09 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 29 Jan 2012 23:16:09 +0000 Subject: [Gambas-user] Issue 206 in gambas: Can't compile Gambas3 In-Reply-To: <11-6813199134517018827-9494703941182062106-gambas=googlecode.com@...2524...> References: <11-6813199134517018827-9494703941182062106-gambas=googlecode.com@...2524...> <0-6813199134517018827-9494703941182062106-gambas=googlecode.com@...2524...> Message-ID: <12-6813199134517018827-9494703941182062106-gambas=googlecode.com@...2524...> Comment #12 on issue 206 by benoit.m... at ...626...: Can't compile Gambas3 http://code.google.com/p/gambas/issues/detail?id=206 The e-mail used for sending messages to the mailing-list (john.aaron.rose at ...626...) must be exactly the same than the e-mail used when subscribing (john.aaron.rose at ...1601...) From rterry at ...1823... Mon Jan 30 03:57:44 2012 From: rterry at ...1823... (richard terry) Date: Mon, 30 Jan 2012 13:57:44 +1100 Subject: [Gambas-user] web cam question Message-ID: <201201301357.44379.rterry@...1823...> HI List, I'm using an Ipevo2 web cam in my app. on the barrel of this webcam is a little button which, in windows, if clicked > takes a shot > windows software. I wondered if anyone would now how to access clicking this button in linux. Regards richard From kevinfishburne at ...1887... Mon Jan 30 05:38:54 2012 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Sun, 29 Jan 2012 23:38:54 -0500 Subject: [Gambas-user] web cam question In-Reply-To: <201201301357.44379.rterry@...1823...> References: <201201301357.44379.rterry@...1823...> Message-ID: <4F261EDE.5070603@...1887...> On 01/29/2012 09:57 PM, richard terry wrote: > HI List, > > I'm using an Ipevo2 web cam in my app. > > on the barrel of this webcam is a little button which, in windows, if clicked >> takes a shot> windows software. > I wondered if anyone would now how to access clicking this button in linux. It may act as keyboard and send a key combination when the button is pressed. Not sure how to record keyboard input in GAMBAS, though. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From adamnt42 at ...626... Mon Jan 30 05:49:36 2012 From: adamnt42 at ...626... (GMail) Date: Mon, 30 Jan 2012 15:19:36 +1030 Subject: [Gambas-user] web cam question In-Reply-To: <201201301357.44379.rterry@...1823...> References: <201201301357.44379.rterry@...1823...> Message-ID: <1327898976.3448.6.camel@...2688...> On Mon, 2012-01-30 at 13:57 +1100, richard terry wrote: > HI List, > > I'm using an Ipevo2 web cam in my app. > > on the barrel of this webcam is a little button which, in windows, if clicked > > takes a shot > windows software. > > I wondered if anyone would now how to access clicking this button in linux. > > Regards > > richard > Richard, I did a bit of a web search on "Ipevo2 web cam" and found the following in a post to a SUSE forum: "I thought I'd share that the IPVEO(sic) Point 2 View (aka P2V) works perfectly in linux using the uvc drivers; the capture and focus buttons work without fault and I haven't noticed any performance problems. On Debian/Ubuntu you can install it and a useful webcam controlling program by doing the following: Code: sudo apt-get install guvcview Cheers." Short of any other results, I guess you may try looking at the guvcview source code from somewhere. B From rterry at ...1823... Mon Jan 30 08:09:59 2012 From: rterry at ...1823... (richard terry) Date: Mon, 30 Jan 2012 18:09:59 +1100 Subject: [Gambas-user] web cam question In-Reply-To: <1327898976.3448.6.camel@...2688...> References: <201201301357.44379.rterry@...1823...> <1327898976.3448.6.camel@...2688...> Message-ID: <201201301809.59375.rterry@...1823...> On Monday 30 January 2012 15:49:36 GMail wrote: thanks, I'll digest this later when I get home. richard > On Mon, 2012-01-30 at 13:57 +1100, richard terry wrote: > > HI List, > > > > I'm using an Ipevo2 web cam in my app. > > > > on the barrel of this webcam is a little button which, in windows, if > > clicked > > > > > takes a shot > windows software. > > > > I wondered if anyone would now how to access clicking this button in > > linux. > > > > Regards > > > > richard > > Richard, > > I did a bit of a web search on "Ipevo2 web cam" and found the following > in a post to a SUSE forum: > > "I thought I'd share that the IPVEO(sic) Point 2 View (aka P2V) works > perfectly in linux using the uvc drivers; the capture and focus buttons > work without fault and I haven't noticed any performance problems. On > Debian/Ubuntu you can install it and a useful webcam controlling program > by doing the following: > Code: > sudo apt-get install guvcview > Cheers." > > Short of any other results, I guess you may try looking at the guvcview > source code from somewhere. > > B > > --------------------------------------------------------------------------- > --- Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From bbruen at ...2308... Mon Jan 30 05:52:33 2012 From: bbruen at ...2308... (Bruce Bruen) Date: Mon, 30 Jan 2012 15:22:33 +1030 Subject: [Gambas-user] web cam question In-Reply-To: <201201301357.44379.rterry@...1823...> References: <201201301357.44379.rterry@...1823...> Message-ID: <1327899153.3448.9.camel@...2688...> On Mon, 2012-01-30 at 13:57 +1100, richard terry wrote: > HI List, > > I'm using an Ipevo2 web cam in my app. > > on the barrel of this webcam is a little button which, in windows, if clicked > > takes a shot > windows software. > > I wondered if anyone would now how to access clicking this button in linux. > > Regards > > richard >From here: http://forums.opensuse.org/english/get-technical-help-here/hardware/430353-driver-ipevo-webcam.html someone wrote: "IPVEO Point 2 View (aka P2V) works perfectly in linux using the uvc drivers; the capture and focus buttons work without fault and I haven't noticed any performance problems. On Debian/Ubuntu you can install it and a useful webcam controlling program by doing the following: sudo apt-get install guvcview" So failing any other result, I guess you might acquire the source for guvcview from somewhere and analyse it. B From gambas.fr at ...626... Mon Jan 30 11:25:19 2012 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 30 Jan 2012 11:25:19 +0100 Subject: [Gambas-user] How to know Height and Width of screen? In-Reply-To: References: <33187109.post@...1379...> <4F1D489D.4050508@...1...> <33213054.post@...1379...> Message-ID: 2012/1/27 Jussi Lahtinen : > Screen.Height should return the actual screen height. > > Jussi > > > > On Fri, Jan 27, 2012 at 12:13, abbat wrote: > >> >> This works, but it is WORKAREA. >> If my resolutions is 1280 x 1024 and panel has 26 px and situated below, >> Then Desktop.Height = (1024-26) >> >> >> Beno?t Minisini wrote: >> > >> > Le 23/01/2012 12:32, abbat a ?crit : >> >> >> >> >> >> in VB.NET I get it by this way: >> >> >> >> Dim yy As Integer = >> >> System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height >> >> Dim xx As Integer = >> >> System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width >> >> >> >> How to do it in Gambas 3? >> >> >> >> Thanks >> > >> > Desktop.Width / Desktop.Height or Desktop.AvailableWidth / >> > Desktop.AvailableHeight. >> > >> > If you need a specific screen, you must use the Screens class. >> > >> > Screens[> > >> > So it's almost the same thing, with less characters to type. :-) >> > >> > -- >> > Beno?t Minisini >> > >> > >> ------------------------------------------------------------------------------ >> > Try before you buy = See our experts in action! >> > The most comprehensive online learning library for Microsoft developers >> > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, >> > Metro Style Apps, more. Free future releases when you subscribe now! >> > http://p.sf.net/sfu/learndevnow-dev2 >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > >> > >> >> -- >> View this message in context: >> http://old.nabble.com/How-to-know-Height-and-Width-of-screen--tp33187109p33213054.html >> Sent from the gambas-user mailing list archive at Nabble.com. >> >> >> >> ------------------------------------------------------------------------------ >> Try before you buy = See our experts in action! >> The most comprehensive online learning library for Microsoft developers >> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, >> Metro Style Apps, more. Free future releases when you subscribe now! >> http://p.sf.net/sfu/learndevnow-dev2 >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user you need to use screens (Benoit is tired) Screens[0].Height return the full height Screens[0].AVailableheight return the height minus the panels etc http://gambasdoc.org/help/comp/gb.qt4/screen?v3 -- Fabien Bodard From gambas.fr at ...626... Mon Jan 30 11:26:33 2012 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 30 Jan 2012 11:26:33 +0100 Subject: [Gambas-user] How to know Height and Width of screen? In-Reply-To: References: <33187109.post@...1379...> <4F1D489D.4050508@...1...> <33213054.post@...1379...> Message-ID: 2012/1/30 Fabien Bodard : > 2012/1/27 Jussi Lahtinen : >> Screen.Height should return the actual screen height. >> >> Jussi >> >> >> >> On Fri, Jan 27, 2012 at 12:13, abbat wrote: >> >>> >>> This works, but it is WORKAREA. >>> If my resolutions is 1280 x 1024 and panel has 26 px and situated below, >>> Then Desktop.Height = (1024-26) >>> >>> >>> Beno?t Minisini wrote: >>> > >>> > Le 23/01/2012 12:32, abbat a ?crit : >>> >> >>> >> >>> >> in VB.NET I get it by this way: >>> >> >>> >> Dim yy As Integer = >>> >> System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height >>> >> Dim xx As Integer = >>> >> System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width >>> >> >>> >> How to do it in Gambas 3? >>> >> >>> >> Thanks >>> > >>> > Desktop.Width / Desktop.Height or Desktop.AvailableWidth / >>> > Desktop.AvailableHeight. >>> > >>> > If you need a specific screen, you must use the Screens class. >>> > >>> > Screens[>> > >>> > So it's almost the same thing, with less characters to type. :-) >>> > >>> > -- >>> > Beno?t Minisini >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > Try before you buy = See our experts in action! >>> > The most comprehensive online learning library for Microsoft developers >>> > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, >>> > Metro Style Apps, more. Free future releases when you subscribe now! >>> > http://p.sf.net/sfu/learndevnow-dev2 >>> > _______________________________________________ >>> > Gambas-user mailing list >>> > Gambas-user at lists.sourceforge.net >>> > https://lists.sourceforge.net/lists/listinfo/gambas-user >>> > >>> > >>> >>> -- >>> View this message in context: >>> http://old.nabble.com/How-to-know-Height-and-Width-of-screen--tp33187109p33213054.html >>> Sent from the gambas-user mailing list archive at Nabble.com. >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> Try before you buy = See our experts in action! >>> The most comprehensive online learning library for Microsoft developers >>> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, >>> Metro Style Apps, more. Free future releases when you subscribe now! >>> http://p.sf.net/sfu/learndevnow-dev2 >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> ------------------------------------------------------------------------------ >> Try before you buy = See our experts in action! >> The most comprehensive online learning library for Microsoft developers >> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, >> Metro Style Apps, more. Free future releases when you subscribe now! >> http://p.sf.net/sfu/learndevnow-dev2 >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > you need to use screens (Benoit is tired) > > Screens[0].Height return the full height > Screens[0].AVailableheight return the height minus the panels > > etc > > http://gambasdoc.org/help/comp/gb.qt4/screen?v3 > > > > -- > Fabien Bodard Desktop.AvailableHeight does not exist -- Fabien Bodard From admhardsoft at ...253... Mon Jan 30 12:27:59 2012 From: admhardsoft at ...253... (=?iso-8859-1?Q?Tom=E1s_Rodriguez?=) Date: Mon, 30 Jan 2012 03:27:59 -0800 (PST) Subject: [Gambas-user] I DID IT!... Message-ID: <1327922879.34285.androidMobile@...2721...>

Hey, hey...
life has thrown me a lot of curves at first glance I thought this was fake despite the circumstances I never lost hope
http://caballos.us/breakingnews/51MichaelSullivan/ now im in this for the long run
just thought id share the wealth...

From jussi.lahtinen at ...626... Mon Jan 30 13:33:26 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 30 Jan 2012 14:33:26 +0200 Subject: [Gambas-user] How to know Height and Width of screen? In-Reply-To: References: <33187109.post@...1379...> <4F1D489D.4050508@...1...> <33213054.post@...1379...> Message-ID: > you need to use screens (Benoit is tired) > > Screens[0].Height return the full height > Screens[0].AVailableheight return the height minus the panels > > etc > > http://gambasdoc.org/help/comp/gb.qt4/screen?v3 > > No, you don't need, however you can. Screen.Height is enough, Screens[] is useful only if you have multiple screens. Jussi From muhamed.yousof at ...626... Mon Jan 30 13:43:30 2012 From: muhamed.yousof at ...626... (Muhamed Yousof) Date: Mon, 30 Jan 2012 14:43:30 +0200 Subject: [Gambas-user] how can I run gambas applications on windows Message-ID: Dear all, could any one give me detailed explanation for how to make applications for windows using Gambas -- Thanks and Best regards Mohamed Yousof +201061228632 From rolf.frogs at ...221... Mon Jan 30 13:44:13 2012 From: rolf.frogs at ...221... (Rolf Schmidt) Date: Mon, 30 Jan 2012 13:44:13 +0100 Subject: [Gambas-user] Problem with Rev. 4430 Message-ID: <4F26909D.9030007@...2594...> Hi Benoit, when I compile Gambas3 from current trunk (i.e. Rev. 4430) I get an error say, that there is no "make all" in gb.gsl. When I look into this directory no "Makefile" was build by configure. Disable the gsl package, Gambas is installable. reconf-all and configure didn't report any problems. Hope that helps to find the problem. Fine regards Rolf From gambas at ...2524... Mon Jan 30 13:46:38 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 30 Jan 2012 12:46:38 +0000 Subject: [Gambas-user] Issue 206 in gambas: Can't compile Gambas3 In-Reply-To: <12-6813199134517018827-9494703941182062106-gambas=googlecode.com@...2524...> References: <12-6813199134517018827-9494703941182062106-gambas=googlecode.com@...2524...> <0-6813199134517018827-9494703941182062106-gambas=googlecode.com@...2524...> Message-ID: <13-6813199134517018827-9494703941182062106-gambas=googlecode.com@...2524...> Comment #13 on issue 206 by john.aaron.rose at ...626...: Can't compile Gambas3 http://code.google.com/p/gambas/issues/detail?id=206 Thanks for that Benoit: how silly of me not to realise that changing googlemail to gmail affects mailing lists. I'll continue this thread on the mailing list now that I am able to post to it. From afroehlke at ...784... Mon Jan 30 14:23:02 2012 From: afroehlke at ...784... (=?iso-8859-1?Q?Andreas_Fr=F6hlke?=) Date: Mon, 30 Jan 2012 14:23:02 +0100 Subject: [Gambas-user] (no subject) In-Reply-To: <4F234BD3.2040907@...1...> References: <8D42310D957CFB46AA11921A711D4D16057DB6BF9D@...1899...> <4F202BE5.7090002@...1...> <8D42310D957CFB46AA11921A711D4D16057DB6BFCA@...1899...> <4F234BD3.2040907@...1...> Message-ID: <8D42310D957CFB46AA11921A711D4D16057DB6BFED@...1899...> Sorry, here it is Regards, Andreas -----Urspr?ngliche Nachricht----- Von: Beno?t Minisini [mailto:gambas at ...1...] Gesendet: Samstag, 28. Januar 2012 02:14 An: mailing list for gambas users Betreff: Re: [Gambas-user] (no subject) Le 27/01/2012 11:36, Andreas Fr?hlke a ?crit : > Hi again, > > thanks for the solution for question 1. I think i don't understood how the parameters padding, margin and spacing work in gambas3. Now i understood and it's fine :) > > 2. I've made a 2 screenshots of the same program in gambas3 and gambas2, so i hope you see what i mean. > > Regards > > Andreas > I need your project! -- Beno?t Minisini ------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -------------- next part -------------- A non-text attachment was scrubbed... Name: Test.tar.gz Type: application/x-gzip Size: 6528 bytes Desc: Test.tar.gz URL: From john.aaron.rose at ...626... Mon Jan 30 15:02:17 2012 From: john.aaron.rose at ...626... (John Rose) Date: Mon, 30 Jan 2012 14:02:17 +0000 Subject: [Gambas-user] Executing Shell command (also applies to Exec command), FMain form goes blank Message-ID: <1327932137.15308.230.camel@...2661...> On doing a Shell command (also applies to an Exec command), FMain form goes blank. This can be seen in the attached screenshots. 'Just after clicking Search button and before clicking Record button.png' shows the form before executing the Shell command and 'Just after clicking Record button.png' shows the screen after executing the Shell command. Code fragment: Public Sub ButtonRecord_Click() Dim sInstruction As String sInstruction = "get_iplayer --force --get Shock --output " & sDirectory & " --raw >" & sLogFilename & " 2>&1" Print "sInstruction=", sInstruction Shell sInstruction To sOutput Small project also attached. -------------- next part -------------- A non-text attachment was scrubbed... Name: Just after clicking Search button and before clicking Record button.png Type: image/png Size: 21590 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Just after clicking Record button.png Type: image/png Size: 3961 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Test.tar.gz Type: application/x-compressed-tar Size: 12323 bytes Desc: not available URL: From john.aaron.rose at ...626... Mon Jan 30 15:06:59 2012 From: john.aaron.rose at ...626... (John Rose) Date: Mon, 30 Jan 2012 14:06:59 +0000 Subject: [Gambas-user] Issue 206 in gambas: Can't compile Gambas3 Message-ID: <1327932419.15308.232.camel@...2661...> I used the Lucid section of the Gambas Ubuntu webpage to install the needed dev packages for compiling Gambas3. Running that 'apt-get install' gave a problem: The following packages have unmet dependencies. libsdl-mixer1.2-dev: Depends: libvorbis-dev but it is not going to be installed libsdl-sound1.2-dev: Depends: libvorbis-dev but it is not going to be installed E: Broken packages Does anyone have a solution to this? I didn't realise that 'apt-get install' stops once it finds a problem: I assumed that it would do the following (from the Lucid section of the Gambas webpage) package installs. So I installed all the packages following libsdl-mixer1.2-dev & libsdl-sound1.2-dev in the Lucid section of the Gambas Ubuntu page. However, the above problem re (libvorbis-dev) gives rise to: || THESE COMPONENTS ARE DISABLED: || - gb.sdl.sound followed later by a number of: gbc: error: Component not found: gb.sdl.sound Is it correct to say that this will only matter if gb.sdl is used by an app? The last messages from 'sudo make install' are: make[2]: Nothing to be done for `install-data-am'. make[2]: Leaving directory `/home/john/Gambas/trunk/examples' make[1]: Leaving directory `/home/john/Gambas/trunk/examples' Making install in . make[1]: Entering directory `/home/john/Gambas/trunk' make[2]: Entering directory `/home/john/Gambas/trunk' make[2]: Nothing to be done for `install-data-am'. make[2]: Leaving directory `/home/john/Gambas/trunk' make[1]: Leaving directory `/home/john/Gambas/trunk' Does "Nothing to be done for `install-data-am'" matter? The reason I ask is that /usr/bin/gambas3.gambas is still showing Date Modified as 31 December: it is the executable linked from /usr/bin/gambas3 which is the menu item created for Gambas3. I've noticed that in /usr/local/bin, there are a number of executables & links (e.g. for gambas3 linking to gambas3.gambas) with Date modified of today. Even when I invoke /usr/local/bin/gambas3, it still shows the same version (i.e. 3.0.90 r172). Would the version be the same between the stable 3.0 version & trunk's version (VERSION file contains 3.0.90)? PS I haven't attached the whole log from the compile of Gambas3 as it's too large for the mailing list. However, I've attached the script that I used to run the compile (including a cleanup beforehand): acknowledgement to Jussi Lahtine for supplying it. -------------- next part -------------- A non-text attachment was scrubbed... Name: CompileGambas.sh Type: application/x-shellscript Size: 411 bytes Desc: not available URL: From jussi.lahtinen at ...626... Mon Jan 30 15:13:12 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 30 Jan 2012 16:13:12 +0200 Subject: [Gambas-user] how can I run gambas applications on windows In-Reply-To: References: Message-ID: http://gambasdoc.org/help/doc/distro?en&view Jussi On Mon, Jan 30, 2012 at 14:43, Muhamed Yousof wrote: > Dear all, > > could any one give me detailed explanation for how to make applications for > windows using Gambas > > -- > Thanks and Best regards > Mohamed Yousof > +201061228632 > > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From john.aaron.rose at ...626... Mon Jan 30 15:13:36 2012 From: john.aaron.rose at ...626... (John Rose) Date: Mon, 30 Jan 2012 14:13:36 +0000 Subject: [Gambas-user] Database table row update Message-ID: <1327932816.15308.234.camel@...2661...> I'm using Gambas3.0. I have a database table Site with structure: CREATE TABLE site(_id Integer Primary Key AutoIncrement, site Text Not Null, latitude Float, longitude Float, image Blob, description Text, locality_id Integer, Foreign Key(locality_id) References locality(_id) On Delete Cascade On Update Cascade) I have a module's procedure intended to update an existing row (with _id = 2 which is the second row on the Site table) with new latitude, longitude, image & description. It is coded as (where ResultSite is the result of an SQL command resulting in a number of rows selected from Site): Public Sub UpdateSiteDetails(SiteIndex As Integer, Latitude As Float, Longitude As Float, ImagePath As String, Description As String) Print "Start Site Details Update" Print "New details are:" Print "SiteIndex=", SiteIndex Print "Latitude=", Latitude Print "Longitude=", Longitude Print "ImagePath=", ImagePath Print "Description=", Description DatabaseConnection.Begin ResultSite.MoveTo(SiteIndex) Print "Old details are:" Print "_id=", ResultSite["_id"] Print "Latitude=", ResultSite["latitude"] Print "Longitude=", ResultSite["longitude"] If IsNull(ResultSite["description"]) Then Print "Description is Null" Else Print "Description=", ResultSite["description"] Endif Print 1 ResultSite["latitude"] = Latitude Print 2 ResultSite["longitude"] = Longitude Print 3 ResultSite["image"] = File.Load(ImagePath) Print 4 ResultSite["description"] = Description Print 5 ResultSite.Update() Print 6 DatabaseConnection.Commit Print "End Site Details Update" Catch DatabaseConnection.Rollback Error.Raise("Update database site table record error
Error:
" & DConv(Error.Text)) End The console result from the procedure is: New details are: SiteIndex= 1 Latitude= 48.8814 Longitude= 2.3365 ImagePath= /tmp/gambas.1001/26989/6.tmp.jpg Description= At number 4, was a famous restaurant, run by Jo Goldenberg. The former restaurant Goldenberg, on the corner of the Rue des Rosiers and Rue Ferdinand Duval, was closed in 2006. It was known for its traditional cuisine: it was "kosher style" but in fact non-Kosher! The front has a prominent Magen David. A violent attack took place in 1982: 6 were killed and 22 were injured. Traces were still visible on the frontage 10 years later. In 2010, a fashion clothing store took possession of the premises, keeping the frontage. Old details are: _id= 2 Latitude= 48.8814 Longitude= 2.3365 Description is Null 1 Everything is correct on this console print except that I get a hang at that point. As you can see, the 'ResultSite["latitude"] = Latitude' statement seems to be the problem. I've tried varying this statement by putting .Data at the end of it but with no success. Help please! From john.aaron.rose at ...626... Mon Jan 30 15:16:19 2012 From: john.aaron.rose at ...626... (John Rose) Date: Mon, 30 Jan 2012 14:16:19 +0000 Subject: [Gambas-user] SelectDirectory does not use Dialog.Path correctly Message-ID: <1327932979.15308.235.camel@...2661...> SelectDirectory function does not display the 'Directory Chooser' popup with the initial path set to Home.User when Dialog.Path has previously been set to Home.User. From john.aaron.rose at ...626... Mon Jan 30 15:21:02 2012 From: john.aaron.rose at ...626... (John Rose) Date: Mon, 30 Jan 2012 14:21:02 +0000 Subject: [Gambas-user] Search tool button for code in IDE Message-ID: <1327933262.15308.236.camel@...2661...> Bump. From jussi.lahtinen at ...626... Mon Jan 30 15:22:01 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 30 Jan 2012 16:22:01 +0200 Subject: [Gambas-user] Executing Shell command (also applies to Exec command), FMain form goes blank In-Reply-To: <1327932137.15308.230.camel@...2661...> References: <1327932137.15308.230.camel@...2661...> Message-ID: This doesn't make much sense. sInstruction = "get_iplayer --force --get Shock --output " & sDirectory > & " --raw >" & sLogFilename & " 2>&1" > Here you are directing all output to sLogFilename. Shell sInstruction To sOutput > Here you are expecting something to appear to sOutput! Interpreted is doing exactly what it supposed to do, wait for something to write to sOutput. That's why GUI isn't refreshed. Jussi From jussi.lahtinen at ...626... Mon Jan 30 15:25:48 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 30 Jan 2012 16:25:48 +0200 Subject: [Gambas-user] Executing Shell command (also applies to Exec command), FMain form goes blank In-Reply-To: References: <1327932137.15308.230.camel@...2661...> Message-ID: See: http://gambasdoc.org/help/lang/shell?v3 Generally speaking, documentation is here: http://gambasdoc.org/help/lang?v3 Jussi On Mon, Jan 30, 2012 at 16:22, Jussi Lahtinen wrote: > > This doesn't make much sense. > > > sInstruction = "get_iplayer --force --get Shock --output " & sDirectory >> & " --raw >" & sLogFilename & " 2>&1" >> > > Here you are directing all output to sLogFilename. > > > Shell sInstruction To sOutput > > Here you are expecting something to appear to sOutput! > Interpreted is doing exactly what it supposed to do, wait for something to > write to sOutput. > That's why GUI isn't refreshed. > > Jussi > From john.aaron.rose at ...626... Mon Jan 30 15:39:45 2012 From: john.aaron.rose at ...626... (John Rose) Date: Mon, 30 Jan 2012 14:39:45 +0000 Subject: [Gambas-user] Executing Shell command (also applies to Exec command), FMain form goes blank Message-ID: <1327934385.15308.247.camel@...2661...> What I want is for all stdout & stderr output to go to one file. I've previously tried not redirecting the output to a file but instead processing the variable on completion of the Shell/Exec command. The disadvantage of this is that if the program get_iplayer hangs/crashes then I can't examine the file: I want to be able to run this without debug mode being on and so I cannot look at the variable sOutput if it crashes. Thus I want to use a file for stdout & stderr and I expect sOutput to be empty (in the Test project, I have temporary code which shows that sOutput is empty no matter what happens in get_iplayer's execution). I'm forced to use the 'To' clause in Shell/Exec because of its syntax: I have previously studied the documentation webpages to which you refer. In the case when get_iplayer has gone to normal end in its execution, the file has been created and is OK. However, I still get the blank window during get_iplayer's execution: the window returns to normal when get_iplayer finishes. From jussi.lahtinen at ...626... Mon Jan 30 15:39:55 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 30 Jan 2012 16:39:55 +0200 Subject: [Gambas-user] Search tool button for code in IDE In-Reply-To: <1327933262.15308.236.camel@...2661...> References: <1327933262.15308.236.camel@...2661...> Message-ID: What about it? Jussi On Mon, Jan 30, 2012 at 16:21, John Rose wrote: > Bump. > > > > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Mon Jan 30 16:19:33 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 30 Jan 2012 17:19:33 +0200 Subject: [Gambas-user] Executing Shell command (also applies to Exec command), FMain form goes blank In-Reply-To: <1327934385.15308.247.camel@...2661...> References: <1327934385.15308.247.camel@...2661...> Message-ID: > I've previously tried not redirecting the output to a file but instead > processing the variable on completion of the Shell/Exec command. The > disadvantage of this is that if the program get_iplayer hangs/crashes > then I can't examine the file: I want to be able to run this without > debug mode being on and so I cannot look at the variable sOutput if it > crashes. Thus I want to use a file for stdout & stderr and I expect > sOutput to be empty (in the Test project, I have temporary code which > shows that sOutput is empty no matter what happens in get_iplayer's > execution). > sOutput is always empty as expected. Why you want 'write' it? > I'm forced to use the 'To' clause in Shell/Exec because of its syntax: No, it is not mandatory. In the case when get_iplayer has gone to normal end in its execution, > the file has been created and is OK. However, I still get the blank > window during get_iplayer's execution: the window returns to normal when > get_iplayer finishes. > As expected and as I already wrote. Interpreter waits for output and then continues execution. Jussi From jussi.lahtinen at ...626... Mon Jan 30 16:44:46 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 30 Jan 2012 17:44:46 +0200 Subject: [Gambas-user] SelectDirectory does not use Dialog.Path correctly In-Reply-To: <1327932979.15308.235.camel@...2661...> References: <1327932979.15308.235.camel@...2661...> Message-ID: Works here. Send your code and system information. Jussi On Mon, Jan 30, 2012 at 16:16, John Rose wrote: > > SelectDirectory function does not display the 'Directory Chooser' popup > with the initial path set to Home.User when Dialog.Path has previously > been set to Home.User. > > > > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Mon Jan 30 16:51:47 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 30 Jan 2012 17:51:47 +0200 Subject: [Gambas-user] Search tool button for code in IDE In-Reply-To: References: Message-ID: OK, found your earlier mail... for some reason gmail doesn't group mails sent by you? IDE tool panel is customizable, just click with right mouse button on tool icons. Jussi On Fri, Jan 20, 2012 at 09:33, John Rose wrote: > Perhaps I'm missing something. However, I don't see a Search tool button > for code in the IDE (though there is one for the Console). If not, I think > that it would be a useful addition to the IDE. > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From rmorgan62 at ...626... Mon Jan 30 16:57:37 2012 From: rmorgan62 at ...626... (Randall Morgan) Date: Mon, 30 Jan 2012 07:57:37 -0800 Subject: [Gambas-user] Problem with Rev. 4430 In-Reply-To: <4F26909D.9030007@...2594...> References: <4F26909D.9030007@...2594...> Message-ID: GSL is a new package under development. At the moment the package is only hours old and therefore does not contain the files needed to build it. This does not effect the rest of Gambas. GSL will be a porting of the GNU Scientific Library (GSL) to Gambas. On Mon, Jan 30, 2012 at 4:44 AM, Rolf Schmidt wrote: > Hi Benoit, > > when I compile Gambas3 from current trunk (i.e. Rev. 4430) I get an > error say, that there is no "make all" in gb.gsl. When I look into this > directory no "Makefile" was build by configure. > > Disable the gsl package, Gambas is installable. > reconf-all and configure didn't report any problems. > > Hope that helps to find the problem. > Fine regards > Rolf > > > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- If you ask me if it can be done. The answer is YES, it can always be done. The correct questions however are... What will it cost, and how long will it take? From muhamed.yousof at ...626... Mon Jan 30 17:08:50 2012 From: muhamed.yousof at ...626... (Muhamed Yousof) Date: Mon, 30 Jan 2012 16:08:50 +0000 Subject: [Gambas-user] how can I run gambas applications on windows In-Reply-To: References: Message-ID: dear jussi I want to make programs for windows but I use gambas on ubuntu On Mon, Jan 30, 2012 at 2:13 PM, Jussi Lahtinen wrote: > http://gambasdoc.org/help/doc/distro?en&view > > Jussi > > > > On Mon, Jan 30, 2012 at 14:43, Muhamed Yousof >wrote: > > > Dear all, > > > > could any one give me detailed explanation for how to make applications > for > > windows using Gambas > > > > -- > > Thanks and Best regards > > Mohamed Yousof > > +201061228632 > > > > > ------------------------------------------------------------------------------ > > Try before you buy = See our experts in action! > > The most comprehensive online learning library for Microsoft developers > > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > > Metro Style Apps, more. Free future releases when you subscribe now! > > http://p.sf.net/sfu/learndevnow-dev2 > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Thanks and Best regards Mohamed Yousof +201061228632 From tobiasboe1 at ...20... Mon Jan 30 17:16:06 2012 From: tobiasboe1 at ...20... (tobias) Date: Mon, 30 Jan 2012 17:16:06 +0100 Subject: [Gambas-user] how can I run gambas applications on windows In-Reply-To: References: Message-ID: <4F26C246.4070104@...20...> hi, On 30.01.2012 17:08, Muhamed Yousof wrote: > dear jussi > > I want to make programs for windows but I use gambas on ubuntu even if i'm not the one you addressed... have you taken a look at the site jussi provided? you can read the answer on the bottom of the page. From rmorgan62 at ...626... Mon Jan 30 17:17:30 2012 From: rmorgan62 at ...626... (Randall Morgan) Date: Mon, 30 Jan 2012 08:17:30 -0800 Subject: [Gambas-user] how can I run gambas applications on windows In-Reply-To: References: Message-ID: Gambas does not run on windows nor does it compile windows programs. So you either run the application remotely or you port your programs from Gambas to VB or C/C++. I do believe that the basic interpreter for version 1 or 2 would build under cywin but do not think that was ever official and it did not provide a GUI. There was at onetime someone trying to port Gambas to windows. I don't think that project exists anymore. Perhaps you'd like to locate that person and take up his work? On Mon, Jan 30, 2012 at 8:08 AM, Muhamed Yousof wrote: > dear jussi > > I want to make programs for windows but I use gambas on ubuntu > > On Mon, Jan 30, 2012 at 2:13 PM, Jussi Lahtinen >wrote: > > > http://gambasdoc.org/help/doc/distro?en&view > > > > Jussi > > > > > > > > On Mon, Jan 30, 2012 at 14:43, Muhamed Yousof > >wrote: > > > > > Dear all, > > > > > > could any one give me detailed explanation for how to make applications > > for > > > windows using Gambas > > > > > > -- > > > Thanks and Best regards > > > Mohamed Yousof > > > +201061228632 > > > > > > > > > ------------------------------------------------------------------------------ > > > Try before you buy = See our experts in action! > > > The most comprehensive online learning library for Microsoft developers > > > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, > MVC3, > > > Metro Style Apps, more. Free future releases when you subscribe now! > > > http://p.sf.net/sfu/learndevnow-dev2 > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > ------------------------------------------------------------------------------ > > Try before you buy = See our experts in action! > > The most comprehensive online learning library for Microsoft developers > > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > > Metro Style Apps, more. Free future releases when you subscribe now! > > http://p.sf.net/sfu/learndevnow-dev2 > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > -- > Thanks and Best regards > Mohamed Yousof > +201061228632 > > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- If you ask me if it can be done. The answer is YES, it can always be done. The correct questions however are... What will it cost, and how long will it take? From john.aaron.rose at ...626... Mon Jan 30 17:57:30 2012 From: john.aaron.rose at ...626... (John Rose) Date: Mon, 30 Jan 2012 16:57:30 +0000 Subject: [Gambas-user] SelectDirectory does not use Dialog.Path correctly Message-ID: <1327942650.15308.252.camel@...2661...> Project is attached. To check it just 'Click Directory' button. Code fragment: Dialog.Title = "Please select a directory to record to..." Dialog.Path = User.Home If Dialog.SelectDirectory() Then Return System info: [OperatingSystem] OperatingSystem=Linux KernelRelease=2.6.32-37-generic DistributionVendor=Ubuntu DistributionRelease="Ubuntu 10.04.3 LTS" [System] CPUArchitecture=i686 TotalRam=1930788 kB Desktop=Gnome [Gambas] Gambas1=Not Installed Gambas2=2.22.0 Gambas2Path=/usr/bin/gbx2 Gambas3=3.0.90 Gambas3Path=/usr/local/bin/gbx3 -------------- next part -------------- A non-text attachment was scrubbed... Name: Test.tar.gz Type: application/x-compressed-tar Size: 12323 bytes Desc: not available URL: From john.aaron.rose at ...626... Mon Jan 30 18:08:42 2012 From: john.aaron.rose at ...626... (John Rose) Date: Mon, 30 Jan 2012 17:08:42 +0000 Subject: [Gambas-user] Executing Shell command (also applies to Exec command), FMain form goes blank Message-ID: <1327943322.15308.261.camel@...2661...> Jussi, I've obviously failed to explain this properly. I want the Shell command to execute the program get_iplayer with specified parameters. I also want stdout & stderr to be written to a file: the reason being is that get_iplayer has a tendency to hang/crash so writing stdout & stderr to a variable would be no good. Whilst get_iplayer is executing, I want the FMain form to still be displayed with its controls showing (i.e. the form should not be blank). I presume that the Exec command is not available to me as bash is required to redirect stdout & stderr to a file. I thought that the second form of the Shell command (as described in the documentation) would be best. Due to the redirection of stdout & stderr to a file, I would expect the 'To' variable to be empty. From linuxos at ...1896... Mon Jan 30 18:19:59 2012 From: linuxos at ...1896... (Olivier Cruilles) Date: Mon, 30 Jan 2012 18:19:59 +0100 Subject: [Gambas-user] Executing Shell command (also applies to Exec command), FMain form goes blank In-Reply-To: <1327943322.15308.261.camel@...2661...> References: <1327943322.15308.261.camel@...2661...> Message-ID: <29743411-BC88-4669-A603-262A18A42D87@...1896...> Hello, See here: http://gambasdoc.org/help/lang/shell?v3 Olivier Cruilles Mail: linuxos at ...1896... Le 30 janv. 2012 ? 18:08, John Rose a ?crit : > > Jussi, > > I've obviously failed to explain this properly. I want the Shell command > to execute the program get_iplayer with specified parameters. I also > want stdout & stderr to be written to a file: the reason being is that > get_iplayer has a tendency to hang/crash so writing stdout & stderr to a > variable would be no good. Whilst get_iplayer is executing, I want the > FMain form to still be displayed with its controls showing (i.e. the > form should not be blank). > > I presume that the Exec command is not available to me as bash is > required to redirect stdout & stderr to a file. > > I thought that the second form of the Shell command (as described in the > documentation) would be best. Due to the redirection of stdout & stderr > to a file, I would expect the 'To' variable to be empty. > > > > > > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From jussi.lahtinen at ...626... Mon Jan 30 18:22:15 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 30 Jan 2012 19:22:15 +0200 Subject: [Gambas-user] SelectDirectory does not use Dialog.Path correctly In-Reply-To: <1327942650.15308.252.camel@...2661...> References: <1327942650.15308.252.camel@...2661...> Message-ID: There seems to be difference between qt4 and gtk+. With qt4 path is opened in dialog, and with gtk+ path is only selected in dialog. I think qt4 way is more logical, since it allows you to direct the user directly to right set of sub folders. Benoit? Jussi On Mon, Jan 30, 2012 at 18:57, John Rose wrote: > Project is attached. To check it just 'Click Directory' button. > > Code fragment: > Dialog.Title = "Please select a directory to record to..." > Dialog.Path = User.Home > If Dialog.SelectDirectory() Then Return > > System info: > [OperatingSystem] > OperatingSystem=Linux > KernelRelease=2.6.32-37-generic > DistributionVendor=Ubuntu > DistributionRelease="Ubuntu 10.04.3 LTS" > > [System] > CPUArchitecture=i686 > TotalRam=1930788 kB > Desktop=Gnome > > [Gambas] > Gambas1=Not Installed > Gambas2=2.22.0 > Gambas2Path=/usr/bin/gbx2 > Gambas3=3.0.90 > Gambas3Path=/usr/local/bin/gbx3 > > > > > > > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From jussi.lahtinen at ...626... Mon Jan 30 18:53:39 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 30 Jan 2012 19:53:39 +0200 Subject: [Gambas-user] Executing Shell command (also applies to Exec command), FMain form goes blank In-Reply-To: <1327943322.15308.261.camel@...2661...> References: <1327943322.15308.261.camel@...2661...> Message-ID: No, I understand your problem and your goal perfectly, and I have already answered two times. I don't understand what you don't understand. I don't think you have read the documentation. First line of the documentation describes: [ *Process* *=* ] *SHELL* *Command* [ *WAIT* ] [ *FOR* { { *READ* | *INPUT* } | { *WRITE* | *OUTPUT* } } ] [ *AS* *Name* ] Everything between [] means optional. So, *command* is only mandatory parameter. Just leave out the "To sOutput". No matter what happens, crash or not, sOuput will be empty. It doesn't do anything, it doesn't make any sense, it will just hang GUI if execution of the command takes long time. Redirection to file is done by terminal, not gambas. Gambas just passes the command (which includes to redirection) to terminal. Jussi On Mon, Jan 30, 2012 at 19:08, John Rose wrote: > Jussi, > > I've obviously failed to explain this properly. I want the Shell command > to execute the program get_iplayer with specified parameters. I also > want stdout & stderr to be written to a file: the reason being is that > get_iplayer has a tendency to hang/crash so writing stdout & stderr to a > variable would be no good. Whilst get_iplayer is executing, I want the > FMain form to still be displayed with its controls showing (i.e. the > form should not be blank). > > I presume that the Exec command is not available to me as bash is > required to redirect stdout & stderr to a file. > > I thought that the second form of the Shell command (as described in the > documentation) would be best. Due to the redirection of stdout & stderr > to a file, I would expect the 'To' variable to be empty. > > > > > > > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From ph at ...1769... Mon Jan 30 19:12:18 2012 From: ph at ...1769... (Ph.sf) Date: Mon, 30 Jan 2012 16:12:18 -0200 Subject: [Gambas-user] Executing Shell command (also applies to Exec command), FMain form goes blank Message-ID: John Rose escreveu: >Jussi, > >I've obviously failed to explain this properly. I want the Shell command >to execute the program get_iplayer with specified parameters. I also >want stdout & stderr to be written to a file: the reason being is that >get_iplayer has a tendency to hang/crash so writing stdout & stderr to a >variable would be no good. Whilst get_iplayer is executing, I want the >FMain form to still be displayed with its controls showing (i.e. the >form should not be blank). > >I presume that the Exec command is not available to me as bash is >required to redirect stdout & stderr to a file. > >I thought that the second form of the Shell command (as described in the >documentation) would be best. Due to the redirection of stdout & stderr >to a file, I would expect the 'To' variable to be empty. > > > > > >------------------------------------------------------------------------------ >Try before you buy = See our experts in action! >The most comprehensive online learning library for Microsoft developers >is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, >Metro Style Apps, more. Free future releases when you subscribe now! >http://p.sf.net/sfu/learndevnow-dev2 >_______________________________________________ >Gambas-user mailing list >Gambas-user at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/gambas-user From kevinfishburne at ...1887... Mon Jan 30 21:51:38 2012 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Mon, 30 Jan 2012 15:51:38 -0500 Subject: [Gambas-user] how can I run gambas applications on windows In-Reply-To: References: Message-ID: <4F2702DA.50207@...1887...> On 01/30/2012 11:17 AM, Randall Morgan wrote: > Gambas does not run on windows nor does it compile windows programs. So you > either run the application remotely or you port your programs from Gambas > to VB or C/C++. I do believe that the basic interpreter for version 1 or 2 > would build under cywin but do not think that was ever official and it did > not provide a GUI. > > There was at onetime someone trying to port Gambas to windows. I don't > think that project exists anymore. Perhaps you'd like to locate that person > and take up his work? > > You might want to take a look at andLinux, which runs Ubuntu inside Windows but without a desktop (it has a program launcher in the Windows desktop for Ubuntu apps): http://www.andlinux.org/reqs.php It may be possible to get GAMBAS working in that and have the andLinux launcher run your GAMBAS app directly from an icon in Windows. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From gambas at ...1... Tue Jan 31 00:38:42 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Tue, 31 Jan 2012 00:38:42 +0100 Subject: [Gambas-user] Location of the form In-Reply-To: <33224029.post@...1379...> References: <33219801.post@...1379...> <33224029.post@...1379...> Message-ID: <4F272A02.6020703@...1...> Le 29/01/2012 14:23, abbat a ?crit : > > This is issue of linux. > in Lxde I can not place windows on panel too. > But if Screen.Height = 100% I'd like to place my window anywhere despite any > panel. > > When you move a form, the window manager has the last word. It may or may not accept your request! This is the X11 way of life. -- Beno?t Minisini From gambas at ...1... Tue Jan 31 00:50:05 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Tue, 31 Jan 2012 00:50:05 +0100 Subject: [Gambas-user] SelectDirectory does not use Dialog.Path correctly In-Reply-To: References: <1327942650.15308.252.camel@...2661...> Message-ID: <4F272CAD.7030309@...1...> Le 30/01/2012 18:22, Jussi Lahtinen a ?crit : > There seems to be difference between qt4 and gtk+. > With qt4 path is opened in dialog, and with gtk+ path is only selected in > dialog. > I think qt4 way is more logical, since it allows you to direct the user > directly to right set of sub folders. > > Benoit? > > Jussi > Apparently I did the things right. It is just that the GTK+ file chooser decides to select the directory instead of entering it. I will look deeper in the GTK+ documentation to see if I can do something about that... -- Beno?t Minisini From gambas at ...1... Tue Jan 31 01:03:39 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Tue, 31 Jan 2012 01:03:39 +0100 Subject: [Gambas-user] (no subject) In-Reply-To: <8D42310D957CFB46AA11921A711D4D16057DB6BFED@...1899...> References: <8D42310D957CFB46AA11921A711D4D16057DB6BF9D@...1899...> <4F202BE5.7090002@...1...> <8D42310D957CFB46AA11921A711D4D16057DB6BFCA@...1899...> <4F234BD3.2040907@...1...> <8D42310D957CFB46AA11921A711D4D16057DB6BFED@...1899...> Message-ID: <4F272FDB.50707@...1...> Le 30/01/2012 14:23, Andreas Fr?hlke a ?crit : > Sorry, here it is > > Regards, > > Andreas > OK, I see: this is because of the widget theme (oxygen for example). I think if you change your widget theme, then you may find one that does not add any margin inside TextBox and other controls. Regards, -- Beno?t Minisini From gambas at ...1... Tue Jan 31 01:04:28 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Tue, 31 Jan 2012 01:04:28 +0100 Subject: [Gambas-user] INITIAL Location of Form In-Reply-To: <33224807.post@...1379...> References: <33224807.post@...1379...> Message-ID: <4F27300C.8060206@...1...> Le 29/01/2012 17:45, rogerHPH a ?crit : > > How can I position a form at X=0, Y=0 at Program Start, before any other > action, e.g. Timer or button_click ? > I want to use full width of screen, i.e. to push the Ubuntu v11 "Launcher" > bar off the Left Hand side of the screen. > > The Code below will position the Form anywhere on the screen on Program > Start, EXCEPT at 0,0. > Co-ordinates in either SUB -new(), or in SUB Form_Open() work fine, except > for any position under the "Launcher" bar. > > However, the Button_Click works and puts the Form at 0,0 and pushes the > "Launcher" bar off screen, - but I want this to happen at program start ! > > ' Gambas class file > > PUBLIC SUB _new() > FMain.X = 800 > FMain.Y = 600 > END > > PUBLIC SUB Form_Open() > ' FMain.X = 1000 > ' FMain.Y = 100 > END > > PUBLIC SUB Button1_Click() > FMain.X = 0 > FMain.Y = 0 > WAIT 1 > > QUIT > > END > It may be a bug. Can you post a project, and (of course) tell which version of Gambas you are using? Regards, -- Beno?t Minisini From gambas at ...1... Tue Jan 31 01:05:30 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Tue, 31 Jan 2012 01:05:30 +0100 Subject: [Gambas-user] Disabling the window's buttons on forms In-Reply-To: References: Message-ID: <4F27304A.7090004@...1...> Le 29/01/2012 18:30, M. Cs. a ?crit : > Hello! > How could I disable the Maximize, Minimize and Close buttons on a Form? > If I used a borderless form, I'm losing the ability of resizing it, > and If I use a form with borders, and If I start a Music on this form, > it won't stop upon Close button's being pushed. > Any idea? > > Csaba > This is not possible at the moment. Technically I think it is possible to ask some of these buttons to be removed, but not all window manager will accept that. Regards, -- Beno?t Minisini From gambas at ...1... Tue Jan 31 01:09:20 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Tue, 31 Jan 2012 01:09:20 +0100 Subject: [Gambas-user] extern library In-Reply-To: <1756961.yBaByDlCDY@...46...> References: <3525035.btJeaiBlXI@...46...> <1756961.yBaByDlCDY@...46...> Message-ID: <4F273130.7040608@...1...> Le 29/01/2012 21:33, Wally a ?crit : > > No other way ? > Normally the library can be any path, like any data file. So: - It is searched as a real file (absolute path, or standard library paths). - If it is not found, then it is searched inside the project. If you don't succeed in loading your library, please send me a little test project. Regards, -- Beno?t Minisini From afroehlke at ...784... Tue Jan 31 08:38:31 2012 From: afroehlke at ...784... (=?iso-8859-1?Q?Andreas_Fr=F6hlke?=) Date: Tue, 31 Jan 2012 08:38:31 +0100 Subject: [Gambas-user] (no subject) In-Reply-To: <4F272FDB.50707@...1...> References: <8D42310D957CFB46AA11921A711D4D16057DB6BF9D@...1899...> <4F202BE5.7090002@...1...> <8D42310D957CFB46AA11921A711D4D16057DB6BFCA@...1899...> <4F234BD3.2040907@...1...> <8D42310D957CFB46AA11921A711D4D16057DB6BFED@...1899...> <4F272FDB.50707@...1...> Message-ID: <8D42310D957CFB46AA11921A711D4D16057DB6C001@...1899...> Ok, i will try. Thanks a lot Regards, Andreas -----Urspr?ngliche Nachricht----- Von: Beno?t Minisini [mailto:gambas at ...1...] Gesendet: Dienstag, 31. Januar 2012 01:04 An: mailing list for gambas users Betreff: Re: [Gambas-user] (no subject) Le 30/01/2012 14:23, Andreas Fr?hlke a ?crit : > Sorry, here it is > > Regards, > > Andreas > OK, I see: this is because of the widget theme (oxygen for example). I think if you change your widget theme, then you may find one that does not add any margin inside TextBox and other controls. Regards, -- Beno?t Minisini ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Tue Jan 31 10:19:09 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Tue, 31 Jan 2012 10:19:09 +0100 Subject: [Gambas-user] SelectDirectory does not use Dialog.Path correctly In-Reply-To: <1327942650.15308.252.camel@...2661...> References: <1327942650.15308.252.camel@...2661...> Message-ID: <4F27B20D.60901@...1...> Le 30/01/2012 17:57, John Rose a ?crit : > Project is attached. To check it just 'Click Directory' button. > > Code fragment: > Dialog.Title = "Please select a directory to record to..." > Dialog.Path = User.Home > If Dialog.SelectDirectory() Then Return > OK, the bug is fixed in revision #4438. Regards, -- Beno?t Minisini From john.aaron.rose at ...626... Tue Jan 31 10:21:08 2012 From: john.aaron.rose at ...626... (John Rose) Date: Tue, 31 Jan 2012 09:21:08 +0000 Subject: [Gambas-user] IDE displays 'must abort' popup Message-ID: <1328001668.4227.12.camel@...2661...> This happens in IDE when I right click on Sources directory and select 'New Module'. I've tried the instructions for reporting a crash (including compiling the IDE) but it doesn't result in a segmentation fault or signal #11 and bt (in gdb) gives 'No stack'. I'm using Gambas 3.0.90 (r172). Desktop is Gnome 2 GambasSystemInformationReport shows: [OperatingSystem] OperatingSystem=Linux KernelRelease=2.6.32-38-generic DistributionVendor=Ubuntu DistributionRelease="Ubuntu 10.04.3 LTS" [System] CPUArchitecture=i686 TotalRam=1930772 kB Desktop=Gnome [Gambas] Gambas1=Not Installed Gambas2=2.22.0 Gambas2Path=/usr/bin/gbx2 Gambas3=3.0.90 Gambas3Path=/usr/local/bin/gbx3 From gambas at ...1... Tue Jan 31 10:24:50 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Tue, 31 Jan 2012 10:24:50 +0100 Subject: [Gambas-user] IDE displays 'must abort' popup In-Reply-To: <1328001668.4227.12.camel@...2661...> References: <1328001668.4227.12.camel@...2661...> Message-ID: <4F27B362.7080205@...1...> Le 31/01/2012 10:21, John Rose a ?crit : > This happens in IDE when I right click on Sources directory and select > 'New Module'. I've tried the instructions for reporting a crash > (including compiling the IDE) but it doesn't result in a segmentation > fault or signal #11 and bt (in gdb) gives 'No stack'. > This is not a crash, but a "normal" error. You just have to report the contents of the dialog box that will tell me the IDE source line where the error occured. Regards, -- Beno?t Minisini From john.aaron.rose at ...626... Tue Jan 31 11:02:34 2012 From: john.aaron.rose at ...626... (John Rose) Date: Tue, 31 Jan 2012 10:02:34 +0000 Subject: [Gambas-user] Executing Shell command (also applies to Exec command), FMain form goes blank Message-ID: <1328004154.4227.31.camel@...2661...> I was not trying to blame you earlier: I was trying to say that it was my fault for not communicating my requirements accurately to you. I have read the documentation on both the Shell & Exec commands a number of times. Using the first form of the Shell command without 'To sOutput' results in the get_iplayer command executing (i.e. the relevant video file is downloaded from the BBC's iPlayer website) but it happens in the background i.e. the Gambas app carries on with the following (i.e. after Shell) commands: which is not what I want (i.e. I want it to wait till all of the video file is downloaded). So the obvious solution to that is to use the Wait parameter i.e. the command becomes 'Shell sInstruction Wait'. However, this also leads to the blank FMain window. From gambas at ...2524... Tue Jan 31 11:47:48 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 31 Jan 2012 10:47:48 +0000 Subject: [Gambas-user] Issue 198 in gambas: ShowHidden property in OpenFile, SaveFile & SelectDir functions In-Reply-To: <1-6813199134517018827-676827649239186179-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-676827649239186179-gambas=googlecode.com@...2524...> <0-6813199134517018827-676827649239186179-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-676827649239186179-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #2 on issue 198 by benoit.m... at ...626...: ShowHidden property in OpenFile, SaveFile & SelectDir functions http://code.google.com/p/gambas/issues/detail?id=198 Done in revision #4440. From jussi.lahtinen at ...626... Tue Jan 31 13:41:43 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Tue, 31 Jan 2012 14:41:43 +0200 Subject: [Gambas-user] Executing Shell command (also applies to Exec command), FMain form goes blank In-Reply-To: <1328004154.4227.31.camel@...2661...> References: <1328004154.4227.31.camel@...2661...> Message-ID: Then you need to do your own wait loop, something like: Dim hProcess As Process hProcess = Shell sYourCommand Do Wait 0.1 Loop Until hProcess.State <> Process.Running Jussi On Tue, Jan 31, 2012 at 12:02, John Rose wrote: > I was not trying to blame you earlier: I was trying to say that it was > my fault for not communicating my requirements accurately to you. I have > read the documentation on both the Shell & Exec commands a number of > times. > > Using the first form of the Shell command without 'To sOutput' results > in the get_iplayer command executing (i.e. the relevant video file is > downloaded from the BBC's iPlayer website) but it happens in the > background i.e. the Gambas app carries on with the following (i.e. after > Shell) commands: which is not what I want (i.e. I want it to wait till > all of the video file is downloaded). So the obvious solution to that is > to use the Wait parameter i.e. the command becomes > 'Shell sInstruction Wait'. However, this also leads to the blank FMain > window. > > > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Tue Jan 31 13:45:45 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Tue, 31 Jan 2012 14:45:45 +0200 Subject: [Gambas-user] Executing Shell command (also applies to Exec command), FMain form goes blank In-Reply-To: References: <1328004154.4227.31.camel@...2661...> Message-ID: But if it is possible to get download status from get_iplayer, then I think you should do this with read event. Otherwise the user doesn't know how much he have to wait. Jussi On Tue, Jan 31, 2012 at 14:41, Jussi Lahtinen wrote: > Then you need to do your own wait loop, something like: > > Dim hProcess As Process > > hProcess = Shell sYourCommand > > Do > Wait 0.1 > Loop Until hProcess.State <> Process.Running > > > Jussi > > > > > On Tue, Jan 31, 2012 at 12:02, John Rose wrote: > >> I was not trying to blame you earlier: I was trying to say that it was >> my fault for not communicating my requirements accurately to you. I have >> read the documentation on both the Shell & Exec commands a number of >> times. >> >> Using the first form of the Shell command without 'To sOutput' results >> in the get_iplayer command executing (i.e. the relevant video file is >> downloaded from the BBC's iPlayer website) but it happens in the >> background i.e. the Gambas app carries on with the following (i.e. after >> Shell) commands: which is not what I want (i.e. I want it to wait till >> all of the video file is downloaded). So the obvious solution to that is >> to use the Wait parameter i.e. the command becomes >> 'Shell sInstruction Wait'. However, this also leads to the blank FMain >> window. >> >> >> >> ------------------------------------------------------------------------------ >> Keep Your Developer Skills Current with LearnDevNow! >> The most comprehensive online learning library for Microsoft developers >> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, >> Metro Style Apps, more. Free future releases when you subscribe now! >> http://p.sf.net/sfu/learndevnow-d2d >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > From john.aaron.rose at ...626... Tue Jan 31 14:02:25 2012 From: john.aaron.rose at ...626... (John Rose) Date: Tue, 31 Jan 2012 13:02:25 +0000 Subject: [Gambas-user] IDE displays 'must abort' popup Message-ID: <1328014945.4227.43.camel@...2661...> Screenshot attached showing dialog box. -------------- next part -------------- A non-text attachment was scrubbed... Name: Gambas - New Module.png Type: image/png Size: 15005 bytes Desc: not available URL: From bbg.holfarm at ...2767... Tue Jan 31 15:35:23 2012 From: bbg.holfarm at ...2767... (rogerHPH) Date: Tue, 31 Jan 2012 06:35:23 -0800 (PST) Subject: [Gambas-user] INITIAL Location of Form In-Reply-To: <33224807.post@...1379...> References: <33224807.post@...1379...> Message-ID: <33236597.post@...1379...> Below is example code. Using Gambas 2.22 and Ubuntu 11.10 With a Form (FMain) and a Timer (Timer1). The following code will initially position the Form at the top of the available screen, but about 2 cm right of the LH edge (i.e. beside the Ubuntu Program Launcher Toolbar), when it should be fully at Top Left of the available screen. After 2 seconds the Form moves to 0,0, correctly, at the Top Left of the available screen, (pushing the UBUNTU Tool-Bar off the screen to the Left) then 2 seconds later it is moved to near the Screen Centre (and the Tool-Bar re-appears). If I comment out the code in SUB_new and un-comment the code in SUB_FormOpen the effect is the same. Interestingly this still happens even if I am running GAMBAS in Full-Screen mode, which has forced the Toolbar off the screen - the Form still starts up 2 cm from the Left-Hand screen edge, and also if I Compile the program to an Executable with "Make". If I start with larger values of X & Y in either _new or _FormOpen (e.g. 200,300) it works correctly. ' Gambas class file ' '===================== ' XY_BUG ? Jan 2012 '===================== PUBLIC SUB _new() FMain.X = 0 FMain.Y = 0 Timer1.Delay = 2 Timer1.Enabled = TRUE END PUBLIC SUB Form_Open() ' FMain.X = 0 ' FMain.Y = 0 ' Timer1.Delay = 2 ' Timer1.Enabled = TRUE END PUBLIC SUB Timer1_Timer() Timer1.Enabled = FALSE WAIT 2 FMain.X = 0 FMain.Y = 0 WAIT 2 FMain.X = 400 FMain.Y = 400 END -- View this message in context: http://old.nabble.com/INITIAL-Location-of-Form-tp33224807p33236597.html Sent from the gambas-user mailing list archive at Nabble.com. From jussi.lahtinen at ...626... Tue Jan 31 15:47:49 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Tue, 31 Jan 2012 16:47:49 +0200 Subject: [Gambas-user] INITIAL Location of Form In-Reply-To: <33236597.post@...1379...> References: <33224807.post@...1379...> <33236597.post@...1379...> Message-ID: Please provide ready to run projects for debugging. They are faster to test, and all possibly needed project/form etc settings are shipped along. I think Benoit is quite busy! Jussi On Tue, Jan 31, 2012 at 16:35, rogerHPH wrote: > > Below is example code. > > Using Gambas 2.22 and Ubuntu 11.10 > > With a Form (FMain) and a Timer (Timer1). > > The following code will initially position the Form at the top of the > available screen, but about 2 cm right of the LH edge (i.e. beside the > Ubuntu Program Launcher Toolbar), when it should be fully at Top Left of > the > available screen. > After 2 seconds the Form moves to 0,0, correctly, at the Top Left of the > available screen, (pushing the UBUNTU Tool-Bar off the screen to the Left) > then 2 seconds later it is moved to near the Screen Centre (and the > Tool-Bar > re-appears). > > If I comment out the code in SUB_new and un-comment the code in > SUB_FormOpen > the effect is the same. > > Interestingly this still happens even if I am running GAMBAS in > Full-Screen > mode, which has forced the Toolbar off the screen - the Form still starts > up > 2 cm from the Left-Hand screen edge, and also if I Compile the program to > an Executable with "Make". > > If I start with larger values of X & Y in either _new or _FormOpen (e.g. > 200,300) it works correctly. > > > ' Gambas class file > ' > '===================== > ' XY_BUG ? Jan 2012 > '===================== > > > PUBLIC SUB _new() > FMain.X = 0 > FMain.Y = 0 > Timer1.Delay = 2 > Timer1.Enabled = TRUE > END > > PUBLIC SUB Form_Open() > ' FMain.X = 0 > ' FMain.Y = 0 > ' Timer1.Delay = 2 > ' Timer1.Enabled = TRUE > END > > > PUBLIC SUB Timer1_Timer() > Timer1.Enabled = FALSE > WAIT 2 > FMain.X = 0 > FMain.Y = 0 > WAIT 2 > FMain.X = 400 > FMain.Y = 400 > END > > > -- > View this message in context: > http://old.nabble.com/INITIAL-Location-of-Form-tp33224807p33236597.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Tue Jan 31 15:54:17 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Tue, 31 Jan 2012 16:54:17 +0200 Subject: [Gambas-user] IDE displays 'must abort' popup In-Reply-To: <1328001668.4227.12.camel@...2661...> References: <1328001668.4227.12.camel@...2661...> Message-ID: Please update your installation. That part of code doesn't even exist in current revision. Jussi On Tue, Jan 31, 2012 at 11:21, John Rose wrote: > This happens in IDE when I right click on Sources directory and select > 'New Module'. I've tried the instructions for reporting a crash > (including compiling the IDE) but it doesn't result in a segmentation > fault or signal #11 and bt (in gdb) gives 'No stack'. > > I'm using Gambas 3.0.90 (r172). > > Desktop is Gnome 2 > > GambasSystemInformationReport shows: > [OperatingSystem] > OperatingSystem=Linux > KernelRelease=2.6.32-38-generic > DistributionVendor=Ubuntu > DistributionRelease="Ubuntu 10.04.3 LTS" > > [System] > CPUArchitecture=i686 > TotalRam=1930772 kB > Desktop=Gnome > > [Gambas] > Gambas1=Not Installed > Gambas2=2.22.0 > Gambas2Path=/usr/bin/gbx2 > Gambas3=3.0.90 > Gambas3Path=/usr/local/bin/gbx3 > > > > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From john.aaron.rose at ...626... Tue Jan 31 16:29:43 2012 From: john.aaron.rose at ...626... (John Rose) Date: Tue, 31 Jan 2012 15:29:43 +0000 Subject: [Gambas-user] Search tool button for code in IDE Message-ID: <1328023783.4227.99.camel@...2661...> Jussi, I don't understand what you mean by "for some reason gmail doesn't group mails sent by you". Is that because I've been setting Subject (on follow up messages) copied from mailing list (i.e. includes Re: [Gambas-user])? I don't think this is relevant, but I have them grouped in threads when I view them in Firefox and when I download them in Evolution I have them grouped in threads. I've right clicked on toolbar just above code and it just gives Configure. Icon Size & Cancel: I expected it to give a popup containing extra tool icons (such as find or search). "IDE tool panel is customizable, just click with right mouse button on tool icons." From jussi.lahtinen at ...626... Tue Jan 31 17:13:07 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Tue, 31 Jan 2012 18:13:07 +0200 Subject: [Gambas-user] Search tool button for code in IDE In-Reply-To: <1328023783.4227.99.camel@...2661...> References: <1328023783.4227.99.camel@...2661...> Message-ID: > I don't understand what you mean by "for some reason gmail doesn't group > mails sent by you". Is that because I've been setting Subject (on follow > up messages) copied from mailing list (i.e. includes Re: [Gambas-user])? > I don't think this is relevant, but I have them grouped in threads when > I view them in Firefox and when I download them in Evolution I have them > grouped in threads. > I'm using Firefox also. Just don't edit subject line in anyway. I think there is even option to prevent Evolution adding that "Re:" (although that is not so bad). Unnecessary branching of threads is bit confusing. > I've right clicked on toolbar just above code and it just gives > Configure. Icon Size & Cancel: I expected it to give a popup containing > extra tool icons (such as find or search). > "IDE tool panel is customizable, just click with right mouse button on tool > icons." > As I said, tool panel is customizable, you can configure it to contain what you like. Hint; select Configure from the right click menu. Jussi From bbg.holfarm at ...2767... Tue Jan 31 18:35:30 2012 From: bbg.holfarm at ...2767... (rogerHPH) Date: Tue, 31 Jan 2012 09:35:30 -0800 (PST) Subject: [Gambas-user] INITIAL Location of Form In-Reply-To: <33224807.post@...1379...> References: <33224807.post@...1379...> Message-ID: <33237938.post@...1379...> Here is .tar file of example - action is as in my previous post http://old.nabble.com/file/p33237938/XY.tar XY.tar -- View this message in context: http://old.nabble.com/INITIAL-Location-of-Form-tp33224807p33237938.html Sent from the gambas-user mailing list archive at Nabble.com. From john.aaron.rose at ...626... Tue Jan 31 19:22:11 2012 From: john.aaron.rose at ...626... (John Rose) Date: Tue, 31 Jan 2012 18:22:11 +0000 Subject: [Gambas-user] Executing Shell command (also applies to Exec command), FMain form goes blank Message-ID: <1328034131.4227.173.camel@...2661...> Thanks , Jussi, for the 'Process' code. Now works fine i.e. window does not go balnk as get_iplayer executes. From math.eber at ...221... Tue Jan 31 19:50:53 2012 From: math.eber at ...221... (Matti) Date: Tue, 31 Jan 2012 19:50:53 +0100 Subject: [Gambas-user] Search tool button for code in IDE In-Reply-To: <1328023783.4227.99.camel@...2661...> References: <1328023783.4227.99.camel@...2661...> Message-ID: <4F28380D.3070803@...221...> John, there is a search TextBox in the *upper* (the project's) tool bar. If it's not shown in your IDE, right-click on this panel, choose 'Configure' and select 'Search & Replace'. The search results are shown in the search list at the bottom. Click on any result and the code line is highlighted. Btw: Did you click 'Configure' in the Form's tool bar? It's customizable, too... Am 31.01.2012 16:29, schrieb John Rose: > > I've right clicked on toolbar just above code and it just gives > Configure. Icon Size& Cancel: I expected it to give a popup containing > extra tool icons (such as find or search). > "IDE tool panel is customizable, just click with right mouse button on tool > icons." From abbat.81 at ...787... Tue Jan 31 21:20:18 2012 From: abbat.81 at ...787... (abbat) Date: Tue, 31 Jan 2012 12:20:18 -0800 (PST) Subject: [Gambas-user] HOW TO insert a text into the file? Message-ID: <33239012.post@...1379...> Public Sub Button1_Click() How to insert a text into existing file (/tmp/file)? -- View this message in context: http://old.nabble.com/HOW-TO-insert-a-text-into-the-file--tp33239012p33239012.html Sent from the gambas-user mailing list archive at Nabble.com. From jussi.lahtinen at ...626... Tue Jan 31 21:25:54 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Tue, 31 Jan 2012 22:25:54 +0200 Subject: [Gambas-user] HOW TO insert a text into the file? In-Reply-To: <33239012.post@...1379...> References: <33239012.post@...1379...> Message-ID: http://gambasdoc.org/help/lang/open?v3 http://gambasdoc.org/help/comp/gb/file?v3 http://gambasdoc.org/help/lang?v3 Jussi On Tue, Jan 31, 2012 at 22:20, abbat wrote: > > > Public Sub Button1_Click() > > How to insert a text into existing file (/tmp/file)? > > -- > View this message in context: > http://old.nabble.com/HOW-TO-insert-a-text-into-the-file--tp33239012p33239012.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From john.aaron.rose at ...626... Tue Jan 31 22:05:33 2012 From: john.aaron.rose at ...626... (John Rose) Date: Tue, 31 Jan 2012 21:05:33 +0000 Subject: [Gambas-user] Issue 206 in gambas: Can't compile Gambas3 Message-ID: <1328043933.4227.201.camel@...2661...> I've solved the problem of installing the needed dev packages for compiling Gambas3 i.e. missing libvorbis-dev. I did this by 'installing' the lucid-bleed ppa & upgrading which resulted in libvorbis-dev, , libvorbis0a, libvorbisenc2, libvorbisfile3 all being upgraded to version 1.3.1 (as well as as a number of Sound & Video apps such as Audacity & Avidemux being upgraded to latest versions). I was then able to install libsdl-mixer1.2-dev & libsdl-sound1.2-dev. The last messages from 'sudo make install' are: make[2]: Nothing to be done for `install-data-am'. make[2]: Leaving directory `/home/john/Gambas/trunk/examples' make[1]: Leaving directory `/home/john/Gambas/trunk/examples' Making install in . make[1]: Entering directory `/home/john/Gambas/trunk' make[2]: Entering directory `/home/john/Gambas/trunk' make[2]: Nothing to be done for `install-data-am'. make[2]: Leaving directory `/home/john/Gambas/trunk' make[1]: Leaving directory `/home/john/Gambas/trunk' Does "Nothing to be done for `install-data-am'" matter? The reason I ask is that /usr/bin/gambas3.gambas is still showing Date Modified as 31 December: it is the executable linked from /usr/bin/gambas3 which is the menu item created for Gambas3. I've noticed that in /usr/local/bin, there are a number of executables & links (e.g. for gambas3 linking to gambas3.gambas) with Date modified of today. Even when I invoke /usr/local/bin/gambas3, it still shows the same version (i.e. 3.0.90 r172). Would the version be the same between the stable 3.0 version & trunk's version (VERSION file contains 3.0.90)? PS I haven't attached the log from the compile of Gambas3 as it's too large for the mailing list. From skylineds at ...2755... Tue Jan 31 22:14:58 2012 From: skylineds at ...2755... (Dick) Date: Tue, 31 Jan 2012 15:14:58 -0600 Subject: [Gambas-user] Good News Message-ID: <2049932.mL6er7thfn@...2756...> Hi all, For those who are interested: Gambas3 compiled and installed flawlessly on the system below. Same results on another machine after upgrade openSUSE 11.3 --> 12.1 [System] OperatingSystem=Linux Kernel=3.1.9-1.4-desktop Architecture=x86_64 Memory=1773104 kB DistributionVendor=SuSE DistributionRelease=openSUSE 12.1 (x86_64) VERSION = 12.1 CODENAME = Asparagus Desktop=KDE4 [Gambas 2] Version=2.23.1 Path=/usr/bin/gbx2 [Gambas 3] Version=3.0.0 Path=/usr/local/bin/gbx3 [Libraries] Qt4=libQtCore.so.4.7.4 GTK+=libgtk-x11-2.0.so.0.2400.7 Dick Davis From math.eber at ...221... Tue Jan 31 22:25:41 2012 From: math.eber at ...221... (Matti) Date: Tue, 31 Jan 2012 22:25:41 +0100 Subject: [Gambas-user] Issue 206 in gambas: Can't compile Gambas3 In-Reply-To: <1328043933.4227.201.camel@...2661...> References: <1328043933.4227.201.camel@...2661...> Message-ID: <4F285C55.7080605@...221...> 1. Did you do 'svn update'? http://gambasdoc.org/help/howto/svn If yo do, you will get a message about the downloaded version. 2. If a file is too big for the mailing list, just give it a right-click and pack it as ZIP/TAR. Am 31.01.2012 22:05, schrieb John Rose: > I've solved the problem of installing the needed dev packages for > compiling Gambas3 i.e. missing libvorbis-dev. I did this by 'installing' > the lucid-bleed ppa& upgrading which resulted in libvorbis-dev, , > libvorbis0a, libvorbisenc2, libvorbisfile3 all being upgraded to version > 1.3.1 (as well as as a number of Sound& Video apps such as Audacity& > Avidemux being upgraded to latest versions). I was then able to install > libsdl-mixer1.2-dev& libsdl-sound1.2-dev. > > The last messages from 'sudo make install' are: > make[2]: Nothing to be done for `install-data-am'. > make[2]: Leaving directory `/home/john/Gambas/trunk/examples' > make[1]: Leaving directory `/home/john/Gambas/trunk/examples' > Making install in . > make[1]: Entering directory `/home/john/Gambas/trunk' > make[2]: Entering directory `/home/john/Gambas/trunk' > make[2]: Nothing to be done for `install-data-am'. > make[2]: Leaving directory `/home/john/Gambas/trunk' > make[1]: Leaving directory `/home/john/Gambas/trunk' > > Does "Nothing to be done for `install-data-am'" matter? > > The reason I ask is that /usr/bin/gambas3.gambas is still showing Date > Modified as 31 December: it is the executable linked > from /usr/bin/gambas3 which is the menu item created for Gambas3. I've > noticed that in /usr/local/bin, there are a number of executables& > links (e.g. for gambas3 linking to gambas3.gambas) with Date modified of > today. Even when I invoke /usr/local/bin/gambas3, it still shows the > same version (i.e. 3.0.90 r172). Would the version be the same between > the stable 3.0 version& trunk's version (VERSION file contains 3.0.90)? > > PS I haven't attached the log from the compile of Gambas3 as it's > too large for the mailing list. From Gambas at ...1950... Tue Jan 31 22:46:55 2012 From: Gambas at ...1950... (Caveat) Date: Tue, 31 Jan 2012 22:46:55 +0100 Subject: [Gambas-user] Compile error (gb.gsl) on Ubuntu 11.10 Message-ID: <1328046415.3743.315.camel@...2150...> Hi list On a new machine running Ubuntu 11.10 Oneiric, I'm having problems compiling Gambas3. It seems to be to do with my installation of gsl (gnu scientific library?). Attached is the full (gzipped) output from the compile script. I tried searching the documentation just out of interest to see what the component gb.gsl is, but there seems to be no trace of it. Thanks and regards, Caveat -------------- next part -------------- A non-text attachment was scrubbed... Name: result.txt.gz Type: application/x-gzip Size: 7679 bytes Desc: not available URL: From jussi.lahtinen at ...626... Tue Jan 31 22:50:28 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Tue, 31 Jan 2012 23:50:28 +0200 Subject: [Gambas-user] Compile error (gb.gsl) on Ubuntu 11.10 In-Reply-To: <1328046415.3743.315.camel@...2150...> References: <1328046415.3743.315.camel@...2150...> Message-ID: You might want to compile without gsl right now... Instead of normal ./configure, do ./configure --disable-gsl Jussi On Tue, Jan 31, 2012 at 23:46, Caveat wrote: > Hi list > > On a new machine running Ubuntu 11.10 Oneiric, I'm having problems > compiling Gambas3. It seems to be to do with my installation of gsl > (gnu scientific library?). > > Attached is the full (gzipped) output from the compile script. > > I tried searching the documentation just out of interest to see what the > component gb.gsl is, but there seems to be no trace of it. > > Thanks and regards, > Caveat > > > > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From jussi.lahtinen at ...626... Tue Jan 31 22:51:25 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Tue, 31 Jan 2012 23:51:25 +0200 Subject: [Gambas-user] Compile error (gb.gsl) on Ubuntu 11.10 In-Reply-To: References: <1328046415.3743.315.camel@...2150...> Message-ID: http://www.gnu.org/software/gsl/ Very useful, at least to me. Jussi On Tue, Jan 31, 2012 at 23:50, Jussi Lahtinen wrote: > You might want to compile without gsl right now... > Instead of normal ./configure, do ./configure --disable-gsl > > Jussi > > > > On Tue, Jan 31, 2012 at 23:46, Caveat wrote: > >> Hi list >> >> On a new machine running Ubuntu 11.10 Oneiric, I'm having problems >> compiling Gambas3. It seems to be to do with my installation of gsl >> (gnu scientific library?). >> >> Attached is the full (gzipped) output from the compile script. >> >> I tried searching the documentation just out of interest to see what the >> component gb.gsl is, but there seems to be no trace of it. >> >> Thanks and regards, >> Caveat >> >> >> >> >> ------------------------------------------------------------------------------ >> Keep Your Developer Skills Current with LearnDevNow! >> The most comprehensive online learning library for Microsoft developers >> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, >> Metro Style Apps, more. Free future releases when you subscribe now! >> http://p.sf.net/sfu/learndevnow-d2d >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> > From abbat.81 at ...787... Tue Jan 31 22:57:48 2012 From: abbat.81 at ...787... (abbat) Date: Tue, 31 Jan 2012 13:57:48 -0800 (PST) Subject: [Gambas-user] Seconds => Time.Format(hh:mm:ss) Message-ID: <33239641.post@...1379...> How to convert a seconds to time format Dim Sec = 300 How to display it as: 00:05:00 Thanks -- View this message in context: http://old.nabble.com/Seconds-%3D%3E-Time.Format%28hh%3Amm%3Ass%29-tp33239641p33239641.html Sent from the gambas-user mailing list archive at Nabble.com. From rmorgan62 at ...626... Tue Jan 31 23:02:49 2012 From: rmorgan62 at ...626... (Randall Morgan) Date: Tue, 31 Jan 2012 14:02:49 -0800 Subject: [Gambas-user] Compile error (gb.gsl) on Ubuntu 11.10 In-Reply-To: References: <1328046415.3743.315.camel@...2150...> Message-ID: You do not have the GNU Scientific Library (GSL) in your system path or it is not installed on your system. On Ubuntu, you need to install this from the system repo with apt-get install gsl-bin gsl-doc-pdf libgsl0-dev installing from the tar file will not provide the needed symbolic links on Ubuntu. Note that the GSL component is currently under development and there is only a very skinny skeleton in the Gambas repo at the moment. I will have all the math.h functions included soon and will move on to complex number functions. On Tue, Jan 31, 2012 at 1:51 PM, Jussi Lahtinen wrote: > http://www.gnu.org/software/gsl/ > > Very useful, at least to me. > > Jussi > > > > > On Tue, Jan 31, 2012 at 23:50, Jussi Lahtinen >wrote: > > > You might want to compile without gsl right now... > > Instead of normal ./configure, do ./configure --disable-gsl > > > > Jussi > > > > > > > > On Tue, Jan 31, 2012 at 23:46, Caveat wrote: > > > >> Hi list > >> > >> On a new machine running Ubuntu 11.10 Oneiric, I'm having problems > >> compiling Gambas3. It seems to be to do with my installation of gsl > >> (gnu scientific library?). > >> > >> Attached is the full (gzipped) output from the compile script. > >> > >> I tried searching the documentation just out of interest to see what the > >> component gb.gsl is, but there seems to be no trace of it. > >> > >> Thanks and regards, > >> Caveat > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ > >> Keep Your Developer Skills Current with LearnDevNow! > >> The most comprehensive online learning library for Microsoft developers > >> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > >> Metro Style Apps, more. Free future releases when you subscribe now! > >> http://p.sf.net/sfu/learndevnow-d2d > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > >> > > > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- If you ask me if it can be done. The answer is YES, it can always be done. The correct questions however are... What will it cost, and how long will it take? From emil.lenngren at ...626... Tue Jan 31 23:06:10 2012 From: emil.lenngren at ...626... (Emil Lenngren) Date: Tue, 31 Jan 2012 23:06:10 +0100 Subject: [Gambas-user] Seconds => Time.Format(hh:mm:ss) In-Reply-To: <33239641.post@...1379...> References: <33239641.post@...1379...> Message-ID: You should read the documentation. http://gambasdoc.org/help/lang/time?v3 http://gambasdoc.org/help/cat/time?v3 /Emil 2012/1/31 abbat > > How to convert a seconds to time format > > Dim Sec = 300 > > How to display it as: > > 00:05:00 > > Thanks > > -- > View this message in context: > http://old.nabble.com/Seconds-%3D%3E-Time.Format%28hh%3Amm%3Ass%29-tp33239641p33239641.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From abbat.81 at ...787... Tue Jan 31 23:11:12 2012 From: abbat.81 at ...787... (abbat) Date: Tue, 31 Jan 2012 14:11:12 -0800 (PST) Subject: [Gambas-user] Seconds => Time.Format(hh:mm:ss) In-Reply-To: References: <33239641.post@...1379...> Message-ID: <33239740.post@...1379...> I've read the docs, but my "300" seconds is not the same like "NOW" so it does not work Emil Lenngren wrote: > > You should read the documentation. > http://gambasdoc.org/help/lang/time?v3 > http://gambasdoc.org/help/cat/time?v3 > > /Emil > > 2012/1/31 abbat > >> >> How to convert a seconds to time format >> >> Dim Sec = 300 >> >> How to display it as: >> >> 00:05:00 >> >> Thanks >> >> -- >> View this message in context: >> http://old.nabble.com/Seconds-%3D%3E-Time.Format%28hh%3Amm%3Ass%29-tp33239641p33239641.html >> Sent from the gambas-user mailing list archive at Nabble.com. >> >> >> >> ------------------------------------------------------------------------------ >> Keep Your Developer Skills Current with LearnDevNow! >> The most comprehensive online learning library for Microsoft developers >> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, >> Metro Style Apps, more. Free future releases when you subscribe now! >> http://p.sf.net/sfu/learndevnow-d2d >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://old.nabble.com/Seconds-%3D%3E-Time.Format%28hh%3Amm%3Ass%29-tp33239641p33239740.html Sent from the gambas-user mailing list archive at Nabble.com. From Gambas at ...1950... Tue Jan 31 23:13:52 2012 From: Gambas at ...1950... (Caveat) Date: Tue, 31 Jan 2012 23:13:52 +0100 Subject: [Gambas-user] Compile error (gb.gsl) on Ubuntu 11.10 In-Reply-To: References: <1328046415.3743.315.camel@...2150...> Message-ID: <1328048032.3743.322.camel@...2150...> Thanks Jussi, that did the trick. Seems like it's just looking in the wrong place... my gsl_math.h header file is in /usr/include/gsl/ but it looks like the compile is looking for it in /usr/local/include/gsl/ Dunno if that helps anyone... If I understand correctly, gb.gsl is a new component which will interface to the gnu scientific library. Perhaps someone could take a look at including it in the documentation, so it doesn't seem so 'mysterious' in the future? :-) Thanks again and kind regards, Caveat On Tue, 2012-01-31 at 23:51 +0200, Jussi Lahtinen wrote: > http://www.gnu.org/software/gsl/ > > Very useful, at least to me. > > Jussi > > > > > On Tue, Jan 31, 2012 at 23:50, Jussi Lahtinen > wrote: > You might want to compile without gsl right now... > Instead of normal ./configure, do ./configure --disable-gsl > > Jussi > > > > On Tue, Jan 31, 2012 at 23:46, Caveat > wrote: > > Hi list > > On a new machine running Ubuntu 11.10 Oneiric, I'm > having problems > compiling Gambas3. It seems to be to do with my > installation of gsl > (gnu scientific library?). > > Attached is the full (gzipped) output from the compile > script. > > I tried searching the documentation just out of > interest to see what the > component gb.gsl is, but there seems to be no trace of > it. > > Thanks and regards, > Caveat > > > > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for > Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus > HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you > subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > From emil.lenngren at ...626... Tue Jan 31 23:16:14 2012 From: emil.lenngren at ...626... (Emil Lenngren) Date: Tue, 31 Jan 2012 23:16:14 +0100 Subject: [Gambas-user] Seconds => Time.Format(hh:mm:ss) In-Reply-To: <33239740.post@...1379...> References: <33239641.post@...1379...> <33239740.post@...1379...> Message-ID: This is from the documentation: Time *Date* *= Time (* *Hours* AS Integer *,* *Minutes* AS Integer*,* *Seconds* AS Integer*)* AS Date Makes a time from its components. PRINT Time(14, 08, 25) ------------------------------ 14:08:25 So if you write: PRINT Time(0, 0, 300) It should print 00:05:00. I am not 100% sure, but you should try it. 2012/1/31 abbat > > I've read the docs, but my "300" seconds is not the same like "NOW" so it > does not work > > Emil Lenngren wrote: > > > > You should read the documentation. > > http://gambasdoc.org/help/lang/time?v3 > > http://gambasdoc.org/help/cat/time?v3 > > > > /Emil > > > > 2012/1/31 abbat > > > >> > >> How to convert a seconds to time format > >> > >> Dim Sec = 300 > >> > >> How to display it as: > >> > >> 00:05:00 > >> > >> Thanks > >> > >> -- > >> View this message in context: > >> > http://old.nabble.com/Seconds-%3D%3E-Time.Format%28hh%3Amm%3Ass%29-tp33239641p33239641.html > >> Sent from the gambas-user mailing list archive at Nabble.com. > >> > >> > >> > >> > ------------------------------------------------------------------------------ > >> Keep Your Developer Skills Current with LearnDevNow! > >> The most comprehensive online learning library for Microsoft developers > >> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > >> Metro Style Apps, more. Free future releases when you subscribe now! > >> http://p.sf.net/sfu/learndevnow-d2d > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > > ------------------------------------------------------------------------------ > > Keep Your Developer Skills Current with LearnDevNow! > > The most comprehensive online learning library for Microsoft developers > > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > > Metro Style Apps, more. Free future releases when you subscribe now! > > http://p.sf.net/sfu/learndevnow-d2d > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > -- > View this message in context: > http://old.nabble.com/Seconds-%3D%3E-Time.Format%28hh%3Amm%3Ass%29-tp33239641p33239740.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From rmorgan62 at ...626... Tue Jan 31 23:17:25 2012 From: rmorgan62 at ...626... (Randall Morgan) Date: Tue, 31 Jan 2012 14:17:25 -0800 Subject: [Gambas-user] Compile error (gb.gsl) on Ubuntu 11.10 In-Reply-To: <1328048032.3743.322.camel@...2150...> References: <1328046415.3743.315.camel@...2150...> <1328048032.3743.322.camel@...2150...> Message-ID: For the moment compile without GSL. My next commit will not provide the path so it will depend on the system to locate it. On Tue, Jan 31, 2012 at 2:13 PM, Caveat wrote: > Thanks Jussi, that did the trick. > > Seems like it's just looking in the wrong place... my gsl_math.h header > file is in /usr/include/gsl/ but it looks like the compile is looking > for it in /usr/local/include/gsl/ > Dunno if that helps anyone... > > If I understand correctly, gb.gsl is a new component which will > interface to the gnu scientific library. Perhaps someone could take a > look at including it in the documentation, so it doesn't seem so > 'mysterious' in the future? :-) > > Thanks again and kind regards, > Caveat > > On Tue, 2012-01-31 at 23:51 +0200, Jussi Lahtinen wrote: > > http://www.gnu.org/software/gsl/ > > > > Very useful, at least to me. > > > > Jussi > > > > > > > > > > On Tue, Jan 31, 2012 at 23:50, Jussi Lahtinen > > wrote: > > You might want to compile without gsl right now... > > Instead of normal ./configure, do ./configure --disable-gsl > > > > Jussi > > > > > > > > On Tue, Jan 31, 2012 at 23:46, Caveat > > wrote: > > > > Hi list > > > > On a new machine running Ubuntu 11.10 Oneiric, I'm > > having problems > > compiling Gambas3. It seems to be to do with my > > installation of gsl > > (gnu scientific library?). > > > > Attached is the full (gzipped) output from the compile > > script. > > > > I tried searching the documentation just out of > > interest to see what the > > component gb.gsl is, but there seems to be no trace of > > it. > > > > Thanks and regards, > > Caveat > > > > > > > > > > > ------------------------------------------------------------------------------ > > Keep Your Developer Skills Current with LearnDevNow! > > The most comprehensive online learning library for > > Microsoft developers > > is just $99.99! Visual Studio, SharePoint, SQL - plus > > HTML5, CSS3, MVC3, > > Metro Style Apps, more. Free future releases when you > > subscribe now! > > http://p.sf.net/sfu/learndevnow-d2d > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- If you ask me if it can be done. The answer is YES, it can always be done. The correct questions however are... What will it cost, and how long will it take? From Gambas at ...1950... Tue Jan 31 23:25:34 2012 From: Gambas at ...1950... (Caveat) Date: Tue, 31 Jan 2012 23:25:34 +0100 Subject: [Gambas-user] Seconds => Time.Format(hh:mm:ss) In-Reply-To: <33239740.post@...1379...> References: <33239641.post@...1379...> <33239740.post@...1379...> Message-ID: <1328048734.3743.331.camel@...2150...> It's not so hard, ignore the Now bit and look at the second example Print Time(14, 18, 25) I don't think the documentation could be much clearer, it just needs you to actually take the time to read it and figure out how to make the example work for you. The documentation can't possibly show exactly the statements *you* need every time... but try to follow the examples (and don't just stop and give up after the first sentence). The example shows nice printing of a time with 14 hours, 18 minutes, and 25 seconds. What do you think it'll show if the hours are zero, the minutes are zero and the seconds are 300? Regards, Caveat On Tue, 2012-01-31 at 14:11 -0800, abbat wrote: > I've read the docs, but my "300" seconds is not the same like "NOW" so it > does not work > > Emil Lenngren wrote: > > > > You should read the documentation. > > http://gambasdoc.org/help/lang/time?v3 > > http://gambasdoc.org/help/cat/time?v3 > > > > /Emil > > > > 2012/1/31 abbat > > > >> > >> How to convert a seconds to time format > >> > >> Dim Sec = 300 > >> > >> How to display it as: > >> > >> 00:05:00 > >> > >> Thanks > >> > >> -- > >> View this message in context: > >> http://old.nabble.com/Seconds-%3D%3E-Time.Format%28hh%3Amm%3Ass%29-tp33239641p33239641.html > >> Sent from the gambas-user mailing list archive at Nabble.com. > >> > >> > >> > >> ------------------------------------------------------------------------------ > >> Keep Your Developer Skills Current with LearnDevNow! > >> The most comprehensive online learning library for Microsoft developers > >> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > >> Metro Style Apps, more. Free future releases when you subscribe now! > >> http://p.sf.net/sfu/learndevnow-d2d > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > ------------------------------------------------------------------------------ > > Keep Your Developer Skills Current with LearnDevNow! > > The most comprehensive online learning library for Microsoft developers > > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > > Metro Style Apps, more. Free future releases when you subscribe now! > > http://p.sf.net/sfu/learndevnow-d2d > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > From rmorgan62 at ...626... Tue Jan 31 23:25:36 2012 From: rmorgan62 at ...626... (Randall Morgan) Date: Tue, 31 Jan 2012 14:25:36 -0800 Subject: [Gambas-user] Compile error (gb.gsl) on Ubuntu 11.10 In-Reply-To: References: <1328046415.3743.315.camel@...2150...> <1328048032.3743.322.camel@...2150...> Message-ID: Ok, should be fixed in rev 4442 On Tue, Jan 31, 2012 at 2:17 PM, Randall Morgan wrote: > For the moment compile without GSL. My next commit will not provide the > path so it will depend on the system to locate it. > > > On Tue, Jan 31, 2012 at 2:13 PM, Caveat wrote: > >> Thanks Jussi, that did the trick. >> >> Seems like it's just looking in the wrong place... my gsl_math.h header >> file is in /usr/include/gsl/ but it looks like the compile is looking >> for it in /usr/local/include/gsl/ >> Dunno if that helps anyone... >> >> If I understand correctly, gb.gsl is a new component which will >> interface to the gnu scientific library. Perhaps someone could take a >> look at including it in the documentation, so it doesn't seem so >> 'mysterious' in the future? :-) >> >> Thanks again and kind regards, >> Caveat >> >> On Tue, 2012-01-31 at 23:51 +0200, Jussi Lahtinen wrote: >> > http://www.gnu.org/software/gsl/ >> > >> > Very useful, at least to me. >> > >> > Jussi >> > >> > >> > >> > >> > On Tue, Jan 31, 2012 at 23:50, Jussi Lahtinen >> > wrote: >> > You might want to compile without gsl right now... >> > Instead of normal ./configure, do ./configure --disable-gsl >> > >> > Jussi >> > >> > >> > >> > On Tue, Jan 31, 2012 at 23:46, Caveat >> > wrote: >> > >> > Hi list >> > >> > On a new machine running Ubuntu 11.10 Oneiric, I'm >> > having problems >> > compiling Gambas3. It seems to be to do with my >> > installation of gsl >> > (gnu scientific library?). >> > >> > Attached is the full (gzipped) output from the compile >> > script. >> > >> > I tried searching the documentation just out of >> > interest to see what the >> > component gb.gsl is, but there seems to be no trace of >> > it. >> > >> > Thanks and regards, >> > Caveat >> > >> > >> > >> > >> > >> ------------------------------------------------------------------------------ >> > Keep Your Developer Skills Current with LearnDevNow! >> > The most comprehensive online learning library for >> > Microsoft developers >> > is just $99.99! Visual Studio, SharePoint, SQL - plus >> > HTML5, CSS3, MVC3, >> > Metro Style Apps, more. Free future releases when you >> > subscribe now! >> > http://p.sf.net/sfu/learndevnow-d2d >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > >> > >> > >> >> >> >> >> ------------------------------------------------------------------------------ >> Keep Your Developer Skills Current with LearnDevNow! >> The most comprehensive online learning library for Microsoft developers >> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, >> Metro Style Apps, more. Free future releases when you subscribe now! >> http://p.sf.net/sfu/learndevnow-d2d >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > > -- > If you ask me if it can be done. The answer is YES, it can always be done. > The correct questions however are... What will it cost, and how long will > it take? > -- If you ask me if it can be done. The answer is YES, it can always be done. The correct questions however are... What will it cost, and how long will it take? From Gambas at ...1950... Tue Jan 31 23:27:10 2012 From: Gambas at ...1950... (Caveat) Date: Tue, 31 Jan 2012 23:27:10 +0100 Subject: [Gambas-user] Compile error (gb.gsl) on Ubuntu 11.10 In-Reply-To: References: <1328046415.3743.315.camel@...2150...> <1328048032.3743.322.camel@...2150...> Message-ID: <1328048830.3743.332.camel@...2150...> Sounds great Randall, thanks for the info Regards, Caveat On Tue, 2012-01-31 at 14:17 -0800, Randall Morgan wrote: > For the moment compile without GSL. My next commit will not provide > the path so it will depend on the system to locate it. > > > On Tue, Jan 31, 2012 at 2:13 PM, Caveat > wrote: > Thanks Jussi, that did the trick. > > Seems like it's just looking in the wrong place... my > gsl_math.h header > file is in /usr/include/gsl/ but it looks like the compile is > looking > for it in /usr/local/include/gsl/ > Dunno if that helps anyone... > > If I understand correctly, gb.gsl is a new component which > will > interface to the gnu scientific library. Perhaps someone > could take a > look at including it in the documentation, so it doesn't seem > so > 'mysterious' in the future? :-) > > Thanks again and kind regards, > Caveat > > On Tue, 2012-01-31 at 23:51 +0200, Jussi Lahtinen wrote: > > http://www.gnu.org/software/gsl/ > > > > Very useful, at least to me. > > > > Jussi > > > > > > > > > > On Tue, Jan 31, 2012 at 23:50, Jussi Lahtinen > > wrote: > > You might want to compile without gsl right now... > > Instead of normal ./configure, do ./configure > --disable-gsl > > > > Jussi > > > > > > > > On Tue, Jan 31, 2012 at 23:46, Caveat > > wrote: > > > > Hi list > > > > On a new machine running Ubuntu 11.10 > Oneiric, I'm > > having problems > > compiling Gambas3. It seems to be to do > with my > > installation of gsl > > (gnu scientific library?). > > > > Attached is the full (gzipped) output from > the compile > > script. > > > > I tried searching the documentation just out > of > > interest to see what the > > component gb.gsl is, but there seems to be > no trace of > > it. > > > > Thanks and regards, > > Caveat > > > > > > > > > > > ------------------------------------------------------------------------------ > > Keep Your Developer Skills Current with > LearnDevNow! > > The most comprehensive online learning > library for > > Microsoft developers > > is just $99.99! Visual Studio, SharePoint, > SQL - plus > > HTML5, CSS3, MVC3, > > Metro Style Apps, more. Free future releases > when you > > subscribe now! > > http://p.sf.net/sfu/learndevnow-d2d > > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft > developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, > CSS3, MVC3, > Metro Style Apps, more. Free future releases when you > subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > -- > If you ask me if it can be done. The answer is YES, it can always be > done. The correct questions however are... What will it cost, and how > long will it take? > From Gambas at ...1950... Tue Jan 31 23:34:19 2012 From: Gambas at ...1950... (Caveat) Date: Tue, 31 Jan 2012 23:34:19 +0100 Subject: [Gambas-user] Compile error (gb.gsl) on Ubuntu 11.10 In-Reply-To: References: <1328046415.3743.315.camel@...2150...> <1328048032.3743.322.camel@...2150...> Message-ID: <1328049259.3743.335.camel@...2150...> I thought you meant in the next few days/weeks, not the next few seconds LOL I can confirm that 4442 compiles fine for me in Oneiric now without the disable-gsl option. Thanks for the lightning fast turnaround! Regards, Caveat On Tue, 2012-01-31 at 14:25 -0800, Randall Morgan wrote: > Ok, should be fixed in rev 4442 > > > On Tue, Jan 31, 2012 at 2:17 PM, Randall Morgan > wrote: > For the moment compile without GSL. My next commit will not > provide the path so it will depend on the system to locate it. > > > On Tue, Jan 31, 2012 at 2:13 PM, Caveat > wrote: > Thanks Jussi, that did the trick. > > Seems like it's just looking in the wrong place... my > gsl_math.h header > file is in /usr/include/gsl/ but it looks like the > compile is looking > for it in /usr/local/include/gsl/ > Dunno if that helps anyone... > > If I understand correctly, gb.gsl is a new component > which will > interface to the gnu scientific library. Perhaps > someone could take a > look at including it in the documentation, so it > doesn't seem so > 'mysterious' in the future? :-) > > Thanks again and kind regards, > Caveat > > On Tue, 2012-01-31 at 23:51 +0200, Jussi Lahtinen > wrote: > > http://www.gnu.org/software/gsl/ > > > > Very useful, at least to me. > > > > Jussi > > > > > > > > > > On Tue, Jan 31, 2012 at 23:50, Jussi Lahtinen > > wrote: > > You might want to compile without gsl right > now... > > Instead of normal ./configure, > do ./configure --disable-gsl > > > > Jussi > > > > > > > > On Tue, Jan 31, 2012 at 23:46, Caveat > > wrote: > > > > Hi list > > > > On a new machine running Ubuntu > 11.10 Oneiric, I'm > > having problems > > compiling Gambas3. It seems to be > to do with my > > installation of gsl > > (gnu scientific library?). > > > > Attached is the full (gzipped) > output from the compile > > script. > > > > I tried searching the documentation > just out of > > interest to see what the > > component gb.gsl is, but there seems > to be no trace of > > it. > > > > Thanks and regards, > > Caveat > > > > > > > > > > > ------------------------------------------------------------------------------ > > Keep Your Developer Skills Current > with LearnDevNow! > > The most comprehensive online > learning library for > > Microsoft developers > > is just $99.99! Visual Studio, > SharePoint, SQL - plus > > HTML5, CSS3, MVC3, > > Metro Style Apps, more. Free future > releases when you > > subscribe now! > > http://p.sf.net/sfu/learndevnow-d2d > > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for > Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus > HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you > subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > -- > If you ask me if it can be done. The answer is YES, it can > always be done. The correct questions however are... What will > it cost, and how long will it take? > > > > > > -- > If you ask me if it can be done. The answer is YES, it can always be > done. The correct questions however are... What will it cost, and how > long will it take? >