[Gambas-user] Small problem with .insert
I would to put in an array lists of some kinds of files. Code is similar to following lines, prints are there to check what's happening.. question is, there is any way to use insert and read those hidden files? This, on Gambas 3.1.1 and Debian. dim files as string[] files = RDir(directory, *.html, gb.file) print files.length ' prints 12250, correct files.Insert(RDir(directory, *.css, gb.file)) print files.length 'prints 12255, 5 new files added, correct files.Insert(RDir(directory, robots.txt, gb.file)) print files.length ' prints 12256, one new file, correct files.Insert(RDir(directory, .ht*, gb.file)) print files.length ' prints 12256, but there were two files to add files.Insert(RDir(directory, .htaccess, gb.file)) print files.length ' prints 12256, but there was one file to add -- LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus on delivering more value-add services Discover what IT Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Small problem with .insert
I would to put in an array lists of some kinds of files. Code is similar to following lines, prints are there to check what's happening.. question is, there is any way to use insert and read those hidden files? This, on Gambas 3.1.1 and Debian. dim files as string[] files = RDir(directory, *.html, gb.file) print files.length ' prints 12250, correct files.Insert(RDir(directory, *.css, gb.file)) print files.length 'prints 12255, 5 new files added, correct files.Insert(RDir(directory, robots.txt, gb.file)) print files.length ' prints 12256, one new file, correct files.Insert(RDir(directory, .ht*, gb.file)) print files.length ' prints 12256, but there were two files to add files.Insert(RDir(directory, .htaccess, gb.file)) print files.length ' prints 12256, but there was one file to add -- LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus on delivering more value-add services Discover what IT Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] DrawArea problems with gtk in 3.3.90 - rev. #5417
Le 08/12/2012 22:01, Willy Raets a écrit : Problem occurred on Gambas 3.3.90 - rev. #5417 Works correctly on Gambas 3.3.4 Must be caused by new implementation of DrawArea. DrawArea behaves correctly with qt4, gives trouble with gtk Attached source archive to see the problem. Step 1: Run the application to see what the intention is (it uses qt4) Step 2: Change component qt4 to gtk and run again to see the problem. Thanks, Willy It is fixed in revision #5420. But note the way you are doing animation is not good: - You are drawing on a non-cached DrawingArea outside of a Draw event. You must not do that, even if at the moment it works because you are using X-Window. Use a cached DrawingArea, or paint only inside the Draw event handler. - You are using the WAIT instruction. You should use a Timer instead. For example, to make animations in the MediaPlayer example, I have implemented a little class named CAnimation. I suggest you look at it and steal it. Regards, -- Benoît Minisini -- LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus on delivering more value-add services Discover what IT Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Drawing sector
Le 07/12/2012 14:28, Jussi Lahtinen a écrit : Fixed in revision #5415. Something is still different from the original behaviour. I use same circle commands to draw pie chart and it still fails... Test output: Area num. 0: in rads; 0 to 0.89759700342775 Area num. 1: in rads; 0.89759700342775 to 1.79519400685551 Area num. 2: in rads; 1.79519400685551 to 2.69279101028326 Area num. 3: in rads; 2.69279101028326 to 3.59038801371102 Area num. 4: in rads; 3.59038801371102 to 4.48798501713877 Area num. 5: in rads; 4.48798501713877 to 5.38558202056653 Area num. 6: in rads; 5.38558202056653 to 6.28317902399428 Area num. 7: in rads; 6.28317902399428 to 0 It seems that drawing area 7 cover the whole chart. So it would be: Draw.Circle(106, 106, 105, 6.28317902399428, 0) 6.28317902399428 is same as Pi(2) or 360 degrees, which means start is same as end. I think whole circle should be drawn with this: Draw.Circle(106, 106, 105, 0, 6.28317902399428) And this shouldn't draw anything: Draw.Circle(106, 106, 105, 6.28317902399428, 0) Jussi Actually the old Draw class was wrong, because you can draw a pie clockwise (End Start) or counter-clockwise (End Start). So only Start = End should not draw anything (or just a line between the center and the point at the specified angle). -- Benoît Minisini -- LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus on delivering more value-add services Discover what IT Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] DrawArea problems with gtk in 3.3.90 - rev. #5417
It is fixed in revision #5420. Thanks, I'll have a look at it as soon as I have rev #5420 installed But note the way you are doing animation is not good: - You are drawing on a non-cached DrawingArea outside of a Draw event. You must not do that, even if at the moment it works because you are using X-Window. Use a cached DrawingArea, or paint only inside the Draw event handler. DrawingArea in example is named drwAbout First line of code in Form_Activate() after the Dim is drwAbout.Cached = True Next I start drawing all. Doesn't that mean I'm drawing on a cached DrawingArea? Or am I completely misunderstanding? - You are using the WAIT instruction. You should use a Timer instead. For example, to make animations in the MediaPlayer example, I have implemented a little class named CAnimation. I suggest you look at it and steal it. I'll have a look at the Timer and steal it :-) Regards, Thanks again, Willy -- LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus on delivering more value-add services Discover what IT Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] DrawArea problems with gtk in 3.3.90 - rev. #5417
Le 09/12/2012 16:30, Willy Raets a écrit : It is fixed in revision #5420. Thanks, I'll have a look at it as soon as I have rev #5420 installed But note the way you are doing animation is not good: - You are drawing on a non-cached DrawingArea outside of a Draw event. You must not do that, even if at the moment it works because you are using X-Window. Use a cached DrawingArea, or paint only inside the Draw event handler. DrawingArea in example is named drwAbout First line of code in Form_Activate() after the Dim is drwAbout.Cached = True Next I start drawing all. Sorry, didn't see that line! :-) -- Benoît Minisini -- LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus on delivering more value-add services Discover what IT Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] IMPORTANT! Sourceforge upgrade
I tried both commands, but I still get the message: //gambas3/5421/trunk' is already a working copy for a different URL svn checkout works, but the old URL isn't changed. 'svn update' and 'svn info' still point to the old URL. Does somebody know how to tell svn to save the new URL? Matti Am 08.12.2012 18:04, schrieb Laurent Carlier: Le samedi 8 décembre 2012 02:30:26 Benoît Minisini a écrit : The information is on https://sourceforge.net/p/gambas/code/ For a read-only access: $ svn checkout svn://svn.code.sf.net/p/gambas/code/gambas/trunk For a read-write access: (I don't know why there is a difference!) $ svn checkout --username=username svn+ssh://gam...@svn.code.sf.net/p/gambas/code/gambas/trunk The proper URL seem to be svn checkout --username=username svn+ssh://username@svn.code.sf.net/p/gambas/code/gambas/trunk For migrating from the old repo, you can try (not tested) the command svn relocate like this: svn relocate --username=username svn+ssh://username@svn.code.sf.net/p/gambas/code/gambas/trunk -- LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus on delivering more value-add services Discover what IT Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] IMPORTANT! Sourceforge upgrade
Le 09/12/2012 19:17, Matti a écrit : I tried both commands, but I still get the message: //gambas3/5421/trunk' is already a working copy for a different URL svn checkout works, but the old URL isn't changed. 'svn update' and 'svn info' still point to the old URL. Does somebody know how to tell svn to save the new URL? Matti Remove the old /trunk completely and do a checkout from scratch with the new url. Regards, -- Benoît Minisini -- LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus on delivering more value-add services Discover what IT Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] IMPORTANT! Sourceforge upgrade
But then all my recent translations (that have been sent to theo old URL) would be lost. Would it be possible to save all those *.po and *.mo files somewhere, do the checkout from scatch, copy them to the new trunk directory and do a commit again? M. Am 09.12.2012 19:37, schrieb Benoît Minisini: Le 09/12/2012 19:17, Matti a écrit : I tried both commands, but I still get the message: //gambas3/5421/trunk' is already a working copy for a different URL svn checkout works, but the old URL isn't changed. 'svn update' and 'svn info' still point to the old URL. Does somebody know how to tell svn to save the new URL? Matti Remove the old /trunk completely and do a checkout from scratch with the new url. Regards, -- LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus on delivering more value-add services Discover what IT Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] IMPORTANT! Sourceforge upgrade
Le 09/12/2012 19:46, Matti a écrit : But then all my recent translations (that have been sent to theo old URL) would be lost. Would it be possible to save all those *.po and *.mo files somewhere, do the checkout from scatch, copy them to the new trunk directory and do a commit again? M. Don't remove the old /trunk then, just rename the directory, or put it elsewhere. Once you have done the new checkout, you will have to get the new translation from the old trunk and put it into the new one. A file copy will be enough. -- Benoît Minisini -- LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus on delivering more value-add services Discover what IT Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] IMPORTANT! Sourceforge upgrade
On Sun, Dec 9, 2012 at 3:46 PM, Matti math.e...@t-online.de wrote: But then all my recent translations (that have been sent to theo old URL) would be lost. Would it be possible to save all those *.po and *.mo files somewhere, do the checkout from scatch, copy them to the new trunk directory and do a commit again? M. Am 09.12.2012 19:37, schrieb Benoît Minisini: Le 09/12/2012 19:17, Matti a écrit : I tried both commands, but I still get the message: //gambas3/5421/trunk' is already a working copy for a different URL svn checkout works, but the old URL isn't changed. 'svn update' and 'svn info' still point to the old URL. Does somebody know how to tell svn to save the new URL? Matti Remove the old /trunk completely and do a checkout from scratch with the new url. Regards, -- LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus on delivering more value-add services Discover what IT Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user I have a backup of the old repository. If you want, i can import your commit to the new repository, then you can just do a fresh checkout. -- LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus on delivering more value-add services Discover what IT Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] IMPORTANT! Sourceforge upgrade
Whow! That would be great. Let's try! M. Am 09.12.2012 19:52, schrieb Sebastian Kulesz: On Sun, Dec 9, 2012 at 3:46 PM, Matti math.e...@t-online.de wrote: I have a backup of the old repository. If you want, i can import your commit to the new repository, then you can just do a fresh checkout. -- LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus on delivering more value-add services Discover what IT Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] IMPORTANT! Sourceforge upgrade
Please check revision #5423. BTW, the Daily Builds PPA is up again, please give it a few hours for the new updates to show up! On Sun, Dec 9, 2012 at 4:13 PM, Matti math.e...@t-online.de wrote: Whow! That would be great. Let's try! M. Am 09.12.2012 19:52, schrieb Sebastian Kulesz: On Sun, Dec 9, 2012 at 3:46 PM, Matti math.e...@t-online.de wrote: I have a backup of the old repository. If you want, i can import your commit to the new repository, then you can just do a fresh checkout. -- LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus on delivering more value-add services Discover what IT Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus on delivering more value-add services Discover what IT Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Small problem with .insert
Le 09/12/2012 13:52, Gianni Piccini a écrit : I would to put in an array lists of some kinds of files. Code is similar to following lines, prints are there to check what's happening.. question is, there is any way to use insert and read those hidden files? This, on Gambas 3.1.1 and Debian. dim files as string[] files = RDir(directory, *.html, gb.file) print files.length ' prints 12250, correct files.Insert(RDir(directory, *.css, gb.file)) print files.length 'prints 12255, 5 new files added, correct files.Insert(RDir(directory, robots.txt, gb.file)) print files.length ' prints 12256, one new file, correct files.Insert(RDir(directory, .ht*, gb.file)) print files.length ' prints 12256, but there were two files to add files.Insert(RDir(directory, .htaccess, gb.file)) print files.length ' prints 12256, but there was one file to add I don't know... There is no reason why RDir() should not see a file. Except maybe if you don't have the rights to read the .ht* files? -- Benoît Minisini -- LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus on delivering more value-add services Discover what IT Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Small problem with .insert
On 09/12/2012 21:25, Benoît Minisini wrote: I don't know... There is no reason why RDir() should not see a file. Except maybe if you don't have the rights to read the .ht* files? Rights are correct: and, at the same time, if I write files = RDir(directory, *.*, gb.file) I've the correct number of files in the array. Not so important for me - I've done the thing in another way, and Gambas version is not too recent - but I know that code works as expected for some friends. -- LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus on delivering more value-add services Discover what IT Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Small problem with .insert
Le 10/12/2012 01:12, Gianni Piccini a écrit : On 09/12/2012 21:25, Benoît Minisini wrote: I don't know... There is no reason why RDir() should not see a file. Except maybe if you don't have the rights to read the .ht* files? Rights are correct: and, at the same time, if I write files = RDir(directory, *.*, gb.file) I've the correct number of files in the array. Not so important for me - I've done the thing in another way, and Gambas version is not too recent - but I know that code works as expected for some friends. Fine, but it's weird if RDir() cannot see some files! If eventually you upgrade to a recent version of Gambas, please try the same code and tell me if it works as expected... Regards, -- Benoît Minisini -- LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus on delivering more value-add services Discover what IT Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Issue 363 in gambas: Command Button Transparency Found
Updates: Labels: -Version Version-TRUNK Comment #4 on issue 363 by benoit.m...@gmail.com: Command Button Transparency Found http://code.google.com/p/gambas/issues/detail?id=363 I cannot reproduce the problem. Maybe it is a bug in the widget theme. Which widget theme do you use? -- LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus on delivering more value-add services Discover what IT Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Issue 364 in gambas: Gambas3 - Make Executable Error
Updates: Status: Fixed Labels: -Version Version-TRUNK Comment #1 on issue 364 by benoit.m...@gmail.com: Gambas3 - Make Executable Error http://code.google.com/p/gambas/issues/detail?id=364 I have modified the FileChooser in revision #5425 so that if you enter a full path in the file text field, the Activate event is not raised when clicking on the OK button. Instead, the file text field is split in a directory and a file name. The FileChooser then jumps to the directory, and the file text field contents is replaced by the file name. -- LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus on delivering more value-add services Discover what IT Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Issue 359 in gambas: ScrollBar fails in the new version
Updates: Status: Started Comment #6 on issue 359 by benoit.m...@gmail.com: ScrollBar fails in the new version http://code.google.com/p/gambas/issues/detail?id=359 (No comment was entered for this change.) -- LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus on delivering more value-add services Discover what IT Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user