From and.bertini at ...626... Mon Aug 1 06:21:07 2011 From: and.bertini at ...626... (Andrea Bertini) Date: Mon, 1 Aug 2011 06:21:07 +0200 Subject: [Gambas-user] Google Chart Api Message-ID: Is anyone interested how to use Google Api to show java chart in Gambas? Andrea BERTINI Rome-Italy From ron at ...1740... Mon Aug 1 07:14:15 2011 From: ron at ...1740... (Ron) Date: Mon, 1 Aug 2011 07:14:15 +0200 Subject: [Gambas-user] Google Chart Api In-Reply-To: References: Message-ID: Yes Op 1 aug. 2011 06:21 schreef "Andrea Bertini" het volgende: > Is anyone interested how to use Google Api to show java chart in Gambas? > > Andrea BERTINI > Rome-Italy > ------------------------------------------------------------------------------ > Got Input? Slashdot Needs You. > Take our quick survey online. Come on, we don't ask for help often. > Plus, you'll get a chance to win $100 to spend on ThinkGeek. > http://p.sf.net/sfu/slashdot-survey > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Mon Aug 1 10:47:14 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 1 Aug 2011 10:47:14 +0200 Subject: [Gambas-user] gb3: gb.opengl will not render alpha channel of 2D texture In-Reply-To: <4E350774.2060502@...1887...> References: <4E33865D.50503@...1887...> <201107302344.07349.gambas@...1...> <4E350774.2060502@...1887...> Message-ID: <201108011047.14841.gambas@...1...> > > > > If, in GltextureMapping.c:238: > > glTexImage2D(GL_TEXTURE_2D, VARGOPT(Level, 0), 3, image->width, > > > > image->height, VARGOPT(Border, 0), format, GL_UNSIGNED_BYTE, > > image->data); > > > > I replace the "3" by "4", as it is in line 225, I get the transparency. > > > > According to the documentation, this number is the number of color > > components in the texture, which should be 4 for RGBA. > > > > I suggest that this number should be 3 if the image format is RGB or BGR, > > and 4 if the image format is RGBA, RGBX, BGRA, tec. > > > > Another point. I opened the file GLUtextureImage.c (searching for > > GL.TexImage2D), and I noticed that GLUBUILD1DMIPMAPS use IMAGE_get to > > read its image argument (which does error checking), but not > > GLUBUILD2DMIPMAPS, which should lead to possible segfaults... > > Interesting observations Beno?t. I did get a segfault using > Glu.Build2DMipmaps(), though I corrected it by moving the call. Was a > strange error among many, which I'm still trying to correct. Mostly I > think it's my faulty logic. > > Tomek, who is having some trouble mailing the mailing list lately, > helped me get the alpha channel working correctly. I don't understand > the logic, but enabling the gb.opengl.glu component and adding the line > "Glu.Build2DMipmaps(t1)" to the end of the texture setup code enabled > the alpha channel. The final code looks like this: > > ? Set up texture. > Gl.BindTexture(Gl.GL_TEXTURE_2D, textures[0]) > Gl.TexParameteri(Gl.GL_TEXTURE_2D, Gl.GL_TEXTURE_MIN_FILTER, Gl.GL_LINEAR) > Gl.TexParameteri(Gl.GL_TEXTURE_2D, Gl.GL_TEXTURE_MAG_FILTER, Gl.GL_LINEAR) > Gl.TexParameteri(Gl.GL_TEXTURE_2D, Gl.GL_TEXTURE_WRAP_S, Gl.GL_CLAMP) > Gl.TexParameteri(Gl.GL_TEXTURE_2D, Gl.GL_TEXTURE_WRAP_T, Gl.GL_CLAMP) > Gl.TexImage2D(t1) > Glu.Build2DMipmaps(t1) > > No idea why the segfault occurred, but am glad I could work around it. Glu.Build2DMipmaps() could segfault if it receives a NULL image. Anyway, in revision #3958, you don't have to do all that trick: image alpha channel should be correctly taken into account in OpenGL APIs. Regards, -- Beno?t Minisini From kevinfishburne at ...1887... Mon Aug 1 11:30:16 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Mon, 01 Aug 2011 05:30:16 -0400 Subject: [Gambas-user] gb3: gb.opengl will not render alpha channel of 2D texture In-Reply-To: <201108011047.14841.gambas@...1...> References: <4E33865D.50503@...1887...> <201107302344.07349.gambas@...1...> <4E350774.2060502@...1887...> <201108011047.14841.gambas@...1...> Message-ID: <4E367228.5090809@...1887...> On 08/01/2011 04:47 AM, Beno?t Minisini wrote: >>> If, in GltextureMapping.c:238: >>> glTexImage2D(GL_TEXTURE_2D, VARGOPT(Level, 0), 3, image->width, >>> >>> image->height, VARGOPT(Border, 0), format, GL_UNSIGNED_BYTE, >>> image->data); >>> >>> I replace the "3" by "4", as it is in line 225, I get the transparency. >>> >>> According to the documentation, this number is the number of color >>> components in the texture, which should be 4 for RGBA. >>> >>> I suggest that this number should be 3 if the image format is RGB or BGR, >>> and 4 if the image format is RGBA, RGBX, BGRA, tec. >>> >>> Another point. I opened the file GLUtextureImage.c (searching for >>> GL.TexImage2D), and I noticed that GLUBUILD1DMIPMAPS use IMAGE_get to >>> read its image argument (which does error checking), but not >>> GLUBUILD2DMIPMAPS, which should lead to possible segfaults... >> Interesting observations Beno?t. I did get a segfault using >> Glu.Build2DMipmaps(), though I corrected it by moving the call. Was a >> strange error among many, which I'm still trying to correct. Mostly I >> think it's my faulty logic. >> >> Tomek, who is having some trouble mailing the mailing list lately, >> helped me get the alpha channel working correctly. I don't understand >> the logic, but enabling the gb.opengl.glu component and adding the line >> "Glu.Build2DMipmaps(t1)" to the end of the texture setup code enabled >> the alpha channel. The final code looks like this: >> >> ? Set up texture. >> Gl.BindTexture(Gl.GL_TEXTURE_2D, textures[0]) >> Gl.TexParameteri(Gl.GL_TEXTURE_2D, Gl.GL_TEXTURE_MIN_FILTER, Gl.GL_LINEAR) >> Gl.TexParameteri(Gl.GL_TEXTURE_2D, Gl.GL_TEXTURE_MAG_FILTER, Gl.GL_LINEAR) >> Gl.TexParameteri(Gl.GL_TEXTURE_2D, Gl.GL_TEXTURE_WRAP_S, Gl.GL_CLAMP) >> Gl.TexParameteri(Gl.GL_TEXTURE_2D, Gl.GL_TEXTURE_WRAP_T, Gl.GL_CLAMP) >> Gl.TexImage2D(t1) >> Glu.Build2DMipmaps(t1) >> >> No idea why the segfault occurred, but am glad I could work around it. > Glu.Build2DMipmaps() could segfault if it receives a NULL image. Anyway, in > revision #3958, you don't have to do all that trick: image alpha channel > should be correctly taken into account in OpenGL APIs. Awesome, thank you. I'll compile the newest revision and give it a try. I finally subscribed to the svn mailing list...love it. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From Karl.Reinl at ...2345... Mon Aug 1 12:58:27 2011 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Mon, 01 Aug 2011 12:58:27 +0200 Subject: [Gambas-user] togglebutton in gb3 Message-ID: <1312196307.6474.9.camel@...40...> Salut, changing the background of an togglebutton don't work. gambas3 rev 3956 Mandriva 2010.2 qt4 only (gtk not tested) -- Amicalement Charlie From sotema at ...626... Mon Aug 1 17:39:18 2011 From: sotema at ...626... (Emanuele Sottocorno) Date: Mon, 01 Aug 2011 17:39:18 +0200 Subject: [Gambas-user] Sting declared as Const are not translated Message-ID: <1312213158.2601.8.camel@...2516...> Hi to all, declaring a string like: MyClass.Class Create Private PRIVATE CONST MYSTRING As String = ("A string") and using that string in another class like MyForm.Class MyForm.Caption = MyClass.MYSTRING even if the string is correctly translated trough the Translate Tool in the IDE when the form opens the caption appears in the default language. Is this correct or could be fixed? Thanks in advance, Emanuele From ea7dfh at ...2382... Mon Aug 1 18:26:44 2011 From: ea7dfh at ...2382... (Jesus) Date: Mon, 01 Aug 2011 18:26:44 +0200 Subject: [Gambas-user] Sting declared as Const are not translated In-Reply-To: <1312213158.2601.8.camel@...2516...> References: <1312213158.2601.8.camel@...2516...> Message-ID: <4E36D3C4.3050402@...2382...> El 01/08/11 17:39, Emanuele Sottocorno escribi?: > Hi to all, > declaring a string like: > > MyClass.Class > > Create Private > > PRIVATE CONST MYSTRING As String = ("A string") > > and using that string in another class like > > MyForm.Class > > MyForm.Caption = MyClass.MYSTRING > > even if the string is correctly translated trough the Translate Tool in > the IDE when the form opens the caption appears in the default language. > Is this correct or could be fixed? > Thanks in advance, > Emanuele Shouldn't a constant to be "constant"? Hope Benoit will enlighten us. -- Jesus Guardon From math.eber at ...221... Mon Aug 1 20:16:58 2011 From: math.eber at ...221... (Matti) Date: Mon, 01 Aug 2011 20:16:58 +0200 Subject: [Gambas-user] gb3 requirements on openSUSE 11.4 In-Reply-To: <4E35BDFC.2050005@...1887...> References: <4E34053E.1060608@...221...> <4E345670.3080905@...2382...> <4E35B4D0.4030303@...221...> <4E35BDFC.2050005@...1887...> Message-ID: <4E36ED9A.3050105@...221...> Thanks, Kevin. A lot of +/- to think about, but your hints are helpfully. Will try some live-CDs... Am 31.07.2011 22:41, schrieb Kevin Fishburne: > On 07/31/2011 04:02 PM, Matti wrote: >> Well, I thought about changing to another distro anyway, for some other reasons. >> The only thing is that I am used to SUSE for years now... >> Maybe Ubuntu 11.04? >> Can someone confirm that gb3 can be compiled there without significant problems? >> Or maybe another distribution is better? >> >> Any recommendations? > > I'm using Debian Wheezy/Testing now, though I used to use Ubuntu. It's a > little rough around the edges but works for me. I've heard and seen good > things from Fedora, and looks pretty slick the times I've installed it > on customers' computers. I tried Linux Mint and found it to be a bit of > a hack-job, so I don't recommend it. > > Ubuntu 11.04 is using Unity, which is a really weird/goofy way to > interact with the desktop and lacks any customization. It has a "classic > mode" that you can switch to from the login screen, but I heard they're > removing it in 11.10, forcing people to use Unity. That's why I dumped > it. Ubuntu 10.10 is pretty solid however, and the only reason I wouldn't > recommend using it is because eventually it will be no longer supported > and you'll have to upgrade and use Unity. > From kevinfishburne at ...1887... Mon Aug 1 21:02:12 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Mon, 01 Aug 2011 15:02:12 -0400 Subject: [Gambas-user] gb3 requirements on openSUSE 11.4 In-Reply-To: <4E36ED9A.3050105@...221...> References: <4E34053E.1060608@...221...> <4E345670.3080905@...2382...> <4E35B4D0.4030303@...221...> <4E35BDFC.2050005@...1887...> <4E36ED9A.3050105@...221...> Message-ID: <4E36F834.3050701@...1887...> On 08/01/2011 02:16 PM, Matti wrote: > Thanks, Kevin. > > A lot of +/- to think about, but your hints are helpfully. > Will try some live-CDs... Any time. I'd hit up http://distrowatch.com/ to look at the top distributions, or perhaps do a search of Debian-based distros there (or whatever package management type you prefer). Also use a USB pen drive and the program unetbootin to make it bootable using a LiveCD ISO (or its integrated disto list!). unetbootin with a USB stick will save you burn and boot time and waste no CDs. It rocks, and good luck! -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From math.eber at ...221... Mon Aug 1 21:31:32 2011 From: math.eber at ...221... (Matti) Date: Mon, 01 Aug 2011 21:31:32 +0200 Subject: [Gambas-user] gb3 requirements on openSUSE 11.4 In-Reply-To: <4E34053E.1060608@...221...> References: <4E34053E.1060608@...221...> Message-ID: <4E36FF14.2050604@...221...> Paolo has sent me a solution that solves the "missing file '-ljscore'" error: - if you want to compile gambas3 yourself and want to prevent, that the compile run breaks with a "missing libjscore" error, then you have to install my patched package libQtWebKit-devel located at http://download.opensuse.org/repositories/home:/munix9:/branches:/openSUSE:/11.4:/Update/standard/ for a standard openSUSE 11.4 (updated) system. Now gb3 runs again! Am 30.07.2011 15:21, schrieb Matti: > Installing the requirements, I run from one trouble into another, it's horrible. > > Right now, 'make' complains about a missing file '-ljscore'. > > I found a mail from Paolo in this list, but the link to his "Extended" repo of > 11.4 doesn't work. > Then I downloaded libqt4-4.7.3-8.1.i586.rpm, but this won't install because of a > wrong version of libstdc++.so.6. Downloaded > libstdc++46-4.6.1_20110701-2.10.i586.rpm, but this is in conflict with something > else, and so on... > > Has anyone of you fixed the '-ljscore' problem and can give me a hint? > > Thanks > Matti From gambas at ...1... Tue Aug 2 00:11:10 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 2 Aug 2011 00:11:10 +0200 Subject: [Gambas-user] Sting declared as Const are not translated In-Reply-To: <1312213158.2601.8.camel@...2516...> References: <1312213158.2601.8.camel@...2516...> Message-ID: <201108020011.10431.gambas@...1...> > Hi to all, > declaring a string like: > > MyClass.Class > > Create Private > > PRIVATE CONST MYSTRING As String = ("A string") > > and using that string in another class like > > MyForm.Class > > MyForm.Caption = MyClass.MYSTRING > > even if the string is correctly translated trough the Translate Tool in > the IDE when the form opens the caption appears in the default language. > Is this correct or could be fixed? > Thanks in advance, > Emanuele > Right, there is a problem: the constant is not translated when you access it as a public symbol of a class. I don't know if I can fix it yet... -- Beno?t Minisini From gambas at ...1... Tue Aug 2 01:37:09 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 2 Aug 2011 01:37:09 +0200 Subject: [Gambas-user] Sting declared as Const are not translated In-Reply-To: <201108020011.10431.gambas@...1...> References: <1312213158.2601.8.camel@...2516...> <201108020011.10431.gambas@...1...> Message-ID: <201108020137.09920.gambas@...1...> > > Hi to all, > > declaring a string like: > > > > MyClass.Class > > > > Create Private > > > > PRIVATE CONST MYSTRING As String = ("A string") > > > > and using that string in another class like > > > > MyForm.Class > > > > MyForm.Caption = MyClass.MYSTRING > > > > even if the string is correctly translated trough the Translate Tool in > > the IDE when the form opens the caption appears in the default language. > > Is this correct or could be fixed? > > Thanks in advance, > > Emanuele > > Right, there is a problem: the constant is not translated when you access > it as a public symbol of a class. > > I don't know if I can fix it yet... The bug has been finally fixed in revision #3963. Please confirm! Regards, -- Beno?t Minisini From wally at ...2037... Tue Aug 2 12:51:47 2011 From: wally at ...2037... (wally) Date: Tue, 2 Aug 2011 12:51:47 +0200 Subject: [Gambas-user] long lines of code ? Message-ID: <201108021251.48085.wally@...2037...> How can i wrap long lines in code to several shorter so all is in view in editor window ? I think in VB there was the possibility to use "_" at the end of line. From rterry at ...1946... Tue Aug 2 12:39:23 2011 From: rterry at ...1946... (richard terry) Date: Tue, 2 Aug 2011 20:39:23 +1000 Subject: [Gambas-user] Accessing a microsoft database from gambas Message-ID: <201108022039.23689.rterry@...1946...> I wondered if anyone knew if it was possible to access tables from a MSAcess7 database via gambas? Regards richard From gambas at ...1... Tue Aug 2 12:57:34 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 2 Aug 2011 12:57:34 +0200 Subject: [Gambas-user] long lines of code ? In-Reply-To: <201108021251.48085.wally@...2037...> References: <201108021251.48085.wally@...2037...> Message-ID: <201108021257.34662.gambas@...1...> > How can i wrap long lines in code to several shorter so all is in view in > editor window ? > I think in VB there was the possibility to use "_" at the end of line. > You can't do that, but you can break a line of code just after a comma or any binary operator. Regards, -- Beno?t Minisini From Gambas at ...1950... Tue Aug 2 13:03:22 2011 From: Gambas at ...1950... (Caveat) Date: Tue, 02 Aug 2011 13:03:22 +0200 Subject: [Gambas-user] Accessing a microsoft database from gambas In-Reply-To: <201108022039.23689.rterry@...1946...> References: <201108022039.23689.rterry@...1946...> Message-ID: <1312283002.3031.71.camel@...2150...> LOL, I spent several days banging my head against a wall trying to get this to work (I think you have to go through ODBC) and eventually gave up and turned to java. There's a nice java library called jackcess for this. I have made a start on interfacing the java code to Gambas by making a simple server on the java side and returning things like lists of tables, lists of columns for a given table and have a sample Gambas program up and running to make a nice GUI for it. If you're interested, perhaps we could collaborate on this and develop it further? Regards, Caveat On Tue, 2011-08-02 at 20:39 +1000, richard terry wrote: > I wondered if anyone knew if it was possible to access tables from a MSAcess7 > database via gambas? > > Regards > > richard > > ------------------------------------------------------------------------------ > BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA > The must-attend event for mobile developers. Connect with experts. > Get tools for creating Super Apps. See the latest technologies. > Sessions, hands-on labs, demos & much more. Register early & save! > http://p.sf.net/sfu/rim-blackberry-1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From Gambas at ...1950... Tue Aug 2 13:08:04 2011 From: Gambas at ...1950... (Caveat) Date: Tue, 02 Aug 2011 13:08:04 +0200 Subject: [Gambas-user] long lines of code ? In-Reply-To: <201108021251.48085.wally@...2037...> References: <201108021251.48085.wally@...2037...> Message-ID: <1312283284.3031.73.camel@...2150...> The exact same question came up on this mailing list just 4 days ago, weren't you paying attention? :-P ==================================================================== 2011/7/29 Andrea Bertini : > I use g3. is there the solution to write code of a single command on > few lines? > > In vb i can write in this way: > > function (..........) > code.......................... _ > code yes you can break a line after a symbol, a ", a comma function toto(titi as string, tata as integer, toto as float) as integer ==================================================================== Regards, Caveat On Tue, 2011-08-02 at 12:51 +0200, wally wrote: > How can i wrap long lines in code to several shorter so all is in view in > editor window ? > I think in VB there was the possibility to use "_" at the end of line. > > ------------------------------------------------------------------------------ > BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA > The must-attend event for mobile developers. Connect with experts. > Get tools for creating Super Apps. See the latest technologies. > Sessions, hands-on labs, demos & much more. Register early & save! > http://p.sf.net/sfu/rim-blackberry-1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Tue Aug 2 13:09:58 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 2 Aug 2011 13:09:58 +0200 Subject: [Gambas-user] Accessing a microsoft database from gambas In-Reply-To: <1312283002.3031.71.camel@...2150...> References: <201108022039.23689.rterry@...1946...> <1312283002.3031.71.camel@...2150...> Message-ID: <201108021309.58579.gambas@...1...> > LOL, I spent several days banging my head against a wall trying to get > this to work (I think you have to go through ODBC) and eventually gave > up and turned to java. There's a nice java library called jackcess for > this. > Maybe that library could be translated in Gambas... -- Beno?t Minisini From rterry at ...1946... Tue Aug 2 13:09:41 2011 From: rterry at ...1946... (richard terry) Date: Tue, 2 Aug 2011 21:09:41 +1000 Subject: [Gambas-user] Accessing a microsoft database from gambas In-Reply-To: <1312283002.3031.71.camel@...2150...> References: <201108022039.23689.rterry@...1946...> <1312283002.3031.71.camel@...2150...> Message-ID: <201108022109.41526.rterry@...1946...> On Tuesday 02 August 2011 21:03:22 Caveat wrote: > LOL, I spent several days banging my head against a wall trying to get > this to work (I think you have to go through ODBC) and eventually gave > up and turned to java. There's a nice java library called jackcess for > this. > > I have made a start on interfacing the java code to Gambas by making a > simple server on the java side and returning things like lists of > tables, lists of columns for a given table and have a sample Gambas > program up and running to make a nice GUI for it. > > If you're interested, perhaps we could collaborate on this and develop > it further? Prefer a simple way of using ODBC - not got much time as I'm still chugging on with my project - I just want to be able to access my appointment book in the front office in gambas Thanks for your reply. Regards richard > > Regards, > Caveat > > On Tue, 2011-08-02 at 20:39 +1000, richard terry wrote: > > I wondered if anyone knew if it was possible to access tables from a > > MSAcess7 database via gambas? > > > > Regards > > > > richard > > > > ------------------------------------------------------------------------- > >----- BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA > > The must-attend event for mobile developers. Connect with experts. > > Get tools for creating Super Apps. See the latest technologies. > > Sessions, hands-on labs, demos & much more. Register early & save! > > http://p.sf.net/sfu/rim-blackberry-1 > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > --------------------------------------------------------------------------- > --- BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA > The must-attend event for mobile developers. Connect with experts. > Get tools for creating Super Apps. See the latest technologies. > Sessions, hands-on labs, demos & much more. Register early & save! > http://p.sf.net/sfu/rim-blackberry-1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Tue Aug 2 23:34:14 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 2 Aug 2011 23:34:14 +0200 Subject: [Gambas-user] TextEdit, and missing Link event In-Reply-To: <1312116216.7907.19.camel@...40...> References: <1312116216.7907.19.camel@...40...> Message-ID: <201108022334.14814.gambas@...1...> > Salut, > > did not find in http://gambasdoc.org/help/doc/gb2togb3?v3 so I aks here, > I move my project from gb2 to gb3. > I used a TextEdit with very simple HTML and a href in, and the Link > event to open it in the browser. > Now gb3 TextEdit don't show my very simple HTML any more (test only) und > has no Link event (the Link event was never in the documentation, even > in gb2) > > The TextLabel shows the simple HTML like it should be, but I don't find > no Link event. > > gambas3 rev 3956 > Mandriva 2010.2 > qt4 only (gtk not tested) TextEdit does not have a Link event anymore in Gambas 3. -- Beno?t Minisini From Karl.Reinl at ...2345... Wed Aug 3 00:03:40 2011 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Wed, 03 Aug 2011 00:03:40 +0200 Subject: [Gambas-user] TextEdit, and missing Link event In-Reply-To: <201108022334.14814.gambas@...1...> References: <1312116216.7907.19.camel@...40...> <201108022334.14814.gambas@...1...> Message-ID: <1312322620.6447.3.camel@...40...> Am Dienstag, den 02.08.2011, 23:34 +0200 schrieb Beno?t Minisini: > > Salut, > > > > did not find in http://gambasdoc.org/help/doc/gb2togb3?v3 so I aks here, > > I move my project from gb2 to gb3. > > I used a TextEdit with very simple HTML and a href in, and the Link > > event to open it in the browser. > > Now gb3 TextEdit don't show my very simple HTML any more (test only) und > > has no Link event (the Link event was never in the documentation, even > > in gb2) > > > > The TextLabel shows the simple HTML like it should be, but I don't find > > no Link event. > > > > gambas3 rev 3956 > > Mandriva 2010.2 > > qt4 only (gtk not tested) > > TextEdit does not have a Link event anymore in Gambas 3. > Salut, so what is the replacement. What's happened for TextLabel ? -- Amicalement Charlie From sotema at ...626... Wed Aug 3 07:31:52 2011 From: sotema at ...626... (Emanuele Sottocorno) Date: Wed, 03 Aug 2011 07:31:52 +0200 Subject: [Gambas-user] Sting declared as Const are not translated Message-ID: <1312349512.1722.0.camel@...2516...> Fixed! Thanks From lordheavym at ...626... Wed Aug 3 09:01:57 2011 From: lordheavym at ...626... (Laurent Carlier) Date: Wed, 03 Aug 2011 09:01:57 +0200 Subject: [Gambas-user] gb3: gb.opengl will not render alpha channel of 2D texture In-Reply-To: <201108011047.14841.gambas@...1...> References: <4E33865D.50503@...1887...> <4E350774.2060502@...1887...> <201108011047.14841.gambas@...1...> Message-ID: <1648164.s3d8VY4dmG@...2592...> Le Lundi 1 Ao?t 2011 10:47:14, Beno?t Minisini a ?crit : > > Glu.Build2DMipmaps() could segfault if it receives a NULL image. Anyway, in > revision #3958, you don't have to do all that trick: image alpha channel > should be correctly taken into account in OpenGL APIs. > > Regards, Good catch! ++ From Gambas at ...1950... Wed Aug 3 19:50:08 2011 From: Gambas at ...1950... (Caveat) Date: Wed, 03 Aug 2011 19:50:08 +0200 Subject: [Gambas-user] Accessing a microsoft database from gambas In-Reply-To: <201108021309.58579.gambas@...1...> References: <201108022039.23689.rterry@...1946...> <1312283002.3031.71.camel@...2150...> <201108021309.58579.gambas@...1...> Message-ID: <1312393808.3031.552.camel@...2150...> [resending as the jar file was too big... oops] For now, I've made the jackcess library callable from Gambas via a simple client-server mechanism. Attached to this email is a jar file which creates a server that uses the jaccess library to get to your Access Database and provides a simple command interface over a socket to Gambas (or any other language that supports sockets, in fact). You'll also need commons-lang-2.6.jar, commons-logging-1.1.1.jar and jackcess-1.2.4.jar... save them in a dir called AccessReader_lib. Extract the jar file attached to this mail into the same dir as the one in which you created the AccessReader_lib dir (so in the one dir you'll have the file AccessReader.jar and the dir AccessReader_lib). Now run: java -jar AccessReader.jar --port 4444 This will create a server listening on port 4444. To test that the server is up and running and able to connect to your Access Databases, try the following commands (obviously replacing things like your_user, your_access_db etc.) in a terminal: telnet localhost 4444 open /home/your_user/Documents/your_access_db.mdb tables cols one_of_your_tables cursor one_of_your_tables next next 5 quit The tar file attached to this mail is a sample Gambas3 client for the java AccessReader. Run the program, click on the big Connect button (localhost and 4444 should be OK for the host and port but obviously can be changed if you decide to run the AccessReader server on another machine for e.g.). Once you have connected, enter the path to one of your Access Databases and hit the Open button. The drop-down should get populated with the tables in your Access Database. Selecting a table from the drop-down will dump that table to the grid view underneath. The paging spin-box controls how many records we get at once from the AccessReader server. If you are dumping a big table and get bored, just double-click the gridview to cancel the current operation. [Richard, this is an update to what I sent you last night with the major change being the paging (and re-packaging the jar because it was too big), it's now several orders of magnitude faster!!] Hope somebody finds this useful... Regards, Caveat On Tue, 2011-08-02 at 13:09 +0200, Beno?t Minisini wrote: > > LOL, I spent several days banging my head against a wall trying to get > > this to work (I think you have to go through ODBC) and eventually gave > > up and turned to java. There's a nice java library called jackcess for > > this. > > > > Maybe that library could be translated in Gambas... > -------------- next part -------------- A non-text attachment was scrubbed... Name: AccessReader.jar Type: application/x-java-archive Size: 21857 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: DatabaseClient.tar Type: application/x-tar Size: 40960 bytes Desc: not available URL: From gambas at ...2524... Wed Aug 3 20:51:25 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 03 Aug 2011 18:51:25 +0000 Subject: [Gambas-user] Issue 75 in gambas: Split function problem Message-ID: <0-6813199134517018827-14236515916569228498-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 75 by fabio.st... at ...626...: Split function problem http://code.google.com/p/gambas/issues/detail?id=75 Split function problem Version: 2.21 Revision: Operating system: Linux Distribution: Ubuntu 11.05 Architecture: x86 GUI component: QT4 Desktop used: Gnome If I use Split on "1 2 3 4 5" DIM s AS String DIM sa AS String[] DIM i AS Integer s = "1 2 3 4 5" sa = NEW String[] sa = Split(s, " ") FOR i = 0 TO sa.length - 1 PRINT i, sa[i] NEXT the output is: 0 1 1 2 2 3 3 4 4 5 If I use Split on " 1 2 3 4 5" DIM s AS String DIM sa AS String[] DIM i AS Integer s = " 1 2 3 4 5" sa = NEW String[] sa = Split(s, " ") FOR i = 0 TO sa.length - 1 PRINT i, sa[i] NEXT the output is: 0....... 1 1 2 2 3 3 4 4 5 5 Regards Fabio Sturman From gambas at ...2524... Wed Aug 3 21:02:39 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 03 Aug 2011 19:02:39 +0000 Subject: [Gambas-user] Issue 75 in gambas: Split function problem In-Reply-To: <0-6813199134517018827-14236515916569228498-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-14236515916569228498-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-14236515916569228498-gambas=googlecode.com@...2524...> Updates: Status: Invalid Labels: -Version Version-2.22.0 Comment #1 on issue 75 by benoit.m... at ...626...: Split function problem http://code.google.com/p/gambas/issues/detail?id=75 This behaviour is by design. Read the Split() documentation, and use its fourth optional argument to ignore void entries. From kevinfishburne at ...1887... Thu Aug 4 01:00:09 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Wed, 03 Aug 2011 19:00:09 -0400 Subject: [Gambas-user] gb3: public array that is dimensioned later Message-ID: <4E39D2F9.5050100@...1887...> I need to create a public array in a module but specify its dimensions in a procedure later. Is this possible, and how would it be done? -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From kevinfishburne at ...1887... Thu Aug 4 01:05:33 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Wed, 03 Aug 2011 19:05:33 -0400 Subject: [Gambas-user] gb3: public array that is dimensioned later In-Reply-To: <4E39D2F9.5050100@...1887...> References: <4E39D2F9.5050100@...1887...> Message-ID: <4E39D43D.5070605@...1887...> On 08/03/2011 07:00 PM, Kevin Fishburne wrote: > I need to create a public array in a module but specify its dimensions > in a procedure later. Is this possible, and how would it be done I forgot to mention, I'd like it to be a 2D array, though I could write workaround code if it has to be 1D. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From gambas at ...1... Thu Aug 4 02:09:47 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 4 Aug 2011 02:09:47 +0200 Subject: [Gambas-user] gb3: public array that is dimensioned later In-Reply-To: <4E39D43D.5070605@...1887...> References: <4E39D2F9.5050100@...1887...> <4E39D43D.5070605@...1887...> Message-ID: <201108040209.47757.gambas@...1...> > On 08/03/2011 07:00 PM, Kevin Fishburne wrote: > > I need to create a public array in a module but specify its dimensions > > in a procedure later. Is this possible, and how would it be done > > I forgot to mention, I'd like it to be a 2D array, though I could write > workaround code if it has to be 1D. You have to specify the array dimensions at the same time you create it. So you have to create it in your later procedure. Regards, -- Beno?t Minisini From kevinfishburne at ...1887... Thu Aug 4 02:57:20 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Wed, 03 Aug 2011 20:57:20 -0400 Subject: [Gambas-user] gb3: public array that is dimensioned later In-Reply-To: <201108040209.47757.gambas@...1...> References: <4E39D2F9.5050100@...1887...> <4E39D43D.5070605@...1887...> <201108040209.47757.gambas@...1...> Message-ID: <4E39EE70.3090703@...1887...> On 08/03/2011 08:09 PM, Beno?t Minisini wrote: >> On 08/03/2011 07:00 PM, Kevin Fishburne wrote: >>> I need to create a public array in a module but specify its dimensions >>> in a procedure later. Is this possible, and how would it be done >> I forgot to mention, I'd like it to be a 2D array, though I could write >> workaround code if it has to be 1D. > You have to specify the array dimensions at the same time you create it. So > you have to create it in your later procedure. Hmmm. It's been my experience that public variables have to be declared at the top of a module outside of the procedures and that Dim needs to be used inside procedures. Is there some way around this? The variables which determine the number of dimensions of the array are calculated from values input by the user, but need to be persistent and accessible from multiple separate procedures. If it's not possible I'll make it 1D and use code so that it can be treated as 2D, dimensioning it to "maximum realistic size" when it's created. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From gambas at ...1... Thu Aug 4 03:03:35 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 4 Aug 2011 03:03:35 +0200 Subject: [Gambas-user] gb3: public array that is dimensioned later In-Reply-To: <4E39EE70.3090703@...1887...> References: <4E39D2F9.5050100@...1887...> <201108040209.47757.gambas@...1...> <4E39EE70.3090703@...1887...> Message-ID: <201108040303.35244.gambas@...1...> > On 08/03/2011 08:09 PM, Beno?t Minisini wrote: > >> On 08/03/2011 07:00 PM, Kevin Fishburne wrote: > >>> I need to create a public array in a module but specify its dimensions > >>> in a procedure later. Is this possible, and how would it be done > >> > >> I forgot to mention, I'd like it to be a 2D array, though I could write > >> workaround code if it has to be 1D. > > > > You have to specify the array dimensions at the same time you create it. > > So you have to create it in your later procedure. > > Hmmm. It's been my experience that public variables have to be declared > at the top of a module outside of the procedures and that Dim needs to > be used inside procedures. Is there some way around this? The variables > which determine the number of dimensions of the array are calculated > from values input by the user, but need to be persistent and accessible > from multiple separate procedures. If it's not possible I'll make it 1D > and use code so that it can be treated as 2D, dimensioning it to > "maximum realistic size" when it's created. "Normal" arrays are entirely dynamic. So you can declare the variable that will own the reference to the array somewhere: ' Module SomeWhere Public MyArray As Float[] ' Module SomeWhereElse Private Sub CreateArray(X As Integer, Y As Integer) SomeWhere.MyArray = new Float[X, Y] End Sub ' Module InAnotherDimension Private Sub DoSomeStuff() Dim X, Y As Integer X = SomeWhere.MyArray.Bounds[0] Y = SomeWhere.MyArray.Bounds[1] ... End -- Beno?t Minisini From herberthguzman at ...626... Thu Aug 4 03:18:16 2011 From: herberthguzman at ...626... (herberth guzman) Date: Wed, 3 Aug 2011 19:18:16 -0600 Subject: [Gambas-user] gb.report gambas3 Message-ID: goodnight community would like to help me with gb.report I managed to do some reports in gambas3 but only funsion me with code creating them, I would like to design a graphical report and you look as designed, if you design a report to run it when you looks misconfigured. And also I have the problem that shows me all results of HRESULT ReportLabel just shows me a record and when I do it from the code for example: Cx As Connection Private Private rs As Result Public Sub _new () Dim i As ReportLabel cx = ModDB.conectar () rs = db.Exec ("SELECT * FROM tbrecibo") i = New ReportLabel (RVBCont) For Each rs i = New ReportLabel (RVBCont) i.Text = rs!id & "" & rs!codigo_socio & "" & rs!nombre_completo Next end when viewing the report does not look flashy aesthetic or misconfigured and if you look the way I want to show graphics with a reportlab as follows: Cx As Connection Private Private rs As Result Public Sub _new () Dim i As ReportLabel cx = ModDB.conectar () rs = db.Exec ("SELECT * FROM tbrecibo") i = New ReportLabel (RVBCont) For Each rs ReportLabel1.Text = rs!id_completo ReportLabel2.Text = rs!codigo_socio ReportLabel3.Text = rs!nombre_completo Next end so just looking at a record are more than 100 could help me please. thanks From kevinfishburne at ...1887... Thu Aug 4 03:26:39 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Wed, 03 Aug 2011 21:26:39 -0400 Subject: [Gambas-user] gb3: public array that is dimensioned later In-Reply-To: <201108040303.35244.gambas@...1...> References: <4E39D2F9.5050100@...1887...> <201108040209.47757.gambas@...1...> <4E39EE70.3090703@...1887...> <201108040303.35244.gambas@...1...> Message-ID: <4E39F54F.8020703@...1887...> On 08/03/2011 09:03 PM, Beno?t Minisini wrote: >> On 08/03/2011 08:09 PM, Beno?t Minisini wrote: >>>> On 08/03/2011 07:00 PM, Kevin Fishburne wrote: >>>>> I need to create a public array in a module but specify its dimensions >>>>> in a procedure later. Is this possible, and how would it be done >>>> I forgot to mention, I'd like it to be a 2D array, though I could write >>>> workaround code if it has to be 1D. >>> You have to specify the array dimensions at the same time you create it. >>> So you have to create it in your later procedure. >> Hmmm. It's been my experience that public variables have to be declared >> at the top of a module outside of the procedures and that Dim needs to >> be used inside procedures. Is there some way around this? The variables >> which determine the number of dimensions of the array are calculated >> from values input by the user, but need to be persistent and accessible >> from multiple separate procedures. If it's not possible I'll make it 1D >> and use code so that it can be treated as 2D, dimensioning it to >> "maximum realistic size" when it's created. > "Normal" arrays are entirely dynamic. So you can declare the variable that > will own the reference to the array somewhere: > > ' Module SomeWhere > > Public MyArray As Float[] > > ' Module SomeWhereElse > > Private Sub CreateArray(X As Integer, Y As Integer) > > SomeWhere.MyArray = new Float[X, Y] > > End Sub > > ' Module InAnotherDimension > > Private Sub DoSomeStuff() > > Dim X, Y As Integer > > X = SomeWhere.MyArray.Bounds[0] > Y = SomeWhere.MyArray.Bounds[1] > > ... > > End That is fantastic, thank you. It's amazing how little I really know about programming. I'm surprised I get as much accomplished as I do. :) -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From kevinfishburne at ...1887... Thu Aug 4 04:14:33 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Wed, 03 Aug 2011 22:14:33 -0400 Subject: [Gambas-user] gb3: gb.opengl - dynamically dimensioning a public 2D array of texture IDs Message-ID: <4E3A0089.2020303@...1887...> Previously I needed to create a 2D array of texture IDs. I couldn't get it to work worth a damn, so what I did instead was to create a texture Structure, then create an array of those structures. It works extremely well and allows me to store more information about each texture: ' Texture definition structure. Public Struct Texture Loaded As Boolean FileName As String ID As Integer[] SubID As Short Width As Short Height As Short LastUsed As Single End Struct ' Texture indices. Public tiObject[32768] As Struct Texture ' Assign some texture IDs. tiObject[1000].ID = Gl.GenTextures(16) I'm now trying to do the same thing but to create the array of structures dynamically in a procedure rather than at the beginning of a module. Doing this for a normal array works fine (thank you Beno?t), but when I use the same syntax with a Structure it fails with various errors: Public tTileGrid[] As Struct Texture ' = fail. Public tTileGrid As Struct Texture[] ' = fail. If creating an array of structures that can be dimensioned in a later procedure is impossible, that is fine, but I'd like to know if there's a way to create a 2D array of OpenGL texture indices. Both methods would be terribly useful, actually. An OpenGL texture index is an array of Integers of undefined dimensions and is assigned values of 1...x when you call the Gl.GenTextures(x) function. For example, if I do this: Public TextureIDs[] As Integer TextureIDs = Gl.GenTextures(4) TextureIDs[0 - 3] will be 1, 2, 3 and 4. I tried assigning these numbers manually, but Gl.GenTextures() does something hidden (probably creates an internal index to accept the textures into VRAM) so it is a required call to be able to load the textures. I'm guessing I need a 2D array of 1D Integer arrays, so the 1D array will accept the results of Gl.GenTextures() and the 2D array will reference their "coordinates" in the array. If that is so, then what would the initial public declaration and subsequent procedural dimensioning look like? I think I have some kind of mild mental problem, as these things really make my head spin. FYI I'm doing a near total rewrite of the rendering pipeline in my game in order for it to use OpenGL as much as possible. Everything's been converted successfully except for landscape rendering, which is the most complex part. I expect my game to be broken for the next several days while I sort everything out. :/ -- Kevin Fishburne Eight Virtues www:http://sales.eightvirtues.com e-mail:sales at ...1887... phone: (770) 853-6271 From gambas.fr at ...626... Thu Aug 4 10:18:22 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 4 Aug 2011 10:18:22 +0200 Subject: [Gambas-user] gb.report gambas3 In-Reply-To: References: Message-ID: ouch i can maybe help you ... if i can understand what you mean :) i've not suffisely time to make the doc for gb.Report :/ (but i will try) now .. report.spacing = "1mm" for each hresult hcont = new ReportHBox(report) hcont.autoresize = true hcont.border.bottom.width = "1px" hlabel = new reportlabel(hcont) hlabel.width = "3cm" hlabel.text = rs! Id_completo hlabel = new reportlabel(hcont) hlabel.width = "3cm" hlabel.text = rs! Codigo_socio hlabel = new reportlabel(hcont) hlabel.width = "3cm" hlabel.text = rs! Nombre_completo hlabel.expand = true next well in fact this way, is the temporary one next this code will look to : reporthbox1.data = hresult tadaa ! it work in some way but i've still some bugs :/ in this case you draw the reporthbox with three label and you define the key property with the result field name ... that's all then in the code, in the _new sub just add reporthbox1.data = hresult this attach the result datas to the hbox and repeat the hbox the number of result. it's more fast than the current system as it not really store the object or just a part of them (size,page) bot not data. 2011/8/4 herberth guzman : > goodnight community would like to help me with gb.report I managed to do > some reports in gambas3 but only funsion me with code creating them, I would > like to design a graphical report and you look as designed, if you design a > report to run it when you looks misconfigured. > > And also I have the problem that shows me all results of HRESULT ReportLabel > just shows me a record and when I do it from the code > for example: > > Cx As Connection Private > Private rs As Result > > Public Sub _new () > ? Dim i As ReportLabel > > ? cx = ModDB.conectar () > ? rs = db.Exec ("SELECT * FROM tbrecibo") > > i = New ReportLabel (RVBCont) > > For Each rs > i = New ReportLabel (RVBCont) > > ? ? i.Text = rs!id & "" & rs!codigo_socio & "" & rs!nombre_completo > > Next > > end > > when viewing the report does not look flashy aesthetic or misconfigured and > if you look the way I want to show graphics with a reportlab as follows: > > Cx As Connection Private > Private rs As Result > > Public Sub _new () > ? Dim i As ReportLabel > > ? cx = ModDB.conectar () > ? rs = db.Exec ("SELECT * FROM tbrecibo") > > i = New ReportLabel (RVBCont) > > For Each rs > ? ?ReportLabel1.Text = rs!id_completo > ? ?ReportLabel2.Text = rs!codigo_socio > ? ?ReportLabel3.Text = rs!nombre_completo > > Next > > end > so just looking at a record are more than 100 could help me please. > > thanks > ------------------------------------------------------------------------------ > BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA > The must-attend event for mobile developers. Connect with experts. > Get tools for creating Super Apps. See the latest technologies. > Sessions, hands-on labs, demos & much more. Register early & save! > http://p.sf.net/sfu/rim-blackberry-1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From oceanosoftlapalma at ...626... Thu Aug 4 12:01:29 2011 From: oceanosoftlapalma at ...626... (=?ISO-8859-1?Q?Ricardo_D=EDaz_Mart=EDn?=) Date: Thu, 4 Aug 2011 12:01:29 +0200 Subject: [Gambas-user] How can I see the allocation non freed? Message-ID: Hi, I got a problem with a non freed allocation when I'm filling a gridview. I use the same sub to fill all the gridviews in the different forms the app and works fine. How can I check wich object are non freed? Regards, Ricardo D?az From bbruen at ...2308... Thu Aug 4 13:08:12 2011 From: bbruen at ...2308... (Bruce Bruen) Date: Thu, 04 Aug 2011 20:38:12 +0930 Subject: [Gambas-user] Accessing a microsoft database from gambas In-Reply-To: <1312393808.3031.552.camel@...2150...> References: <201108022039.23689.rterry@...1946...> <1312283002.3031.71.camel@...2150...> <201108021309.58579.gambas@...1...> <1312393808.3031.552.camel@...2150...> Message-ID: <4E3A7D9C.2070401@...2308...> On 04/08/11 03:20, Caveat wrote: > Hope somebody finds this useful... Caveat, Not at the moment ( :-) ) but sometime in the next few weeks I am going to be cleaning up over 20 years of saved Access databases !!!. What I would especially like to get back out of them is the VBA code. Any chance that your thingo will let me get access (ahem) to that code? cheers Bruce (Why would anyone want this stuff?? Because it contains nearly twenty years of experience, not only mine but some wonderful stuff from people at a place called databaseadvisors.com - the one bunch of people that I actually miss having not had a microsofty product installed for the last 5-7 years.) > > > ------------------------------------------------------------------------------ > BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA > The must-attend event for mobile developers. Connect with experts. > Get tools for creating Super Apps. See the latest technologies. > Sessions, hands-on labs, demos& much more. Register early& save! > http://p.sf.net/sfu/rim-blackberry-1 > > > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From and.bertini at ...626... Thu Aug 4 13:49:06 2011 From: and.bertini at ...626... (Andrea Bertini) Date: Thu, 04 Aug 2011 13:49:06 +0200 Subject: [Gambas-user] WebView control in Gambas3 Message-ID: <4E3A8732.2010800@...626...> Is it possible to open Google Calendar in a WebView control with saving userid and password? I have noticed that, if a run the program containing the control, i always must insert userid and password to enter. thx Andrea Bertini Linuxforce From and.bertini at ...626... Thu Aug 4 13:52:57 2011 From: and.bertini at ...626... (Andrea Bertini) Date: Thu, 04 Aug 2011 13:52:57 +0200 Subject: [Gambas-user] ProgressBar and Smtp control Message-ID: <4E3A8819.3090009@...626...> Can i see an effective exemple of use progress bar with smtp control. I can not use the progress bar, depending on the time required to send email. Thx Andrea Bertini Linuxforce From gambas.fr at ...626... Thu Aug 4 15:10:20 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 4 Aug 2011 15:10:20 +0200 Subject: [Gambas-user] Accessing a microsoft database from gambas In-Reply-To: <201108021309.58579.gambas@...1...> References: <201108022039.23689.rterry@...1946...> <1312283002.3031.71.camel@...2150...> <201108021309.58579.gambas@...1...> Message-ID: Le 2 ao?t 2011 13:09, Beno?t Minisini a ?crit : >> LOL, I spent several days banging my head against a wall trying to get >> this to work (I think you have to go through ODBC) and eventually gave >> up and turned to java. ?There's a nice java library called jackcess for >> this. >> > > Maybe that library could be translated in Gambas... i think too. the java code is simple to translate into gambas ! > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA > The must-attend event for mobile developers. Connect with experts. > Get tools for creating Super Apps. See the latest technologies. > Sessions, hands-on labs, demos & much more. Register early & save! > http://p.sf.net/sfu/rim-blackberry-1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From gambas at ...1... Thu Aug 4 15:14:52 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 4 Aug 2011 15:14:52 +0200 Subject: [Gambas-user] Accessing a microsoft database from gambas In-Reply-To: References: <201108022039.23689.rterry@...1946...> <201108021309.58579.gambas@...1...> Message-ID: <201108041514.52621.gambas@...1...> > Le 2 ao?t 2011 13:09, Beno?t Minisini a ?crit : > >> LOL, I spent several days banging my head against a wall trying to get > >> this to work (I think you have to go through ODBC) and eventually gave > >> up and turned to java. There's a nice java library called jackcess for > >> this. > > > > Maybe that library could be translated in Gambas... > > i think too. the java code is simple to translate into gambas ! > lol - You didn't look at it! -- Beno?t Minisini From gambas at ...1... Thu Aug 4 15:22:33 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 4 Aug 2011 15:22:33 +0200 Subject: [Gambas-user] Making code pretty Message-ID: <201108041522.33389.gambas@...1...> Hi there, I'd like to add some options to the "making code pretty" feature in the IDE. But I have no idea what I could make optional, as I wrote the pretty-printer the way I wanted to see the code. So if you have some suggestion, I am eager. -- Beno?t Minisini From bbruen at ...2308... Thu Aug 4 15:52:02 2011 From: bbruen at ...2308... (Bruce Bruen) Date: Thu, 04 Aug 2011 23:22:02 +0930 Subject: [Gambas-user] Making code pretty In-Reply-To: <201108041522.33389.gambas@...1...> References: <201108041522.33389.gambas@...1...> Message-ID: <4E3AA402.2000303@...2308...> On 04/08/11 22:52, Beno?t Minisini wrote: > Hi there, > > I'd like to add some options to the "making code pretty" feature in the IDE. > > But I have no idea what I could make optional, as I wrote the pretty-printer > the way I wanted to see the code. > > So if you have some suggestion, I am eager. > > Actually, what I'd really like to see (not in the pretty-printer) is just that if I hit return in the middle of a comment line, that is a line where Left(line,1)="'", and mind you not at the end of a comment line - in the middle - that the IDE would make the new line a comment. Pretty arcane I know, it's just that at my age I have to write a heck of a lot of stuff to remind me of what I was trying to remember what it was that I was just trying to fudge around with yesterday (or was it this morning?). One of the problems I have is when editing these messages to myself, that may contain, oh at least, paragraphs of brilliant coding metaphysics, every time I go to insert a new nano-thought and hit return, the IDE converts each reserved word to uppercase. Which does on many occasions confuse me. bruce From gambas.fr at ...626... Thu Aug 4 16:51:10 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 4 Aug 2011 16:51:10 +0200 Subject: [Gambas-user] Accessing a microsoft database from gambas In-Reply-To: <201108041514.52621.gambas@...1...> References: <201108022039.23689.rterry@...1946...> <201108021309.58579.gambas@...1...> <201108041514.52621.gambas@...1...> Message-ID: Le 4 ao?t 2011 15:14, Beno?t Minisini a ?crit : >> Le 2 ao?t 2011 13:09, Beno?t Minisini a ?crit > : >> >> LOL, I spent several days banging my head against a wall trying to get >> >> this to work (I think you have to go through ODBC) and eventually gave >> >> up and turned to java. ?There's a nice java library called jackcess for >> >> this. >> > >> > Maybe that library could be translated in Gambas... >> >> i think too. the java code is simple to translate into gambas ! >> > > lol - You didn't look at it! mais heu ! > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA > The must-attend event for mobile developers. Connect with experts. > Get tools for creating Super Apps. See the latest technologies. > Sessions, hands-on labs, demos & much more. Register early & save! > http://p.sf.net/sfu/rim-blackberry-1 > _______________________________________________ > 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... Thu Aug 4 17:27:32 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 4 Aug 2011 17:27:32 +0200 Subject: [Gambas-user] Making code pretty In-Reply-To: <4E3AA402.2000303@...2308...> References: <201108041522.33389.gambas@...1...> <4E3AA402.2000303@...2308...> Message-ID: hey bruce have you trying the help comments with three " ' " if you place it before a function declaration it is shown in the autocompletion help when you want to use the function for example '''This public var is for store something Public pubVar1 as string '''help for the function '''this function can be used for blabla Public Sub MyFunction Dim mavar1 as string '''this var is for a string Dim mavar2 as integer '''this var is for an integer end gambas3 have tools to help you to remember your stuff local variable info are available only in the function 2011/8/4 Bruce Bruen : > On 04/08/11 22:52, Beno?t Minisini wrote: >> Hi there, >> >> I'd like to add some options to the "making code pretty" feature in the IDE. >> >> But I have no idea what I could make optional, as I wrote the pretty-printer >> the way I wanted to see the code. >> >> So if you have some suggestion, I am eager. >> >> > Actually, what I'd really like to see (not in the pretty-printer) is > just that if I hit return in the middle of a comment line, that is a > line where Left(line,1)="'", and mind you not at the end of a comment > line - in the middle - that the IDE would make the new line a comment. > > Pretty arcane I know, it's just that at my age I have to write a heck of > a lot of stuff to remind me of what I was trying to remember what it was > that I was just trying to fudge around with yesterday (or was it this > morning?). > > One of the problems I have is when editing these messages to myself, > that may contain, oh at least, paragraphs of brilliant coding > metaphysics, every time I go to insert a new nano-thought and hit > return, the IDE converts each ?reserved word to uppercase. > > Which does on many occasions confuse me. > > bruce > > > > ------------------------------------------------------------------------------ > BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA > The must-attend event for mobile developers. Connect with experts. > Get tools for creating Super Apps. See the latest technologies. > Sessions, hands-on labs, demos & much more. Register early & save! > http://p.sf.net/sfu/rim-blackberry-1 > _______________________________________________ > 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... Thu Aug 4 17:29:30 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 4 Aug 2011 17:29:30 +0200 Subject: [Gambas-user] ProgressBar and Smtp control In-Reply-To: <4E3A8819.3090009@...626...> References: <4E3A8819.3090009@...626...> Message-ID: 2011/8/4 Andrea Bertini : > Can i see an effective exemple of use progress bar with smtp control. I > can not use the progress bar, depending on the time required to send email. but this time depend of the server, no ? > > Thx > > Andrea Bertini > Linuxforce > ------------------------------------------------------------------------------ > BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA > The must-attend event for mobile developers. Connect with experts. > Get tools for creating Super Apps. See the latest technologies. > Sessions, hands-on labs, demos & much more. Register early & save! > http://p.sf.net/sfu/rim-blackberry-1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From zachsmith022 at ...626... Thu Aug 4 17:43:02 2011 From: zachsmith022 at ...626... (zachsmith022 at ...626...) Date: Thu, 04 Aug 2011 10:43:02 -0500 Subject: [Gambas-user] Making code pretty In-Reply-To: <201108041522.33389.gambas@...1...> References: <201108041522.33389.gambas@...1...> Message-ID: <4E3ABE06.7090508@...626...> On 8/4/2011 8:22 AM, Beno?t Minisini wrote: > Hi there, > > I'd like to add some options to the "making code pretty" feature in the IDE. I think that an option to sort procedures by name would be helpful. From Gambas at ...1950... Thu Aug 4 18:01:44 2011 From: Gambas at ...1950... (Caveat) Date: Thu, 04 Aug 2011 18:01:44 +0200 Subject: [Gambas-user] Compile failed #3967, Ubuntu 10.10 Message-ID: <1312473704.3031.558.camel@...2150...> /bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/librsvg-2.0 -I/usr/include/gtk-unix-print-2.0 -I../share -pipe -Wall -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -fno-omit-frame-pointer -MT gmainwindow.lo -MD -MP -MF .deps/gmainwindow.Tpo -c -o gmainwindow.lo gmainwindow.cpp libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/librsvg-2.0 -I/usr/include/gtk-unix-print-2.0 -I../share -pipe -Wall -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -fno-omit-frame-pointer -MT gmainwindow.lo -MD -MP -MF .deps/gmainwindow.Tpo -c gmainwindow.cpp -fPIC -DPIC -o .libs/gmainwindow.o gmainwindow.cpp: In member function ?void gMainWindow::initWindow()?: gmainwindow.cpp:233: error: ?gtk_window_set_has_resize_grip? was not declared in this scope make[4]: *** [gmainwindow.lo] Error 1 Seems to be a (fairly) new line in gmainwindow.cpp... If you need more, just shout... Regards, Caveat From kevinfishburne at ...1887... Thu Aug 4 20:27:35 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Thu, 04 Aug 2011 14:27:35 -0400 Subject: [Gambas-user] Making code pretty In-Reply-To: <4E3ABE06.7090508@...626...> References: <201108041522.33389.gambas@...1...> <4E3ABE06.7090508@...626...> Message-ID: <4E3AE497.2030103@...1887...> On 08/04/2011 11:43 AM, zachsmith022 at ...626... wrote: > On 8/4/2011 8:22 AM, Beno?t Minisini wrote: >> Hi there, >> >> I'd like to add some options to the "making code pretty" feature in the IDE. > I think that an option to sort procedures by name would be helpful. That would be awesome. Also removing spaces on otherwise empty lines and removing spaces at the end of lines. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From gambas.fr at ...626... Thu Aug 4 20:51:11 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 4 Aug 2011 20:51:11 +0200 Subject: [Gambas-user] Making code pretty In-Reply-To: <4E3AE497.2030103@...1887...> References: <201108041522.33389.gambas@...1...> <4E3ABE06.7090508@...626...> <4E3AE497.2030103@...1887...> Message-ID: 2011/8/4 Kevin Fishburne : > On 08/04/2011 11:43 AM, zachsmith022 at ...626... wrote: >> On 8/4/2011 8:22 AM, Beno?t Minisini wrote: >>> Hi there, >>> >>> I'd like to add some options to the "making code pretty" feature in the IDE. >> I think that an option to sort procedures by name would be helpful. > > That would be awesome. Also removing spaces on otherwise empty lines and > removing spaces at the end of lines. empty lines can be usefull to keep a readable code > > -- > Kevin Fishburne > Eight Virtues > www: http://sales.eightvirtues.com > e-mail: sales at ...1887... > phone: (770) 853-6271 > > > ------------------------------------------------------------------------------ > BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA > The must-attend event for mobile developers. Connect with experts. > Get tools for creating Super Apps. See the latest technologies. > Sessions, hands-on labs, demos & much more. Register early & save! > http://p.sf.net/sfu/rim-blackberry-1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From ron at ...1740... Thu Aug 4 21:07:19 2011 From: ron at ...1740... (Ron) Date: Thu, 4 Aug 2011 21:07:19 +0200 Subject: [Gambas-user] Making code pretty In-Reply-To: References: <201108041522.33389.gambas@...1...> <4E3ABE06.7090508@...626...> <4E3AE497.2030103@...1887...> Message-ID: Empty lines yes, keep them! But Kevin and I mean remove spaces on empty lines. Looks like this: Dim sTest as string ... <- remove these sTest = "this is a test" ' here above normal empty line, without spaces on it. Regards, Ron_2nd. 2011/8/4 Fabien Bodard : > 2011/8/4 Kevin Fishburne : >> On 08/04/2011 11:43 AM, zachsmith022 at ...626... wrote: >>> On 8/4/2011 8:22 AM, Beno?t Minisini wrote: >>>> Hi there, >>>> >>>> I'd like to add some options to the "making code pretty" feature in the IDE. >>> I think that an option to sort procedures by name would be helpful. >> >> That would be awesome. Also removing spaces on otherwise empty lines and >> removing spaces at the end of lines. > empty lines can be usefull to keep a readable code >> >> -- >> Kevin Fishburne >> Eight Virtues >> www: http://sales.eightvirtues.com >> e-mail: sales at ...1887... >> phone: (770) 853-6271 >> >> >> ------------------------------------------------------------------------------ >> BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA >> The must-attend event for mobile developers. Connect with experts. >> Get tools for creating Super Apps. See the latest technologies. >> Sessions, hands-on labs, demos & much more. Register early & save! >> http://p.sf.net/sfu/rim-blackberry-1 >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > > -- > Fabien Bodard > > ------------------------------------------------------------------------------ > BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA > The must-attend event for mobile developers. Connect with experts. > Get tools for creating Super Apps. See the latest technologies. > Sessions, hands-on labs, demos & much more. Register early & save! > http://p.sf.net/sfu/rim-blackberry-1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From ron at ...1740... Thu Aug 4 20:50:54 2011 From: ron at ...1740... (Ron) Date: Thu, 4 Aug 2011 20:50:54 +0200 Subject: [Gambas-user] Making code pretty In-Reply-To: <4E3AE497.2030103@...1887...> References: <201108041522.33389.gambas@...1...> <4E3ABE06.7090508@...626...> <4E3AE497.2030103@...1887...> Message-ID: > That would be awesome. Also removing spaces on otherwise empty lines and > removing spaces at the end of lines. Yes a +1 from me on this one too, I hate floating spaces, and always have the urge to remove them. Regards, Ron_2nd. 2011/8/4 Kevin Fishburne : > On 08/04/2011 11:43 AM, zachsmith022 at ...626... wrote: >> On 8/4/2011 8:22 AM, Beno?t Minisini wrote: >>> Hi there, >>> >>> I'd like to add some options to the "making code pretty" feature in the IDE. >> I think that an option to sort procedures by name would be helpful. > > That would be awesome. Also removing spaces on otherwise empty lines and > removing spaces at the end of lines. > > -- > Kevin Fishburne > Eight Virtues > www: http://sales.eightvirtues.com > e-mail: sales at ...1887... > phone: (770) 853-6271 > > > ------------------------------------------------------------------------------ > BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA > The must-attend event for mobile developers. Connect with experts. > Get tools for creating Super Apps. See the latest technologies. > Sessions, hands-on labs, demos & much more. Register early & save! > http://p.sf.net/sfu/rim-blackberry-1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Thu Aug 4 21:32:51 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 4 Aug 2011 21:32:51 +0200 Subject: [Gambas-user] Making code pretty In-Reply-To: References: <201108041522.33389.gambas@...1...> <4E3ABE06.7090508@...626...> <4E3AE497.2030103@...1887...> Message-ID: i alway keep a blank line after var declaration 2011/8/4 Ron : >> That would be awesome. Also removing spaces on otherwise empty lines and >> removing spaces at the end of lines. > > Yes a +1 from me on this one too, I hate floating spaces, and always > have the urge to remove them. > > Regards, > Ron_2nd. > > 2011/8/4 Kevin Fishburne : >> On 08/04/2011 11:43 AM, zachsmith022 at ...626... wrote: >>> On 8/4/2011 8:22 AM, Beno?t Minisini wrote: >>>> Hi there, >>>> >>>> I'd like to add some options to the "making code pretty" feature in the IDE. >>> I think that an option to sort procedures by name would be helpful. >> >> That would be awesome. Also removing spaces on otherwise empty lines and >> removing spaces at the end of lines. >> >> -- >> Kevin Fishburne >> Eight Virtues >> www: http://sales.eightvirtues.com >> e-mail: sales at ...1887... >> phone: (770) 853-6271 >> >> >> ------------------------------------------------------------------------------ >> BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA >> The must-attend event for mobile developers. Connect with experts. >> Get tools for creating Super Apps. See the latest technologies. >> Sessions, hands-on labs, demos & much more. Register early & save! >> http://p.sf.net/sfu/rim-blackberry-1 >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > ------------------------------------------------------------------------------ > BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA > The must-attend event for mobile developers. Connect with experts. > Get tools for creating Super Apps. See the latest technologies. > Sessions, hands-on labs, demos & much more. Register early & save! > http://p.sf.net/sfu/rim-blackberry-1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From kevinfishburne at ...1887... Thu Aug 4 21:38:47 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Thu, 04 Aug 2011 15:38:47 -0400 Subject: [Gambas-user] Making code pretty In-Reply-To: References: <201108041522.33389.gambas@...1...> <4E3ABE06.7090508@...626...> <4E3AE497.2030103@...1887...> Message-ID: <4E3AF547.5070800@...1887...> On 08/04/2011 03:07 PM, Ron wrote: > Empty lines yes, keep them! > > But Kevin and I mean remove spaces on empty lines. > > Looks like this: > > Dim sTest as string > ...<- remove these > sTest = "this is a test" > > ' here above normal empty line, without spaces on it. Agreed. I do use empty lines all the time, but death to unnecessary spaces. It would also be nice if variable/procedure/etc. names were autocorrected to use the case/capitalization of their declarative statement. This is already done for things like Print, Public, Private, Dim, Inc, Return, etc. For example: Public SoEasyToRead As String Print soeasytoread ' "soeasytoread" should be autocorrected, just like "print" is, to match the case of the declaration "SoEasyToRead". Public Function LovelyProcedureName(Input As String) As String ' Blah, blah. End Sub Print lovelyprocedurename("Please make me lovely") ' "lovelyprocedurename" should be autocorrected to match the function declaration "LovelyProcedureName". Also, changing the case of the declaration should automatically change the case throughout the program. If that's too CPU intensive to do in real-time, it could be done at compile or execution time. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From ron at ...1740... Thu Aug 4 21:43:21 2011 From: ron at ...1740... (Ron) Date: Thu, 4 Aug 2011 21:43:21 +0200 Subject: [Gambas-user] Making code pretty In-Reply-To: References: <201108041522.33389.gambas@...1...> <4E3ABE06.7090508@...626...> <4E3AE497.2030103@...1887...> Message-ID: Yes the lines must stay, but not the spaces, see the dots in the attachment... Regards, Ron_2nd. 2011/8/4 Fabien Bodard : > i alway keep a blank line after var declaration > > 2011/8/4 Ron : >>> That would be awesome. Also removing spaces on otherwise empty lines and >>> removing spaces at the end of lines. >> >> Yes a +1 from me on this one too, I hate floating spaces, and always >> have the urge to remove them. >> >> Regards, >> Ron_2nd. >> >> 2011/8/4 Kevin Fishburne : >>> On 08/04/2011 11:43 AM, zachsmith022 at ...626... wrote: >>>> On 8/4/2011 8:22 AM, Beno?t Minisini wrote: >>>>> Hi there, >>>>> >>>>> I'd like to add some options to the "making code pretty" feature in the IDE. >>>> I think that an option to sort procedures by name would be helpful. >>> >>> That would be awesome. Also removing spaces on otherwise empty lines and >>> removing spaces at the end of lines. >>> >>> -- >>> Kevin Fishburne >>> Eight Virtues >>> www: http://sales.eightvirtues.com >>> e-mail: sales at ...1887... >>> phone: (770) 853-6271 >>> >>> >>> ------------------------------------------------------------------------------ >>> BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA >>> The must-attend event for mobile developers. Connect with experts. >>> Get tools for creating Super Apps. See the latest technologies. >>> Sessions, hands-on labs, demos & much more. Register early & save! >>> http://p.sf.net/sfu/rim-blackberry-1 >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> >> ------------------------------------------------------------------------------ >> BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA >> The must-attend event for mobile developers. Connect with experts. >> Get tools for creating Super Apps. See the latest technologies. >> Sessions, hands-on labs, demos & much more. Register early & save! >> http://p.sf.net/sfu/rim-blackberry-1 >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > > -- > Fabien Bodard > > ------------------------------------------------------------------------------ > BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA > The must-attend event for mobile developers. Connect with experts. > Get tools for creating Super Apps. See the latest technologies. > Sessions, hands-on labs, demos & much more. Register early & save! > http://p.sf.net/sfu/rim-blackberry-1 > _______________________________________________ > 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: spaces.png Type: image/png Size: 7460 bytes Desc: not available URL: From ea7dfh at ...2382... Thu Aug 4 21:57:36 2011 From: ea7dfh at ...2382... (Jesus) Date: Thu, 04 Aug 2011 21:57:36 +0200 Subject: [Gambas-user] Making code pretty In-Reply-To: <4E3AF547.5070800@...1887...> References: <201108041522.33389.gambas@...1...> <4E3ABE06.7090508@...626...> <4E3AE497.2030103@...1887...> <4E3AF547.5070800@...1887...> Message-ID: <4E3AF9B0.3070708@...2382...> El 04/08/11 21:38, Kevin Fishburne escribi?: > On 08/04/2011 03:07 PM, Ron wrote: >> Empty lines yes, keep them! >> >> But Kevin and I mean remove spaces on empty lines. >> >> Looks like this: >> >> Dim sTest as string >> ...<- remove these >> sTest = "this is a test" >> >> ' here above normal empty line, without spaces on it. > > Agreed. I do use empty lines all the time, but death to unnecessary spaces. > > It would also be nice if variable/procedure/etc. names were > autocorrected to use the case/capitalization of their declarative > statement. This is already done for things like Print, Public, Private, > Dim, Inc, Return, etc. For example: > > Public SoEasyToRead As String > > Print soeasytoread ' "soeasytoread" should be autocorrected, just like > "print" is, to match the case of the declaration "SoEasyToRead". > > Public Function LovelyProcedureName(Input As String) As String > ' Blah, blah. > End Sub > > Print lovelyprocedurename("Please make me lovely") ' > "lovelyprocedurename" should be autocorrected to match the function > declaration "LovelyProcedureName". > > Also, changing the case of the declaration should automatically change > the case throughout the program. If that's too CPU intensive to do in > real-time, it could be done at compile or execution time. > Yes, yes! And as some time ago I wrote: >>> >> El 26/09/10 21:36 >>>>> >>>> Hi, Beno?t >>>>> >>>> >>>>> >>>> It would be fine if you could implement a 'tasks system', like in other >>>>> >>>> IDEs, to keep track of pending tasks or fixes. >>>>> >>>> >>>>> >>>> For example, if the text editor finds a comment beginning with >>>>> >>>> >>>>> >>>> ' TODO: my stuff >>>>> >>>> or >>>>> >>>> ' FIXME: fix whatever >>>>> >>>> >>>>> >>>> then a little icon will shows into the line numbers and an additional >>>>> >>>> tab in the console/breakpoints tabstrip will lists the current >>>>> >>>> tasks/fixes text, which also should be marked as done/undone. >>>>> >>>> >>>>> >>>> This could be made in a way we can inspect globally or per class file. >>>>> >>>> >>>>> >>>> Hope this make sense, and not a huge job... :-) >>>>> >>>> >>>>> >>>> Anyway, thanks for your efforts. >>>> >>> >>>> >>> What other keywords are needed, beside TODO and FIXME? >>> >> >>> >> No, nothing more is needed. Both keywords are widely used as an standard >>> >> for that purpose in almost all code editors. >>> >> >>>> >>> And we can decide that to mark something undone, the comment has just to >>>> >>> be removed. I know it is in the Benoit "to do" list, but also I know he has little time. So thanks anyway. -- Jesus Guardon From and.bertini at ...626... Thu Aug 4 23:03:06 2011 From: and.bertini at ...626... (Andrea Bertini) Date: Thu, 04 Aug 2011 23:03:06 +0200 Subject: [Gambas-user] ProgressBar and Smtp control In-Reply-To: References: Message-ID: <4E3B090A.4030608@...626...> >but this time depend of the server, no ? (a) this code don't works good, progress bar move all to the end of the process: private errore as integer private endprocess as boolean public sub SendMail() Dim n As Integer Dim x As Integer If txtTitle.text = "" Or EDITOR_MAIL.TextEdit1.RichText = "" Then errore = 1 Message("Impossible to send data, data not complete") Else SmtpClient1.To.Add(toemail.text) SmtpClient1.Subject = txtTitle.text SmtpClient1.Add(EDITOR_MAIL.TextEdit1.RichText, "text/html") Timer1.Enabled = True ProgressBar1.Value = 0 endprocess = False SmtpClient1.Send endprocess = True Message("Email sent.") Endif End Public Sub Timer1_Timer() ProgressBar1.Value = ProgressBar1.Value + 0.05 If endprocess=true Then Timer1.Enabled = False End If End (b) I must have the possibility to send these mime types: Libre Office (Calc, Write, Impress) Office (Excel, Word, Powerpoint) Acrobat (Pdf) Images and video Can me explein the right code to add these file to the mail? Thx Andrea Bertini From Karl.Reinl at ...2345... Thu Aug 4 23:11:22 2011 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Thu, 04 Aug 2011 23:11:22 +0200 Subject: [Gambas-user] Making code pretty In-Reply-To: <201108041522.33389.gambas@...1...> References: <201108041522.33389.gambas@...1...> Message-ID: <1312492283.9019.3.camel@...40...> Am Donnerstag, den 04.08.2011, 15:22 +0200 schrieb Beno?t Minisini: > Hi there, > > I'd like to add some options to the "making code pretty" feature in the IDE. > > But I have no idea what I could make optional, as I wrote the pretty-printer > the way I wanted to see the code. > > So if you have some suggestion, I am eager. > Salut Benoit, send you a Screen from the Settings of my PrettyPrinter (for gambas1) And the ChangeLog May be that gives you some ideas. -- Amicalement Charlie -------------- next part -------------- A non-text attachment was scrubbed... Name: Bildschirmfoto-gambas Sourcecode Pretty Printer Settings (Editor Status : without Changes).png Type: image/png Size: 84419 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ChangeLog.PrettyPrinter Type: text/x-vhdl Size: 2941 bytes Desc: not available URL: From gambas at ...1... Fri Aug 5 00:23:44 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 5 Aug 2011 00:23:44 +0200 Subject: [Gambas-user] Compile failed #3967, Ubuntu 10.10 In-Reply-To: <1312473704.3031.558.camel@...2150...> References: <1312473704.3031.558.camel@...2150...> Message-ID: <201108050023.44469.gambas@...1...> > /bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. > -I.. -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include > -I/usr/include/atk-1.0 -I/usr/include/cairo > -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 > -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 > -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 > -I/usr/include/freetype2 -I/usr/include/libpng12 > -I/usr/include/librsvg-2.0 -I/usr/include/gtk-unix-print-2.0 > -I../share -pipe -Wall -fno-exceptions -Wno-unused-value -fsigned-char > -fvisibility=hidden -g -Os -fno-omit-frame-pointer -MT gmainwindow.lo > -MD -MP -MF .deps/gmainwindow.Tpo -c -o gmainwindow.lo gmainwindow.cpp > libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -pthread > -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 > -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 > -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ > -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include > -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 > -I/usr/include/librsvg-2.0 -I/usr/include/gtk-unix-print-2.0 -I../share > -pipe -Wall -fno-exceptions -Wno-unused-value -fsigned-char > -fvisibility=hidden -g -Os -fno-omit-frame-pointer -MT gmainwindow.lo > -MD -MP -MF .deps/gmainwindow.Tpo -c gmainwindow.cpp -fPIC -DPIC > -o .libs/gmainwindow.o > gmainwindow.cpp: In member function ?void gMainWindow::initWindow()?: > gmainwindow.cpp:233: error: ?gtk_window_set_has_resize_grip? was not > declared in this scope > make[4]: *** [gmainwindow.lo] Error 1 > > > Seems to be a (fairly) new line in gmainwindow.cpp... > > If you need more, just shout... > > Regards, > Caveat > Sorry, GTK+ is a moving target! I will fix that... -- Beno?t Minisini From gambas at ...1... Fri Aug 5 00:26:22 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 5 Aug 2011 00:26:22 +0200 Subject: [Gambas-user] Making code pretty In-Reply-To: <1312492283.9019.3.camel@...40...> References: <201108041522.33389.gambas@...1...> <1312492283.9019.3.camel@...40...> Message-ID: <201108050026.22064.gambas@...1...> > Am Donnerstag, den 04.08.2011, 15:22 +0200 schrieb Beno?t Minisini: > > Hi there, > > > > I'd like to add some options to the "making code pretty" feature in the > > IDE. > > > > But I have no idea what I could make optional, as I wrote the > > pretty-printer the way I wanted to see the code. > > > > So if you have some suggestion, I am eager. > > Salut Benoit, > > send you a Screen from the Settings of my PrettyPrinter (for gambas1) > And the ChangeLog > May be that gives you some ideas. Do you have a short explanation of all these options? Or eventually a little example. So that I understand what they do. -- Beno?t Minisini From gambas at ...1... Fri Aug 5 00:27:06 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 5 Aug 2011 00:27:06 +0200 Subject: [Gambas-user] ProgressBar and Smtp control In-Reply-To: <4E3B090A.4030608@...626...> References: <4E3B090A.4030608@...626...> Message-ID: <201108050027.06671.gambas@...1...> > >but this time depend of the server, no ? > > (a) this code don't works good, progress bar move all to the end of the > process: > > private errore as integer > private endprocess as boolean > > public sub SendMail() > Dim n As Integer > Dim x As Integer > > If txtTitle.text = "" Or EDITOR_MAIL.TextEdit1.RichText = "" Then > errore = 1 > Message("Impossible to send data, data not complete") > Else > SmtpClient1.To.Add(toemail.text) > SmtpClient1.Subject = txtTitle.text > SmtpClient1.Add(EDITOR_MAIL.TextEdit1.RichText, "text/html") > Timer1.Enabled = True > ProgressBar1.Value = 0 > endprocess = False > SmtpClient1.Send > endprocess = True > Message("Email sent.") > Endif > End > > Public Sub Timer1_Timer() > ProgressBar1.Value = ProgressBar1.Value + 0.05 > If endprocess=true Then > Timer1.Enabled = False > End If > End > > (b) I must have the possibility to send these mime types: > Libre Office (Calc, Write, Impress) > Office (Excel, Word, Powerpoint) > Acrobat (Pdf) > Images and video > Can me explein the right code to add these file to the mail? > > Thx > > Andrea Bertini > The gb.net.smtp is not asynchronous at all. In other words, sending a mail will block the event loop. -- Beno?t Minisini From gambas at ...1... Fri Aug 5 00:43:31 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 5 Aug 2011 00:43:31 +0200 Subject: [Gambas-user] Compile failed #3967, Ubuntu 10.10 In-Reply-To: <201108050023.44469.gambas@...1...> References: <1312473704.3031.558.camel@...2150...> <201108050023.44469.gambas@...1...> Message-ID: <201108050043.31253.gambas@...1...> > > /bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. > > -I.. -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include > > -I/usr/include/atk-1.0 -I/usr/include/cairo > > -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 > > -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 > > -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 > > -I/usr/include/freetype2 -I/usr/include/libpng12 > > -I/usr/include/librsvg-2.0 -I/usr/include/gtk-unix-print-2.0 > > -I../share -pipe -Wall -fno-exceptions -Wno-unused-value -fsigned-char > > -fvisibility=hidden -g -Os -fno-omit-frame-pointer -MT gmainwindow.lo > > -MD -MP -MF .deps/gmainwindow.Tpo -c -o gmainwindow.lo gmainwindow.cpp > > libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -pthread > > -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 > > -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 > > -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ > > -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include > > -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 > > -I/usr/include/librsvg-2.0 -I/usr/include/gtk-unix-print-2.0 -I../share > > -pipe -Wall -fno-exceptions -Wno-unused-value -fsigned-char > > -fvisibility=hidden -g -Os -fno-omit-frame-pointer -MT gmainwindow.lo > > -MD -MP -MF .deps/gmainwindow.Tpo -c gmainwindow.cpp -fPIC -DPIC > > -o .libs/gmainwindow.o > > gmainwindow.cpp: In member function ?void gMainWindow::initWindow()?: > > gmainwindow.cpp:233: error: ?gtk_window_set_has_resize_grip? was not > > declared in this scope > > make[4]: *** [gmainwindow.lo] Error 1 > > > > > > Seems to be a (fairly) new line in gmainwindow.cpp... > > > > If you need more, just shout... > > > > Regards, > > Caveat > > Sorry, GTK+ is a moving target! I will fix that... It shoudl be fixed in revision #3968. Please confirm! -- Beno?t Minisini From Gambas at ...1950... Fri Aug 5 00:57:13 2011 From: Gambas at ...1950... (Caveat) Date: Fri, 05 Aug 2011 00:57:13 +0200 Subject: [Gambas-user] Compile failed #3967, Ubuntu 10.10 [FIXED] In-Reply-To: <201108050043.31253.gambas@...1...> References: <1312473704.3031.558.camel@...2150...> <201108050023.44469.gambas@...1...> <201108050043.31253.gambas@...1...> Message-ID: <1312498633.3031.559.camel@...2150...> It is indeed fixed! Thanks Benoit :-) On Fri, 2011-08-05 at 00:43 +0200, Beno?t Minisini wrote: > > > /bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. > > > -I.. -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include > > > -I/usr/include/atk-1.0 -I/usr/include/cairo > > > -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 > > > -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 > > > -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 > > > -I/usr/include/freetype2 -I/usr/include/libpng12 > > > -I/usr/include/librsvg-2.0 -I/usr/include/gtk-unix-print-2.0 > > > -I../share -pipe -Wall -fno-exceptions -Wno-unused-value -fsigned-char > > > -fvisibility=hidden -g -Os -fno-omit-frame-pointer -MT gmainwindow.lo > > > -MD -MP -MF .deps/gmainwindow.Tpo -c -o gmainwindow.lo gmainwindow.cpp > > > libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -pthread > > > -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 > > > -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 > > > -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ > > > -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include > > > -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 > > > -I/usr/include/librsvg-2.0 -I/usr/include/gtk-unix-print-2.0 -I../share > > > -pipe -Wall -fno-exceptions -Wno-unused-value -fsigned-char > > > -fvisibility=hidden -g -Os -fno-omit-frame-pointer -MT gmainwindow.lo > > > -MD -MP -MF .deps/gmainwindow.Tpo -c gmainwindow.cpp -fPIC -DPIC > > > -o .libs/gmainwindow.o > > > gmainwindow.cpp: In member function ?void gMainWindow::initWindow()?: > > > gmainwindow.cpp:233: error: ?gtk_window_set_has_resize_grip? was not > > > declared in this scope > > > make[4]: *** [gmainwindow.lo] Error 1 > > > > > > > > > Seems to be a (fairly) new line in gmainwindow.cpp... > > > > > > If you need more, just shout... > > > > > > Regards, > > > Caveat > > > > Sorry, GTK+ is a moving target! I will fix that... > > It shoudl be fixed in revision #3968. Please confirm! > From tobiasboe1 at ...20... Fri Aug 5 01:30:20 2011 From: tobiasboe1 at ...20... (tobias) Date: Fri, 05 Aug 2011 01:30:20 +0200 Subject: [Gambas-user] Debugging gbx2 Message-ID: <4E3B2B8C.2080605@...20...> hi Beno?t, there is a question remaining at gambas-club.de about an old error (don't know if it is present in gb3 and can't check now) so i wanted to debug gbx2 running the application that causes that error (it is a #6 while using Image.Spread or something...) it's common practice for me to debug c programs but i can't understand what's going on. i thought, it would be like: $ gdb gbx2 (gdb) r /home/user/gambas/test2/ there are a lot of error messages saying that no debugging symbols were found (gdb claims that the symbols are read from gbx2) and gdb segfaults... i bet you have debugged it. what's wrong? regards, tobi From gambas at ...1... Fri Aug 5 01:38:39 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 5 Aug 2011 01:38:39 +0200 Subject: [Gambas-user] Debugging gbx2 In-Reply-To: <4E3B2B8C.2080605@...20...> References: <4E3B2B8C.2080605@...20...> Message-ID: <201108050138.39289.gambas@...1...> > hi Beno?t, > > there is a question remaining at gambas-club.de about an old error > (don't know if it is present in gb3 and can't check now) so i wanted to > debug gbx2 running the application that causes that error (it is a #6 > while using Image.Spread or something...) > it's common practice for me to debug c programs but i can't understand > what's going on. > i thought, it would be like: > $ gdb gbx2 > (gdb) r /home/user/gambas/test2/ > > there are a lot of error messages saying that no debugging symbols were > found (gdb claims that the symbols are read from gbx2) and gdb > segfaults... i bet you have debugged it. what's wrong? > > regards, > tobi > if gdb segfaults, you have a problem on your system! To debug gambas, you should compile everything with debugging information, and no optimization (at least the interpreter and the image effect component where Image.Spread lies). Or you can just run your program with valgrind as explained on the website, and valgrind will tell you where something is wrong. Regards, -- Beno?t Minisini From tobiasboe1 at ...20... Fri Aug 5 04:57:39 2011 From: tobiasboe1 at ...20... (tobias) Date: Fri, 05 Aug 2011 04:57:39 +0200 Subject: [Gambas-user] EXEC question Message-ID: <4E3B5C23.2070100@...20...> hi, i don't use EXEC usually but this time do and immediately have a problem with it (gambas2). you can't do EXEC ["ls -l ."] TO s why doesn't this do anything? (i know, an array is expected, but isn't it the same if i specify three arguments or just one containing all the three?) regards, tobi From tobiasboe1 at ...20... Fri Aug 5 05:13:08 2011 From: tobiasboe1 at ...20... (tobias) Date: Fri, 05 Aug 2011 05:13:08 +0200 Subject: [Gambas-user] EXEC question In-Reply-To: <4E3B5C23.2070100@...20...> References: <4E3B5C23.2070100@...20...> Message-ID: <4E3B5FC4.1060203@...20...> > hi, > > i don't use EXEC usually but this time do and immediately have a problem > with it (gambas2). > you can't do > EXEC ["ls -l ."] TO s > why doesn't this do anything? (i know, an array is expected, but isn't > it the same if i specify three arguments or just one containing all the > three?) ok, got it by myself again :( http://gambasdoc.org/help/doc/shellexec?v3 says that exec() is used to start the given command, so i bet the given array will be argv and thus the program doesn't understand the arguments correctly... From akitiyadav at ...626... Fri Aug 5 09:38:00 2011 From: akitiyadav at ...626... (akiti) Date: Fri, 5 Aug 2011 00:38:00 -0700 (PDT) Subject: [Gambas-user] Re ctangle Problem Message-ID: <32180334.post@...1379...> Hello. I seem to have reached difficult problem. How do I draw a filled rectangle that woks in XOR mode. i.e does not overwrite the pixels below, but inverts them Following code does not seem to work Paint.Begin(DrawingArea1) Paint.Operator = Paint.OperatorXor Paint.Brush = Paint.Color(Color.Red) Paint.Rectangle(0, 0, 100, 100) Paint.Stroke I have some VB6 code using Drawmode = vbXorPen I need it to be converted to gambas Any help???? Thanks. -- View this message in context: http://old.nabble.com/Rectangle-Problem-tp32180334p32180334.html Sent from the gambas-user mailing list archive at Nabble.com. From johny.provoost at ...27... Fri Aug 5 12:12:47 2011 From: johny.provoost at ...27... (Johny Provoost) Date: Fri, 05 Aug 2011 12:12:47 +0200 Subject: [Gambas-user] Making code pretty In-Reply-To: <4E3ABE06.7090508@...626...> References: <201108041522.33389.gambas@...1...> <4E3ABE06.7090508@...626...> Message-ID: <4E3BC21F.3020306@...27...> Op 04-08-11 17:43, zachsmith022 at ...626... schreef: > On 8/4/2011 8:22 AM, Beno??t Minisini wrote: >> Hi there, >> >> I'd like to add some options to the "making code pretty" feature in the IDE. > I think that an option to sort procedures by name would be helpful. > > ------------------------------------------------------------------------------ > BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA > The must-attend event for mobile developers. Connect with experts. > Get tools for creating Super Apps. See the latest technologies. > Sessions, hands-on labs, demos& much more. Register early& save! > http://p.sf.net/sfu/rim-blackberry-1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user That would be very useful Johny Provoost From sbungay at ...981... Fri Aug 5 00:03:27 2011 From: sbungay at ...981... (Stephen A. Bungay) Date: Thu, 04 Aug 2011 18:03:27 -0400 Subject: [Gambas-user] Making code pretty Message-ID: <1qp9ei8m2mkkuqaj5wtqy4hm.1312495407627@...2550...> 'Pretty' is in the eye of the beholder. I write my code so it is easy to read and easy see the structure of the code, spaces and empty lines are therefore used extensively. Since the compiled code is not affected by them what's the problem? Ron wrote: >Empty lines yes, keep them! > >But Kevin and I mean remove spaces on empty lines. > >Looks like this: > > Dim sTest as string >... <- remove these > sTest = "this is a test" > > ' here above normal empty line, without spaces on it. > >Regards, >Ron_2nd. > >2011/8/4 Fabien Bodard : >> 2011/8/4 Kevin Fishburne : >>> On 08/04/2011 11:43 AM, zachsmith022 at ...626... wrote: >>>> On 8/4/2011 8:22 AM, Beno?t Minisini wrote: >>>>> Hi there, >>>>> >>>>> I'd like to add some options to the "making code pretty" feature in the IDE. >>>> I think that an option to sort procedures by name would be helpful. >>> >>> That would be awesome. Also removing spaces on otherwise empty lines and >>> removing spaces at the end of lines. >> empty lines can be usefull to keep a readable code >>> >>> -- >>> Kevin Fishburne >>> Eight Virtues >>> www: http://sales.eightvirtues.com >>> e-mail: sales at ...1887... >>> phone: (770) 853-6271 >>> >>> >>> ------------------------------------------------------------------------------ >>> BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA >>> The must-attend event for mobile developers. Connect with experts. >>> Get tools for creating Super Apps. See the latest technologies. >>> Sessions, hands-on labs, demos & much more. Register early & save! >>> http://p.sf.net/sfu/rim-blackberry-1 >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> >> >> >> -- >> Fabien Bodard >> >> ------------------------------------------------------------------------------ >> BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA >> The must-attend event for mobile developers. Connect with experts. >> Get tools for creating Super Apps. See the latest technologies. >> Sessions, hands-on labs, demos & much more. Register early & save! >> http://p.sf.net/sfu/rim-blackberry-1 >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > >------------------------------------------------------------------------------ >BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA >The must-attend event for mobile developers. Connect with experts. >Get tools for creating Super Apps. See the latest technologies. >Sessions, hands-on labs, demos & much more. Register early & save! >http://p.sf.net/sfu/rim-blackberry-1 >_______________________________________________ >Gambas-user mailing list >Gambas-user at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/gambas-user From ron at ...1740... Fri Aug 5 18:02:47 2011 From: ron at ...1740... (Ron) Date: Fri, 5 Aug 2011 18:02:47 +0200 Subject: [Gambas-user] Making code pretty Message-ID: It's not only eye candy, it's also a practical thing. If you have a bigger public project under svn, you don't want that the removal of one isolated space character on a empty line somewhere generates a commit change. So I remove them all in my projects while writing code. Regards, Ron_2nd. 'Pretty' is in the eye of the beholder. I write my code so it is easy to read and easy see the structure of the code, spaces and empty lines are therefore used extensively. Since the compiled code is not affected by them what's the problem? Ron wrote: Empty lines yes, keep them! But Kevin and I mean remove spaces on empty lines. Looks like this: Dim sTest as string ... <- remove these sTest = "this is a test" ' here above normal empty line, without spaces on it. Regards, Ron_2nd. 2011/8/4 Fabien Bodard : 2011/8/4 Kevin Fishburne : On 08/04/2011 11:43 AM, zachsmith022 at ...626... wrote: On 8/4/2011 8:22 AM, Beno?t Minisini wrote: Hi there, I'd like to add some options to the "making code pretty" feature in the IDE. I think that an option to sort procedures by name would be helpful. That would be awesome. Also removing spaces on otherwise empty lines and removing spaces at the end of lines. empty lines can be usefull to keep a readable code -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 ------------------------------------------------------------------------------ BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA The must-attend event for mobile developers. Connect with experts. Get tools for creating Super Apps. See the latest technologies. Sessions, hands-on labs, demos & much more. Register early & save! http://p.sf.net/sfu/rim-blackberry-1_______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard ------------------------------------------------------------------------------ BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA The must-attend event for mobile developers. Connect with experts. Get tools for creating Super Apps. See the latest technologies. Sessions, hands-on labs, demos & much more. Register early & save! http://p.sf.net/sfu/rim-blackberry-1_______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user ------------------------------------------------------------------------------ BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA The must-attend event for mobile developers. Connect with experts. Get tools for creating Super Apps. See the latest technologies. Sessions, hands-on labs, demos & much more. Register early & save! http://p.sf.net/sfu/rim-blackberry-1_______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user ------------------------------------------------------------------------------ BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA The must-attend event for mobile developers. Connect with experts. Get tools for creating Super Apps. See the latest technologies. Sessions, hands-on labs, demos & much more. Register early & save! http://p.sf.net/sfu/rim-blackberry-1_______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From kevinfishburne at ...1887... Fri Aug 5 18:34:16 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Fri, 05 Aug 2011 12:34:16 -0400 Subject: [Gambas-user] Making code pretty In-Reply-To: References: Message-ID: <4E3C1B88.5050504@...1887...> On 08/05/2011 12:02 PM, Ron wrote: > It's not only eye candy, it's also a practical thing. > If you have a bigger public project under svn, you don't want that the > removal of one isolated space character on a empty line somewhere generates > a commit change. > > So I remove them all in my projects while writing code. > > Regards, > Ron_2nd. > > 'Pretty' is in the eye of the beholder. I write my code so it is easy to > read and easy see the structure of the code, spaces and empty lines are > therefore used extensively. Since the compiled code is not affected by them > what's the problem? Ideally there would be a menu rather than a one-size-fits-all command (as there currently is). These options could be checked or unchecked as the user sees fit. I'm a formatting Nazi. A space at the end of a line, or on an "empty" line, or anything that doesn't fit a rigid set of formatting standards, drives me crazy to no end. While I too carefully format my code as I write it, to give you an example of this feature's usefulness, I recently updated 20 OpenGL gb2 projects (which I didn't write) to gb3. I practically set my keyboard on fire and gave myself carpal tunnel syndrome just deleting spaces and removing unnecessary empty lines. All I can say is thank God the projects weren't longer. Also, just to clear things up, no one's suggesting deleting empty lines or spaces used in indentation. Just trailing spaces and spaces on empty lines, which no one in their right mind would purposely put in their code as they serve no purpose. An option to remove consecutive empty lines would be nice though (three breaks/CR's would become two). Someone earlier mentioned that hitting Enter in the middle of a comment line should automatically insert a comment character at the beginning of the line being brought down. I just had that happen to me last night (normally I don't split comments across multiple lines), and it sounds like a good idea. He was right that having to go through the comment and correct the case and spacing was a PITA. Here's an example: ' Camera is always exactly in the middle of the render window, so the upper-left corner of the center tile (not yet offset) ' Camera is always exactly in the middle of the render window, so the Upper - Left corner Of the center tile(Not yet offset) -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From gambas at ...1... Fri Aug 5 18:53:21 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 5 Aug 2011 18:53:21 +0200 Subject: [Gambas-user] Making code pretty In-Reply-To: <4E3C1B88.5050504@...1887...> References: <4E3C1B88.5050504@...1887...> Message-ID: <201108051853.21408.gambas@...1...> > On 08/05/2011 12:02 PM, Ron wrote: > > It's not only eye candy, it's also a practical thing. > > If you have a bigger public project under svn, you don't want that the > > removal of one isolated space character on a empty line somewhere > > generates a commit change. > > > > So I remove them all in my projects while writing code. > > > > Regards, > > Ron_2nd. > > > > 'Pretty' is in the eye of the beholder. I write my code so it is easy to > > read and easy see the structure of the code, spaces and empty lines are > > therefore used extensively. Since the compiled code is not affected by > > them what's the problem? > > Ideally there would be a menu rather than a one-size-fits-all command > (as there currently is). These options could be checked or unchecked as > the user sees fit. > > I'm a formatting Nazi. A space at the end of a line, or on an "empty" > line, or anything that doesn't fit a rigid set of formatting standards, > drives me crazy to no end. While I too carefully format my code as I > write it, to give you an example of this feature's usefulness, I > recently updated 20 OpenGL gb2 projects (which I didn't write) to gb3. I > practically set my keyboard on fire and gave myself carpal tunnel > syndrome just deleting spaces and removing unnecessary empty lines. All > I can say is thank God the projects weren't longer. > > Also, just to clear things up, no one's suggesting deleting empty lines > or spaces used in indentation. Just trailing spaces and spaces on empty > lines, which no one in their right mind would purposely put in their > code as they serve no purpose. An option to remove consecutive empty > lines would be nice though (three breaks/CR's would become two). > > Someone earlier mentioned that hitting Enter in the middle of a comment > line should automatically insert a comment character at the beginning of > the line being brought down. I just had that happen to me last night > (normally I don't split comments across multiple lines), and it sounds > like a good idea. He was right that having to go through the comment and > correct the case and spacing was a PITA. Here's an example: > > ' Camera is always exactly in the middle of the render window, so the > upper-left corner of the center tile (not yet offset) > > ' Camera is always exactly in the middle of the render window, > so the Upper - Left corner Of the center tile(Not yet offset) Automatic comment insertion is done in revision #3972. -- Beno?t Minisini From gambas at ...2524... Fri Aug 5 18:56:02 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 05 Aug 2011 16:56:02 +0000 Subject: [Gambas-user] Issue 76 in gambas: Iconview MoveNext does not return True moving after last item Message-ID: <0-6813199134517018827-13948311583782804960-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 76 by ronmcina... at ...370...: Iconview MoveNext does not return True moving after last item http://code.google.com/p/gambas/issues/detail?id=76 1) Describe the problem. When using an IconView the MoveNext function does not return true when attempting to move past the last entry. The result is that a Repeat...Until loop does not terminate correctly. 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: 2.99.1 Revision: n/a Operating system: Linux Distribution: Ubuntu 11.04 Architecture: x86 (84 bit system with 32 bit Ubuntu) GUI component: GTK+ Desktop used: Gnome 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 the project under v3 Attachments: Iconview.tar.gz 5.1 KB From kevinfishburne at ...1887... Fri Aug 5 19:08:31 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Fri, 05 Aug 2011 13:08:31 -0400 Subject: [Gambas-user] Making code pretty In-Reply-To: <201108051853.21408.gambas@...1...> References: <4E3C1B88.5050504@...1887...> <201108051853.21408.gambas@...1...> Message-ID: <4E3C238F.1080905@...1887...> On 08/05/2011 12:53 PM, Beno?t Minisini wrote: > Automatic comment insertion is done in revision #3972. Just tested it and it works extremely well. Nice job! -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From sbungay at ...981... Fri Aug 5 20:05:11 2011 From: sbungay at ...981... (Stephen A. Bungay) Date: Fri, 05 Aug 2011 14:05:11 -0400 Subject: [Gambas-user] Making code pretty Message-ID: <46y8ukjk5qw7ke9kxknby1hh.1312567511975@...2550...> I suppose, but then the removal (or addition) of white space should probably not generate a commit change as white space is not critical to GAMBAS logic. Each to their own, but the 'prettying' should be configurable. Ron wrote: >It's not only eye candy, it's also a practical thing. >If you have a bigger public project under svn, you don't want that the >removal of one isolated space character on a empty line somewhere generates >a commit change. > >So I remove them all in my projects while writing code. > >Regards, >Ron_2nd. > >'Pretty' is in the eye of the beholder. I write my code so it is easy to >read and easy see the structure of the code, spaces and empty lines are >therefore used extensively. Since the compiled code is not affected by them >what's the problem? Ron wrote: > >Empty lines yes, keep them! But Kevin and I mean remove spaces on empty >lines. Looks like this: Dim sTest as string ... <- remove these sTest = >"this is a test" ' here above normal empty line, without spaces on it. >Regards, Ron_2nd. 2011/8/4 Fabien Bodard >: > > > 2011/8/4 Kevin Fishburne >: > > > On 08/04/2011 11:43 AM, zachsmith022 at ...626... wrote: > > On 8/4/2011 8:22 AM, Beno?t Minisini wrote: > > Hi there, I'd like to add some options to the "making code pretty" feature >in the IDE. > > >I think that an option to sort procedures by name would be helpful. > > >That would be awesome. Also removing spaces on otherwise empty lines and >removing spaces at the end of lines. > > >empty lines can be usefull to keep a readable code > > -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: >sales at ...1887... phone: (770) 853-6271 >------------------------------------------------------------------------------ >BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA The >must-attend event for mobile developers. Connect with experts. Get tools for >creating Super Apps. See the latest technologies. Sessions, hands-on labs, >demos & much more. Register early & save! >http://p.sf.net/sfu/rim-blackberry-1_______________________________________________ >Gambas-user mailing list >Gambas-user at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/gambas-user > > >-- Fabien Bodard >------------------------------------------------------------------------------ >BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA The >must-attend event for mobile developers. Connect with experts. Get tools for >creating Super Apps. See the latest technologies. Sessions, hands-on labs, >demos & much more. Register early & save! >http://p.sf.net/sfu/rim-blackberry-1_______________________________________________ >Gambas-user mailing list >Gambas-user at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/gambas-user > > >------------------------------------------------------------------------------ >BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA The >must-attend event for mobile developers. Connect with experts. Get tools for >creating Super Apps. See the latest technologies. Sessions, hands-on labs, >demos & much more. Register early & save! >http://p.sf.net/sfu/rim-blackberry-1_______________________________________________ >Gambas-user mailing list >Gambas-user at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/gambas-user > > >------------------------------------------------------------------------------ >BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA The >must-attend event for mobile developers. Connect with experts. Get tools for >creating Super Apps. See the latest technologies. Sessions, hands-on labs, >demos & much more. Register early & save! >http://p.sf.net/sfu/rim-blackberry-1_______________________________________________ >Gambas-user mailing list >Gambas-user at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/gambas-user >------------------------------------------------------------------------------ >BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA >The must-attend event for mobile developers. Connect with experts. >Get tools for creating Super Apps. See the latest technologies. >Sessions, hands-on labs, demos & much more. Register early & save! >http://p.sf.net/sfu/rim-blackberry-1 >_______________________________________________ >Gambas-user mailing list >Gambas-user at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/gambas-user From sbungay at ...981... Fri Aug 5 20:19:14 2011 From: sbungay at ...981... (Stephen A. Bungay) Date: Fri, 05 Aug 2011 14:19:14 -0400 Subject: [Gambas-user] Making code pretty Message-ID: <16orwb6n60mdlmdic76fgnc4.1312568354326@...2550...> Have not tested this yetm sounds useful. Agree with you Kevin, empty lines full of spaces and trailing spaces on lines are things to be removed. Kevin Fishburne wrote: >On 08/05/2011 12:53 PM, Beno?t Minisini wrote: >> Automatic comment insertion is done in revision #3972. > >Just tested it and it works extremely well. Nice job! > >-- >Kevin Fishburne >Eight Virtues >www: http://sales.eightvirtues.com >e-mail: sales at ...1887... >phone: (770) 853-6271 > > >------------------------------------------------------------------------------ >BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA >The must-attend event for mobile developers. Connect with experts. >Get tools for creating Super Apps. See the latest technologies. >Sessions, hands-on labs, demos & much more. Register early & save! >http://p.sf.net/sfu/rim-blackberry-1 >_______________________________________________ >Gambas-user mailing list >Gambas-user at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas.fr at ...626... Fri Aug 5 21:58:46 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 5 Aug 2011 21:58:46 +0200 Subject: [Gambas-user] Making code pretty In-Reply-To: <16orwb6n60mdlmdic76fgnc4.1312568354326@...2550...> References: <16orwb6n60mdlmdic76fgnc4.1312568354326@...2550...> Message-ID: thanks Benoit, and it work for the help comment too ... cool ! :-) 2011/8/5 Stephen A. Bungay : > Have not tested this yetm sounds useful. Agree with you Kevin, empty lines full of spaces and trailing spaces on lines are things to be removed. > > Kevin Fishburne wrote: > >>On 08/05/2011 12:53 PM, Beno?t Minisini wrote: >>> Automatic comment insertion is done in revision #3972. >> >>Just tested it and it works extremely well. Nice job! >> >>-- >>Kevin Fishburne >>Eight Virtues >>www: http://sales.eightvirtues.com >>e-mail: sales at ...1887... >>phone: (770) 853-6271 >> >> >>------------------------------------------------------------------------------ >>BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA >>The must-attend event for mobile developers. Connect with experts. >>Get tools for creating Super Apps. See the latest technologies. >>Sessions, hands-on labs, demos & much more. Register early & save! >>http://p.sf.net/sfu/rim-blackberry-1 >>_______________________________________________ >>Gambas-user mailing list >>Gambas-user at lists.sourceforge.net >>https://lists.sourceforge.net/lists/listinfo/gambas-user > ------------------------------------------------------------------------------ > BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA > The must-attend event for mobile developers. Connect with experts. > Get tools for creating Super Apps. See the latest technologies. > Sessions, hands-on labs, demos & much more. Register early & save! > http://p.sf.net/sfu/rim-blackberry-1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From gambas at ...1... Sat Aug 6 13:36:10 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 6 Aug 2011 13:36:10 +0200 Subject: [Gambas-user] Re ctangle Problem In-Reply-To: <32180334.post@...1379...> References: <32180334.post@...1379...> Message-ID: <201108061336.10481.gambas@...1...> > Hello. I seem to have reached difficult problem. > How do I draw a filled rectangle that woks in XOR mode. > i.e does not overwrite the pixels below, but inverts them > > Following code does not seem to work > > Paint.Begin(DrawingArea1) > Paint.Operator = Paint.OperatorXor > Paint.Brush = Paint.Color(Color.Red) > Paint.Rectangle(0, 0, 100, 100) > Paint.Stroke > > I have some VB6 code using > Drawmode = vbXorPen > I need it to be converted to gambas > Any help???? Thanks. Paint.OperatorXor is not the bitwise Xor operator you want. The Paint class does not support such an operator. You can use the old Draw class for that. Regards, -- Beno?t Minisini From blogujem1313 at ...626... Sat Aug 6 20:13:04 2011 From: blogujem1313 at ...626... (d3n) Date: Sat, 6 Aug 2011 18:13:04 +0000 (UTC) Subject: [Gambas-user] installing gambas 3 References: <78434.57289.qm@...2561...> Message-ID: Juan Matias Olmos yahoo.com.ar> writes: > > I'm a newbi, and this is my first try. Just download gambas3-2.99.0.tar.bz2 y > get this: > > ~/Gambas 3/gambas3-2.99.0 $ ./reconf-all > ./reconf-all: 7: libtoolize: not found > ./reconf-all: 8: autoreconf: not found > > it's needed to be installed gambas 2? > > my system: notebook dell with linux mint 10 > > ------------------------------------------------------------------------------ > Colocation vs. Managed Hosting > A question and answer guide to determining the best fit > for your organization - today and in the future. > http://p.sf.net/sfu/internap-sfd2d > If you're running Ubuntu Linux (me: 10.04), try to install libtool and autoconf, so in command line write: sudo apt-get install libtool autoreconf [ENTER] then you can install gambas3 like it is written on the page http://gambas.sourceforge.net/en/main.html From fabianfloresvadell at ...626... Sun Aug 7 06:05:34 2011 From: fabianfloresvadell at ...626... (=?ISO-8859-1?Q?Fabi=E1n_Flores_Vadell?=) Date: Sun, 7 Aug 2011 01:05:34 -0300 Subject: [Gambas-user] Making code pretty In-Reply-To: <201108041522.33389.gambas@...1...> References: <201108041522.33389.gambas@...1...> Message-ID: 2011/8/4 Beno?t Minisini : > Hi there, > > I'd like to add some options to the "making code pretty" feature in the IDE. > > But I have no idea what I could make optional, as I wrote the pretty-printer > the way I wanted to see the code. > > So if you have some suggestion, I am eager. > > Beno?t Minisini Hi Beno?t. I think that "make code pretty" feature is an style issue, hence, this feature should be just a piece from a bigger, complete and configurable feature, than rest on the shoulders of notations and conventions (hungarian, CamelCase) to allow users can select one programming style or build one on your own. (That should be like the styles in a word processor). -- Fabi?n Flores Vadell www.comoprogramarcongambas.blogspot.com www.speedbooksargentina.blogspot.com From gambas at ...1... Sun Aug 7 13:11:59 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 7 Aug 2011 13:11:59 +0200 Subject: [Gambas-user] Making code pretty In-Reply-To: References: <201108041522.33389.gambas@...1...> Message-ID: <201108071311.59615.gambas@...1...> > 2011/8/4 Beno?t Minisini : > > Hi there, > > > > I'd like to add some options to the "making code pretty" feature in the > > IDE. > > > > But I have no idea what I could make optional, as I wrote the > > pretty-printer the way I wanted to see the code. > > > > So if you have some suggestion, I am eager. > > > > > > Beno?t Minisini > > Hi Beno?t. I think that "make code pretty" feature is an style issue, > hence, this feature should be just a piece from a bigger, complete and > configurable feature, than rest on the shoulders of notations and > conventions (hungarian, CamelCase) to allow users can select one > programming style or build one on your own. (That should be like the > styles in a word processor). You're right, but let's do that later. At the moment, I just add a few option to the pretty printer. See the next comming commits. Regards, -- Beno?t Minisini From gambas at ...2524... Mon Aug 8 17:30:02 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 08 Aug 2011 15:30:02 +0000 Subject: [Gambas-user] Issue 77 in gambas: Support poppler 0.17.0 Message-ID: <0-6813199134517018827-9018458981300794217-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 77 by spo... at ...626...: Support poppler 0.17.0 http://code.google.com/p/gambas/issues/detail?id=77 1) Gambas 2 needs a small patch to compile against poppler 0.17.0. 2) Version: 2.23.1 Operating system: Linux Distribution: Fedora Architecture: * Marek Kasik has written a patch to use the new version of the constructor of class Links, conditionalized so that older versions of poppler will still use the old method. This patch is attached to this bug. Attachments: gambas2-2.23.1-links.patch 815 bytes From ea7dfh at ...2382... Mon Aug 8 21:28:54 2011 From: ea7dfh at ...2382... (Jesus) Date: Mon, 08 Aug 2011 21:28:54 +0200 Subject: [Gambas-user] [Gambasdoc] Missing "style.css" Message-ID: <4E4038F6.6020606@...2382...> Hi, just a minor issue: Browsing Gambasdoc today, it shows only plain text, no style cascade sheet found. Regards -- Jesus Guardon From gambas at ...1... Mon Aug 8 21:33:24 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 8 Aug 2011 21:33:24 +0200 Subject: [Gambas-user] [Gambasdoc] Missing "style.css" In-Reply-To: <4E4038F6.6020606@...2382...> References: <4E4038F6.6020606@...2382...> Message-ID: <201108082133.24323.gambas@...1...> > Hi, just a minor issue: > > Browsing Gambasdoc today, it shows only plain text, no style cascade > sheet found. > > > Regards Mmm. Everything is normal there. Can you check your browser? -- Beno?t Minisini From ea7dfh at ...2382... Mon Aug 8 21:43:33 2011 From: ea7dfh at ...2382... (EA7DFH) Date: Mon, 08 Aug 2011 21:43:33 +0200 Subject: [Gambas-user] [Gambasdoc] Missing "style.css" In-Reply-To: <201108082133.24323.gambas@...1...> References: <4E4038F6.6020606@...2382...> <201108082133.24323.gambas@...1...> Message-ID: <4E403C65.5080609@...2382...> El 08/08/11 21:33, Beno?t Minisini escribi?: >> Hi, just a minor issue: >> >> Browsing Gambasdoc today, it shows only plain text, no style cascade >> sheet found. >> >> >> Regards > > Mmm. Everything is normal there. Can you check your browser? > Well, I've checked twice, but still I get this: See attachment. -- Jesus, EA7DFH -------------- next part -------------- A non-text attachment was scrubbed... Name: gambasdoc.jpg Type: image/jpeg Size: 91234 bytes Desc: not available URL: From gambas at ...1... Mon Aug 8 21:49:49 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 8 Aug 2011 21:49:49 +0200 Subject: [Gambas-user] [Gambasdoc] Missing "style.css" In-Reply-To: <4E403C65.5080609@...2382...> References: <4E4038F6.6020606@...2382...> <201108082133.24323.gambas@...1...> <4E403C65.5080609@...2382...> Message-ID: <201108082149.49420.gambas@...1...> > El 08/08/11 21:33, Beno?t Minisini escribi?: > >> Hi, just a minor issue: > >> > >> Browsing Gambasdoc today, it shows only plain text, no style cascade > >> sheet found. > >> > >> > >> Regards > > > > Mmm. Everything is normal there. Can you check your browser? > > Well, I've checked twice, but still I get this: > > See attachment. Screenshot just done... -- Beno?t Minisini -------------- next part -------------- A non-text attachment was scrubbed... Name: firefox.jpeg Type: image/jpeg Size: 121263 bytes Desc: not available URL: From ea7dfh at ...2382... Mon Aug 8 21:58:48 2011 From: ea7dfh at ...2382... (Jesus) Date: Mon, 08 Aug 2011 21:58:48 +0200 Subject: [Gambas-user] [Gambasdoc] Missing "style.css" In-Reply-To: <201108082149.49420.gambas@...1...> References: <4E4038F6.6020606@...2382...> <201108082133.24323.gambas@...1...> <4E403C65.5080609@...2382...> <201108082149.49420.gambas@...1...> Message-ID: <4E403FF8.8030507@...2382...> El 08/08/11 21:49, Beno?t Minisini escribi?: >> El 08/08/11 21:33, Beno?t Minisini escribi?: >>>> Hi, just a minor issue: >>>> >>>> Browsing Gambasdoc today, it shows only plain text, no style cascade >>>> sheet found. >>>> >>>> >>>> Regards >>> >>> Mmm. Everything is normal there. Can you check your browser? >> >> Well, I've checked twice, but still I get this: >> >> See attachment. > > Screenshot just done... > Wow! This is stupidly weird... you might be right, I've tested it using Google chrome and no problems at all... I'm stumped! Sorry for the noise -- Jesus Guardon From kevinfishburne at ...1887... Mon Aug 8 22:00:56 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Mon, 08 Aug 2011 16:00:56 -0400 Subject: [Gambas-user] gb3: 2D array of 1D Integer arrays Message-ID: <4E404078.8050604@...1887...> I asked this before and didn't get a response. Maybe I gave too much background information and made the problem appear more complex than it is. I need to create a 2D array of 1D Integer arrays. I've tried everything I can think of and nothing works. The initial declaration needs to be public and its dimensions are specified in a later procedure. The 1D Integer arrays are only one element in size and will be the target of a function which returns an integer value and requires that the recipient be an array. The 1D arrays can even remain undimensioned to accept the function result. My only clue has been this in the documentation: ' An array of string arrays! DIM aResult AS NEW String[][12] So I tried: ' Module header. Public tTileGrid As Integer[][] ' Some procedure. tTileGrid = New Integer[TileGrid.Size, TileGrid.Size][1] ' Function returns an Integer into receiving array. tTileGrid[counter1, counter2][0] = Gl.GenTextures(1) What's the correct syntax for this? I can't believe I haven't discovered it through sheer trial and error by this point. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From ea7dfh at ...2382... Mon Aug 8 22:02:32 2011 From: ea7dfh at ...2382... (Jesus) Date: Mon, 08 Aug 2011 22:02:32 +0200 Subject: [Gambas-user] [Gambasdoc] Missing "style.css" In-Reply-To: <201108082149.49420.gambas@...1...> References: <4E4038F6.6020606@...2382...> <201108082133.24323.gambas@...1...> <4E403C65.5080609@...2382...> <201108082149.49420.gambas@...1...> Message-ID: <4E4040D8.2050203@...2382...> El 08/08/11 21:49, Beno?t Minisini escribi?: >> El 08/08/11 21:33, Beno?t Minisini escribi?: >>>> Hi, just a minor issue: >>>> >>>> Browsing Gambasdoc today, it shows only plain text, no style cascade >>>> sheet found. >>>> >>>> >>>> Regards >>> >>> Mmm. Everything is normal there. Can you check your browser? >> >> Well, I've checked twice, but still I get this: >> >> See attachment. > > Screenshot just done... Deleted site cookies and back to normal... strange ?? Regards -- Jesus Guardon From gambas at ...1... Mon Aug 8 22:10:48 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 8 Aug 2011 22:10:48 +0200 Subject: [Gambas-user] gb3: 2D array of 1D Integer arrays In-Reply-To: <4E404078.8050604@...1887...> References: <4E404078.8050604@...1887...> Message-ID: <201108082210.48754.gambas@...1...> > I asked this before and didn't get a response. Maybe I gave too much > background information and made the problem appear more complex than it is. > > I need to create a 2D array of 1D Integer arrays. You should write it that way: "a 2D array of 1D array of integers". Then you write it in Gambas from right to left: Integer[x][y, z] In Gambas a 2D array, a 1D array, a XD array are all arrays. So the datatype is 'Integer[][]'. Dim MyStrangeArray As Integer[][] MyStrangeArray = new Integer[][SizeX, SizeY] MyStrangeArray[X, Y] = New Integer[SizeZ] Is it clearer ? -- Beno?t Minisini From kevinfishburne at ...1887... Mon Aug 8 22:25:02 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Mon, 08 Aug 2011 16:25:02 -0400 Subject: [Gambas-user] gb3: 2D array of 1D Integer arrays In-Reply-To: <201108082210.48754.gambas@...1...> References: <4E404078.8050604@...1887...> <201108082210.48754.gambas@...1...> Message-ID: <4E40461E.4000608@...1887...> On 08/08/2011 04:10 PM, Beno?t Minisini wrote: >> I asked this before and didn't get a response. Maybe I gave too much >> background information and made the problem appear more complex than it is. >> >> I need to create a 2D array of 1D Integer arrays. > > You should write it that way: > > "a 2D array of 1D array of integers". > > Then you write it in Gambas from right to left: > > Integer[x][y, z] > > In Gambas a 2D array, a 1D array, a XD array are all arrays. So the datatype > is 'Integer[][]'. > > Dim MyStrangeArray As Integer[][] > > MyStrangeArray = new Integer[][SizeX, SizeY] > > MyStrangeArray[X, Y] = New Integer[SizeZ] > > Is it clearer ? I think I got it. :) I did this as you suggested: Public tTileGrid As Integer[][] tTileGrid = New Integer[][TileGrid.Size, TileGrid.Size] For counter2 = 0 To TileGrid.Size - 1 For counter1 = 0 To TileGrid.Size - 1 tTileGrid[counter1, counter2] = New Integer[1] tTileGrid[counter1, counter2] = Gl.GenTextures(1) Next Next It seems to work fine. Thanks! -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From gambas at ...1... Mon Aug 8 22:29:53 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 8 Aug 2011 22:29:53 +0200 Subject: [Gambas-user] gb3: 2D array of 1D Integer arrays In-Reply-To: <4E40461E.4000608@...1887...> References: <4E404078.8050604@...1887...> <201108082210.48754.gambas@...1...> <4E40461E.4000608@...1887...> Message-ID: <201108082229.53098.gambas@...1...> > On 08/08/2011 04:10 PM, Beno?t Minisini wrote: > >> I asked this before and didn't get a response. Maybe I gave too much > >> background information and made the problem appear more complex than it > >> is. > >> > >> I need to create a 2D array of 1D Integer arrays. > > > > You should write it that way: > > > > "a 2D array of 1D array of integers". > > > > Then you write it in Gambas from right to left: > > Integer[x][y, z] > > > > In Gambas a 2D array, a 1D array, a XD array are all arrays. So the > > datatype is 'Integer[][]'. > > > > Dim MyStrangeArray As Integer[][] > > > > MyStrangeArray = new Integer[][SizeX, SizeY] > > > > MyStrangeArray[X, Y] = New Integer[SizeZ] > > > > Is it clearer ? > > I think I got it. :) I did this as you suggested: > > Public tTileGrid As Integer[][] > > tTileGrid = New Integer[][TileGrid.Size, TileGrid.Size] > > For counter2 = 0 To TileGrid.Size - 1 > For counter1 = 0 To TileGrid.Size - 1 > tTileGrid[counter1, counter2] = New Integer[1] T | That line is useless ---' Gl.GenTextures() creates the array for you, and that array will replace the array that you just have created for nothing. Regards, -- Beno?t Minisini From kevinfishburne at ...1887... Mon Aug 8 23:07:38 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Mon, 08 Aug 2011 17:07:38 -0400 Subject: [Gambas-user] gb3: 2D array of 1D Integer arrays In-Reply-To: <201108082229.53098.gambas@...1...> References: <4E404078.8050604@...1887...> <201108082210.48754.gambas@...1...> <4E40461E.4000608@...1887...> <201108082229.53098.gambas@...1...> Message-ID: <4E40501A.6020207@...1887...> On 08/08/2011 04:29 PM, Beno?t Minisini wrote: >> On 08/08/2011 04:10 PM, Beno?t Minisini wrote: >>>> I asked this before and didn't get a response. Maybe I gave too much >>>> background information and made the problem appear more complex than it >>>> is. >>>> >>>> I need to create a 2D array of 1D Integer arrays. >>> You should write it that way: >>> >>> "a 2D array of 1D array of integers". >>> >>> Then you write it in Gambas from right to left: >>> Integer[x][y, z] >>> >>> In Gambas a 2D array, a 1D array, a XD array are all arrays. So the >>> datatype is 'Integer[][]'. >>> >>> Dim MyStrangeArray As Integer[][] >>> >>> MyStrangeArray = new Integer[][SizeX, SizeY] >>> >>> MyStrangeArray[X, Y] = New Integer[SizeZ] >>> >>> Is it clearer ? >> I think I got it. :) I did this as you suggested: >> >> Public tTileGrid As Integer[][] >> >> tTileGrid = New Integer[][TileGrid.Size, TileGrid.Size] >> >> For counter2 = 0 To TileGrid.Size - 1 >> For counter1 = 0 To TileGrid.Size - 1 >> tTileGrid[counter1, counter2] = New Integer[1] > T > | > That line is useless ---' > > Gl.GenTextures() creates the array for you, and that array will replace the > array that you just have created for nothing. Quite right. I nuked it. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From kevinfishburne at ...1887... Tue Aug 9 03:44:10 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Mon, 08 Aug 2011 21:44:10 -0400 Subject: [Gambas-user] gb3: OpenGL, rotation and translation of matrix affecting multiple quads Message-ID: <4E4090EA.8060701@...1887...> Here's looking at you Tomek, although anyone who knows give me a shout out. I'm using a nested For...Next loop to render a 2D grid of quads. I need the grid of quads to be rotated about its "center", but would like to make a single matrix transformation instead of doing one for each quad. Is this possible, and if so, how? Even if I have to do multiple matrix transformations, that is fine, as long as I don't have to do one for every single quad. Right now my code (removing all experiments, just bare code) looks like this: Public Sub Tile_Grid() ' Draw tile grid texture array in render window. ' General declarations. Dim TileGridX As Short ' Tile in tile grid texture array being rendered. Dim TileGridY As Short ' Tile in tile grid texture array being rendered. Dim TileGridX1 As Short ' Starting tile in tile grid texture array to be rendered. Dim TileGridY1 As Short ' Starting tile in tile grid texture array to be rendered. Dim TileGridX2 As Short ' Ending tile in tile grid texture array to be rendered. Dim TileGridY2 As Short ' Ending tile in tile grid texture array to be rendered. Dim PixelX As Short ' Pixel coordinates of tile being rendered. Dim PixelY As Short ' Pixel coordinates of tile being rendered. Dim OffsetX As Short ' Number of pixels to offset matrix to accommodate camera position and tile grid resolution. Dim OffsetY As Short ' Number of pixels to offset matrix to accommodate camera position and tile grid resolution. Dim StepX As Short ' Direction to step through tile grid texture array loop. Dim StepY As Short ' Direction to step through tile grid texture array loop. ' Assign initial values to variables. TileGridX1 = TileGrid.CenterX TileGridY1 = TileGrid.CenterY TileGridX2 = TileGrid.CenterX + TileGrid.Size - 1 TileGridY2 = TileGrid.CenterY + TileGrid.Size - 1 If TileGridX1 < TileGridX2 Then StepX = 1 Else StepX = -1 Endif If TileGridY1 < TileGridY2 Then StepY = 1 Else StepY = -1 Endif ' Rotate and translate matrix. Gl.LoadIdentity() Gl.Translatef(- OffsetX, - OffsetY, 0) Gl.Rotatef(- Client.Orientation, 0, 0, 1) Gl.Translatef(OffsetX, OffsetY, 0) ' Render specified tiles in cell grid to tile grid. For TileGridY = TileGridY1 To TileGridY2 Step StepY For TileGridX = TileGridX1 To TileGridX2 Step StepX ' Select texture using its ID. Gl.BindTexture(Gl.GL_TEXTURE_2D, tTileGrid[Convert.Wrap_Short(0, TileGrid.Size - 1, TileGridX), Convert.Wrap_Short(0, TileGrid.Size - 1, TileGridY)][0]) ' Create the quad the texture is drawn on. Gl.Begin(Gl.GL_QUADS) ' Bottom-left vertex. Gl.TexCoord2i(0, 0) Gl.Vertex3i(PixelX + OffsetX, PixelY + OffsetY, 0) ' Bottom-right vertex. Gl.TexCoord2i(1, 0) Gl.Vertex3i(PixelX + OffsetX + 128, PixelY + OffsetY, 0) ' Top-right vertex. Gl.TexCoord2i(1, 1) Gl.Vertex3i(PixelX + OffsetX + 128, PixelY + OffsetY + 128, 0) ' Top-left vertex. Gl.TexCoord2i(0, 1) Gl.Vertex3i(PixelX + OffsetX, PixelY + OffsetY + 128, 0) Gl.End() ' Adjust pixel position. PixelX = PixelX + 128 If PixelX = TileGrid.Size * 128 Then PixelX = 0 Next ' Adjust pixel positions. PixelX = 0 PixelY = PixelY + 128 If PixelY = TileGrid.Size * 128 Then PixelY = 0 Next ' Reset matrices so subsequent SDL writes won't get botched. Gl.LoadIdentity() End Notice I didn't assign values to OffsetX or OffsetY. Didn't want to include any failed experiments. I also attached the code for better legibility. I can offset the position of the quads easily using Gl.Translatef, but the group ALWAYS seems to rotate with the upper-left corner as the origin. I need to be able to control the origin. I can do this easily with a single quad, but seem to have trouble doing it "globally" with the For...Next loops of quads. -- Kevin Fishburne Eight Virtues www:http://sales.eightvirtues.com e-mail:sales at ...1887... phone: (770) 853-6271 -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: sadness URL: From tommyline at ...2340... Tue Aug 9 08:02:55 2011 From: tommyline at ...2340... (tommyline at ...2340...) Date: Tue, 9 Aug 2011 07:02:55 +0100 (IST) Subject: [Gambas-user] gb3: OpenGL, rotation and translation of matrix affecting multiple quads In-Reply-To: <4E4090EA.8060701@...1887...> Message-ID: <21376829.624.1312869775498.JavaMail.root@...2632...> Hi Kevin, You can't do this in one rotatef() function. You have to rotate every quad separately, using sequence: gl.Loadidentity - to reset matrix at 0,0,0 for each quad do gl.pushmatrix() - save the global matrix gl.translatei() - move to the center of each quad gl.rotatef(angle,x,y,z) - rotate each quad draw each quad gl.popmatrix() - back to the 0,0,0 origin. Tomek. ----- Original Message ----- From: "Kevin Fishburne" To: gambas-user at lists.sourceforge.net Sent: Tuesday, 9 August, 2011 2:44:10 AM Subject: [Gambas-user] gb3: OpenGL, rotation and translation of matrix affecting multiple quads Here's looking at you Tomek, although anyone who knows give me a shout out. I'm using a nested For...Next loop to render a 2D grid of quads. I need the grid of quads to be rotated about its "center", but would like to make a single matrix transformation instead of doing one for each quad. Is this possible, and if so, how? Even if I have to do multiple matrix transformations, that is fine, as long as I don't have to do one for every single quad. Right now my code (removing all experiments, just bare code) looks like this: Public Sub Tile_Grid() ' Draw tile grid texture array in render window. ' General declarations. Dim TileGridX As Short ' Tile in tile grid texture array being rendered. Dim TileGridY As Short ' Tile in tile grid texture array being rendered. Dim TileGridX1 As Short ' Starting tile in tile grid texture array to be rendered. Dim TileGridY1 As Short ' Starting tile in tile grid texture array to be rendered. Dim TileGridX2 As Short ' Ending tile in tile grid texture array to be rendered. Dim TileGridY2 As Short ' Ending tile in tile grid texture array to be rendered. Dim PixelX As Short ' Pixel coordinates of tile being rendered. Dim PixelY As Short ' Pixel coordinates of tile being rendered. Dim OffsetX As Short ' Number of pixels to offset matrix to accommodate camera position and tile grid resolution. Dim OffsetY As Short ' Number of pixels to offset matrix to accommodate camera position and tile grid resolution. Dim StepX As Short ' Direction to step through tile grid texture array loop. Dim StepY As Short ' Direction to step through tile grid texture array loop. ' Assign initial values to variables. TileGridX1 = TileGrid.CenterX TileGridY1 = TileGrid.CenterY TileGridX2 = TileGrid.CenterX + TileGrid.Size - 1 TileGridY2 = TileGrid.CenterY + TileGrid.Size - 1 If TileGridX1 < TileGridX2 Then StepX = 1 Else StepX = -1 Endif If TileGridY1 < TileGridY2 Then StepY = 1 Else StepY = -1 Endif ' Rotate and translate matrix. Gl.LoadIdentity() Gl.Translatef(- OffsetX, - OffsetY, 0) Gl.Rotatef(- Client.Orientation, 0, 0, 1) Gl.Translatef(OffsetX, OffsetY, 0) ' Render specified tiles in cell grid to tile grid. For TileGridY = TileGridY1 To TileGridY2 Step StepY For TileGridX = TileGridX1 To TileGridX2 Step StepX ' Select texture using its ID. Gl.BindTexture(Gl.GL_TEXTURE_2D, tTileGrid[Convert.Wrap_Short(0, TileGrid.Size - 1, TileGridX), Convert.Wrap_Short(0, TileGrid.Size - 1, TileGridY)][0]) ' Create the quad the texture is drawn on. Gl.Begin(Gl.GL_QUADS) ' Bottom-left vertex. Gl.TexCoord2i(0, 0) Gl.Vertex3i(PixelX + OffsetX, PixelY + OffsetY, 0) ' Bottom-right vertex. Gl.TexCoord2i(1, 0) Gl.Vertex3i(PixelX + OffsetX + 128, PixelY + OffsetY, 0) ' Top-right vertex. Gl.TexCoord2i(1, 1) Gl.Vertex3i(PixelX + OffsetX + 128, PixelY + OffsetY + 128, 0) ' Top-left vertex. Gl.TexCoord2i(0, 1) Gl.Vertex3i(PixelX + OffsetX, PixelY + OffsetY + 128, 0) Gl.End() ' Adjust pixel position. PixelX = PixelX + 128 If PixelX = TileGrid.Size * 128 Then PixelX = 0 Next ' Adjust pixel positions. PixelX = 0 PixelY = PixelY + 128 If PixelY = TileGrid.Size * 128 Then PixelY = 0 Next ' Reset matrices so subsequent SDL writes won't get botched. Gl.LoadIdentity() End Notice I didn't assign values to OffsetX or OffsetY. Didn't want to include any failed experiments. I also attached the code for better legibility. I can offset the position of the quads easily using Gl.Translatef, but the group ALWAYS seems to rotate with the upper-left corner as the origin. I need to be able to control the origin. I can do this easily with a single quad, but seem to have trouble doing it "globally" with the For...Next loops of quads. -- Kevin Fishburne Eight Virtues www:http://sales.eightvirtues.com e-mail:sales at ...1887... phone: (770) 853-6271 ------------------------------------------------------------------------------ uberSVN's rich system and user administration capabilities and model configuration take the hassle out of deploying and managing Subversion and the tools developers use with it. Learn more about uberSVN and get a free download at: http://p.sf.net/sfu/wandisco-dev2dev _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...2524... Tue Aug 9 10:59:52 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 09 Aug 2011 08:59:52 +0000 Subject: [Gambas-user] Issue 77 in gambas: Support poppler 0.17.0 In-Reply-To: <0-6813199134517018827-9018458981300794217-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-9018458981300794217-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-9018458981300794217-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -Version Version-Any Comment #1 on issue 77 by benoit.m... at ...626...: Support poppler 0.17.0 http://code.google.com/p/gambas/issues/detail?id=77 (No comment was entered for this change.) From gambas at ...2524... Tue Aug 9 12:45:28 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 09 Aug 2011 10:45:28 +0000 Subject: [Gambas-user] Issue 77 in gambas: Support poppler 0.17.0 In-Reply-To: <1-6813199134517018827-9018458981300794217-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-9018458981300794217-gambas=googlecode.com@...2524...> <0-6813199134517018827-9018458981300794217-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-9018458981300794217-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #2 on issue 77 by benoit.m... at ...626...: Support poppler 0.17.0 http://code.google.com/p/gambas/issues/detail?id=77 Fixed in revision #3997. Thanks for the patch. I actually did differently, by detecting poppler version at configuration time, so that I don't have to include the file. From gambas at ...1... Tue Aug 9 12:48:22 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 9 Aug 2011 12:48:22 +0200 Subject: [Gambas-user] Making code pretty In-Reply-To: <4E3ABE06.7090508@...626...> References: <201108041522.33389.gambas@...1...> <4E3ABE06.7090508@...626...> Message-ID: <201108091248.22110.gambas@...1...> > On 8/4/2011 8:22 AM, Beno?t Minisini wrote: > > Hi there, > > > > I'd like to add some options to the "making code pretty" feature in the > > IDE. > > I think that an option to sort procedures by name would be helpful. > I think such an option should be put outside of the code format routine, which acts on any part of the source file. Anyway, why do you need that option? Is the procedure popup button not enough? -- Beno?t Minisini From gambas at ...2524... Tue Aug 9 12:53:37 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 09 Aug 2011 10:53:37 +0000 Subject: [Gambas-user] Issue 61 in gambas: valuebox of type IPAddress crashes IDE In-Reply-To: <2-6813199134517018827-11368010895264427534-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-11368010895264427534-gambas=googlecode.com@...2524...> <0-6813199134517018827-11368010895264427534-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-11368010895264427534-gambas=googlecode.com@...2524...> Updates: Status: Accepted Comment #3 on issue 61 by benoit.m... at ...626...: valuebox of type IPAddress crashes IDE http://code.google.com/p/gambas/issues/detail?id=61 (No comment was entered for this change.) From gambas at ...2524... Tue Aug 9 13:08:54 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 09 Aug 2011 11:08:54 +0000 Subject: [Gambas-user] Issue 61 in gambas: valuebox of type IPAddress crashes IDE In-Reply-To: <3-6813199134517018827-11368010895264427534-gambas=googlecode.com@...2524...> References: <3-6813199134517018827-11368010895264427534-gambas=googlecode.com@...2524...> <0-6813199134517018827-11368010895264427534-gambas=googlecode.com@...2524...> Message-ID: <4-6813199134517018827-11368010895264427534-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #4 on issue 61 by benoit.m... at ...626...: valuebox of type IPAddress crashes IDE http://code.google.com/p/gambas/issues/detail?id=61 Fixed in revision #3998. From gambas at ...2524... Tue Aug 9 13:45:06 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 09 Aug 2011 11:45:06 +0000 Subject: [Gambas-user] Issue 76 in gambas: Iconview MoveNext does not return True moving after last item In-Reply-To: <0-6813199134517018827-13948311583782804960-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-13948311583782804960-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-13948311583782804960-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -Version Version-TRUNK Comment #1 on issue 76 by benoit.m... at ...626...: Iconview MoveNext does not return True moving after last item http://code.google.com/p/gambas/issues/detail?id=76 (No comment was entered for this change.) From gambas at ...2524... Tue Aug 9 13:52:22 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 09 Aug 2011 11:52:22 +0000 Subject: [Gambas-user] Issue 76 in gambas: Iconview MoveNext does not return True moving after last item In-Reply-To: <1-6813199134517018827-13948311583782804960-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-13948311583782804960-gambas=googlecode.com@...2524...> <0-6813199134517018827-13948311583782804960-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-13948311583782804960-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #2 on issue 76 by benoit.m... at ...626...: Iconview MoveNext does not return True moving after last item http://code.google.com/p/gambas/issues/detail?id=76 Fixed in revision #3999. From johny.provoost at ...27... Tue Aug 9 18:29:07 2011 From: johny.provoost at ...27... (Johny Provoost) Date: Tue, 09 Aug 2011 18:29:07 +0200 Subject: [Gambas-user] Making code pretty In-Reply-To: <201108091248.22110.gambas@...1...> References: <201108041522.33389.gambas@...1...> <4E3ABE06.7090508@...626...> <201108091248.22110.gambas@...1...> Message-ID: <4E416053.4030205@...27...> Op 09-08-11 12:48, Beno?t Minisini schreef: >> On 8/4/2011 8:22 AM, Beno??t Minisini wrote: >>> Hi there, >>> >>> I'd like to add some options to the "making code pretty" feature in the >>> IDE. >> I think that an option to sort procedures by name would be helpful. >> > I think such an option should be put outside of the code format routine, which > acts on any part of the source file. > > Anyway, why do you need that option? Is the procedure popup button not enough? > Shame on me. Working with Gambas for more than 2 years now and never discovered that. My scroll wheel is you forever grateful :>)). No special need for it, but it looks pretty on the screen. Johny From kevinfishburne at ...1887... Tue Aug 9 20:34:37 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Tue, 09 Aug 2011 14:34:37 -0400 Subject: [Gambas-user] Making code pretty In-Reply-To: <4E416053.4030205@...27...> References: <201108041522.33389.gambas@...1...> <4E3ABE06.7090508@...626...> <201108091248.22110.gambas@...1...> <4E416053.4030205@...27...> Message-ID: <4E417DBD.4000604@...1887...> On 08/09/2011 12:29 PM, Johny Provoost wrote: > > > Op 09-08-11 12:48, Beno?t Minisini schreef: >>> On 8/4/2011 8:22 AM, Beno??t Minisini wrote: >>>> Hi there, >>>> >>>> I'd like to add some options to the "making code pretty" feature in the >>>> IDE. >>> I think that an option to sort procedures by name would be helpful. >>> >> I think such an option should be put outside of the code format routine, which >> acts on any part of the source file. >> >> Anyway, why do you need that option? Is the procedure popup button not enough? >> > Shame on me. Working with Gambas for more than 2 years now and never > discovered that. > My scroll wheel is you forever grateful :>)). > No special need for it, but it looks pretty on the screen. I use the procedure list all the time but still think an option to sort the procedures alphabetically would be useful. I always try to keep them all in order as I write them, but often down the road they get renamed. I still just scroll up and down a lot as well as using the list. It would also be useful for having to deal with someone else's code who might have procedures in completely random order. Manually reordering more than a few does get tedious. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From rterry at ...1946... Wed Aug 10 00:17:01 2011 From: rterry at ...1946... (richard terry) Date: Wed, 10 Aug 2011 08:17:01 +1000 Subject: [Gambas-user] Making code pretty In-Reply-To: <4E417DBD.4000604@...1887...> References: <201108041522.33389.gambas@...1...> <4E416053.4030205@...27...> <4E417DBD.4000604@...1887...> Message-ID: <201108100817.01048.rterry@...1946...> On Wednesday 10 August 2011 04:34:37 Kevin Fishburne wrote: > On 08/09/2011 12:29 PM, Johny Provoost wrote: > > Op 09-08-11 12:48, Beno?t Minisini schreef: > >>> On 8/4/2011 8:22 AM, Beno??t Minisini wrote: > >>>> Hi there, > >>>> > >>>> I'd like to add some options to the "making code pretty" feature in > >>>> the IDE. > >>> > >>> I think that an option to sort procedures by name would be helpful. > >> > >> I think such an option should be put outside of the code format routine, > >> which acts on any part of the source file. > >> > >> Anyway, why do you need that option? Is the procedure popup button not > >> enough? > > > > Shame on me. Working with Gambas for more than 2 years now and never > > discovered that. > > My scroll wheel is you forever grateful :>)). > > No special need for it, but it looks pretty on the screen. > > I use the procedure list all the time but still think an option to sort > the procedures alphabetically would be useful. I always try to keep them > all in order as I write them, but often down the road they get renamed. > I still just scroll up and down a lot as well as using the list. It > would also be useful for having to deal with someone else's code who > might have procedures in completely random order. Manually reordering > more than a few does get tedious. > I agree wholeheartedly. Richard From tobiasboe1 at ...20... Wed Aug 10 00:34:10 2011 From: tobiasboe1 at ...20... (tobias) Date: Wed, 10 Aug 2011 00:34:10 +0200 Subject: [Gambas-user] Callback Message-ID: <4E41B5E2.6050907@...20...> hi, i wonder how one would specify a function callback to a function (i haven't tried anything because nothing seems to me to work). no way with a functions name as string and Class[name] because i can't get a pointer to the actual symbol via this method but only to a .Symbol object. i also can't call a pointer (as it would be with passing the functions address) or something because it is not possible to cast a pointer to a function... or do i miss something here? regards, tobi From tobiasboe1 at ...20... Wed Aug 10 00:56:06 2011 From: tobiasboe1 at ...20... (tobias) Date: Wed, 10 Aug 2011 00:56:06 +0200 Subject: [Gambas-user] Callback In-Reply-To: <4E41B5E2.6050907@...20...> References: <4E41B5E2.6050907@...20...> Message-ID: <4E41BB06.5050501@...20...> > hi, > > i wonder how one would specify a function callback to a function (i > haven't tried anything because nothing seems to me to work). no way with > a functions name as string and Class[name] because i can't get a pointer > to the actual symbol via this method but only to a .Symbol object. i > also can't call a pointer (as it would be with passing the functions > address) or something because it is not possible to cast a pointer to a > function... or do i miss something here? > > regards, > tobi oh, well it's possible using Object.Call(Me, name) but why isn't there something like a Function datatype or the possibility to call a pointer? is it too risky or not easily possible (just read an older post on the list (http://old.nabble.com/Signal-11-with-callback-functions-td31128062.html) which says that there have to be wrappers between c and gambas functions (something that is clear but i haven't had in mind), but the more i think about it late at night, the more i get the idea that this isn't related to my problem) what i'd like to do is: Public Sub test(i As Integer) Print i End Public Sub DoSomething() Something(5, test) End Public Sub Something(i As Integer, callback As Pointer) callback(i) End any ideas? From zachsmith022 at ...626... Wed Aug 10 03:42:39 2011 From: zachsmith022 at ...626... (Zach Smith) Date: Tue, 9 Aug 2011 20:42:39 -0500 Subject: [Gambas-user] Making code pretty In-Reply-To: <201108091248.22110.gambas@...1...> References: <201108041522.33389.gambas@...1...> <4E3ABE06.7090508@...626...> <201108091248.22110.gambas@...1...> Message-ID: 2011/8/9 Beno?t Minisini : > > Anyway, why do you need that option? Is the procedure popup button not enough? > I prefer using the keyboard (CTRL+UP and CTRL+DOWN) to navigate procedures. If they are sorted (which I now do manually), it is sometimes faster to get to the procedure I want without having to use the mouse. From kevinfishburne at ...1887... Wed Aug 10 04:37:12 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Tue, 09 Aug 2011 22:37:12 -0400 Subject: [Gambas-user] Making code pretty In-Reply-To: References: <201108041522.33389.gambas@...1...> <4E3ABE06.7090508@...626...> <201108091248.22110.gambas@...1...> Message-ID: <4E41EED8.7060401@...1887...> On 08/09/2011 09:42 PM, Zach Smith wrote: > 2011/8/9 Beno?t Minisini: >> Anyway, why do you need that option? Is the procedure popup button not enough? >> > I prefer using the keyboard (CTRL+UP and CTRL+DOWN) to navigate > procedures. If they are sorted (which I now do manually), it is > sometimes faster to get to the procedure I want without having to use > the mouse. Ooooh. I like that and will give it a try. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From fabio.sturman at ...626... Wed Aug 10 08:24:50 2011 From: fabio.sturman at ...626... (Fabio Sturman) Date: Wed, 10 Aug 2011 08:24:50 +0200 Subject: [Gambas-user] Gambas gpib Message-ID: I wrote a wrapper for libgpib.so for Gambas2 @ https://sites.google.com/site/gambasgpib/. gpib is a bus used to connect instrumentation to a computer! Fabio Sturman From gambas.fr at ...626... Wed Aug 10 09:09:35 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 10 Aug 2011 09:09:35 +0200 Subject: [Gambas-user] Callback In-Reply-To: <4E41BB06.5050501@...20...> References: <4E41B5E2.6050907@...20...> <4E41BB06.5050501@...20...> Message-ID: 2011/8/10 tobias : > >> hi, >> >> i wonder how one would specify a function callback to a function (i >> haven't tried anything because nothing seems to me to work). no way with >> a functions name as string and Class[name] because i can't get a pointer >> to the actual symbol via this method but only to a .Symbol object. i >> also can't call a pointer (as it would be with passing the functions >> address) or something because it is not possible to cast a pointer to a >> function... or do i miss something here? >> >> regards, >> tobi > oh, well it's possible using Object.Call(Me, name) but why isn't there > something like a Function datatype or the possibility to call a pointer? > is it too risky or not easily possible (just read an older post on the > list > (http://old.nabble.com/Signal-11-with-callback-functions-td31128062.html) which > says that there have to be wrappers between c and gambas functions > (something that is clear but i haven't had in mind), but the more i > think about it late at night, the more i get the idea that this isn't > related to my problem) > what i'd like to do is: > > Public Sub test(i As Integer) > ? Print i > End > > Public Sub DoSomething() > ? Something(5, test) > End lol Public DoSomething() Test(5) End ??? :-D > > Public Sub Something(i As Integer, callback As Pointer) > ? callback(i) > End > > any ideas? > > ------------------------------------------------------------------------------ > uberSVN's rich system and user administration capabilities and model > configuration take the hassle out of deploying and managing Subversion and > the tools developers use with it. Learn more about uberSVN and get a free > download at: ?http://p.sf.net/sfu/wandisco-dev2dev > _______________________________________________ > 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... Wed Aug 10 09:16:22 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 10 Aug 2011 09:16:22 +0200 Subject: [Gambas-user] Making code pretty In-Reply-To: <4E41EED8.7060401@...1887...> References: <201108041522.33389.gambas@...1...> <4E3ABE06.7090508@...626...> <201108091248.22110.gambas@...1...> <4E41EED8.7060401@...1887...> Message-ID: 2011/8/10 Kevin Fishburne : > On 08/09/2011 09:42 PM, Zach Smith wrote: >> 2011/8/9 Beno?t Minisini: >>> Anyway, why do you need that option? Is the procedure popup button not enough? >>> >> I prefer using the keyboard (CTRL+UP and CTRL+DOWN) to navigate >> procedures. ?If they are sorted (which I now do manually), it is >> sometimes faster to get to the procedure I want without having to use >> the mouse. > > Ooooh. I like that and will give it a try. > > -- > Kevin Fishburne > Eight Virtues > www: http://sales.eightvirtues.com > e-mail: sales at ...1887... > phone: (770) 853-6271 > > > ------------------------------------------------------------------------------ > uberSVN's rich system and user administration capabilities and model > configuration take the hassle out of deploying and managing Subversion and > the tools developers use with it. Learn more about uberSVN and get a free > download at: ?http://p.sf.net/sfu/wandisco-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > hum so and what about having a shortcut to expand the procedure list and then move throuth it with the up and down key ... validate by enter. with that no need to sort all the file. and an option can be set to have the cursor position change when the list entry change. -- Fabien Bodard From sbungay at ...981... Wed Aug 10 13:50:57 2011 From: sbungay at ...981... (Stephen A. Bungay) Date: Wed, 10 Aug 2011 07:50:57 -0400 Subject: [Gambas-user] Callback Message-ID: I don't see the need myself, I do see how it allows the 'Something' sub to vary what sub it calls by varying the 'test' parameter passed in, but I question the need and wonder, since 'test, could be varied, if that need could be fulfilled another way by select or if within 'Something. Of course I don't know the contet of your application, only what we have as an example... not much to go on. tobias wrote: > >> hi, >> >> i wonder how one would specify a function callback to a function (i >> haven't tried anything because nothing seems to me to work). no way with >> a functions name as string and Class[name] because i can't get a pointer >> to the actual symbol via this method but only to a .Symbol object. i >> also can't call a pointer (as it would be with passing the functions >> address) or something because it is not possible to cast a pointer to a >> function... or do i miss something here? >> >> regards, >> tobi >oh, well it's possible using Object.Call(Me, name) but why isn't there >something like a Function datatype or the possibility to call a pointer? >is it too risky or not easily possible (just read an older post on the >list >(http://old.nabble.com/Signal-11-with-callback-functions-td31128062.html) which >says that there have to be wrappers between c and gambas functions >(something that is clear but i haven't had in mind), but the more i >think about it late at night, the more i get the idea that this isn't >related to my problem) >what i'd like to do is: > >Public Sub test(i As Integer) > Print i >End > >Public Sub DoSomething() > Something(5, test) >End > >Public Sub Something(i As Integer, callback As Pointer) > callback(i) >End > >any ideas? > >------------------------------------------------------------------------------ >uberSVN's rich system and user administration capabilities and model >configuration take the hassle out of deploying and managing Subversion and >the tools developers use with it. Learn more about uberSVN and get a free >download at: http://p.sf.net/sfu/wandisco-dev2dev >_______________________________________________ >Gambas-user mailing list >Gambas-user at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/gambas-user From member at ...2579... Wed Aug 10 14:03:30 2011 From: member at ...2579... (Silvani Canal via LinkedIn) Date: Wed, 10 Aug 2011 12:03:30 +0000 (UTC) Subject: [Gambas-user] =?utf-8?q?Rejoindre_mon_r=C3=A9seau_sur_LinkedIn?= Message-ID: <523759910.1183283.1312977810478.JavaMail.app@...2633...> LinkedIn ------------ Silvani Canal souhaite se connecter ? vous sur LinkedIn?: ------------------------------------------ Je vous invite ? faire partie de mon r?seau professionnel en ligne sur le site LinkedIn. Accepter l'invitation de Silvani Canal http://www.linkedin.com/e/hggat5-gr6936ed-5b/uKC-86hQN3QmxE2auJ6zQ6pkPe-4UnCG632_CXVQxQl4RrKxeh/blk/I1595604702_3/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYPnP8MdPgMdzkVdj59bR0VqBFbel8MbPwMejcTcPkRd3cLrCBxbOYWrSlI/EML_comm_afe/ Voir l'invitation de Silvani Canal http://www.linkedin.com/e/hggat5-gr6936ed-5b/uKC-86hQN3QmxE2auJ6zQ6pkPe-4UnCG632_CXVQxQl4RrKxeh/blk/I1595604702_3/3dvcz0Td30SdjARckALqnpPbOYWrSlI/svi/ ------------------------------------------ Quel est l'int?r?t de faire partie du r?seau de Silvani Canal?? Vous avez une question?? Le r?seau de Silvani Canal a probablement une r?ponse?: La rubrique R?ponses de LinkedIn vous permet de vous informer aupr?s de Silvani Canal et de votre r?seau. Obtenez l'information que vous recherchez aupr?s de professionnels exp?riment?s. http://www.linkedin.com/e/hggat5-gr6936ed-5b/ash/inv19_ayn/ -- (c) 2011, LinkedIn Corporation From gambas at ...1... Wed Aug 10 14:45:39 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 10 Aug 2011 14:45:39 +0200 Subject: [Gambas-user] Making code pretty In-Reply-To: References: <201108041522.33389.gambas@...1...> <4E41EED8.7060401@...1887...> Message-ID: <201108101445.39910.gambas@...1...> > > hum so and what about having a shortcut to expand the procedure list > and then move throuth it with the up and down key ... validate by > enter. > > with that no need to sort all the file. and an option can be set to > have the cursor position change when the list entry change. F6 ? -- Beno?t Minisini From gambas.fr at ...626... Wed Aug 10 15:09:30 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 10 Aug 2011 15:09:30 +0200 Subject: [Gambas-user] Making code pretty In-Reply-To: <201108101445.39910.gambas@...1...> References: <201108041522.33389.gambas@...1...> <4E41EED8.7060401@...1887...> <201108101445.39910.gambas@...1...> Message-ID: Le 10 ao?t 2011 14:45, Beno?t Minisini a ?crit : >> >> hum so and what about having a shortcut to expand the procedure list >> and then move throuth it with the up and down key ... validate by >> enter. >> >> with that no need to sort all the file. and an option can be set to >> have the cursor position change when the list entry change. > > F6 ? well :-S so all is good :-) > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > uberSVN's rich system and user administration capabilities and model > configuration take the hassle out of deploying and managing Subversion and > the tools developers use with it. Learn more about uberSVN and get a free > download at: ?http://p.sf.net/sfu/wandisco-dev2dev > _______________________________________________ > 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... Wed Aug 10 17:15:17 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 10 Aug 2011 18:15:17 +0300 Subject: [Gambas-user] Callback In-Reply-To: <4E41BB06.5050501@...20...> References: <4E41B5E2.6050907@...20...> <4E41BB06.5050501@...20...> Message-ID: You need wrapper only between C++ and Gambas, C with Gambas is fine!! Callback functions are passed as pointer, but I have only passed gambas written functions to external functions. Not sure what you are doing is legitimate... Gambas should first recognize callback pointer as function. Benoit? However you can have desired functionality with class with special method _call. http://gambasdoc.org/help/lang/special/call Jussi On Wed, Aug 10, 2011 at 01:56, tobias wrote: > > > hi, > > > > i wonder how one would specify a function callback to a function (i > > haven't tried anything because nothing seems to me to work). no way with > > a functions name as string and Class[name] because i can't get a pointer > > to the actual symbol via this method but only to a .Symbol object. i > > also can't call a pointer (as it would be with passing the functions > > address) or something because it is not possible to cast a pointer to a > > function... or do i miss something here? > > > > regards, > > tobi > oh, well it's possible using Object.Call(Me, name) but why isn't there > something like a Function datatype or the possibility to call a pointer? > is it too risky or not easily possible (just read an older post on the > list > (http://old.nabble.com/Signal-11-with-callback-functions-td31128062.html) > which > says that there have to be wrappers between c and gambas functions > (something that is clear but i haven't had in mind), but the more i > think about it late at night, the more i get the idea that this isn't > related to my problem) > what i'd like to do is: > > Public Sub test(i As Integer) > Print i > End > > Public Sub DoSomething() > Something(5, test) > End > > Public Sub Something(i As Integer, callback As Pointer) > callback(i) > End > > any ideas? > > > ------------------------------------------------------------------------------ > uberSVN's rich system and user administration capabilities and model > configuration take the hassle out of deploying and managing Subversion and > the tools developers use with it. Learn more about uberSVN and get a free > download at: http://p.sf.net/sfu/wandisco-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From bbruen at ...2308... Wed Aug 10 14:13:04 2011 From: bbruen at ...2308... (Bruce Bruen) Date: Wed, 10 Aug 2011 21:43:04 +0930 Subject: [Gambas-user] Callback In-Reply-To: <4E41BB06.5050501@...20...> References: <4E41B5E2.6050907@...20...> <4E41BB06.5050501@...20...> Message-ID: <4E4275D0.4030709@...2308...> On 10/08/11 08:26, tobias wrote: > >> hi, >> >> i wonder how one would specify a function callback to a function (i >> haven't tried anything because nothing seems to me to work). no way with >> a functions name as string and Class[name] because i can't get a pointer >> to the actual symbol via this method but only to a .Symbol object. i >> also can't call a pointer (as it would be with passing the functions >> address) or something because it is not possible to cast a pointer to a >> function... or do i miss something here? >> >> regards, >> tobi >> > oh, well it's possible using Object.Call(Me, name) but why isn't there > something like a Function datatype or the possibility to call a pointer? > is it too risky or not easily possible (just read an older post on the > list > (http://old.nabble.com/Signal-11-with-callback-functions-td31128062.html) which > says that there have to be wrappers between c and gambas functions > (something that is clear but i haven't had in mind), but the more i > think about it late at night, the more i get the idea that this isn't > related to my problem) > what i'd like to do is: > > Public Sub test(i As Integer) > Print i > End > > Public Sub DoSomething() > Something(5, test) > End > > Public Sub Something(i As Integer, callback As Pointer) > callback(i) > End > > any ideas? > > ------------------------------------------------------------------------------ > uberSVN's rich system and user administration capabilities and model > configuration take the hassle out of deploying and managing Subversion and > the tools developers use with it. Learn more about uberSVN and get a free > download at: http://p.sf.net/sfu/wandisco-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > Um. It's late at night and my dev box is having a lie down. Public Function Something(i As Variant, callback As String) as Variant Return Eval(subst("&1(&2)",callback,i) End From bbruen at ...2308... Wed Aug 10 14:19:35 2011 From: bbruen at ...2308... (Bruce Bruen) Date: Wed, 10 Aug 2011 21:49:35 +0930 Subject: [Gambas-user] Making code pretty In-Reply-To: References: <201108041522.33389.gambas@...1...> <4E3ABE06.7090508@...626...> <201108091248.22110.gambas@...1...> <4E41EED8.7060401@...1887...> Message-ID: <4E427757.10107@...2308...> On 10/08/11 16:46, Fabien Bodard wrote: > 2011/8/10 Kevin Fishburne: > >> On 08/09/2011 09:42 PM, Zach Smith wrote: >> >>> 2011/8/9 Beno?t Minisini: >>> >>>> Anyway, why do you need that option? Is the procedure popup button not enough? >>>> >>>> >>> I prefer using the keyboard (CTRL+UP and CTRL+DOWN) to navigate >>> procedures. If they are sorted (which I now do manually), it is >>> sometimes faster to get to the procedure I want without having to use >>> the mouse. >>> >> Ooooh. I like that and will give it a try. >> >> -- >> Kevin Fishburne >> Eight Virtues >> www: http://sales.eightvirtues.com >> e-mail: sales at ...1887... >> phone: (770) 853-6271 >> >> >> ------------------------------------------------------------------------------ >> uberSVN's rich system and user administration capabilities and model >> configuration take the hassle out of deploying and managing Subversion and >> the tools developers use with it. Learn more about uberSVN and get a free >> download at: http://p.sf.net/sfu/wandisco-dev2dev >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> > hum so and what about having a shortcut to expand the procedure list > and then move throuth it with the up and down key ... validate by > enter. > > with that no need to sort all the file. and an option can be set to > have the cursor position change when the list entry change. > > Hey yeah! And you could put it in the IDE editor context menu under something like "Go To" then all we'd have to do is right click on it. ... Oh, Wow! I just posted this and it's already there! Gee, Benoit is fast. ;-) From kevinfishburne at ...1887... Wed Aug 10 18:38:05 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Wed, 10 Aug 2011 12:38:05 -0400 Subject: [Gambas-user] gb3: carriage return on comment line modification Message-ID: <4E42B3ED.1010801@...1887...> While this is an overall improvement, I think it needs a small adjustment to make it perfect: a new comment line should not be created if the carriage return occurs at the very beginning or very end of of a comment line. Pressing Enter in the middle of a comment almost certainly means you want all text to the right to become a comment on the next line (which works brilliantly). Pressing Enter at the end of a comment most of the time probably means you're about to enter some code. If you were going to enter another line of comments, hitting Tab and ' is pretty easy. Hitting Enter at the beginning of a comment line probably means you're just trying to move the comment line down. This is what happens when you press Enter at the end of a comment line: ' Comment line 1. ' And this if pressed at the beginning: ' ' Comment line 1. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From kevinfishburne at ...1887... Wed Aug 10 18:58:16 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Wed, 10 Aug 2011 12:58:16 -0400 Subject: [Gambas-user] gb3: OpenGL, rotation and translation of matrix affecting multiple quads In-Reply-To: <21376829.624.1312869775498.JavaMail.root@...2632...> References: <21376829.624.1312869775498.JavaMail.root@...2632...> Message-ID: <4E42B8A8.5090308@...1887...> On 08/09/2011 02:02 AM, tommyline at ...2340... wrote: > > > ----- Original Message ----- > From: "Kevin Fishburne" > To: gambas-user at lists.sourceforge.net > Sent: Tuesday, 9 August, 2011 2:44:10 AM > Subject: [Gambas-user] gb3: OpenGL, rotation and translation of matrix affecting multiple quads > > Here's looking at you Tomek, although anyone who knows give me a shout out. > > I'm using a nested For...Next loop to render a 2D grid of quads. I need > the grid of quads to be rotated about its "center", but would like to > make a single matrix transformation instead of doing one for each quad. > Is this possible, and if so, how? Even if I have to do multiple matrix > transformations, that is fine, as long as I don't have to do one for > every single quad. > > Right now my code (removing all experiments, just bare code) looks like > this: > > Public Sub Tile_Grid() > > ' Draw tile grid texture array in render window. > > ' General declarations. > Dim TileGridX As Short ' Tile in tile grid texture array being rendered. > Dim TileGridY As Short ' Tile in tile grid texture array being rendered. > Dim TileGridX1 As Short ' Starting tile in tile grid texture array to > be rendered. > Dim TileGridY1 As Short ' Starting tile in tile grid texture array to > be rendered. > Dim TileGridX2 As Short ' Ending tile in tile grid texture array to > be rendered. > Dim TileGridY2 As Short ' Ending tile in tile grid texture array to > be rendered. > Dim PixelX As Short ' Pixel coordinates of tile being rendered. > Dim PixelY As Short ' Pixel coordinates of tile being rendered. > Dim OffsetX As Short ' Number of pixels to offset matrix to > accommodate camera position and tile grid resolution. > Dim OffsetY As Short ' Number of pixels to offset matrix to > accommodate camera position and tile grid resolution. > Dim StepX As Short ' Direction to step through tile grid texture > array loop. > Dim StepY As Short ' Direction to step through tile grid texture > array loop. > > ' Assign initial values to variables. > TileGridX1 = TileGrid.CenterX > TileGridY1 = TileGrid.CenterY > TileGridX2 = TileGrid.CenterX + TileGrid.Size - 1 > TileGridY2 = TileGrid.CenterY + TileGrid.Size - 1 > If TileGridX1< TileGridX2 Then > StepX = 1 > Else > StepX = -1 > Endif > If TileGridY1< TileGridY2 Then > StepY = 1 > Else > StepY = -1 > Endif > > ' Rotate and translate matrix. > Gl.LoadIdentity() > Gl.Translatef(- OffsetX, - OffsetY, 0) > Gl.Rotatef(- Client.Orientation, 0, 0, 1) > Gl.Translatef(OffsetX, OffsetY, 0) > > ' Render specified tiles in cell grid to tile grid. > For TileGridY = TileGridY1 To TileGridY2 Step StepY > For TileGridX = TileGridX1 To TileGridX2 Step StepX > ' Select texture using its ID. > Gl.BindTexture(Gl.GL_TEXTURE_2D, tTileGrid[Convert.Wrap_Short(0, > TileGrid.Size - 1, TileGridX), Convert.Wrap_Short(0, TileGrid.Size - 1, > TileGridY)][0]) > ' Create the quad the texture is drawn on. > Gl.Begin(Gl.GL_QUADS) > ' Bottom-left vertex. > Gl.TexCoord2i(0, 0) > Gl.Vertex3i(PixelX + OffsetX, PixelY + OffsetY, 0) > ' Bottom-right vertex. > Gl.TexCoord2i(1, 0) > Gl.Vertex3i(PixelX + OffsetX + 128, PixelY + OffsetY, 0) > ' Top-right vertex. > Gl.TexCoord2i(1, 1) > Gl.Vertex3i(PixelX + OffsetX + 128, PixelY + OffsetY + 128, 0) > ' Top-left vertex. > Gl.TexCoord2i(0, 1) > Gl.Vertex3i(PixelX + OffsetX, PixelY + OffsetY + 128, 0) > Gl.End() > ' Adjust pixel position. > PixelX = PixelX + 128 > If PixelX = TileGrid.Size * 128 Then PixelX = 0 > Next > ' Adjust pixel positions. > PixelX = 0 > PixelY = PixelY + 128 > If PixelY = TileGrid.Size * 128 Then PixelY = 0 > Next > > ' Reset matrices so subsequent SDL writes won't get botched. > Gl.LoadIdentity() > > End > > Notice I didn't assign values to OffsetX or OffsetY. Didn't want to > include any failed experiments. I also attached the code for better > legibility. > > I can offset the position of the quads easily using Gl.Translatef, but > the group ALWAYS seems to rotate with the upper-left corner as the > origin. I need to be able to control the origin. I can do this easily > with a single quad, but seem to have trouble doing it "globally" with > the For...Next loops of quads. > > ----- End Original Message ----- > > > Hi Kevin, > You can't do this in one rotatef() function. > > You have to rotate every quad separately, using sequence: > gl.Loadidentity - to reset matrix at 0,0,0 > for each quad do > gl.pushmatrix() - save the global matrix > gl.translatei() - move to the center of each quad > gl.rotatef(angle,x,y,z) - rotate each quad > draw each quad > gl.popmatrix() - back to the 0,0,0 origin. > > Tomek. > I think people need to tell me things aren't possible more frequently. ;) I got it to work, though it required some thinking my brain isn't used to doing. Ouch. I attached the working procedure. First I offset the matrix using Translatef to set the origin at the camera position in the grid of quads to be rendered. Then I rotated the matrix and translated it back to its starting point. Next I had two create two "offset" variables (OffsetX and OffsetY), which are the number of pixels each quad should be offset horizontally and vertically along the newly rotated matrix so that the quad grid's origin (camera position) is at the center of the screen. I'm working with arbitrary screen resolutions and quad grid dimensions, so it was extra tricky for me. Here's the crazy part. Because the matrix had been rotated, but I was trying to center the grid relative to the screen resolution, I had to "undo" the matrix rotation transformation when calculating the offsets: OffsetX = Convert.RotateX((swidth - TileGrid.Size * 128) / 2 - CameraOffsetX + 64, (sheight - TileGrid.Size * 128) / 2 - CameraOffsetY + 64, 0, 0, Client.Orientation) OffsetY = Convert.RotateY((swidth - TileGrid.Size * 128) / 2 - CameraOffsetX + 64, (sheight - TileGrid.Size * 128) / 2 - CameraOffsetY + 64, 0, 0, Client.Orientation) The conversion functions look like this: Public Function RotateX(ObjectX As Single, ObjectY As Single, OriginX As Single, OriginY As Single, Orientation As Single) As Single ' Rotate specified point about specified point and return new X coordinate. Return (OriginX + (Cos(Rad(Orientation)) * (ObjectX - OriginX) - Sin(Rad(Orientation)) * (ObjectY - OriginY))) End Public Function RotateY(ObjectX As Single, ObjectY As Single, OriginX As Single, OriginY As Single, Orientation As Single) As Single ' Rotate specified point about specified point and return new Y coordinate. Return (OriginY + (Sin(Rad(Orientation)) * (ObjectX - OriginX) + Cos(Rad(Orientation)) * (ObjectY - OriginY))) End I don't know why I had to add 64 to each offset manually, but it works so I'm happy. Now I just need to add similar logic to my Texture() procedure so that the game objects don't fly all over the place like they're doing now... -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: muti-quad rotation and translation with arbitrary origin URL: From gambas at ...1... Thu Aug 11 03:44:34 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 11 Aug 2011 03:44:34 +0200 Subject: [Gambas-user] Release of Gambas 3 RC2 Message-ID: <201108110344.34636.gambas@...1...> Hi, Just a little message to tell everyone that I have release Gambas 3 RC2. Everything about it is on the Release Notes inside the wiki, with a link on the web site. Please go there to read it: that way, I don't have to copy the information on the mailing-list, and I don't like doing twice the same thing. :-) And please tell me about the packaging on your prefered distribution so that I can centralize the information and fix the problems! Best regards, -- Beno?t Minisini From kevinfishburne at ...1887... Thu Aug 11 04:16:34 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Wed, 10 Aug 2011 22:16:34 -0400 Subject: [Gambas-user] Release of Gambas 3 RC2 In-Reply-To: <201108110344.34636.gambas@...1...> References: <201108110344.34636.gambas@...1...> Message-ID: <4E433B82.5070206@...1887...> On 08/10/2011 09:44 PM, Beno?t Minisini wrote: > Hi, > > Just a little message to tell everyone that I have release Gambas 3 RC2. > > Everything about it is on the Release Notes inside the wiki, with a link on > the web site. > > Please go there to read it: that way, I don't have to copy the information on > the mailing-list, and I don't like doing twice the same thing. :-) > > And please tell me about the packaging on your prefered distribution so that I > can centralize the information and fix the problems! Congratulations. Just compiled on Debian Testing and it works like a champ. I especially appreciate all the OpenGL work that has been done lately. I hope to take advantage of it in every way I can. So far my project has been nearly completely converted over to it and is working very well. -- Kevin Fishburne Eight Virtues www:http://sales.eightvirtues.com e-mail:sales at ...1887... phone: (770) 853-6271 From tobiasboe1 at ...20... Thu Aug 11 07:42:14 2011 From: tobiasboe1 at ...20... (tobias) Date: Thu, 11 Aug 2011 07:42:14 +0200 Subject: [Gambas-user] Callback In-Reply-To: <4E4275D0.4030709@...2308...> References: <4E41B5E2.6050907@...20...> <4E41BB06.5050501@...20...> <4E4275D0.4030709@...2308...> Message-ID: <4E436BB6.2000707@...20...> hi, > Um. It's late at night and my dev box is having a lie down. > > Public Function Something(i As Variant, callback As String) as Variant > Return Eval(subst("&1(&2)",callback,i) > End > this looked fine to me first (even though it has nothing to do with a function pointer), but complains that the given symbol was unknown, so i may pass an environment collection but then, again, it has to be a pointer which i cannot call. regards, tobi From gambas at ...2524... Thu Aug 11 15:44:22 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 11 Aug 2011 13:44:22 +0000 Subject: [Gambas-user] Issue 78 in gambas: Illegal optimization / May a method's return value type in a derived class be different from the base class? Message-ID: <0-6813199134517018827-13851315586951690890-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 78 by emil.len... at ...626...: Illegal optimization / May a method's return value type in a derived class be different from the base class? http://code.google.com/p/gambas/issues/detail?id=78 1) Describe the problem. The first time the interpreter runs an instruction, it checks what value types of the operand(s) are, and saves that. That can be a problem if the value types are not the same the next time the code runs. For example, every time the + operator in the code runs, it saves what value types the operands were at the first time, and assumes they are the same next time. That will produce false results if the value types are not the same the next time. 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: TRUNK Revision: r4007 Operating system: Linux Distribution: Gentoo Architecture: x86_64 3) Provide a little project that reproduces the bug or the crash. Class1: Public Function F() As Integer Return 1 End Class2: (Derived from Class1) Inherits Class1 Public Function F() As String Return "2" End Code: Dim a As Class1 Dim i As Integer For i = 1 To 2 If i = 1 Then a = New Class1 Else If i = 2 Then a = New Class2 End If Print a.F() + i 'Will print the address in memory for "2" + i the second time Next 5) Explain clearly how to reproduce the bug or the crash. Compile (will currently not warn at all) and run the code example. As far as I know, there are three ways fixing this bug: 1. Remove the optimization. 2. Somehow convert the return value to a Variant if it recognises that it may be several return value types. 3. Do not allow an instruction to return different return types, like when overriding methods with a different return type. From gambas at ...1... Thu Aug 11 17:30:30 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 11 Aug 2011 17:30:30 +0200 Subject: [Gambas-user] gb3: carriage return on comment line modification In-Reply-To: <4E42B3ED.1010801@...1887...> References: <4E42B3ED.1010801@...1887...> Message-ID: <201108111730.30405.gambas@...1...> > While this is an overall improvement, I think it needs a small > adjustment to make it perfect: a new comment line should not be created > if the carriage return occurs at the very beginning or very end of of a > comment line. > > Pressing Enter in the middle of a comment almost certainly means you > want all text to the right to become a comment on the next line (which > works brilliantly). Pressing Enter at the end of a comment most of the > time probably means you're about to enter some code. If you were going > to enter another line of comments, hitting Tab and ' is pretty easy. > Hitting Enter at the beginning of a comment line probably means you're > just trying to move the comment line down. > > This is what happens when you press Enter at the end of a comment line: > > ' Comment line 1. > ' > > And this if pressed at the beginning: > > ' ' Comment line 1. Fixed in revision #4009. Regards, -- Beno?t Minisini From gambas at ...1... Thu Aug 11 17:32:19 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 11 Aug 2011 17:32:19 +0200 Subject: [Gambas-user] Callback In-Reply-To: <4E41B5E2.6050907@...20...> References: <4E41B5E2.6050907@...20...> Message-ID: <201108111732.19482.gambas@...1...> > hi, > > i wonder how one would specify a function callback to a function (i > haven't tried anything because nothing seems to me to work). no way with > a functions name as string and Class[name] because i can't get a pointer > to the actual symbol via this method but only to a .Symbol object. i > also can't call a pointer (as it would be with passing the functions > address) or something because it is not possible to cast a pointer to a > function... or do i miss something here? > > regards, > tobi > There is way to simulate callback functions by using the Object.Call() function, which can call any method in any object by name. But it is slower than a direct call. An intermediate solution is when you can agree on the function name. Then you can use inheritance, i.e. you change the class, but keep the same method name, and make all these class inherit the same parent class. Regards, -- Beno?t Minisini From gambas at ...2524... Thu Aug 11 17:34:51 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 11 Aug 2011 15:34:51 +0000 Subject: [Gambas-user] Issue 78 in gambas: Illegal optimization / May a method's return value type in a derived class be different from the base class? In-Reply-To: <0-6813199134517018827-13851315586951690890-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-13851315586951690890-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-13851315586951690890-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -Version Version-TRUNK Comment #1 on issue 78 by benoit.m... at ...626...: Illegal optimization / May a method's return value type in a derived class be different from the base class? http://code.google.com/p/gambas/issues/detail?id=78 The solution is (3). You must be allowed to override a function by another function that returns a different datatype. Anyway, if you have to do it, I think your class design is broken somewhere! From gambas at ...2524... Thu Aug 11 17:40:03 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 11 Aug 2011 15:40:03 +0000 Subject: [Gambas-user] Issue 78 in gambas: Illegal optimization / May a method's return value type in a derived class be different from the base class? In-Reply-To: <1-6813199134517018827-13851315586951690890-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-13851315586951690890-gambas=googlecode.com@...2524...> <0-6813199134517018827-13851315586951690890-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-13851315586951690890-gambas=googlecode.com@...2524...> Comment #2 on issue 78 by benoit.m... at ...626...: Illegal optimization / May a method's return value type in a derived class be different from the base class? http://code.google.com/p/gambas/issues/detail?id=78 And I'm afraid that all the method signature must be checked, not just the return datatype. From gambas at ...2524... Thu Aug 11 19:27:39 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 11 Aug 2011 17:27:39 +0000 Subject: [Gambas-user] Issue 78 in gambas: Illegal optimization / May a method's return value type in a derived class be different from the base class? In-Reply-To: <2-6813199134517018827-13851315586951690890-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-13851315586951690890-gambas=googlecode.com@...2524...> <0-6813199134517018827-13851315586951690890-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-13851315586951690890-gambas=googlecode.com@...2524...> Comment #3 on issue 78 by emil.len... at ...626...: Illegal optimization / May a method's return value type in a derived class be different from the base class? http://code.google.com/p/gambas/issues/detail?id=78 What is that supposed to mean? It is allowed to override a function by another function that returns a different datatype, but it is not allowed to call such a function of the base class, because that can return different datatypes? From jussi.lahtinen at ...626... Thu Aug 11 22:03:21 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 11 Aug 2011 23:03:21 +0300 Subject: [Gambas-user] Callback In-Reply-To: <201108111732.19482.gambas@...1...> References: <4E41B5E2.6050907@...20...> <201108111732.19482.gambas@...1...> Message-ID: Or, see code: To class named "Twotimes": Static Public Function _call(x As Integer) As Integer Return x * 2 End Then somewhere else: ''This is the function that accepts callbacks. Public Function testing(x As Integer, ofunc As Object) As Integer Return ofunc(x) End ''Here is how to call it. Dim ChosenFunction As Object ChosenFunction = New Twotimes ''Here you can set the callback function. Print testing(2, ChosenFunction) Jussi 2011/8/11 Beno?t Minisini > > hi, > > > > i wonder how one would specify a function callback to a function (i > > haven't tried anything because nothing seems to me to work). no way with > > a functions name as string and Class[name] because i can't get a pointer > > to the actual symbol via this method but only to a .Symbol object. i > > also can't call a pointer (as it would be with passing the functions > > address) or something because it is not possible to cast a pointer to a > > function... or do i miss something here? > > > > regards, > > tobi > > > > There is way to simulate callback functions by using the Object.Call() > function, which can call any method in any object by name. But it is slower > than a direct call. > > An intermediate solution is when you can agree on the function name. Then > you > can use inheritance, i.e. you change the class, but keep the same method > name, > and make all these class inherit the same parent class. > > Regards, > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Get a FREE DOWNLOAD! and learn more about uberSVN rich system, > user administration capabilities and model configuration. Take > the hassle out of deploying and managing Subversion and the > tools developers use with it. > http://p.sf.net/sfu/wandisco-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From tobiasboe1 at ...20... Thu Aug 11 22:41:05 2011 From: tobiasboe1 at ...20... (tobias) Date: Thu, 11 Aug 2011 22:41:05 +0200 Subject: [Gambas-user] Callback In-Reply-To: References: <4E41B5E2.6050907@...20...> <201108111732.19482.gambas@...1...> Message-ID: <4E443E61.2010108@...20...> hi, > Or, see code: > > To class named "Twotimes": > > Static Public Function _call(x As Integer) As Integer > Return x * 2 > End > > > Then somewhere else: > > ''This is the function that accepts callbacks. > Public Function testing(x As Integer, ofunc As Object) As Integer > Return ofunc(x) > End > > > ''Here is how to call it. > Dim ChosenFunction As Object > > ChosenFunction = New Twotimes ''Here you can set the callback function. > Print testing(2, ChosenFunction) > > > Jussi this is a very pretty workaround. i'll use that! thanks From tommyline at ...2340... Fri Aug 12 09:02:38 2011 From: tommyline at ...2340... (tommyline at ...2340...) Date: Fri, 12 Aug 2011 08:02:38 +0100 (IST) Subject: [Gambas-user] Callback In-Reply-To: <4E443E61.2010108@...20...> Message-ID: <995787.626.1313132558794.JavaMail.root@...2632...> I was experimenting with the code and simply this works : Public sub main() calll(twotimes(3)) end Public Sub twotimes(a As Integer) As Integer Print a a *= 2 Print a Return a End Public Sub calll(cb As Pointer) Print "should be printed twice" End output: 3 6 should be printed twice External function using callback works fine too: in freeglut_std.h: glutDisplayFunc( void (* callback)( void ) ); in Gambas: Public Extern glutDisplayFunc(callback As Pointer) call simply: glutDisplayFunc(screen_draw) when public sub screen_draw() ... end Tomek. ----- Original Message ----- From: "tobias" To: "mailing list for gambas users" Sent: Thursday, 11 August, 2011 9:41:05 PM Subject: Re: [Gambas-user] Callback hi, > Or, see code: > > To class named "Twotimes": > > Static Public Function _call(x As Integer) As Integer > Return x * 2 > End > > > Then somewhere else: > > ''This is the function that accepts callbacks. > Public Function testing(x As Integer, ofunc As Object) As Integer > Return ofunc(x) > End > > > ''Here is how to call it. > Dim ChosenFunction As Object > > ChosenFunction = New Twotimes ''Here you can set the callback function. > Print testing(2, ChosenFunction) > > > Jussi this is a very pretty workaround. i'll use that! thanks ------------------------------------------------------------------------------ Get a FREE DOWNLOAD! and learn more about uberSVN rich system, user administration capabilities and model configuration. Take the hassle out of deploying and managing Subversion and the tools developers use with it. http://p.sf.net/sfu/wandisco-dev2dev _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From jussi.lahtinen at ...626... Fri Aug 12 16:03:46 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Fri, 12 Aug 2011 17:03:46 +0300 Subject: [Gambas-user] Callback In-Reply-To: <995787.626.1313132558794.JavaMail.root@...2632...> References: <4E443E61.2010108@...20...> <995787.626.1313132558794.JavaMail.root@...2632...> Message-ID: > I was experimenting with the code and simply this works : > > Public sub main() > calll(twotimes(3)) > end > > Public Sub twotimes(a As Integer) As Integer > Print a > a *= 2 > Print a > Return a > End > > Public Sub calll(cb As Pointer) > > Print "should be printed twice" > > End > Hmmm... no it doesn't, I think you have lost your train of thought while experimenting. There is no function that takes other function as argument, so there is no callback. Only sub that takes function as argument for invalid pointer. Jussi From imageek247 at ...626... Sat Aug 13 06:44:01 2011 From: imageek247 at ...626... (Christian DaGeek247 Stephens) Date: Fri, 12 Aug 2011 22:44:01 -0600 Subject: [Gambas-user] One-Click Install with shell script Message-ID: *Would it be possible to make a single install script that installs the gambas runtime files and my app on the users pc, without the IDE, only whats needed to run the program since I cant compile binaries?* * * *I would like to make it much easier for linux users to get my app,and run it without worrying about installing all of gambas2 on their system. I think itspossible to only get the important parts of gambas2, but im not sure how. * * * *any help?* * * * * -- *Live Chat room!* *http://dglivechat.tk My Website: dageek247.tk* *Calvin: *BU-URP! *Mom:* Good heavens, Calvin! What do we say after that? *Calvin:* "Must be a barge coming through!" *Mom:* WHAT Do you say?! *Calvin: *That sure tasted better going down than coming up! *Mom: *Three strikes and you're history kiddo. *Calvin: *excuse me. From ea7dfh at ...2382... Sat Aug 13 09:19:18 2011 From: ea7dfh at ...2382... (EA7DFH) Date: Sat, 13 Aug 2011 09:19:18 +0200 Subject: [Gambas-user] One-Click Install with shell script In-Reply-To: References: Message-ID: <4E462576.7080702@...2382...> El 13/08/11 06:44, Christian DaGeek247 Stephens escribi?: > *Would it be possible to make a single install script that installs the > gambas runtime files and my app on the users pc, without the IDE, only whats > needed to run the program since I cant compile binaries?* > * > * > *I would like to make it much easier for linux users to get my app,and run > it without worrying about installing all of gambas2 on their system. I think > itspossible to only get the important parts of gambas2, but im not sure how. > * > * > * > *any help?* > * > * > * > * You don't need at all to install the whole gambas You should install and deploy your app by using the system packages. Gambas provides an easy way to do this, and it is the recommended way: Go to "Project" men?, then "Create" and choose "Installation Package". You now have to complete some fields for each distribution you want to deploy to, and you are done. The user's system will resolve all the dependencies automatically. Also, would help if you provide some more details about your distribution and Gambas version. Regards -- Jesus, EA7DFH From munix9 at ...1601... Sun Aug 14 12:31:00 2011 From: munix9 at ...1601... (=?UTF-8?B?UGFvbG8gUGFudMOy?=) Date: Sun, 14 Aug 2011 12:31:00 +0200 Subject: [Gambas-user] Release of Gambas 3 RC2 In-Reply-To: <201108110344.34636.gambas@...1...> References: <201108110344.34636.gambas@...1...> Message-ID: <4E47A3E4.306@...1601...> Am 11.08.2011 03:44, schrieb Beno?t Minisini: > Hi, > > Just a little message to tell everyone that I have release Gambas 3 RC2. > > Everything about it is on the Release Notes inside the wiki, with a link on > the web site. > > Please go there to read it: that way, I don't have to copy the information on > the mailing-list, and I don't like doing twice the same thing. :-) > > And please tell me about the packaging on your prefered distribution so that I > can centralize the information and fix the problems! > > Best regards, > hi, compiles fine on openSUSE 11.4, openSUSE Factory (will be the next release 12.1) and openSUSE Tumbleweed (rolling updates). to compile gambas3 for openSUSE 11.4, a patched libqt4 is necessary, which provides libjscore (libQtWebKit-devel). see https://build.opensuse.org/package/binaries?package=libqt4&project=home%3Amunix9%3Abranches%3AopenSUSE%3A11.4%3AUpdate&repository=standard patch to solve this problem is on the way to the upstream repo. I hope this will be accepted soon. the patch (part of KDE:Qt) is already included in Factory and Tumbleweed. https://build.opensuse.org/package/show?package=gambas3&project=home%3Amunix9 ciao paolo From jussi.lahtinen at ...626... Sun Aug 14 15:23:40 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 14 Aug 2011 16:23:40 +0300 Subject: [Gambas-user] Annyoing bug with search feature Message-ID: Gambas 3 rev 4009 @ Ubuntu 11.04 64bit Way to reproduce: 1. Open search window. 2. Pick word to search that can be found from multiple files, example; Dim, Function, etc. 3. Set search in source files and click browse. 4. Chose first instance. 5. Edit the word that was searched for. ---> Sudden jump to next instance, leaving editing in middle way. Jussi From gambas at ...2524... Mon Aug 15 13:30:28 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 15 Aug 2011 11:30:28 +0000 Subject: [Gambas-user] Issue 79 in gambas: Deleting a Menu Item delete all successive items Message-ID: <0-6813199134517018827-1067137107179961141-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 79 by sot... at ...626...: Deleting a Menu Item delete all successive items http://code.google.com/p/gambas/issues/detail?id=79 1) Describe the problem. In Menu Editor if you delete an item, no matter the Item level, all the following items are deleted too. 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: TRUNK Revision: r4009 Operating system: Linux Distribution: Ubuntu Architecture: x86_64 GUI component: QT4 / GTK+ Desktop used: Gnome 3) Provide a little project that reproduces the bug or the crash. In the attached project try to delete Menu3 Item 4) If your project needs a database, try to provide it, or part of it. 5) Explain clearly how to reproduce the bug or the crash. 6) By doing that carefully, you have done 50% of the bug fix job! 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! Attachments: menu.gz 5.1 KB From wally at ...2037... Mon Aug 15 14:03:02 2011 From: wally at ...2037... (wally) Date: Mon, 15 Aug 2011 14:03:02 +0200 Subject: [Gambas-user] write to file question Message-ID: <201108151403.02468.wally@...2037...> Hi, i try to write data to a new file in the following way: Public hFile As File 'because i need to write in a serial_read_event hFile = Open Application.Path &/ "prot.log" For Write Create Write #hFile, Hex$(iByte, 2) hFile.Close Problem is that the filesize is growing during run and the containing data is as wanted. If i break the execution all is OK. When i use hFile.Close the file remain but is empty. What i need to do ? thank you wally From cmunoz at ...2634... Tue Aug 16 01:16:49 2011 From: cmunoz at ...2634... (=?iso-8859-1?Q?C=E9sar_Augusto_Mu=F1oz_Palominos?=) Date: Mon, 15 Aug 2011 18:16:49 -0500 Subject: [Gambas-user] Help me ....... with Gambas2 and SQlite3 Message-ID: Hello: How I can insert a CSV (comma-separated values) file into Sqlite3 database in Gambas2 program? Thanks Correo explorado por Tixtla McAfee Groupshield 7.0 From oceanosoftlapalma at ...626... Tue Aug 16 09:42:23 2011 From: oceanosoftlapalma at ...626... (=?ISO-8859-1?Q?Ricardo_D=EDaz_Mart=EDn?=) Date: Tue, 16 Aug 2011 08:42:23 +0100 Subject: [Gambas-user] Help me ....... with Gambas2 and SQlite3 In-Reply-To: References: Message-ID: It's very easy: - Open file - Read data and transform into SQL inserts - Execute SQL inserts All of these steps are properly documented in gambas help. Regards, Ricardo D?az 2011/8/16 C?sar Augusto Mu?oz Palominos > Hello: > > How I can insert a CSV (comma-separated values) file into Sqlite3 > database in Gambas2 program? > > Thanks > > > > > > Correo explorado por Tixtla McAfee Groupshield 7.0 > > > ------------------------------------------------------------------------------ > uberSVN's rich system and user administration capabilities and model > configuration take the hassle out of deploying and managing Subversion and > the tools developers use with it. Learn more about uberSVN and get a free > download at: http://p.sf.net/sfu/wandisco-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From charles at ...1784... Tue Aug 16 09:42:26 2011 From: charles at ...1784... (charlesg) Date: Tue, 16 Aug 2011 00:42:26 -0700 (PDT) Subject: [Gambas-user] Help me ....... with Gambas2 and SQlite3 In-Reply-To: References: Message-ID: <32269833.post@...1379...> "Mu?oz Palominos, C?sar Augusto" wrote: > > How I can insert a CSV (comma-separated values) file into Sqlite3 > database in Gambas2 program? > Here is an example. It won't be directly applicable to you but will give pointers. In constructing the CSV, I used "^" as a separator. If you inherit a CSV file with a more traditional "," separator, then you must be mindful that text entries enclosed within parentheses in your CSV may contain odd characters even commas. If you don't get rid of these with a replace statement than it will play havoc with your sqlite database. Also sqlite does not have a defined data format. I choose to use yyyy-mm-dd so most CSV dates need converting. PUBLIC SUB btnGrnLine_Click() DIM spl AS String[] DIM j AS Integer DIM sql AS String DIM dte AS String DIM grnno AS Integer DIM rslt AS String DIM ext AS Float sql = "delete from grnLine" conn.Exec(sql) hFileIn = OPEN "/home/charles/Dropbox/sqlite3/grnLine.csv" WHILE NOT Eof(hFileIn) LINE INPUT #hFileIn, sLine sLine = Replace(sLine, "'", " ") sline = Replace(sLine, ",", " ") sline = Replace(sLine, "|", " ") spl = Split(sline, "^") sql = "insert into grnLine values ('" j = 0 FOR EACH spl SELECT CASE j CASE 0 'capture grn no grnno = Val(spl[j]) CASE 1 'add grn no to line no rslt = Str(grnno * 1000 + spl[j]) CASE 4 rslt = Format(spl[j], "###0.00") CASE 16 dte = spl[j] IF dte <> "" THEN dte = "20" & Mid(dte, 7, 2) & "-" & Mid(dte, 4, 2) & "-" & Left(dte, 2) ELSE dte = "" ENDIF rslt = dte CASE ELSE rslt = spl[j] END SELECT IF j > 0 THEN sql = sql & rslt & "','" ENDIF j = j + 1 NEXT sql = Left(sql, Len(sql) - 2) & ")" conn.Exec(sql) WEND END -- View this message in context: http://old.nabble.com/Help-me-.......-with-Gambas2-and-SQlite3-tp32268253p32269833.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas.fr at ...626... Tue Aug 16 10:59:40 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 16 Aug 2011 10:59:40 +0200 Subject: [Gambas-user] Help me ....... with Gambas2 and SQlite3 In-Reply-To: <32269833.post@...1379...> References: <32269833.post@...1379...> Message-ID: 2011/8/16 charlesg : > > > "Mu?oz Palominos, C?sar Augusto" wrote: >> >> ? ? ? How I can insert a CSV (comma-separated values) file into Sqlite3 >> database in Gambas2 program? >> > > Here is an example. It won't be directly applicable to you but will give > pointers. In constructing the CSV, I used "^" as a separator. If you inherit > a CSV file with a more traditional "," separator, then you must be mindful > that text entries enclosed within parentheses in your CSV may contain odd > characters even commas. split(stext,",","\"'") ??? If you don't get rid of these with a replace > statement than it will play havoc with your sqlite database. > > Also sqlite does not have a defined data format. I choose to use yyyy-mm-dd > so most CSV dates need converting. and if you need do that just one time there is an import tool in gb3 and ... i don't remember for gb2 just configure the db flieds type before ... in other case all will be text > > > PUBLIC SUB btnGrnLine_Click() > > ?DIM spl AS String[] > ?DIM j AS Integer > ?DIM sql AS String > ?DIM dte AS String > ?DIM grnno AS Integer > ?DIM rslt AS String > ?DIM ext AS Float > > ?sql = "delete from grnLine" > ?conn.Exec(sql) > > ?hFileIn = OPEN "/home/charles/Dropbox/sqlite3/grnLine.csv" > ?WHILE NOT Eof(hFileIn) > ? ?LINE INPUT #hFileIn, sLine > ? ?sLine = Replace(sLine, "'", " ") > ? ?sline = Replace(sLine, ",", " ") > ? ?sline = Replace(sLine, "|", " ") > > ? ?spl = Split(sline, "^") > ? ?sql = "insert into grnLine values ('" > ? ?j = 0 > ? ?FOR EACH spl > ? ? ?SELECT CASE j > ? ? ? ?CASE 0 'capture grn no > ? ? ? ? ?grnno = Val(spl[j]) > ? ? ? ?CASE 1 'add grn no to line no > ? ? ? ? ?rslt = Str(grnno * 1000 + spl[j]) > ? ? ? ?CASE 4 > ? ? ? ? ?rslt = Format(spl[j], "###0.00") > ? ? ? ?CASE 16 > ? ? ? ? ?dte = spl[j] > ? ? ? ? ?IF dte <> "" THEN > ? ? ? ? ? ?dte = "20" & Mid(dte, 7, 2) & "-" & Mid(dte, 4, 2) & "-" & > Left(dte, 2) > ? ? ? ? ?ELSE > ? ? ? ? ? ?dte = "" > ? ? ? ? ?ENDIF > ? ? ? ? ?rslt = dte > ? ? ? ?CASE ELSE > ? ? ? ? ?rslt = spl[j] > ? ? ?END SELECT > ? ? ?IF j > 0 THEN > ? ? ? ?sql = sql & rslt & "','" > ? ? ?ENDIF > ? ? ?j = j + 1 > ? ?NEXT > ? ?sql = Left(sql, Len(sql) - 2) & ")" > ? ?conn.Exec(sql) > ?WEND > END > > > -- > View this message in context: http://old.nabble.com/Help-me-.......-with-Gambas2-and-SQlite3-tp32268253p32269833.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > uberSVN's rich system and user administration capabilities and model > configuration take the hassle out of deploying and managing Subversion and > the tools developers use with it. Learn more about uberSVN and get a free > download at: ?http://p.sf.net/sfu/wandisco-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From dag.jarle.johansen at ...626... Tue Aug 16 16:45:00 2011 From: dag.jarle.johansen at ...626... (Dag-Jarle Johansen) Date: Tue, 16 Aug 2011 11:45:00 -0300 Subject: [Gambas-user] HSPlit problem Message-ID: Hi out there! Latalely I have tried to use the design-objects of G3/4009, most work as aspected. But I would like to know: How can I set the position of the split in the HSplit-object? I saw there is .Setting and .Layout available, but without any references I just stay on the cable. Thanks in advance, regards Dag-Jarle Johansen From charles at ...1784... Tue Aug 16 17:12:26 2011 From: charles at ...1784... (charlesg) Date: Tue, 16 Aug 2011 08:12:26 -0700 (PDT) Subject: [Gambas-user] HSPlit problem In-Reply-To: References: Message-ID: <32272651.post@...1379...> Hi Dag-Jarle Johansen wrote: > > How can I set the position of the split > hsplit1.Layout = [100, 200] -- View this message in context: http://old.nabble.com/HSPlit-problem-tp32272420p32272651.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas.fr at ...626... Tue Aug 16 17:23:03 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 16 Aug 2011 17:23:03 +0200 Subject: [Gambas-user] HSPlit problem In-Reply-To: References: Message-ID: 2011/8/16 Dag-Jarle Johansen : > Hi out there! > > Latalely I have tried to use the design-objects of G3/4009, most work as > aspected. But I would like to know: How can I set the position of the split > in the HSplit-object? I saw there is .Setting and .Layout available, but > without any references I just stay on the cable. hsplit.layout work with relative size so for 25%, 75% hsplit.layout=[1,3] or =[10,30] or in real size :) =[150,450] all are the same for three objects =[1,2,1] > Thanks in advance, regards > Dag-Jarle Johansen > ------------------------------------------------------------------------------ > uberSVN's rich system and user administration capabilities and model > configuration take the hassle out of deploying and managing Subversion and > the tools developers use with it. Learn more about uberSVN and get a free > download at: ?http://p.sf.net/sfu/wandisco-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From linuxos at ...1896... Tue Aug 16 18:18:47 2011 From: linuxos at ...1896... (Olivier Cruilles) Date: Tue, 16 Aug 2011 18:18:47 +0200 Subject: [Gambas-user] WebView Object and proxy parameter Message-ID: <4F0667BE-36CE-4C4D-82EA-26A18970F93F@...1896...> Hello all, Does anyone know how to use or config the proxy parameter (Ex: http://192.168.0.1:8080) using a WebView object please ? I try to configure the HTTP_PROXY variable in the user profile, try to configure in the KDE control panel parameters of proxy but nothing change. Fedora 14 + Gnome Gambas3 (last svn release) qt graphic interface thanks Olivier Cruilles Mail: linuxos at ...1896... From jussi.lahtinen at ...626... Tue Aug 16 18:31:19 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Tue, 16 Aug 2011 19:31:19 +0300 Subject: [Gambas-user] write to file question In-Reply-To: <201108151403.02468.wally@...2037...> References: <201108151403.02468.wally@...2037...> Message-ID: What is your Gambas version and operating system? Can you send demonstration project? Code in your mail seems to be OK, so I think the problem is somewhere else. Jussi On Mon, Aug 15, 2011 at 15:03, wally wrote: > Hi, > > i try to write data to a new file in the following way: > > Public hFile As File 'because i need to write in a > serial_read_event > > hFile = Open Application.Path &/ "prot.log" For Write Create > > Write #hFile, Hex$(iByte, 2) > > hFile.Close > > Problem is that the filesize is growing during run and the containing data > is > as wanted. If i break the execution all is OK. > When i use hFile.Close the file remain but is empty. > > What i need to do ? > thank you > wally > > > ------------------------------------------------------------------------------ > uberSVN's rich system and user administration capabilities and model > configuration take the hassle out of deploying and managing Subversion and > the tools developers use with it. Learn more about uberSVN and get a free > download at: http://p.sf.net/sfu/wandisco-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Tue Aug 16 18:31:55 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Tue, 16 Aug 2011 19:31:55 +0300 Subject: [Gambas-user] write to file question In-Reply-To: References: <201108151403.02468.wally@...2037...> Message-ID: Maybe you need to flush some stream before closing? Jussi On Tue, Aug 16, 2011 at 19:31, Jussi Lahtinen wrote: > What is your Gambas version and operating system? > Can you send demonstration project? > Code in your mail seems to be OK, so I think the problem is somewhere else. > > Jussi > > > > > On Mon, Aug 15, 2011 at 15:03, wally wrote: > >> Hi, >> >> i try to write data to a new file in the following way: >> >> Public hFile As File 'because i need to write in a >> serial_read_event >> >> hFile = Open Application.Path &/ "prot.log" For Write Create >> >> Write #hFile, Hex$(iByte, 2) >> >> hFile.Close >> >> Problem is that the filesize is growing during run and the containing data >> is >> as wanted. If i break the execution all is OK. >> When i use hFile.Close the file remain but is empty. >> >> What i need to do ? >> thank you >> wally >> >> >> ------------------------------------------------------------------------------ >> uberSVN's rich system and user administration capabilities and model >> configuration take the hassle out of deploying and managing Subversion and >> the tools developers use with it. Learn more about uberSVN and get a free >> download at: http://p.sf.net/sfu/wandisco-dev2dev >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > From wally at ...2037... Tue Aug 16 18:54:39 2011 From: wally at ...2037... (wally) Date: Tue, 16 Aug 2011 18:54:39 +0200 Subject: [Gambas-user] mailinglist digest question Message-ID: <201108161854.39554.wally@...2037...> How can i reply to single topic in a mailinglist digest ? thx wally From jussi.lahtinen at ...626... Tue Aug 16 19:10:34 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Tue, 16 Aug 2011 20:10:34 +0300 Subject: [Gambas-user] mailinglist digest question In-Reply-To: <201108161854.39554.wally@...2037...> References: <201108161854.39554.wally@...2037...> Message-ID: Try to keep original subject line, and delete all unnecessary text from reply. I find using digests not so convenient... I highly recommend to use gmail and to do separated folders for mailing lists. Jussi On Tue, Aug 16, 2011 at 19:54, wally wrote: > > How can i reply to single topic in a mailinglist digest ? > > thx wally > > > ------------------------------------------------------------------------------ > uberSVN's rich system and user administration capabilities and model > configuration take the hassle out of deploying and managing Subversion and > the tools developers use with it. Learn more about uberSVN and get a free > download at: http://p.sf.net/sfu/wandisco-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From Karl.Reinl at ...2345... Tue Aug 16 21:19:20 2011 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Tue, 16 Aug 2011 21:19:20 +0200 Subject: [Gambas-user] HSPlit problem In-Reply-To: References: Message-ID: <1313522360.6479.3.camel@...40...> Am Dienstag, den 16.08.2011, 11:45 -0300 schrieb Dag-Jarle Johansen: > I just stay on the cable. Salut Dag, nice expression, as native german I can imagine what you want to express, but please let them know what it is "auf der Leitung stehen" Thanks -- Amicalement Charlie From gambas at ...2524... Tue Aug 16 21:57:20 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 16 Aug 2011 19:57:20 +0000 Subject: [Gambas-user] Issue 43 in gambas: Drawing on transparent background doesn't work in gb3 In-Reply-To: <5-6813199134517018827-17412865898876339406-gambas=googlecode.com@...2524...> References: <5-6813199134517018827-17412865898876339406-gambas=googlecode.com@...2524...> <0-6813199134517018827-17412865898876339406-gambas=googlecode.com@...2524...> Message-ID: <6-6813199134517018827-17412865898876339406-gambas=googlecode.com@...2524...> Comment #6 on issue 43 by math.e... at ...221...: Drawing on transparent background doesn't work in gb3 http://code.google.com/p/gambas/issues/detail?id=43 Forgot about this. Works fine now with gb3 v4010. Give it Status: Fixed. From gambas at ...2524... Tue Aug 16 22:20:09 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 16 Aug 2011 20:20:09 +0000 Subject: [Gambas-user] Issue 43 in gambas: Drawing on transparent background doesn't work in gb3 In-Reply-To: <6-6813199134517018827-17412865898876339406-gambas=googlecode.com@...2524...> References: <6-6813199134517018827-17412865898876339406-gambas=googlecode.com@...2524...> <0-6813199134517018827-17412865898876339406-gambas=googlecode.com@...2524...> Message-ID: <7-6813199134517018827-17412865898876339406-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #7 on issue 43 by benoit.m... at ...626...: Drawing on transparent background doesn't work in gb3 http://code.google.com/p/gambas/issues/detail?id=43 OK, even if I changed nothing since! From math.eber at ...221... Tue Aug 16 22:26:30 2011 From: math.eber at ...221... (Matti) Date: Tue, 16 Aug 2011 22:26:30 +0200 Subject: [Gambas-user] gb3 example MusicPlayer: app hangs Message-ID: <4E4AD276.60106@...221...> If I open any sound file, there is this message in console: "KGlobal::locale::Warning your global KLocale is being recreated with a valid main component instead of a fake component, this usually means you tried to call i18n related functions before your main component was created. You should not do that since it most likely will not work" .wav files will be played anyway. .mp3 files: the app hangs and has to be killed. openSUSE 11.4 gb3 v4010 KDE 4.6.0 Regards Matti From gambas at ...2524... Tue Aug 16 22:34:28 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 16 Aug 2011 20:34:28 +0000 Subject: [Gambas-user] Issue 43 in gambas: Drawing on transparent background doesn't work in gb3 In-Reply-To: <7-6813199134517018827-17412865898876339406-gambas=googlecode.com@...2524...> References: <7-6813199134517018827-17412865898876339406-gambas=googlecode.com@...2524...> <0-6813199134517018827-17412865898876339406-gambas=googlecode.com@...2524...> Message-ID: <8-6813199134517018827-17412865898876339406-gambas=googlecode.com@...2524...> Comment #8 on issue 43 by math.e... at ...221...: Drawing on transparent background doesn't work in gb3 http://code.google.com/p/gambas/issues/detail?id=43 Well, appearently something changed on my system. I'll never know! From math.eber at ...221... Tue Aug 16 22:19:06 2011 From: math.eber at ...221... (Matti) Date: Tue, 16 Aug 2011 22:19:06 +0200 Subject: [Gambas-user] gb3 example CDPlayer: no sound Message-ID: <4E4AD0BA.1030408@...221...> This example recognizes the CD and all of the tracks. Playing seems to run (status bar is changing), but there is no sound. Sound is working fine otherwise. openSUSE 11.4 gb3 v4010 Tell me if you need more info on the sound system (Alsa/Oss) Regards Matti From gambas at ...2524... Wed Aug 17 01:38:40 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 16 Aug 2011 23:38:40 +0000 Subject: [Gambas-user] Issue 79 in gambas: Deleting a Menu Item delete all successive items In-Reply-To: <0-6813199134517018827-1067137107179961141-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-1067137107179961141-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-1067137107179961141-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -Version Version-TRUNK Comment #1 on issue 79 by benoit.m... at ...626...: Deleting a Menu Item delete all successive items http://code.google.com/p/gambas/issues/detail?id=79 (No comment was entered for this change.) From gambas at ...2524... Wed Aug 17 01:42:45 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 16 Aug 2011 23:42:45 +0000 Subject: [Gambas-user] Issue 79 in gambas: Deleting a Menu Item delete all successive items In-Reply-To: <1-6813199134517018827-1067137107179961141-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-1067137107179961141-gambas=googlecode.com@...2524...> <0-6813199134517018827-1067137107179961141-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-1067137107179961141-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #2 on issue 79 by benoit.m... at ...626...: Deleting a Menu Item delete all successive items http://code.google.com/p/gambas/issues/detail?id=79 Fixed in revision #4011. From email at ...2636... Wed Aug 17 03:52:11 2011 From: email at ...2636... (olmec) Date: Tue, 16 Aug 2011 18:52:11 -0700 (PDT) Subject: [Gambas-user] painting / drawing multiple layers Message-ID: <32276476.post@...1379...> I am attempting to draw / paint into a drawingarea with 2 different layers. The background id a picture object and takes up the entire drawing area The layer on top is a polygon drawn by the mouse and is currently as a picture object created with pain controls but this does not display nicely and transparent over the background. This layer is redrawn as the mouse moves / clicks to set new polygon points. What is the best way to structure this for efficiency and no flickering, transparent layer shape over background. I hope the is clear. Olmec -- View this message in context: http://old.nabble.com/painting---drawing-multiple-layers-tp32276476p32276476.html Sent from the gambas-user mailing list archive at Nabble.com. From kevinfishburne at ...1887... Wed Aug 17 06:48:01 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Wed, 17 Aug 2011 00:48:01 -0400 Subject: [Gambas-user] algorithm for scaling 2D coordinates centered on an arbitrary point Message-ID: <4E4B4801.30900@...1887...> I'm sure this is ridiculously simple, but my simple brain can't seem to figure it out. I have a set of screen coordinates, xPos and yPos. I need to adjust their positions based on a zoom level, CameraZoom. The zoom level is relative to the center of the screen (swidth / 2, sheight / 2), and the zoom level range is from 1 to 2. If the zoom is at 1, the x and y coordinates wouldn't change. If the zoom is at 2, they would be half their previous distance from the center of the screen. This simulates the positions of objects changing as the camera zooms in and out. There has to be some simple equation to produce this. I've attached the procedure that needs this just for reference. Any clues appreciated, as always. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: Render.Texture() URL: From kevinfishburne at ...1887... Wed Aug 17 07:15:56 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Wed, 17 Aug 2011 01:15:56 -0400 Subject: [Gambas-user] algorithm for scaling 2D coordinates centered on an arbitrary point In-Reply-To: <4E4B4801.30900@...1887...> References: <4E4B4801.30900@...1887...> Message-ID: <4E4B4E8C.1010503@...1887...> On 08/17/2011 12:48 AM, Kevin Fishburne wrote: > I'm sure this is ridiculously simple, but my simple brain can't seem > to figure it out. > > I have a set of screen coordinates, xPos and yPos. I need to adjust > their positions based on a zoom level, CameraZoom. The zoom level is > relative to the center of the screen (swidth / 2, sheight / 2), and > the zoom level range is from 1 to 2. If the zoom is at 1, the x and y > coordinates wouldn't change. If the zoom is at 2, they would be half > their previous distance from the center of the screen. This simulates > the positions of objects changing as the camera zooms in and out. > > There has to be some simple equation to produce this. I've attached > the procedure that needs this just for reference. Any clues > appreciated, as always. Maybe I'm not quite as dumb as I thought. ;) I got it. I needed to do this: ' Assign initial values to variables CameraZoom = 1 / Zoom.Current ' Modify screen coordinates for zoom level. xPos = (swidth / 2) + ((xPos - (swidth / 2)) / CameraZoom) yPos = (sheight / 2) + ((yPos - (sheight / 2)) / CameraZoom) ' Modify dimensions for zoom level. Width = Width / CameraZoom Height = Height / CameraZoom I could probably just multiply by Zoom.Current instead of dividing by CameraZoom, but whatever. Hopefully someone will find the algorithm useful someday. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From nando_f at ...951... Wed Aug 17 11:30:16 2011 From: nando_f at ...951... (nando) Date: Wed, 17 Aug 2011 05:30:16 -0400 Subject: [Gambas-user] write to file question In-Reply-To: References: <201108151403.02468.wally@...2037...> Message-ID: <20110817092933.M70169@...951...> I agree. The code looks correct. ---------- Original Message ----------- From: Jussi Lahtinen To: mailing list for gambas users Sent: Tue, 16 Aug 2011 19:31:19 +0300 Subject: Re: [Gambas-user] write to file question > What is your Gambas version and operating system? > Can you send demonstration project? > Code in your mail seems to be OK, so I think the problem is somewhere else. > > Jussi > > On Mon, Aug 15, 2011 at 15:03, wally wrote: > > > Hi, > > > > i try to write data to a new file in the following way: > > > > Public hFile As File 'because i need to write in a > > serial_read_event > > > > hFile = Open Application.Path &/ "prot.log" For Write Create > > > > Write #hFile, Hex$(iByte, 2) > > > > hFile.Close > > > > Problem is that the filesize is growing during run and the containing data > > is > > as wanted. If i break the execution all is OK. > > When i use hFile.Close the file remain but is empty. > > > > What i need to do ? > > thank you > > wally > > > > > > ------------------------------------------------------------------------------ > > uberSVN's rich system and user administration capabilities and model > > configuration take the hassle out of deploying and managing Subversion and > > the tools developers use with it. Learn more about uberSVN and get a free > > download at: http://p.sf.net/sfu/wandisco-dev2dev > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------------ > uberSVN's rich system and user administration capabilities and model > configuration take the hassle out of deploying and managing Subversion and > the tools developers use with it. Learn more about uberSVN and get a free > download at: http://p.sf.net/sfu/wandisco-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From dag.jarle.johansen at ...626... Wed Aug 17 14:44:08 2011 From: dag.jarle.johansen at ...626... (Dag-Jarle Johansen) Date: Wed, 17 Aug 2011 09:44:08 -0300 Subject: [Gambas-user] HSPlit problem In-Reply-To: <32272651.post@...1379...> References: <32272651.post@...1379...> Message-ID: so easy :-) thanks a lot 2011/8/16 charlesg > > Hi > > > Dag-Jarle Johansen wrote: > > > > How can I set the position of the split > > > > hsplit1.Layout = [100, 200] > > -- > View this message in context: > http://old.nabble.com/HSPlit-problem-tp32272420p32272651.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > > ------------------------------------------------------------------------------ > uberSVN's rich system and user administration capabilities and model > configuration take the hassle out of deploying and managing Subversion and > the tools developers use with it. Learn more about uberSVN and get a free > download at: http://p.sf.net/sfu/wandisco-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From dag.jarle.johansen at ...626... Wed Aug 17 14:49:09 2011 From: dag.jarle.johansen at ...626... (Dag-Jarle Johansen) Date: Wed, 17 Aug 2011 09:49:09 -0300 Subject: [Gambas-user] HSPlit problem In-Reply-To: References: Message-ID: lol, it was a direct translation, yes, but one uses that exactly the same way in Germany and Norway, where I come from, so I thought by myself, in the anglo-german language area it would be known. My fault. And thank you. 2011/8/16 Fabien Bodard > 2011/8/16 Dag-Jarle Johansen : > > Hi out there! > > > > Latalely I have tried to use the design-objects of G3/4009, most work as > > aspected. But I would like to know: How can I set the position of the > split > > in the HSplit-object? I saw there is .Setting and .Layout available, but > > without any references I just stay on the cable. > > hsplit.layout work with relative size > > so > for 25%, 75% > > hsplit.layout=[1,3] > > or =[10,30] > > or in real size :) =[150,450] > > all are the same > > for three objects =[1,2,1] > > > > Thanks in advance, regards > > Dag-Jarle Johansen > > > ------------------------------------------------------------------------------ > > uberSVN's rich system and user administration capabilities and model > > configuration take the hassle out of deploying and managing Subversion > and > > the tools developers use with it. Learn more about uberSVN and get a free > > download at: http://p.sf.net/sfu/wandisco-dev2dev > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > -- > Fabien Bodard > > > ------------------------------------------------------------------------------ > uberSVN's rich system and user administration capabilities and model > configuration take the hassle out of deploying and managing Subversion and > the tools developers use with it. Learn more about uberSVN and get a free > download at: http://p.sf.net/sfu/wandisco-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From ea7dfh at ...2382... Wed Aug 17 15:43:38 2011 From: ea7dfh at ...2382... (Jesus) Date: Wed, 17 Aug 2011 15:43:38 +0200 Subject: [Gambas-user] write to file question In-Reply-To: <201108151403.02468.wally@...2037...> References: <201108151403.02468.wally@...2037...> Message-ID: <4E4BC58A.7030803@...2382...> El 15/08/11 14:03, wally escribi?: > Hi, > > i try to write data to a new file in the following way: > > Public hFile As File 'because i need to write in a serial_read_event > > hFile = Open Application.Path &/ "prot.log" For Write Create > > Write #hFile, Hex$(iByte, 2) > > hFile.Close > > Problem is that the filesize is growing during run and the containing data is > as wanted. If i break the execution all is OK. > When i use hFile.Close the file remain but is empty. > > What i need to do ? > thank you > wally It sounds like you are executing that code into a loop, may be a for..next or While..wend; That's not so important. The fact is that "Write create" is creating a new file each time the loop executes, erasing the content of your recent created file. If in the last step of your loop you're not writing something, the file appears as empty. You could try appending content to the file instead, using the "append" keyword at the end of your statement: > hFile = Open Application.Path &/ "prot.log" For Write Append Hope that helps, regards. -- Jesus Guardon From jussi.lahtinen at ...626... Wed Aug 17 17:24:13 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 17 Aug 2011 18:24:13 +0300 Subject: [Gambas-user] write to file question In-Reply-To: <4E4BC58A.7030803@...2382...> References: <201108151403.02468.wally@...2037...> <4E4BC58A.7030803@...2382...> Message-ID: Or, put "Open" outside of the loop. Jussi On Wed, Aug 17, 2011 at 16:43, Jesus wrote: > El 15/08/11 14:03, wally escribi?: > > Hi, > > > > i try to write data to a new file in the following way: > > > > Public hFile As File 'because i need to write in a > serial_read_event > > > > hFile = Open Application.Path &/ "prot.log" For Write Create > > > > Write #hFile, Hex$(iByte, 2) > > > > hFile.Close > > > > Problem is that the filesize is growing during run and the containing > data is > > as wanted. If i break the execution all is OK. > > When i use hFile.Close the file remain but is empty. > > > > What i need to do ? > > thank you > > wally > > It sounds like you are executing that code into a loop, may be a > for..next or While..wend; That's not so important. The fact is that > "Write create" is creating a new file each time the loop executes, > erasing the content of your recent created file. > > If in the last step of your loop you're not writing something, the file > appears as empty. You could try appending content to the file instead, > using the "append" keyword at the end of your statement: > > > hFile = Open Application.Path &/ "prot.log" For Write Append > > > Hope that helps, regards. > > -- > Jesus Guardon > > > ------------------------------------------------------------------------------ > Get a FREE DOWNLOAD! and learn more about uberSVN rich system, > user administration capabilities and model configuration. Take > the hassle out of deploying and managing Subversion and the > tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From privatemail at ...2637... Wed Aug 17 18:30:39 2011 From: privatemail at ...2637... (rrivett) Date: Wed, 17 Aug 2011 12:30:39 -0400 Subject: [Gambas-user] Gambas3 Debian Package Message-ID: <1313598639.32496.6.camel@...2638...> Hi, I'm a new Gambas user. Does anyone know if or when Gambas3 will show up in a Debian package, or if the Debian maintainer is likely to package one of the release candidates for the Debian Experimental repository prior to the full release of Gambas3? For that matter, is there a timeline for releasing Gambas3? I've searched but have been unable to find anything. Thanks, Roger From math.eber at ...221... Wed Aug 17 21:11:32 2011 From: math.eber at ...221... (Matti) Date: Wed, 17 Aug 2011 21:11:32 +0200 Subject: [Gambas-user] gb3 example MusicPlayer: app hangs In-Reply-To: <4E4AD276.60106@...221...> References: <4E4AD276.60106@...221...> Message-ID: <4E4C1264.1010207@...221...> This has nothing to do with Gambas, sorry for the post. Seems to be a KDE bug in 4.6.0 and affects many apps. Anyone with KDE will have to wait for an update, I'm afraid. Am 16.08.2011 22:26, schrieb Matti: > If I open any sound file, there is this message in console: > > "KGlobal::locale::Warning your global KLocale is being recreated > with a valid main component instead of a fake component, this usually means > you tried to call i18n related functions before your main component was > created. You should not do that since it most likely will not work" > > .wav files will be played anyway. > .mp3 files: the app hangs and has to be killed. > > openSUSE 11.4 > gb3 v4010 > KDE 4.6.0 > > Regards > Matti From ihaywood at ...1979... Thu Aug 18 05:14:13 2011 From: ihaywood at ...1979... (Ian Haywood) Date: Wed, 17 Aug 2011 20:14:13 -0700 Subject: [Gambas-user] Gambas3 Debian Package In-Reply-To: <1313598639.32496.6.camel@...2638...> References: <1313598639.32496.6.camel@...2638...> Message-ID: On Wed, Aug 17, 2011 at 9:30 AM, rrivett wrote: > Hi, > > I'm a new Gambas user. Does anyone know if or when Gambas3 will show up > in a Debian package, or if the Debian maintainer is likely to package > one of the release candidates for the Debian Experimental repository > prior to the full release of Gambas3? I have prepared debian packages and put them up for inclusion, currently waiting on a decision by the debian developers to include (well over 2 months, so I will follow up) Ian From privatemail at ...2637... Thu Aug 18 14:13:44 2011 From: privatemail at ...2637... (rrivett) Date: Thu, 18 Aug 2011 08:13:44 -0400 Subject: [Gambas-user] Gambas3 Debian Package In-Reply-To: References: <1313598639.32496.6.camel@...2638...> Message-ID: <1313669624.9392.11.camel@...2638...> On Wed, 2011-08-17 at 20:14 -0700, Ian Haywood wrote: > I have prepared debian packages and put them up for inclusion, > currently waiting on a decision by the debian developers to include > (well over 2 months, so I will follow up) > > Ian Thanks. In the meantime, I installed Gambas3 from your Natty PPA debs. Interestingly, Synaptic showed circular QT3/QT4 dependencies which could not be resolved, but apt-get install didn't list any dependency problems. Dpkg reported one error, which scrolled off the screen before I could read it. When I tried running Gambas3, I got the infamous " no project file in '/usr/bin/gambas3' " error message. I searched the mailing lists and don't see any real explanation for the message. I may try reinstalling later today with the installer messages dumped to a file. Might be a clue there. Roger From privatemail at ...2637... Thu Aug 18 15:07:22 2011 From: privatemail at ...2637... (rrivett) Date: Thu, 18 Aug 2011 09:07:22 -0400 Subject: [Gambas-user] Gambas3 Debian Package In-Reply-To: <1313669624.9392.11.camel@...2638...> References: <1313598639.32496.6.camel@...2638...> <1313669624.9392.11.camel@...2638...> Message-ID: <1313672842.9392.18.camel@...2638...> On Thu, 2011-08-18 at 08:13 -0400, rrivett wrote: > On Wed, 2011-08-17 at 20:14 -0700, Ian Haywood wrote: > > > I have prepared debian packages and put them up for inclusion, > > currently waiting on a decision by the debian developers to include > > (well over 2 months, so I will follow up) > > > > Ian > > Thanks. > > In the meantime, I installed Gambas3 from your Natty PPA debs. > Interestingly, Synaptic showed circular QT3/QT4 dependencies which could > not be resolved, but apt-get install didn't list any dependency > problems. Dpkg reported one error, which scrolled off the screen before > I could read it. > > When I tried running Gambas3, I got the infamous " no project file in > '/usr/bin/gambas3' " error message. I searched the mailing lists and > don't see any real explanation for the message. > > I may try reinstalling later today with the installer messages dumped to > a file. Might be a clue there. > I got rid of the error. I also had Gambas2 installed and dpkg was choking because both Gambas3 and Gambas2 had the same png in their runtime modules. Removing Gambas2 got rid of the installation error. :-) So, now I no longer get the " no project file in '/usr/bin/gambas3' " error message. :-) Now it just segfaults when I run Gambas3. :-( :-( :-( I guess the warnings about trying to install Ubuntu debs on a Debian system were accurate. Roger From gambas at ...1... Thu Aug 18 15:11:39 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 18 Aug 2011 15:11:39 +0200 Subject: [Gambas-user] Gambas3 Debian Package In-Reply-To: <1313672842.9392.18.camel@...2638...> References: <1313598639.32496.6.camel@...2638...> <1313669624.9392.11.camel@...2638...> <1313672842.9392.18.camel@...2638...> Message-ID: <201108181511.39472.gambas@...1...> > On Thu, 2011-08-18 at 08:13 -0400, rrivett wrote: > > On Wed, 2011-08-17 at 20:14 -0700, Ian Haywood wrote: > > > I have prepared debian packages and put them up for inclusion, > > > currently waiting on a decision by the debian developers to include > > > (well over 2 months, so I will follow up) > > > > > > Ian > > > > Thanks. > > > > In the meantime, I installed Gambas3 from your Natty PPA debs. > > Interestingly, Synaptic showed circular QT3/QT4 dependencies which could > > not be resolved, but apt-get install didn't list any dependency > > problems. Dpkg reported one error, which scrolled off the screen before > > I could read it. > > > > When I tried running Gambas3, I got the infamous " no project file in > > '/usr/bin/gambas3' " error message. I searched the mailing lists and > > don't see any real explanation for the message. > > > > I may try reinstalling later today with the installer messages dumped to > > a file. Might be a clue there. > > I got rid of the error. I also had Gambas2 installed and dpkg was > choking because both Gambas3 and Gambas2 had the same png in their > runtime modules. Removing Gambas2 got rid of the installation error. :-) > > So, now I no longer get the " no project file in '/usr/bin/gambas3' " > error message. :-) > > Now it just segfaults when I run Gambas3. :-( :-( :-( > > I guess the warnings about trying to install Ubuntu debs on a Debian > system were accurate. > > Roger > Can you tell me which png file ? -- Beno?t Minisini From privatemail at ...2637... Thu Aug 18 16:27:36 2011 From: privatemail at ...2637... (rrivett) Date: Thu, 18 Aug 2011 10:27:36 -0400 Subject: [Gambas-user] Gambas3 Debian Package In-Reply-To: <201108181511.39472.gambas@...1...> References: <1313598639.32496.6.camel@...2638...> <1313669624.9392.11.camel@...2638...> <1313672842.9392.18.camel@...2638...> <201108181511.39472.gambas@...1...> Message-ID: <1313677656.3551.2.camel@...2638...> On Thu, 2011-08-18 at 15:11 +0200, Beno?t Minisini wrote: > > On Thu, 2011-08-18 at 08:13 -0400, rrivett wrote: > > > On Wed, 2011-08-17 at 20:14 -0700, Ian Haywood wrote: > > > > I have prepared debian packages and put them up for inclusion, > > > > currently waiting on a decision by the debian developers to include > > > > (well over 2 months, so I will follow up) > > > > > > > > Ian > > > > > > Thanks. > > > > > > In the meantime, I installed Gambas3 from your Natty PPA debs. > > > Interestingly, Synaptic showed circular QT3/QT4 dependencies which could > > > not be resolved, but apt-get install didn't list any dependency > > > problems. Dpkg reported one error, which scrolled off the screen before > > > I could read it. > > > > > > When I tried running Gambas3, I got the infamous " no project file in > > > '/usr/bin/gambas3' " error message. I searched the mailing lists and > > > don't see any real explanation for the message. > > > > > > I may try reinstalling later today with the installer messages dumped to > > > a file. Might be a clue there. > > > > I got rid of the error. I also had Gambas2 installed and dpkg was > > choking because both Gambas3 and Gambas2 had the same png in their > > runtime modules. Removing Gambas2 got rid of the installation error. :-) > > > > So, now I no longer get the " no project file in '/usr/bin/gambas3' " > > error message. :-) > > > > Now it just segfaults when I run Gambas3. :-( :-( :-( > > > > I guess the warnings about trying to install Ubuntu debs on a Debian > > system were accurate. > > > > Roger > > > > Can you tell me which png file ? > Here is the error. I reinstalled Gambas2 with Gambas3 still installed. It's the same error I got when I installed Gambas3 with Gambas2 installed. "dpkg: error processing /var/cache/apt/archives/gambas2-runtime_2.23.1-1 +b1_i386.deb (--unpack): trying to overwrite '/usr/share/icons/hicolor/64x64/mimetypes/application-x-gambas.png', which is also in package gambas3-runtime 2.99.1-1natty0 Selecting previously deselected package gambas2-gb-qt." Roger From demosthenesk at ...626... Thu Aug 18 16:38:07 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Thu, 18 Aug 2011 17:38:07 +0300 Subject: [Gambas-user] Gambas3 Debian Package In-Reply-To: References: <1313598639.32496.6.camel@...2638...> Message-ID: <1313678287.2320.3.camel@...2494...> You can use also the checkinstall package to create deb files. i use the next command line to create a deb file from the svn. /reconf-all && ./configure -C && make && sudo checkinstall -D && sudo chown user:user *.deb i also created a file named description-pak which checkinstall uses. On Wed, 2011-08-17 at 20:14 -0700, Ian Haywood wrote: > On Wed, Aug 17, 2011 at 9:30 AM, rrivett wrote: > > Hi, > > > > I'm a new Gambas user. Does anyone know if or when Gambas3 will show up > > in a Debian package, or if the Debian maintainer is likely to package > > one of the release candidates for the Debian Experimental repository > > prior to the full release of Gambas3? > I have prepared debian packages and put them up for inclusion, > currently waiting on a decision by the debian developers to include > (well over 2 months, so I will follow up) > > Ian > > ------------------------------------------------------------------------------ > Get a FREE DOWNLOAD! and learn more about uberSVN rich system, > user administration capabilities and model configuration. Take > the hassle out of deploying and managing Subversion and the > tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Regards, Demosthenes -------------- next part -------------- Gambas is a free development environment based on a Basic interpreter with object extensions, a bit like Visual Basic With Gambas, you can quickly design your program GUI with QT or GTK+, access MySQL, PostgreSQL, Firebird, ODBC and SQLite databases, pilot KDE applications with DCOP, translate your program into any language, create network applications easily, make 3D OpenGL applications, make CGI web applications, and so on. From privatemail at ...2637... Thu Aug 18 17:06:57 2011 From: privatemail at ...2637... (rrivett) Date: Thu, 18 Aug 2011 11:06:57 -0400 Subject: [Gambas-user] Gambas3 Debian Package In-Reply-To: <1313678287.2320.3.camel@...2494...> References: <1313598639.32496.6.camel@...2638...> <1313678287.2320.3.camel@...2494...> Message-ID: <1313680017.10572.2.camel@...2638...> On Thu, 2011-08-18 at 17:38 +0300, Demosthenes Koptsis wrote: > You can use also the checkinstall package to create deb files. > > i use the next command line to create a deb file from the svn. > > /reconf-all && ./configure -C && make && sudo checkinstall -D && sudo > chown user:user *.deb > > i also created a file named description-pak which checkinstall uses. Your attachment description-pak contained only the following text. Is that correct? "Gambas is a free development environment based on a Basic interpreter with object extensions, a bit like Visual Basic With Gambas, you can quickly design your program GUI with QT or GTK+, access MySQL, PostgreSQL, Firebird, ODBC and SQLite databases, pilot KDE applications with DCOP, translate your program into any language, create network applications easily, make 3D OpenGL applications, make CGI web applications, and so on." Thanks, Roger From sbungay at ...981... Thu Aug 18 17:23:21 2011 From: sbungay at ...981... (Stephen Bungay) Date: Thu, 18 Aug 2011 11:23:21 -0400 Subject: [Gambas-user] Desktop.Find Message-ID: <4E4D2E69.8060304@...981...> Hi folks! I need some help. Gambas 2.23 Problem: Desktop.Find is not finding a window that is indeed appearing on the desktop. I personally can see it and it has the correct title, therefore it is indeed there, and hence the need for some assistance trying to figure out WHY Desktop.Find can't see what I see....er.... or something to that effect. Anyway.... Instantiating a VLC instance using SHELL with the following procedure (ignore the SUB's parameter list, I have the parameters to SHELL hard-coded for the moment and am passing in dummy values from the calling SUB) '* '* NOTE! mpProcessHandle is declared at the class level AS Process. '* PUBLIC SUB PlayVideo(pFileName AS String, pPlayerTitle AS String) DIM aHandle AS NEW Pointer[] DIM iHandle AS Integer mpProcessHandle = SHELL "vlc --intf rc --video-title Camera0 ~/TestVideo.avi" FOR READ WRITE aHandle = Desktop.Find("Camera0") IF aHandle.count = 0 THEN Message.Warning("Window not found") ELSE Message.Info("Window Found") iHandle = aHandle[0] ' More to come... END IF END Any and all help is greatly appreciated. From gambas at ...1... Thu Aug 18 17:44:50 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 18 Aug 2011 17:44:50 +0200 Subject: [Gambas-user] Desktop.Find In-Reply-To: <4E4D2E69.8060304@...981...> References: <4E4D2E69.8060304@...981...> Message-ID: <201108181744.50509.gambas@...1...> > Hi folks! I need some help. > > Gambas 2.23 > > Problem: Desktop.Find is not finding a window that is indeed appearing > on the desktop. I personally can see it and it has the correct title, > therefore it is indeed there, and hence the need for some assistance > trying to figure out WHY Desktop.Find can't see what I see....er.... or > something to that effect. Anyway.... > > Instantiating a VLC instance using SHELL with the following procedure > (ignore the SUB's parameter list, I have the parameters to SHELL > hard-coded for the moment and am passing in dummy values from the > calling SUB) > '* > '* NOTE! mpProcessHandle is declared at the class level AS Process. > '* > PUBLIC SUB PlayVideo(pFileName AS String, pPlayerTitle AS String) > DIM aHandle AS NEW Pointer[] > DIM iHandle AS Integer > > mpProcessHandle = SHELL "vlc --intf rc --video-title Camera0 > ~/TestVideo.avi" FOR READ WRITE > You have to wait a little there (with SLEEP) because the vlc window will not be visible immediately just after you run the process. Regards, -- Beno?t Minisini From sbungay at ...981... Thu Aug 18 17:56:56 2011 From: sbungay at ...981... (Stephen Bungay) Date: Thu, 18 Aug 2011 11:56:56 -0400 Subject: [Gambas-user] Desktop.Find In-Reply-To: <201108181744.50509.gambas@...1...> References: <4E4D2E69.8060304@...981...> <201108181744.50509.gambas@...1...> Message-ID: <4E4D3648.9020204@...981...> On 08/18/2011 11:44 AM, Beno?t Minisini wrote: >> Hi folks! I need some help. >> >> Gambas 2.23 >> >> Problem: Desktop.Find is not finding a window that is indeed appearing >> on the desktop. I personally can see it and it has the correct title, >> therefore it is indeed there, and hence the need for some assistance >> trying to figure out WHY Desktop.Find can't see what I see....er.... or >> something to that effect. Anyway.... >> >> Instantiating a VLC instance using SHELL with the following procedure >> (ignore the SUB's parameter list, I have the parameters to SHELL >> hard-coded for the moment and am passing in dummy values from the >> calling SUB) >> '* >> '* NOTE! mpProcessHandle is declared at the class level AS Process. >> '* >> PUBLIC SUB PlayVideo(pFileName AS String, pPlayerTitle AS String) >> DIM aHandle AS NEW Pointer[] >> DIM iHandle AS Integer >> >> mpProcessHandle = SHELL "vlc --intf rc --video-title Camera0 >> ~/TestVideo.avi" FOR READ WRITE >> > You have to wait a little there (with SLEEP) because the vlc window will not > be visible immediately just after you run the process. > > Regards, > Hi Benoit! While I did not use SLEEP I did put a break point on the line that does the Desktop.Find, and allowed execution to proceed when the window appeared. I'll try SLEEP in conjunction with the breakpoint just to test. Will let you know. From gambas at ...1... Thu Aug 18 18:23:22 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 18 Aug 2011 18:23:22 +0200 Subject: [Gambas-user] Desktop.Find In-Reply-To: <4E4D3648.9020204@...981...> References: <4E4D2E69.8060304@...981...> <201108181744.50509.gambas@...1...> <4E4D3648.9020204@...981...> Message-ID: <201108181823.22899.gambas@...1...> > On 08/18/2011 11:44 AM, Beno?t Minisini wrote: > >> Hi folks! I need some help. > >> > >> Gambas 2.23 > >> > >> Problem: Desktop.Find is not finding a window that is indeed appearing > >> on the desktop. I personally can see it and it has the correct title, > >> therefore it is indeed there, and hence the need for some assistance > >> trying to figure out WHY Desktop.Find can't see what I see....er.... or > >> something to that effect. Anyway.... > >> > >> Instantiating a VLC instance using SHELL with the following procedure > >> (ignore the SUB's parameter list, I have the parameters to SHELL > >> hard-coded for the moment and am passing in dummy values from the > >> calling SUB) > >> '* > >> '* NOTE! mpProcessHandle is declared at the class level AS Process. > >> '* > >> PUBLIC SUB PlayVideo(pFileName AS String, pPlayerTitle AS String) > >> > >> DIM aHandle AS NEW Pointer[] > >> DIM iHandle AS Integer > >> > >> mpProcessHandle = SHELL "vlc --intf rc --video-title Camera0 > >> > >> ~/TestVideo.avi" FOR READ WRITE > > > > You have to wait a little there (with SLEEP) because the vlc window will > > not be visible immediately just after you run the process. > > > > Regards, > > Hi Benoit! > > While I did not use SLEEP I did put a break point on the line that does > the Desktop.Find, and allowed execution to proceed when the window > appeared. I'll try SLEEP in conjunction with the breakpoint just to > test. Will let you know. > Then just send me a project that lets me reproduce the problem. Regards, -- Beno?t Minisini From sbungay at ...981... Thu Aug 18 18:32:03 2011 From: sbungay at ...981... (Stephen Bungay) Date: Thu, 18 Aug 2011 12:32:03 -0400 Subject: [Gambas-user] Desktop.Find In-Reply-To: <4E4D3648.9020204@...981...> References: <4E4D2E69.8060304@...981...> <201108181744.50509.gambas@...1...> <4E4D3648.9020204@...981...> Message-ID: <4E4D3E83.8000005@...981...> On 08/18/2011 11:56 AM, Stephen Bungay wrote: > On 08/18/2011 11:44 AM, Beno?t Minisini wrote: >>> Hi folks! I need some help. >>> >>> Gambas 2.23 >>> >>> Problem: Desktop.Find is not finding a window that is indeed appearing >>> on the desktop. I personally can see it and it has the correct title, >>> therefore it is indeed there, and hence the need for some assistance >>> trying to figure out WHY Desktop.Find can't see what I see....er.... or >>> something to that effect. Anyway.... >>> >>> Instantiating a VLC instance using SHELL with the following procedure >>> (ignore the SUB's parameter list, I have the parameters to SHELL >>> hard-coded for the moment and am passing in dummy values from the >>> calling SUB) >>> '* >>> '* NOTE! mpProcessHandle is declared at the class level AS Process. >>> '* >>> PUBLIC SUB PlayVideo(pFileName AS String, pPlayerTitle AS String) >>> DIM aHandle AS NEW Pointer[] >>> DIM iHandle AS Integer >>> >>> mpProcessHandle = SHELL "vlc --intf rc --video-title Camera0 >>> ~/TestVideo.avi" FOR READ WRITE >>> >> You have to wait a little there (with SLEEP) because the vlc window will not >> be visible immediately just after you run the process. >> >> Regards, >> > Hi Benoit! > > While I did not use SLEEP I did put a break point on the line that does > the Desktop.Find, and allowed execution to proceed when the window > appeared. I'll try SLEEP in conjunction with the breakpoint just to > test. Will let you know. > > > ------------------------------------------------------------------------------ > Get a FREE DOWNLOAD! and learn more about uberSVN rich system, > user administration capabilities and model configuration. Take > the hassle out of deploying and managing Subversion and the > tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user The folks who wrote VLC are not *really* changing the title of the window, although it appears to the end-user that they are because the text in the drag-bar is showing "Camera0". To test the theory I changed the search parameter for Desktop.Find to "VLC media player" and found the window. Now the question is how can I get around their deception? From demosthenesk at ...626... Thu Aug 18 21:23:02 2011 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Thu, 18 Aug 2011 22:23:02 +0300 Subject: [Gambas-user] Gambas3 Debian Package In-Reply-To: <1313680017.10572.2.camel@...2638...> References: <1313598639.32496.6.camel@...2638...> <1313678287.2320.3.camel@...2494...> <1313680017.10572.2.camel@...2638...> Message-ID: <1313695382.2298.2.camel@...2494...> as i remember it miss the dependencies. The rest of the text is ok. You can modify the file through the checkinstall On Thu, 2011-08-18 at 11:06 -0400, rrivett wrote: > On Thu, 2011-08-18 at 17:38 +0300, Demosthenes Koptsis wrote: > > You can use also the checkinstall package to create deb files. > > > > i use the next command line to create a deb file from the svn. > > > > /reconf-all && ./configure -C && make && sudo checkinstall -D && sudo > > chown user:user *.deb > > > > i also created a file named description-pak which checkinstall uses. > > Your attachment description-pak contained only the following text. Is > that correct? > > "Gambas is a free development environment based on a Basic interpreter > with object extensions, a bit like Visual Basic > With Gambas, you can quickly design your program GUI with QT or GTK+, > access MySQL, PostgreSQL, Firebird, ODBC and SQLite databases, pilot KDE > applications with DCOP, translate your program into any language, create > network applications easily, make 3D OpenGL applications, make CGI web > applications, and so on." > > Thanks, Roger > > > ------------------------------------------------------------------------------ > Get a FREE DOWNLOAD! and learn more about uberSVN rich system, > user administration capabilities and model configuration. Take > the hassle out of deploying and managing Subversion and the > tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Regards, Demosthenes From gambas at ...2524... Fri Aug 19 07:34:13 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 19 Aug 2011 05:34:13 +0000 Subject: [Gambas-user] Issue 80 in gambas: Binary applications on Gambas Message-ID: <0-6813199134517018827-12738445392005826976-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 80 by ad... at ...2642...: Binary applications on Gambas http://code.google.com/p/gambas/issues/detail?id=80 Hello! I have a sentence - why not to compile at once binary applications? And in a folder with the given application to create a folder with "Gambas runtime". From rterry at ...1946... Fri Aug 19 12:12:32 2011 From: rterry at ...1946... (richard terry) Date: Fri, 19 Aug 2011 20:12:32 +1000 Subject: [Gambas-user] New popup menu option Message-ID: <201108192012.32662.rterry@...1946...> Thanks benoit for including upper/lower case, however a comment. Things that one would use often like comment/uncomment I'd leave on the main menu (or at least make it configurable) Also comment/uncomment menu options no longer work (revision 4013.) regards richard From sbungay at ...981... Fri Aug 19 14:25:19 2011 From: sbungay at ...981... (Stephen Bungay) Date: Fri, 19 Aug 2011 08:25:19 -0400 Subject: [Gambas-user] Desktop Find, embedding multiple instances of VLC... trials, tribulations, and a solution! Message-ID: <4E4E562F.9070204@...981...> I was trying (and have now succeeded) to embed VLC into an embedder on a form, then dynamically create multiple instances of that form in dynamically created multiple panels on a host form, or in laymen's terms 'play as many videos as I wanted in one containing window'. To do this I needed to spawn a video player, find it, then embed it. Spawning the player is no problem, and finding it should also have been easy since I could use the window name. The video player chosen was VLC, and after finding out how to uniquely set the title of the VLC window I ran headlong into the problem of finding that window by what I assumed would be it's unique name under X. This is where the trouble started, and I place the blame squarely on the developers of VLC, I hope this information helps others. Lets say we launch VLC from a bash shell with the following; $ vlc --intf rc --video-title Fred ~/MyVideo.avi This places the VLC interface into Remote Control mode (--intf rc), allowing us to send commands to it by the the console (potentially VERY useful) and puts the title 'Fred' at the top of the window. Now in another command shell type xprop. $ xprop The mouse cursor will turn to a cross-hair, move it over the VLC window and click on it. Have a look at the resulting output... what you're to looking for is WM_NAME(STRING) = "VLC media player" WM_NAME can be the name of the window (in this case it should be 'Fred'), but it does not HAVE to be the same as the (visible) window name. The good folks who develop VLC decided to keep the value of WM_NAME as 'VLC media player' instead of the name that the user (me in this case) wanted; as a result Desktop.Find will never locate a window called 'Fred' because as far as it is concerned 'Fred' does not exist. What to do? As it turns out we CAN change the visible title of an X-Window on the fly, a little program called 'wmctrl' allows us to rename the window, and my first thought was "GREAT! It can set WM_NAME to the value I want... problem solved!". Uh... no. It turns out that 'wmctrl' does indeed change WM_NAME, but it does not set it to the value you pass in... it sets it to nothing, blank, nada, zip, zilch,... bupkus. Great, but... YEAH... we can work with this, here's how; Launch VLC using the shell command, the visible window title doesn't matter at this time. Use desktop.find to locate the window 'VLC media player' and hang onto the handle. Use another shell command to launch wmctrl and change the visible name of the VLC window to whatever you desire. THIS WILL BLANK WM_NAME. Embed the VLC window using the handle we got from desktop.find. Because VLC will create all future instances of itself with the same WM_NAME, the next time you run through the above process (as long as you put a second or so delay in between them) you will correctly find the next instance created and get a handle on it (sic). From gambas at ...1... Fri Aug 19 14:54:33 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 19 Aug 2011 14:54:33 +0200 Subject: [Gambas-user] New popup menu option In-Reply-To: <201108192012.32662.rterry@...1946...> References: <201108192012.32662.rterry@...1946...> Message-ID: <201108191454.33422.gambas@...1...> > Thanks benoit for including upper/lower case, however a comment. > > Things that one would use often like comment/uncomment I'd leave on the > main menu (or at least make it configurable) > > Also comment/uncomment menu options no longer work (revision 4013.) > > regards richard > Comment/uncomment has been fixed in revision #4014. Otherwise, for menu options that you use often, use the toolbar or the keyboard shorcuts. Regards, -- Beno?t Minisini From rterry at ...1946... Fri Aug 19 15:22:40 2011 From: rterry at ...1946... (richard terry) Date: Fri, 19 Aug 2011 23:22:40 +1000 Subject: [Gambas-user] New popup menu option In-Reply-To: <201108191454.33422.gambas@...1...> References: <201108192012.32662.rterry@...1946...> <201108191454.33422.gambas@...1...> Message-ID: <201108192322.40810.rterry@...1946...> On Friday 19 August 2011 22:54:33 Beno?t Minisini wrote: > > Thanks benoit for including upper/lower case, however a comment. > > > > Things that one would use often like comment/uncomment I'd leave on the > > main menu (or at least make it configurable) > > > > Also comment/uncomment menu options no longer work (revision 4013.) > > > > regards richard > > Comment/uncomment has been fixed in revision #4014. > > Otherwise, for menu options that you use often, use the toolbar or the > keyboard shorcuts. > > Regards, > Thanks, I didn't see a comment button to drag onto the toolbar. Regards Richard From gambas at ...1... Sat Aug 20 02:37:32 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 20 Aug 2011 02:37:32 +0200 Subject: [Gambas-user] Big incompatible change Message-ID: <201108200237.32539.gambas@...1...> To fix the bug tracker issue #78, I had to do some incompatible changes. - TreeView, ListView and ColumnView Find() method have been renamed as FindAt(). - IconView.Find() has been renamed as FindAt(). - Workspace.Children has been renamed as Workspace.Windows. The IDE source code has been fixed accordingly. But now, changing the return datatype of a method through inheritance is now correctly forbidden. Theoretically, I have to prevent method signature from changing between inheritance too. But it is more complex to do that, so it will come later. I hope that it won't break your projects too much. I will make a RC3 soon. Regards, -- Beno?t Minisini From gambas at ...2524... Sat Aug 20 02:42:12 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 20 Aug 2011 00:42:12 +0000 Subject: [Gambas-user] Issue 78 in gambas: Illegal optimization / May a method's return value type in a derived class be different from the base class? In-Reply-To: <3-6813199134517018827-13851315586951690890-gambas=googlecode.com@...2524...> References: <3-6813199134517018827-13851315586951690890-gambas=googlecode.com@...2524...> <0-6813199134517018827-13851315586951690890-gambas=googlecode.com@...2524...> Message-ID: <4-6813199134517018827-13851315586951690890-gambas=googlecode.com@...2524...> Updates: Status: Started Comment #4 on issue 78 by benoit.m... at ...626...: Illegal optimization / May a method's return value type in a derived class be different from the base class? http://code.google.com/p/gambas/issues/detail?id=78 Partially fixed in revision #4015. Your specific problem is fixed by not allowing changing the return datatype of a method (or a property) through inheritance. But now I have to check method signatures too. It is more complex to do that, so it will come later. From gambas at ...2524... Sat Aug 20 02:46:14 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 20 Aug 2011 00:46:14 +0000 Subject: [Gambas-user] Issue 80 in gambas: Binary applications on Gambas In-Reply-To: <0-6813199134517018827-12738445392005826976-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-12738445392005826976-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-12738445392005826976-gambas=googlecode.com@...2524...> Updates: Status: NeedsInfo Comment #1 on issue 80 by benoit.m... at ...626...: Binary applications on Gambas http://code.google.com/p/gambas/issues/detail?id=80 Sorry I don't understand what you are talking about at all. From gambas at ...2524... Sat Aug 20 02:50:15 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 20 Aug 2011 00:50:15 +0000 Subject: [Gambas-user] Issue 74 in gambas: printer error with gb.report and gb.qt In-Reply-To: <11-6813199134517018827-12218113038692005099-gambas=googlecode.com@...2524...> References: <11-6813199134517018827-12218113038692005099-gambas=googlecode.com@...2524...> <0-6813199134517018827-12218113038692005099-gambas=googlecode.com@...2524...> Message-ID: <12-6813199134517018827-12218113038692005099-gambas=googlecode.com@...2524...> Updates: Labels: -Version Version-TRUNK Comment #12 on issue 74 by benoit.m... at ...626...: printer error with gb.report and gb.qt http://code.google.com/p/gambas/issues/detail?id=74 (No comment was entered for this change.) From kevinfishburne at ...1887... Sat Aug 20 09:17:54 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Sat, 20 Aug 2011 03:17:54 -0400 Subject: [Gambas-user] miles per hour to pixels per frame (general unit conversion function) Message-ID: <4E4F5FA2.9080105@...1887...> I came up with this equation, which I think is correct: Public Function MPH2PPF(MPH As Single) As Single ' Convert miles per hour to pixels per frame. ' 1 mile = 675840 pixels. ' 1 hour = 108000 frames. Return MPH * 675840 / 108000 End The frame rate is 30 FPS, and 128 pixels = one foot. Can anyone verify that this is correct? -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From Gambas at ...1950... Sat Aug 20 09:57:34 2011 From: Gambas at ...1950... (Caveat) Date: Sat, 20 Aug 2011 09:57:34 +0200 Subject: [Gambas-user] miles per hour to pixels per frame (general unit conversion function) In-Reply-To: <4E4F5FA2.9080105@...1887...> References: <4E4F5FA2.9080105@...1887...> Message-ID: <1313827054.5424.34.camel@...2150...> Seems ok to me... 5280 feet in a mile, 128 pixels in a foot = 128*5280 = 675840 pixels in a mile At 20 MPH you'd cover 20*675840 pixels = 13516800 pixels In a whole hour you'd cover 13516800 pixels but each frame only lasts 1/30th second, there's 60 seconds in a minute and 60 minutes in an hour so in one frame (lasting 1/108000th of an hour) you'd cover: 13516800 / (30 * 60 * 60) pixels = 13516800 / 108000 pixels = 125.155556 pixels Or put another way: 20 * 675840 / 108000 = 125.155556 = MPH2PPF(20) Scary corollary: at 120 km/hr you do 2km / minute = 2000 metres/minute = 2000/60 metres per second = 33 metres per second! If you take just 1/2 a second to react to a problem, you'll already be 17 metres closer to it, and if you take your eyes off the road just for a second to answer a text or change CDs... :-O Regards, Caveat On Sat, 2011-08-20 at 03:17 -0400, Kevin Fishburne wrote: > I came up with this equation, which I think is correct: > > Public Function MPH2PPF(MPH As Single) As Single > > ' Convert miles per hour to pixels per frame. > > ' 1 mile = 675840 pixels. > ' 1 hour = 108000 frames. > > Return MPH * 675840 / 108000 > > End > > The frame rate is 30 FPS, and 128 pixels = one foot. Can anyone verify > that this is correct? > From kevinfishburne at ...1887... Sat Aug 20 10:08:54 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Sat, 20 Aug 2011 04:08:54 -0400 Subject: [Gambas-user] miles per hour to pixels per frame (general unit conversion function) In-Reply-To: <1313827054.5424.34.camel@...2150...> References: <4E4F5FA2.9080105@...1887...> <1313827054.5424.34.camel@...2150...> Message-ID: <4E4F6B96.4010604@...1887...> On 08/20/2011 03:57 AM, Caveat wrote: > Seems ok to me... > > 5280 feet in a mile, 128 pixels in a foot > = 128*5280 > = 675840 pixels in a mile > > At 20 MPH you'd cover > 20*675840 pixels > = 13516800 pixels > > In a whole hour you'd cover 13516800 pixels but each frame only lasts > 1/30th second, there's 60 seconds in a minute and 60 minutes in an hour > so in one frame (lasting 1/108000th of an hour) you'd cover: > 13516800 / (30 * 60 * 60) pixels > = 13516800 / 108000 pixels > = 125.155556 pixels > > Or put another way: > 20 * 675840 / 108000 > = 125.155556 > = MPH2PPF(20) > > Scary corollary: at 120 km/hr you do 2km / minute > = 2000 metres/minute > = 2000/60 metres per second > = 33 metres per second! > > If you take just 1/2 a second to react to a problem, you'll already be > 17 metres closer to it, and if you take your eyes off the road just for > a second to answer a text or change CDs... :-O > > Regards, > Caveat > > On Sat, 2011-08-20 at 03:17 -0400, Kevin Fishburne wrote: >> I came up with this equation, which I think is correct: >> >> Public Function MPH2PPF(MPH As Single) As Single >> >> ' Convert miles per hour to pixels per frame. >> >> ' 1 mile = 675840 pixels. >> ' 1 hour = 108000 frames. >> >> Return MPH * 675840 / 108000 >> >> End >> >> The frame rate is 30 FPS, and 128 pixels = one foot. Can anyone verify >> that this is correct? > Haha, love it. :) Thanks for the confirmation. Reminds me of some guy in the UK who was banned from driving for a year or two because he was caught driving 70 MPH while talking on the phone and texting at the same time on two different phones. He was accused of driving with his knees. What an asshole... I always maintain a proper following distance and avoid anything but brief usage of electronics while driving. I prefer my guts to stay inside my body, thank you. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From rterry at ...1946... Sat Aug 20 12:11:39 2011 From: rterry at ...1946... (richard terry) Date: Sat, 20 Aug 2011 20:11:39 +1000 Subject: [Gambas-user] Big incompatible change In-Reply-To: <201108200237.32539.gambas@...1...> References: <201108200237.32539.gambas@...1...> Message-ID: <201108202011.39460.rterry@...1946...> On Saturday 20 August 2011 10:37:32 Beno?t Minisini wrote: > To fix the bug tracker issue #78, I had to do some incompatible changes. > > - TreeView, ListView and ColumnView Find() method have been renamed as > FindAt(). > > - IconView.Find() has been renamed as FindAt(). > > - Workspace.Children has been renamed as Workspace.Windows. > > The IDE source code has been fixed accordingly. > > But now, changing the return datatype of a method through inheritance is > now correctly forbidden. > > Theoretically, I have to prevent method signature from changing between > inheritance too. But it is more complex to do that, so it will come later. > > I hope that it won't break your projects too much. > > I will make a RC3 soon. > > Regards, > Benoit, have you updated the SVN with this, if so, what version number. This shouldn't involve more than a simple string replace in my rather (huge) project! Regards richard From gambas at ...1... Sat Aug 20 13:01:39 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 20 Aug 2011 13:01:39 +0200 Subject: [Gambas-user] WebView Object and proxy parameter In-Reply-To: <4F0667BE-36CE-4C4D-82EA-26A18970F93F@...1896...> References: <4F0667BE-36CE-4C4D-82EA-26A18970F93F@...1896...> Message-ID: <201108201301.39864.gambas@...1...> > Hello all, > > > Does anyone know how to use or config the proxy parameter (Ex: > http://192.168.0.1:8080) using a WebView object please ? > > I try to configure the HTTP_PROXY variable in the user profile, try to > configure in the KDE control panel parameters of proxy but nothing change. > > Fedora 14 + Gnome > Gambas3 (last svn release) > qt graphic interface > > thanks > > Olivier Cruilles > Mail: linuxos at ...1896... > Hi Olivier, In revision #4018, I have added a WebView.Proxy property that will allow you to define all proxy properties: Type, Host, Port, User and Password. The Type property can be one of the following: WebView.NoProxy, WebView.HttpProxy and WebView.Socks5Proxy. I have no proxy there, so please test and tell me! Regards, -- Beno?t Minisini From gambas at ...1... Sat Aug 20 13:17:23 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 20 Aug 2011 13:17:23 +0200 Subject: [Gambas-user] WebView Object and proxy parameter In-Reply-To: <201108201301.39864.gambas@...1...> References: <4F0667BE-36CE-4C4D-82EA-26A18970F93F@...1896...> <201108201301.39864.gambas@...1...> Message-ID: <201108201317.23275.gambas@...1...> > > Hello all, > > > > > > Does anyone know how to use or config the proxy parameter (Ex: > > http://192.168.0.1:8080) using a WebView object please ? > > > > I try to configure the HTTP_PROXY variable in the user profile, try to > > configure in the KDE control panel parameters of proxy but nothing > > change. > > > > Fedora 14 + Gnome > > Gambas3 (last svn release) > > qt graphic interface > > > > thanks > > > > Olivier Cruilles > > Mail: linuxos at ...1896... > > Hi Olivier, > > In revision #4018, I have added a WebView.Proxy property that will allow > you to define all proxy properties: Type, Host, Port, User and Password. > The Type property can be one of the following: WebView.NoProxy, > WebView.HttpProxy and WebView.Socks5Proxy. > > I have no proxy there, so please test and tell me! > > Regards, Oops. I cannot put a Proxy property in WebView, it overrides the Control.Proxy property. In revision #4019, I put the Proxy property in WebSettings (which is more logical anyway!). -- Beno?t Minisini From gambas at ...1... Sat Aug 20 13:29:25 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 20 Aug 2011 13:29:25 +0200 Subject: [Gambas-user] Annyoing bug with search feature In-Reply-To: References: Message-ID: <201108201329.25320.gambas@...1...> > Gambas 3 rev 4009 @ Ubuntu 11.04 64bit > > Way to reproduce: > > 1. Open search window. > 2. Pick word to search that can be found from multiple files, example; Dim, > Function, etc. > 3. Set search in source files and click browse. > 4. Chose first instance. > 5. Edit the word that was searched for. > > ---> Sudden jump to next instance, leaving editing in middle way. > > > Jussi It should be fixed in revision #4020. Regards, -- Beno?t Minisini From Karl.Reinl at ...2345... Sat Aug 20 14:40:49 2011 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Sat, 20 Aug 2011 14:40:49 +0200 Subject: [Gambas-user] Annyoing bug with search feature In-Reply-To: <201108201329.25320.gambas@...1...> References: <201108201329.25320.gambas@...1...> Message-ID: <1313844049.6444.5.camel@...40...> Am Samstag, den 20.08.2011, 13:29 +0200 schrieb Beno?t Minisini: > > Gambas 3 rev 4009 @ Ubuntu 11.04 64bit > > > > Way to reproduce: > > > > 1. Open search window. > > 2. Pick word to search that can be found from multiple files, example; Dim, > > Function, etc. > > 3. Set search in source files and click browse. > > 4. Chose first instance. > > 5. Edit the word that was searched for. > > > > ---> Sudden jump to next instance, leaving editing in middle way. > > > > > > Jussi > > It should be fixed in revision #4020. > > Regards, > Salut, revision #4020 fails [spuser at ...2644... 3]$ gambas3 ERROR: #63: 'UserControl.Find' is incorrectly overridden in class 'IconView' 0: ? [spuser at ...2644... 3]$ -- Amicalement Charlie From gambas at ...1... Sat Aug 20 14:47:00 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 20 Aug 2011 14:47:00 +0200 Subject: [Gambas-user] Annyoing bug with search feature In-Reply-To: <1313844049.6444.5.camel@...40...> References: <201108201329.25320.gambas@...1...> <1313844049.6444.5.camel@...40...> Message-ID: <201108201447.00724.gambas@...1...> > Am Samstag, den 20.08.2011, 13:29 +0200 schrieb Beno?t Minisini: > > > Gambas 3 rev 4009 @ Ubuntu 11.04 64bit > > > > > > Way to reproduce: > > > > > > 1. Open search window. > > > 2. Pick word to search that can be found from multiple files, example; > > > Dim, Function, etc. > > > 3. Set search in source files and click browse. > > > 4. Chose first instance. > > > 5. Edit the word that was searched for. > > > > > > ---> Sudden jump to next instance, leaving editing in middle way. > > > > > > Jussi > > > > It should be fixed in revision #4020. > > > > Regards, > > Salut, > > revision #4020 fails > > [spuser at ...2644... 3]$ gambas3 > ERROR: #63: 'UserControl.Find' is incorrectly overridden in class > 'IconView' > 0: ? > [spuser at ...2644... 3]$ Did you do a full "make install" ? -- Beno?t Minisini From Karl.Reinl at ...2345... Sat Aug 20 15:03:49 2011 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Sat, 20 Aug 2011 15:03:49 +0200 Subject: [Gambas-user] Annyoing bug with search feature In-Reply-To: <201108201447.00724.gambas@...1...> References: <201108201329.25320.gambas@...1...> <1313844049.6444.5.camel@...40...> <201108201447.00724.gambas@...1...> Message-ID: <1313845429.6444.17.camel@...40...> Am Samstag, den 20.08.2011, 14:47 +0200 schrieb Beno?t Minisini: > > Am Samstag, den 20.08.2011, 13:29 +0200 schrieb Beno?t Minisini: > > > > Gambas 3 rev 4009 @ Ubuntu 11.04 64bit > > > > > > > > Way to reproduce: > > > > > > > > 1. Open search window. > > > > 2. Pick word to search that can be found from multiple files, example; > > > > Dim, Function, etc. > > > > 3. Set search in source files and click browse. > > > > 4. Chose first instance. > > > > 5. Edit the word that was searched for. > > > > > > > > ---> Sudden jump to next instance, leaving editing in middle way. > > > > > > > > Jussi > > > > > > It should be fixed in revision #4020. > > > > > > Regards, > > > > Salut, > > > > revision #4020 fails > > > > [spuser at ...2644... 3]$ gambas3 > > ERROR: #63: 'UserControl.Find' is incorrectly overridden in class > > 'IconView' > > 0: ? > > [spuser at ...2644... 3]$ > > Did you do a full "make install" ? > Yes, I deleted the old svn-dir and started from scratch with a svn checkout From Karl.Reinl at ...2345... Sat Aug 20 15:19:20 2011 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Sat, 20 Aug 2011 15:19:20 +0200 Subject: [Gambas-user] Annyoing bug with search feature In-Reply-To: <201108201447.00724.gambas@...1...> References: <201108201329.25320.gambas@...1...> <1313844049.6444.5.camel@...40...> <201108201447.00724.gambas@...1...> Message-ID: <1313846360.6444.20.camel@...40...> Am Samstag, den 20.08.2011, 14:47 +0200 schrieb Beno?t Minisini: > > Am Samstag, den 20.08.2011, 13:29 +0200 schrieb Beno?t Minisini: > > > > Gambas 3 rev 4009 @ Ubuntu 11.04 64bit > > > > > > > > Way to reproduce: > > > > > > > > 1. Open search window. > > > > 2. Pick word to search that can be found from multiple files, example; > > > > Dim, Function, etc. > > > > 3. Set search in source files and click browse. > > > > 4. Chose first instance. > > > > 5. Edit the word that was searched for. > > > > > > > > ---> Sudden jump to next instance, leaving editing in middle way. > > > > > > > > Jussi > > > > > > It should be fixed in revision #4020. > > > > > > Regards, > > > > Salut, > > > > revision #4020 fails > > > > [spuser at ...2644... 3]$ gambas3 > > ERROR: #63: 'UserControl.Find' is incorrectly overridden in class > > 'IconView' > > 0: ? > > [spuser at ...2644... 3]$ > > Did you do a full "make install" ? > It seams, that I have a poppler problem -------------- next part -------------- A non-text attachment was scrubbed... Name: make.log.tar.gz Type: application/x-compressed-tar Size: 38373 bytes Desc: not available URL: From gambas at ...1... Sat Aug 20 15:26:33 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 20 Aug 2011 15:26:33 +0200 Subject: [Gambas-user] Annyoing bug with search feature In-Reply-To: <1313846360.6444.20.camel@...40...> References: <201108201447.00724.gambas@...1...> <1313846360.6444.20.camel@...40...> Message-ID: <201108201526.33450.gambas@...1...> > > It seams, that I have a poppler problem It should be fixed in revision #4022. -- Beno?t Minisini From Karl.Reinl at ...2345... Sat Aug 20 15:43:13 2011 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Sat, 20 Aug 2011 15:43:13 +0200 Subject: [Gambas-user] Annyoing bug with search feature In-Reply-To: <201108201526.33450.gambas@...1...> References: <201108201447.00724.gambas@...1...> <1313846360.6444.20.camel@...40...> <201108201526.33450.gambas@...1...> Message-ID: <1313847793.6444.22.camel@...40...> Am Samstag, den 20.08.2011, 15:26 +0200 schrieb Beno?t Minisini: > > > > It seams, that I have a poppler problem > > It should be fixed in revision #4022. > Thanks, poppler compiles now. -- Amicalement Charlie From fabianfloresvadell at ...626... Sun Aug 21 01:59:59 2011 From: fabianfloresvadell at ...626... (=?ISO-8859-1?Q?Fabi=E1n_Flores_Vadell?=) Date: Sat, 20 Aug 2011 20:59:59 -0300 Subject: [Gambas-user] Big incompatible change In-Reply-To: <201108200237.32539.gambas@...1...> References: <201108200237.32539.gambas@...1...> Message-ID: 2011/8/19 Beno?t Minisini : > To fix the bug tracker issue #78, I had to do some incompatible changes. > But now, changing the return datatype of a method through inheritance is now > correctly forbidden. > > Theoretically, I have to prevent method signature from changing between > inheritance too. But it is more complex to do that, so it will come later. > > I hope that it won't break your projects too much. > So, the signature and the return value of a method in a sub-class should be identical to the method in its super-class. If some of them is different in the sub-class, then the method on the sub-class is a new one, not the redefinition of the method on the super-class, ?right? -- Fabi?n Flores Vadell www.comoprogramarcongambas.blogspot.com www.speedbooksargentina.blogspot.com From gambas at ...1... Sun Aug 21 02:15:47 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 21 Aug 2011 02:15:47 +0200 Subject: [Gambas-user] Big incompatible change In-Reply-To: References: <201108200237.32539.gambas@...1...> Message-ID: <201108210215.48020.gambas@...1...> > 2011/8/19 Beno?t Minisini : > > To fix the bug tracker issue #78, I had to do some incompatible changes. > > > > But now, changing the return datatype of a method through inheritance is > > now correctly forbidden. > > > > Theoretically, I have to prevent method signature from changing between > > inheritance too. But it is more complex to do that, so it will come > > later. > > > > I hope that it won't break your projects too much. > > So, the signature and the return value of a method in a sub-class > should be identical to the method in its super-class. > > If some of them is different in the sub-class, then the method on the > sub-class is a new one, not the redefinition of the method on the > super-class, ?right? No, because a method is only identified by its name, not by its signature. -- Beno?t Minisini From fabianfloresvadell at ...626... Sun Aug 21 02:42:07 2011 From: fabianfloresvadell at ...626... (=?ISO-8859-1?Q?Fabi=E1n_Flores_Vadell?=) Date: Sat, 20 Aug 2011 21:42:07 -0300 Subject: [Gambas-user] Big incompatible change In-Reply-To: <201108210215.48020.gambas@...1...> References: <201108200237.32539.gambas@...1...> <201108210215.48020.gambas@...1...> Message-ID: 2011/8/20 Beno?t Minisini : >> 2011/8/19 Beno?t Minisini : >> > To fix the bug tracker issue #78, I had to do some incompatible changes. >> > >> > But now, changing the return datatype of a method through inheritance is >> > now correctly forbidden. >> > >> > Theoretically, I have to prevent method signature from changing between >> > inheritance too. But it is more complex to do that, so it will come >> > later. >> > >> > I hope that it won't break your projects too much. >> >> So, the signature and the return value of a method in a sub-class >> should be identical to the method in its super-class. >> >> If some of them is different in the sub-class, then the method on the >> sub-class is a new one, not the redefinition of the method on the >> super-class, ?right? > > No, because a method is only identified by its name, not by its signature. > I'm tired and I have flu, maybe that make me feel so confusing about that. So, I can't have a method in the subclass with the same name but different signature or return value, of that method in the superclass (because in fact that is what Gambas will prevent). If I do that Gambas will raise an error. Right? -- Fabi?n Flores Vadell www.comoprogramarcongambas.blogspot.com www.speedbooksargentina.blogspot.com From bbruen at ...2308... Sun Aug 21 04:42:09 2011 From: bbruen at ...2308... (Bruce Bruen) Date: Sun, 21 Aug 2011 12:12:09 +0930 Subject: [Gambas-user] IDE function key conflict with LXDE Message-ID: <4E507081.5050801@...2308...> Just a quick "FYI" note, the default key association in LXDE for F11 is maximize current window. This conflicts with Gambas IDE F11 usage as "show console". No response required. Bruce From wally at ...2037... Sun Aug 21 08:13:24 2011 From: wally at ...2037... (wally) Date: Sun, 21 Aug 2011 08:13:24 +0200 Subject: [Gambas-user] How to get mantissa and exponent ? Message-ID: <201108210813.24437.wally@...2037...> How to get mantissa and exponent of normed float ? for example: float number = 27.52 normed: = 0.2752 * 10^2 function I'm looking for should return 0.2752 and 2 wally From gambas at ...2524... Sun Aug 21 08:19:58 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 21 Aug 2011 06:19:58 +0000 Subject: [Gambas-user] Issue 81 in gambas: DirChooser doesn't reflect Root change Message-ID: <0-6813199134517018827-18425516738229820327-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 81 by adamn... at ...626...: DirChooser doesn't reflect Root change http://code.google.com/p/gambas/issues/detail?id=81 1) This issue regards the gambas3 DirChooser control used with gtk+. If the Root property of the DirChooser is set in code, the root is updated properly but the text in the bookmarks tab at the top of the chooser remains set to "Home". This is visually confusing due to the bookmark tab being so close to the root directory. The Problem Is: I see no way to set (in code) the text of the bookmark tab to reflect current root when the root is a bookmark. 2) Environment Version: TRUNK Revision: r4023 Operating system: Linux Distribution: homemade (call it Gentoo) Architecture: x86 GUI component: GTK+ Desktop used: LXDE 3) Provide a little project that reproduces the bug or the crash. See attached screenshot. 4) If your project needs a database, try to provide it, or part of it. N/A This is an (design) issue, not a bug or a crash. 5) Explain clearly how to reproduce the bug or the crash. N/A Attachments: gbDirChooser_issue1.png .png 32.1 KB From gambas at ...2524... Sun Aug 21 08:42:04 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 21 Aug 2011 06:42:04 +0000 Subject: [Gambas-user] Issue 82 in gambas: DirChooser Toolbar mangled in gtk+ Message-ID: <0-6813199134517018827-15208511267361058088-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 82 by adamn... at ...626...: DirChooser Toolbar mangled in gtk+ http://code.google.com/p/gambas/issues/detail?id=82 1) This issue regards the DirChooser control in Gambas3. Under gtk+ the toolbar at the top of the DirChooser control is mangled. See attached screenshot. 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: TRUNK Revision: r4032 Operating system: Linux Distribution: Gentoo Architecture: x86 GUI component: GTK+ Desktop used: LXDE 3) Provide a little project that reproduces the bug or the crash. N/A See screenshot 4) If your project needs a database, try to provide it, or part of it. N/A 5) Explain clearly how to reproduce the bug or the crash. Attachments: gbDirChooser_issue2 .png 14.0 KB From karl.reinl at ...9... Sun Aug 21 11:55:18 2011 From: karl.reinl at ...9... (Karl Reinl) Date: Sun, 21 Aug 2011 11:55:18 +0200 Subject: [Gambas-user] back and foreground on buttons (qt only) Message-ID: <1313920518.6938.4.camel@...40...> Salut, this is still true on Gambas3=2.99.3 rev 4022 using back and foreground on all buttons (qt only) don't work. See attached demoappl. Amicalement Charlie [OperatingSystem] OperatingSystem=Linux KernelRelease=2.6.33.7-server-2mnb DistributionVendor=MandrivaLinux DistributionRelease="Mandriva Linux 2010.2" [System] CPUArchitecture=i686 TotalRam=511092 kB Desktop=KDE4 [Gambas] Gambas1=Not Installed Gambas2=2.23.1 Gambas2Path=/usr/local/bin/gbx2 Gambas3=2.99.3 Gambas3Path=/usr/local/bin/gbx3 -------------- next part -------------- A non-text attachment was scrubbed... Name: TestApp01-0.0.1.tar.bz2 Type: application/x-bzip-compressed-tar Size: 5573 bytes Desc: not available URL: From Karl.Reinl at ...2345... Sun Aug 21 12:07:47 2011 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Sun, 21 Aug 2011 12:07:47 +0200 Subject: [Gambas-user] TextEdit, and missing Link event In-Reply-To: <1312322620.6447.3.camel@...40...> References: <1312116216.7907.19.camel@...40...> <201108022334.14814.gambas@...1...> <1312322620.6447.3.camel@...40...> Message-ID: <1313921267.6938.9.camel@...40...> Am Mittwoch, den 03.08.2011, 00:03 +0200 schrieb Charlie Reinl: > Am Dienstag, den 02.08.2011, 23:34 +0200 schrieb Beno?t Minisini: > > > Salut, > > > > > > did not find in http://gambasdoc.org/help/doc/gb2togb3?v3 so I aks here, > > > I move my project from gb2 to gb3. > > > I used a TextEdit with very simple HTML and a href in, and the Link > > > event to open it in the browser. > > > Now gb3 TextEdit don't show my very simple HTML any more (test only) und > > > has no Link event (the Link event was never in the documentation, even > > > in gb2) > > > > > > The TextLabel shows the simple HTML like it should be, but I don't find > > > no Link event. > > > > > > gambas3 rev 3956 > > > Mandriva 2010.2 > > > qt4 only (gtk not tested) > > > > TextEdit does not have a Link event anymore in Gambas 3. > > > Salut, > > so what is the replacement. > What's happened for TextLabel ? > Salut Beno?t, I didn't find any answer till now, and also whats about the Link event in TextLabel. -- Amicalement Charlie From gambas at ...1... Sun Aug 21 14:07:10 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 21 Aug 2011 14:07:10 +0200 Subject: [Gambas-user] TextEdit, and missing Link event In-Reply-To: <1313921267.6938.9.camel@...40...> References: <1312116216.7907.19.camel@...40...> <1312322620.6447.3.camel@...40...> <1313921267.6938.9.camel@...40...> Message-ID: <201108211407.10170.gambas@...1...> > Am Mittwoch, den 03.08.2011, 00:03 +0200 schrieb Charlie Reinl: > > Am Dienstag, den 02.08.2011, 23:34 +0200 schrieb Beno?t Minisini: > > > > Salut, > > > > > > > > did not find in http://gambasdoc.org/help/doc/gb2togb3?v3 so I aks > > > > here, I move my project from gb2 to gb3. > > > > I used a TextEdit with very simple HTML and a href in, and the Link > > > > event to open it in the browser. > > > > Now gb3 TextEdit don't show my very simple HTML any more (test only) > > > > und has no Link event (the Link event was never in the > > > > documentation, even in gb2) > > > > > > > > The TextLabel shows the simple HTML like it should be, but I don't > > > > find no Link event. > > > > > > > > gambas3 rev 3956 > > > > Mandriva 2010.2 > > > > qt4 only (gtk not tested) > > > > > > TextEdit does not have a Link event anymore in Gambas 3. > > > > Salut, > > > > so what is the replacement. > > What's happened for TextLabel ? > > Salut Beno?t, > > I didn't find any answer till now, and also whats about the Link event > in TextLabel. TextEdit and TextLabel do not have Link event, and there will be no replacement. Regards, -- Beno?t Minisini From gambas at ...2524... Sun Aug 21 15:23:37 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 21 Aug 2011 13:23:37 +0000 Subject: [Gambas-user] Issue 81 in gambas: DirChooser doesn't reflect Root change In-Reply-To: <0-6813199134517018827-18425516738229820327-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-18425516738229820327-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-18425516738229820327-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -Version Version-TRUNK Comment #1 on issue 81 by benoit.m... at ...626...: DirChooser doesn't reflect Root change http://code.google.com/p/gambas/issues/detail?id=81 (No comment was entered for this change.) From gambas at ...2524... Sun Aug 21 15:27:37 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 21 Aug 2011 13:27:37 +0000 Subject: [Gambas-user] Issue 81 in gambas: DirChooser doesn't reflect Root change In-Reply-To: <1-6813199134517018827-18425516738229820327-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-18425516738229820327-gambas=googlecode.com@...2524...> <0-6813199134517018827-18425516738229820327-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-18425516738229820327-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #2 on issue 81 by benoit.m... at ...626...: DirChooser doesn't reflect Root change http://code.google.com/p/gambas/issues/detail?id=81 Fixed in revision #4025. From gambas at ...2524... Sun Aug 21 15:31:38 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 21 Aug 2011 13:31:38 +0000 Subject: [Gambas-user] Issue 82 in gambas: DirChooser Toolbar mangled in gtk+ In-Reply-To: <0-6813199134517018827-15208511267361058088-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-15208511267361058088-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-15208511267361058088-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -Version Version-TRUNK Comment #1 on issue 82 by benoit.m... at ...626...: DirChooser Toolbar mangled in gtk+ http://code.google.com/p/gambas/issues/detail?id=82 (No comment was entered for this change.) From gambas at ...2524... Sun Aug 21 15:35:39 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 21 Aug 2011 13:35:39 +0000 Subject: [Gambas-user] Issue 82 in gambas: DirChooser Toolbar mangled in gtk+ In-Reply-To: <1-6813199134517018827-15208511267361058088-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-15208511267361058088-gambas=googlecode.com@...2524...> <0-6813199134517018827-15208511267361058088-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-15208511267361058088-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #2 on issue 82 by benoit.m... at ...626...: DirChooser Toolbar mangled in gtk+ http://code.google.com/p/gambas/issues/detail?id=82 Fixed in revision #4025. From sotema at ...626... Sun Aug 21 15:51:59 2011 From: sotema at ...626... (Emanuele Sottocorno) Date: Sun, 21 Aug 2011 15:51:59 +0200 Subject: [Gambas-user] Big incompatible change Message-ID: <1313934719.21165.2.camel@...2516...> The new inheritance rules will be ported in gbs2 also? From gambas at ...1... Sun Aug 21 16:00:31 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 21 Aug 2011 16:00:31 +0200 Subject: [Gambas-user] Big incompatible change In-Reply-To: <1313934719.21165.2.camel@...2516...> References: <1313934719.21165.2.camel@...2516...> Message-ID: <201108211600.31772.gambas@...1...> > The new inheritance rules will be ported in gbs2 also? > Gambas 2 you mean? Of course not. -- Beno?t Minisini From gambas at ...1... Sun Aug 21 17:13:28 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 21 Aug 2011 17:13:28 +0200 Subject: [Gambas-user] a gambas3 component does not provide underlying components In-Reply-To: <1309971703.6333.34.camel@...40...> References: <1309971703.6333.34.camel@...40...> Message-ID: <201108211713.28597.gambas@...1...> > Salut Benoit, > > I'm porting actually a gambas2 application to gambas3. > > The application consists of several parts. These parts can be ran as > executable, or used as component (now Library) in other applications. > > Now I remarked that while gambas2, when using a component, which it self > uses a component, provides/know this underlying component. > > gambas3 doesn't, you have to declare in every applications. > > Here a small example : > > application | App_5 | App_4 | App_3 | App_2 | App_1 > ----------------|-------|-------|-------|-------|------ > component | App_4 | App_3 | App_2 | App_1 | > gambas2 | | App_2 | App_1 | | > ----------------|-------|-------|-------|-------|------ > libraries | App_4 | App_3 | App_2 | App_1 | > gambas3 | App_3 | App_2 | App_1 | | > > | App_2 | App_1 | | | > | App_1 | | | | > > ----------------|-------|-------|-------|-------|------ Hi, Since revision #4024, loading a user library now automatically all libraries and components it depends on. Beware that this is different from components written in Gambas, that *do not* load components they depends on automatically. Regards, -- Beno?t Minisini From gambas at ...1... Sun Aug 21 17:19:10 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 21 Aug 2011 17:19:10 +0200 Subject: [Gambas-user] a gambas3 component does not provide underlying components In-Reply-To: <201108211713.28597.gambas@...1...> References: <1309971703.6333.34.camel@...40...> <201108211713.28597.gambas@...1...> Message-ID: <201108211719.10838.gambas@...1...> > > Salut Benoit, > > > > I'm porting actually a gambas2 application to gambas3. > > > > The application consists of several parts. These parts can be ran as > > executable, or used as component (now Library) in other applications. > > > > Now I remarked that while gambas2, when using a component, which it self > > uses a component, provides/know this underlying component. > > > > gambas3 doesn't, you have to declare in every applications. > > > > Here a small example : > > > > application | App_5 | App_4 | App_3 | App_2 | App_1 > > ----------------|-------|-------|-------|-------|------ > > component | App_4 | App_3 | App_2 | App_1 | > > gambas2 | | App_2 | App_1 | | > > ----------------|-------|-------|-------|-------|------ > > libraries | App_4 | App_3 | App_2 | App_1 | > > gambas3 | App_3 | App_2 | App_1 | | > > > > | App_2 | App_1 | | | > > | App_1 | | | | > > > > ----------------|-------|-------|-------|-------|------ > > Hi, > > Since revision #4024, loading a user library now automatically all > libraries and components it depends on. > > Beware that this is different from components written in Gambas, that *do > not* load components they depends on automatically. > > Regards, Trying again... Since revision #4024, loading a user library now automatically loads all libraries and components it depends on. Please test and tell me if it is useful for you. Regards, -- Beno?t Minisini From bbruen at ...2308... Sun Aug 21 17:31:16 2011 From: bbruen at ...2308... (Bruce Bruen) Date: Mon, 22 Aug 2011 01:01:16 +0930 Subject: [Gambas-user] 4025: Y U No Compile? Message-ID: <4E5124C4.9070105@...2308...> I cannot reconcile this one. 4023 make'd with no problems. -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: output.txt URL: From gambas at ...1... Sun Aug 21 17:34:06 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 21 Aug 2011 17:34:06 +0200 Subject: [Gambas-user] 4025: Y U No Compile? In-Reply-To: <4E5124C4.9070105@...2308...> References: <4E5124C4.9070105@...2308...> Message-ID: <201108211734.06428.gambas@...1...> > I cannot reconcile this one. 4023 make'd with no problems. What is your GTK+ version ? -- Beno?t Minisini From gambas at ...1... Sun Aug 21 17:37:44 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 21 Aug 2011 17:37:44 +0200 Subject: [Gambas-user] How to get mantissa and exponent ? In-Reply-To: <201108210813.24437.wally@...2037...> References: <201108210813.24437.wally@...2037...> Message-ID: <201108211737.44773.gambas@...1...> > How to get mantissa and exponent of normed float ? > > for example: > float number = 27.52 > normed: = 0.2752 * 10^2 > > function I'm looking for should return 0.2752 and 2 > > wally > Soomething like that: Exponent = Int(Log10(Value)) + 1 Mantissa = Value / 10 ^ Exponent -- Beno?t Minisini From karl.reinl at ...9... Sun Aug 21 18:22:33 2011 From: karl.reinl at ...9... (Karl Reinl) Date: Sun, 21 Aug 2011 18:22:33 +0200 Subject: [Gambas-user] 4026 got error while compiling Message-ID: <1313943753.6449.2.camel@...40...> Salut Beno?t, see attache logs -- Amicalement Charlie -------------- next part -------------- A non-text attachment was scrubbed... Name: configure.log.tar.gz Type: application/x-compressed-tar Size: 17622 bytes Desc: not available URL: -------------- next part -------------- [OperatingSystem] OperatingSystem=Linux KernelRelease=2.6.33.7-server-2mnb DistributionVendor=MandrivaLinux DistributionRelease="Mandriva Linux 2010.2" [System] CPUArchitecture=i686 TotalRam=511092 kB Desktop=KDE4 [Gambas] Gambas1=Not Installed Gambas2=2.23.1 Gambas2Path=/usr/local/bin/gbx2 Gambas3=2.99.3 Gambas3Path=/usr/local/bin/gbx3 From gambas at ...1... Sun Aug 21 18:32:11 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 21 Aug 2011 18:32:11 +0200 Subject: [Gambas-user] 4026 got error while compiling In-Reply-To: <1313943753.6449.2.camel@...40...> References: <1313943753.6449.2.camel@...40...> Message-ID: <201108211832.11742.gambas@...1...> > Salut Beno?t, > > see attache logs Is it better with rev. #4027 ? -- Beno?t Minisini From Karl.Reinl at ...2345... Sun Aug 21 18:52:16 2011 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Sun, 21 Aug 2011 18:52:16 +0200 Subject: [Gambas-user] 4026 got error while compiling In-Reply-To: <201108211832.11742.gambas@...1...> References: <1313943753.6449.2.camel@...40...> <201108211832.11742.gambas@...1...> Message-ID: <1313945536.6449.5.camel@...40...> Am Sonntag, den 21.08.2011, 18:32 +0200 schrieb Beno?t Minisini: > > Salut Beno?t, > > > > see attache logs > > Is it better with rev. #4027 ? > Yes, now it compiles also with gtk. -- Amicalement Charlie From sbungay at ...981... Sun Aug 21 19:40:58 2011 From: sbungay at ...981... (Stephen Bungay) Date: Sun, 21 Aug 2011 13:40:58 -0400 Subject: [Gambas-user] controlling VLC via a virtual terminal... Message-ID: <4E51432A.9070102@...981...> Hi folks! I cant seem to send commands to VLC through it's remote control interface when started using SHELL. Gambas 2.23 ShellString = "vlc --intf rc --video-title " & psPlayerTitle & " " & psFileName mpProcessHandle = SHELL ShellString FOR READ WRITE AS "VLC" VLC starts up in remote control mode properly (the app reads the startup messages and prints them so that I can verify remote control interface, so I know it is ready to accept commands. If it was in a 'real' console one could type 'shutdown', for example (less the quotes of course) and VLC would kill itself. But when I put a button on the form and set a property to the value 'shutdown', then call a sub from the property assignment in order to send the message to the process like this; PRINT #mpProcessHandle, Value Nothing happens, except that I might start to get lots of binary data streaming into the GAMBAS IDE console pane. Anyone got any ideas? I can attach the source package (it is small) if anyone would like to take a look. Regards Steve. From gambas at ...1... Sun Aug 21 20:12:46 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 21 Aug 2011 20:12:46 +0200 Subject: [Gambas-user] controlling VLC via a virtual terminal... In-Reply-To: <4E51432A.9070102@...981...> References: <4E51432A.9070102@...981...> Message-ID: <201108212012.46204.gambas@...1...> > Hi folks! > I cant seem to send commands to VLC through it's remote control > interface when started using SHELL. > > Gambas 2.23 > > ShellString = "vlc --intf rc --video-title " & psPlayerTitle & " " & > psFileName > mpProcessHandle = SHELL ShellString FOR READ WRITE AS "VLC" > > VLC starts up in remote control mode properly (the app reads the > startup messages and prints them so that I can verify remote control > interface, so I know it is ready to accept commands. If it was in a > 'real' console one could type 'shutdown', for example (less the quotes > of course) and VLC would kill itself. But when I put a button on the > form and set a property to the value 'shutdown', then call a sub from > the property assignment in order to send the message to the process like > this; > > PRINT #mpProcessHandle, Value > > Nothing happens, except that I might start to get lots of binary data > streaming into the GAMBAS IDE console pane. > > Anyone got any ideas? I can attach the source package (it is small) > if anyone would like to take a look. > > Regards > Steve. > If VLC really needs a virtual terminal, then you must use SHELL ... FOR INPUT OUTPUT. And why use SHELL ? You should use EXEC instead. Regards, -- Beno?t Minisini From dr.diesel at ...626... Sun Aug 21 23:17:25 2011 From: dr.diesel at ...626... (Dr.Diesel) Date: Sun, 21 Aug 2011 14:17:25 -0700 (PDT) Subject: [Gambas-user] 4025: Y U No Compile? In-Reply-To: <201108211734.06428.gambas@...1...> References: <4E5124C4.9070105@...2308...> <201108211734.06428.gambas@...1...> Message-ID: <32307251.post@...1379...> Beno?t Minisini wrote: > >> I cannot reconcile this one. 4023 make'd with no problems. > > What is your GTK+ version ? > > -- > Beno?t Minisini > > 4027 doesn't compile with a similar error: /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/librsvg-2.0 -I/usr/include/gtk-unix-print-2.0 -I../share -pipe -Wall -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -fno-omit-frame-pointer -MT gscrollview.lo -MD -MP -MF .deps/gscrollview.Tpo -c -o gscrollview.lo gscrollview.cpp libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/librsvg-2.0 -I/usr/include/gtk-unix-print-2.0 -I../share -pipe -Wall -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -fno-omit-frame-pointer -MT gscrollview.lo -MD -MP -MF .deps/gscrollview.Tpo -c gscrollview.cpp -fPIC -DPIC -o .libs/gscrollview.o ggridview.cpp: In function 'void tblateral_select(gGridView*, int, bool)': ggridview.cpp:192:7: warning: variable 'sel_changed' set but not used [-Wunused-but-set-variable] ggridview.cpp: In member function 'void gGridView::setHeaderText(int, const char*)': ggridview.cpp:1724:57: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] ggridview.cpp:1728:39: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] ggridview.cpp: In member function 'void gGridView::setFooterText(int, const char*)': ggridview.cpp:1747:57: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] ggridview.cpp:1751:39: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] ggridview.cpp: In member function 'char* gGridView::headerText(int)': ggridview.cpp:1763:57: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] ggridview.cpp: In member function 'char* gGridView::footerText(int)': ggridview.cpp:1773:57: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] ggridview.cpp: In member function 'bool gGridView::columnResizable(int)': ggridview.cpp:1783:57: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] ggridview.cpp: In member function 'void gGridView::setColumnResizable(int, bool)': ggridview.cpp:1796:57: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] ggridview.cpp:1800:39: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] ggridview.cpp: In member function 'char* gGridView::rowText(int)': ggridview.cpp:1816:57: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] ggridview.cpp: In member function 'void gGridView::setRowText(int, const char*)': ggridview.cpp:1833:54: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] ggridview.cpp:1837:39: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] ggridview.cpp: In member function 'bool gGridView::rowResizable(int)': ggridview.cpp:1850:54: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] ggridview.cpp: In member function 'void gGridView::setRowResizable(int, bool)': ggridview.cpp:1863:54: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] ggridview.cpp:1867:39: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] mv -f .deps/ggridview.Tpo .deps/ggridview.Plo /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/librsvg-2.0 -I/usr/include/gtk-unix-print-2.0 -I../share -pipe -Wall -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -fno-omit-frame-pointer -MT gmenu.lo -MD -MP -MF .deps/gmenu.Tpo -c -o gmenu.lo gmenu.cpp mv -f .deps/gsplitter.Tpo .deps/gsplitter.Plo /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/librsvg-2.0 -I/usr/include/gtk-unix-print-2.0 -I../share -pipe -Wall -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -fno-omit-frame-pointer -MT gtrayicon.lo -MD -MP -MF .deps/gtrayicon.Tpo -c -o gtrayicon.lo gtrayicon.cpp libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/librsvg-2.0 -I/usr/include/gtk-unix-print-2.0 -I../share -pipe -Wall -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -fno-omit-frame-pointer -MT gmenu.lo -MD -MP -MF .deps/gmenu.Tpo -c gmenu.cpp -fPIC -DPIC -o .libs/gmenu.o libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/librsvg-2.0 -I/usr/include/gtk-unix-print-2.0 -I../share -pipe -Wall -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -fno-omit-frame-pointer -MT gtrayicon.lo -MD -MP -MF .deps/gtrayicon.Tpo -c gtrayicon.cpp -fPIC -DPIC -o .libs/gtrayicon.o mv -f .deps/gscrollview.Tpo .deps/gscrollview.Plo /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/librsvg-2.0 -I/usr/include/gtk-unix-print-2.0 -I../share -pipe -Wall -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -fno-omit-frame-pointer -MT gmainwindow.lo -MD -MP -MF .deps/gmainwindow.Tpo -c -o gmainwindow.lo gmainwindow.cpp libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/librsvg-2.0 -I/usr/include/gtk-unix-print-2.0 -I../share -pipe -Wall -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -fno-omit-frame-pointer -MT gmainwindow.lo -MD -MP -MF .deps/gmainwindow.Tpo -c gmainwindow.cpp -fPIC -DPIC -o .libs/gmainwindow.o mv -f .deps/gtabstrip.Tpo .deps/gtabstrip.Plo /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/librsvg-2.0 -I/usr/include/gtk-unix-print-2.0 -I../share -pipe -Wall -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -fno-omit-frame-pointer -MT watcher.lo -MD -MP -MF .deps/watcher.Tpo -c -o watcher.lo watcher.cpp libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/librsvg-2.0 -I/usr/include/gtk-unix-print-2.0 -I../share -pipe -Wall -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -fno-omit-frame-pointer -MT watcher.lo -MD -MP -MF .deps/watcher.Tpo -c watcher.cpp -fPIC -DPIC -o .libs/watcher.o mv -f .deps/gtrayicon.Tpo .deps/gtrayicon.Plo /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/librsvg-2.0 -I/usr/include/gtk-unix-print-2.0 -I../share -pipe -Wall -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -fno-omit-frame-pointer -MT CStock.lo -MD -MP -MF .deps/CStock.Tpo -c -o CStock.lo CStock.cpp mv -f .deps/gmenu.Tpo .deps/gmenu.Plo /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/librsvg-2.0 -I/usr/include/gtk-unix-print-2.0 -I../share -pipe -Wall -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -fno-omit-frame-pointer -MT CConst.lo -MD -MP -MF .deps/CConst.Tpo -c -o CConst.lo CConst.cpp libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/librsvg-2.0 -I/usr/include/gtk-unix-print-2.0 -I../share -pipe -Wall -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -fno-omit-frame-pointer -MT CStock.lo -MD -MP -MF .deps/CStock.Tpo -c CStock.cpp -fPIC -DPIC -o .libs/CStock.o libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/librsvg-2.0 -I/usr/include/gtk-unix-print-2.0 -I../share -pipe -Wall -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -fno-omit-frame-pointer -MT CConst.lo -MD -MP -MF .deps/CConst.Tpo -c CConst.cpp -fPIC -DPIC -o .libs/CConst.o gmainwindow.cpp: In member function 'virtual void gMainWindow::setVisible(bool)': gmainwindow.cpp:488:145: error: 'gtk_window_set_has_resize_grip' was not declared in this scope make[4]: *** [gmainwindow.lo] Error 1 make[4]: *** Waiting for unfinished jobs.... mv -f .deps/watcher.Tpo .deps/watcher.Plo mv -f .deps/CStock.Tpo .deps/CStock.Plo mv -f .deps/CConst.Tpo .deps/CConst.Plo make[4]: Leaving directory `/home/andy/trunk/gb.gtk/src' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/home/andy/trunk/gb.gtk' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/andy/trunk/gb.gtk' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/andy/trunk' make: *** [all] Error 2 [andy at ...2645... trunk]$ cd .. [andy at ...2645... ~]$ svn up trunkj Skipped 'trunkj' [andy at ...2645... ~]$ svn up trunk At revision 4027. [andy at ...2645... ~]$ gtk versions: gtkglext-devel-1.2.0-14.fc15.x86_64 gtkmm30-3.0.1-1.fc15.x86_64 gtk-vnc2-0.4.3-1.fc15.x86_64 gtk2-immodule-xim-2.24.4-2.fc15.x86_64 gtk2-2.24.4-2.fc15.x86_64 gtk3-immodule-xim-3.0.12-1.fc15.x86_64 gtk2-2.24.4-2.fc15.i686 gtkhtml3-4.0.1-1.fc15.x86_64 gtk-vnc-0.4.3-1.fc15.x86_64 gtk2-engines-2.20.2-2.fc15.x86_64 gtkperf-0.40-10.fc15.x86_64 gtkglext-libs-1.2.0-14.fc15.x86_64 gtkmm24-2.24.0-3.fc15.x86_64 gtksourceview3-3.0.5-1.fc15.x86_64 gtk3-3.0.12-1.fc15.x86_64 gtk2-devel-2.24.4-2.fc15.x86_64 gtk-doc-1.17-1.fc15.noarch gtkspell-2.0.16-2.fc15.x86_64 -- View this message in context: http://old.nabble.com/4025%3A-Y-U-No-Compile--tp32305952p32307251.html Sent from the gambas-user mailing list archive at Nabble.com. From Karl.Reinl at ...2345... Sun Aug 21 23:22:33 2011 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Sun, 21 Aug 2011 23:22:33 +0200 Subject: [Gambas-user] a gambas3 component does not provide underlying components In-Reply-To: <201108211719.10838.gambas@...1...> References: <1309971703.6333.34.camel@...40...> <201108211713.28597.gambas@...1...> <201108211719.10838.gambas@...1...> Message-ID: <1313961753.6449.7.camel@...40...> Am Sonntag, den 21.08.2011, 17:19 +0200 schrieb Beno?t Minisini: > > > Salut Benoit, > > > > > > I'm porting actually a gambas2 application to gambas3. > > > > > > The application consists of several parts. These parts can be ran as > > > executable, or used as component (now Library) in other applications. > > > > > > Now I remarked that while gambas2, when using a component, which it self > > > uses a component, provides/know this underlying component. > > > > > > gambas3 doesn't, you have to declare in every applications. > > > > > > Here a small example : > > > > > > application | App_5 | App_4 | App_3 | App_2 | App_1 > > > ----------------|-------|-------|-------|-------|------ > > > component | App_4 | App_3 | App_2 | App_1 | > > > gambas2 | | App_2 | App_1 | | > > > ----------------|-------|-------|-------|-------|------ > > > libraries | App_4 | App_3 | App_2 | App_1 | > > > gambas3 | App_3 | App_2 | App_1 | | > > > > > > | App_2 | App_1 | | | > > > | App_1 | | | | > > > > > > ----------------|-------|-------|-------|-------|------ > > > > Hi, > > > > Since revision #4024, loading a user library now automatically all > > libraries and components it depends on. > > > > Beware that this is different from components written in Gambas, that *do > > not* load components they depends on automatically. > > > > Regards, > > Trying again... > > Since revision #4024, loading a user library now automatically loads all > libraries and components it depends on. > > Please test and tell me if it is useful for you. > > Regards, > Salut Beno?t, looks good, thanks -- Amicalement Charlie From karl.reinl at ...9... Sun Aug 21 23:34:39 2011 From: karl.reinl at ...9... (Karl Reinl) Date: Sun, 21 Aug 2011 23:34:39 +0200 Subject: [Gambas-user] got an #11 on gambas3 IDE (rev 4027) Message-ID: <1313962479.6449.16.camel@...40...> Salut Beno?t, while turning on tool-tips I'v got a #11 -- Amicalement Charlie -------------- next part -------------- A non-text attachment was scrubbed... Name: #11.xcf Type: x-directory/normal Size: 66264 bytes Desc: not available URL: From gambas at ...1... Sun Aug 21 23:46:35 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 21 Aug 2011 23:46:35 +0200 Subject: [Gambas-user] got an #11 on gambas3 IDE (rev 4027) In-Reply-To: <1313962479.6449.16.camel@...40...> References: <1313962479.6449.16.camel@...40...> Message-ID: <201108212346.35759.gambas@...1...> > Salut Beno?t, > > while turning on tool-tips I'v got a #11 Fixed in revision #4028. Regards, -- Beno?t Minisini From bbruen at ...2308... Mon Aug 22 01:23:43 2011 From: bbruen at ...2308... (Bruce Bruen) Date: Mon, 22 Aug 2011 08:53:43 +0930 Subject: [Gambas-user] 4025: Y U No Compile? In-Reply-To: <201108211734.06428.gambas@...1...> References: <4E5124C4.9070105@...2308...> <201108211734.06428.gambas@...1...> Message-ID: <4E51937F.9010504@...2308...> On 22/08/11 01:04, Beno?t Minisini wrote: >> I cannot reconcile this one. 4023 make'd with no problems. >> > What is your GTK+ version ? > > gtk+2.24.5 The gtk docs say that gtk_window_set_has_resize_grip is "since 3.0" and the only thing I can find that is close is gtk_statusbar_set_has_resize_grip. Bruce From sbungay at ...981... Mon Aug 22 01:25:40 2011 From: sbungay at ...981... (Stephen Bungay) Date: Sun, 21 Aug 2011 19:25:40 -0400 Subject: [Gambas-user] controlling VLC via a virtual terminal... In-Reply-To: <201108212012.46204.gambas@...1...> References: <4E51432A.9070102@...981...> <201108212012.46204.gambas@...1...> Message-ID: <4E5193F4.7080306@...981...> On 08/21/2011 02:12 PM, Beno?t Minisini wrote: >> Hi folks! >> I cant seem to send commands to VLC through it's remote control >> interface when started using SHELL. >> >> Gambas 2.23 >> >> ShellString = "vlc --intf rc --video-title "& psPlayerTitle& " "& >> psFileName >> mpProcessHandle = SHELL ShellString FOR READ WRITE AS "VLC" >> >> VLC starts up in remote control mode properly (the app reads the >> startup messages and prints them so that I can verify remote control >> interface, so I know it is ready to accept commands. If it was in a >> 'real' console one could type 'shutdown', for example (less the quotes >> of course) and VLC would kill itself. But when I put a button on the >> form and set a property to the value 'shutdown', then call a sub from >> the property assignment in order to send the message to the process like >> this; >> >> PRINT #mpProcessHandle, Value >> >> Nothing happens, except that I might start to get lots of binary data >> streaming into the GAMBAS IDE console pane. >> >> Anyone got any ideas? I can attach the source package (it is small) >> if anyone would like to take a look. >> >> Regards >> Steve. >> > If VLC really needs a virtual terminal, then you must use SHELL ... FOR INPUT > OUTPUT. And why use SHELL ? You should use EXEC instead. > > Regards, > Thanks for that Benoit, I didn't use Exec because I thought I needed the capabilities of SHELL. It works, but is slow to get the commands to the process, but then this may not be the way to do things, there may be a better way. Kindest Regards Steve. From gambas at ...1... Mon Aug 22 01:44:44 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 22 Aug 2011 01:44:44 +0200 Subject: [Gambas-user] 4025: Y U No Compile? In-Reply-To: <4E51937F.9010504@...2308...> References: <4E5124C4.9070105@...2308...> <201108211734.06428.gambas@...1...> <4E51937F.9010504@...2308...> Message-ID: <201108220144.44382.gambas@...1...> > On 22/08/11 01:04, Beno?t Minisini wrote: > >> I cannot reconcile this one. 4023 make'd with no problems. > > > > What is your GTK+ version ? > > gtk+2.24.5 > > The gtk docs say that gtk_window_set_has_resize_grip is "since 3.0" and > the only thing I can find that is close is > gtk_statusbar_set_has_resize_grip. > > Bruce > I have gtk+2.24.4 on Ubuntu, and gtk_window_set_has_resize_grip is declared in the header files. I downloaded gtk+2.24.5 sources, and I didn't find gtk_window_set_has_resize_grip in it! WTF? Is it an Ubuntu WTF again? -- Beno?t Minisini From support at ...2529... Mon Aug 22 01:27:51 2011 From: support at ...2529... (John Spikowski) Date: Sun, 21 Aug 2011 16:27:51 -0700 Subject: [Gambas-user] 4028 doesn't run Message-ID: <1313969271.2229.2.camel@...1833...> [DIALOG BOX] This application has raised an unexpected error and must abort. [6] Type mismatch: wanted _IconViewItem, got _IconView_Item instead. ? [END DIALOG] jrs at ...1833...:~$ gambas3 gb.qt4: warning: unable to load Qt translation: en_US.UTF-8 warning: unable to load 16/cancel ERROR: #6: Type mismatch: wanted _IconViewItem, got _IconView_Item instead 0: ? 1: IconView._RefreshItem.1006 2: _IconView_Item.RefreshView.42 3: _IconView_Item.Text_Write.78 4: IconView.Add.250 5: IconPanel.Count_Write.117 6: IconPanel._new.46 7: FOption.FOption.0 8: FOption.FOption.0 9: FMain._new.41 10: Project.Main.268 From gambas at ...1... Mon Aug 22 01:58:46 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 22 Aug 2011 01:58:46 +0200 Subject: [Gambas-user] 4028 doesn't run In-Reply-To: <1313969271.2229.2.camel@...1833...> References: <1313969271.2229.2.camel@...1833...> Message-ID: <201108220158.46301.gambas@...1...> > [DIALOG BOX] > > This application has raised an unexpected > > > error and must abort. > > [6] Type mismatch: wanted _IconViewItem, got _IconView_Item instead. > ? > [END DIALOG] > > > jrs at ...1833...:~$ gambas3 > gb.qt4: warning: unable to load Qt translation: en_US.UTF-8 > warning: unable to load 16/cancel > ERROR: #6: Type mismatch: wanted _IconViewItem, got _IconView_Item > instead > 0: ? > 1: IconView._RefreshItem.1006 > 2: _IconView_Item.RefreshView.42 > 3: _IconView_Item.Text_Write.78 > 4: IconView.Add.250 > 5: IconPanel.Count_Write.117 > 6: IconPanel._new.46 > 7: FOption.FOption.0 > 8: FOption.FOption.0 > 9: FMain._new.41 > 10: Project.Main.268 > Make sure that you recompile and reinstall everything. Regards, -- Beno?t Minisini From bbruen at ...2308... Mon Aug 22 02:02:25 2011 From: bbruen at ...2308... (Bruce Bruen) Date: Mon, 22 Aug 2011 09:32:25 +0930 Subject: [Gambas-user] 4025: Y U No Compile? In-Reply-To: <201108220144.44382.gambas@...1...> References: <4E5124C4.9070105@...2308...> <201108211734.06428.gambas@...1...> <4E51937F.9010504@...2308...> <201108220144.44382.gambas@...1...> Message-ID: <4E519C91.5050700@...2308...> On 22/08/11 09:14, Beno?t Minisini wrote: >> On 22/08/11 01:04, Beno?t Minisini wrote: >> >>>> I cannot reconcile this one. 4023 make'd with no problems. >>>> >>> What is your GTK+ version ? >>> >> gtk+2.24.5 >> >> The gtk docs say that gtk_window_set_has_resize_grip is "since 3.0" and >> the only thing I can find that is close is >> gtk_statusbar_set_has_resize_grip. >> >> Bruce >> >> > I have gtk+2.24.4 on Ubuntu, and gtk_window_set_has_resize_grip is declared in > the header files. > > I downloaded gtk+2.24.5 sources, and I didn't find > gtk_window_set_has_resize_grip in it! > > WTF? Is it an Ubuntu WTF again? > > Could be ;-) Anyway, I went and changed the offending area of gmainwindow on my local trunk to 487:// #if (GTK_MAJOR_VERSION>= 2&& GTK_MINOR_VERSION>= 24) || (GTK_MAJOR_VERSION>= 3) 488: #if (GTK_MAJOR_VERSION>= 3) 489: gtk_window_set_has_resize_grip(GTK_WINDOW(border), false); 490: #endif and the make now completes properly. But :'( running the IDE now fails with: ERROR: #6: Type mismatch: wanted _IconViewItem, got _IconView_Item instead 0: ? 1: IconView._RefreshItem.1006 2: _IconView_Item.RefreshView.42 3: _IconView_Item.Text_Write.78 4: IconView.Add.250 5: IconPanel.Count_Write.117 6: IconPanel._new.46 7: FOption.FOption.0 8: FOption.FOption.0 9: FMain._new.41 10: Project.Main.268 I'll have a look at these over my morning coffee. Bruce From support at ...2529... Mon Aug 22 04:00:32 2011 From: support at ...2529... (John Spikowski) Date: Sun, 21 Aug 2011 19:00:32 -0700 Subject: [Gambas-user] 4028 doesn't run In-Reply-To: <201108220158.46301.gambas@...1...> References: <1313969271.2229.2.camel@...1833...> <201108220158.46301.gambas@...1...> Message-ID: <1313978432.2229.4.camel@...1833...> On Mon, 2011-08-22 at 01:58 +0200, Beno?t Minisini wrote: > > [DIALOG BOX] > > > > This application has raised an unexpected > > > > > > error and must abort. > > > > [6] Type mismatch: wanted _IconViewItem, got _IconView_Item instead. > > ? > > [END DIALOG] > > > > > > jrs at ...1833...:~$ gambas3 > > gb.qt4: warning: unable to load Qt translation: en_US.UTF-8 > > warning: unable to load 16/cancel > > ERROR: #6: Type mismatch: wanted _IconViewItem, got _IconView_Item > > instead > > 0: ? > > 1: IconView._RefreshItem.1006 > > 2: _IconView_Item.RefreshView.42 > > 3: _IconView_Item.Text_Write.78 > > 4: IconView.Add.250 > > 5: IconPanel.Count_Write.117 > > 6: IconPanel._new.46 > > 7: FOption.FOption.0 > > 8: FOption.FOption.0 > > 9: FMain._new.41 > > 10: Project.Main.268 > > > > Make sure that you recompile and reinstall everything. > > Regards, > I did the following like I always do. cd gambas/trunk svn up ./reconf-all && ./configure -C && make sudo make install This is my first time for Gambas 3 not to run. From bbruen at ...2308... Mon Aug 22 05:33:15 2011 From: bbruen at ...2308... (Bruce Bruen) Date: Mon, 22 Aug 2011 13:03:15 +0930 Subject: [Gambas-user] 4028 doesn't run & 4035 Y U No Compile In-Reply-To: <1313978432.2229.4.camel@...1833...> References: <1313969271.2229.2.camel@...1833...> <201108220158.46301.gambas@...1...> <1313978432.2229.4.camel@...1833...> Message-ID: <4E51CDFB.2030807@...2308...> On 22/08/11 11:30, John Spikowski wrote: > On Mon, 2011-08-22 at 01:58 +0200, Beno?t Minisini wrote: > >>> [DIALOG BOX] >>> >>> This application has raised an unexpected >>> >>> >>> error and must abort. >>> >>> [6] Type mismatch: wanted _IconViewItem, got _IconView_Item instead. >>> ? >>> [END DIALOG] >>> >>> >>> jrs at ...1833...:~$ gambas3 >>> gb.qt4: warning: unable to load Qt translation: en_US.UTF-8 >>> warning: unable to load 16/cancel >>> ERROR: #6: Type mismatch: wanted _IconViewItem, got _IconView_Item >>> instead >>> 0: ? >>> 1: IconView._RefreshItem.1006 >>> 2: _IconView_Item.RefreshView.42 >>> 3: _IconView_Item.Text_Write.78 >>> 4: IconView.Add.250 >>> 5: IconPanel.Count_Write.117 >>> 6: IconPanel._new.46 >>> 7: FOption.FOption.0 >>> 8: FOption.FOption.0 >>> 9: FMain._new.41 >>> 10: Project.Main.268 >>> >>> >> Make sure that you recompile and reinstall everything. >> >> Regards, >> >> > I did the following like I always do. > > cd gambas/trunk > svn up > ./reconf-all&& ./configure -C&& make > sudo make install > > This is my first time for Gambas 3 not to run. > > I have got this working on mine with the following mod to my local trunk: At line 473 of _IconView_Item.class change the hItem parameter type to what I think is the proper type, viz _IconView_Item eSVN diff output is Index: _IconView_Item.class =================================================================== --- _IconView_Item.class (revision 4030) +++ _IconView_Item.class (working copy) @@ -473,7 +473,7 @@ End -Public Sub _compare(hItem As _IconViewItem) As Integer +Public Sub _compare(hItem As _IconView_Item) As Integer Dim hParent As IconView = GetIconView() hth Bruce From bbruen at ...2308... Mon Aug 22 06:33:25 2011 From: bbruen at ...2308... (Bruce Bruen) Date: Mon, 22 Aug 2011 14:03:25 +0930 Subject: [Gambas-user] 4030: Now getting IDE runtime faults with Desktop class Message-ID: <4E51DC15.3000905@...2308...> When trying to open a project from the welcome screen: CBookmarkList.Load.52: #11: Unknown symbol 'Path' in class 'Desktop' 0: CBookmarkList.Load.52 1: CBookmarkList._new.11 2: FDirChooser._new.41 3: DirChooser._new.35 4: FOpenProject.FOpenProject.0 5: FOpenProject.FOpenProject.0 6: FWelcome.btnOpen_Click.113 7: CCoolButton.Panel_MouseUp.192 8: FWelcome.Run.32 9: Project.Main.273 When trying to open a project from the toolbar CBookmarkList.Load.52: #11: Unknown symbol 'Path' in class 'Desktop' 0: CBookmarkList.Load.52 1: CBookmarkList._new.11 2: FDirChooser._new.41 3: DirChooser._new.35 4: FOpenProject.FOpenProject.0 5: FOpenProject.FOpenProject.0 6: FMain.OpenProject.106 7: FMain.Action_Activate.1193 8:>Action.Raise.217 9: MenuButton.Button_Click.134 10: MenuButton.DrawingArea_MouseUp.337 When trying to open a project from the menu CBookmarkList.Load.52: #11: Unknown symbol 'Path' in class 'Desktop' 0: CBookmarkList.Load.52 1: CBookmarkList._new.11 2: FDirChooser._new.41 3: DirChooser._new.35 4: FOpenProject.FOpenProject.0 5: FOpenProject.FOpenProject.0 6: FMain.OpenProject.106 7: FMain.Action_Activate.1193 8:>Action.Raise.217 When trying to select an icon for a project from the project properties form CBookmarkList.Load.52: #11: Unknown symbol 'Path' in class 'Desktop' 0: CBookmarkList.Load.52 1: CBookmarkList._new.11 2: FDirChooser._new.41 3: FileChooser._new.45 4: FSelectIcon.FSelectIcon.0 5: FSelectIcon.FSelectIcon.0 6: FPropertyProject.btnIcon_Click.646 7: FPropertyProject.Run.39 8: FMain.Action_Activate.1201 9:>Action.Raise.217 From kevinfishburne at ...1887... Mon Aug 22 07:23:13 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Mon, 22 Aug 2011 01:23:13 -0400 Subject: [Gambas-user] 4025: Y U No Compile? In-Reply-To: <201108220144.44382.gambas@...1...> References: <4E5124C4.9070105@...2308...> <201108211734.06428.gambas@...1...> <4E51937F.9010504@...2308...> <201108220144.44382.gambas@...1...> Message-ID: <4E51E7C1.1080706@...1887...> On 08/21/2011 07:44 PM, Beno?t Minisini wrote: >> On 22/08/11 01:04, Beno?t Minisini wrote: >>>> I cannot reconcile this one. 4023 make'd with no problems. >>> What is your GTK+ version ? >> gtk+2.24.5 >> >> The gtk docs say that gtk_window_set_has_resize_grip is "since 3.0" and >> the only thing I can find that is close is >> gtk_statusbar_set_has_resize_grip. >> >> Bruce >> > I have gtk+2.24.4 on Ubuntu, and gtk_window_set_has_resize_grip is declared in > the header files. > > I downloaded gtk+2.24.5 sources, and I didn't find > gtk_window_set_has_resize_grip in it! > > WTF? Is it an Ubuntu WTF again? > Could be Canonical or GNOME. After so many years I had to switch to Debian to escape the madness. Hopefully the GNOME team will get a clue before more forks appear than in a silverware drawer. Makes me sad, really. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From gambas at ...1... Mon Aug 22 08:49:28 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 22 Aug 2011 08:49:28 +0200 Subject: [Gambas-user] 4030: Now getting IDE runtime faults with Desktop class In-Reply-To: <4E51DC15.3000905@...2308...> References: <4E51DC15.3000905@...2308...> Message-ID: <201108220849.28820.gambas@...1...> > When trying to open a project from the welcome screen: > > ... Can you try with the last revision? -- Beno?t Minisini From gambas at ...1... Mon Aug 22 08:50:41 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 22 Aug 2011 08:50:41 +0200 Subject: [Gambas-user] 4028 doesn't run & 4035 Y U No Compile In-Reply-To: <4E51CDFB.2030807@...2308...> References: <1313969271.2229.2.camel@...1833...> <1313978432.2229.4.camel@...1833...> <4E51CDFB.2030807@...2308...> Message-ID: <201108220850.41998.gambas@...1...> > On 22/08/11 11:30, John Spikowski wrote: > > On Mon, 2011-08-22 at 01:58 +0200, Beno?t Minisini wrote: > >>> [DIALOG BOX] > >>> > >>> This application has raised an unexpected > >>> > >>> > >>> error and must abort. > >>> > >>> [6] Type mismatch: wanted _IconViewItem, got _IconView_Item instead. > >>> ? > >>> [END DIALOG] > >>> > >>> > >>> jrs at ...1833...:~$ gambas3 > >>> gb.qt4: warning: unable to load Qt translation: en_US.UTF-8 > >>> warning: unable to load 16/cancel > >>> ERROR: #6: Type mismatch: wanted _IconViewItem, got _IconView_Item > >>> instead > >>> 0: ? > >>> 1: IconView._RefreshItem.1006 > >>> 2: _IconView_Item.RefreshView.42 > >>> 3: _IconView_Item.Text_Write.78 > >>> 4: IconView.Add.250 > >>> 5: IconPanel.Count_Write.117 > >>> 6: IconPanel._new.46 > >>> 7: FOption.FOption.0 > >>> 8: FOption.FOption.0 > >>> 9: FMain._new.41 > >>> 10: Project.Main.268 > >> > >> Make sure that you recompile and reinstall everything. > >> > >> Regards, > > > > I did the following like I always do. > > > > cd gambas/trunk > > svn up > > ./reconf-all&& ./configure -C&& make > > sudo make install > > > > This is my first time for Gambas 3 not to run. > > I have got this working on mine with the following mod to my local trunk: > > At line 473 of _IconView_Item.class change the hItem parameter type to > what I think is the proper type, viz _IconView_Item > > eSVN diff output is > > Index: _IconView_Item.class > =================================================================== > --- _IconView_Item.class (revision 4030) > +++ _IconView_Item.class (working copy) > @@ -473,7 +473,7 @@ > > End > > -Public Sub _compare(hItem As _IconViewItem) As Integer > +Public Sub _compare(hItem As _IconView_Item) As Integer > > Dim hParent As IconView = GetIconView() > > > hth > Bruce > This was fixed in revision #4031. Please run svn update to check that you have the last revision each time, especially when I make heavy changes like that! :-) Regards, -- Beno?t Minisini From bbruen at ...2308... Mon Aug 22 09:37:42 2011 From: bbruen at ...2308... (Bruce Bruen) Date: Mon, 22 Aug 2011 17:07:42 +0930 Subject: [Gambas-user] 4028 doesn't run & 4035 Y U No Compile In-Reply-To: <201108220850.41998.gambas@...1...> References: <1313969271.2229.2.camel@...1833...> <1313978432.2229.4.camel@...1833...> <4E51CDFB.2030807@...2308...> <201108220850.41998.gambas@...1...> Message-ID: <4E520746.4090501@...2308...> On 22/08/11 16:20, Beno?t Minisini wrote: >> On 22/08/11 11:30, John Spikowski wrote: >> >>> On Mon, 2011-08-22 at 01:58 +0200, Beno?t Minisini wrote: >>> >>>>> [DIALOG BOX] >>>>> >>>>> This application has raised an unexpected >>>>> >>>>> >>>>> error and must abort. >>>>> >>>>> [6] Type mismatch: wanted _IconViewItem, got _IconView_Item instead. >>>>> ? >>>>> [END DIALOG] >>>>> >>>>> >>>>> jrs at ...1833...:~$ gambas3 >>>>> gb.qt4: warning: unable to load Qt translation: en_US.UTF-8 >>>>> warning: unable to load 16/cancel >>>>> ERROR: #6: Type mismatch: wanted _IconViewItem, got _IconView_Item >>>>> instead >>>>> 0: ? >>>>> 1: IconView._RefreshItem.1006 >>>>> 2: _IconView_Item.RefreshView.42 >>>>> 3: _IconView_Item.Text_Write.78 >>>>> 4: IconView.Add.250 >>>>> 5: IconPanel.Count_Write.117 >>>>> 6: IconPanel._new.46 >>>>> 7: FOption.FOption.0 >>>>> 8: FOption.FOption.0 >>>>> 9: FMain._new.41 >>>>> 10: Project.Main.268 >>>>> >>>> Make sure that you recompile and reinstall everything. >>>> >>>> Regards, >>>> >>> I did the following like I always do. >>> >>> cd gambas/trunk >>> svn up >>> ./reconf-all&& ./configure -C&& make >>> sudo make install >>> >>> This is my first time for Gambas 3 not to run. >>> >> I have got this working on mine with the following mod to my local trunk: >> >> At line 473 of _IconView_Item.class change the hItem parameter type to >> what I think is the proper type, viz _IconView_Item >> >> eSVN diff output is >> >> Index: _IconView_Item.class >> =================================================================== >> --- _IconView_Item.class (revision 4030) >> +++ _IconView_Item.class (working copy) >> @@ -473,7 +473,7 @@ >> >> End >> >> -Public Sub _compare(hItem As _IconViewItem) As Integer >> +Public Sub _compare(hItem As _IconView_Item) As Integer >> >> Dim hParent As IconView = GetIconView() >> >> >> hth >> Bruce >> >> > This was fixed in revision #4031. Please run svn update to check that you have > the last revision each time, especially when I make heavy changes like that! > :-) > > Regards, > > > I think that my local trunk is corrupted. I think that I did an update via eSVN while you were committing. I think I'll chuck eSVN. I am creating a new local trunk (4031) via the published command line method. I'll let you know how we go. Bruce From support at ...2529... Mon Aug 22 09:45:03 2011 From: support at ...2529... (John Spikowski) Date: Mon, 22 Aug 2011 00:45:03 -0700 Subject: [Gambas-user] 4028 doesn't run & 4035 Y U No Compile In-Reply-To: <201108220850.41998.gambas@...1...> References: <1313969271.2229.2.camel@...1833...> <1313978432.2229.4.camel@...1833...> <4E51CDFB.2030807@...2308...> <201108220850.41998.gambas@...1...> Message-ID: <1313999103.18594.1.camel@...1833...> On Mon, 2011-08-22 at 08:50 +0200, Beno?t Minisini wrote: > > On 22/08/11 11:30, John Spikowski wrote: > > > On Mon, 2011-08-22 at 01:58 +0200, Beno?t Minisini wrote: > > >>> [DIALOG BOX] > > >>> > > >>> This application has raised an unexpected > > >>> > > >>> > > >>> error and must abort. > > >>> > > >>> [6] Type mismatch: wanted _IconViewItem, got _IconView_Item instead. > > >>> ? > > >>> [END DIALOG] > > >>> > > >>> > > >>> jrs at ...1833...:~$ gambas3 > > >>> gb.qt4: warning: unable to load Qt translation: en_US.UTF-8 > > >>> warning: unable to load 16/cancel > > >>> ERROR: #6: Type mismatch: wanted _IconViewItem, got _IconView_Item > > >>> instead > > >>> 0: ? > > >>> 1: IconView._RefreshItem.1006 > > >>> 2: _IconView_Item.RefreshView.42 > > >>> 3: _IconView_Item.Text_Write.78 > > >>> 4: IconView.Add.250 > > >>> 5: IconPanel.Count_Write.117 > > >>> 6: IconPanel._new.46 > > >>> 7: FOption.FOption.0 > > >>> 8: FOption.FOption.0 > > >>> 9: FMain._new.41 > > >>> 10: Project.Main.268 > > >> > > >> Make sure that you recompile and reinstall everything. > > >> > > >> Regards, > > > > > > I did the following like I always do. > > > > > > cd gambas/trunk > > > svn up > > > ./reconf-all&& ./configure -C&& make > > > sudo make install > > > > > > This is my first time for Gambas 3 not to run. > > > > I have got this working on mine with the following mod to my local trunk: > > > > At line 473 of _IconView_Item.class change the hItem parameter type to > > what I think is the proper type, viz _IconView_Item > > > > eSVN diff output is > > > > Index: _IconView_Item.class > > =================================================================== > > --- _IconView_Item.class (revision 4030) > > +++ _IconView_Item.class (working copy) > > @@ -473,7 +473,7 @@ > > > > End > > > > -Public Sub _compare(hItem As _IconViewItem) As Integer > > +Public Sub _compare(hItem As _IconView_Item) As Integer > > > > Dim hParent As IconView = GetIconView() > > > > > > hth > > Bruce > > > > This was fixed in revision #4031. Please run svn update to check that you have > the last revision each time, especially when I make heavy changes like that! > :-) > > Regards, > > 4031 ran but got the following message at the end of the make install. || || Unable to compile gb.desktop || From gambas at ...1... Mon Aug 22 09:48:12 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 22 Aug 2011 09:48:12 +0200 Subject: [Gambas-user] 4028 doesn't run & 4035 Y U No Compile In-Reply-To: <1313999103.18594.1.camel@...1833...> References: <1313969271.2229.2.camel@...1833...> <201108220850.41998.gambas@...1...> <1313999103.18594.1.camel@...1833...> Message-ID: <201108220948.12993.gambas@...1...> > > 4031 ran but got the following message at the end of the make install. > > || Unable to compile gb.desktop > OK! It should be fixed in revision #4032. -- Beno?t Minisini From bbruen at ...2308... Mon Aug 22 11:11:11 2011 From: bbruen at ...2308... (Bruce Bruen) Date: Mon, 22 Aug 2011 18:41:11 +0930 Subject: [Gambas-user] 4028 doesn't run & 4035 Y U No Compile In-Reply-To: <201108220948.12993.gambas@...1...> References: <1313969271.2229.2.camel@...1833...> <201108220850.41998.gambas@...1...> <1313999103.18594.1.camel@...1833...> <201108220948.12993.gambas@...1...> Message-ID: <4E521D2F.4020402@...2308...> On 22/08/11 17:18, Beno?t Minisini wrote: >> 4031 ran but got the following message at the end of the make install. >> >> || Unable to compile gb.desktop >> >> > OK! It should be fixed in revision #4032. > > Well this has been a very frustrating day. http://www.sherv.net/cm/emo/funny/1/bang.gif But in the end... 1) I think that eSVN _does_ ignore warnings when it is updating. So, never again. 2) make clean and make uninstall are necessary 3) I don't know whether it takes a long time for European electrons to get to South Australia, but.. I had to recreate the local trunk from scratch *and* do another _svn up_ to get 4032 to "be" 4032 4) but finally :-) 8-) :-) all reconf'd; all configured; all make'd and all make installed. YAY! ... now where was I, oh yes, that DirChooser ... be right back :-) btw, thanks Beno?t for staying with this! Bruce From gambas.fr at ...626... Mon Aug 22 11:29:04 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 22 Aug 2011 11:29:04 +0200 Subject: [Gambas-user] Bug on compilation last svn : Message-ID: CONFIG_H -I. -I.. -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14 -I/usr/include/librsvg-2.0 -I/usr/include/gtk-unix-print-2.0 -I../share -pipe -Wall -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -fno-omit-frame-pointer -MT gmainwindow.lo -MD -MP -MF .deps/gmainwindow.Tpo -c gmainwindow.cpp -fPIC -DPIC -o .libs/gmainwindow.o gmainwindow.cpp: In member function 'virtual void gMainWindow::setVisible(bool)': gmainwindow.cpp:488:60: error: 'gtk_window_set_has_resize_grip' was not declared in this scope make[2]: *** [gmainwindow.lo] Erreur 1 make[2] : on quitte le r?pertoire ? /home/fabien/Documents/Developpement/trunk/gb.gtk/src ? make[1]: *** [all-recursive] Erreur 1 make[1] : on quitte le r?pertoire ? /home/fabien/Documents/Developpement/trunk/gb.gtk ? make: *** [all] Erreur 2 [fabien at ...2647... gb.gtk]$ extra/gtk2 2.24.5-3 [install?] The GTK+ Toolkit (v2) extra/gtk3 3.0.12-1 [install?] The GTK+ Toolkit (v3) -- Fabien Bodard From gambas.fr at ...626... Mon Aug 22 11:29:45 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 22 Aug 2011 11:29:45 +0200 Subject: [Gambas-user] Bug on compilation last svn : In-Reply-To: References: Message-ID: 2011/8/22 Fabien Bodard : > CONFIG_H -I. -I.. -pthread -I/usr/include/gtk-2.0 > -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo > -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 > -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include > -I/usr/include/pixman-1 -I/usr/include/freetype2 > -I/usr/include/libpng14 -I/usr/include/librsvg-2.0 > -I/usr/include/gtk-unix-print-2.0 -I../share -pipe -Wall > -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g > -Os -fno-omit-frame-pointer -MT gmainwindow.lo -MD -MP -MF > .deps/gmainwindow.Tpo -c gmainwindow.cpp ?-fPIC -DPIC -o > .libs/gmainwindow.o > gmainwindow.cpp: In member function 'virtual void > gMainWindow::setVisible(bool)': > gmainwindow.cpp:488:60: error: 'gtk_window_set_has_resize_grip' was > not declared in this scope > make[2]: *** [gmainwindow.lo] Erreur 1 > make[2] : on quitte le r?pertoire ? > /home/fabien/Documents/Developpement/trunk/gb.gtk/src ? > make[1]: *** [all-recursive] Erreur 1 > make[1] : on quitte le r?pertoire ? > /home/fabien/Documents/Developpement/trunk/gb.gtk ? > make: *** [all] Erreur 2 > [fabien at ...2647... gb.gtk]$ > > extra/gtk2 2.24.5-3 [install?] > ? ?The GTK+ Toolkit (v2) > extra/gtk3 3.0.12-1 [install?] > ? ?The GTK+ Toolkit (v3) > > > -- > Fabien Bodard > and i'm on arch / kde -- Fabien Bodard From gambas.fr at ...626... Mon Aug 22 11:35:07 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 22 Aug 2011 11:35:07 +0200 Subject: [Gambas-user] Problem on breakline position Message-ID: The editor highlight the line after the break line ... not the line where the execution is stopped -- Fabien Bodard From sbungay at ...981... Mon Aug 22 14:44:15 2011 From: sbungay at ...981... (Stephen Bungay) Date: Mon, 22 Aug 2011 08:44:15 -0400 Subject: [Gambas-user] Talking to a process... Message-ID: <4E524F1F.4010201@...981...> When sending commands to a process via PRINT the receiving process (vlc in this case) is reacting at a glacial/geological pace. i.e. the app sends "pause" to the process and it might take a minute or two to react to the command (if at all), definitely non-useful. Anyone else ever experience delays like this when talking to a process? From linuxos at ...1896... Mon Aug 22 20:21:11 2011 From: linuxos at ...1896... (Olivier Cruilles) Date: Mon, 22 Aug 2011 20:21:11 +0200 Subject: [Gambas-user] WebView Object and proxy parameter In-Reply-To: <201108201317.23275.gambas@...1...> References: <4F0667BE-36CE-4C4D-82EA-26A18970F93F@...1896...> <201108201301.39864.gambas@...1...> <201108201317.23275.gambas@...1...> Message-ID: <02045B7C-2A2A-4596-8EB5-73B5D7CAADDF@...1896...> Beno?t, Great, I will test it as soon is possible and I answer you. Thank you Olivier Cruilles Mail: linuxos at ...1896... Le 20 ao?t 2011 ? 13:17, Beno?t Minisini a ?crit : >>> Hello all, >>> >>> >>> Does anyone know how to use or config the proxy parameter (Ex: >>> http://192.168.0.1:8080) using a WebView object please ? >>> >>> I try to configure the HTTP_PROXY variable in the user profile, try to >>> configure in the KDE control panel parameters of proxy but nothing >>> change. >>> >>> Fedora 14 + Gnome >>> Gambas3 (last svn release) >>> qt graphic interface >>> >>> thanks >>> >>> Olivier Cruilles >>> Mail: linuxos at ...1896... >> >> Hi Olivier, >> >> In revision #4018, I have added a WebView.Proxy property that will allow >> you to define all proxy properties: Type, Host, Port, User and Password. >> The Type property can be one of the following: WebView.NoProxy, >> WebView.HttpProxy and WebView.Socks5Proxy. >> >> I have no proxy there, so please test and tell me! >> >> Regards, > > Oops. I cannot put a Proxy property in WebView, it overrides the Control.Proxy > property. > > In revision #4019, I put the Proxy property in WebSettings (which is more > logical anyway!). > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Get a FREE DOWNLOAD! and learn more about uberSVN rich system, > user administration capabilities and model configuration. Take > the hassle out of deploying and managing Subversion and the > tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From math.eber at ...221... Mon Aug 22 21:07:42 2011 From: math.eber at ...221... (Matti) Date: Mon, 22 Aug 2011 21:07:42 +0200 Subject: [Gambas-user] Talking to a process... In-Reply-To: <4E524F1F.4010201@...981...> References: <4E524F1F.4010201@...981...> Message-ID: <4E52A8FE.2060905@...221...> Do you use KDE 4.6.0? If yes, it might be a bug that VLC (and other apps), KDE and Qt are blaming each other for: http://forum.videolan.org/viewtopic.php?f=13&t=85408 https://bugs.kde.org/show_bug.cgi?id=260719 I have the same symptoms with the gambas MusicPlayer example. Am 22.08.2011 14:44, schrieb Stephen Bungay: > When sending commands to a process via PRINT the receiving process (vlc > in this case) is reacting at a glacial/geological pace. i.e. the app > sends "pause" to the process and it might take a minute or two to react > to the command (if at all), definitely non-useful. Anyone else ever > experience delays like this when talking to a process? From gambas at ...1... Mon Aug 22 22:23:58 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 22 Aug 2011 22:23:58 +0200 Subject: [Gambas-user] Bug on compilation last svn : In-Reply-To: References: Message-ID: <201108222223.58148.gambas@...1...> > > and i'm on arch / kde gb.gtk should compile now with revision #4033! -- Beno?t Minisini From gambas at ...1... Mon Aug 22 22:24:20 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 22 Aug 2011 22:24:20 +0200 Subject: [Gambas-user] Problem on breakline position In-Reply-To: References: Message-ID: <201108222224.20408.gambas@...1...> > The editor highlight the line after the break line ... not the line > where the execution is stopped I need the project and how to reproduce that. -- Beno?t Minisini From linuxos at ...1896... Mon Aug 22 22:53:56 2011 From: linuxos at ...1896... (Olivier Cruilles) Date: Mon, 22 Aug 2011 22:53:56 +0200 Subject: [Gambas-user] WebView Object and proxy parameter In-Reply-To: <02045B7C-2A2A-4596-8EB5-73B5D7CAADDF@...1896...> References: <4F0667BE-36CE-4C4D-82EA-26A18970F93F@...1896...> <201108201301.39864.gambas@...1...> <201108201317.23275.gambas@...1...> <02045B7C-2A2A-4596-8EB5-73B5D7CAADDF@...1896...> Message-ID: <1036086D-267B-426D-B3F3-108EB7BA01AA@...1896...> Beno?t, It works fine. If I find a problem I inform you. Olivier Cruilles Mail: linuxos at ...1896... Le 22 ao?t 2011 ? 20:21, Olivier Cruilles a ?crit : > > Beno?t, > > Great, I will test it as soon is possible and I answer you. > > Thank you > > > Olivier Cruilles > Mail: linuxos at ...1896... > > Le 20 ao?t 2011 ? 13:17, Beno?t Minisini a ?crit : > >>>> Hello all, >>>> >>>> >>>> Does anyone know how to use or config the proxy parameter (Ex: >>>> http://192.168.0.1:8080) using a WebView object please ? >>>> >>>> I try to configure the HTTP_PROXY variable in the user profile, try to >>>> configure in the KDE control panel parameters of proxy but nothing >>>> change. >>>> >>>> Fedora 14 + Gnome >>>> Gambas3 (last svn release) >>>> qt graphic interface >>>> >>>> thanks >>>> >>>> Olivier Cruilles >>>> Mail: linuxos at ...1896... >>> >>> Hi Olivier, >>> >>> In revision #4018, I have added a WebView.Proxy property that will allow >>> you to define all proxy properties: Type, Host, Port, User and Password. >>> The Type property can be one of the following: WebView.NoProxy, >>> WebView.HttpProxy and WebView.Socks5Proxy. >>> >>> I have no proxy there, so please test and tell me! >>> >>> Regards, >> >> Oops. I cannot put a Proxy property in WebView, it overrides the Control.Proxy >> property. >> >> In revision #4019, I put the Proxy property in WebSettings (which is more >> logical anyway!). >> >> -- >> Beno?t Minisini >> >> ------------------------------------------------------------------------------ >> Get a FREE DOWNLOAD! and learn more about uberSVN rich system, >> user administration capabilities and model configuration. Take >> the hassle out of deploying and managing Subversion and the >> tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2 >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > From gambas at ...2524... Tue Aug 23 04:47:50 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 23 Aug 2011 02:47:50 +0000 Subject: [Gambas-user] Issue 81 in gambas: DirChooser doesn't reflect Root change In-Reply-To: <2-6813199134517018827-18425516738229820327-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-18425516738229820327-gambas=googlecode.com@...2524...> <0-6813199134517018827-18425516738229820327-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-18425516738229820327-gambas=googlecode.com@...2524...> Comment #3 on issue 81 by adamn... at ...626...: DirChooser doesn't reflect Root change http://code.google.com/p/gambas/issues/detail?id=81 Tested OK, confirmed fixed From gambas at ...2524... Tue Aug 23 04:51:51 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 23 Aug 2011 02:51:51 +0000 Subject: [Gambas-user] Issue 82 in gambas: DirChooser Toolbar mangled in gtk+ In-Reply-To: <2-6813199134517018827-15208511267361058088-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-15208511267361058088-gambas=googlecode.com@...2524...> <0-6813199134517018827-15208511267361058088-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-15208511267361058088-gambas=googlecode.com@...2524...> Comment #3 on issue 82 by adamn... at ...626...: DirChooser Toolbar mangled in gtk+ http://code.google.com/p/gambas/issues/detail?id=82 Tested OK, confirmed fixed From gambas at ...2524... Tue Aug 23 05:42:17 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 23 Aug 2011 03:42:17 +0000 Subject: [Gambas-user] Issue 83 in gambas: DirView expand fails when bad symlinks encountered Message-ID: <0-6813199134517018827-16719025081959018468-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 83 by adamn... at ...626...: DirView expand fails when bad symlinks encountered http://code.google.com/p/gambas/issues/detail?id=83 1) This problem regards the DirView control in both GB2 and GB3 (and the DirChooser control as well) The issue is a little obscure and it is important to see the bug and not the symptom, so please bear with me. The issue arises if there is a broken symbolic link in a subdirectory below the root directory shown by the DirView. The bug occurs if some action is taken on the directory while the DirView is expanding (via one of the events). When the broken link is encountered, gambas correctly raises an error and thus control is returned to the application. However, if the application does not handle the error execution continues but the bug is apparent. The bug is that the remainder of the subdirectory with the broken link AND ALL OTHER DIRECTORIES AT THE SAME LEVEL ARE IGNORED BY THE DIRVIEW. I have attached a demonstration project (GB3) that shows one way to expose the bug. Note the stress is on "one way", there are others but the demo project shows it as simply as I can. 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: TRUNK and 2.23.? Revision: r4032 Operating system: Linux Distribution: Gentoo based Architecture: x86 GUI component: GTK+ Desktop used: LXDE 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. N/A 5) Explain clearly how to reproduce the bug or the crash. This project creates a set of subdirectories under itself to demonstrate the problem. The instructions are: a) When the program starts, the dirview shows its own directory, ignore this b) Click on "1. Set up demo". This creates a heirarchy of directories beneath the project directory in a directory called "testbed", each of the 5 directories contains 5 subdirectories. Except Dir3, which contains an extra directory (Subdir2a) that will be used for the demonstration. c) Expand the directories in the dirview so you can understand the structure. Each directory contains a symlink to a picture in the project directory, which d) Make sure that "Dir3" is expanded and selected. e) Click on "2. Make bad symlink". This sets up the problem so it can be seen. (It changes the icon link for SubDir2a to a new picture and then deletes that picture. Thus creating a broken symbolic link) f) Click on "3. Show Bug". This refreshes the DirView. Which now only shows two directories in Dir3. The other 4 are ignored. The sequence of buttons can be repeated. 6) By doing that carefully, you have done 50% of the bug fix job! Finally, I repeat. This is one way of making the bug occur. Obviously there is a workaround for the demo in that the DirView1_Icon handler should do a Try DirView1.Icon = Picture.Load(Path &/ "icon.png" If Error ... However, in my situation the bug is occurring in a DirView1_Change handler that does not involve setting the icon. It is occurring in a non-interactive piece of code far removed from the form code and where the error has been consumed silently because other (expected) run time errors are handled. Oh, I almost forgot. This demo also somehow results in circular references. I am not sure if that is related or not. Attachments: badsymlinks-0.0.1.tar.gz 742 KB From bbruen at ...2308... Tue Aug 23 08:28:19 2011 From: bbruen at ...2308... (Bruce Bruen) Date: Tue, 23 Aug 2011 15:58:19 +0930 Subject: [Gambas-user] Code Origami Mysteries Message-ID: <4E534883.9060004@...2308...> Well, I'm flabbergasted! :-) I have just discovered the code folding in the gambas 3 IDE. (Yes, I know I'm slow. It comes with age. :-X ) But two things have got me beat. 1. Is there a keyboard shortcut to collapse/expand the current folding region? 2. (A bit more mysterious!) I use a standard prototype for all my classes so I can remember where to find things (age again - memory span is about 5 milliseconds these days). It looks like this: '================================================================= '==== EVENT Declarations ==== '================================================================= '================================================================= '==== Property Declarations ==== '================================================================= '================================================================= '==== Local Property Variables ==== '================================================================= '================================================================= '==== Local Variables ==== '================================================================= '================================================================= '==== Special Methods ==== '================================================================= '================================================================= '==== Public Methods ==== '================================================================= '================================================================= '==== Private Methods ==== '================================================================= '================================================================= '==== Event Handlers ==== '================================================================= '================================================================= '==== Property Accessors ==== '================================================================= and here is a picture of a sample class with all regions collapsed collapsed Now, that is absolutely fantatistic!!!!!! But. Sometimes those header block comments are not shown. Here's an example, caused by including a blank line after the block comment: cant see some blocks Notice how the "Property Accessors" block comment is no longer visible. The mystery to me is: What are the rules that the IDE follows when folding code? cheers Bruce From bbruen at ...2308... Tue Aug 23 08:34:24 2011 From: bbruen at ...2308... (Bruce Bruen) Date: Tue, 23 Aug 2011 16:04:24 +0930 Subject: [Gambas-user] Code Origami Mysteries In-Reply-To: <4E534883.9060004@...2308...> References: <4E534883.9060004@...2308...> Message-ID: <4E5349F0.4000501@...2308...> On 23/08/11 15:58, Bruce Bruen wrote: > Well, I'm flabbergasted! :-) > > I have just discovered the code folding in the gambas 3 IDE. (Yes, I > know I'm slow. It comes with age. :-X ) > > But two things have got me beat. > > Now three things! Where did the attached screenshots go? Never mind about this whole thing. sorry Bruce From gambas.fr at ...626... Tue Aug 23 09:32:40 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 23 Aug 2011 09:32:40 +0200 Subject: [Gambas-user] Problem on breakline position In-Reply-To: <201108222224.20408.gambas@...1...> References: <201108222224.20408.gambas@...1...> Message-ID: Le 22 ao?t 2011 22:24, Beno?t Minisini a ?crit : >> The editor highlight the line after the break line ... not the line >> where the execution is stopped > > I need the project and how to reproduce that. All the projects... when there is an error the line not stop at the good place. the debugger not return the good error line too . so i think it come from the debugger. > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > uberSVN's rich system and user administration capabilities and model > configuration take the hassle out of deploying and managing Subversion and > the tools developers use with it. Learn more about uberSVN and get a free > download at: ?http://p.sf.net/sfu/wandisco-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From sbungay at ...981... Tue Aug 23 14:04:35 2011 From: sbungay at ...981... (Stephen Bungay) Date: Tue, 23 Aug 2011 08:04:35 -0400 Subject: [Gambas-user] Talking to a process... In-Reply-To: <4E52A8FE.2060905@...221...> References: <4E524F1F.4010201@...981...> <4E52A8FE.2060905@...221...> Message-ID: <4E539753.7060105@...981...> Hi Matti; I'm using FC-13 and Gnome. I'll head on over to the videolan forum via the link you gave (thanks much) and have a read. VLC also has a telnet interface and I might be able to use that. If however the problem is at a more fundamental level than the applications we're trying to talk to via the process object then I would expect the same results. Thanks for the reply. I'll post back what I find (if anything). Regards Steve. On 08/22/2011 03:07 PM, Matti wrote: > Do you use KDE 4.6.0? > If yes, it might be a bug that VLC (and other apps), KDE and Qt are blaming each > other for: > http://forum.videolan.org/viewtopic.php?f=13&t=85408 > https://bugs.kde.org/show_bug.cgi?id=260719 > > I have the same symptoms with the gambas MusicPlayer example. > > Am 22.08.2011 14:44, schrieb Stephen Bungay: >> When sending commands to a process via PRINT the receiving process (vlc >> in this case) is reacting at a glacial/geological pace. i.e. the app >> sends "pause" to the process and it might take a minute or two to react >> to the command (if at all), definitely non-useful. Anyone else ever >> experience delays like this when talking to a process? > ------------------------------------------------------------------------------ > uberSVN's rich system and user administration capabilities and model > configuration take the hassle out of deploying and managing Subversion and > the tools developers use with it. Learn more about uberSVN and get a free > download at: http://p.sf.net/sfu/wandisco-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Tue Aug 23 14:14:36 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 23 Aug 2011 14:14:36 +0200 Subject: [Gambas-user] Problem on breakline position In-Reply-To: References: <201108222224.20408.gambas@...1...> Message-ID: <201108231414.36626.gambas@...1...> > Le 22 ao?t 2011 22:24, Beno?t Minisini a ?crit : > >> The editor highlight the line after the break line ... not the line > >> where the execution is stopped > > > > I need the project and how to reproduce that. > > All the projects... I don't see that in any of my projects, so not all the projects! -- Beno?t Minisini From gambas at ...1... Tue Aug 23 14:18:57 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 23 Aug 2011 14:18:57 +0200 Subject: [Gambas-user] Talking to a process... In-Reply-To: <4E539753.7060105@...981...> References: <4E524F1F.4010201@...981...> <4E52A8FE.2060905@...221...> <4E539753.7060105@...981...> Message-ID: <201108231418.57730.gambas@...1...> > Hi Matti; > > I'm using FC-13 and Gnome. I'll head on over to the videolan forum > via the link you gave (thanks much) and have a read. > > VLC also has a telnet interface and I might be able to use that. If > however the problem is at a more fundamental level than the applications > we're trying to talk to via the process object then I would expect the > same results. > > Thanks for the reply. I'll post back what I find (if anything). > > Regards > Steve. > I don't remember: did you send me your project so that I can reproduce the problem and eventually see if I can fix it? -- Beno?t Minisini From sbungay at ...981... Tue Aug 23 14:33:12 2011 From: sbungay at ...981... (Stephen Bungay) Date: Tue, 23 Aug 2011 08:33:12 -0400 Subject: [Gambas-user] Talking to a process... In-Reply-To: <201108231418.57730.gambas@...1...> References: <4E524F1F.4010201@...981...> <4E52A8FE.2060905@...221...> <4E539753.7060105@...981...> <201108231418.57730.gambas@...1...> Message-ID: <4E539E08.703@...981...> Yes, I'll send it along again (it has changed since last sent). On 08/23/2011 08:18 AM, Beno?t Minisini wrote: >> Hi Matti; >> >> I'm using FC-13 and Gnome. I'll head on over to the videolan forum >> via the link you gave (thanks much) and have a read. >> >> VLC also has a telnet interface and I might be able to use that. If >> however the problem is at a more fundamental level than the applications >> we're trying to talk to via the process object then I would expect the >> same results. >> >> Thanks for the reply. I'll post back what I find (if anything). >> >> Regards >> Steve. >> > I don't remember: did you send me your project so that I can reproduce the > problem and eventually see if I can fix it? > From sbungay at ...981... Tue Aug 23 14:40:11 2011 From: sbungay at ...981... (Stephen Bungay) Date: Tue, 23 Aug 2011 08:40:11 -0400 Subject: [Gambas-user] Talking to a process... In-Reply-To: <201108231418.57730.gambas@...1...> References: <4E524F1F.4010201@...981...> <4E52A8FE.2060905@...221...> <4E539753.7060105@...981...> <201108231418.57730.gambas@...1...> Message-ID: <4E539FAB.1040102@...981...> On 08/23/2011 08:18 AM, Beno?t Minisini wrote: >> Hi Matti; >> >> I'm using FC-13 and Gnome. I'll head on over to the videolan forum >> via the link you gave (thanks much) and have a read. >> >> VLC also has a telnet interface and I might be able to use that. If >> however the problem is at a more fundamental level than the applications >> we're trying to talk to via the process object then I would expect the >> same results. >> >> Thanks for the reply. I'll post back what I find (if anything). >> >> Regards >> Steve. >> > I don't remember: did you send me your project so that I can reproduce the > problem and eventually see if I can fix it? > Sent it to gambas at ...52... From rterry at ...1946... Tue Aug 23 14:45:39 2011 From: rterry at ...1946... (richard terry) Date: Tue, 23 Aug 2011 22:45:39 +1000 Subject: [Gambas-user] WebView1_MouseDown() question Message-ID: <201108232245.39199.rterry@...1946...> This code I got I think from the webview demo some time ago: If hTest.Selected Then Clipboard.Copy(Webview1.SelectedText) Print webview1.SelectedText End If If the webview contains html, then the print webview1.selected text prints out plain text. Is there anyway I can capture the html of the text? into a variable. It must be around somewhere because if I select the text, due a ctrl copy, and then paste it into a textarea with the middle mouse button, then it is pasted as formatted html. REgards Richard From gambas at ...2524... Tue Aug 23 14:52:32 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 23 Aug 2011 12:52:32 +0000 Subject: [Gambas-user] Issue 83 in gambas: DirView expand fails when bad symlinks encountered In-Reply-To: <0-6813199134517018827-16719025081959018468-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-16719025081959018468-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-16719025081959018468-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -Version Version-TRUNK Comment #1 on issue 83 by benoit.m... at ...626...: DirView expand fails when bad symlinks encountered http://code.google.com/p/gambas/issues/detail?id=83 (No comment was entered for this change.) From gambas at ...2524... Tue Aug 23 14:56:34 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 23 Aug 2011 12:56:34 +0000 Subject: [Gambas-user] Issue 83 in gambas: DirView expand fails when bad symlinks encountered In-Reply-To: <1-6813199134517018827-16719025081959018468-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-16719025081959018468-gambas=googlecode.com@...2524...> <0-6813199134517018827-16719025081959018468-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-16719025081959018468-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #2 on issue 83 by benoit.m... at ...626...: DirView expand fails when bad symlinks encountered http://code.google.com/p/gambas/issues/detail?id=83 Thanks for that very nice bug report. :-) The bug should be fixed in revision #4035. From gambas at ...1... Tue Aug 23 15:47:33 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 23 Aug 2011 15:47:33 +0200 Subject: [Gambas-user] WebView1_MouseDown() question In-Reply-To: <201108232245.39199.rterry@...1946...> References: <201108232245.39199.rterry@...1946...> Message-ID: <201108231547.33678.gambas@...1...> > This code I got I think from the webview demo some time ago: > > If hTest.Selected Then > Clipboard.Copy(Webview1.SelectedText) > Print webview1.SelectedText > End If > > If the webview contains html, then the print webview1.selected text prints > out plain text. > > Is there anyway I can capture the html of the text? into a variable. It > must be around somewhere because if I select the text, due a ctrl copy, > and then paste it into a textarea with the middle mouse button, then it is > pasted as formatted html. > > REgards > > Richard > Apparently there is no way in QtWebKit to retrieve the HTML selected text... I will investigate. And please if you can use a mail subject that is related to its contents! Regards, -- Beno?t Minisini From gambas at ...1... Tue Aug 23 15:49:42 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 23 Aug 2011 15:49:42 +0200 Subject: [Gambas-user] Code Origami Mysteries In-Reply-To: <4E534883.9060004@...2308...> References: <4E534883.9060004@...2308...> Message-ID: <201108231549.42588.gambas@...1...> > Well, I'm flabbergasted! :-) > > I have just discovered the code folding in the gambas 3 IDE. (Yes, I > know I'm slow. It comes with age. :-X ) Didn't you ask yourself what all these little arrows are? ;-) > > But two things have got me beat. > > 1. Is there a keyboard shortcut to collapse/expand the current folding > region? CTRL+ENTER and CTRL+SHIFT+ENTER > > 2. (A bit more mysterious!) I use a standard prototype for all my > classes so I can remember where to find things (age again - memory span > is about 5 milliseconds these days). It looks like this: > > '================================================================= > '==== EVENT Declarations ==== > '================================================================= > > '================================================================= > '==== Property Declarations ==== > '================================================================= > > '================================================================= > '==== Local Property Variables ==== > '================================================================= > > '================================================================= > '==== Local Variables ==== > '================================================================= > > '================================================================= > '==== Special Methods ==== > '================================================================= > > '================================================================= > '==== Public Methods ==== > '================================================================= > > '================================================================= > '==== Private Methods ==== > '================================================================= > > '================================================================= > '==== Event Handlers ==== > '================================================================= > > '================================================================= > '==== Property Accessors ==== > '================================================================= > > and here is a picture of a sample class with all regions collapsed > collapsed Where ? > > Now, that is absolutely fantatistic!!!!!! > But. > > Sometimes those header block comments are not shown. Here's an example, > caused by including a blank line after the block comment: > cant see some blocks > Notice how the "Property Accessors" block comment is no longer visible. > > The mystery to me is: > > What are the rules that the IDE follows when folding code? > > cheers > Bruce > Everything between two procedure limits is collapsed. So if your comments are AFTER the procedure, they are collapsed with them. But not BEFORE. Regards, -- Beno?t Minisini From gambas at ...1... Tue Aug 23 16:02:25 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 23 Aug 2011 16:02:25 +0200 Subject: [Gambas-user] Talking to a process... In-Reply-To: <4E539FAB.1040102@...981...> References: <4E524F1F.4010201@...981...> <201108231418.57730.gambas@...1...> <4E539FAB.1040102@...981...> Message-ID: <201108231602.25823.gambas@...1...> > On 08/23/2011 08:18 AM, Beno?t Minisini wrote: > >> Hi Matti; > >> > >> I'm using FC-13 and Gnome. I'll head on over to the videolan forum > >> > >> via the link you gave (thanks much) and have a read. > >> > >> VLC also has a telnet interface and I might be able to use that. If > >> > >> however the problem is at a more fundamental level than the applications > >> we're trying to talk to via the process object then I would expect the > >> same results. > >> > >> Thanks for the reply. I'll post back what I find (if anything). > >> > >> Regards > >> Steve. > > > > I don't remember: did you send me your project so that I can reproduce > > the problem and eventually see if I can fix it? > > Sent it to gambas at ...52... > > The Desktop.Find() problem is a bug that is fixed in Gambas 3 only. I don't think I will fix it in Gambas 2 soon. So I suggest you use Gambas 3 for your project! :-) For your interface problem, I can't test with the project you sent me. -- Beno?t Minisini From sbungay at ...981... Tue Aug 23 19:39:04 2011 From: sbungay at ...981... (Stephen Bungay) Date: Tue, 23 Aug 2011 13:39:04 -0400 Subject: [Gambas-user] Talking to a process... In-Reply-To: <201108231602.25823.gambas@...1...> References: <4E524F1F.4010201@...981...> <201108231418.57730.gambas@...1...> <4E539FAB.1040102@...981...> <201108231602.25823.gambas@...1...> Message-ID: <4E53E5B8.6060508@...981...> On 08/23/2011 10:02 AM, Beno?t Minisini wrote: >> On 08/23/2011 08:18 AM, Beno?t Minisini wrote: >>>> Hi Matti; >>>> >>>> I'm using FC-13 and Gnome. I'll head on over to the videolan forum >>>> >>>> via the link you gave (thanks much) and have a read. >>>> >>>> VLC also has a telnet interface and I might be able to use that. If >>>> >>>> however the problem is at a more fundamental level than the applications >>>> we're trying to talk to via the process object then I would expect the >>>> same results. >>>> >>>> Thanks for the reply. I'll post back what I find (if anything). >>>> >>>> Regards >>>> Steve. >>> I don't remember: did you send me your project so that I can reproduce >>> the problem and eventually see if I can fix it? >> Sent it to gambas at ...52... >> >> > The Desktop.Find() problem is a bug that is fixed in Gambas 3 only. I don't > think I will fix it in Gambas 2 soon. > > So I suggest you use Gambas 3 for your project! :-) > > For your interface problem, I can't test with the project you sent me. > I can try to compile 3.0 for the target CENTOS box (Release 5.6). Is it the project or your environment that is restricting your ability to test? From gambas at ...1... Tue Aug 23 20:41:31 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 23 Aug 2011 20:41:31 +0200 Subject: [Gambas-user] Talking to a process... In-Reply-To: <4E53E5B8.6060508@...981...> References: <4E524F1F.4010201@...981...> <201108231602.25823.gambas@...1...> <4E53E5B8.6060508@...981...> Message-ID: <201108232041.31507.gambas@...1...> > > > > The Desktop.Find() problem is a bug that is fixed in Gambas 3 only. I > > don't think I will fix it in Gambas 2 soon. > > > > So I suggest you use Gambas 3 for your project! :-) > > > > For your interface problem, I can't test with the project you sent me. > > I can try to compile 3.0 for the target CENTOS box (Release 5.6). > Is it the project or your environment that is restricting your ability > to test? > Embedding works, but there is nothing to test the slowness of the commands sent to vlc. -- Beno?t Minisini From sbungay at ...981... Tue Aug 23 23:57:32 2011 From: sbungay at ...981... (Stephen Bungay) Date: Tue, 23 Aug 2011 17:57:32 -0400 Subject: [Gambas-user] Talking to a process... In-Reply-To: <201108232041.31507.gambas@...1...> References: <4E524F1F.4010201@...981...> <201108231602.25823.gambas@...1...> <4E53E5B8.6060508@...981...> <201108232041.31507.gambas@...1...> Message-ID: <4E54224C.3040108@...981...> On 08/23/2011 02:41 PM, Beno?t Minisini wrote: >>> The Desktop.Find() problem is a bug that is fixed in Gambas 3 only. I >>> don't think I will fix it in Gambas 2 soon. >>> >>> So I suggest you use Gambas 3 for your project! :-) >>> >>> For your interface problem, I can't test with the project you sent me. >> I can try to compile 3.0 for the target CENTOS box (Release 5.6). >> Is it the project or your environment that is restricting your ability >> to test? >> > Embedding works, but there is nothing to test the slowness of the commands > sent to vlc. > Ahh, I see. The only way to compare is to launch VLC using a bash shell and type the commands, I use pause and play to observe how fast it reacts (almost instantly). Then run the app and press the pause button. I set the VLC control buttons to a disabled state when one is pressed, when the process_read fires and vlc returns a '>' prompt (or anything else) it toggles them back on (I do this because end users like to click buttons over and over when they don't see any results and that just causes more problems). Thanks for looking though, I really appreciate it. From sbungay at ...981... Wed Aug 24 00:02:10 2011 From: sbungay at ...981... (Stephen Bungay) Date: Tue, 23 Aug 2011 18:02:10 -0400 Subject: [Gambas-user] Talking to a process... In-Reply-To: <201108232041.31507.gambas@...1...> References: <4E524F1F.4010201@...981...> <201108231602.25823.gambas@...1...> <4E53E5B8.6060508@...981...> <201108232041.31507.gambas@...1...> Message-ID: <4E542362.2030901@...981...> On 08/23/2011 02:41 PM, Beno?t Minisini wrote: >>> The Desktop.Find() problem is a bug that is fixed in Gambas 3 only. I >>> don't think I will fix it in Gambas 2 soon. >>> >>> So I suggest you use Gambas 3 for your project! :-) >>> >>> For your interface problem, I can't test with the project you sent me. >> I can try to compile 3.0 for the target CENTOS box (Release 5.6). >> Is it the project or your environment that is restricting your ability >> to test? >> > Embedding works, but there is nothing to test the slowness of the commands > sent to vlc. > BTW, targetting CENTOS 5.6 with GAMBAS 3.0 is going to put me in dependency hell, right off the bat the autotools are giving me trouble... easier to upgrade the box :) Dunno if you got the last message re.: wiki. Goahead and erase, let me know and I'll get to work this evening on a couple of items. From rterry at ...1946... Wed Aug 24 00:38:24 2011 From: rterry at ...1946... (richard terry) Date: Wed, 24 Aug 2011 08:38:24 +1000 Subject: [Gambas-user] WebView1_MouseDown() question In-Reply-To: <201108231547.33678.gambas@...1...> References: <201108232245.39199.rterry@...1946...> <201108231547.33678.gambas@...1...> Message-ID: <201108240838.24568.rterry@...1946...> On Tuesday 23 August 2011 23:47:33 Beno?t Minisini wrote: > > This code I got I think from the webview demo some time ago: > > > > If hTest.Selected Then > > Clipboard.Copy(Webview1.SelectedText) > > Print webview1.SelectedText > > End If > > > > If the webview contains html, then the print webview1.selected text > > prints out plain text. > > > > Is there anyway I can capture the html of the text? into a variable. It > > must be around somewhere because if I select the text, due a ctrl copy, > > and then paste it into a textarea with the middle mouse button, then it > > is pasted as formatted html. > > > > REgards > > > > Richard > > Apparently there is no way in QtWebKit to retrieve the HTML selected > text... I will investigate. > > And please if you can use a mail subject that is related to its contents! > > Regards, > Thanks, sorry about the misleading header Richard From gambas at ...1... Wed Aug 24 01:04:33 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 24 Aug 2011 01:04:33 +0200 Subject: [Gambas-user] Talking to a process... In-Reply-To: <4E54224C.3040108@...981...> References: <4E524F1F.4010201@...981...> <201108232041.31507.gambas@...1...> <4E54224C.3040108@...981...> Message-ID: <201108240104.33103.gambas@...1...> > On 08/23/2011 02:41 PM, Beno?t Minisini wrote: > >>> The Desktop.Find() problem is a bug that is fixed in Gambas 3 only. I > >>> don't think I will fix it in Gambas 2 soon. > >>> > >>> So I suggest you use Gambas 3 for your project! :-) > >>> > >>> For your interface problem, I can't test with the project you sent me. > >>> > >> I can try to compile 3.0 for the target CENTOS box (Release 5.6). > >> > >> Is it the project or your environment that is restricting your ability > >> to test? > > > > Embedding works, but there is nothing to test the slowness of the > > commands sent to vlc. > > Ahh, I see. The only way to compare is to launch VLC using a bash shell > and type the commands, I use pause and play to observe how fast it > reacts (almost instantly). Then run the app and press the pause button. I have no button at all when running the example, and the embedded window is very small. -- Beno?t Minisini From gambas at ...1... Wed Aug 24 01:05:49 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 24 Aug 2011 01:05:49 +0200 Subject: [Gambas-user] Talking to a process... In-Reply-To: <4E542362.2030901@...981...> References: <4E524F1F.4010201@...981...> <201108232041.31507.gambas@...1...> <4E542362.2030901@...981...> Message-ID: <201108240105.49656.gambas@...1...> > On 08/23/2011 02:41 PM, Beno?t Minisini wrote: > >>> The Desktop.Find() problem is a bug that is fixed in Gambas 3 only. I > >>> don't think I will fix it in Gambas 2 soon. > >>> > >>> So I suggest you use Gambas 3 for your project! :-) > >>> > >>> For your interface problem, I can't test with the project you sent me. > >>> > >> I can try to compile 3.0 for the target CENTOS box (Release 5.6). > >> > >> Is it the project or your environment that is restricting your ability > >> to test? > > > > Embedding works, but there is nothing to test the slowness of the > > commands sent to vlc. > > BTW, targetting CENTOS 5.6 with GAMBAS 3.0 is going to put me in > dependency hell, right off the bat the autotools are giving me > trouble... easier to upgrade the box :) > > Dunno if you got the last message re.: wiki. Goahead and erase, let me > know and I'll get to work this evening on a couple of items. Done. -- Beno?t Minisini From sbungay at ...981... Wed Aug 24 04:39:36 2011 From: sbungay at ...981... (Stephen Bungay) Date: Tue, 23 Aug 2011 22:39:36 -0400 Subject: [Gambas-user] Talking to a process... In-Reply-To: <201108240104.33103.gambas@...1...> References: <4E524F1F.4010201@...981...> <201108232041.31507.gambas@...1...> <4E54224C.3040108@...981...> <201108240104.33103.gambas@...1...> Message-ID: <4E546468.6050307@...981...> On 08/23/2011 07:04 PM, Beno?t Minisini wrote: >> On 08/23/2011 02:41 PM, Beno?t Minisini wrote: >>>>> The Desktop.Find() problem is a bug that is fixed in Gambas 3 only. I >>>>> don't think I will fix it in Gambas 2 soon. >>>>> >>>>> So I suggest you use Gambas 3 for your project! :-) >>>>> >>>>> For your interface problem, I can't test with the project you sent me. >>>>> >>>> I can try to compile 3.0 for the target CENTOS box (Release 5.6). >>>> >>>> Is it the project or your environment that is restricting your ability >>>> to test? >>> Embedding works, but there is nothing to test the slowness of the >>> commands sent to vlc. >> Ahh, I see. The only way to compare is to launch VLC using a bash shell >> and type the commands, I use pause and play to observe how fast it >> reacts (almost instantly). Then run the app and press the pause button. > I have no button at all when running the example, and the embedded window is > very small. > My fault entirely. Here is is again, you should see the user interface this time and the video should scale to fit. -------------- next part -------------- A non-text attachment was scrubbed... Name: VideoPlayer-0.0.2.tar.gz Type: application/x-gzip Size: 19543 bytes Desc: not available URL: From gambas at ...2524... Wed Aug 24 06:34:51 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 24 Aug 2011 04:34:51 +0000 Subject: [Gambas-user] Issue 83 in gambas: DirView expand fails when bad symlinks encountered In-Reply-To: <2-6813199134517018827-16719025081959018468-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-16719025081959018468-gambas=googlecode.com@...2524...> <0-6813199134517018827-16719025081959018468-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-16719025081959018468-gambas=googlecode.com@...2524...> Comment #3 on issue 83 by adamn... at ...626...: DirView expand fails when bad symlinks encountered http://code.google.com/p/gambas/issues/detail?id=83 Tested OK. Confirmed fixed. Thank you! From bbruen at ...2308... Wed Aug 24 06:39:58 2011 From: bbruen at ...2308... (Bruce Bruen) Date: Wed, 24 Aug 2011 14:09:58 +0930 Subject: [Gambas-user] GB3 Browse Project requires root access Message-ID: <4E54809E.8080409@...2308...> I don't know if this is a bug or whether this is something peculiar about LXDE or if I have something set up on my (new) LXDE box incorrectly. When I click on Tools/Browse Project... (or Ctl+Alt+O) it asks for the root password. If I give it what it wants it opens PCManFM in root privileges mode and as well as showing the project directory it shows an additional tab with /root. ??? Bruce From charles at ...1784... Wed Aug 24 14:53:43 2011 From: charles at ...1784... (charlesg) Date: Wed, 24 Aug 2011 05:53:43 -0700 (PDT) Subject: [Gambas-user] Moving a modal child window Message-ID: <32326228.post@...1379...> Hi I am trying to position a modal child window relative to its parent. When I put 'me.top = FMain.top + 20' in the _Open class of the child, it works with GTK but not QT (where the child window opens centered). I can get the child window to move correctly in both GTK and QT by using a 1msec timer event to do the move (once). Surely there is a more elegent way? Should I expect the QT and GTK versions to work the same or will there inevitably be differences? Linux Mint 11 32bit Gambas3 4036 -- View this message in context: http://old.nabble.com/Moving-a-modal-child-window-tp32326228p32326228.html Sent from the gambas-user mailing list archive at Nabble.com. From fabianfloresvadell at ...626... Wed Aug 24 17:30:58 2011 From: fabianfloresvadell at ...626... (=?ISO-8859-1?Q?Fabi=E1n_Flores_Vadell?=) Date: Wed, 24 Aug 2011 12:30:58 -0300 Subject: [Gambas-user] possible bug in Gambas IDE Message-ID: Gambas 3 RC2 rev: 4009 In the watch tab, click on the remove button when there's nothing selected, cause that the Gambas IDE closes suddenly. (try enough if crash not happen immediately). Can someone check it? -- Fabi?n Flores Vadell www.comoprogramarcongambas.blogspot.com www.speedbooksargentina.blogspot.com From gambas at ...1... Thu Aug 25 03:44:06 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 25 Aug 2011 03:44:06 +0200 Subject: [Gambas-user] Getting selected HTML in a WebView control (was Re: WebView1_MouseDown() question) In-Reply-To: <201108240838.24568.rterry@...1946...> References: <201108232245.39199.rterry@...1946...> <201108231547.33678.gambas@...1...> <201108240838.24568.rterry@...1946...> Message-ID: <201108250344.06929.gambas@...1...> > On Tuesday 23 August 2011 23:47:33 Beno?t Minisini wrote: > > > This code I got I think from the webview demo some time ago: > > > If hTest.Selected Then > > > > > > Clipboard.Copy(Webview1.SelectedText) > > > Print webview1.SelectedText > > > > > > End If > > > > > > If the webview contains html, then the print webview1.selected text > > > prints out plain text. > > > > > > Is there anyway I can capture the html of the text? into a variable. It > > > must be around somewhere because if I select the text, due a ctrl > > > copy, and then paste it into a textarea with the middle mouse button, > > > then it is pasted as formatted html. > > > > > > REgards > > > > > > Richard > > > > Apparently there is no way in QtWebKit to retrieve the HTML selected > > > > text... I will investigate. > > > > And please if you can use a mail subject that is related to its contents! > > > > Regards, Hi, Richard. I have added a WebView.Eval() method in the last revision. That method allows you to evaluate any JavaScript method in the context of the web page. That way, I think you may get the selected HTML. But I don't know the DOM API enough to tell you if there is a method for that. The following hack may work anyway: WebSettings[WebSettings.JavascriptCanAccessClipboard] = True MyWebView.Eval("document.execCommand('Copy', false, null)") Print Clipboard.Paste("text/html") But the returned HTML is not pretty... Regards, -- Beno?t Minisini From girardhenri at ...67... Thu Aug 25 09:02:14 2011 From: girardhenri at ...67... (Girard Henri) Date: Thu, 25 Aug 2011 09:02:14 +0200 Subject: [Gambas-user] gambas webos ? In-Reply-To: <201108240838.24568.rterry@...1946...> References: <201108232245.39199.rterry@...1946...> <201108231547.33678.gambas@...1...> <201108240838.24568.rterry@...1946...> Message-ID: Hi, Do you think gambas could work on hp touchpad webos-3.0.2 ? I am not good enaugh to make the port but if people are looking to do it, i am interested. regards, Henri From gambas at ...2524... Thu Aug 25 11:24:38 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 25 Aug 2011 09:24:38 +0000 Subject: [Gambas-user] Issue 1 in gambas: Gambas 3 has not been release yet In-Reply-To: <4-6813199134517018827-10510653250435311728-gambas=googlecode.com@...2524...> References: <4-6813199134517018827-10510653250435311728-gambas=googlecode.com@...2524...> <0-6813199134517018827-10510653250435311728-gambas=googlecode.com@...2524...> Message-ID: <5-6813199134517018827-10510653250435311728-gambas=googlecode.com@...2524...> Comment #5 on issue 1 by faldeg... at ...626...: Gambas 3 has not been release yet http://code.google.com/p/gambas/issues/detail?id=1 Whats blocking it? From gambas at ...2524... Thu Aug 25 11:28:45 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 25 Aug 2011 09:28:45 +0000 Subject: [Gambas-user] Issue 84 in gambas: RowAt event problem in GB.GTK, works fine with GB.QT Message-ID: <0-6813199134517018827-14049992980781432363-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 84 by fidojo... at ...626...: RowAt event problem in GB.GTK, works fine with GB.QT http://code.google.com/p/gambas/issues/detail?id=84 1) Describe the problem. RowAt event with GridView with GB.QT with 6 rows report this index: PUBLIC SUB GridView_MouseDown() PRINT GridView.RowAt(Mouse.Y) END 0 1 2 4 5 RowAt event with GridView with GB.GTK with 6 rows report this index: PUBLIC SUB GridView_MouseDown() PRINT GridView.RowAt(Mouse.Y) END 1 2 3 4 5 -1 So GB.GTK component is working bad reporting the index. 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: 2.23.1 Operating system: Linux Distribution: Xubuntu 11.04 Architecture: x86 GUI component: QT3 / GTK+ Desktop used: XFCE From gambas at ...2524... Thu Aug 25 11:32:47 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 25 Aug 2011 09:32:47 +0000 Subject: [Gambas-user] Issue 2 in gambas: No native gambas for Windows platforms In-Reply-To: <5-6813199134517018827-8770328939102167379-gambas=googlecode.com@...2524...> References: <5-6813199134517018827-8770328939102167379-gambas=googlecode.com@...2524...> <0-6813199134517018827-8770328939102167379-gambas=googlecode.com@...2524...> Message-ID: <6-6813199134517018827-8770328939102167379-gambas=googlecode.com@...2524...> Comment #6 on issue 2 by faldeg... at ...626...: No native gambas for Windows platforms http://code.google.com/p/gambas/issues/detail?id=2 What is needed to do a Windows port? QT and other platform-independet libraries should not require much work... From gambas at ...2524... Thu Aug 25 11:36:50 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 25 Aug 2011 09:36:50 +0000 Subject: [Gambas-user] Issue 80 in gambas: Binary applications on Gambas In-Reply-To: <1-6813199134517018827-12738445392005826976-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-12738445392005826976-gambas=googlecode.com@...2524...> <0-6813199134517018827-12738445392005826976-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-12738445392005826976-gambas=googlecode.com@...2524...> Comment #2 on issue 80 by faldeg... at ...626...: Binary applications on Gambas http://code.google.com/p/gambas/issues/detail?id=80 What about creating a loader that can be bundled with the app as a resource? It would just load Gambas and hand over the app... From gambas at ...2524... Thu Aug 25 21:32:58 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 25 Aug 2011 19:32:58 +0000 Subject: [Gambas-user] Issue 80 in gambas: Binary applications on Gambas In-Reply-To: <2-6813199134517018827-12738445392005826976-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-12738445392005826976-gambas=googlecode.com@...2524...> <0-6813199134517018827-12738445392005826976-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-12738445392005826976-gambas=googlecode.com@...2524...> Comment #3 on issue 80 by emil.len... at ...626...: Binary applications on Gambas http://code.google.com/p/gambas/issues/detail?id=80 It is better to let the user install the gambas package from the distribution's package manager. Otherwise you have to have one "bundle" for each architecture/system. From gambas at ...2524... Thu Aug 25 21:48:08 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 25 Aug 2011 19:48:08 +0000 Subject: [Gambas-user] Issue 2 in gambas: No native gambas for Windows platforms In-Reply-To: <6-6813199134517018827-8770328939102167379-gambas=googlecode.com@...2524...> References: <6-6813199134517018827-8770328939102167379-gambas=googlecode.com@...2524...> <0-6813199134517018827-8770328939102167379-gambas=googlecode.com@...2524...> Message-ID: <7-6813199134517018827-8770328939102167379-gambas=googlecode.com@...2524...> Comment #7 on issue 2 by kevinfis... at ...1887...: No native gambas for Windows platforms http://code.google.com/p/gambas/issues/detail?id=2 I don't know, but if someone pulls off porting gb3 to Windows they would be a hero for the ages. I don't use Windows, but I like the idea that Windows users could run my GAMBAS programs. That's one hell of a big user base, and I think it would greatly help GAMBAS and its users in the long run. From sbungay at ...981... Thu Aug 25 22:05:02 2011 From: sbungay at ...981... (Stephen Bungay) Date: Thu, 25 Aug 2011 16:05:02 -0400 Subject: [Gambas-user] Issue 2 in gambas: No native gambas for Windows platforms In-Reply-To: <7-6813199134517018827-8770328939102167379-gambas=googlecode.com@...2524...> References: <6-6813199134517018827-8770328939102167379-gambas=googlecode.com@...2524...> <0-6813199134517018827-8770328939102167379-gambas=googlecode.com@...2524...> <7-6813199134517018827-8770328939102167379-gambas=googlecode.com@...2524...> Message-ID: <4E56AAEE.4070609@...981...> On 08/25/2011 03:48 PM, gambas at ...2524... wrote: > Comment #7 on issue 2 by kevinfis... at ...1887...: No native gambas for > Windows platforms > http://code.google.com/p/gambas/issues/detail?id=2 > > I don't know, but if someone pulls off porting gb3 to Windows they would be > a hero for the ages. I don't use Windows, but I like the idea that Windows > users could run my GAMBAS programs. That's one hell of a big user base, and > I think it would greatly help GAMBAS and its users in the long run. > > > ------------------------------------------------------------------------------ > EMC VNX: the world's simplest storage, starting under $10K > The only unified storage solution that offers unified management > Up to 160% more powerful than alternatives and 25% more efficient. > Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > One must be careful when cavorting with dragons, for thou art crunchy. From gambas at ...2524... Thu Aug 25 23:57:14 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 25 Aug 2011 21:57:14 +0000 Subject: [Gambas-user] Issue 84 in gambas: RowAt event problem in GB.GTK, works fine with GB.QT In-Reply-To: <0-6813199134517018827-14049992980781432363-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-14049992980781432363-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-14049992980781432363-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -Version Version-TRUNK Comment #1 on issue 84 by benoit.m... at ...626...: RowAt event problem in GB.GTK, works fine with GB.QT http://code.google.com/p/gambas/issues/detail?id=84 (No comment was entered for this change.) From gambas at ...2524... Fri Aug 26 00:01:15 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 25 Aug 2011 22:01:15 +0000 Subject: [Gambas-user] Issue 84 in gambas: RowAt event problem in GB.GTK, works fine with GB.QT In-Reply-To: <1-6813199134517018827-14049992980781432363-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-14049992980781432363-gambas=googlecode.com@...2524...> <0-6813199134517018827-14049992980781432363-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-14049992980781432363-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #2 on issue 84 by benoit.m... at ...626...: RowAt event problem in GB.GTK, works fine with GB.QT http://code.google.com/p/gambas/issues/detail?id=84 It should be fixed in revision #4039. I am not 100% sure that I fixed your bug, because you didn't sent a project that reproduces it. From gambas at ...2524... Fri Aug 26 00:05:20 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 25 Aug 2011 22:05:20 +0000 Subject: [Gambas-user] Issue 6 in gambas: signal #11 with Gtk+ In-Reply-To: <13-6813199134517018827-10360728768707012438-gambas=googlecode.com@...2524...> References: <13-6813199134517018827-10360728768707012438-gambas=googlecode.com@...2524...> <0-6813199134517018827-10360728768707012438-gambas=googlecode.com@...2524...> Message-ID: <14-6813199134517018827-10360728768707012438-gambas=googlecode.com@...2524...> Updates: Status: WontFix Comment #14 on issue 6 by benoit.m... at ...626...: signal #11 with Gtk+ http://code.google.com/p/gambas/issues/detail?id=6 If that bug rises again, just open a new issue! From gambas at ...2524... Fri Aug 26 00:09:32 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 25 Aug 2011 22:09:32 +0000 Subject: [Gambas-user] Issue 15 in gambas: Bugs gtk component. In-Reply-To: <2-6813199134517018827-2348850762639234993-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-2348850762639234993-gambas=googlecode.com@...2524...> <0-6813199134517018827-2348850762639234993-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-2348850762639234993-gambas=googlecode.com@...2524...> Updates: Labels: -Version-Any Version-2.23.0 Comment #3 on issue 15 by benoit.m... at ...626...: Bugs gtk component. http://code.google.com/p/gambas/issues/detail?id=15 (No comment was entered for this change.) From gambas at ...2524... Fri Aug 26 00:14:42 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 25 Aug 2011 22:14:42 +0000 Subject: [Gambas-user] Issue 71 in gambas: Signal #11 In-Reply-To: <4-6813199134517018827-9968318793198893820-gambas=googlecode.com@...2524...> References: <4-6813199134517018827-9968318793198893820-gambas=googlecode.com@...2524...> <0-6813199134517018827-9968318793198893820-gambas=googlecode.com@...2524...> Message-ID: <5-6813199134517018827-9968318793198893820-gambas=googlecode.com@...2524...> Comment #5 on issue 71 by benoit.m... at ...626...: Signal #11 http://code.google.com/p/gambas/issues/detail?id=71 The "e-pharmacist.tar.gz" is not a valid gambas project. Can you provide a full source archive of your project? There is a menu entry for that in the IDE. From jussi.lahtinen at ...626... Fri Aug 26 01:35:19 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Fri, 26 Aug 2011 02:35:19 +0300 Subject: [Gambas-user] Bug Message-ID: I think this shouldn't be legal: Dim a As New Class1 a = Null But there is no error message. Gambas 3 rev 4039 @ Ubuntu 11.04 64bit Jussi From gambas at ...2524... Fri Aug 26 02:04:05 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 26 Aug 2011 00:04:05 +0000 Subject: [Gambas-user] Issue 71 in gambas: Signal #11 In-Reply-To: <5-6813199134517018827-9968318793198893820-gambas=googlecode.com@...2524...> References: <5-6813199134517018827-9968318793198893820-gambas=googlecode.com@...2524...> <0-6813199134517018827-9968318793198893820-gambas=googlecode.com@...2524...> Message-ID: <6-6813199134517018827-9968318793198893820-gambas=googlecode.com@...2524...> Comment #6 on issue 71 by islamph... at ...626...: Signal #11 http://code.google.com/p/gambas/issues/detail?id=71 i make a source archieve from IDE i couldn't find how to reupload it so i uploaded at http://www.mediafire.com/?k8gt7pb1mffj08u it'll ask for a username and a password it's islam:pharmacy From sourceforge-raindog2 at ...94... Fri Aug 26 04:20:12 2011 From: sourceforge-raindog2 at ...94... (Rob) Date: Thu, 25 Aug 2011 22:20:12 -0400 Subject: [Gambas-user] gambas webos ? Message-ID: <201108252220.12985.sourceforge-raindog2@...94...> On Thursday 25 August 2011 03:02, Girard Henri wrote: > Do you think gambas could work on hp touchpad webos-3.0.2 ? > I am not good enaugh to make the port but if people are looking to do > it, i am interested. Having done some WebOS development before I got rid of my Palm Pre, I think shoehorning X onto it is possible. However, both the performance and integration with other apps would be terrible. I think someone came up with a way to use the framebuffer and maybe you could get Gambas GTK apps to work with the framebuffer, but that's definitely more work than I would do to support a dead platform. Rob From Gambas at ...1950... Fri Aug 26 08:20:32 2011 From: Gambas at ...1950... (Caveat) Date: Fri, 26 Aug 2011 08:20:32 +0200 Subject: [Gambas-user] Bug In-Reply-To: References: Message-ID: <1314339632.15135.3.camel@...2150...> Why shouldn't it be legal? As it stands, it's not good code and it's certainly not very useful but why should the compiler stop you setting something to null? What if there's a line of code between, should it then be legal? regards, Caveat On Fri, 2011-08-26 at 02:35 +0300, Jussi Lahtinen wrote: > I think this shouldn't be legal: > > Dim a As New Class1 > a = Null > > But there is no error message. > > Gambas 3 rev 4039 @ Ubuntu 11.04 64bit > > > Jussi > ------------------------------------------------------------------------------ > EMC VNX: the world's simplest storage, starting under $10K > The only unified storage solution that offers unified management > Up to 160% more powerful than alternatives and 25% more efficient. > Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...2524... Fri Aug 26 11:03:46 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 26 Aug 2011 09:03:46 +0000 Subject: [Gambas-user] Issue 84 in gambas: RowAt event problem in GB.GTK, works fine with GB.QT In-Reply-To: <2-6813199134517018827-14049992980781432363-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-14049992980781432363-gambas=googlecode.com@...2524...> <0-6813199134517018827-14049992980781432363-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-14049992980781432363-gambas=googlecode.com@...2524...> Comment #3 on issue 84 by fidojo... at ...626...: RowAt event problem in GB.GTK, works fine with GB.QT http://code.google.com/p/gambas/issues/detail?id=84 Yeah it's fixed thanks From gambas.fr at ...626... Fri Aug 26 12:00:36 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 26 Aug 2011 12:00:36 +0200 Subject: [Gambas-user] gambas webos ? In-Reply-To: <201108252220.12985.sourceforge-raindog2@...94...> References: <201108252220.12985.sourceforge-raindog2@...94...> Message-ID: 2011/8/26 Rob : > On Thursday 25 August 2011 03:02, Girard Henri wrote: >> Do you think gambas could work on hp touchpad webos-3.0.2 ? >> I am not good enaugh to make the port but if people are looking to do >> it, i am interested. > > Having done some WebOS development before I got rid of my Palm Pre, I think > shoehorning X onto it is possible. ?However, both the performance and > integration with other apps would be terrible. ?I think someone came up > with a way to use the framebuffer and maybe you could get Gambas GTK apps > to work with the framebuffer, but that's definitely more work than I would > do to support a dead platform. > > Rob it will be better to work on integration with android platform !! > ------------------------------------------------------------------------------ > EMC VNX: the world's simplest storage, starting under $10K > The only unified storage solution that offers unified management > Up to 160% more powerful than alternatives and 25% more efficient. > Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev > _______________________________________________ > 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... Fri Aug 26 13:56:58 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Fri, 26 Aug 2011 14:56:58 +0300 Subject: [Gambas-user] Bug In-Reply-To: <1314339632.15135.3.camel@...2150...> References: <1314339632.15135.3.camel@...2150...> Message-ID: I didn't say compiler should stop, interpreter should stop! It shouldn't be legal for same reason as these: Dim a As Integer = "string" Dim a As Integer = Null It's type mismatch. Null is not same as zero. If you want to be able to give two different object references to same variable, use type object or variant. Also this is change in behaviour, since earlier you had to declare variable for multiple different objects as object. Dim a As Object Only then variable 'a' was able to be whatever; Class1, TextBox or Null. Sometimes I use object as parameter type so that I can use null to signify missing object, but then my code is made to handle nulls. So the biggest problem is debugging. Is there some standard for how this should be? Jussi On Fri, Aug 26, 2011 at 09:20, Caveat wrote: > Why shouldn't it be legal? As it stands, it's not good code and it's > certainly not very useful but why should the compiler stop you setting > something to null? What if there's a line of code between, should it > then be legal? > > regards, > Caveat > > On Fri, 2011-08-26 at 02:35 +0300, Jussi Lahtinen wrote: > > I think this shouldn't be legal: > > > > Dim a As New Class1 > > a = Null > > > > But there is no error message. > > > > Gambas 3 rev 4039 @ Ubuntu 11.04 64bit > > > > > > Jussi > > > ------------------------------------------------------------------------------ > > EMC VNX: the world's simplest storage, starting under $10K > > The only unified storage solution that offers unified management > > Up to 160% more powerful than alternatives and 25% more efficient. > > Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > ------------------------------------------------------------------------------ > EMC VNX: the world's simplest storage, starting under $10K > The only unified storage solution that offers unified management > Up to 160% more powerful than alternatives and 25% more efficient. > Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Fri Aug 26 14:14:04 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Fri, 26 Aug 2011 15:14:04 +0300 Subject: [Gambas-user] Signal 11 Message-ID: See attachment. Run and just close the window. Gambas 3 rev 4039 @ Ubuntu 11.04 64bit Jussi -------------- next part -------------- A non-text attachment was scrubbed... Name: MangleErr-0.0.1.tar.gz Type: application/x-gzip Size: 4842 bytes Desc: not available URL: From sourceforge-raindog2 at ...94... Fri Aug 26 14:20:29 2011 From: sourceforge-raindog2 at ...94... (Rob) Date: Fri, 26 Aug 2011 08:20:29 -0400 Subject: [Gambas-user] gambas webos ? In-Reply-To: References: <201108252220.12985.sourceforge-raindog2@...94...> Message-ID: <201108260820.29789.sourceforge-raindog2@...94...> On Friday 26 August 2011 06:00, Fabien Bodard wrote: > it will be better to work on integration with android platform !! Android will actually be a little more difficult (WebOS was actually a full Linux implementation but with their own GUI layer instead of X; Android has the kernel but doesn't even have glibc) but yes, I think that would be more worthwhile. I haven't really gotten into NDK programming yet so I don't know how much is missing. Maybe someone's already made an NDK X server which would make porting Gambas easier, though windowed apps on Android are not really a good fit. Rob From gambas.fr at ...626... Fri Aug 26 14:41:09 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 26 Aug 2011 14:41:09 +0200 Subject: [Gambas-user] gambas webos ? In-Reply-To: <201108260820.29789.sourceforge-raindog2@...94...> References: <201108252220.12985.sourceforge-raindog2@...94...> <201108260820.29789.sourceforge-raindog2@...94...> Message-ID: 2011/8/26 Rob : > On Friday 26 August 2011 06:00, Fabien Bodard wrote: >> it will be better to work on integration with android platform !! > > Android will actually be a little more difficult (WebOS was actually a full > Linux implementation but with their own GUI layer instead of X; Android has > the kernel but doesn't even have glibc) but yes, I think that would be more > worthwhile. ?I haven't really gotten into NDK programming yet so I don't > know how much is missing. ?Maybe someone's already made an NDK X server > which would make porting Gambas easier, though windowed apps on Android are > not really a good fit. > > Rob baybe can we try the scripting tool of android ...:/ > > ------------------------------------------------------------------------------ > EMC VNX: the world's simplest storage, starting under $10K > The only unified storage solution that offers unified management > Up to 160% more powerful than alternatives and 25% more efficient. > Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From bbruen at ...2308... Fri Aug 26 15:56:34 2011 From: bbruen at ...2308... (Bruce Bruen) Date: Fri, 26 Aug 2011 23:26:34 +0930 Subject: [Gambas-user] Bug In-Reply-To: References: <1314339632.15135.3.camel@...2150...> Message-ID: <1314366994.1085.43.camel@...2657...> Jussi, It's not an illegal assignment, nor is it a type mismatch. It is not setting a different object reference to the same variable, it is removing the object reference from the variable. "a" is a pointer to an instance of a newly instantiated Class1 object. Setting "a" to null is perfectly valid. "a" then no longer points to an instance. Therefore the object reference count is decremented (in this case to 0, so the object memory can be freed). It's all there in the help under the Gambas Object Management topic. hth Bruce On Fri, 2011-08-26 at 14:56 +0300, Jussi Lahtinen wrote: > I didn't say compiler should stop, interpreter should stop! > > It shouldn't be legal for same reason as these: > Dim a As Integer = "string" > Dim a As Integer = Null > > It's type mismatch. Null is not same as zero. > If you want to be able to give two different object references to same > variable, use type object or variant. > > Also this is change in behaviour, since earlier you had to declare variable > for multiple different objects as object. > Dim a As Object > Only then variable 'a' was able to be whatever; Class1, TextBox or Null. > > Sometimes I use object as parameter type so that I can use null to signify > missing object, > but then my code is made to handle nulls. So the biggest problem is > debugging. > > Is there some standard for how this should be? > > Jussi > > > > On Fri, Aug 26, 2011 at 09:20, Caveat wrote: > > > Why shouldn't it be legal? As it stands, it's not good code and it's > > certainly not very useful but why should the compiler stop you setting > > something to null? What if there's a line of code between, should it > > then be legal? > > > > regards, > > Caveat > > > > On Fri, 2011-08-26 at 02:35 +0300, Jussi Lahtinen wrote: > > > I think this shouldn't be legal: > > > > > > Dim a As New Class1 > > > a = Null > > > > > > But there is no error message. > > > > > > Gambas 3 rev 4039 @ Ubuntu 11.04 64bit > > > > > > > > > Jussi > > > > > ------------------------------------------------------------------------------ > > > EMC VNX: the world's simplest storage, starting under $10K > > > The only unified storage solution that offers unified management > > > Up to 160% more powerful than alternatives and 25% more efficient. > > > Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > ------------------------------------------------------------------------------ > > EMC VNX: the world's simplest storage, starting under $10K > > The only unified storage solution that offers unified management > > Up to 160% more powerful than alternatives and 25% more efficient. > > Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------------ > EMC VNX: the world's simplest storage, starting under $10K > The only unified storage solution that offers unified management > Up to 160% more powerful than alternatives and 25% more efficient. > Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Fri Aug 26 16:04:18 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 26 Aug 2011 16:04:18 +0200 Subject: [Gambas-user] Signal 11 In-Reply-To: References: Message-ID: <201108261604.18288.gambas@...1...> > See attachment. Run and just close the window. > > Gambas 3 rev 4039 @ Ubuntu 11.04 64bit > > Jussi That does not crash there (same revision, same Ubuntu 11.04 64 bits). Are you sure everything compiled correctly ? Can you recompile everything from scratch ? -- Beno?t Minisini From jussi.lahtinen at ...626... Fri Aug 26 19:14:39 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Fri, 26 Aug 2011 20:14:39 +0300 Subject: [Gambas-user] Bug In-Reply-To: <1314366994.1085.43.camel@...2657...> References: <1314339632.15135.3.camel@...2150...> <1314366994.1085.43.camel@...2657...> Message-ID: > > It is not setting a different object reference to the same variable, it is > removing the object reference from the variable. > > "a" is a pointer to an instance of a newly instantiated Class1 object. > Setting "a" to null is perfectly valid. "a" then no longer points to an > instance. Therefore the object reference count is decremented (in this > case to 0, so the object memory can be freed). > I'm OK with this, it just created confusion as it was not allowed earlier. > It's all there in the help under the Gambas Object Management topic. > I cannot find any mentioning about it with those words, can you give me link? Jussi From gambas at ...1... Fri Aug 26 19:23:43 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 26 Aug 2011 19:23:43 +0200 Subject: [Gambas-user] Bug In-Reply-To: References: <1314366994.1085.43.camel@...2657...> Message-ID: <201108261923.43481.gambas@...1...> > > It is not setting a different object reference to the same variable, it > > is removing the object reference from the variable. > > > > "a" is a pointer to an instance of a newly instantiated Class1 object. > > Setting "a" to null is perfectly valid. "a" then no longer points to an > > instance. Therefore the object reference count is decremented (in this > > case to 0, so the object memory can be freed). > > I'm OK with this, it just created confusion as it was not allowed earlier. > It was allowed since the first line of code of Gambas 1, and it is allowed in all object oriented languages I know. :-) -- Beno?t Minisini From jussi.lahtinen at ...626... Fri Aug 26 19:45:34 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Fri, 26 Aug 2011 20:45:34 +0300 Subject: [Gambas-user] Bug In-Reply-To: <201108261923.43481.gambas@...1...> References: <1314366994.1085.43.camel@...2657...> <201108261923.43481.gambas@...1...> Message-ID: Strange! Then there must have been bug for a while that didn't allow to do that... or I don't know how I learned it otherwise! Jussi 2011/8/26 Beno?t Minisini > > > It is not setting a different object reference to the same variable, it > > > is removing the object reference from the variable. > > > > > > "a" is a pointer to an instance of a newly instantiated Class1 object. > > > Setting "a" to null is perfectly valid. "a" then no longer points to an > > > instance. Therefore the object reference count is decremented (in this > > > case to 0, so the object memory can be freed). > > > > I'm OK with this, it just created confusion as it was not allowed > earlier. > > > > It was allowed since the first line of code of Gambas 1, and it is allowed > in > all object oriented languages I know. :-) > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > EMC VNX: the world's simplest storage, starting under $10K > The only unified storage solution that offers unified management > Up to 160% more powerful than alternatives and 25% more efficient. > Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Fri Aug 26 20:07:47 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Fri, 26 Aug 2011 21:07:47 +0300 Subject: [Gambas-user] Signal 11 In-Reply-To: <201108261604.18288.gambas@...1...> References: <201108261604.18288.gambas@...1...> Message-ID: I did: sudo rm -f /usr/local/bin/gbx3 /usr/local/bin/gbc3 /usr/local/bin/gba3 /usr/local/bin/gbi3 sudo rm -rf /usr/local/lib/gambas3 sudo rm -rf /usr/local/share/gambas3 sudo make clean Then: ( ./reconf-all && ./configure -C && make && sudo make install ) > ~/Desktop/compile.log 2>&1 The problem still persist. Compile.log attached. Jussi 2011/8/26 Beno?t Minisini > > See attachment. Run and just close the window. > > > > Gambas 3 rev 4039 @ Ubuntu 11.04 64bit > > > > Jussi > > That does not crash there (same revision, same Ubuntu 11.04 64 bits). Are > you > sure everything compiled correctly ? Can you recompile everything from > scratch > ? > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > EMC VNX: the world's simplest storage, starting under $10K > The only unified storage solution that offers unified management > Up to 160% more powerful than alternatives and 25% more efficient. > Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev > _______________________________________________ > 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: compile.log.tar.gz Type: application/x-gzip Size: 44097 bytes Desc: not available URL: From gambas at ...1... Fri Aug 26 20:25:07 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 26 Aug 2011 20:25:07 +0200 Subject: [Gambas-user] Signal 11 In-Reply-To: References: <201108261604.18288.gambas@...1...> Message-ID: <201108262025.07916.gambas@...1...> > I did: > sudo rm -f /usr/local/bin/gbx3 /usr/local/bin/gbc3 /usr/local/bin/gba3 > /usr/local/bin/gbi3 > sudo rm -rf /usr/local/lib/gambas3 > sudo rm -rf /usr/local/share/gambas3 > sudo make clean > > Then: > ( ./reconf-all && ./configure -C && make && sudo make install ) > > ~/Desktop/compile.log 2>&1 > > The problem still persist. Compile.log attached. > > Jussi > > Which KDE theme do you use? -- Beno?t Minisini From girardhenri at ...402... Fri Aug 26 22:10:22 2011 From: girardhenri at ...402... (Girard Henri) Date: Fri, 26 Aug 2011 22:10:22 +0200 Subject: [Gambas-user] gambas webos ? In-Reply-To: References: <201108252220.12985.sourceforge-raindog2@...94...> <201108260820.29789.sourceforge-raindog2@...94...> Message-ID: <4E57FDAE.509@...402...> Le 26/08/2011 14:41, Fabien Bodard a ?crit : > 2011/8/26 Rob: >> On Friday 26 August 2011 06:00, Fabien Bodard wrote: >>> it will be better to work on integration with android platform !! >> Android will actually be a little more difficult (WebOS was actually a full >> Linux implementation but with their own GUI layer instead of X; Android has >> the kernel but doesn't even have glibc) but yes, I think that would be more >> worthwhile. I haven't really gotten into NDK programming yet so I don't >> know how much is missing. Maybe someone's already made an NDK X server >> which would make porting Gambas easier, though windowed apps on Android are >> not really a good fit. >> >> Rob > baybe can we try the scripting tool of android ...:/ > >> ------------------------------------------------------------------------------ >> EMC VNX: the world's simplest storage, starting under $10K >> The only unified storage solution that offers unified management >> Up to 160% more powerful than alternatives and 25% more efficient. >> Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > HP Touchpad is dead but not webos at the moment, they even say they have 600 programmers working on the platform > > From jussi.lahtinen at ...626... Fri Aug 26 23:00:05 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sat, 27 Aug 2011 00:00:05 +0300 Subject: [Gambas-user] Signal 11 In-Reply-To: <201108262025.07916.gambas@...1...> References: <201108261604.18288.gambas@...1...> <201108262025.07916.gambas@...1...> Message-ID: I'm on gnome..? Jussi 2011/8/26 Beno?t Minisini > > I did: > > sudo rm -f /usr/local/bin/gbx3 /usr/local/bin/gbc3 /usr/local/bin/gba3 > > /usr/local/bin/gbi3 > > sudo rm -rf /usr/local/lib/gambas3 > > sudo rm -rf /usr/local/share/gambas3 > > sudo make clean > > > > Then: > > ( ./reconf-all && ./configure -C && make && sudo make install ) > > > ~/Desktop/compile.log 2>&1 > > > > The problem still persist. Compile.log attached. > > > > Jussi > > > > > > Which KDE theme do you use? > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > EMC VNX: the world's simplest storage, starting under $10K > The only unified storage solution that offers unified management > Up to 160% more powerful than alternatives and 25% more efficient. > Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Fri Aug 26 23:03:13 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 26 Aug 2011 23:03:13 +0200 Subject: [Gambas-user] Signal 11 In-Reply-To: References: <201108262025.07916.gambas@...1...> Message-ID: <201108262303.13567.gambas@...1...> > I'm on gnome..? > > Jussi > Please give me more details about your desktop, your window manager... so that I can reproduce your crash! -- Beno?t Minisini From gambas at ...1... Fri Aug 26 23:13:11 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 26 Aug 2011 23:13:11 +0200 Subject: [Gambas-user] Moving a modal child window In-Reply-To: <32326228.post@...1379...> References: <32326228.post@...1379...> Message-ID: <201108262313.11855.gambas@...1...> > Hi > > I am trying to position a modal child window relative to its parent. When I > put 'me.top = FMain.top + 20' in the _Open class of the child, it works > with GTK but not QT (where the child window opens centered). > > I can get the child window to move correctly in both GTK and QT by using a > 1msec timer event to do the move (once). > > Surely there is a more elegent way? Should I expect the QT and GTK versions > to work the same or will there inevitably be differences? > > Linux Mint 11 32bit > Gambas3 4036 That bug should be fixed in revision #4043. Regards, -- Beno?t Minisini From gambas at ...1... Fri Aug 26 23:17:39 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 26 Aug 2011 23:17:39 +0200 Subject: [Gambas-user] GB3 Browse Project requires root access In-Reply-To: <4E54809E.8080409@...2308...> References: <4E54809E.8080409@...2308...> Message-ID: <201108262317.40011.gambas@...1...> > I don't know if this is a bug or whether this is something peculiar > about LXDE or if I have something set up on my (new) LXDE box incorrectly. > > When I click on Tools/Browse Project... (or Ctl+Alt+O) it asks for the > root password. If I give it what it wants it opens PCManFM in root > privileges mode and as well as showing the project directory it shows an > additional tab with /root. > > ??? > Bruce > To open a file manager on the project directory, Gambas runs the following command: xdg-open Can you try that command directly in a terminal ? Are you sure that you run Gambas 3 IDE as a normal user ? Can you find if you have the 'xdg-open' shell script somewhere on your system? -- Beno?t Minisini From jussi.lahtinen at ...626... Sat Aug 27 00:24:37 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sat, 27 Aug 2011 01:24:37 +0300 Subject: [Gambas-user] Signal 11 In-Reply-To: <201108262303.13567.gambas@...1...> References: <201108262025.07916.gambas@...1...> <201108262303.13567.gambas@...1...> Message-ID: gnome 2.32.1 metacity 2.30.3 Theme is clearlooks classic for controls and clearlooks for window borders... What else you need to know? Jussi 2011/8/27 Beno?t Minisini > > I'm on gnome..? > > > > Jussi > > > > Please give me more details about your desktop, your window manager... so > that > I can reproduce your crash! > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > EMC VNX: the world's simplest storage, starting under $10K > The only unified storage solution that offers unified management > Up to 160% more powerful than alternatives and 25% more efficient. > Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Sat Aug 27 03:33:10 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 27 Aug 2011 03:33:10 +0200 Subject: [Gambas-user] Signal 11 In-Reply-To: References: <201108262303.13567.gambas@...1...> Message-ID: <201108270333.11021.gambas@...1...> > gnome 2.32.1 > metacity 2.30.3 > > Theme is clearlooks classic for controls and clearlooks for window > borders... > > What else you need to know? > > Jussi > I know enough to reproduce the crash. It should be fixed in revision #4044. Regards, -- Beno?t Minisini From gambas at ...2524... Sat Aug 27 09:22:11 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 27 Aug 2011 07:22:11 +0000 Subject: [Gambas-user] Issue 85 in gambas: Component without any export crashes the IDE Message-ID: <0-6813199134517018827-7346755965945152852-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 85 by adamn... at ...626...: Component without any export crashes the IDE http://code.google.com/p/gambas/issues/detail?id=85 1) This problem arises when a project that is for a component has no exportable items. The IDE crashes with a "unexpected error" when the Project|Component Properties menu item is clicked. 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: TRUNK Revision: r4033 Operating system: Linux Distribution: Gentoo based Architecture: x86 GUI component: GTK+ Desktop used: LXDE 3) Provide a little project that reproduces the bug or the crash. N/A 4) If your project needs a database, try to provide it, or part of it. N/A 5) Explain clearly how to reproduce the bug or the crash. Pretty simple. a) Create a new command line project, make it a component b) In the IDE, delete the "Export" line in the default class CClass c) Click on Project|Component Properties 6) By doing that carefully, you have done 50% of the bug fix job! Here is the traceback: FPropertyComponent.Form_Open.233: #45: File or directory does not exist 0: FPropertyComponent.Form_Open.233 1: FPropertyComponent.Run.10 2: FMain.Action_Activate.1204 3: >Action.Raise.217 From and.bertini at ...626... Sat Aug 27 12:12:06 2011 From: and.bertini at ...626... (Andrea Bertini) Date: Sat, 27 Aug 2011 12:12:06 +0200 Subject: [Gambas-user] Gambas Cloud Message-ID: <1314439926.1857.1.camel@...2658...> Gui-frontend on desktop made with Gambas, database sqlite on the cloud: is it actually possible? ab From xochilpili at ...626... Sat Aug 27 13:07:59 2011 From: xochilpili at ...626... (xOChilpili) Date: Sat, 27 Aug 2011 06:07:59 -0500 Subject: [Gambas-user] Gambas Cloud In-Reply-To: <1314439926.1857.1.camel@...2658...> References: <1314439926.1857.1.camel@...2658...> Message-ID: Ab: Dunno, i have some experience with MySql on the cloud, and works perfectly but no idea with sqlite. I think is possible. You just have to set the properly conf to sqlite. xOCh 2011/8/27 Andrea Bertini > Gui-frontend on desktop made with Gambas, database sqlite on the cloud: > is it actually possible? > > ab > > > > ------------------------------------------------------------------------------ > EMC VNX: the world's simplest storage, starting under $10K > The only unified storage solution that offers unified management > Up to 160% more powerful than alternatives and 25% more efficient. > Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- -- Powered by xOCh 210 From charles at ...1784... Sat Aug 27 14:16:42 2011 From: charles at ...1784... (charlesg) Date: Sat, 27 Aug 2011 05:16:42 -0700 (PDT) Subject: [Gambas-user] Gambas Cloud In-Reply-To: <1314439926.1857.1.camel@...2658...> References: <1314439926.1857.1.camel@...2658...> Message-ID: <32347363.post@...1379...> Andrea Bertini wrote: > > Gui-frontend on desktop made with Gambas, database sqlite on the cloud: > is it actually possible? > SQLite is single-user update but multi-user read. You don't say whether you (alone) are trying to share a database (e.g. home and work) or whether lots of different users will have concurrent read access. If the former then Gambas and SQLite work a treat with Dropbox. I guess really large GByte databases will have problems updating but Dropbox does update intelligently. -- View this message in context: http://old.nabble.com/Gambas-Cloud-tp32347055p32347363.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Sat Aug 27 15:02:55 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 27 Aug 2011 15:02:55 +0200 Subject: [Gambas-user] GB3 Browse Project requires root access In-Reply-To: <201108262317.40011.gambas@...1...> References: <4E54809E.8080409@...2308...> <201108262317.40011.gambas@...1...> Message-ID: <201108271502.55801.gambas@...1...> > > I don't know if this is a bug or whether this is something peculiar > > about LXDE or if I have something set up on my (new) LXDE box > > incorrectly. > > > > When I click on Tools/Browse Project... (or Ctl+Alt+O) it asks for the > > root password. If I give it what it wants it opens PCManFM in root > > privileges mode and as well as showing the project directory it shows an > > additional tab with /root. > > > > ??? > > Bruce > > To open a file manager on the project directory, Gambas runs the following > command: > > xdg-open > > Can you try that command directly in a terminal ? > > Are you sure that you run Gambas 3 IDE as a normal user ? > > Can you find if you have the 'xdg-open' shell script somewhere on your > system? Can you try revision #4045 and tell me if it works? -- Beno?t Minisini From ihaywood at ...1979... Sun Aug 28 00:49:58 2011 From: ihaywood at ...1979... (Ian Haywood) Date: Sun, 28 Aug 2011 08:49:58 +1000 Subject: [Gambas-user] Gambas Cloud In-Reply-To: <32347363.post@...1379...> References: <1314439926.1857.1.camel@...2658...> <32347363.post@...1379...> Message-ID: On Sat, Aug 27, 2011 at 10:16 PM, charlesg wrote: > > > Andrea Bertini wrote: >> >> Gui-frontend on desktop made with Gambas, database sqlite on the cloud: >> is it actually possible? not really, as SQLite is not designed for use across the network. MySQL/PostgreSQL "clouds" would work just fine. If you wanted to go "serious cloud" you could run Gambas inside an Amazon EC2 instance and access via VNC or X. You could use SQLite in this situation. Ian From gambas at ...2524... Sun Aug 28 03:03:10 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 28 Aug 2011 01:03:10 +0000 Subject: [Gambas-user] Issue 85 in gambas: Component without any export crashes the IDE In-Reply-To: <0-6813199134517018827-7346755965945152852-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-7346755965945152852-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-7346755965945152852-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -Version Version-TRUNK Comment #1 on issue 85 by benoit.m... at ...626...: Component without any export crashes the IDE http://code.google.com/p/gambas/issues/detail?id=85 (No comment was entered for this change.) From gambas at ...2524... Sun Aug 28 03:09:11 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 28 Aug 2011 01:09:11 +0000 Subject: [Gambas-user] Issue 85 in gambas: Component without any export crashes the IDE In-Reply-To: <1-6813199134517018827-7346755965945152852-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-7346755965945152852-gambas=googlecode.com@...2524...> <0-6813199134517018827-7346755965945152852-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-7346755965945152852-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #2 on issue 85 by benoit.m... at ...626...: Component without any export crashes the IDE http://code.google.com/p/gambas/issues/detail?id=85 Fixed in revision #4052. From dag.jarle.johansen at ...626... Sun Aug 28 05:01:48 2011 From: dag.jarle.johansen at ...626... (Dag-Jarle Johansen) Date: Sun, 28 Aug 2011 00:01:48 -0300 Subject: [Gambas-user] Arrays of controls Message-ID: Hi out there, I do not check this at all: Public Sub Page_First_Init() Dim hPictureBox As PictureBox Dim I As Integer For i = 0 To 9 hPictureBox = New PictureBox(Me) As "PBX" hPictureBox.Tag = i Next End Seems to work. But how do I call one of this bitmaps, for example make the first visible, and resize it? I have a complete crash with the FOR EACH, do not understand it at all, what to define where. I will be really grateful for some detailled help here, because it levels up the software massive, when I get this jump. I have looked a lot around, but for the point I don't understand - nothing. In this case PBX_Click() will help me nothing, because all PictureBoxes have to be invisible at start. Thanks in advance and regards, Dag-Jarle johansen From gambas at ...2524... Sun Aug 28 06:14:46 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 28 Aug 2011 04:14:46 +0000 Subject: [Gambas-user] Issue 86 in gambas: Help browser and opening a different project Message-ID: <0-6813199134517018827-17460925644828372219-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 86 by adamn... at ...626...: Help browser and opening a different project http://code.google.com/p/gambas/issues/detail?id=86 1) This issue regards the "full" help browser opened with F1. It doesn't apply to the help popup inside the editor. The problem is when a different project is opened from within the IDE,the previous project help still appears in the help browser window. It doesn't matter if the help browser window is open or not at the time the different project is opened. 2) SYSTEM INFORMATION: Version: TRUNK Revision: r4052 Operating system: Linux Distribution: Gentoo ... Architecture: x86 GUI component: GTK+ Desktop used: LXDE 3) Provide a little project that reproduces the bug or the crash. Any two projects that are not part of gambas itself will do, preferably very different ones, i.e. they need to have "project" level help. 4) If your project needs a database, try to provide it, or part of it. N/A 5) Explain clearly how to reproduce the bug or the crash. a) Start gambas and open a project b) Open the help browser c) Close it d) Open a different project e) Open the help browser 6) By doing that carefully, you have done 50% of the bug fix job! 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! Benoit, This is the first of a series of issues with the help browser. Some of which are causing me some problems with moving "production" projects to version 3 in anticipation of the release. This one I'd give a priority of "Low" to. More later, tralala ... From gambas at ...2524... Sun Aug 28 06:36:52 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 28 Aug 2011 04:36:52 +0000 Subject: [Gambas-user] Issue 87 in gambas: Class and symbol level comments mixed in help browser Message-ID: <0-6813199134517018827-6871478721424681634-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 87 by adamn... at ...626...: Class and symbol level comments mixed in help browser http://code.google.com/p/gambas/issues/detail?id=87 1) This issue regards the "full" help browser opened with F1. It doesn't apply to the code completion help popup inside the editor. The problem is when a class has both class level '' comments and "nothing" between them and the first symbol level '' comment, the help browser shows the symbol level comment at the class level. 2) SYSTEM INFORMATION: Version: TRUNK Revision: r4052 Operating system: Linux Distribution: Gentoo ... Architecture: x86 GUI component: GTK+ Desktop used: LXDE 3) Provide a little project that reproduces the bug or the crash. Attached (classlevelhelp-0.0.1) 4) If your project needs a database, try to provide it, or part of it. N/A 5) Explain clearly how to reproduce the bug or the crash. Open the project and open the help browser (F1) Look at the help for class "Fish" and open it's code ==> Here we see that there is "something" between the class comments and the first symbol comment. In this case it's the Class line. Repeat for the class "Apples". ==> This time the Inherits line separates the comments. Repeat for the "Oranges" class. ==> Now we see the first symbol comments appearing in the help browser as part of the class description. 6) By doing that carefully, you have done 50% of the bug fix job! This is one of a series of issues with the help browser. This one I'd give a priority of "Medium" Attachments: classlevelhelp-0.0.1.tar.gz 5.0 KB From xochilpili at ...626... Sun Aug 28 06:52:31 2011 From: xochilpili at ...626... (xOChilpili) Date: Sat, 27 Aug 2011 23:52:31 -0500 Subject: [Gambas-user] Help with charset Message-ID: Hi all i have some strange experience with open file for append in gambas2 heres my code dim hFile as File hFile=OPEN "/home/xochilpili/test.txt" FOR APPEND WRITE #hFile, "e" CLOSE #hFile xochilpili at ...40...: cat test.txt output: 'e No matter if "e" is a String declared, always write in the file some strange character at the begining of the file. Please help -- -- Powered by xOCh 210 From bbruen at ...2308... Sun Aug 28 08:25:06 2011 From: bbruen at ...2308... (Bruce Bruen) Date: Sun, 28 Aug 2011 15:55:06 +0930 Subject: [Gambas-user] Help with charset In-Reply-To: References: Message-ID: <1314512706.1085.90.camel@...2657...> On Sat, 2011-08-27 at 23:52 -0500, xOChilpili wrote: > dim hFile as File > hFile=OPEN "/home/xochilpili/test.txt" FOR APPEND > WRITE #hFile, "e" > CLOSE #hFile > > Use PRINT not WRITE. From xochilpili at ...626... Sun Aug 28 09:45:41 2011 From: xochilpili at ...626... (xOChilpili) Date: Sun, 28 Aug 2011 02:45:41 -0500 Subject: [Gambas-user] Help with charset In-Reply-To: <1314512706.1085.90.camel@...2657...> References: <1314512706.1085.90.camel@...2657...> Message-ID: Bruce: Thanks it works now. But a have another question if i may... I have a TableView control, and i want to get the "selected row" by the user when he clicks on the row?s header. Is it possible ? Thanks for your help. xOCh -- -- Powered by xOCh 210 From bbruen at ...2308... Sun Aug 28 10:04:52 2011 From: bbruen at ...2308... (Bruce Bruen) Date: Sun, 28 Aug 2011 17:34:52 +0930 Subject: [Gambas-user] Help with charset In-Reply-To: References: <1314512706.1085.90.camel@...2657...> Message-ID: <1314518692.1085.95.camel@...2657...> On Sun, 2011-08-28 at 02:45 -0500, xOChilpili wrote: > Bruce: > > Thanks it works now. But a have another question if i may... > > I have a TableView control, and i want to get the "selected row" by the user > when he clicks on the row?s header. Is it possible ? > > Thanks for your help. > > xOCh > > > > You want to know how to get the row number? It's MyTableView.Row You want to how to get it when the user clicks? It's MyTableView_Click() This is all explained in F1 -> Components -> gb.form -> Tableview Enjoy! From tobiasboe1 at ...20... Sun Aug 28 10:11:04 2011 From: tobiasboe1 at ...20... (tobias) Date: Sun, 28 Aug 2011 10:11:04 +0200 Subject: [Gambas-user] Arrays of controls In-Reply-To: References: Message-ID: <4E59F818.2040107@...20...> hi, > I do not check this at all: > > Public Sub Page_First_Init() > Dim hPictureBox As PictureBox > Dim I As Integer > For i = 0 To 9 > hPictureBox = New PictureBox(Me) As "PBX" > hPictureBox.Tag = i > Next > End ok, you have a loop from 0 to 9 in which you create PictureBoxes by using New, each of them gets the event name "PBX" and a tag to identify them. those PictureBoxes are created on Me and therefore now normal controls. you additionally hold a reference to the just created one in hPictureBox so you can change its attributes as you want: hPictureBox.Visible = False you can pick a particular box using Me.Children (i don't know, if this is the best solution for it): Public Function Pick(iInd As Integer) As PictureBox Dim cControl As Control For Each cControl In Me.Children If Object.Type(cControl) = "PictureBox" And cControl.Tag = iInd Then Return cControl Endif Next Return Null End the thing with this is that Tags may be set arbitrarily, so checking if the control is also a PictureBox is a little more secure not to give something wrong back but keep in mind that for some reason, you may have given another PictureBox the same Tag which leads to giving back the first one recognized in Me.Children... (according to the doc, the Tag property of Controls aren't used by any component but only by the programmer, so you might take this solution with care or derive another one from it. for a different approach, you may have a look at the ArrayOfControls example. within an event raised by the PBX "group" you can just use Last. i hope, it's somehow clearer, now? regards, tobi From tobiasboe1 at ...20... Sun Aug 28 10:17:18 2011 From: tobiasboe1 at ...20... (tobias) Date: Sun, 28 Aug 2011 10:17:18 +0200 Subject: [Gambas-user] Help with charset In-Reply-To: <1314518692.1085.95.camel@...2657...> References: <1314512706.1085.90.camel@...2657...> <1314518692.1085.95.camel@...2657...> Message-ID: <4E59F98E.6050001@...20...> > Thanks it works now. But a have another question if i may... umm, apart from the other question, i had this problem very often and i usually remind me to use: Write #Stream, String, Len(String) then, which again works well. regards, tobi From gambas at ...1... Sun Aug 28 10:39:55 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 28 Aug 2011 10:39:55 +0200 Subject: [Gambas-user] Arrays of controls In-Reply-To: References: Message-ID: <201108281039.55849.gambas@...1...> > Hi out there, > > I do not check this at all: > > Public Sub Page_First_Init() > Dim hPictureBox As PictureBox > Dim I As Integer > For i = 0 To 9 > hPictureBox = New PictureBox(Me) As "PBX" > hPictureBox.Tag = i > Next > End > > Seems to work. But how do I call one of this bitmaps, for example make the > first visible, and resize it? I have a complete crash with the FOR EACH, do > not understand it at all, what to define where. > > I will be really grateful for some detailled help here, because it levels > up the software massive, when I get this jump. I have looked a lot around, > but for the point I don't understand - nothing. > > In this case PBX_Click() will help me nothing, because all PictureBoxes > have to be invisible at start. > > Thanks in advance and regards, > Dag-Jarle johansen The solution is in the mail subject. If you use Gambas 3, you can do that: ' --------- Private $aPictureBox As PictureBox[] Public Sub Page_First_Init() Dim hPictureBox As PictureBox Dim I As Integer $aPictureBox = New PictureBox[10] For i = 0 To 9 hPictureBox = New PictureBox(Me) As "PBX" hPictureBox.Tag = i $aPictureBox[i] = hPictureBox Next End ' --------- Then you will access the i-th PictureBox somewhere else with $aPictureBox[i]. Regards, -- Beno?t Minisini From xochilpili at ...626... Sun Aug 28 11:24:37 2011 From: xochilpili at ...626... (xOChilpili) Date: Sun, 28 Aug 2011 04:24:37 -0500 Subject: [Gambas-user] Help with charset In-Reply-To: <4E59F98E.6050001@...20...> References: <1314512706.1085.90.camel@...2657...> <1314518692.1085.95.camel@...2657...> <4E59F98E.6050001@...20...> Message-ID: Bruce: Yes, but ... I think that my english is too bad :( sorry... here is my tableview ______________________ |___|_Col1_|_Col2_|_Col3_| |_1_|_____ |_____ |______| |_2_|_____ |_____ |______| |_3.... ^ <- user clicks here. And in method tableView_Click i have tableView.edit() So, i have two troubles right now: 1.- How to get this selected Row --Clicked on the header Row Column-- 2.- Once edited the cell, gambas crash when i try to return to browse mode using tableView.Cancel. I have no idea how to disable "edit" mode and back since i never clicked the tableView. Thanks... xOCh -- -- Powered by xOCh 210 From gambas.fr at ...626... Sun Aug 28 11:29:57 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 28 Aug 2011 11:29:57 +0200 Subject: [Gambas-user] Help with charset In-Reply-To: References: <1314512706.1085.90.camel@...2657...> <1314518692.1085.95.camel@...2657...> <4E59F98E.6050001@...20...> Message-ID: 2011/8/28 xOChilpili : > Bruce: > > Yes, but ... I think that my english is too bad :( sorry... > > here is my tableview > ______________________ > |___|_Col1_|_Col2_|_Col3_| > |_1_|_____ |_____ |______| > |_2_|_____ |_____ |______| > |_3.... > ? ^ <- user clicks here. And in method tableView_Click i have > tableView.edit() > So, i have two troubles right now: > > 1.- How to get this selected Row --Clicked on the header Row Column-- > 2.- Once edited the cell, gambas crash when i try to return to browse mode > using tableView.Cancel. I have no idea how to disable "edit" mode and back > since i never clicked the tableView. i'didn't understand what you want to do :/ to have the selected row number it's Tableview.row how do you want to desable the edit mode ... with a button ? please make a short exemple and post it ... so we can see where is your problem. > Thanks... > > > xOCh > > > -- > -- > Powered by xOCh > 210 > ------------------------------------------------------------------------------ > EMC VNX: the world's simplest storage, starting under $10K > The only unified storage solution that offers unified management > Up to 160% more powerful than alternatives and 25% more efficient. > Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From bbruen at ...2308... Sun Aug 28 12:10:42 2011 From: bbruen at ...2308... (Bruce Bruen) Date: Sun, 28 Aug 2011 19:40:42 +0930 Subject: [Gambas-user] Help with charset In-Reply-To: References: <1314512706.1085.90.camel@...2657...> <1314518692.1085.95.camel@...2657...> <4E59F98E.6050001@...20...> Message-ID: <1314526242.1085.121.camel@...2657...> On Sun, 2011-08-28 at 04:24 -0500, xOChilpili wrote: > Bruce: > > Yes, but ... I think that my english is too bad :( sorry... > > here is my tableview > ______________________ > |___|_Col1_|_Col2_|_Col3_| > |_1_|_____ |_____ |______| > |_2_|_____ |_____ |______| > |_3.... > ^ <- user clicks here. And in method tableView_Click i have > tableView.edit() > So, i have two troubles right now: > > 1.- How to get this selected Row --Clicked on the header Row Column-- > 2.- Once edited the cell, gambas crash when i try to return to browse mode > using tableView.Cancel. I have no idea how to disable "edit" mode and back > since i never clicked the tableView. > > Thanks... > > > xOCh > > xOChilpili, I am going to go through this very slowly, please don't take anything the wrong way. I think you are a relatively new user of gambas. If not, then I apologise for what is going to follow. But if you are, then.. The gambas help is very well constructed. However, there is a need for you to read everything that is on a help page, and I really mean everything. This is because there is a wealth of information there but the style is very succinct (maybe this is the wrong word? concise may be better) I only say this because it is a necessary part of becoming a good gambas developer. Even after several years of using gambas, I still have to remind myself occasionally to "Read ALL the help page!" On the tableview help page the answer that I think you need is at the top of the page, above the Symbols box. "Use the Edit method to start editing a cell. For example, during a click event." Now, I'm going to re-paste that line with a bit of my own highlighting: "Use the Edit method to start editing a cell. For example, during a click event." So the click event is only one way to start an edit. The event I think you are needing is the "RowClick" event, down there in the Events part of the Symbols box. But wait, lets look at the Edit method! This time underneath the box I see: "Starts editing the current cell." But the user has clicked on a row, not a cell! Now you, x0Chilpili, have a problem here. Which cell are they trying to edit? Now when you have solved that, read the help on tableview.Save and tableview.Cancel and then come right back with more questions. I really hope this helps as I think gambas is one of the most marvellous things I have found in over 35 years in the software industry. Bruce From xochilpili at ...626... Sun Aug 28 12:15:15 2011 From: xochilpili at ...626... (xOChilpili) Date: Sun, 28 Aug 2011 05:15:15 -0500 Subject: [Gambas-user] Help with charset In-Reply-To: References: <1314512706.1085.90.camel@...2657...> <1314518692.1085.95.camel@...2657...> <4E59F98E.6050001@...20...> Message-ID: Fabien: Here is the code: private sub tblView_Click() tblView.edit() end private sub tblView_Save(row as Integer, Column as integer, value as string) if tblView.Column = 3 then query="update table ..." tblView.Cancel <-- once updated the database i want to return into browse mode no more edit needed endif end And Again... ______________________ |___|_Col1_|_Col2_|_Col3_| |_1_|_____ |_____ |______| |_2_|_____ |_____ |______| |_3.... In the properties of TableView Control, there is a Header property i have set "Both" which draw the Column Header and the Row Header << Row Header >> has no method. Thats my problem... If the user click in a cell. tblView.Row but not when i click on Row Header or the control... Thanks. I hope be more clear... xOCh -- -- Powered by xOCh 210 From bbruen at ...2308... Sun Aug 28 12:18:51 2011 From: bbruen at ...2308... (Bruce Bruen) Date: Sun, 28 Aug 2011 19:48:51 +0930 Subject: [Gambas-user] Help with charset In-Reply-To: <1314526242.1085.121.camel@...2657...> References: <1314512706.1085.90.camel@...2657...> <1314518692.1085.95.camel@...2657...> <4E59F98E.6050001@...20...> <1314526242.1085.121.camel@...2657...> Message-ID: <1314526731.1085.124.camel@...2657...> On Sun, 2011-08-28 at 19:40 +0930, Bruce Bruen wrote: > blah, blah By the way, that post was hopefully sent as html and requires a html mail viewer to read it properly. Could someone tell me whether it was received and viewable as such? (Because I'm using a new mail client and I don't know whether I have it set up correctly.) Bruce From xochilpili at ...626... Sun Aug 28 12:29:38 2011 From: xochilpili at ...626... (xOChilpili) Date: Sun, 28 Aug 2011 05:29:38 -0500 Subject: [Gambas-user] Help with charset In-Reply-To: <1314526731.1085.124.camel@...2657...> References: <1314512706.1085.90.camel@...2657...> <1314518692.1085.95.camel@...2657...> <4E59F98E.6050001@...20...> <1314526242.1085.121.camel@...2657...> <1314526731.1085.124.camel@...2657...> Message-ID: Bruce: Sorry, maybe is my english --again-- ... I have read help pages, and i try really. I try using RowClick method but again, it works only clicking into a cell <>. Not in the Row Header. About the tblView.Cancel i simply dont know where to call it. In the save method? Thanks again. I hope not being rude... xOCh -- -- Powered by xOCh 210 From bbruen at ...2308... Sun Aug 28 13:07:02 2011 From: bbruen at ...2308... (Bruce Bruen) Date: Sun, 28 Aug 2011 20:37:02 +0930 Subject: [Gambas-user] Help with charset In-Reply-To: References: <1314512706.1085.90.camel@...2657...> <1314518692.1085.95.camel@...2657...> <4E59F98E.6050001@...20...> <1314526242.1085.121.camel@...2657...> <1314526731.1085.124.camel@...2657...> Message-ID: <1314529622.1085.126.camel@...2657...> On Sun, 2011-08-28 at 05:29 -0500, xOChilpili wrote: > I hope not being rude Not at all! But I am going to have to go now, as my dinner is ready. I'll be back later or tomorrow. Bruce From jussi.lahtinen at ...626... Sun Aug 28 14:21:48 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 28 Aug 2011 15:21:48 +0300 Subject: [Gambas-user] Signal 11 In-Reply-To: <201108270333.11021.gambas@...1...> References: <201108262303.13567.gambas@...1...> <201108270333.11021.gambas@...1...> Message-ID: Yes, works now! Jussi 2011/8/27 Beno?t Minisini > > gnome 2.32.1 > > metacity 2.30.3 > > > > Theme is clearlooks classic for controls and clearlooks for window > > borders... > > > > What else you need to know? > > > > Jussi > > > > I know enough to reproduce the crash. > > It should be fixed in revision #4044. > > Regards, > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > EMC VNX: the world's simplest storage, starting under $10K > The only unified storage solution that offers unified management > Up to 160% more powerful than alternatives and 25% more efficient. > Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From charles at ...1784... Sun Aug 28 16:08:20 2011 From: charles at ...1784... (charlesg) Date: Sun, 28 Aug 2011 07:08:20 -0700 (PDT) Subject: [Gambas-user] Moving a modal child window In-Reply-To: <201108262313.11855.gambas@...1...> References: <32326228.post@...1379...> <201108262313.11855.gambas@...1...> Message-ID: <32351574.post@...1379...> Beno?t Minisini wrote: > >> I am trying to position a modal child window relative to its parent. When >> I >> put 'me.top = FMain.top + 20' in the _Open class of the child, it works >> with GTK but not QT (where the child window opens centered). > > That bug should be fixed in revision #4043. > Thank you. Works fine now. rgds -- View this message in context: http://old.nabble.com/Moving-a-modal-child-window-tp32326228p32351574.html Sent from the gambas-user mailing list archive at Nabble.com. From dag.jarle.johansen at ...626... Sun Aug 28 18:32:05 2011 From: dag.jarle.johansen at ...626... (Dag-Jarle Johansen) Date: Sun, 28 Aug 2011 13:32:05 -0300 Subject: [Gambas-user] Arrays of controls In-Reply-To: <4E59F818.2040107@...20...> References: <4E59F818.2040107@...20...> Message-ID: thanks a lot, tobias, danke sehr, genau was ich brauche - just what I was looking for and searched a lot for. and an extra thanks for the very detailled description; mostly there is one little point, clear to anyone who uses this every day, and therefor not mentioned, but an obstacle to the newbie. now I am looking forward to use this new knowledge in my software. regards, Dag-Jarle Johansen 2011/8/28 tobias > hi, > > > I do not check this at all: > > > > Public Sub Page_First_Init() > > Dim hPictureBox As PictureBox > > Dim I As Integer > > For i = 0 To 9 > > hPictureBox = New PictureBox(Me) As "PBX" > > hPictureBox.Tag = i > > Next > > End > > ok, you have a loop from 0 to 9 in which you create PictureBoxes by > using New, each of them gets the event name "PBX" and a tag to identify > them. > those PictureBoxes are created on Me and therefore now normal controls. > you additionally hold a reference to the just created one in hPictureBox > so you can change its attributes as you want: > hPictureBox.Visible = False > you can pick a particular box using Me.Children (i don't know, if this > is the best solution for it): > > Public Function Pick(iInd As Integer) As PictureBox > Dim cControl As Control > > For Each cControl In Me.Children > If Object.Type(cControl) = "PictureBox" And cControl.Tag = iInd Then > Return cControl > Endif > Next > Return Null > End > > the thing with this is that Tags may be set arbitrarily, so checking if > the control is also a PictureBox is a little more secure not to give > something wrong back but keep in mind that for some reason, you may have > given another PictureBox the same Tag which leads to giving back the > first one recognized in Me.Children... (according to the doc, the Tag > property of Controls aren't used by any component but only by the > programmer, so you might take this solution with care or derive another > one from it. > for a different approach, you may have a look at the ArrayOfControls > example. > > within an event raised by the PBX "group" you can just use Last. > > i hope, it's somehow clearer, now? > > regards, > tobi > > > ------------------------------------------------------------------------------ > EMC VNX: the world's simplest storage, starting under $10K > The only unified storage solution that offers unified management > Up to 160% more powerful than alternatives and 25% more efficient. > Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From dag.jarle.johansen at ...626... Sun Aug 28 18:38:16 2011 From: dag.jarle.johansen at ...626... (Dag-Jarle Johansen) Date: Sun, 28 Aug 2011 13:38:16 -0300 Subject: [Gambas-user] Arrays of controls In-Reply-To: <201108281039.55849.gambas@...1...> References: <201108281039.55849.gambas@...1...> Message-ID: hi Benoit, thank you. Now I have two solutions possible :-) By the way, congratulations to the development of Gambas, it is real grown up now. The speed of development makes it a little difficult to follow up, as I have some breaks doing other projects. (Often forgetting what I already knew, getting old, I presume). Thanks again, regards Dag-Jarle Johansen 2011/8/28 Beno?t Minisini > > Hi out there, > > > > I do not check this at all: > > > > Public Sub Page_First_Init() > > Dim hPictureBox As PictureBox > > Dim I As Integer > > For i = 0 To 9 > > hPictureBox = New PictureBox(Me) As "PBX" > > hPictureBox.Tag = i > > Next > > End > > > > Seems to work. But how do I call one of this bitmaps, for example make > the > > first visible, and resize it? I have a complete crash with the FOR EACH, > do > > not understand it at all, what to define where. > > > > I will be really grateful for some detailled help here, because it levels > > up the software massive, when I get this jump. I have looked a lot > around, > > but for the point I don't understand - nothing. > > > > In this case PBX_Click() will help me nothing, because all PictureBoxes > > have to be invisible at start. > > > > Thanks in advance and regards, > > Dag-Jarle johansen > > The solution is in the mail subject. > > If you use Gambas 3, you can do that: > > ' --------- > > Private $aPictureBox As PictureBox[] > > Public Sub Page_First_Init() > Dim hPictureBox As PictureBox > Dim I As Integer > $aPictureBox = New PictureBox[10] > For i = 0 To 9 > hPictureBox = New PictureBox(Me) As "PBX" > hPictureBox.Tag = i > $aPictureBox[i] = hPictureBox > Next > End > > ' --------- > > Then you will access the i-th PictureBox somewhere else with > $aPictureBox[i]. > > Regards, > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > EMC VNX: the world's simplest storage, starting under $10K > The only unified storage solution that offers unified management > Up to 160% more powerful than alternatives and 25% more efficient. > Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From leandrosansilva at ...626... Sun Aug 28 19:47:56 2011 From: leandrosansilva at ...626... (Leandro Santiago) Date: Sun, 28 Aug 2011 14:47:56 -0300 Subject: [Gambas-user] Gambas3 crash (QAbstractScrollArea::viewport) Message-ID: I just compiled gambas today (revision 4052). To reproduce, I just executed the command gambas3 on terminal. Nothing more happens, just the chash. The gdb backtrace is in: http://pastebin.com/kMi4BgnF -- Atenciosamente, Leandro From gambas at ...1... Sun Aug 28 19:52:08 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 28 Aug 2011 19:52:08 +0200 Subject: [Gambas-user] Gambas3 crash (QAbstractScrollArea::viewport) In-Reply-To: References: Message-ID: <201108281952.08362.gambas@...1...> > I just compiled gambas today (revision 4052). > > To reproduce, I just executed the command gambas3 on terminal. Nothing > more happens, just the chash. > > The gdb backtrace is in: > > http://pastebin.com/kMi4BgnF According to the backtrace, the crash comes from libbespin.so. Can you try with another widget theme than "bespin" ? -- Beno?t Minisini From leandrosansilva at ...626... Sun Aug 28 20:00:33 2011 From: leandrosansilva at ...626... (Leandro Santiago) Date: Sun, 28 Aug 2011 15:00:33 -0300 Subject: [Gambas-user] Gambas3 crash (QAbstractScrollArea::viewport) In-Reply-To: <201108281952.08362.gambas@...1...> References: <201108281952.08362.gambas@...1...> Message-ID: Wow, you're really fast :-) Yes, You're right. With oxygen it works fine. That's very strange. All Qt4 programs I use work fine with bespin. 2011/8/28 Beno?t Minisini : >> I just compiled gambas today (revision 4052). >> >> To reproduce, I just executed the command gambas3 on terminal. Nothing >> more happens, just the chash. >> >> The gdb backtrace is in: >> >> http://pastebin.com/kMi4BgnF > > According to the backtrace, the crash comes from libbespin.so. Can you try > with another widget theme than "bespin" ? > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > EMC VNX: the world's simplest storage, starting under $10K > The only unified storage solution that offers unified management > Up to 160% more powerful than alternatives and 25% more efficient. > Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Atenciosamente, Leandro From gambas at ...2524... Sun Aug 28 23:29:35 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 28 Aug 2011 21:29:35 +0000 Subject: [Gambas-user] Issue 86 in gambas: Help browser and opening a different project In-Reply-To: <0-6813199134517018827-17460925644828372219-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-17460925644828372219-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-17460925644828372219-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -Version Version-TRUNK Comment #1 on issue 86 by benoit.m... at ...626...: Help browser and opening a different project http://code.google.com/p/gambas/issues/detail?id=86 (No comment was entered for this change.) From gambas at ...2524... Sun Aug 28 23:33:36 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 28 Aug 2011 21:33:36 +0000 Subject: [Gambas-user] Issue 86 in gambas: Help browser and opening a different project In-Reply-To: <1-6813199134517018827-17460925644828372219-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-17460925644828372219-gambas=googlecode.com@...2524...> <0-6813199134517018827-17460925644828372219-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-17460925644828372219-gambas=googlecode.com@...2524...> Comment #2 on issue 86 by benoit.m... at ...626...: Help browser and opening a different project http://code.google.com/p/gambas/issues/detail?id=86 Fixed in revision #4054 From gambas at ...2524... Sun Aug 28 23:37:36 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 28 Aug 2011 21:37:36 +0000 Subject: [Gambas-user] Issue 86 in gambas: Help browser and opening a different project In-Reply-To: <2-6813199134517018827-17460925644828372219-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-17460925644828372219-gambas=googlecode.com@...2524...> <0-6813199134517018827-17460925644828372219-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-17460925644828372219-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #3 on issue 86 by benoit.m... at ...626...: Help browser and opening a different project http://code.google.com/p/gambas/issues/detail?id=86 (No comment was entered for this change.) From gambas at ...2524... Sun Aug 28 23:41:37 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 28 Aug 2011 21:41:37 +0000 Subject: [Gambas-user] Issue 87 in gambas: Class and symbol level comments mixed in help browser In-Reply-To: <0-6813199134517018827-6871478721424681634-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-6871478721424681634-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-6871478721424681634-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -Version Version-TRUNK Comment #1 on issue 87 by benoit.m... at ...626...: Class and symbol level comments mixed in help browser http://code.google.com/p/gambas/issues/detail?id=87 (No comment was entered for this change.) From gambas at ...2524... Sun Aug 28 23:45:38 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 28 Aug 2011 21:45:38 +0000 Subject: [Gambas-user] Issue 87 in gambas: Class and symbol level comments mixed in help browser In-Reply-To: <1-6813199134517018827-6871478721424681634-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-6871478721424681634-gambas=googlecode.com@...2524...> <0-6813199134517018827-6871478721424681634-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-6871478721424681634-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #2 on issue 87 by benoit.m... at ...626...: Class and symbol level comments mixed in help browser http://code.google.com/p/gambas/issues/detail?id=87 Fixed in revision #4055. From gambas at ...2524... Mon Aug 29 02:15:19 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 29 Aug 2011 00:15:19 +0000 Subject: [Gambas-user] Issue 88 in gambas: G3 Help Browser - General Navigation 1 : External links Message-ID: <0-6813199134517018827-17630489862263442673-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 88 by adamn... at ...626...: G3 Help Browser - General Navigation 1 : External links http://code.google.com/p/gambas/issues/detail?id=88 1) Links to external sites are ignored by the G3 help browser. This appears to be true for all external links (except the gambas sourceforge site). 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: TRUNK Revision: r4052 Operating system: Linux Distribution: Gentoo based Architecture: x86 GUI component: GTK+ Desktop used: LXDE 3) Provide a little project that reproduces the bug or the crash. N/A 4) If your project needs a database, try to provide it, or part of it. N/A 5) Explain clearly how to reproduce the bug or the crash. a) Open the help browser. b) Click on the gambas.sourceforge.net button c) Click on the Paypal link ==> nothing happens! d) Click on the Donate button ==> nothing happens! Same for any other external link, I think. I thought those just might get you attention :-) e) Click on the Bug Tracker link ==> nothing happens! This is true no matter whether or not a Browser is selected in Preferences/Applications. In addition, the context menu doesn't help either. Right clicking and selecting Open Link or Open in New Window are ignored. (See also G3 Help Browser - General Navigation 2 : Homepage Context Menu) From gambas at ...2524... Mon Aug 29 02:20:20 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 29 Aug 2011 00:20:20 +0000 Subject: [Gambas-user] Issue 89 in gambas: G3 Help Browser - General Navigation 2 : Homepage Context Menu Message-ID: <0-6813199134517018827-16621617040883998633-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 89 by adamn... at ...626...: G3 Help Browser - General Navigation 2 : Homepage Context Menu http://code.google.com/p/gambas/issues/detail?id=89 1) Using the help browser context menu on the gambas homepage has some strange effects 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: TRUNK Revision: r4052 Operating system: Linux Distribution: Gentoo based Architecture: x86 GUI component: GTK+ Desktop used: LXDE 3) Provide a little project that reproduces the bug or the crash. N/A 4) If your project needs a database, try to provide it, or part of it. N/A 5) Explain clearly how to reproduce the bug or the crash. a) Open the help browser. b) Click on the gambas.sourceforge.net button c) Right click on the "Books" link in the left hand menu bar ==> the Books page is loaded into the left hand frame?? This is true no matter whether or not a Browser is selected in Preferences/Applications. (Suggest: Perhaps the sourceforge button should open in an external browser instance) From gambas at ...2524... Mon Aug 29 02:52:25 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 29 Aug 2011 00:52:25 +0000 Subject: [Gambas-user] Issue 90 in gambas: G3 Help Browser - General Navigation 3 (internal pages part 1) Message-ID: <0-6813199134517018827-2432514690730051798-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 90 by adamn... at ...626...: G3 Help Browser - General Navigation 3 (internal pages part 1) http://code.google.com/p/gambas/issues/detail?id=90 1) This report contains several issues (sorry, but they are all related to the one area the treeview, so please forgive me). a) The treeview is not reset when an external link is selected, leaving an unclickable item selected. { Open the attached project, open the help browser and ensure that the treeview is visible, click on "Cat", click on the gambas.sourceforge.net button} ==> Note that the selected item in the treeview is still "Cat", clicking on it now does nothing. (See suggestion 1 below) b) Current project items are ignored in the browser history. { Need a completely new instance of the IDE, Open the attached project, open the help browser, click on "Cat", click on "Dog", click on the back button ==> nothing happens Now click on the gb library item and then Collection, then click on the back button. ==> the help page is displayed Now click on the forward button ==> the Collection page is displayed. ?????? (On reflection I've split the remainder into separate issues) 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: TRUNK Revision: r4055 Operating system: Linux Distribution: Gentoo based Architecture: x86 GUI component: GTK+ Desktop used: LXDE 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. N/A 5) Explain clearly how to reproduce the bug or the crash. See above. SUGGESTIONS 1) The treeview can be refreshed by the following change to the FHelpBrowser Public Sub btnHome_Click() webHelp.Url = GetHomeURL() webHelp.TextZoom = 0.8 tvwClasses.MoveFirst tvwClasses.Item.Selected = True End From gambas at ...2524... Mon Aug 29 02:58:30 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 29 Aug 2011 00:58:30 +0000 Subject: [Gambas-user] Issue 91 in gambas: G3 Help Browser - General Navigation 3 (internal pages part 2) Message-ID: <0-6813199134517018827-7340941523141783577-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 91 by adamn... at ...626...: G3 Help Browser - General Navigation 3 (internal pages part 2) http://code.google.com/p/gambas/issues/detail?id=91 1) This report relates to the help browser and CURRENT PROJECT items. Internal links are not handled properly. 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: TRUNK Revision: r4055 Operating system: Linux Distribution: Gentoo based Architecture: x86 GUI component: GTK+ Desktop used: LXDE 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. N/A 5) Explain clearly how to reproduce the bug or the crash. a) open the attached project and open the help browser b) click on "Animal" ==> the help page is shown correctly c) click on "Dog" d) then click on the "Animal" link shown in the page as the class parent ==> the browser can't find the page. Attachments: comphelp1-0.0.6.tar.gz 5.0 KB From gambas at ...2524... Mon Aug 29 03:02:32 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 29 Aug 2011 01:02:32 +0000 Subject: [Gambas-user] Issue 90 in gambas: G3 Help Browser - General Navigation 3 (internal pages part 1) In-Reply-To: <0-6813199134517018827-2432514690730051798-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-2432514690730051798-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-2432514690730051798-gambas=googlecode.com@...2524...> Comment #1 on issue 90 by adamn... at ...626...: G3 Help Browser - General Navigation 3 (internal pages part 1) http://code.google.com/p/gambas/issues/detail?id=90 Oops! I forgot the project (it's the same one as #91) but here it is Attachments: comphelp1-0.0.6.tar.gz 5.0 KB From gambas at ...2524... Mon Aug 29 03:36:38 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 29 Aug 2011 01:36:38 +0000 Subject: [Gambas-user] Issue 88 in gambas: G3 Help Browser - General Navigation 1 : External links In-Reply-To: <0-6813199134517018827-17630489862263442673-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-17630489862263442673-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-17630489862263442673-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -Version Version-TRUNK Comment #1 on issue 88 by benoit.m... at ...626...: G3 Help Browser - General Navigation 1 : External links http://code.google.com/p/gambas/issues/detail?id=88 (No comment was entered for this change.) From gambas at ...2524... Mon Aug 29 03:40:41 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 29 Aug 2011 01:40:41 +0000 Subject: [Gambas-user] Issue 88 in gambas: G3 Help Browser - General Navigation 1 : External links In-Reply-To: <1-6813199134517018827-17630489862263442673-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-17630489862263442673-gambas=googlecode.com@...2524...> <0-6813199134517018827-17630489862263442673-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-17630489862263442673-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #2 on issue 88 by benoit.m... at ...626...: G3 Help Browser - General Navigation 1 : External links http://code.google.com/p/gambas/issues/detail?id=88 Fixed in revision #4056. External links open in the external browser. From gambas at ...2524... Mon Aug 29 03:44:41 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 29 Aug 2011 01:44:41 +0000 Subject: [Gambas-user] Issue 89 in gambas: G3 Help Browser - General Navigation 2 : Homepage Context Menu In-Reply-To: <0-6813199134517018827-16621617040883998633-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-16621617040883998633-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-16621617040883998633-gambas=googlecode.com@...2524...> Updates: Status: WontFix Labels: -Version Version-TRUNK Comment #1 on issue 89 by benoit.m... at ...626...: G3 Help Browser - General Navigation 2 : Homepage Context Menu http://code.google.com/p/gambas/issues/detail?id=89 If you right click on the "Books" link, a popup should open. The first entry is "Open link", and it opens the link in the current frame. So that behaviour is normal. Use left click ! From gambas at ...2524... Mon Aug 29 03:48:42 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 29 Aug 2011 01:48:42 +0000 Subject: [Gambas-user] Issue 90 in gambas: G3 Help Browser - General Navigation 3 (internal pages part 1) In-Reply-To: <1-6813199134517018827-2432514690730051798-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-2432514690730051798-gambas=googlecode.com@...2524...> <0-6813199134517018827-2432514690730051798-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-2432514690730051798-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -Version Version-TRUNK Comment #2 on issue 90 by benoit.m... at ...626...: G3 Help Browser - General Navigation 3 (internal pages part 1) http://code.google.com/p/gambas/issues/detail?id=90 Please don't put two different bugs in the same issue. Hopefully, the first one will be fixed by always refreshing the help page when we click on the treeview, even if we click on the selected item. From imageek247 at ...626... Mon Aug 29 03:50:15 2011 From: imageek247 at ...626... (Christian DaGeek247 Stephens) Date: Sun, 28 Aug 2011 20:50:15 -0500 Subject: [Gambas-user] (no subject) Message-ID: -- 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 gambas at ...2524... Mon Aug 29 03:52:43 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 29 Aug 2011 01:52:43 +0000 Subject: [Gambas-user] Issue 91 in gambas: G3 Help Browser - General Navigation 3 (internal pages part 2) In-Reply-To: <0-6813199134517018827-7340941523141783577-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-7340941523141783577-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-7340941523141783577-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -Version Version-TRUNK Comment #1 on issue 91 by benoit.m... at ...626...: G3 Help Browser - General Navigation 3 (internal pages part 2) http://code.google.com/p/gambas/issues/detail?id=91 (No comment was entered for this change.) From imageek247 at ...626... Mon Aug 29 03:55:00 2011 From: imageek247 at ...626... (Christian Stephens) Date: Sun, 28 Aug 2011 20:55:00 -0500 Subject: [Gambas-user] Syntax error not my fault Message-ID: <4e5af22a.0b30960a.6214.3dae@...2392...> im using gambas2 and the settings component. They were both working fine (especialy the settings component. I love it.) until just recently. Im using the exact code below; FMain.Top = Settings["Window/Top", FMain.Top] but i keep getting this error which is not refering to my line of code, but it is still highlighting it; Syntax error in settings file at line #2: Out of bounds is it my fault, or some sort of permissions error? Any help? ~DaGeek247 "if only Noah had squished those two mosquitoes" From gambas at ...2524... Mon Aug 29 08:18:03 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 29 Aug 2011 06:18:03 +0000 Subject: [Gambas-user] Issue 92 in gambas: Wrong combobox list referenced in FOptions Message-ID: <0-6813199134517018827-3592309528018894940-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 92 by adamn... at ...626...: Wrong combobox list referenced in FOptions http://code.google.com/p/gambas/issues/detail?id=92 1) The Image editor combo box _Click handler is saving the wrong thing in the gambas3.config file. See below (regardless of the current state and use of the options for Applications :-) ) 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: TRUNK Revision: r4055 FOptions code in app/src/Gambas3 is Public Sub cmbImageEditor_Click() If cmbImageEditor.Index > 0 Then Settings["/ImageEditor"] = $aTerminal[cmbImageEditor.Index - 1] Else Settings["/ImageEditor"] = "" Endif End should be Public Sub cmbImageEditor_Click() If cmbImageEditor.Index > 0 Then Settings["/ImageEditor"] = $aImageEditor[cmbImageEditor.Index - 1] Else Settings["/ImageEditor"] = "" Endif End From gambas at ...1... Mon Aug 29 14:17:27 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 29 Aug 2011 14:17:27 +0200 Subject: [Gambas-user] Syntax error not my fault In-Reply-To: <4e5af22a.0b30960a.6214.3dae@...2392...> References: <4e5af22a.0b30960a.6214.3dae@...2392...> Message-ID: <201108291417.27119.gambas@...1...> > im using gambas2 and the settings component. They were both working fine > (especialy the settings component. I love it.) until just recently. Im > using the exact code below; FMain.Top = Settings["Window/Top", FMain.Top] > but i keep getting this error which is not refering to my line of code, but > it is still highlighting it; Syntax error in settings file at line #2: Out > of bounds > is it my fault, or some sort of permissions error? Any help? > Maybe the settings file is corrupted? Look at it in ~/.config/gambas/.conf, where is the name of your project. -- Beno?t Minisini From gambas at ...2524... Mon Aug 29 14:19:19 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 29 Aug 2011 12:19:19 +0000 Subject: [Gambas-user] Issue 92 in gambas: Wrong combobox list referenced in FOptions In-Reply-To: <0-6813199134517018827-3592309528018894940-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-3592309528018894940-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-3592309528018894940-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -Version Version-TRUNK Comment #1 on issue 92 by benoit.m... at ...626...: Wrong combobox list referenced in FOptions http://code.google.com/p/gambas/issues/detail?id=92 (No comment was entered for this change.) From jussi.lahtinen at ...626... Mon Aug 29 16:43:45 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 29 Aug 2011 17:43:45 +0300 Subject: [Gambas-user] Error in example: WebCam 1.0.4 Message-ID: 'Form.Close' is incorrectly overridden in class 'FDevice' Gambas 3 rev 4052 @ Ubuntu 11.04 64bit Jussi From gambas at ...2524... Mon Aug 29 20:07:16 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 29 Aug 2011 18:07:16 +0000 Subject: [Gambas-user] Issue 92 in gambas: Wrong combobox list referenced in FOptions In-Reply-To: <1-6813199134517018827-3592309528018894940-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-3592309528018894940-gambas=googlecode.com@...2524...> <0-6813199134517018827-3592309528018894940-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-3592309528018894940-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #2 on issue 92 by benoit.m... at ...626...: Wrong combobox list referenced in FOptions http://code.google.com/p/gambas/issues/detail?id=92 Fixed in revision #4058. From gambas at ...2524... Tue Aug 30 00:58:36 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 29 Aug 2011 22:58:36 +0000 Subject: [Gambas-user] Issue 90 in gambas: G3 Help Browser - General Navigation 3 (internal pages part 1) In-Reply-To: <2-6813199134517018827-2432514690730051798-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-2432514690730051798-gambas=googlecode.com@...2524...> <0-6813199134517018827-2432514690730051798-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-2432514690730051798-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #3 on issue 90 by benoit.m... at ...626...: G3 Help Browser - General Navigation 3 (internal pages part 1) http://code.google.com/p/gambas/issues/detail?id=90 History has been fixed in revision #4060. From gambas at ...2524... Tue Aug 30 02:54:22 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 30 Aug 2011 00:54:22 +0000 Subject: [Gambas-user] Issue 91 in gambas: G3 Help Browser - General Navigation 3 (internal pages part 2) In-Reply-To: <1-6813199134517018827-7340941523141783577-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-7340941523141783577-gambas=googlecode.com@...2524...> <0-6813199134517018827-7340941523141783577-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-7340941523141783577-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #2 on issue 91 by benoit.m... at ...626...: G3 Help Browser - General Navigation 3 (internal pages part 2) http://code.google.com/p/gambas/issues/detail?id=91 It should be fixed in revision #4061. From kevinfishburne at ...1887... Tue Aug 30 07:52:59 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Tue, 30 Aug 2011 01:52:59 -0400 Subject: [Gambas-user] gb3: using string as stream for sequential write operations of arbitrary datatypes Message-ID: <4E5C7ABB.80109@...1887...> Crap, I accidentally sent this to the man himself instead of the mailing list. Sorry about that Beno?t. I'm implementing client-server network transaction histories so that transactions which are sent but aren't answered by an acknowledgment (dropped/lost) are resent. I don't want to have to recreate the transaction payloads however, but simply resend a copy of what was originally sent. Here's an example of what I'm doing (edited and condensed for legibility): Public Sub UDP_Write_120(ip As String, port As Integer, id As Byte, player As Short, worldx As Single, worldy As Single) ' Send "players data update, world coordinates, one player" transaction to specified IP address and port over UDP. ' Define target's IP address and port. udp.TargetHost = ip udp.TargetPort = port ' Send transaction. udp.Begin Write #udp, id As Byte Write #udp, 120 As Byte Write #udp, player As Short Write #udp, worldx As Single Write #udp, worldy As Single udp.Send ' Add to transaction history. UDP_Write_Finish(ip, port, id, 120) End The recipient will receive a string (data) which I break down into separate variables using the code: ' Parse UDP data and assign to variables. id = Read #udp As Byte type = Read #udp As Byte If Eof(udp) = False Then data = Read #udp, Lof(udp) ' Parse UDP data and add to client's server transaction queue. Client.QueueIn[id].Type = type ' Type. Client.QueueIn[id].Data = data ' Data ' New transaction found, assign its data to variables. tstype = QueueIn[tspos].Type ' Type. tsdata = QueueIn[tspos].Data ' Data. ' Update another player's position from the transaction queue. pposition[Short@(Convert.Reverse(Mid$(tsdata, 1, 2))), 0] = Single@(Convert.Reverse(Mid$(tsdata, 3, 4))) pposition[Short@(Convert.Reverse(Mid$(tsdata, 1, 2))), 1] = Single@(Convert.Reverse(Mid$(tsdata, 7, 4))) All this works extremely well. The problem is when I try to store the payload (player, worldx, worldy) for the outgoing transaction in the transaction history. When writing variables to the network socket, a string containing the variables is received by the recipient which I can parse. I need to add that string to the transaction history of the sender. The "UDP_Write_Finish()" procedure mentioned looks like this: Public Sub UDP_Write_Finish(ip As String, port As Integer, id As Byte, type As Byte) ' Perform post-write tasks. Called after a transaction has been sent. ' General declarations. Dim Player As Short ' Determine client/server mode. If mode = "server" Then ' Look up player number. Player = Server.Player_Find_IP(ip) ' Add transaction to server's outgoing transaction queue. Server.QueueOut[Player, id].Acknowledged = False Server.QueueOut[Player, id].Timestamp = Timer Server.QueueOut[Player, id].Type = type Server.QueueOut[Player, id].Data = ??? ' Increment the server transaction ID for the client. Server.Increment_ID(Player) ' Display debug info. Console.Say("Sent to client " & ip & ", Port: " & port & ", ID: " & id & ", Type: " & type) Else ' Add transaction to client's outgoing transaction queue. Client.QueueOut[id].Acknowledged = False Client.QueueOut[id].Timestamp = Timer Client.QueueOut[id].Type = type Client.QueueOut[id].Data = ??? ' Increment the client transaction ID. Client.Increment_ID ' Display debug info. Console.Say("Sent to server " & ip & ", Port: " & port & ", ID: " & id & ", Type: " & type) Endif End When a transaction isn't received and I need to resend it, I'd like to be able to refer to the transaction history and resend the data (QueueOut[id].Data) without having to recalculate it, especially since the data may have changed during the timeout period. I don't see any way to store a completely arbitrary set of datatypes as a single structure property however. I could write them to a file, then read the file into a string and load it into a property of the array of structures, but that's just crazy. As you may remember the converse of the [datatype]@ functions solved this problem but were removed from gb3. If any other solution is available I'd like to hear about it. The subject line of the email is one suggestion, though I don't know if it's possible. If it is possible then I could create a string from arbitrary variables, send the string via UDP and archive it in the transaction history. Any insight is appreciated, as always. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From bbruen at ...2308... Tue Aug 30 10:35:29 2011 From: bbruen at ...2308... (Bruce Bruen) Date: Tue, 30 Aug 2011 18:05:29 +0930 Subject: [Gambas-user] gb3: using string as stream for sequential write operations of arbitrary datatypes In-Reply-To: <4E5C7ABB.80109@...1887...> References: <4E5C7ABB.80109@...1887...> Message-ID: <1314693329.28789.22.camel@...2657...> On Tue, 2011-08-30 at 01:52 -0400, Kevin Fishburne wrote: > When a transaction isn't received and I need to resend it, I'd like > to > be able to refer to the transaction history and resend the data > (QueueOut[id].Data) without having to recalculate it, especially > since > the data may have changed during the timeout period. I don't see any > way > to store a completely arbitrary set of datatypes as a single > structure > property however. I could write them to a file, then read the file > into > a string and load it into a property of the array of structures, but > that's just crazy. Kevin, I can't give you an answer to the question you ask, mainly because I kept seeing bigger problems as I read your post. From what I glean, this is a classic TX->ACK situation and I think you are basing the code on some type of timeout rule, such that TX->?->TX. However, there are some problems with that model. Firstly, where did the failure occur? a) firstly, the transaction was never "sent" from end A (why? is immaterial. What is, is that end B will not have any possibility of processing the transaction or sending the ACK) b) second, the transaction was fully received by end B, but for some reason it never ACK'ed it b1) it did process the full transaction, but never sent the ACK b2) it did not process the transaction and never sent the ACK c) the transaction was fully received, processed and the ACK sent, but it was never received by end A. Since at the end of the timeout, end A has no knowledge of the state of end B simply retransmitting the same transaction is considered "bad design" in network theory. (I could lookup the references for you, but they are on rotting pieces of paper somewhere in a mouldy box in the garage, and...) >From memory, there are at least two well-formed models regarding these problems: i) any retransmission is marked as such. This puts a need on the server to audit any retransmission and either process it or ignore it. ii) any failed transmission is assumed to have been processed by end B and a reversal transaction is sent by end A before retrying the transaction. This means that end B must implement a "reversal" procedure, but puts the onus on end A to ensure that the transaction ONLY HAPPENS ONCE (not yelling, just emphasising). Disregarding your need to store the sent transaction for a moment, it might be wise of you to consider how these. hth Bruce From gambas at ...2524... Tue Aug 30 11:08:09 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 30 Aug 2011 09:08:09 +0000 Subject: [Gambas-user] Issue 88 in gambas: G3 Help Browser - General Navigation 1 : External links In-Reply-To: <2-6813199134517018827-17630489862263442673-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-17630489862263442673-gambas=googlecode.com@...2524...> <0-6813199134517018827-17630489862263442673-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-17630489862263442673-gambas=googlecode.com@...2524...> Comment #3 on issue 88 by adamn... at ...626...: G3 Help Browser - General Navigation 1 : External links http://code.google.com/p/gambas/issues/detail?id=88 Tested. But the paypal link takes me to the French paypal site??? From gambas at ...2524... Tue Aug 30 11:30:25 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 30 Aug 2011 09:30:25 +0000 Subject: [Gambas-user] Issue 88 in gambas: G3 Help Browser - General Navigation 1 : External links In-Reply-To: <3-6813199134517018827-17630489862263442673-gambas=googlecode.com@...2524...> References: <3-6813199134517018827-17630489862263442673-gambas=googlecode.com@...2524...> <0-6813199134517018827-17630489862263442673-gambas=googlecode.com@...2524...> Message-ID: <4-6813199134517018827-17630489862263442673-gambas=googlecode.com@...2524...> Comment #4 on issue 88 by benoit.m... at ...626...: G3 Help Browser - General Navigation 1 : External links http://code.google.com/p/gambas/issues/detail?id=88 Strange: the paypal link sends me to a paypal payment page in english. From kevinfishburne at ...1887... Tue Aug 30 11:31:52 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Tue, 30 Aug 2011 05:31:52 -0400 Subject: [Gambas-user] gb3: using string as stream for sequential write operations of arbitrary datatypes In-Reply-To: <1314693329.28789.22.camel@...2657...> References: <4E5C7ABB.80109@...1887...> <1314693329.28789.22.camel@...2657...> Message-ID: <4E5CAE08.3080605@...1887...> On 08/30/2011 04:35 AM, Bruce Bruen wrote: > On Tue, 2011-08-30 at 01:52 -0400, Kevin Fishburne wrote: >> When a transaction isn't received and I need to resend it, I'd like >> to >> be able to refer to the transaction history and resend the data >> (QueueOut[id].Data) without having to recalculate it, especially >> since >> the data may have changed during the timeout period. I don't see any >> way >> to store a completely arbitrary set of datatypes as a single >> structure >> property however. I could write them to a file, then read the file >> into >> a string and load it into a property of the array of structures, but >> that's just crazy. > Kevin, > > I can't give you an answer to the question you ask, mainly because I > kept seeing bigger problems as I read your post. From what I glean, > this is a classic TX->ACK situation and I think you are basing the code > on some type of timeout rule, such that TX->?->TX. However, there are > some problems with that model. Firstly, where did the failure occur? > a) firstly, the transaction was never "sent" from end A (why? is > immaterial. What is, is that end B will not have any possibility of > processing the transaction or sending the ACK) > b) second, the transaction was fully received by end B, but for some > reason it never ACK'ed it > b1) it did process the full transaction, but never sent the ACK > b2) it did not process the transaction and never sent the ACK > c) the transaction was fully received, processed and the ACK sent, but > it was never received by end A. > Since at the end of the timeout, end A has no knowledge of the state of > end B simply retransmitting the same transaction is considered "bad > design" in network theory. (I could lookup the references for you, but > they are on rotting pieces of paper somewhere in a mouldy box in the > garage, and...) > > From memory, there are at least two well-formed models regarding these > problems: > i) any retransmission is marked as such. This puts a need on the server > to audit any retransmission and either process it or ignore it. > ii) any failed transmission is assumed to have been processed by end B > and a reversal transaction is sent by end A before retrying the > transaction. This means that end B must implement a "reversal" > procedure, but puts the onus on end A to ensure that the transaction > ONLY HAPPENS ONCE (not yelling, just emphasising). > > Disregarding your need to store the sent transaction for a moment, it > might be wise of you to consider how these. All those are valid observations about sending and receiving with acks. My implementation works even with repeated and unwanted resends of data from multiple sources (DoS). It keeps the place of each transaction for each player, authenticating each through either an IP or username/password lookup, and not incrementing the associated transaction queue pointer unless processed properly. Incoming transactions are placed in the queue position that their ID dictates, their ID provided by the incoming transaction data. This way out-of-order packets are stored in the incoming transaction queue without affecting the execution order of the queue. The trick is to place ack sends, ack receives, and transaction retransmissions outside the scope (don't store them) of the incoming and outgoing queues. Just make them happen, and as long as the .Acknowledged property is maintained everything will flow smoothly. Network programming like this is a hell of a thing, though. God help us all... -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From gambas at ...1... Tue Aug 30 11:33:28 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 30 Aug 2011 11:33:28 +0200 Subject: [Gambas-user] Error in example: WebCam 1.0.4 In-Reply-To: References: Message-ID: <201108301133.28355.gambas@...1...> > 'Form.Close' is incorrectly overridden in class 'FDevice' > > Gambas 3 rev 4052 @ Ubuntu 11.04 64bit > > > Jussi Fixed in revision #4057. Regards, -- Beno?t Minisini From gambas at ...2524... Tue Aug 30 11:44:36 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 30 Aug 2011 09:44:36 +0000 Subject: [Gambas-user] Issue 88 in gambas: G3 Help Browser - General Navigation 1 : External links In-Reply-To: <5-6813199134517018827-17630489862263442673-gambas=googlecode.com@...2524...> References: <5-6813199134517018827-17630489862263442673-gambas=googlecode.com@...2524...> <0-6813199134517018827-17630489862263442673-gambas=googlecode.com@...2524...> Message-ID: <6-6813199134517018827-17630489862263442673-gambas=googlecode.com@...2524...> Comment #6 on issue 88 by benoit.m... at ...626...: G3 Help Browser - General Navigation 1 : External links http://code.google.com/p/gambas/issues/detail?id=88 Fixed! From gambas at ...2524... Tue Aug 30 11:38:34 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 30 Aug 2011 09:38:34 +0000 Subject: [Gambas-user] Issue 88 in gambas: G3 Help Browser - General Navigation 1 : External links In-Reply-To: <4-6813199134517018827-17630489862263442673-gambas=googlecode.com@...2524...> References: <4-6813199134517018827-17630489862263442673-gambas=googlecode.com@...2524...> <0-6813199134517018827-17630489862263442673-gambas=googlecode.com@...2524...> Message-ID: <5-6813199134517018827-17630489862263442673-gambas=googlecode.com@...2524...> Comment #5 on issue 88 by benoit.m... at ...626...: G3 Help Browser - General Navigation 1 : External links http://code.google.com/p/gambas/issues/detail?id=88 OK, I see. I have clicked on the button on the left, not on the link on the right! From rterry at ...1946... Tue Aug 30 12:52:14 2011 From: rterry at ...1946... (richard terry) Date: Tue, 30 Aug 2011 20:52:14 +1000 Subject: [Gambas-user] keyboard navigation of combobox Message-ID: <201108302052.14416.rterry@...1946...> Hi list, Question: Ages ago when a combobox had focus, hitting the space bar would cause the combo contents to drop down as if one had clicked on the combo down arrow. This hasn't seemed to worked for a long time -is there another key combination? Regards richard From bbruen at ...2308... Tue Aug 30 13:23:35 2011 From: bbruen at ...2308... (Bruce Bruen) Date: Tue, 30 Aug 2011 20:53:35 +0930 Subject: [Gambas-user] keyboard navigation of combobox In-Reply-To: <201108302052.14416.rterry@...1946...> References: <201108302052.14416.rterry@...1946...> Message-ID: <1314703415.28789.27.camel@...2657...> On Tue, 2011-08-30 at 20:52 +1000, richard terry wrote: > Hi list, > > Question: > > Ages ago when a combobox had focus, hitting the space bar would cause the > combo contents to drop down as if one had clicked on the combo down arrow. > > This hasn't seemed to worked for a long time -is there another key > combination? > > Regards > > richard > > ------------------------------------------------------------------------------ > Special Offer -- Download ArcSight Logger for FREE! > Finally, a world-class log management solution at an even better > price-free! And you'll get a free "Love Thy Logs" t-shirt when you > download Logger. Secure your free ArcSight Logger TODAY! > http://p.sf.net/sfu/arcsisghtdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user I don't think this is a standard gesture. (Whatever that is?) I just tried it in various things, it doesn't work in a gambas app, it does in evolution, it doesn't in firefox ... it does in it doesn't in There used to be a place that atempted to define all this stuff, ??? Bruce From bbruen at ...2308... Tue Aug 30 14:29:42 2011 From: bbruen at ...2308... (Bruce Bruen) Date: Tue, 30 Aug 2011 21:59:42 +0930 Subject: [Gambas-user] keyboard navigation of combobox In-Reply-To: <1314703415.28789.27.camel@...2657...> References: <201108302052.14416.rterry@...1946...> <1314703415.28789.27.camel@...2657...> Message-ID: <1314707382.28789.45.camel@...2657...> On Tue, 2011-08-30 at 20:53 +0930, Bruce Bruen wrote: > stuff about space bars But I want to ask a question. There appears to me these days that I'm getting a psychological dislike of buttonless pop-ups. In many application these days you are presented with a pop-up that asks a reasonable question, you input a reply but the only option you have is to close [x] the popup. I'm asking because gambas3 has some of these and from a usability point of view (or more correctly from a stimulus/response point of view) I don't particularly like it. Perhaps I'm old fashioned (perhaps I'm just old), but I'm used to the edit/[commit|cancel] model of gui. I get a feeling of uncertainty whenever I have to click on the [x] button in order to save something. Further, there is no way to "uncommit" to a change. Don't get me wrong here. There are instances in gambas3 where this happens, but there are many more instances out there that are just reinforcing the negative feeling I'm getting.Maybe I'm just used to filling in government forms in pencil, checking them twice and using an eraser before commiting myself. But as I say, I'm asking a question. How do others feel? Bruce From gambas at ...1... Tue Aug 30 14:36:28 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 30 Aug 2011 14:36:28 +0200 Subject: [Gambas-user] keyboard navigation of combobox In-Reply-To: <1314707382.28789.45.camel@...2657...> References: <201108302052.14416.rterry@...1946...> <1314703415.28789.27.camel@...2657...> <1314707382.28789.45.camel@...2657...> Message-ID: <201108301436.28404.gambas@...1...> > On Tue, 2011-08-30 at 20:53 +0930, Bruce Bruen wrote: > > stuff about space bars > > But I want to ask a question. There appears to me these days that I'm > getting a psychological dislike of buttonless pop-ups. In many > application these days you are presented with a pop-up that asks a > reasonable question, you input a reply but the only option you have is to > close [x] the popup. I'm asking because gambas3 has some of these and > from a usability point of view (or more correctly from a stimulus/response > point of view) I don't particularly like it. > > Perhaps I'm old fashioned (perhaps I'm just old), but I'm used to the > edit/[commit|cancel] model of gui. I get a feeling of uncertainty > whenever I have to click on the [x] button in order to save something. > Further, there is no way to "uncommit" to a change. > > Don't get me wrong here. There are instances in gambas3 where this > happens, but there are many more instances out there that are just > reinforcing the negative feeling I'm getting.Maybe I'm just used to > filling in government forms in pencil, checking them twice and using an > eraser before commiting myself. > > But as I say, I'm asking a question. > How do others feel? > > Bruce > Can you be more precise? Which dialog box or window you are talking about for example... -- Beno?t Minisini From gambas at ...1... Tue Aug 30 15:22:59 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 30 Aug 2011 15:22:59 +0200 Subject: [Gambas-user] Gambas3 crash (QAbstractScrollArea::viewport) In-Reply-To: References: <201108281952.08362.gambas@...1...> Message-ID: <201108301522.59442.gambas@...1...> > Wow, you're really fast :-) > > Yes, You're right. With oxygen it works fine. That's very strange. All > Qt4 programs I use work fine with bespin. > When I use bespin, gambas3 does not crash. Can you export your configuration of bespin and send it to me? -- Beno?t Minisini From bbruen at ...2308... Tue Aug 30 15:26:55 2011 From: bbruen at ...2308... (Bruce Bruen) Date: Tue, 30 Aug 2011 22:56:55 +0930 Subject: [Gambas-user] keyboard navigation of combobox In-Reply-To: <201108301436.28404.gambas@...1...> References: <201108302052.14416.rterry@...1946...> <1314703415.28789.27.camel@...2657...> <1314707382.28789.45.camel@...2657...> <201108301436.28404.gambas@...1...> Message-ID: <1314710815.28789.55.camel@...2657...> On Tue, 2011-08-30 at 14:36 +0200, Beno?t Minisini wrote: > > On Tue, 2011-08-30 at 20:53 +0930, Bruce Bruen wrote: > > > stuff about space bars > > > > But I want to ask a question. There appears to me these days that I'm > > getting a psychological dislike of buttonless pop-ups. In many > > application these days you are presented with a pop-up that asks a > > reasonable question, you input a reply but the only option you have is to > > close [x] the popup. I'm asking because gambas3 has some of these and > > from a usability point of view (or more correctly from a stimulus/response > > point of view) I don't particularly like it. > > > > Perhaps I'm old fashioned (perhaps I'm just old), but I'm used to the > > edit/[commit|cancel] model of gui. I get a feeling of uncertainty > > whenever I have to click on the [x] button in order to save something. > > Further, there is no way to "uncommit" to a change. > > > > Don't get me wrong here. There are instances in gambas3 where this > > happens, but there are many more instances out there that are just > > reinforcing the negative feeling I'm getting.Maybe I'm just used to > > filling in government forms in pencil, checking them twice and using an > > eraser before commiting myself. > > > > But as I say, I'm asking a question. > > How do others feel? > > > > Bruce > > > > Can you be more precise? Which dialog box or window you are talking about for > example... > Preferences in particular, but the Project Properties tabs sometimes confuse me, especially the Environment page. If you flick between a few of the Project Properties tabs, make a new Argument entry say, then go back to the general tab, change the description, change your mind and then click cancel. Did the argument save? No it didn't. Which is correct. But sometimes this is confusing. Do you get what I'm saying? Back to Preferences, there is (at least here) no "Commit" or "Cancel" at all. Not only that, but changes to some aspects are comitted without question. But Benoit, as I said this is a general question about feelings, not a complaint at all. Bruce From gambas at ...1... Tue Aug 30 15:37:28 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 30 Aug 2011 15:37:28 +0200 Subject: [Gambas-user] keyboard navigation of combobox In-Reply-To: <1314710815.28789.55.camel@...2657...> References: <201108302052.14416.rterry@...1946...> <201108301436.28404.gambas@...1...> <1314710815.28789.55.camel@...2657...> Message-ID: <201108301537.29028.gambas@...1...> > > Can you be more precise? Which dialog box or window you are talking about > > for example... > > Preferences in particular, but the Project Properties tabs sometimes > confuse me, especially the Environment page. If you flick between a few > of the Project Properties tabs, make a new Argument entry say, then go > back to the general tab, change the description, change your mind and > then click cancel. Did the argument save? No it didn't. Which is > correct. But sometimes this is confusing. Do you get what I'm saying? > Back to Preferences, there is (at least here) no "Commit" or "Cancel" at > all. Not only that, but changes to some aspects are comitted without > question. > But Benoit, as I said this is a general question about feelings, not a > complaint at all. > Bruce The "preferences" dialog is not modal, so its changes are committed immediately. the "project property" dialog is modal, so you have to validate the changes with the "OK" button. Changing a tab does not validate anything. TabStrip is there only because the dialog would have been too big otherwise. Regards, -- Beno?t Minisini From tobiasboe1 at ...20... Tue Aug 30 17:05:41 2011 From: tobiasboe1 at ...20... (tobias) Date: Tue, 30 Aug 2011 17:05:41 +0200 Subject: [Gambas-user] gb3: using string as stream for sequential write operations of arbitrary datatypes In-Reply-To: <4E5CAE08.3080605@...1887...> References: <4E5C7ABB.80109@...1887...> <1314693329.28789.22.camel@...2657...> <4E5CAE08.3080605@...1887...> Message-ID: <4E5CFC45.3020607@...20...> hi, > On 08/30/2011 04:35 AM, Bruce Bruen wrote: >> On Tue, 2011-08-30 at 01:52 -0400, Kevin Fishburne wrote: >>> When a transaction isn't received and I need to resend it, I'd like >>> to >>> be able to refer to the transaction history and resend the data >>> (QueueOut[id].Data) without having to recalculate it, especially >>> since >>> the data may have changed during the timeout period. I don't see any >>> way >>> to store a completely arbitrary set of datatypes as a single >>> structure >>> property however. I could write them to a file, then read the file >>> into >>> a string and load it into a property of the array of structures, but >>> that's just crazy. regardless of (potential) design problems, i'd like to try to discuss your problem. i hopefully understood you right... you want to read and write arbitrary/binary data in some sort of queue (array?)? as i read your explanation, two things came in my mind: *the Memory keyword: http://gambasdoc.org/help/lang/memory?v3 *the Struct keyword: http://gambasdoc.org/help/lang/struct?v3 i never worked with either of both, but you can define functions for the Memory solution to read and write your structure, or create an array of your defined structure (but those, i read, do not have e.g. an Add method, so you'll have to implement it yourself, maybe...) i just noticed, since struct arrays are embedded arrays, the two solutions will lead to the same in memory, i think, but are different ways... (i still hope, i understood your problem) (btw, there's one thing that makes me stuck apart from the network related design: the term "player" made me think of a game, so you want to have a game in a network and you said that you want to resend data which may not even be "up to date", so why resending that and not the current data? but that's something, that depends on your game, i think...) regards, tobi From fvegaf at ...67... Tue Aug 30 20:12:18 2011 From: fvegaf at ...67... (fvegaf) Date: Tue, 30 Aug 2011 11:12:18 -0700 (PDT) Subject: [Gambas-user] Gambas 2 and mysql bin-log Message-ID: <32334095.post@...1379...> I turned on the mysql binary log, but my gambas inserts, updates and deletes are not showing in the binary log (MySQL) Example: strQ = "Insert into tabletest(field1) values('test')" rs = db.Exec(strQ) I tried the following, and works, but it implies that I will need to rewrite my entire application: rs = db.create("tabletest") rs!field1="test2" rs.update Any suggestions? -- View this message in context: http://old.nabble.com/Gambas-2-and-mysql-bin-log-tp32334095p32334095.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Tue Aug 30 20:18:21 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 30 Aug 2011 20:18:21 +0200 Subject: [Gambas-user] Gambas 2 and mysql bin-log In-Reply-To: <32334095.post@...1379...> References: <32334095.post@...1379...> Message-ID: <201108302018.21606.gambas@...1...> > I turned on the mysql binary log, but my gambas inserts, updates and > deletes are not showing in the binary log (MySQL) > > Example: > > strQ = "Insert into tabletest(field1) values('test')" > rs = db.Exec(strQ) > > > I tried the following, and works, but it implies that I will need to > rewrite my entire application: > > rs = db.create("tabletest") > rs!field1="test2" > rs.update > > > Any suggestions? Suggestion for what? -- Beno?t Minisini From fvegaf at ...67... Tue Aug 30 21:11:43 2011 From: fvegaf at ...67... (fvegaf) Date: Tue, 30 Aug 2011 12:11:43 -0700 (PDT) Subject: [Gambas-user] Gambas 2 and mysql bin-log In-Reply-To: <32334095.post@...1379...> References: <32334095.post@...1379...> Message-ID: <32366975.post@...1379...> I need that the "insert" statement to be logged in the binary log. fvegaf wrote: > > I turned on the mysql binary log, but my gambas inserts, updates and > deletes are not showing in the binary log (MySQL) > > Example: > > strQ = "Insert into tabletest(field1) values('test')" > rs = db.Exec(strQ) > > > I tried the following, and works, but it implies that I will need to > rewrite my entire application: > > rs = db.create("tabletest") > rs!field1="test2" > rs.update > > > Any suggestions? > > > > > -- View this message in context: http://old.nabble.com/Gambas-2-and-mysql-bin-log-tp32334095p32366975.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Tue Aug 30 21:18:44 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 30 Aug 2011 21:18:44 +0200 Subject: [Gambas-user] Gambas 2 and mysql bin-log In-Reply-To: <32366975.post@...1379...> References: <32334095.post@...1379...> <32366975.post@...1379...> Message-ID: <201108302118.44819.gambas@...1...> > I need that the "insert" statement to be logged in the binary log. > I have no idea why it is not logged. I didn't know there was a "mysql binary log", and I don't know how it works. Try to set 'DB.Debug = True' to see what SQL queries are sent to the SQL client library. Regards, -- Beno?t Minisini From jussi.lahtinen at ...626... Tue Aug 30 21:45:04 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Tue, 30 Aug 2011 22:45:04 +0300 Subject: [Gambas-user] Error in example: WebCam 1.0.4 In-Reply-To: <201108301133.28355.gambas@...1...> References: <201108301133.28355.gambas@...1...> Message-ID: MyWebCam example says (and works); "Device is V4L2!" and WebCam example doesn't find it at all..? Still something wrong... Jussi 2011/8/30 Beno?t Minisini > > 'Form.Close' is incorrectly overridden in class 'FDevice' > > > > Gambas 3 rev 4052 @ Ubuntu 11.04 64bit > > > > > > Jussi > > Fixed in revision #4057. > > Regards, > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Special Offer -- Download ArcSight Logger for FREE! > Finally, a world-class log management solution at an even better > price-free! And you'll get a free "Love Thy Logs" t-shirt when you > download Logger. Secure your free ArcSight Logger TODAY! > http://p.sf.net/sfu/arcsisghtdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Tue Aug 30 21:50:32 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 30 Aug 2011 21:50:32 +0200 Subject: [Gambas-user] Error in example: WebCam 1.0.4 In-Reply-To: References: <201108301133.28355.gambas@...1...> Message-ID: <201108302150.32765.gambas@...1...> > MyWebCam example says (and works); "Device is V4L2!" and WebCam example > doesn't find it at all..? > Still something wrong... > > Jussi > Look in the code: apparently WebCam scans for /dev/videoX with X between 0 and 20. Maybe your device name does not look like that... -- Beno?t Minisini From gambas at ...2524... Tue Aug 30 23:16:47 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 30 Aug 2011 21:16:47 +0000 Subject: [Gambas-user] Issue 93 in gambas: Error backtrace not always correct Message-ID: <0-6813199134517018827-16636142319394110271-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 93 by emil.len... at ...626...: Error backtrace not always correct http://code.google.com/p/gambas/issues/detail?id=93 1) Describe the problem. The backtrace that can be obtained by Error.Backtrace does not always contain the correct backtrace. That backtrace seems to be the current stack (not as it looked liked when the error occurred), but the frames with a greater depth than the current depth are not popped off (so if no functions are called between the error and the Error.Backtrace, everything will be ok). See example below. 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: TRUNK Revision: r4063 Operating system: Linux Architecture: x86_64 3) Provide a little project that reproduces the bug or the crash. Public Sub PrintBacktrace() Dim s As String For Each s In Error.Backtrace Print s Next End Public Sub PrintErr() Print "An error occurred: "; Error.Text PrintBacktrace() 'Line 9 End Public Function Divide(a As Integer, b As Integer) As Integer Return a / b 'Line 12 End Public Sub run() Print Divide(1, 0) 'Line 15 End Public Sub Main() run() 'Line 18 Catch PrintErr() 'Line 20 End This will print: An error occurred: Division by zero MMain.Divide.12 MMain.PrintErr.9 MMain.Main.20 While it should be: An error occurred: Division by zero MMain.Divide.12 MMain.run.15 MMain.Main.18 The current backtrace-information (stack) should be copied when an error occurs, not during Error.Backtrace, like it is currently. 4) If your project needs a database, try to provide it, or part of it. 5) Explain clearly how to reproduce the bug or the crash. Run the example. 6) By doing that carefully, you have done 50% of the bug fix job! From fvegaf at ...67... Tue Aug 30 23:21:33 2011 From: fvegaf at ...67... (fvegaf) Date: Tue, 30 Aug 2011 14:21:33 -0700 (PDT) Subject: [Gambas-user] Gambas 2 and mysql bin-log In-Reply-To: <201108302118.44819.gambas@...1...> References: <32334095.post@...1379...> <32366975.post@...1379...> <201108302118.44819.gambas@...1...> Message-ID: <32367839.post@...1379...> Thanks for your help, Setting the DB.Debug=True help me to figure it out. Turns that cQuery = " Insert into test.StatusCodes() values (19, '19')" does not save in the sentence in the bin-log and db2.name="test" cQuery = " Insert into StatusCodes() values (19, '19')" saves in the sentence in the bin-log I beleive this is more related to mysql identifying the database to be logging. Thank you! Beno?t Minisini wrote: > >> I need that the "insert" statement to be logged in the binary log. >> > > I have no idea why it is not logged. I didn't know there was a "mysql > binary > log", and I don't know how it works. > > Try to set 'DB.Debug = True' to see what SQL queries are sent to the SQL > client library. > > Regards, > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Special Offer -- Download ArcSight Logger for FREE! > Finally, a world-class log management solution at an even better > price-free! And you'll get a free "Love Thy Logs" t-shirt when you > download Logger. Secure your free ArcSight Logger TODAY! > http://p.sf.net/sfu/arcsisghtdev2dev > _______________________________________________ > 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/Gambas-2-and-mysql-bin-log-tp32334095p32367839.html Sent from the gambas-user mailing list archive at Nabble.com. From bbruen at ...2308... Wed Aug 31 00:19:51 2011 From: bbruen at ...2308... (Bruce Bruen) Date: Wed, 31 Aug 2011 07:49:51 +0930 Subject: [Gambas-user] keyboard navigation of combobox In-Reply-To: <201108301537.29028.gambas@...1...> References: <201108302052.14416.rterry@...1946...> <201108301436.28404.gambas@...1...> <1314710815.28789.55.camel@...2657...> <201108301537.29028.gambas@...1...> Message-ID: <1314742791.28789.56.camel@...2657...> On Tue, 2011-08-30 at 15:37 +0200, Beno?t Minisini wrote: > > > Can you be more precise? Which dialog box or window you are talking about > > > for example... > > > > Preferences in particular, but the Project Properties tabs sometimes > > confuse me, especially the Environment page. If you flick between a few > > of the Project Properties tabs, make a new Argument entry say, then go > > back to the general tab, change the description, change your mind and > > then click cancel. Did the argument save? No it didn't. Which is > > correct. But sometimes this is confusing. Do you get what I'm saying? > > Back to Preferences, there is (at least here) no "Commit" or "Cancel" at > > all. Not only that, but changes to some aspects are comitted without > > question. > > But Benoit, as I said this is a general question about feelings, not a > > complaint at all. > > Bruce > > The "preferences" dialog is not modal, so its changes are committed > immediately. > > the "project property" dialog is modal, so you have to validate the changes > with the "OK" button. Changing a tab does not validate anything. TabStrip is > there only because the dialog would have been too big otherwise. > > Regards, > Ah, now I see. My misunderstanding. From gambas at ...1... Wed Aug 31 01:56:48 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 31 Aug 2011 01:56:48 +0200 Subject: [Gambas-user] Fixing bug tracker issue 78 Message-ID: <201108310156.48262.gambas@...1...> Hi, To finish fixing issue #78, in revision #4064, I have added a new check in the Gambas inheritance mechanism. Now, a class method can override a method of a parent class only if they have the same signature. The check is not done for the "_new" special method, as the inheritance of _new is special (see "inheritance and constructor" in the "Gambas object model" documentation on the wiki). And the check is not done too for a native class inheriting another native class. C/C++ programmer are supposed to know what they are doing. :-) Maybe you will get new "Badly overridden" errors in your projects now. Sorry for that! Regards, -- Beno?t Minisini From gambas at ...2524... Wed Aug 31 01:58:38 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 30 Aug 2011 23:58:38 +0000 Subject: [Gambas-user] Issue 78 in gambas: Illegal optimization / May a method's return value type in a derived class be different from the base class? In-Reply-To: <4-6813199134517018827-13851315586951690890-gambas=googlecode.com@...2524...> References: <4-6813199134517018827-13851315586951690890-gambas=googlecode.com@...2524...> <0-6813199134517018827-13851315586951690890-gambas=googlecode.com@...2524...> Message-ID: <5-6813199134517018827-13851315586951690890-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #5 on issue 78 by benoit.m... at ...626...: Illegal optimization / May a method's return value type in a derived class be different from the base class? http://code.google.com/p/gambas/issues/detail?id=78 Fixed in revision #4064. Now, a class method can override a method of a parent class only if they have the same signature. The check is not done for the "_new" special method, as the inheritance of _new is special (see "inheritance and constructor" in the "Gambas object model" documentation on the wiki). And the check is not done too for a native class inheriting another native class. C/C++ programmer are supposed to know what they are doing. :-) From bbruen at ...2308... Wed Aug 31 02:59:50 2011 From: bbruen at ...2308... (Bruce Bruen) Date: Wed, 31 Aug 2011 10:29:50 +0930 Subject: [Gambas-user] Fixing bug tracker issue 78 In-Reply-To: <201108310156.48262.gambas@...1...> References: <201108310156.48262.gambas@...1...> Message-ID: <1314752390.28789.63.camel@...2657...> On Wed, 2011-08-31 at 01:56 +0200, Beno?t Minisini wrote: > Hi, > > To finish fixing issue #78, in revision #4064, I have added a new check in the > Gambas inheritance mechanism. > > Now, a class method can override a method of a parent class only if they have > the same signature. > > The check is not done for the "_new" special method, as the inheritance of > _new is special (see "inheritance and constructor" in the "Gambas object > model" documentation on the wiki). > > And the check is not done too for a native class inheriting another native > class. C/C++ programmer are supposed to know what they are doing. :-) > > Maybe you will get new "Badly overridden" errors in your projects now. Sorry > for that! > > Regards, > I am having a panic attack over this as I thought it had gone away. Does this mean that gambas 3 is now explicitly non-polymorphic? Bruce From gambas at ...1... Wed Aug 31 03:05:31 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 31 Aug 2011 03:05:31 +0200 Subject: [Gambas-user] Fixing bug tracker issue 78 In-Reply-To: <1314752390.28789.63.camel@...2657...> References: <201108310156.48262.gambas@...1...> <1314752390.28789.63.camel@...2657...> Message-ID: <201108310305.31503.gambas@...1...> > On Wed, 2011-08-31 at 01:56 +0200, Beno?t Minisini wrote: > > Hi, > > > > To finish fixing issue #78, in revision #4064, I have added a new check > > in the Gambas inheritance mechanism. > > > > Now, a class method can override a method of a parent class only if they > > have the same signature. > > > > The check is not done for the "_new" special method, as the inheritance > > of _new is special (see "inheritance and constructor" in the "Gambas > > object model" documentation on the wiki). > > > > And the check is not done too for a native class inheriting another > > native class. C/C++ programmer are supposed to know what they are doing. > > :-) > > > > Maybe you will get new "Badly overridden" errors in your projects now. > > Sorry for that! > > > > Regards, > > I am having a panic attack over this as I thought it had gone away. Does > this mean that gambas 3 is now explicitly non-polymorphic? > Bruce No, that means that a method signature cannot be changed through inheritance. Gambas was never polymorphic, and will not be. -- Beno?t Minisini From bbruen at ...2308... Wed Aug 31 03:08:00 2011 From: bbruen at ...2308... (Bruce Bruen) Date: Wed, 31 Aug 2011 10:38:00 +0930 Subject: [Gambas-user] Fixing bug tracker issue 78 In-Reply-To: <1314752390.28789.63.camel@...2657...> References: <201108310156.48262.gambas@...1...> <1314752390.28789.63.camel@...2657...> Message-ID: <1314752880.28789.64.camel@...2657...> On Wed, 2011-08-31 at 10:29 +0930, Bruce Bruen wrote: > On Wed, 2011-08-31 at 01:56 +0200, Beno?t Minisini wrote: > > > Hi, > > > > To finish fixing issue #78, in revision #4064, I have added a new check in the > > Gambas inheritance mechanism. > > > > Now, a class method can override a method of a parent class only if they have > > the same signature. > > > > The check is not done for the "_new" special method, as the inheritance of > > _new is special (see "inheritance and constructor" in the "Gambas object > > model" documentation on the wiki). > > > > And the check is not done too for a native class inheriting another native > > class. C/C++ programmer are supposed to know what they are doing. :-) > > > > Maybe you will get new "Badly overridden" errors in your projects now. Sorry > > for that! > > > > Regards, > > > > I am having a panic attack over this as I thought it had gone away. Does > this mean that gambas 3 is now explicitly non-polymorphic? > Bruce > ------------------------------------------------------------------------------ > Special Offer -- Download ArcSight Logger for FREE! > Finally, a world-class log management solution at an even better > price-free! And you'll get a free "Love Thy Logs" t-shirt when you > download Logger. Secure your free ArcSight Logger TODAY! > http://p.sf.net/sfu/arcsisghtdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user Sorry, I'm really panicky, I meant method overriding not polymorphism. Bruce From gambas at ...1... Wed Aug 31 03:13:02 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 31 Aug 2011 03:13:02 +0200 Subject: [Gambas-user] Fixing bug tracker issue 78 In-Reply-To: <1314752880.28789.64.camel@...2657...> References: <201108310156.48262.gambas@...1...> <1314752390.28789.63.camel@...2657...> <1314752880.28789.64.camel@...2657...> Message-ID: <201108310313.02390.gambas@...1...> > > Sorry, I'm really panicky, I meant method overriding not polymorphism. > Bruce This change only makes the interpreter raise an error instead of eventually segfaulting, by preventing something that is forbidden : changing the signature of a method through inheritance. That has nothing to do with virtual dispatching : the overridden method is always called. -- Beno?t Minisini From gambas at ...2524... Wed Aug 31 03:20:47 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 31 Aug 2011 01:20:47 +0000 Subject: [Gambas-user] Issue 93 in gambas: Error backtrace not always correct In-Reply-To: <0-6813199134517018827-16636142319394110271-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-16636142319394110271-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-16636142319394110271-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -Version Version-TRUNK Comment #1 on issue 93 by benoit.m... at ...626...: Error backtrace not always correct http://code.google.com/p/gambas/issues/detail?id=93 The Error.Backtrace cannot be actually be implemented reliably *and* efficiently. I have no good solution at the moment. I hope I will find one soon before the release... From sbungay at ...981... Wed Aug 31 03:30:29 2011 From: sbungay at ...981... (Stephen Bungay) Date: Tue, 30 Aug 2011 21:30:29 -0400 Subject: [Gambas-user] Something ain't right. Still trying to control VLC. Message-ID: <4E5D8EB5.3090304@...981...> Please forgive my rambling here... but if anyone can explain these results I'd really like to hear from them. Consistently getting Inconsistent results... which is consistency.. ARRRGGGGHHHH! Send command strings to the stream that is a virtual console and maybe they will work, maybe they won't. Sometimes the ^M after the command string is the only thing visible in the console window, sometimes nothing is seen and it works (after a few seconds). sometimes the ^J is seen. If the ^M is seen with the command string VLC will be ignoring that command.... the next command string sent will result in an error from VLC that it does not recognize the command. Almost sounds like a boundry issue somehow. When it does work reliably it always takes the same amount of time to respond/react, but the amount of time varies per session. For example, launch the app, embed VLC, click pause. Count the number of seconds (yes seconds) it takes to respond. If it is successful and took 3 seconds to respond then every command sent will be successful and take 3 seconds to get processed. If it took 6 seconds then every command takes 6 seconds.. perhaps there is a clue in there somewhere... I have never seen it take a non-multiple of three to react. Now I don't know if this is a VLC issue or a GAMBAS issue, it SHOULD work the same as typing the commands in at a console window but it doesn't, so what is the difference and why? Can anyone shed any light on this erratic behaviour? What is the difference between typing at a console and sending output to a stream that is a virtual console? Any and all help is appreciated. Steve. From gambas at ...1... Wed Aug 31 03:34:55 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 31 Aug 2011 03:34:55 +0200 Subject: [Gambas-user] Something ain't right. Still trying to control VLC. In-Reply-To: <4E5D8EB5.3090304@...981...> References: <4E5D8EB5.3090304@...981...> Message-ID: <201108310334.55474.gambas@...1...> > Please forgive my rambling here... but if anyone can explain these > results I'd really like to hear from them. > > Consistently getting Inconsistent results... which is consistency.. > ARRRGGGGHHHH! > > Send command strings to the stream that is a virtual console and maybe > they will work, maybe they won't. > Sometimes the ^M after the command string is the only thing visible in > the console window, sometimes nothing is seen and it works (after a few > seconds). sometimes the ^J is seen. If the ^M is seen with the command > string VLC will be ignoring that command.... the next command string > sent will result in an error from VLC that it does not recognize the > command. Almost sounds like a boundry issue somehow. > > When it does work reliably it always takes the same amount of time to > respond/react, but the amount of time varies per session. For example, > launch the app, embed VLC, click pause. Count the number of seconds (yes > seconds) it takes to respond. If it is successful and took 3 seconds to > respond then every command sent will be successful and take 3 seconds to > get processed. If it took 6 seconds then every command takes 6 seconds.. > perhaps there is a clue in there somewhere... I have never seen it take > a non-multiple of three to react. > > Now I don't know if this is a VLC issue or a GAMBAS issue, it SHOULD > work the same as typing the commands in at a console window but it > doesn't, so what is the difference and why? Can anyone shed any light on > this erratic behaviour? What is the difference between typing at a > console and sending output to a stream that is a virtual console? > > Any and all help is appreciated. > > > Steve. > Do you run your project through a true terminal or through the IDE console ? Can you try your project with Gambas 3 ? -- Beno?t Minisini From gambas at ...2524... Wed Aug 31 04:30:20 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 31 Aug 2011 02:30:20 +0000 Subject: [Gambas-user] Issue 93 in gambas: Error backtrace not always correct In-Reply-To: <1-6813199134517018827-16636142319394110271-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-16636142319394110271-gambas=googlecode.com@...2524...> <0-6813199134517018827-16636142319394110271-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-16636142319394110271-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #2 on issue 93 by benoit.m... at ...626...: Error backtrace not always correct http://code.google.com/p/gambas/issues/detail?id=93 It seems that I have succeeded. :-) Error.Backtrace has been fixed in revision #4066, without too much penalty on interpreter speed. From bbruen at ...2308... Wed Aug 31 04:44:46 2011 From: bbruen at ...2308... (Bruce Bruen) Date: Wed, 31 Aug 2011 12:14:46 +0930 Subject: [Gambas-user] Fixing bug tracker issue 78 In-Reply-To: <201108310313.02390.gambas@...1...> References: <201108310156.48262.gambas@...1...> <1314752390.28789.63.camel@...2657...> <1314752880.28789.64.camel@...2657...> <201108310313.02390.gambas@...1...> Message-ID: <1314758686.28789.67.camel@...2657...> On Wed, 2011-08-31 at 03:13 +0200, Beno?t Minisini wrote: > > > > Sorry, I'm really panicky, I meant method overriding not polymorphism. > > Bruce > > This change only makes the interpreter raise an error instead of eventually > segfaulting, by preventing something that is forbidden : changing the > signature of a method through inheritance. > > That has nothing to do with virtual dispatching : the overridden method is > always called. > Oh no! I have dozens of gambas2 libraries that take advantage of this. See attached project for a "model" of lots of what I have done. I don't understand why it should be "forbidden"? Why would the interpreter segfault? Bruce -------------- next part -------------- A non-text attachment was scrubbed... Name: methodoverrideG2-0.0.1.tar.gz Type: application/x-compressed-tar Size: 8418 bytes Desc: not available URL: From nando_f at ...951... Wed Aug 31 07:21:08 2011 From: nando_f at ...951... (nando) Date: Wed, 31 Aug 2011 01:21:08 -0400 Subject: [Gambas-user] gb3: using string as stream for sequential write operations of arbitrary datatypes In-Reply-To: <4E5CAE08.3080605@...1887...> References: <4E5C7ABB.80109@...1887...> <1314693329.28789.22.camel@...2657...> <4E5CAE08.3080605@...1887...> Message-ID: <20110831052048.M39343@...951...> What type of connection are you using ? ---------- Original Message ----------- From: Kevin Fishburne To: gambas-user at lists.sourceforge.net Sent: Tue, 30 Aug 2011 05:31:52 -0400 Subject: Re: [Gambas-user] gb3: using string as stream for sequential write operations of arbitrary datatypes > On 08/30/2011 04:35 AM, Bruce Bruen wrote: > > On Tue, 2011-08-30 at 01:52 -0400, Kevin Fishburne wrote: > >> When a transaction isn't received and I need to resend it, I'd like > >> to > >> be able to refer to the transaction history and resend the data > >> (QueueOut[id].Data) without having to recalculate it, especially > >> since > >> the data may have changed during the timeout period. I don't see any > >> way > >> to store a completely arbitrary set of datatypes as a single > >> structure > >> property however. I could write them to a file, then read the file > >> into > >> a string and load it into a property of the array of structures, but > >> that's just crazy. > > Kevin, > > > > I can't give you an answer to the question you ask, mainly because I > > kept seeing bigger problems as I read your post. From what I glean, > > this is a classic TX->ACK situation and I think you are basing the code > > on some type of timeout rule, such that TX->?->TX. However, there are > > some problems with that model. Firstly, where did the failure occur? > > a) firstly, the transaction was never "sent" from end A (why? is > > immaterial. What is, is that end B will not have any possibility of > > processing the transaction or sending the ACK) > > b) second, the transaction was fully received by end B, but for some > > reason it never ACK'ed it > > b1) it did process the full transaction, but never sent the ACK > > b2) it did not process the transaction and never sent the ACK > > c) the transaction was fully received, processed and the ACK sent, but > > it was never received by end A. > > Since at the end of the timeout, end A has no knowledge of the state of > > end B simply retransmitting the same transaction is considered "bad > > design" in network theory. (I could lookup the references for you, but > > they are on rotting pieces of paper somewhere in a mouldy box in the > > garage, and...) > > > From memory, there are at least two well-formed models regarding these > > problems: > > i) any retransmission is marked as such. This puts a need on the server > > to audit any retransmission and either process it or ignore it. > > ii) any failed transmission is assumed to have been processed by end B > > and a reversal transaction is sent by end A before retrying the > > transaction. This means that end B must implement a "reversal" > > procedure, but puts the onus on end A to ensure that the transaction > > ONLY HAPPENS ONCE (not yelling, just emphasising). > > > > Disregarding your need to store the sent transaction for a moment, it > > might be wise of you to consider how these. > > All those are valid observations about sending and receiving with acks. > My implementation works even with repeated and unwanted resends of data > from multiple sources (DoS). It keeps the place of each transaction for > each player, authenticating each through either an IP or > username/password lookup, and not incrementing the associated > transaction queue pointer unless processed properly. Incoming > transactions are placed in the queue position that their ID dictates, > their ID provided by the incoming transaction data. This way > out-of-order packets are stored in the incoming transaction queue > without affecting the execution order of the queue. The trick is to > place ack sends, ack receives, and transaction retransmissions outside > the scope (don't store them) of the incoming and outgoing queues. Just > make them happen, and as long as the .Acknowledged property is > maintained everything will flow smoothly. > > Network programming like this is a hell of a thing, though. God help us > all... > > -- > Kevin Fishburne > Eight Virtues > www: http://sales.eightvirtues.com > e-mail: sales at ...1887... > phone: (770) 853-6271 > > ------------------------------------------------------------------------------ > Special Offer -- Download ArcSight Logger for FREE! > Finally, a world-class log management solution at an even better > price-free! And you'll get a free "Love Thy Logs" t-shirt when you > download Logger. Secure your free ArcSight Logger TODAY! > http://p.sf.net/sfu/arcsisghtdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From nando_f at ...951... Wed Aug 31 07:23:18 2011 From: nando_f at ...951... (nando) Date: Wed, 31 Aug 2011 01:23:18 -0400 Subject: [Gambas-user] Gambas 2 and mysql bin-log In-Reply-To: <32334095.post@...1379...> References: <32334095.post@...1379...> Message-ID: <20110831052226.M84342@...951...> set the logging level in the configuration file higher than zero ---------- Original Message ----------- From: fvegaf To: gambas-user at lists.sourceforge.net Sent: Tue, 30 Aug 2011 11:12:18 -0700 (PDT) Subject: [Gambas-user] Gambas 2 and mysql bin-log > I turned on the mysql binary log, but my gambas inserts, updates and deletes > are not showing in the binary log (MySQL) > > Example: > > strQ = "Insert into tabletest(field1) values('test')" > rs = db.Exec(strQ) > > I tried the following, and works, but it implies that I will need to rewrite > my entire application: > > rs = db.create("tabletest") > rs!field1="test2" > rs.update > > Any suggestions? > > -- > View this message in context: http://old.nabble.com/Gambas-2-and-mysql-bin-log-tp32334095p32334095.html > Sent from the gambas-user mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > Special Offer -- Download ArcSight Logger for FREE! > Finally, a world-class log management solution at an even better > price-free! And you'll get a free "Love Thy Logs" t-shirt when you > download Logger. Secure your free ArcSight Logger TODAY! > http://p.sf.net/sfu/arcsisghtdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From ron at ...1740... Wed Aug 31 12:07:15 2011 From: ron at ...1740... (Ron) Date: Wed, 31 Aug 2011 12:07:15 +0200 Subject: [Gambas-user] Gambas 2 and mysql bin-log In-Reply-To: <201108302118.44819.gambas@...1...> References: <32334095.post@...1379...> <32366975.post@...1379...> <201108302118.44819.gambas@...1...> Message-ID: <4E5E07D3.8050109@...1740...> On 30-8-2011 21:18, Beno?t Minisini wrote: >> I need that the "insert" statement to be logged in the binary log. >> > I have no idea why it is not logged. I didn't know there was a "mysql binary > log", and I don't know how it works. > > Try to set 'DB.Debug = True' to see what SQL queries are sent to the SQL > client library. > > Regards, > The advantage for having your mysql server run in binary log mode, is that you can make live incremental backups. After enabling, you can simply do: rsync -a /var/lib/mysql/-bin* /backup/location Regards, Ron_2nd. From sbungay at ...981... Wed Aug 31 14:56:29 2011 From: sbungay at ...981... (Stephen Bungay) Date: Wed, 31 Aug 2011 08:56:29 -0400 Subject: [Gambas-user] Something ain't right. Still trying to control VLC. In-Reply-To: <201108310334.55474.gambas@...1...> References: <4E5D8EB5.3090304@...981...> <201108310334.55474.gambas@...1...> Message-ID: <4E5E2F7D.9040202@...981...> On 08/30/2011 09:34 PM, Beno?t Minisini wrote: >> Please forgive my rambling here... but if anyone can explain these >> results I'd really like to hear from them. >> >> Consistently getting Inconsistent results... which is consistency.. >> ARRRGGGGHHHH! >> >> Send command strings to the stream that is a virtual console and maybe >> they will work, maybe they won't. >> Sometimes the ^M after the command string is the only thing visible in >> the console window, sometimes nothing is seen and it works (after a few >> seconds). sometimes the ^J is seen. If the ^M is seen with the command >> string VLC will be ignoring that command.... the next command string >> sent will result in an error from VLC that it does not recognize the >> command. Almost sounds like a boundry issue somehow. >> >> When it does work reliably it always takes the same amount of time to >> respond/react, but the amount of time varies per session. For example, >> launch the app, embed VLC, click pause. Count the number of seconds (yes >> seconds) it takes to respond. If it is successful and took 3 seconds to >> respond then every command sent will be successful and take 3 seconds to >> get processed. If it took 6 seconds then every command takes 6 seconds.. >> perhaps there is a clue in there somewhere... I have never seen it take >> a non-multiple of three to react. >> >> Now I don't know if this is a VLC issue or a GAMBAS issue, it SHOULD >> work the same as typing the commands in at a console window but it >> doesn't, so what is the difference and why? Can anyone shed any light on >> this erratic behaviour? What is the difference between typing at a >> console and sending output to a stream that is a virtual console? >> >> Any and all help is appreciated. >> >> >> Steve. >> > Do you run your project through a true terminal or through the IDE console ? > > Can you try your project with Gambas 3 ? > Running it through the IDE console at the moment, testing and stepping through code as necessary. I wasn't going to run it in Gambas 3 because the target environment is a CEntOS 5 box. It would be easier to switch their server to Fedora 13 or 14 than to traverse dependency-hell to get 3.0 up and running on the existing server. OK, going to try launching from command line, lets see if that works any better. Then if that doesn't work will try Gambas 3.0. Thanks for the response Benoit. Regards Steve. From gambas at ...1... Wed Aug 31 15:22:12 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 31 Aug 2011 15:22:12 +0200 Subject: [Gambas-user] Something ain't right. Still trying to control VLC. In-Reply-To: <4E5E2F7D.9040202@...981...> References: <4E5D8EB5.3090304@...981...> <201108310334.55474.gambas@...1...> <4E5E2F7D.9040202@...981...> Message-ID: <201108311522.12150.gambas@...1...> > On 08/30/2011 09:34 PM, Beno?t Minisini wrote: > >> Please forgive my rambling here... but if anyone can explain these > >> results I'd really like to hear from them. > >> > >> Consistently getting Inconsistent results... which is consistency.. > >> ARRRGGGGHHHH! > >> > >> Send command strings to the stream that is a virtual console and maybe > >> they will work, maybe they won't. > >> Sometimes the ^M after the command string is the only thing visible in > >> the console window, sometimes nothing is seen and it works (after a few > >> seconds). sometimes the ^J is seen. If the ^M is seen with the command > >> string VLC will be ignoring that command.... the next command string > >> sent will result in an error from VLC that it does not recognize the > >> command. Almost sounds like a boundry issue somehow. > >> > >> When it does work reliably it always takes the same amount of time > >> to > >> > >> respond/react, but the amount of time varies per session. For example, > >> launch the app, embed VLC, click pause. Count the number of seconds (yes > >> seconds) it takes to respond. If it is successful and took 3 seconds to > >> respond then every command sent will be successful and take 3 seconds to > >> get processed. If it took 6 seconds then every command takes 6 seconds.. > >> perhaps there is a clue in there somewhere... I have never seen it take > >> a non-multiple of three to react. > >> > >> Now I don't know if this is a VLC issue or a GAMBAS issue, it SHOULD > >> > >> work the same as typing the commands in at a console window but it > >> doesn't, so what is the difference and why? Can anyone shed any light on > >> this erratic behaviour? What is the difference between typing at a > >> console and sending output to a stream that is a virtual console? > >> > >> Any and all help is appreciated. > >> > >> > >> Steve. > > > > Do you run your project through a true terminal or through the IDE > > console ? > > > > Can you try your project with Gambas 3 ? > > Running it through the IDE console at the moment, testing and stepping > through code as necessary. I wasn't going to run it in Gambas 3 because > the target environment is a CEntOS 5 box. It would be easier to switch > their server to Fedora 13 or 14 than to traverse dependency-hell to get > 3.0 up and running on the existing server. > OK, going to try launching from command line, lets see if that works > any better. Then if that doesn't work will try Gambas 3.0. > Thanks for the response Benoit. > > Regards > Steve. > Yes, because the IDE console is not a "true virtual terminal", like xterm, konsole... are. Usually interactive terminal programs do not like that. Moreover, I think the support for virtual terminals in Gambas 3 is better. Regards, -- Beno?t Minisini From sbungay at ...981... Wed Aug 31 15:50:37 2011 From: sbungay at ...981... (Stephen Bungay) Date: Wed, 31 Aug 2011 09:50:37 -0400 Subject: [Gambas-user] Something ain't right. Still trying to control VLC. In-Reply-To: <201108311522.12150.gambas@...1...> References: <4E5D8EB5.3090304@...981...> <201108310334.55474.gambas@...1...> <4E5E2F7D.9040202@...981...> <201108311522.12150.gambas@...1...> Message-ID: <4E5E3C2D.5070002@...981...> On 08/31/2011 09:22 AM, Beno?t Minisini wrote: >> On 08/30/2011 09:34 PM, Beno?t Minisini wrote: >>>> Please forgive my rambling here... but if anyone can explain these >>>> results I'd really like to hear from them. >>>> >>>> Consistently getting Inconsistent results... which is consistency.. >>>> ARRRGGGGHHHH! >>>> >>>> Send command strings to the stream that is a virtual console and maybe >>>> they will work, maybe they won't. >>>> Sometimes the ^M after the command string is the only thing visible in >>>> the console window, sometimes nothing is seen and it works (after a few >>>> seconds). sometimes the ^J is seen. If the ^M is seen with the command >>>> string VLC will be ignoring that command.... the next command string >>>> sent will result in an error from VLC that it does not recognize the >>>> command. Almost sounds like a boundry issue somehow. >>>> >>>> When it does work reliably it always takes the same amount of time >>>> to >>>> >>>> respond/react, but the amount of time varies per session. For example, >>>> launch the app, embed VLC, click pause. Count the number of seconds (yes >>>> seconds) it takes to respond. If it is successful and took 3 seconds to >>>> respond then every command sent will be successful and take 3 seconds to >>>> get processed. If it took 6 seconds then every command takes 6 seconds.. >>>> perhaps there is a clue in there somewhere... I have never seen it take >>>> a non-multiple of three to react. >>>> >>>> Now I don't know if this is a VLC issue or a GAMBAS issue, it SHOULD >>>> >>>> work the same as typing the commands in at a console window but it >>>> doesn't, so what is the difference and why? Can anyone shed any light on >>>> this erratic behaviour? What is the difference between typing at a >>>> console and sending output to a stream that is a virtual console? >>>> >>>> Any and all help is appreciated. >>>> >>>> >>>> Steve. >>> Do you run your project through a true terminal or through the IDE >>> console ? >>> >>> Can you try your project with Gambas 3 ? >> Running it through the IDE console at the moment, testing and stepping >> through code as necessary. I wasn't going to run it in Gambas 3 because >> the target environment is a CEntOS 5 box. It would be easier to switch >> their server to Fedora 13 or 14 than to traverse dependency-hell to get >> 3.0 up and running on the existing server. >> OK, going to try launching from command line, lets see if that works >> any better. Then if that doesn't work will try Gambas 3.0. >> Thanks for the response Benoit. >> >> Regards >> Steve. >> > Yes, because the IDE console is not a "true virtual terminal", like xterm, > konsole... are. Usually interactive terminal programs do not like that. > Moreover, I think the support for virtual terminals in Gambas 3 is better. > > Regards, > > Launching it from the command line cured the problem :) . This means no dependency hell with CEntOS and Gambas 3 (although all future versions will use Gambas 3). Much obliged for pointing me in the right direction Benoit. Regards Steve. From gambas at ...1... Wed Aug 31 16:01:45 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 31 Aug 2011 16:01:45 +0200 Subject: [Gambas-user] Something ain't right. Still trying to control VLC. In-Reply-To: <4E5E3C2D.5070002@...981...> References: <4E5D8EB5.3090304@...981...> <201108311522.12150.gambas@...1...> <4E5E3C2D.5070002@...981...> Message-ID: <201108311601.45453.gambas@...1...> > Launching it from the command line cured the problem :) . This means no > dependency hell with CEntOS and Gambas 3 (although all future versions > will use Gambas 3). Much obliged for pointing me in the right direction > Benoit. > > Regards > Steve. > Something that should be explained in the EXEC / SHELL documentation page... -- Beno?t Minisini From gambas at ...1... Wed Aug 31 16:34:59 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 31 Aug 2011 16:34:59 +0200 Subject: [Gambas-user] Fixing bug tracker issue 78 In-Reply-To: <1314758686.28789.67.camel@...2657...> References: <201108310156.48262.gambas@...1...> <201108310313.02390.gambas@...1...> <1314758686.28789.67.camel@...2657...> Message-ID: <201108311634.59218.gambas@...1...> > On Wed, 2011-08-31 at 03:13 +0200, Beno?t Minisini wrote: > > > Sorry, I'm really panicky, I meant method overriding not polymorphism. > > > Bruce > > > > This change only makes the interpreter raise an error instead of > > eventually segfaulting, by preventing something that is forbidden : > > changing the signature of a method through inheritance. > > > > That has nothing to do with virtual dispatching : the overridden method > > is always called. > > Oh no! I have dozens of gambas2 libraries that take advantage of this. > See attached project for a "model" of lots of what I have done. I don't > understand why it should be "forbidden"? Why would the interpreter > segfault? > Bruce This is one the design rule of Gambas : a method has to always return the same datatype, otherwise it must return a Variant. That way, the interpreter can optimize its code at runtime. In your example, through inheritance, the same method may return a Variant[] or a String[] for example. If you have a real example, I may tell you how to do differently. Regards, -- Beno?t Minisini From sbungay at ...981... Wed Aug 31 20:16:38 2011 From: sbungay at ...981... (Stephen Bungay) Date: Wed, 31 Aug 2011 14:16:38 -0400 Subject: [Gambas-user] Something ain't right. Still trying to control VLC. In-Reply-To: <201108311601.45453.gambas@...1...> References: <4E5D8EB5.3090304@...981...> <201108311522.12150.gambas@...1...> <4E5E3C2D.5070002@...981...> <201108311601.45453.gambas@...1...> Message-ID: <4E5E7A86.1090303@...981...> On 08/31/2011 10:01 AM, Beno?t Minisini wrote: >> Launching it from the command line cured the problem :) . This means no >> dependency hell with CEntOS and Gambas 3 (although all future versions >> will use Gambas 3). Much obliged for pointing me in the right direction >> Benoit. >> >> Regards >> Steve. >> > Something that should be explained in the EXEC / SHELL documentation page... > Yep! :) From jussi.lahtinen at ...626... Wed Aug 31 20:54:20 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 31 Aug 2011 21:54:20 +0300 Subject: [Gambas-user] Error in example: WebCam 1.0.4 In-Reply-To: <201108302150.32765.gambas@...1...> References: <201108301133.28355.gambas@...1...> <201108302150.32765.gambas@...1...> Message-ID: Last time I was bit too hurry to test this through and give enough details, sorry! My camera could be found from /dev/video0. For some reason IDE can't pause execution, so I'm not sure what happens. It just seem to freeze to search for device. However, last messages are: " gambas v4l2: Device is V4L2! [0] gambas v4l2: Capture ON [22] " So, I think the error happens in VideoDevice class, and that would also explain why I cannot pause. Stop button stops execution normally, no error messages. Gambas 3 rev 4067 @ Ubuntu 11.04 64bit Jussi 2011/8/30 Beno?t Minisini > > MyWebCam example says (and works); "Device is V4L2!" and WebCam example > > doesn't find it at all..? > > Still something wrong... > > > > Jussi > > > > Look in the code: apparently WebCam scans for /dev/videoX with X between 0 > and > 20. Maybe your device name does not look like that... > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Special Offer -- Download ArcSight Logger for FREE! > Finally, a world-class log management solution at an even better > price-free! And you'll get a free "Love Thy Logs" t-shirt when you > download Logger. Secure your free ArcSight Logger TODAY! > http://p.sf.net/sfu/arcsisghtdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...2524... Wed Aug 31 20:57:12 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 31 Aug 2011 18:57:12 +0000 Subject: [Gambas-user] Issue 94 in gambas: A For-statement can store an Integer in a Byte/Short. Message-ID: <0-6813199134517018827-16736973088834895377-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 94 by emil.len... at ...626...: A For-statement can store an Integer in a Byte/Short. http://code.google.com/p/gambas/issues/detail?id=94 1) Describe the problem. Like the summary, a for-statement can store an Integer in a Byte/Short. It should wrap, but it doesn't. See the example. 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: TRUNK Revision: r4067 Operating system: Linux Architecture: x86_64 3) Provide a little project that reproduces the bug or the crash. The code: Dim i As Byte For i = 1 To 255 Next Print i Prints 256, when it should print 0. (Print i+0 actually prints 0). The same happens with Short. 4) If your project needs a database, try to provide it, or part of it. 5) Explain clearly how to reproduce the bug or the crash. Run the example. 6) By doing that carefully, you have done 50% of the bug fix job! From kevinfishburne at ...1887... Wed Aug 31 21:04:20 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Wed, 31 Aug 2011 15:04:20 -0400 Subject: [Gambas-user] gb3: using string as stream for sequential write operations of arbitrary datatypes In-Reply-To: <20110831052048.M39343@...951...> References: <4E5C7ABB.80109@...1887...> <1314693329.28789.22.camel@...2657...> <4E5CAE08.3080605@...1887...> <20110831052048.M39343@...951...> Message-ID: <4E5E85B4.4030000@...1887...> On 08/31/2011 01:21 AM, nando wrote: > What type of connection are you using ? > UDP. I think using MEMORY as Tobias suggested (http://gambasdoc.org/help/lang/memory?v3) might be a decent solution. I should be able to determine the length in bytes of the variables to be written to the UDP socket, create a string that many bytes long, open a MEMORY stream pointing to that string, write the varibles to the string, then both send the string over UDP and archive it in my transaction queue history. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From gambas at ...2524... Wed Aug 31 21:11:36 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 31 Aug 2011 19:11:36 +0000 Subject: [Gambas-user] Issue 95 in gambas: FOR-optimization not correct Message-ID: <0-6813199134517018827-11930676812097496581-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 95 by emil.len... at ...626...: FOR-optimization not correct http://code.google.com/p/gambas/issues/detail?id=95 1) Describe the problem. Every time a FOR begins, the code is modified depending on the sign of the Step-variable, so it doesn't have to check in every iteration whether a <= b or a >= b should be tested. The problem appears if something between For and Next calls the same function recursively, so the sign of the Step-variable differs. When that happens, the interpreter overwrites the old step-sign, and does not restore the old one. That will introduce an error when the function returns and the next for-iteration runs. A possible fix would be that the sign is stored on some stack, maybe as a control-value like the "With". 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: TRUNK Revision: r4067 Operating system: Linux Architecture: x86_64 3) Provide a little project that reproduces the bug or the crash. Public Sub TheLoop(n As Integer) Dim i As Integer For i = Choose(n, 10, 1) To Choose(n, 1, 10) Step Choose(n, -1, 1) Print i If i = 1 And n = 1 Then TheLoop(2) Next Print i End Start the function with TheLoop(1), which will print: 10 9 8 7 6 5 4 3 2 1 1 2 3 4 5 6 7 8 9 10 11 0 -1 -2 -3 -4 -5 -6 -7 ... until it wraps and i becomes >= 1. 4) If your project needs a database, try to provide it, or part of it. 5) Explain clearly how to reproduce the bug or the crash. Run the example 6) By doing that carefully, you have done 50% of the bug fix job! From gambas at ...2524... Wed Aug 31 23:27:01 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 31 Aug 2011 21:27:01 +0000 Subject: [Gambas-user] Issue 94 in gambas: A For-statement can store an Integer in a Byte/Short. In-Reply-To: <0-6813199134517018827-16736973088834895377-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-16736973088834895377-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-16736973088834895377-gambas=googlecode.com@...2524...> Comment #1 on issue 94 by math.e... at ...221...: A For-statement can store an Integer in a Byte/Short. http://code.google.com/p/gambas/issues/detail?id=94 Of course, if you write For i = 1 To 255 Next Print i it will run through the loop and do nothing, then print 256. Try with For i = 1 To 255 Print i Next From gambas at ...2524... Wed Aug 31 23:46:46 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 31 Aug 2011 21:46:46 +0000 Subject: [Gambas-user] Issue 94 in gambas: A For-statement can store an Integer in a Byte/Short. In-Reply-To: <1-6813199134517018827-16736973088834895377-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-16736973088834895377-gambas=googlecode.com@...2524...> <0-6813199134517018827-16736973088834895377-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-16736973088834895377-gambas=googlecode.com@...2524...> Comment #2 on issue 94 by emil.len... at ...626...: A For-statement can store an Integer in a Byte/Short. http://code.google.com/p/gambas/issues/detail?id=94 But i is a Byte, and the valid range for a byte is 0 to 255. So it cannot contain 256. From gambas at ...2524... Wed Aug 31 23:50:42 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 31 Aug 2011 21:50:42 +0000 Subject: [Gambas-user] Issue 94 in gambas: A For-statement can store an Integer in a Byte/Short. In-Reply-To: <2-6813199134517018827-16736973088834895377-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-16736973088834895377-gambas=googlecode.com@...2524...> <0-6813199134517018827-16736973088834895377-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-16736973088834895377-gambas=googlecode.com@...2524...> Comment #3 on issue 94 by emil.len... at ...626...: A For-statement can store an Integer in a Byte/Short. http://code.google.com/p/gambas/issues/detail?id=94 When I think about it, if one sees the loop as for(unsigned char i = 1; i<=255; i++){ }, the loop never terminates. But if the loop in Gambas should be like "count from 1 to 255", will it terminate or not? However, that "Print i" prints 256 is still wrong. From gambas at ...2524... Wed Aug 31 23:54:44 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 31 Aug 2011 21:54:44 +0000 Subject: [Gambas-user] Issue 94 in gambas: A For-statement can store an Integer in a Byte/Short. In-Reply-To: <3-6813199134517018827-16736973088834895377-gambas=googlecode.com@...2524...> References: <3-6813199134517018827-16736973088834895377-gambas=googlecode.com@...2524...> <0-6813199134517018827-16736973088834895377-gambas=googlecode.com@...2524...> Message-ID: <4-6813199134517018827-16736973088834895377-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -Version Version-TRUNK Comment #4 on issue 94 by benoit.m... at ...626...: A For-statement can store an Integer in a Byte/Short. http://code.google.com/p/gambas/issues/detail?id=94 (No comment was entered for this change.) From gambas at ...2524... Wed Aug 31 23:58:45 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 31 Aug 2011 21:58:45 +0000 Subject: [Gambas-user] Issue 95 in gambas: FOR-optimization not correct In-Reply-To: <0-6813199134517018827-11930676812097496581-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-11930676812097496581-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-11930676812097496581-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -Version Version-TRUNK Comment #1 on issue 95 by benoit.m... at ...626...: FOR-optimization not correct http://code.google.com/p/gambas/issues/detail?id=95 (No comment was entered for this change.)