[Gambas-user] Gambas applications

2009-08-17 Thread Steven James Drinnan
Hi Benoît Here is an application for you to consider. It is still in alpha right now with limited functionality. Name: Steven James Drinnan / SJDSoft Application: SJDSoftMyEduBase 0.1.43 Description: A database focused on the needs of schools in Hong Kong. Student, Class, Teacher etc. Website: ht

Re: [Gambas-user] setfocus eats way too much time

2009-08-17 Thread Jean-Yves F. Barbier
BTW2: having the possibility to switch from RAD tabs by CTRL-PgUP/PgDwn would be VERY nice AND useful: as I formerly told you, that's the way to switch tabs into iceweasel/firefox so I guess many people should be used to that command too. Pointing the wanted tab takes much longer than use the key

Re: [Gambas-user] setfocus eats way too much time

2009-08-17 Thread Jean-Yves F. Barbier
Benoît Minisini a écrit : >> Doriano Blengino a écrit : >> ... >> >>> Fabien was asking what toolkit you are using: GTK or QT? >> Qt >> > > I've heard of a bug in the clipboard management of recent Qt4 versions. Could > it be the source of your delay? > >>> Try the other one, who knows... it's a

Re: [Gambas-user] refer to an object with a string

2009-08-17 Thread Jean-Yves F. Barbier
Doriano Blengino a écrit : > Jean-Yves F. Barbier ha scritto: >> Doriano Blengino a écrit : >> >>> I didn't want to say that Label2572 is obscure code: instead the first >>> thing that came to my mind is "how many labels are in this form?". >>> So I pointed out that perhaps dynamic construction

Re: [Gambas-user] Gambas performances

2009-08-17 Thread Olivier Cruilles
I will try to change it but if I remember exactly, it was the snmpget with more than one OIDs in the list that does not understand correctly with the EXEC command. And it works perfectly with SHELL command. Example: /usr/bin/snmpget - c public - v 2c 198.168.0.3 enterprises.ucdavis.52.10

Re: [Gambas-user] refer to an object with a string

2009-08-17 Thread Doriano Blengino
Jean-Yves F. Barbier ha scritto: > Doriano Blengino a écrit : > >> I didn't want to say that Label2572 is obscure code: instead the first >> thing that came to my mind is "how many labels are in this form?". >> So I pointed out that perhaps dynamic construction of gadgets would have >> been us

Re: [Gambas-user] How to show a form with keyboard shortcut

2009-08-17 Thread Doriano Blengino
HARADA Kazutaka ha scritto: > Sorry fo late reply, > > >> You can't if you don't have the focus. What you need is a global shortcut, >> which is managed by your desktop environment, or a special program. >> >> For example, in KDE, there is a control panel entry for configuring them. >> >>

Re: [Gambas-user] Gambas performances

2009-08-17 Thread Benoît Minisini
> I tried the both solutions: SHELL and EXEC, but the parameters used > are not the same for each command executed. > > So, after many tries, I the EXEC command give me errors during > execution because it's very difficult to play with the character " or > ' in the command. You just have to replac

Re: [Gambas-user] Gambas performances

2009-08-17 Thread Olivier Cruilles
I tried the both solutions: SHELL and EXEC, but the parameters used are not the same for each command executed. So, after many tries, I the EXEC command give me errors during execution because it's very difficult to play with the character " or ' in the command. I know that the EXEC command

Re: [Gambas-user] Gambas performances

2009-08-17 Thread Benoît Minisini
> I measure the time to execute 730 snmpget commands started as process > (SHELL command) in a Gambas program. Why do you use SHELL to run snmpget? It runs the command inside "/bin/sh", which is very heavy. > > > In the first time I start 20 processes in the same time and when one > is finished,

Re: [Gambas-user] Gambas performances

2009-08-17 Thread nando
My question is: are you really testing Gambas or kernel networking (snmp)?? -- Original Message --- From: Olivier Cruilles To: mailing list for gambas users Sent: Mon, 17 Aug 2009 20:27:44 +0200 Subject: [Gambas-user] Gambas performances > Hello Benoit, > > Just a question ab

