Re: [Gambas-user] Draw.Begin/End execution time

2012-06-09 Thread Adrien Prokopowicz
Le dimanche 10 juin 2012 00:32:16 Benoît Minisini a écrit : > Le 10/06/2012 00:02, Adrien Prokopowicz a écrit : > > I have another little question. > > > > In the project I sent you, I added two lines after FillRect() : > >Draw.Text("Gambas", 50, 50) > >Draw.Text("Gambas", 100, 100) > > >

Re: [Gambas-user] Draw.Begin/End execution time

2012-06-09 Thread Benoît Minisini
Le 10/06/2012 00:02, Adrien Prokopowicz a écrit : > I have another little question. > In the project I sent you, I added two lines after FillRect() : > >Draw.Text("Gambas", 50, 50) >Draw.Text("Gambas", 100, 100) > > The first takes around 2 msec, the second only 120usec. > Is there any font

Re: [Gambas-user] Draw.Begin/End execution time

2012-06-09 Thread Adrien Prokopowicz
Le samedi 9 juin 2012 23:24:58 vous avez écrit : > Le samedi 9 juin 2012 22:46:46 Benoît Minisini a écrit : > > >> Here is a little test project. > > >> > > >> And I just noticed that there isn't this problem with gb.gtk. So for > > >> me it's a > > >> bug in gb.qt4. > > > > > > On my machine, Dr

Re: [Gambas-user] rev. 4815 - "Extern" doesn't work ?

2012-06-09 Thread Ru Vuott
Mooolto bene, Benoît ! Very good. Now, it works. Bye Vuo --- Sab 9/6/12, Benoît Minisini ha scritto: > Da: Benoît Minisini > Oggetto: Re: [Gambas-user] rev. 4815 - "Extern" doesn't work ? > A: "mailing list for gambas users" > Data: Sabato 9 giugno 2012, 16:04 > Le 09/06/2012 15:53,

Re: [Gambas-user] Draw.Begin/End execution time

2012-06-09 Thread Adrien Prokopowicz
Le samedi 9 juin 2012 22:46:46 Benoît Minisini a écrit : > >> Here is a little test project. > >> > >> And I just noticed that there isn't this problem with gb.gtk. So for > >> me it's a > >> bug in gb.qt4. > > > > On my machine, Draw.Begin with gb.gtk takes about 120 micro-seconds the > > first

Re: [Gambas-user] Draw.Begin/End execution time

2012-06-09 Thread Benoît Minisini
>> Here is a little test project. >> >> And I just noticed that there isn't this problem with gb.gtk. So for >> me it's a >> bug in gb.qt4. >> > > On my machine, Draw.Begin with gb.gtk takes about 120 micro-seconds the > first time it is called, 50 us the next times. With gb.qt4, it takes > about 3

Re: [Gambas-user] Draw.Begin/End execution time

2012-06-09 Thread Benoît Minisini
Le 09/06/2012 21:05, Adrien Prokopowicz a écrit : > Le samedi 9 juin 2012 20:45:49 Benoît Minisini a écrit : >> Le 09/06/2012 19:41, Adrien Prokopowicz a écrit : >>> Hi all, >>> >>> in my project I have a cached DrawArea that I need to redraw each time it >>> is resized. My code is like this : >>>

Re: [Gambas-user] Draw.Begin/End execution time

2012-06-09 Thread Adrien Prokopowicz
Le samedi 9 juin 2012 20:45:49 Benoît Minisini a écrit : > Le 09/06/2012 19:41, Adrien Prokopowicz a écrit : > > Hi all, > > > > in my project I have a cached DrawArea that I need to redraw each time it > > is resized. My code is like this : > > > > Public Sub RefershDrawArea() > > > >Draw.B

Re: [Gambas-user] Draw.Begin/End execution time

2012-06-09 Thread Benoît Minisini
Le 09/06/2012 19:41, Adrien Prokopowicz a écrit : > Hi all, > > in my project I have a cached DrawArea that I need to redraw each time it is > resized. My code is like this : > > Public Sub RefershDrawArea() > >Draw.Begin($drawArea) > >'Drawing methods here ... > >Draw.End > > End > > T

Re: [Gambas-user] Window position error on applying stored "geometry"

2012-06-09 Thread RICHARD WALKER
> > Gambas 3.2 will be released soon, so maybe it is not worth it? > > The bug was in gb.gtk. I misunderstood the GDK functions about monitors > & screens and how the full screen size must be computed. Now gb.gtk and > gb.qt4 should behave the same. I think I might agree that waiting for the 3.2 r

[Gambas-user] Draw.Begin/End execution time

