Re: [Lazarus] Fastest way to draw

2010-05-22 Thread Brad Campbell
Reimar Grabowski wrote: AggLCLCanvas was taking 30ms just to do a clear. Using a filled rectangle with the desired background colour took only 10ms by comparison. Did you report this bug? Not yet, no. I need time to prepare some solid test cases. RGBBitmap32 : 19ms / frame but for jus

Re: [Lazarus] Error: Identifier not found "CreateaNewIsland1Click"

2010-05-22 Thread Vannus
On 23 May 2010 00:56, Peter E Williams < foss.game.pascal.develo...@iinet.net.au> wrote: > Hi All, > > I am now getting an identifier not found error. In the error messages > window, if I select Help the lazarus cannot find the local HTML help > file. I cannot find my way around the lazarus websit

Re: [Lazarus] My Island_maker D5/7 port test code - Syntax error, "identifier" expected but "BEGIN" found

2010-05-22 Thread Vannus
> HTH who? Me or the OP ;) > sorry - i thought you were the OP! > > The minimum that you have mentioned is already included in the OP's > program file, but his uses clause is improperly terminated. > my bad, i ddin't realise the program file was there, was expecting .lpr - V -- __

[Lazarus] Error: Identifier not found "CreateaNewIsland1Click"

2010-05-22 Thread Peter E Williams
Hi All, I am now getting an identifier not found error. In the error messages window, if I select Help the lazarus cannot find the local HTML help file. I cannot find my way around the lazarus website. :-( >file set_max.pas Uses main_island;

Re: [Lazarus] Hook TComponent streaming system

2010-05-22 Thread Luiz Americo Pereira Camara
Mattias Gaertner escreveu: On Sat, 22 May 2010 18:33:47 -0300 Luiz Americo Pereira Camara wrote: Thanks. But i think that won't help me. I'm creating a instance of a generic TForm (see code below) and than setting the properties after the call to constructor. I would need that the proper

[Lazarus] The default local HTML Help path is blank -- what should it be?

2010-05-22 Thread Peter E Williams
Hi All, I asked this question in my previous post but in hindsight I should have posted it as a separate question. > Selecting Help from the message window gives this error. The path to > the Help Help was blank even tho' it has apparently been installed. I > don't know where to set the path to

Re: [Lazarus] Find In Files

2010-05-22 Thread Lee Jenkins
Mattias Gaertner wrote: On Sat, 22 May 2010 11:08:27 -0400 Lee Jenkins wrote: Is there a way to instruct the IDE to search packages associated with the current project to be searched as well as files directly belonging to the project with "Find In Files"? No. But the code browser can search

Re: [Lazarus] Hook TComponent streaming system

2010-05-22 Thread Mattias Gaertner
On Sat, 22 May 2010 18:33:47 -0300 Luiz Americo Pereira Camara wrote: > Michael Van Canneyt escreveu: > > > > > > On Sat, 22 May 2010, Luiz Americo Pereira Camara wrote: > > > >> I'd like to set some properties of a TComponent(TForm) through RTTI > >> before TComponent.Loaded is called. > >> > >

Re: [Lazarus] Hook TComponent streaming system

2010-05-22 Thread Luiz Americo Pereira Camara
Michael Van Canneyt escreveu: On Sat, 22 May 2010, Luiz Americo Pereira Camara wrote: I'd like to set some properties of a TComponent(TForm) through RTTI before TComponent.Loaded is called. After a call to TMyForm.Create, the component is initiated through the streaming system that calls L

Re: [Lazarus] WebLaz Apache

2010-05-22 Thread Marcos Douglas
On Sat, May 22, 2010 at 4:13 PM, ABorka wrote: > > We write all code as if it were an Apache module (or FCGI), even if we > compile it as CGI at the moment. > You just need to take care of the fact that web modules already in the > memory can be reused for following requests (in case of Apache mod

Re: [Lazarus] Find In Files

2010-05-22 Thread Mattias Gaertner
On Sat, 22 May 2010 11:08:27 -0400 Lee Jenkins wrote: > > Is there a way to instruct the IDE to search packages associated with the > current project to be searched as well as files directly belonging to the > project with "Find In Files"? No. But the code browser can search in all used packag

[Lazarus] fpWeb Apache2 Windows

2010-05-22 Thread Leonardo Rame
Hi, I'm trying to do some tests of fpWeb on Windows Seven 64bits using Apache2 (32bits). The first test I did was compiling the HelloWorld sample from c:\lazarus\components\fpweb \demo\helloworld\cgi and trying to execute it, but it doesn't work (500 Internal server error). This is what my Apa

Re: [Lazarus] My Island_maker D5/7 port test code - Syntax error, "identifier" expected but "BEGIN" found

2010-05-22 Thread patspiper
On 05/22/2010 02:33 PM, Vannus wrote: uses Forms, Unit1 in 'set_max.pas' {Form1}, Unit2 in 'main_island.pas' {Form2}; <-- semi colon ??? wheres 'program' ? where 'begin' & 'end' and the coide in between ? at the minimum there needs to be:- program hello; begin // do

Re: [Lazarus] WebLaz Apache

2010-05-22 Thread ABorka
On 5/22/2010 08:27, Marcos Douglas wrote: (...) However, any time the need arises, we can just recompile the app as an Apache module in minutes and us that. The web module source code is exactly the same for CGI programs and Apache mods, so no changes needed for the recompile at all. No changes

Re: [Lazarus] Hook TComponent streaming system

2010-05-22 Thread Michael Van Canneyt
On Sat, 22 May 2010, Luiz Americo Pereira Camara wrote: I'd like to set some properties of a TComponent(TForm) through RTTI before TComponent.Loaded is called. After a call to TMyForm.Create, the component is initiated through the streaming system that calls Loaded. Is there a way to hook

Re: [Lazarus] PRADO - PHP in Delphi/Lazarus style

2010-05-22 Thread Bee Jay
On 22 Mei 2010, at 06:15, Vannus wrote: > Might interest anyone wanting Delphi/Lazarus approach in any PHP stuff they > are tackling. How about this? http://www.youtube.com/watch?v=ZVUMW0V9nGs ;) -Bee- -- ___ Lazarus mailing list Lazarus@lists.la

[Lazarus] Hook TComponent streaming system

2010-05-22 Thread Luiz Americo Pereira Camara
I'd like to set some properties of a TComponent(TForm) through RTTI before TComponent.Loaded is called. After a call to TMyForm.Create, the component is initiated through the streaming system that calls Loaded. Is there a way to hook this streaming system so i can change the properties befor

Re: [Lazarus] Fastest way to draw

2010-05-22 Thread Paul Breneman
Hi Brad, ... Just the firmware. I'm using the Parallax PropScope. 25M samples/sec. 2 Channels of 10 bit and 4 bits of Logic input. http://www.parallax.com/Store/Microcontrollers/PropellerTools/tabid/143/ProductID/586/List/0/Default.aspx?SortField=ProductName,ProductName ... This is a USB

Re: [Lazarus] Fastest way to draw

2010-05-22 Thread Reimar Grabowski
On Sat, 22 May 2010 19:28:20 +0800 Brad Campbell wrote: > TImage.Canvas : 200ms / frame > AggLCLCanvas : 90ms / frame > AggLCLCanvas was taking 30ms just to do a clear. Using a filled rectangle > with the desired > background colour took only 10ms by comparison. Did you report this bug? > R

Re: [Lazarus] WebLaz Apache

2010-05-22 Thread Marcos Douglas
On Thu, May 20, 2010 at 3:21 PM, ABorka wrote: > (...) > However, any time the need arises, we can just recompile the app as an > Apache module in minutes and us that. > The web module source code is exactly the same for CGI programs and Apache > mods, so no changes needed for the recompile at all

Re: [Lazarus] WebLaz Apache

2010-05-22 Thread Lee Jenkins
ABorka wrote: Did. But in the current economy the traffic is down, and because of CGI doesn't require an Apache restart when anything changes in the app, we are just using CGI at the moment (with HTML templates and template tags using fpTemplate). Did not see speed difference between the two. H

[Lazarus] Find In Files

2010-05-22 Thread Lee Jenkins
Is there a way to instruct the IDE to search packages associated with the current project to be searched as well as files directly belonging to the project with "Find In Files"? Thanks, -- Warm Regards, Lee -- ___ Lazarus mailing list Lazarus@list

Re: [Lazarus] PRADO - PHP in Delphi/Lazarus style

2010-05-22 Thread Andrew Brunner
FYI: FPC has a web component already. The problem with these things is that AJAX apps require back-end server tie-ins. A binding technology would be required to interface with Apache and other Web services to make this work. I think JS with prototyping would be essential in converting the LFM an

Re: [Lazarus] New AutoSize issue, Attn Paul

2010-05-22 Thread faber
OK. I try to prepare that code. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] New AutoSize issue, Attn Paul

2010-05-22 Thread Paul Ishenin
22.05.2010 20:48, faber wrote: I was not able to do small application where the problem occurred. What if you leave only 1 form with that 4 grids and a button? This is quite a big commercial project so the source code is the problem. The binary ver. is enough ? We need small 1 form application.

Re: [Lazarus] New AutoSize issue, Attn Paul

2010-05-22 Thread faber
> What can prevent a window to appear? >> > I need a test application to look what could that be. > > I was not able to do small application where the problem occurred. This is quite a big commercial project so the source code is the problem.The binary ver. is enough ? or I could try truncate the c

Re: [Lazarus] Suggestion: Remove GTK1 support from IDE and LCL.

2010-05-22 Thread Felipe Monteiro de Carvalho
On Sat, May 22, 2010 at 1:45 PM, Mark Morgan Lloyd wrote: > Everybody makes the point that it's degrading and deprecated, but (as of > 0.28.3) it still appears at the top of the list without a health warning, > while v2 is marked beta. I get the impression that's not the message that > the develop

Re: [Lazarus] WNCE 5 not Supported

2010-05-22 Thread Robin Hoo
2010/5/22 Felipe Monteiro de Carvalho > Hello, > > Please try a snapshot of today or newer. > > 20100504 is very near the day I added the static link to SetWIndowOrg > and GetWindowOrg, that's why I think this is the problem. Yesterday I > made the link dynamic, which should solve it, if this is

Re: [Lazarus] New AutoSize issue, Attn Paul

2010-05-22 Thread Paul Ishenin
21.05.2010 19:25, Mattias Gärtner wrote: Paul, do you have seen something like that before? I had something similar with TPageControl but that was because of we removed WS_VISIBLE flags on control creation and set visibility now after the CreateHandle call. This bug was fixed for TPageControl.

Re: [Lazarus] IDE layouts

2010-05-22 Thread Hans-Peter Diettrich
Vannus schrieb: to handle screen sizes maybe layouts should allow 'absolute' (1280 pixels) or 'relative' (100%) positioning/sizing? A nice idea. It may lead to strange results, when restoring a layout from a 600x800 screen on a multi-monitor desktop, regardless of whether it's absolute or rel

Re: [Lazarus] Suggestion: Remove GTK1 support from IDE and LCL.

2010-05-22 Thread Mark Morgan Lloyd
Graeme Geldenhuys wrote: Last time (some months ago) when I tried to run Lazarus IDE via a remote X11 session, the IDE was totally unusable (extremely slow), yet other GTK2 applications ran fine. So I don't think it was a GTK2 issue, but rather a LCL-GTK2 issue. GTK v1 and v2 both looking OK n

Re: [Lazarus] My Island_maker D5/7 port test code - Syntax error, "identifier" expected but "BEGIN" found

2010-05-22 Thread Vannus
> uses > Forms, > Unit1 in 'set_max.pas' {Form1}, > Unit2 in 'main_island.pas' {Form2}; <-- semi colon > > ??? wheres 'program' ? where 'begin' & 'end' and the coide in between ? at the minimum there needs to be:- program hello; begin // do something ie:- writeln('Hello'); end. which i

Re: [Lazarus] Fastest way to draw

2010-05-22 Thread Brad Campbell
Duncan Parsons wrote: There's GR32 as well, which now has FPC/Laz compatibility. http://www.graphics32.org/ Overall, the best way to do that sort of thing is to have a bitmap in memory (either loaded from a file, or drawn on application start) then when doing what's needed copy/draw the backgro

Re: [Lazarus] New AutoSize issue

2010-05-22 Thread faber
> > What is "Windows standard composition"? > > As standard I mean theme : "Windows XP". Works good on theme "Windows Classic" even if autosize delay occurs. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.

Re: [Lazarus] New AutoSize issue

2010-05-22 Thread Mattias Gaertner
On Fri, 21 May 2010 13:22:13 +0200 faber wrote: > WOW. I found that Windows standard composition is the problem. When I switch > to Classic Windows on XP then everything is OK. What is "Windows standard composition"? Mattias -- ___ Lazarus mailing li

Re: [Lazarus] My Island_maker D5/7 port test code - Syntax error, "identifier" expected but "BEGIN" found

2010-05-22 Thread patspiper
On 05/22/2010 02:21 AM, Peter E Williams wrote: uses Forms, Unit1 in 'set_max.pas' {Form1}, Unit2 in 'main_island.pas' {Form2}, uses Forms, Unit1 in 'set_max.pas' {Form1}, Unit2 in 'main_island.pas' {Form2}; <-- semi colon -- ___

Re: [Lazarus] My Island_maker D5/7 port test code - Error: Incompatible type for arg no. 1: Got "TTranslateString", expected "QWord"

2010-05-22 Thread Alberto Narduzzi
Hi, the two hints, you may just ignore them; they just inform you that within the event handler you are not using the parameter. Then, for the errors: max_y := inttostr( max_y_param.text ); // ^^^ it is a TEdit inttostr _gets_ an integer as parameter and produ

Re: [Lazarus] IDE layouts

2010-05-22 Thread Michael Van Canneyt
On Sat, 22 May 2010, Mattias Gaertner wrote: On Sat, 22 May 2010 09:29:05 +0200 Sven Barth wrote: Am 22.05.2010 06:15, schrieb Reimar Grabowski: On Fri, 21 May 2010 21:26:22 +0200 Hans-Peter Diettrich wrote: B) With multiple editor windows, the layout includes the files, open in an edit