Re: [Gambas-user] Gambas performances

2009-08-17 Thread Olivier Cruilles
I measure the time to execute 730 snmpget commands started as process (SHELL command) in a Gambas program. In the first time I start 20 processes in the same time and when one is finished, I start a new one to follow the list of requests to execute. I measure the time from the first process

Re: [Gambas-user] Gambas performances

2009-08-17 Thread Benoît Minisini
> Hello Benoit, > > Just a question about performances of Gambas 2.14 on Fedora 10 > x86_32 (32bits) > > I'm trying my scheduler written in Gambas on Fedora 10 on 3 > differentes machines: > > 1) 1x Celeron 2.6 Ghz512Mb Ram (simple PC) > > Time to execute 730 snmp requests: around 49

[Gambas-user] Gambas performances

2009-08-17 Thread Olivier Cruilles
Hello Benoit, Just a question about performances of Gambas 2.14 on Fedora 10 x86_32 (32bits) I'm trying my scheduler written in Gambas on Fedora 10 on 3 differentes machines: 1) 1x Celeron 2.6 Ghz512Mb Ram (simple PC) Time to execute 730 snmp requests: around 49 sec 2) 1x

Re: [Gambas-user] libtool management in Gambas 3 & compilation problems

2009-08-17 Thread Charlie Reinl
Am Montag, den 17.08.2009, 18:51 +0200 schrieb Ron_1st: > On Monday 17 August 2009, Charlie Reinl wrote: > > Am Montag, den 17.08.2009, 17:42 +0200 schrieb Ron_1st: > > > On Monday 17 August 2009, Charlie Reinl wrote: > > 8<---8<---8<---8<---8<---8<---8<-->8 >

Re: [Gambas-user] libtool management in Gambas 3 & co mpilation problems

2009-08-17 Thread Ron_1st
On Monday 17 August 2009, Charlie Reinl wrote: > Am Montag, den 17.08.2009, 17:42 +0200 schrieb Ron_1st: > > On Monday 17 August 2009, Charlie Reinl wrote: 8<---8<---8<---8<---8<---8<---8<-->8 > > > > Best regards, > > > > Ron_1st > > > Salut Ron (the 1st),

Re: [Gambas-user] How to show a form with keyboard shortcut

2009-08-17 Thread HARADA Kazutaka
Sorry fo late reply, > You can't if you don't have the focus. What you need is a global shortcut, > which is managed by your desktop environment, or a special program. > > For example, in KDE, there is a control panel entry for configuring them. > Yes, you are right. But I'm looking for a wi

Re: [Gambas-user] Managing soundtracks, WAVs

2009-08-17 Thread Dimitris Anogiatis
Rolf, It should have been this case yes. If you use ubuntu or Debian perhaps try to re-create your application's executable, re-produce your deb packages and logically the dependency should be included in the final product... check out the resulting deb file with gdebi at first (it will tell you

Re: [Gambas-user] libtool management in Gambas 3 & compilation problems

2009-08-17 Thread Charlie Reinl
Am Montag, den 17.08.2009, 17:42 +0200 schrieb Ron_1st: > On Monday 17 August 2009, Charlie Reinl wrote: > > Am Montag, den 17.08.2009, 09:50 +0200 schrieb Benoît Minisini: > > > > Am Montag, den 17.08.2009, 00:52 +0200 schrieb Benoît Minisini: > > > > > > > Many thanks for the dedication and quick

Re: [Gambas-user] Managing soundtracks, WAVs

2009-08-17 Thread Rolf-Werner Eilert
Rob schrieb: > On Friday 14 August 2009 08:15 am, Joshua Higgins wrote: >> I'm sure there is an example project that handles playing wav files... > > I'm pretty sure I or someone else posted a simple WAV player example to the > list shortly after the gb.sdl component was released (I know I wrote

Re: [Gambas-user] libtool management in Gambas 3 & comp ilation problems

2009-08-17 Thread Ron_1st
On Monday 17 August 2009, Charlie Reinl wrote: > Am Montag, den 17.08.2009, 09:50 +0200 schrieb Benoît Minisini: > > > Am Montag, den 17.08.2009, 00:52 +0200 schrieb Benoît Minisini: > > > > > > Many thanks for the dedication and quick support! Is this an issue > > > > > > with the changes above,

Re: [Gambas-user] refer to an object with a string

2009-08-17 Thread Jean-Yves F. Barbier
Doriano Blengino a écrit : > Jean-Yves F. Barbier ha scritto: >> Doriano Blengino a écrit : >> >> >> Thanks to both ouf you, I saved this thread to be sure to have it when >> needed :) >> >> >>> I saw a "Label2572"... it seemed to me a little strange... >>> And about obscure code, I th