2012-06-09 Thread Adrien Prokopowicz
Hi all, in my project I have a cached DrawArea that I need to redraw each time it is resized. My code is like this : Public Sub RefershDrawArea() Draw.Begin($drawArea) 'Drawing methods here ... Draw.End End That works perfectly, but when I launch the profiler, he tells me that the Dr

[Gambas-user] GB.JIT Crashes

2012-06-09 Thread Sebastian Kulesz
Hi! I'm getting a crash when I place the fast keyword on top of a module. The output: 19PushClassExpression gbx3: jit.h:145: virtual llvm::Value* Expression::codegen_get_value(): Assertion `false && "codegen_get_value not done yet for this type"' failed. If you need the source let me know! Thank

Re: [Gambas-user] Issue 255 in gambas: TextBox_LostFocus event bug?

2012-06-09 Thread gambas
Comment #3 on issue 255 by sot...@gmail.com: TextBox_LostFocus event bug? http://code.google.com/p/gambas/issues/detail?id=255 It is fixed, thanks! -- Live Security Virtual Conference Exclusive live event will cover all

[Gambas-user] Issue 256 in gambas: When executing a project on a read-only with profiling enabled the program crashes

2012-06-09 Thread gambas
Status: New Owner: Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 256 by sebi...@gmail.com: When executing a project on a read-only with profiling enabled the program crashes http://code.google.com/p/gambas/issues/detail?id=256 If I sta

Re: [Gambas-user] Issue 255 in gambas: TextBox_LostFocus event bug?

2012-06-09 Thread gambas
Updates: Status: Fixed Comment #2 on issue 255 by benoit.m...@gmail.com: TextBox_LostFocus event bug? http://code.google.com/p/gambas/issues/detail?id=255 It should be fixed in revision #4818. Can you confirm? ---

Re: [Gambas-user] C like #include for Gambas

2012-06-09 Thread Jussi Lahtinen
OK, while that solution might work, it sucks. Instead see new attachment (IncludeProblem-2.0.tar.gz). Jussi On 9 June 2012 16:57, Jussi Lahtinen wrote: > Thinking more closely your problem, I think I know what you need. > > You try to avoid writing *many* lines like this; > sParameterNameArra

Re: [Gambas-user] Issue 255 in gambas: TextBox_LostFocus event bug?

2012-06-09 Thread gambas
Updates: Status: Accepted Labels: -Version Version-TRUNK Comment #1 on issue 255 by benoit.m...@gmail.com: TextBox_LostFocus event bug? http://code.google.com/p/gambas/issues/detail?id=255 (No comment was entered for this change.) --

Re: [Gambas-user] New feature in Gambas 3

2012-06-09 Thread Jussi Lahtinen
Thanks! 512 is almost enough, so, I'm sure 4096 is more than enough for my purposes. Jussi On 9 June 2012 16:41, Benoît Minisini wrote: > Le 05/06/2012 21:06, Jussi Lahtinen a écrit : > > Yes. > > My project is pretty huge. > > > > Jussi > > > > OK. In revision #4816, you can define the GB_PR

Re: [Gambas-user] C like #include for Gambas

2012-06-09 Thread Jussi Lahtinen
Sorry, maybe I need to re-read! Jussi On 9 June 2012 18:02, Jussi Lahtinen wrote: > Bruce, please re-read. I'm against idea of #include being new keyword. > > Jussi > > > > > On 9 June 2012 17:00, Bruce wrote: > >> On Sat, 2012-06-09 at 13:51 +0100, jm wrote: >> > On Sat, 2012-06-09 at 02:45

Re: [Gambas-user] C like #include for Gambas

2012-06-09 Thread Jussi Lahtinen
Bruce, please re-read. I'm against idea of #include being new keyword. Jussi On 9 June 2012 17:00, Bruce wrote: > On Sat, 2012-06-09 at 13:51 +0100, jm wrote: > > On Sat, 2012-06-09 at 02:45 +0300, Jussi Lahtinen wrote: > > > Maybe I'm just too tired, but I don't understand the point. > > Jus

Re: [Gambas-user] Configuration issue with gb.desktop