Re: [Lazarus] IDE layouts

2010-05-22 Thread Mattias Gaertner
On Sat, 22 May 2010 09:29:05 +0200 Sven Barth wrote: > Am 22.05.2010 06:15, schrieb Reimar Grabowski: > > On Fri, 21 May 2010 21:26:22 +0200 > > Hans-Peter Diettrich wrote: > > > >> B) With multiple editor windows, the layout includes the files, open in > >> an editor window. > > > > Can you exp

Re: [Lazarus] Fastest way to draw

2010-05-22 Thread Brad Campbell
Felipe Monteiro de Carvalho wrote: Hello, On Fri, May 21, 2010 at 3:30 PM, Brad Campbell wrote: I'm experimenting with an Oscilloscope at the moment. Are you implementing the hardware too? Just the firmware. I'm using the Parallax PropScope. 25M samples/sec. 2 Channels of 10 bit and 4 bit

Re: [Lazarus] IDE layouts

2010-05-22 Thread Sven Barth
Am 22.05.2010 06:15, schrieb Reimar Grabowski: On Fri, 21 May 2010 21:26:22 +0200 Hans-Peter Diettrich wrote: B) With multiple editor windows, the layout includes the files, open in an editor window. Can you explain why? IMHO layout and content should be separated. R. But the editor windo

Re: [Lazarus] Fastest way to draw

2010-05-22 Thread Felipe Monteiro de Carvalho
Hello, On Fri, May 21, 2010 at 3:30 PM, Brad Campbell wrote: > I'm experimenting with an Oscilloscope at the moment. Are you implementing the hardware too? > So there are _lots_ of little fiddly bits to draw (about 1200 line segments > per refresh). > > There has to be a faster way to get data

Re: [Lazarus] WNCE 5 not Supported

2010-05-22 Thread Felipe Monteiro de Carvalho
Hello, Please try a snapshot of today or newer. 20100504 is very near the day I added the static link to SetWIndowOrg and GetWindowOrg, that's why I think this is the problem. Yesterday I made the link dynamic, which should solve it, if this is the problem. -- Felipe Monteiro de Carvalho -- __