Re: [Gambas-user] how to convert VB Project file to Gambas

2013-12-17 Thread Caveat
Sounds like you have some more reading to do. Start here: http://www.lmgtfy.com/?q=gdi32+linux Come back to us when you have already done a little research and have SPECIFIC questions... Your approach to this conversion project puts me in mind of someone translating Russian to Italian word

[Gambas-user] automatic column width in DataBrowser

2013-12-17 Thread nero
Hi all ,  I'm using a DataBrowser to get some data from a postgresql database , everything's work fine but I've some problema setting column width. When I double click between two columns they get the right width , is there a way to do so by code ? Also can I set test allignment of the cells ?

[Gambas-user] Issue 481 in gambas: Different picture for closed and opened TreeView item

2013-12-17 Thread gambas
Status: New Owner: Labels: Version-3.1.0 Type-Enhancement Priority-Low OpSys-Linux Dist-Ubuntu Arch-X86 Desktop-Gnome GUI-QT4 New issue 481 by arif_rah...@ymail.com: Different picture for closed and opened TreeView item http://code.google.com/p/gambas/issues/detail?id=481 TreeView item

Re: [Gambas-user] how to convert VB Project file to Gambas

2013-12-17 Thread Jussi Lahtinen
I think you can have same functionality with Draw.Picture(). http://gambasdoc.org/help/comp/gb.qt4/draw/picture?v3 Jussi On Tue, Dec 17, 2013 at 8:03 AM, //SCLPL/ Sudeep Damodar sudee...@scantechlaser.com wrote: HI All, Thank for your valuable comments .i have one doubt i have to declare

Re: [Gambas-user] how to convert VB Project file to Gambas

2013-12-17 Thread Caveat
That's good news (for Sudeep) Jussi! I never bothered to google StretchBlt (the Blt part made it sound more complicated than it really is). tsk tsk ;-) Kind regards, Caveat On 17/12/13 14:15, Jussi Lahtinen wrote: I think you can have same functionality with Draw.Picture().

[Gambas-user] Generating a sine wave with ALSA

2013-12-17 Thread Ru Vuott
Hello, in my eternal struggle with ALSA :-) I was trying to convert in gambas a C code, written to generate a sine wave with ALSA functions. When I run the application, I can hear the sound of the wave, but it is mixed with a background hiss. I would like to have your opinion and check if

Re: [Gambas-user] Generating a sine wave with ALSA

2013-12-17 Thread Jussi Lahtinen
Where is the C source? Without it I can't say whether you have translated it correctly or not. Jussi On Tue, Dec 17, 2013 at 6:38 PM, Ru Vuott vu...@yahoo.it wrote: Hello, in my eternal struggle with ALSA :-) I was trying to convert in gambas a C code, written to generate a sine wave

Re: [Gambas-user] Generating a sine wave with ALSA

2013-12-17 Thread Jussi Lahtinen
Oh, apparently I didn't read it through... Jussi On Tue, Dec 17, 2013 at 11:26 PM, Jussi Lahtinen jussi.lahti...@gmail.comwrote: Where is the C source? Without it I can't say whether you have translated it correctly or not. Jussi On Tue, Dec 17, 2013 at 6:38 PM, Ru Vuott vu...@yahoo.it

Re: [Gambas-user] Generating a sine wave with ALSA

2013-12-17 Thread Jussi Lahtinen
At least this isn't right: Private Const SND_PCM_FORMAT_FLOAT As Integer = 14 I'll look more closely later. Jussi On Tue, Dec 17, 2013 at 11:31 PM, Ru Vuott vu...@yahoo.it wrote: The C code is in Data folder of Gambas project. Anyway, I've attached it to this email. Bye vuo

Re: [Gambas-user] Generating a sine wave with ALSA

2013-12-17 Thread Ru Vuott
Uh... it would seem to be correct. In fact, if I insert this line in the code C: printf(SND_PCM_FORMAT_FLOAT value = %d, SND_PCM_FORMAT_FLOAT); and then I run that compilated C code, I obtain in terminal this results: SND_PCM_FORMAT_FLOAT value = 14 In addition, you can easily

Re: [Gambas-user] Generating a sine wave with ALSA

2013-12-17 Thread Ru Vuott
The C code is in Data folder of Gambas project. Anyway, I've attached it to this email. Bye vuo Mar 17/12/13, Jussi Lahtinen jussi.lahti...@gmail.com ha scritto: Oggetto: Re: [Gambas-user] Generating a sine wave with ALSA A: mailing list

Re: [Gambas-user] Generating a sine wave with ALSA

2013-12-17 Thread Jussi Lahtinen
No, as the name suggest it's float, not integer. Jussi On Wed, Dec 18, 2013 at 12:03 AM, Ru Vuott vu...@yahoo.it wrote: Uh... it would seem to be correct. In fact, if I insert this line in the code C: printf(SND_PCM_FORMAT_FLOAT value = %d, SND_PCM_FORMAT_FLOAT); and then I run

Re: [Gambas-user] Generating a sine wave with ALSA