Re: [Gambas-user] Pass parameter to Gambas prog.

2009-08-17 Thread charlesg
Thanks to all. Just what I want. rgds -- View this message in context: http://www.nabble.com/Pass-parameter-to-Gambas-prog.-tp25002337p25005719.html Sent from the gambas-user mailing list archive at Nabble.com. -- Let

Re: [Gambas-user] libtool management in Gambas 3 & compilation problems

2009-08-17 Thread Charlie Reinl
Am Montag, den 17.08.2009, 09:50 +0200 schrieb Benoît Minisini: > > Am Montag, den 17.08.2009, 00:52 +0200 schrieb Benoît Minisini: > > > > > Many thanks for the dedication and quick support! Is this an issue > > > > > with the changes above, or some system issue on my part? > > > > > > > > > > Up

Re: [Gambas-user] Pass parameter to Gambas prog.

2009-08-17 Thread Toni
Hi Charles, You can use the array in Application.Args to retrieve the parameters passed to the program, taking into account that the first occurrence in the array is the application own name. regards, Toni En/na charlesg ha escrit: > Hi all, > > Can I pass a parameter to a Gambas program? > e.g

Re: [Gambas-user] Pass parameter to Gambas prog.

2009-08-17 Thread Dimitris Anogiatis
Hey charlesg, you might want to experiment with the gb.option and the GetOptions class here's an example to get you started DIM opt AS NEW GetOptions("la:b:c:") IF opt["?"] = 1 PRINT "error parsing the arguments" ENDIF IF opt["l"] = 1 PRINT "found option l" ENDIF IF opt["a"]

Re: [Gambas-user] Pass parameter to Gambas prog.

2009-08-17 Thread Steven James Drinnan
short answer yes you retrieve it by using Application.Args[index] nb: Application.Args[0] is the program name Check in help for more details of how to use. Steven On Mon, 2009-08-17 at 00:34 -0700, charlesg wrote: > Hi all, > > Can I pass a parameter to a Gambas program? > e.g myprog.gambas

Re: [Gambas-user] Managing soundtracks, WAVs

2009-08-17 Thread Rolf-Werner Eilert
Hello Dimitris, Thanks for your tips! However, my problem is that when compiling my Gambas, it didn't include gb.sdl at all for some reason. I'd have to find out why before being able to proceed. On the other hand, this is true for my business machine in the office. My Laptop could have it, I'

Re: [Gambas-user] libtool management in Gambas 3 & compil ation problems

2009-08-17 Thread Benoît Minisini
> Am Montag, den 17.08.2009, 00:52 +0200 schrieb Benoît Minisini: > > > > Many thanks for the dedication and quick support! Is this an issue > > > > with the changes above, or some system issue on my part? > > > > > > > > Updated to revision 2236. > > > > [gar...@localhost trunk]$ ./reconf-all > >

[Gambas-user] Pass parameter to Gambas prog.

2009-08-17 Thread charlesg
Hi all, Can I pass a parameter to a Gambas program? e.g myprog.gambas parm1 How do I read the parameter? Any help gratefully received. rgds -- View this message in context: http://www.nabble.com/Pass-parameter-to-Gambas-prog.-tp25002337p25002337.html Sent from the gambas-user mailing list arc

Re: [Gambas-user] Managing soundtracks, WAVs

2009-08-17 Thread Dimitris Anogiatis
Hey Rolf, This is what I got from the gambasdoc website for the gb.sdl.sound section -- NEW Sound (gb.sdl.sound) *Syntax* DIM hSound AS Sound hSound = NEW Sound