Re: [Gambas-user] Profiler for Gambas projects

2009-09-12 Thread Doriano Blengino
Jussi Lahtinen ha scritto: It would still have performance impact, because interpreter would have to constantly check if profiler section of code is needed to execute. Compiler isn't used at runtime, so changes should be made to interpreter. I remember the old good days when turbo pascal

Re: [Gambas-user] Slider problem?

2009-09-12 Thread Doriano Blengino
Benoît Minisini ha scritto: Benoît Minisini schreef: Benoît Minisini schreef: If you disable a Slider, so Slider1.Enabled = FALSE , it still fires it's MouseUp event when clicked. This is not what I expected. Is this expected behaviour? Gambas 2.16.0 gb.qt. Regards,

[Gambas-user] Problem with UTF-8 in Gambas-connection to MySQL

2009-09-12 Thread Dima Malkov
(I don't know English well) Use Debian 5 Lenny -32, Gambas 2.7 from repository. I develop an account program for russians users. It must work with cyrillic correct. I have made MySQL5 (default UTF8) database with direct CHARACTER SET UTF8 option, tables with direct CHARACTER SET UTF8 option. Then

Re: [Gambas-user] Profiler for Gambas projects

2009-09-12 Thread Jussi Lahtinen
Computers are much faster, Still your program can run slowly! compilers are more optimizing, Gambas compiler do not optimize at all. analisys of the task and experience tell what to do - better than a profiler. Not true at all. That's almost always opposite! This was clearly stated

Re: [Gambas-user] Profiler for Gambas projects

2009-09-12 Thread Jussi Lahtinen
I must add this also... Profiler is like debugger, if you know where the error is you don't need debugger, but many times you don't! Same thing with profiler, if you know where the bottleneck is you don't need profiler, but many times you don't! Jussi On Sat, Sep 12, 2009 at 15:39, Jussi

Re: [Gambas-user] Slider problem?

2009-09-12 Thread Ron_1st
On Saturday 12 September 2009, Doriano Blengino wrote: I didn't change the behaviour of gb.qt because of gb.gtk. Mouse events must be always raised, whatever the value of the Enabled property.       Why? Why should mouse events be always raised? What if the rightmouse button has a menu

Re: [Gambas-user] Check if a program is already started

2009-09-12 Thread Jussi Lahtinen
Not very elegant, but works: Dim sOutput As String Exec [pgrep, -f, -l, NameOfYourProgram.gambas] Wait To sOutput If Split(Trim$(sOutput), gb.NewLine).Count 1 Then 'Allready running EndIf Jussi On Sat, Sep 12, 2009 at 15:50, Johny Provoost johny.provo...@skynet.be wrote: Hi, Is there

Re: [Gambas-user] intel i7 - parallel processing

2009-09-12 Thread Jussi Lahtinen
I have found problems with multi-threading, not so much because of gambas. But how to spilt a task for multi-threading! It would be interesting to know what solutions people has invent. Jussi On Sat, Sep 12, 2009 at 02:25, nando nand...@nothingsimple.com wrote: I run simultaneously multiple

Re: [Gambas-user] Slider problem?

2009-09-12 Thread Benoît Minisini
On Saturday 12 September 2009, Doriano Blengino wrote: I didn't change the behaviour of gb.qt because of gb.gtk. Mouse events must be always raised, whatever the value of the Enabled property. Why? Why should mouse events be always raised? What if the rightmouse button has a menu

Re: [Gambas-user] Application_mousedown() + Application_keypress() ?

2009-09-12 Thread Benoît Minisini
I'm trying to get an application-wide mouse down event to register. I found that when I do a Form_mousedown() it only triggers when you click on an empty part of the form, not when you're clicking on any type of control. I'm looking for something that will trigger whenever you hit the mouse

Re: [Gambas-user] How to crash the IDE

2009-09-12 Thread Benoît Minisini
Hi, On 2.15.0 . Editing a form select the Background change feature, select Free colour and write into the HEX colour: HDFDFFF -- Type mismatch Wanted Integer got Null Instead FColourChooser.txtHexa_Change.372 ...and IDE dies. Regards Pino It is fixed in

Re: [Gambas-user] a IDE-Bug in 2.16.0 rev 2323

2009-09-12 Thread Benoît Minisini
Am Freitag, den 11.09.2009, 13:34 +0200 schrieb Benoît Minisini: Salut Benoit, [OperatingSystem] OperatingSystem=Linux KernelRelease=2.6.24-24-generic DistributionVendor=ubuntu DistributionRelease=Ubuntu 8.04.3 LTS [System] CPUArchitecture=i686 TotalRam=506932

Re: [Gambas-user] Check if a program is already started

2009-09-12 Thread Jesus Guardon
Just another way: PUBLIC FUNCTION pidOf(program AS String) AS Boolean 'checks if a program is running DIM gotpid AS String = DIM running AS Boolean = FALSE TRY SHELL pidof program TO gotpid IF gotpid THEN running = TRUE ELSE running = FALSE

Re: [Gambas-user] Slider problem?

2009-09-12 Thread Ron_1st
On Saturday 12 September 2009, Benoît Minisini wrote: On Saturday 12 September 2009, Doriano Blengino wrote: I didn't change the behaviour of gb.qt because of gb.gtk. Mouse events must be always raised, whatever the value of the Enabled property. Why? Why should mouse events

[Gambas-user] Form_Resize

2009-09-12 Thread Charlie Reinl
Salut, is that my, or a general problem, on gambas2 2.16 I can make forms bigger, but not smaller...or did I miss something ? That I remarked on my White-A4-PalmTop for Debug-Watch-Windows but now I find that on a form in the project (see example). -- Amicalment Charlie firstTry-0.0.1.tar.gz

Re: [Gambas-user] Profiler for Gambas projects

2009-09-12 Thread Doriano Blengino
Jussi Lahtinen ha scritto: I must add this also... Profiler is like debugger, if you know where the error is you don't need debugger, but many times you don't! Same thing with profiler, if you know where the bottleneck is you don't need profiler, but many times you don't! I don't know

Re: [Gambas-user] Form_Resize

2009-09-12 Thread Benoît Minisini
Salut, is that my, or a general problem, on gambas2 2.16 I can make forms bigger, but not smaller...or did I miss something ? That I remarked on my White-A4-PalmTop for Debug-Watch-Windows but now I find that on a form in the project (see example). This always behaved like that: modal

Re: [Gambas-user] Workspace and scrollbars

2009-09-12 Thread Benoît Minisini
Good morning to all, is it possible to use scrollbars with workspace when a form is bigger than visible screen area? You can put all your form contents inside a ScrollView before putting the form inside the workspace. -- Benoît Minisini

Re: [Gambas-user] Problem with UTF-8 in Gambas-connection to MySQL

2009-09-12 Thread Benoît Minisini
(I don't know English well) Use Debian 5 Lenny -32, Gambas 2.7 from repository. I develop an account program for russians users. It must work with cyrillic correct. I have made MySQL5 (default UTF8) database with direct CHARACTER SET UTF8 option, tables with direct CHARACTER SET UTF8