[Gambas-user] 'Public Enum' Question

2010-08-23 Thread Lord Quo
Hi all, I have a Public Enum declaration, but I need (or want) to use a constants named Left and Right: Public Enum StyleHorizontalAlignment Automatic, Left, Center, Right, Fill, Justify, CenterAcrossSelection, Distributed, JustifyDistributed But when I compile the project, Gambas give me an er

[Gambas-user] Clipboard problem in Gambas

2010-08-23 Thread richard terry
On Tuesday 24 August 2010 01:03:43 Benoît Minisini wrote: > > 1. Thank you for your response, it works better now. > > > > 2.The problem of shortcuts keys Ctrl+C, Ctrl+X is: when I use those > > shortcut keys, I can paste only to the Gambas project editor window from > > where I copy (I can paste

Re: [Gambas-user] Strange MP3 playback

2010-08-23 Thread M. Cs.
I found the workaround for the situation: The above mentioned happens when I record a sound with Audacity (e.g. YouTube) and save as MP3 with 48.000Hz as project frequency (Audigy-2). When I convert the sound with Audacity to 44.000 Hz, then convert the new MP3 to WAV with Nautilus-script, and fin

Re: [Gambas-user] Strange MP3 playback

2010-08-23 Thread Benoît Minisini
> I found that the MP3 files played with Gambas2 doesn't sound correctly: > some of them are slower than normally, and some of them are overmodulated. > Why? Solutions? I guess you are using the gb.sdl.sound component. Can you provide the MP3 that are not played correctly? -- Benoît Minisini -

Re: [Gambas-user] Extern howto/tutorial

2010-08-23 Thread Benoît Minisini
> Hi, > > I finally wrote the tutorial about using external declarations. Great! > > It is a long text and perhaps difficult, but I didn't find any other way > to put it in a simpler form: the problem of interfacing gambas to > external libraries, from the perspective of a gambas user, is not s

Re: [Gambas-user] Bug in TrayIcon

2010-08-23 Thread Jussi Lahtinen
Yes, I modified startup, now there is 10s delay before starting gbr2. And everything works. Maybe I should write function to check if desktop panel is started or not. BTW. Does anyone know why sleep 10 && gbr2 ... doesn't work? It works in terminal, but in System --> Preferences --> Startup Applic

Re: [Gambas-user] EXEC or SHELL can not READ WRITE simultaneously well with process?

2010-08-23 Thread Benoît Minisini
> 1. Thank you for your response, it works better now. > > 2.The problem of shortcuts keys Ctrl+C, Ctrl+X is: when I use those > shortcut keys, I can paste only to the Gambas project editor window from > where I copy (I can paste to different tabs). When I switch to other > windows e.g gedit or a

Re: [Gambas-user] Bug in TrayIcon

2010-08-23 Thread Benoît Minisini
> Hi! > TrayIcon seems to work perfectly, > until program that uses it, is started at startup of OS. > Program is started with following command; > gbr2 /home/MyName/ProgramsName.gambas > > > Program has following code: > > PUBLIC Kuvake AS NEW TrayIcon AS "TrayIkoni" > > PUBLIC SUB Form_Open()

Re: [Gambas-user] gb.image: image alpha channel accessibility

2010-08-23 Thread Benoît Minisini
> kevinfishburne wrote: > > It still won't display an image. I'd like to copy/paste the code for > > Image.DrawAlpha from the GAMBAS 3 checkout to the GAMBAS 2 checkout and > > see if it works under a more stable GAMBAS. Is there anything I should > > look for other than the obvious (to a non-C pro

Re: [Gambas-user] Problem saving change in a form

2010-08-23 Thread Gaël Le Hec'H
I tested with stable 2.21 and was ok but not with 2.21_3124 very strange. will try to rebuild Gambas2 from SVN. -- This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Chal

Re: [Gambas-user] Problem saving change in a form

2010-08-23 Thread Jussi Lahtinen
I tested it with same revision of Gambas, @ Ubuntu 10.04 64bit, and I couldn't reproduce the problem. Jussi On Mon, Aug 23, 2010 at 12:30, Gaël Le Hec'H wrote: > hi, > I extracted the form from my project and put in a blank project. If I > do any modification and try to save, I get this error :

Re: [Gambas-user] Converting strings to numbers with localization issues

2010-08-23 Thread Ron
Fabien, you are right, of course... they will be translated by Str$ I changed PRINT to WRITE just to test, and the pattern is the same for all 4. Finally a way to get this fixed, now I have to check my massive project for my wrongly used Val()'s Thanks both Benoît and Fabien. Regards, Ron

Re: [Gambas-user] Converting strings to numbers with localization issues

2010-08-23 Thread Fabien Bodard
CFLoat return a Float variable ... so PRINT just see a variable and not a convertion funtion ... PRINT do what it do for every float, display the number in localization settings. 2010/8/23 Ron : >  On 23-8-2010 12:19, Benoît Minisini wrote: >>>    On 23-8-2010 11:54, Benoît Minisini wrote: >

Re: [Gambas-user] Converting strings to numbers with localization issues

2010-08-23 Thread Ron
On 23-8-2010 12:19, Benoît Minisini wrote: >>On 23-8-2010 11:54, Benoît Minisini wrote: In my project I have several temp values in the form of 31.72 C They are stored as string and I convert them with Val(sValue) My project is translatable, default language is en

Re: [Gambas-user] Converting strings to numbers with localization issues

2010-08-23 Thread Benoît Minisini
> On 23-8-2010 11:54, Benoît Minisini wrote: > >>In my project I have several temp values in the form of 31.72 C > >> > >> They are stored as string and I convert them with Val(sValue) > >> > >> My project is translatable, default language is en_US.UTF-8 > >> > >> If I change System.Langua

Re: [Gambas-user] Converting strings to numbers with localization issues

2010-08-23 Thread Ron
On 23-8-2010 11:54, Benoît Minisini wrote: >>In my project I have several temp values in the form of 31.72 C >> >> They are stored as string and I convert them with Val(sValue) >> >> My project is translatable, default language is en_US.UTF-8 >> >> If I change System.Language, Val doesn't kno

Re: [Gambas-user] Converting strings to numbers with localization issues

2010-08-23 Thread Benoît Minisini
> In my project I have several temp values in the form of 31.72 C > > They are stored as string and I convert them with Val(sValue) > > My project is translatable, default language is en_US.UTF-8 > > If I change System.Language, Val doesn't know how to convert the value > correctly (or it does

[Gambas-user] Converting strings to numbers with localization issues

2010-08-23 Thread Ron
In my project I have several temp values in the form of 31.72 C They are stored as string and I convert them with Val(sValue) My project is translatable, default language is en_US.UTF-8 If I change System.Language, Val doesn't know how to convert the value correctly (or it does it correctly,