2013-12-17 Thread Ru Vuott
I suppose it's a kind of signal, meaning ..you can see snd_pcm_writei() gives to ALSA handle a buffer variable full of Float values. vuott Mer 18/12/13, Jussi Lahtinen jussi.lahti...@gmail.com ha scritto: Oggetto: Re: [Gambas-user]

Re: [Gambas-user] Generating a sine wave with ALSA

2013-12-17 Thread Jussi Lahtinen
Also this was wrongly declared (correct below): ' snd_pcm_sframes_t snd_pcm_writei(snd_pcm_t *pcm, const void *buffer, snd_pcm_uframes_t size) Private Extern snd_pcm_writei(pcm As Pointer, buffF As Pointer, sizeI As Integer) As Integer Perhaps the biggest problem is that you give null pointer,

Re: [Gambas-user] Generating a sine wave with ALSA

2013-12-17 Thread Jussi Lahtinen
Also 14 is wrong, according to documentation, correct values are between -1 to 1. Jussi On Wed, Dec 18, 2013 at 1:20 AM, Ru Vuott vu...@yahoo.it wrote: I suppose it's a kind of signal, meaning ..you can see snd_pcm_writei() gives to ALSA handle a buffer variable full of Float values.

Re: [Gambas-user] Generating a sine wave with ALSA

2013-12-17 Thread Jussi Lahtinen
snd_pcm_t is synonymous for struct _snd_pcm (typedef struct _snd_pcm snd_pcm_t;). And struct _snd_pcm is declared as... see from line 183. http://fossies.org/dox/alsa-lib-1.0.27.2/pcm__local_8h_source.html Quite a task to implement in Gambas (not sure it's possible). Jussi On Wed, Dec 18,

[Gambas-user] Creating a gb3 executable

2013-12-17 Thread Bruce
I have done this so many times before but today I just cant get it to work. We have a code generator that updates the source code for a library project. As well as that it updates an SQLite database file in the project. This database gets stored inside the library executable. Fundamentally every

[Gambas-user] Project line counts

2013-12-17 Thread Bruce
Wasn't there a context menu item somewhere in the IDE that told you (amongst other things) how many source code lines were in the project? ? Bruce -- Rapidly troubleshoot problems before they affect your business. Most

Re: [Gambas-user] Creating a gb3 executable

2013-12-17 Thread Bruce
On Wed, 2013-12-18 at 13:03 +1030, Bruce wrote: Some idiotic code. Forget it. I can see why it doesn't work. Sorry about the noise. Bruce -- Rapidly troubleshoot problems before they affect your business. Most IT

Re: [Gambas-user] Project line counts

2013-12-17 Thread Benoît Minisini
Le 18/12/2013 03:35, Bruce a écrit : Wasn't there a context menu item somewhere in the IDE that told you (amongst other things) how many source code lines were in the project? ? Bruce There was, but I removed it. Do you need that? What do you mean by amongst other things? -- Benoît

Re: [Gambas-user] automatic column width in DataBrowser

2013-12-17 Thread Benoît Minisini
Le 17/12/2013 12:41, nero a écrit : Hi all , I'm using a DataBrowser to get some data from a postgresql database , everything's work fine but I've some problema setting column width. When I double click between two columns they get the right width , is there a way to do so by code ?

Re: [Gambas-user] Cairo

2013-12-17 Thread Benoît Minisini
Le 16/12/2013 13:27, Pino Zollo a écrit : My project does not use cairo component...but I get in the console the message: gbx3: /build/buildd/cairo-1.10.2/src/cairo-surface.c:385: _cairo_surface_begin_modification: La declaración `! surface-finished' no se cumple. no se cumple...means it

Re: [Gambas-user] Project line counts

2013-12-17 Thread Bruce
On Wed, 2013-12-18 at 03:54 +0100, Benoît Minisini wrote: Le 18/12/2013 03:35, Bruce a écrit : Wasn't there a context menu item somewhere in the IDE that told you (amongst other things) how many source code lines were in the project? ? Bruce There was, but I removed it. Do you need

Re: [Gambas-user] Project line counts

2013-12-17 Thread Rolf-Werner Eilert
Am 18.12.2013 03:54, schrieb Benoît Minisini: Le 18/12/2013 03:35, Bruce a écrit : Wasn't there a context menu item somewhere in the IDE that told you (amongst other things) how many source code lines were in the project? ? Bruce There was, but I removed it. Do you need that? What do

Re: [Gambas-user] Project line counts

2013-12-17 Thread Charlie Reinl
Am Mittwoch, den 18.12.2013, 08:21 +0100 schrieb Rolf-Werner Eilert: Am 18.12.2013 03:54, schrieb Benoît Minisini: Le 18/12/2013 03:35, Bruce a écrit : Wasn't there a context menu item somewhere in the IDE that told you (amongst other things) how many source code lines were in the

Re: [Gambas-user] Project line counts

2013-12-17 Thread Rolf-Werner Eilert
Am 18.12.2013 08:35, schrieb Charlie Reinl: Am Mittwoch, den 18.12.2013, 08:21 +0100 schrieb Rolf-Werner Eilert: Am 18.12.2013 03:54, schrieb Benoît Minisini: Le 18/12/2013 03:35, Bruce a écrit : Wasn't there a context menu item somewhere in the IDE that told you (amongst other things) how