2012-06-09 Thread tobi
On Sat, 09 Jun 2012, Benoît Minisini wrote: > Le 06/06/2012 20:12, tobi a écrit : > > Hi, > > > > I just moved to a new machine and tried to compile gambas3 again. On make, > > I get with gb.desktop: > > > > make[5]: Entering directory `/home/woodap/sources/gambas3/gb.desktop/src' > > /bin/sh ../l

Re: [Gambas-user] rev. 4815 - "Extern" doesn't work ?

2012-06-09 Thread Benoît Minisini
Le 09/06/2012 15:53, Benoît Minisini a écrit : > Le 09/06/2012 14:06, Ru Vuott a écrit : >> I feel that I can no longer invoke external functions contained in >> libraries. >> In fact all my programs, that contain calls to external functions by >> Extern, now they return to me - on the line where t

Re: [Gambas-user] C like #include for Gambas

2012-06-09 Thread Bruce
On Sat, 2012-06-09 at 13:51 +0100, jm wrote: > On Sat, 2012-06-09 at 02:45 +0300, Jussi Lahtinen wrote: > > Maybe I'm just too tired, but I don't understand the point. Jussi, maybe I'm just too old as well as tired, but I can't grasp the point of taking an object oriented language and trying to ja

Re: [Gambas-user] C like #include for Gambas

2012-06-09 Thread Jussi Lahtinen
Thinking more closely your problem, I think I know what you need. You try to avoid writing *many* lines like this; sParameterNameArray = NEW String[MAXIMUM_CSV_PARAMETERS] That is caused by broken object design, usually because you need to use old code which had different approach than OO. I have

Re: [Gambas-user] rev. 4815 - "Extern" doesn't work ?

2012-06-09 Thread Benoît Minisini
Le 09/06/2012 14:06, Ru Vuott a écrit : > I feel that I can no longer invoke external functions contained in libraries. > In fact all my programs, that contain calls to external functions by Extern, > now they return to me - on the line where there is the external function call > - the error: "Il

Re: [Gambas-user] Configuration issue with gb.desktop

2012-06-09 Thread Benoît Minisini
Le 06/06/2012 20:12, tobi a écrit : > Hi, > > I just moved to a new machine and tried to compile gambas3 again. On make, I > get with gb.desktop: > > make[5]: Entering directory `/home/woodap/sources/gambas3/gb.desktop/src' > /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I

Re: [Gambas-user] Gridview keypress question

2012-06-09 Thread Benoît Minisini
Le 06/06/2012 13:29, Richard Terry a écrit : > Hi List, > > I've got a grid with several columns. > > If I use the arrow keys, then the grid focus moves up/down or to the > next/previous column. > > I want to over-ride this keypress behaviour, but can't manage it. > > If iI even try and detect a ke

Re: [Gambas-user] Window position error on applying stored "geometry"

2012-06-09 Thread Benoît Minisini
Le 08/06/2012 03:34, RICHARD WALKER a écrit : > That certainly took longer than it should, but I have finally managed > to get revision #4809 built and manually installed (at least I have a > menu entry and the desktop icon for the ide has revealed itself) and I > have tested my test-bed project in

Re: [Gambas-user] New feature in Gambas 3

2012-06-09 Thread Benoît Minisini
Le 05/06/2012 21:06, Jussi Lahtinen a écrit : > Yes. > My project is pretty huge. > > Jussi > OK. In revision #4816, you can define the GB_PROFILE_MAX environment variable with the maximum profile file size, in megabytes. The maximum value is 4096 Mb. I hope it will be enough! Regards, -- Ben

Re: [Gambas-user] C like #include for Gambas

2012-06-09 Thread Jussi Lahtinen
> C thrives on #include without showing signs of design problems. > Yes, I know, I wasn't talking about C, I was talking about object oriented language, Gambas. > Tens of thousands of external lines of code can be pulled in with > a dozen #include statements, leaving the code completely manage

Re: [Gambas-user] C like #include for Gambas

2012-06-09 Thread jm
On Sat, 2012-06-09 at 02:45 +0300, Jussi Lahtinen wrote: > Maybe I'm just too tired, but I don't understand the point. > > If you have huge program that needs to be expended just a little bit, > then why don't you just add new class/module/piece of code/etc which holds > that new thing to the prog

Re: [Gambas-user] C like #include for Gambas

2012-06-09 Thread Jussi Lahtinen
Maybe you need to use Export? http://gambasdoc.org/help/lang/export?v3 Jussi On 9 June 2012 01:16, jm wrote: > C like #include files for gambas? > > Sounds a bit harsh I know, but is it possible to add a feature > that functions like a C #include? > > The logic behind is to address programs t

[Gambas-user] rev. 4815 - "Extern" doesn't work ?

2012-06-09 Thread Ru Vuott
I feel that I can no longer invoke external functions contained in libraries. In fact all my programs, that contain calls to external functions by Extern, now they return to me - on the line where there is the external function call - the error: "Illegal function" ! :-O Can you control it ? Re

Re: [Gambas-user] C like #include for Gambas

2012-06-09 Thread fire666
well in gambas you can include differently afaik try turning on and off: project --> properties --> components if you don't have some turned on you can't do some stuff jm-24 wrote: > > C like #include files for gambas? > > Sounds a bit harsh I know, but is it possible to add a feature > that