Re: [lazarus] Lazarus on OS X
Damien Gerard wrote: I have just download fpc 2.2.1 and the lastest snapshot for OS X. I launch Lazarus and it works fine (however gtk1 is ugly ^^) but I can not launch an empty application. I've got the following message : Unable to find wslclasses.pp, check in path Projects-Compiler Options-Search Paths - Other Unit files You got this when compiling ? How did you create your new project ? In fact, in order to compile an empty project, I have to add by hand all needed paths into the fpc.cfg. I did not find such a thing in the wiki. Where I am wrong ? For compilation of your apps, you don't need to add paths to lazarus or LCl sources in your fpc.cfg. It only needs a path to the LCL unit dirs. (and that only if you compile form the commandline) _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] is laz 9.24 fixes on svn ready to be used?
Correct. The fixes branch, in this moment contains 0.9.24 (r. 12749 in trunk branch, 12771 in the fixes branch, but the only change is making it 0.9.24.1) + patches 12756, 12757 12760 12762 12797 12816 12831 12825 12946 from trunk. (I hope I didn't mistype too many, but an svn log -r 12749:HEAD will tell you the truth). Can we have more fixes from 9.25 applied to 9.24.1? :-D -Bee- has Bee.ography at: http://beeography.wordpress.com _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] Code Templates issue
Hi, I'm not sure if I added this or if it's part of Lazarus's default Code Templates. [result | Fix case - Result] $(AttributesStart) AutoOnSpace=true $(AttributesEnd) Result Anyway the issue is still the same, no matter who added that template. The Code Templates are not sensitive enough. By that I mean the following: If it type: ModalResultspace The editor thinks it's the 'Fix case - Result' code template and prevents me from typing a space. I have to use the Right Arrow key to move away form the ending 't' so I can continue typing ':= .'. I'm using Lazarus 0.9.25 r12977M i386-linux-gtk Regards, - Graeme - ___ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/ _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] Lazarus on OS X
I have just download fpc 2.2.1 and the lastest snapshot for OS X. I launch Lazarus and it works fine (however gtk1 is ugly ^^) but I can not launch an empty application. I've got the following message : Unable to find wslclasses.pp, check in path Projects-Compiler Options- Search Paths - Other Unit files In fact, in order to compile an empty project, I have to add by hand all needed paths into the fpc.cfg. I did not find such a thing in the wiki. Where I am wrong ? -- Damien Gerard [EMAIL PROTECTED] _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Ideas about Delphi's Roadmap
Razvan Adrian Bogdan wrote: they don't plan 64 bit support and CrossPlatform I heard that when Borland brought out Kylix they used a new code generator to make it easier to implement non-x86 targets. Unfortunately since then the number of commercially-viable architectures has dropped dramatically, largely due to MS's overwhelming interest in Intel and AMD processors. If Borland had put everything they had into porting Kylix to POWER or SPARC- and got the relevant hardware vendors interested- they might have carved themselves a nice niche, as it it it's probably too late. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Lazarus on OS X
On Nov 26, 2007, at 10:29 AM, Marc Weustink wrote: Damien Gerard wrote: I have just download fpc 2.2.1 and the lastest snapshot for OS X. I launch Lazarus and it works fine (however gtk1 is ugly ^^) but I can not launch an empty application. I've got the following message : Unable to find wslclasses.pp, check in path Projects-Compiler Options-Search Paths - Other Unit files You got this when compiling ? How did you create your new project ? It is the new new project when you first launch Lazarus. The same with Project/ New In fact, in order to compile an empty project, I have to add by hand all needed paths into the fpc.cfg. I did not find such a thing in the wiki. Where I am wrong ? For compilation of your apps, you don't need to add paths to lazarus or LCl sources in your fpc.cfg. It only needs a path to the LCL unit dirs. (and that only if you compile form the commandline) Consequently, if you just install fpc-src, fpc then lazarus you can not compile a default new project (in my case). -- Damien Gerard [EMAIL PROTECTED] _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Lazarus on OS X
Damien Gerard schreef: On Nov 26, 2007, at 10:29 AM, Marc Weustink wrote: Damien Gerard wrote: I have just download fpc 2.2.1 and the lastest snapshot for OS X. I launch Lazarus and it works fine (however gtk1 is ugly ^^) but I can not launch an empty application. I've got the following message : Unable to find wslclasses.pp, check in path Projects-Compiler Options-Search Paths - Other Unit files You got this when compiling ? How did you create your new project ? It is the new new project when you first launch Lazarus. The same with Project/ New In fact, in order to compile an empty project, I have to add by hand all needed paths into the fpc.cfg. I did not find such a thing in the wiki. Where I am wrong ? For compilation of your apps, you don't need to add paths to lazarus or LCl sources in your fpc.cfg. It only needs a path to the LCL unit dirs. (and that only if you compile form the commandline) Consequently, if you just install fpc-src, fpc then lazarus you can not compile a default new project (in my case). I think there is some fpc - lazarus version conflict. Did you install both a new fpc and a new lazarus snapshot? Is the compiler in the environment options the new fpc compiler? Does the used fpc.cfg file point to the newly installed fpc unit directory? Vincent _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Code Templates issue
On Mon, 26 Nov 2007 12:21:18 +0200 Graeme Geldenhuys [EMAIL PROTECTED] wrote: Hi, I'm not sure if I added this or if it's part of Lazarus's default Code Templates. [result | Fix case - Result] $(AttributesStart) AutoOnSpace=true $(AttributesEnd) Result Anyway the issue is still the same, no matter who added that template. The Code Templates are not sensitive enough. By that I mean the following: If it type: ModalResultspace The editor thinks it's the 'Fix case - Result' code template and prevents me from typing a space. I have to use the Right Arrow key to move away form the ending 't' so I can continue typing ':= .'. I changed the default. Please test. Mattias _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Google's Android OS :)
Am Montag, den 26.11.2007, 08:28 +0100 schrieb willem: Marc Santhoff wrote: Did you find the .g file somewhere on the website? Or have you transformed it to antlr by yourself? I can't find it, even in the downloadable source archive of dgrok I didn't see anything like that. The grammar is in the file Grammar.yaml. I wrote a small pascal program to convert this file to a valid EBNF grammar, but i am not ready yet. I see, thank you. Marc _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Lazarus on OS X
On Nov 26, 2007, at 12:47 PM, Vincent Snijders wrote: Damien Gerard schreef: On Nov 26, 2007, at 10:29 AM, Marc Weustink wrote: Damien Gerard wrote: I have just download fpc 2.2.1 and the lastest snapshot for OS X. I launch Lazarus and it works fine (however gtk1 is ugly ^^) but I can not launch an empty application. I've got the following message : Unable to find wslclasses.pp, check in path Projects-Compiler Options-Search Paths - Other Unit files You got this when compiling ? How did you create your new project ? It is the new new project when you first launch Lazarus. The same with Project/ New In fact, in order to compile an empty project, I have to add by hand all needed paths into the fpc.cfg. I did not find such a thing in the wiki. Where I am wrong ? For compilation of your apps, you don't need to add paths to lazarus or LCl sources in your fpc.cfg. It only needs a path to the LCL unit dirs. (and that only if you compile form the commandline) Consequently, if you just install fpc-src, fpc then lazarus you can not compile a default new project (in my case). I think there is some fpc - lazarus version conflict. Did you install both a new fpc and a new lazarus snapshot? Is the compiler in the environment options the new fpc compiler? Does the used fpc.cfg file point to the newly installed fpc unit directory? It comes from a clean install since I recently reinstall my OS X with Leopard. But there is may be a conflict somewhere. With my friend locate I will try remove all files and try another shoot :) Vincent -- Damien Gerard [EMAIL PROTECTED] _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] SQLite 3 -- Capture FieldValues into a variable
Hi, I need to capture the FieldValues of a SQLite database into a string variable. If I do it: while not dsTest.EOF do begin DataToSend := DataToSend + dsTest.FieldValues['Code'] + '\' + dsTest.FieldValues['Name'] + '\' + dsTest.FieldValues['Address'] + '#'; dsTest.Next; end; I have got the next error message: Project raised exception class 'RunError(231)'. If I do it then works: while not dsTest.EOF do begin Cod := dsTest.FieldValues['Code']; Nam := dsTest.FieldValues['Name']; Addr := dsTest.FieldValues['Address']; DataToSend := DataToSend + Cod + '\' + Nam + '\' + Addr + '#'; dsTest.Next; end; But I have to declare three string variables (Cod, Nam and Addr). Can you help me?
Re: [lazarus] is laz 9.24 fixes on svn ready to be used?
Bee wrote: Correct. The fixes branch, in this moment contains 0.9.24 (r. 12749 in trunk branch, 12771 in the fixes branch, but the only change is making it 0.9.24.1) + patches 12756, 12757 12760 12762 12797 12816 12831 12825 12946 from trunk. (I hope I didn't mistype too many, but an svn log -r 12749:HEAD will tell you the truth). Can we have more fixes from 9.25 applied to 9.24.1? :-D Please suggest Marc _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] SQLite 3 -- Capture FieldValues into a variable
2007/11/26, Daniel Rincón García [EMAIL PROTECTED]: Hi, I need to capture the FieldValues of a SQLite database into a string variable. If I do it: while not dsTest.EOF do begin DataToSend := DataToSend + dsTest.FieldValues ['Code'] + '\' + dsTest.FieldValues['Name'] + '\' + dsTest.FieldValues['Address'] + '#'; provided that DataToSend is a string (as I suppose), you should do this: DataToSend := DataToSend + dsTest.FieldByName('Code').AsString; since FieldByName() returns a TField, have a look at the other methods for type casting. There is basically everything: AsInteger, AsBoolean, and so on.. This also explains why your second code happened to work. Now I'll break every netiquette rule and change (partially) subject: To the Great Guys of the lazarus project: I am finishing a medium size project with lazarus + sqlite3, for which I had study and experiment a lot due to the fact that, IMHO, the database tutorial was slightly too quick on the sqlite part. Would you appreciate it if I wrote a tutorial (= commented example) on sqlite3 with basic topics like the one above and the not so trivial date management stuff ? If you don't really care about it, I won't spend time on it; but if you do care, please point me to the instructions for the wiki and/or a tutorial page templatethis will be my Christmas present to the Lazarus project. :-) Roberto _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] SQLite 3 -- Capture FieldValues into a variable
Roberto Padovani wrote: 2007/11/26, Daniel Rincón García [EMAIL PROTECTED]: Hi, I need to capture the FieldValues of a SQLite database into a string variable. If I do it: while not dsTest.EOF do begin DataToSend := DataToSend + dsTest.FieldValues ['Code'] + '\' + dsTest.FieldValues['Name'] + '\' + dsTest.FieldValues['Address'] + '#'; provided that DataToSend is a string (as I suppose), you should do this: DataToSend := DataToSend + dsTest.FieldByName('Code').AsString; since FieldByName() returns a TField, have a look at the other methods for type casting. There is basically everything: AsInteger, AsBoolean, and so on.. This also explains why your second code happened to work. Now I'll break every netiquette rule and change (partially) subject: To the Great Guys of the lazarus project: I am finishing a medium size project with lazarus + sqlite3, for which I had study and experiment a lot due to the fact that, IMHO, the database tutorial was slightly too quick on the sqlite part. Would you appreciate it if I wrote a tutorial (= commented example) on sqlite3 with basic topics like the one above and the not so trivial date management stuff ? If you don't really care about it, I won't spend time on it; but if you do care, please point me to the instructions for the wiki and/or a tutorial page templatethis will be my Christmas present to the Lazarus project. :-) Roberto See : http://nl.wikipedia.org/wiki/Free_Pascal _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] SQLite 3 -- Capture FieldValues into a variable
Daniel Rincn Garca wrote: Hi, I need to capture the FieldValues of a SQLite database into a string variable. If I do it: while not dsTest.EOF do begin DataToSend := DataToSend + dsTest.FieldValues ['Code'] + '\' + dsTest.FieldValues['Name'] + '\' + dsTest.FieldValues['Address'] + '#'; dsTest.Next; end; I have got the next error message: Project raised exception class 'RunError(231)'. If I do it then works: while not dsTest.EOF do begin Cod := dsTest.FieldValues['Code']; Nam := dsTest.FieldValues['Name']; Addr := dsTest.FieldValues['Address']; DataToSend := DataToSend + Cod + '\' + Nam + '\' + Addr + '#'; dsTest.Next; end; But I have to declare three string variables (Cod, Nam and Addr). Can you help me? I'm not sure, but it is probably because FieldValues returns a variant. Try using FieldByName[...].AsString: DataToSend := DataToSend + dsTest.FieldByName ['Code'].AsString + '\' + dsTest.FieldByName['Name'].AsString + '\' + dsTest.FieldByName['Address'].AsString + '#'; Cheers, John Sunderland _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] Any unit like ScktComp?
Is there a unit like ScktComp in Lazarus, with a class like TClientSocket for simple TCP communication? I think Indy is way too big and complex for what I need. Thanks! -Marco _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Any unit like ScktComp?
On Nov 26, 2007, at 4:33 PM, Marco Alvarado wrote: Is there a unit like ScktComp in Lazarus, with a class like TClientSocket for simple TCP communication? I think Indy is way too big and complex for what I need. http://wiki.lazarus.freepascal.org/lNet http://synapse.ararat.cz/ -- Damien Gerard [EMAIL PROTECTED] _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Any unit like ScktComp?
I just don't want to add a bunch more of units to my project. The same happened to me in Delphi, I tried Indy but I better stayed with TClientSocket that does just what I need. So I'll give lNet a try, thanks for the tip. -Marco 2007/11/26, Marco van de Voort [EMAIL PROTECTED]: On Mon, Nov 26, 2007 at 09:33:23AM -0600, Marco Alvarado wrote: Is there a unit like ScktComp in Lazarus, with a class like TClientSocket for simple TCP communication? I think Indy is way too big and complex for what I need. Simple TCP Communication is not more difficult in Indy than in other suites. _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] Question about SimpleIPC
Hi, I'm new to simpleipc. May I know which is more efficient: 1 server per client, or 1 server for all clients. I'm trying to write a multi-processes manager for my app which might execute up to 100 exhaustive console apps/instances concurrently. TIA, Funky Beast _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] GPU info
Someone sent me a link to CUDA from Nvidia. After looking at some of the source code it seems that there are two (see below) includes that makes CUDA the numerical processor. include stdio.h #include stdlib.h #include string.h #include GL/glew.h #include GL/glut.h #include cuda_runtime_api.h #include cuda_gl_interop.h #include cutil.h #include cutil_interop.h #include Mandelbrot_kernel.h #include Mandelbrot_gold.h Generally, how difficult do you think it is it to interface such includes with FPK or Fortran? Surely they can be wrapped. Users reported a 80x improvement with Cudo on a Gforce compared to a Opteron 2GHZ! The test was single precission though. Lv wrote: That is a great reference for me to dig into, thanks. Lord Satan wrote: Hope this helps: http://www.gpgpu.org/ http://developer.nvidia.com/object/cuda.html _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] Primitive classes in fpc/lazarus
Several types and classes that are ancestors of classes in the LCL are not found in the RTL, and it is difficult to document the LCL classes completely without them. These include many classes with TFPx prefixes; some examples are TFPCanvas and related classes, found in fpc/packages/fcl-image/src/fpcanvas.pp, fpimage.pp and many others. Is there a way of bringing them into the documentation system so that we can fully trace the ancestry of LCL components? FPCanvas, for instance, has the description of how to do the actual drawing referred to by many of the methods in lcl/Graphics/TCanvas. Regards - Chris _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Lazarus on OS X
On Nov 26, 2007, at 1:16 PM, Damien Gerard wrote: On Nov 26, 2007, at 12:47 PM, Vincent Snijders wrote: Damien Gerard schreef: On Nov 26, 2007, at 10:29 AM, Marc Weustink wrote: Damien Gerard wrote: I have just download fpc 2.2.1 and the lastest snapshot for OS X. I launch Lazarus and it works fine (however gtk1 is ugly ^^) but I can not launch an empty application. I've got the following message : Unable to find wslclasses.pp, check in path Projects-Compiler Options-Search Paths - Other Unit files You got this when compiling ? How did you create your new project ? It is the new new project when you first launch Lazarus. The same with Project/ New In fact, in order to compile an empty project, I have to add by hand all needed paths into the fpc.cfg. I did not find such a thing in the wiki. Where I am wrong ? For compilation of your apps, you don't need to add paths to lazarus or LCl sources in your fpc.cfg. It only needs a path to the LCL unit dirs. (and that only if you compile form the commandline) Consequently, if you just install fpc-src, fpc then lazarus you can not compile a default new project (in my case). I think there is some fpc - lazarus version conflict. Did you install both a new fpc and a new lazarus snapshot? Is the compiler in the environment options the new fpc compiler? Does the used fpc.cfg file point to the newly installed fpc unit directory? It comes from a clean install since I recently reinstall my OS X with Leopard. But there is may be a conflict somewhere. With my friend locate I will try remove all files and try another shoot :) Vincent I compltely remove all files associated to fpc/fpcsrc/lazarus and the error is a bit different. The launching application Bundle /tmp/project1.app does not exists or it is not executable. The target is GTK :) But it works -- Damien Gerard [EMAIL PROTECTED] _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Lazarus on OS X
On Monday 26 November 2007 10:21:03 am Damien Gerard wrote: I have just download fpc 2.2.1 and the lastest snapshot for OS X. I launch Lazarus and it works fine (however gtk1 is ugly ^^) but I can Gtk is known to be ugly, it would be nice for us if you would try the Qt version and give feedback to [EMAIL PROTECTED] You do not need X11 for this. not launch an empty application. _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Lazarus on OS X
On Nov 26, 2007 6:19 PM, Damien Gerard [EMAIL PROTECTED] wrote: On Nov 26, 2007, at 1:16 PM, Damien Gerard wrote: On Nov 26, 2007, at 12:47 PM, Vincent Snijders wrote: Damien Gerard schreef: On Nov 26, 2007, at 10:29 AM, Marc Weustink wrote: Damien Gerard wrote: I have just download fpc 2.2.1 and the lastest snapshot for OS X. I launch Lazarus and it works fine (however gtk1 is ugly ^^) but I can not launch an empty application. I've got the following message : Unable to find wslclasses.pp, check in path Projects-Compiler Options-Search Paths - Other Unit files You got this when compiling ? How did you create your new project ? It is the new new project when you first launch Lazarus. The same with Project/ New In fact, in order to compile an empty project, I have to add by hand all needed paths into the fpc.cfg. I did not find such a thing in the wiki. Where I am wrong ? For compilation of your apps, you don't need to add paths to lazarus or LCl sources in your fpc.cfg. It only needs a path to the LCL unit dirs. (and that only if you compile form the commandline) Consequently, if you just install fpc-src, fpc then lazarus you can not compile a default new project (in my case). I think there is some fpc - lazarus version conflict. Did you install both a new fpc and a new lazarus snapshot? Is the compiler in the environment options the new fpc compiler? Does the used fpc.cfg file point to the newly installed fpc unit directory? It comes from a clean install since I recently reinstall my OS X with Leopard. But there is may be a conflict somewhere. With my friend locate I will try remove all files and try another shoot :) Vincent I compltely remove all files associated to fpc/fpcsrc/lazarus and the error is a bit different. The launching application Bundle /tmp/project1.app does not exists or it is not executable. The target is GTK :) But it works You have to uncheck Use Application Bundle for running and debugging in Project Options. Tom _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] Creating TForms dynamically (works in Delphi, not Lazarus)
I need to create my forms dynamically. In Delphi I just remove the designed form from the main program, so it looks like this: ... begin Application.Initialize; Application.Run; end. Later on, I just create new instances of my forms and assign it's properties, i.e.: ... AForm := TMyForm.Create(Application); AForm.Caption := 'This is my form'; AForm.Left := X; AForm.Top := Y; AForm.Width := Width; AForm.Height := Height; AForm.Show; ... In Delphi that's all I need, and it works. But must be missing something in Lazarus, because the program runs and executes without exceptions, but there is no form shown. I included Forms and Interfaces in the uses clause. Any ideas? Thanks! -Marco _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Creating TForms dynamically (works in Delphi, not Lazarus)
Marco Alvarado schreef: I need to create my forms dynamically. In Delphi I just remove the designed form from the main program, so it looks like this: ... begin Application.Initialize; Application.Run; end. Later on, I just create new instances of my forms and assign it's properties, i.e.: ... AForm := TMyForm.Create(Application); AForm.Caption := 'This is my form'; AForm.Left := X; AForm.Top := Y; AForm.Width := Width; AForm.Height := Height; AForm.Show; ... How is this code entered? I cannot imagine Application.Initialize or Application.Run; do that. Vincent _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Creating TForms dynamically (works in Delphi, not Lazarus)
Oh, forgot to tell, this part: ... begin Application.Initialize; Application.Run; end. is inside an unit's initilization section. So the main program still runs, creating the form. :D 2007/11/26, Vincent Snijders [EMAIL PROTECTED]: Marco Alvarado schreef: I need to create my forms dynamically. In Delphi I just remove the designed form from the main program, so it looks like this: ... begin Application.Initialize; Application.Run; end. Later on, I just create new instances of my forms and assign it's properties, i.e.: ... AForm := TMyForm.Create(Application); AForm.Caption := 'This is my form'; AForm.Left := X; AForm.Top := Y; AForm.Width := Width; AForm.Height := Height; AForm.Show; ... How is this code entered? I cannot imagine Application.Initialize or Application.Run; do that. Vincent _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Creating TForms dynamically (works in Delphi, not Lazarus)
Marco Alvarado schreef: Oh, forgot to tell, this part: ... begin Application.Initialize; Application.Run; end. is inside an unit's initilization section. So the main program still runs, creating the form. :D Until you do Application.Initialize, some widget set call might not work. So Form.Show maybe doesn't do a thing. Vincent _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Creating TForms dynamically (works in Delphi, not Lazarus)
On Mon, 26 Nov 2007 12:05:27 -0600 Marco Alvarado [EMAIL PROTECTED] wrote: Oh, forgot to tell, this part: ... begin Application.Initialize; Application.Run; end. is inside an unit's initilization section. So the main program still runs, creating the form. :D The 'begin..end.' of the program is executed after all initialization sections. This means Application.Initialize is called after the below code (AForm.Show). Under Lazarus the Application.Initialize inits the widgetset. 2007/11/26, Vincent Snijders [EMAIL PROTECTED]: Marco Alvarado schreef: I need to create my forms dynamically. In Delphi I just remove the designed form from the main program, so it looks like this: ... begin Application.Initialize; Application.Run; end. Later on, I just create new instances of my forms and assign it's properties, i.e.: ... AForm := TMyForm.Create(Application); AForm.Caption := 'This is my form'; AForm.Left := X; AForm.Top := Y; AForm.Width := Width; AForm.Height := Height; AForm.Show; ... How is this code entered? I cannot imagine Application.Initialize or Application.Run; do that. Mattias _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Lazarus on OS X
On Nov 26, 2007, at 6:33 PM, Den Jean wrote: On Monday 26 November 2007 10:21:03 am Damien Gerard wrote: I have just download fpc 2.2.1 and the lastest snapshot for OS X. I launch Lazarus and it works fine (however gtk1 is ugly ^^) but I can Gtk is known to be ugly, it would be nice for us if you would try the Qt version and give feedback to [EMAIL PROTECTED] You do not need X11 for this. not launch an empty application. Oki let's continue on the qt ml :) However I would prefer the Carbon widgetset because of the QT licence. -- Damien Gerard [EMAIL PROTECTED] _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] Save IDE Settings?
I've just upgraded my lazarus/fpc installation which I have done by uninstalling my existing installation (WinXP) followed by running the new installer. The problem is that I have to go in an redefine my keyboard layout, window manager settings, etc. How can I back this information up and save myself some time next go around? Thanks as always, -- Warm Regards, Lee My wife is better at Guitar Hero than I am and it's really irritating. _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Lazarus on OS X
On Nov 26, 2007, at 7:48 PM, Damien Gerard wrote: On Nov 26, 2007, at 6:33 PM, Den Jean wrote: On Monday 26 November 2007 10:21:03 am Damien Gerard wrote: I have just download fpc 2.2.1 and the lastest snapshot for OS X. I launch Lazarus and it works fine (however gtk1 is ugly ^^) but I can Gtk is known to be ugly, it would be nice for us if you would try the Qt version and give feedback to [EMAIL PROTECTED] You do not need X11 for this. not launch an empty application. Oki let's continue on the qt ml :) However I would prefer the Carbon widgetset because of the QT licence. Before QT, I tried GTK2 and I have got the following error: (gdb) r Starting program: /usr/local/bin/lazarus Reading symbols for shared libraries + + done TApplication.IconChanged - TODO: convert this message...no implementation in gtk or win32 NOTE: codetools config file not found - using defaults Reading symbols for shared libraries . done NOTE: help options config file not found - using defaults TMainIDE.DoNewProject A TMainIDE.DoNewEditorFile A NewFilename= (lazarus:42287): Pango-WARNING **: Error loading GDEF table 85 (lazarus:42287): Pango-WARNING **: Error loading GSUB table 85 (lazarus:42287): Pango-WARNING **: Error loading GPOS table 85 [TCustomFormEditor.CreateComponent] Class='TForm' TMainIDE.DoNewEditorFile end unit1.pas The program 'lazarus' received an X Window System error. This probably reflects a bug in the program. The error was 'BadMatch (invalid parameter attributes)'. (Details: serial 12882 error_code 8 request_code 152 minor_code 4) (Note to programmers: normally, X errors are reported asynchronously; that is, you will receive the error a while after causing it. To debug your program, run it with the --sync command line option to change this behavior. You can then get a meaningful backtrace from your debugger if you break on the gdk_x_error() function.) Program exited with code 01. (gdb) In fact Lazarus quit right after all forms are displayed Let's try QT ! :) -- Damien Gerard [EMAIL PROTECTED] _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Creating TForms dynamically (works in Delphi, not Lazarus)
Sorry, this is the part that is inside the initialization section: Application.Initialize; Application.Run; Not in the main begin..end, so it should execute before the main program creates the window. Anyway, maybe the way the widgetset works is not the same as the way VCL works. Maybe I should use some event of TApplication to make sure the code executes in the right order. :) 2007/11/26, Mattias Gaertner [EMAIL PROTECTED]: On Mon, 26 Nov 2007 12:05:27 -0600 Marco Alvarado [EMAIL PROTECTED] wrote: Oh, forgot to tell, this part: ... begin Application.Initialize; Application.Run; end. is inside an unit's initilization section. So the main program still runs, creating the form. :D The 'begin..end.' of the program is executed after all initialization sections. This means Application.Initialize is called after the below code (AForm.Show). Under Lazarus the Application.Initialize inits the widgetset. 2007/11/26, Vincent Snijders [EMAIL PROTECTED]: Marco Alvarado schreef: I need to create my forms dynamically. In Delphi I just remove the designed form from the main program, so it looks like this: ... begin Application.Initialize; Application.Run; end. Later on, I just create new instances of my forms and assign it's properties, i.e.: ... AForm := TMyForm.Create(Application); AForm.Caption := 'This is my form'; AForm.Left := X; AForm.Top := Y; AForm.Width := Width; AForm.Height := Height; AForm.Show; ... How is this code entered? I cannot imagine Application.Initialize or Application.Run; do that. Mattias _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Save IDE Settings?
Old versions of Lazarus stored those settings (*.xml files) in the Lazarus directory. Newer versions store that information in the users profile/home directory. Under Windows that is somewhere in C:\Documents and Settings\ and under Linux than is /home/user/.lazarus Just make a backup of the *.xml files (or that whole directory). Do your new install and copy those files back in. If you are daring, you can use the svn version and simply forget about where the settings are as they keep working after each update and build. Regards, - Graeme - ___ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/ _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Save IDE Settings?
Graeme Geldenhuys schreef: Old versions of Lazarus stored those settings (*.xml files) in the Lazarus directory. Newer versions store that information in the users profile/home directory. Under Windows that is somewhere in C:\Documents and Settings\ This has not yet been done on windows, but it is planned to test. Problem might be that the path contains spaces and it is unclear if compiler and its tools can handle that. Vincent _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Save IDE Settings?
Graeme Geldenhuys wrote: Old versions of Lazarus stored those settings (*.xml files) in the Lazarus directory. Newer versions store that information in the users profile/home directory. Under Windows that is somewhere in C:\Documents and Settings\ and under Linux than is /home/user/.lazarus Just make a backup of the *.xml files (or that whole directory). Do your new install and copy those files back in. If you are daring, you can use the svn version and simply forget about where the settings are as they keep working after each update and build. Nice. Thanks Graeme. -- Warm Regards, Lee My wife is better at Guitar Hero than I am and it's really irritating. _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] SQLite 3 -- Capture FieldValues into a variable
Op maandag 26-11-2007 om 13:17 uur [tijdzone +0100], schreef Daniel Rincón García: Hi, I need to capture the FieldValues of a SQLite database into a string variable. If I do it: while not dsTest.EOF do begin DataToSend := DataToSend + dsTest.FieldValues ['Code'] + '\' + dsTest.FieldValues['Name'] + '\' + dsTest.FieldValues['Address'] + '#'; dsTest.Next; end; I have got the next error message: Project raised exception class 'RunError(231)'. Use .asstring as mentioned elsewhere, and submit a bug (http:/www.freepascal.org/mantis, fpc-project) because what you do shouldn't give this error. Joost. _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] SQLite 3 -- Capture FieldValues into a variable
Op maandag 26-11-2007 om 15:05 uur [tijdzone +0100], schreef Roberto Padovani: 2007/11/26, Daniel Rincón García [EMAIL PROTECTED]: To the Great Guys of the lazarus project: I am finishing a medium size project with lazarus + sqlite3, for which I had study and experiment a lot due to the fact that, IMHO, the database tutorial was slightly too quick on the sqlite part. Would you appreciate it if I wrote a tutorial (= commented example) on sqlite3 with basic topics like the one above and the not so trivial date management stuff ? If you don't really care about it, I won't spend time on it; but if you do care, please point me to the instructions for the wiki and/or a tutorial page templatethis will be my Christmas present to the Lazarus project. :-) The database-documentation is as good as non-existent. All examples and tutorials are usefull. So please do. A few people send a mail to the fpc-pascal mailinglist about adding some documentation about fcl-db. Joost _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Primitive classes in fpc/lazarus
Is RTL documented in the same XML format that LCL documents? If yes, because not to integrate RTL documents with LCL documents? Wanderlan Santos dos Anjos
Re: [lazarus] is laz 9.24 fixes on svn ready to be used?
Please suggest I got the list from Change Logs. I suggest these: 0008029: [Database] Ctrl+C and Ctrl+Z don't work in a TDBMemo 0010248: [IDE] Some icons aren't showed into the component palette 0010198: [LCL] OnMouseWheel WheelDelta is opposite in sign for Win32 and GTK2 0010178: [LCL] Wrong RoundRect drawing with QT 0010170: [IDE] More appropriate window's title text 634: [-] TStaticText.BorderStyle 0010008: [Widgetset] TPageControl.GetImageIndex never gets called on Win32 0009996: [Patch] PageControl.TabVisible works incorrectly Please consider. :) There are some other as well, especially some that is targeting 9.23, but I'm not sure if it won't broken current stable release (9.24). Thank you. -Bee- has Bee.ography at: http://beeography.wordpress.com _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] is laz 9.24 fixes on svn ready to be used?
Bee пишет: Please suggest I got the list from Change Logs. I suggest these: 0008029: [Database] Ctrl+C and Ctrl+Z don't work in a TDBMemo 0010248: [IDE] Some icons aren't showed into the component palette iirc all graphic issues I want to merge into stable branch are there 0010198: [LCL] OnMouseWheel WheelDelta is opposite in sign for Win32 and GTK2 yes 0010178: [LCL] Wrong RoundRect drawing with QT yes 0010170: [IDE] More appropriate window's title text 634: [-] TStaticText.BorderStyle no - big rewrite of TStaticText under gtk 0010008: [Widgetset] TPageControl.GetImageIndex never gets called on Win32 yes 0009996: [Patch] PageControl.TabVisible works incorrectly yes Please consider. :) Anyway, this is only my minds. Best regards, Paul Ishenin. _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] is laz 9.24 fixes on svn ready to be used?
Paul Ishenin schreef: Bee пишет: Please suggest I got the list from Change Logs. I suggest these: 0008029: [Database] Ctrl+C and Ctrl+Z don't work in a TDBMemo 0010248: [IDE] Some icons aren't showed into the component palette iirc all graphic issues I want to merge into stable branch are there 0010198: [LCL] OnMouseWheel WheelDelta is opposite in sign for Win32 and GTK2 yes 0010178: [LCL] Wrong RoundRect drawing with QT yes 0010170: [IDE] More appropriate window's title text 634: [-] TStaticText.BorderStyle no - big rewrite of TStaticText under gtk 0010008: [Widgetset] TPageControl.GetImageIndex never gets called on Win32 yes 0009996: [Patch] PageControl.TabVisible works incorrectly yes Please consider. :) Anyway, this is only my minds. Which revisions are these? Vincent _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Serial Comm Support Windows
I personally like the synaser project :) Razvan _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Primitive classes in fpc/lazarus
Wanderlan Santos dos Anjos wrote: Is RTL documented in the same XML format that LCL documents? As far as I know, all the on-line help files for RTL and FCL were produced in the same way as the LCL documentation, using .XML files and FPCDoc. The RTL and FCL descriptor files are not, however, in the SVN repository or distributions, as the libraries and their documentation are considered to be much more mature and stable. I imagine you could get access to the XML files by asking one of the devels. Chris If yes, because not to integrate RTL documents with LCL documents? Wanderlan Santos dos Anjos Doctors.net.uk education: Totally independent, totally free.http://www.doctors.net.uk/education Click here https://www.mailcontrol.com/sr/21Qtk2GuofovwMvJrhx1Y9vLjQhMjDU8TzmE7jxtgFKyK1f5sq0IeaUlJuBCtWcaWV6ApbausZjM3j6LfxIN4veQashe0fWyiOzYieR1Q67M3hPDraBVadeS1ekGmI28ld6W7lXM6LmdbnGuogJZ6evEmIdDFlHlBwz9hZBN9dWQpnBKPY+RUbGXLiQT%21EWBc60ybYuZOOelKpVkq0BdFvkILP3Zs3F+ to report this email as spam. _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Non UTF-8 Encodings
What about the Synapse conversion units ? There is a unit, synachar if i remember correctly that dragged a lot of charsets and codepages internally and converts wtthout iconv support for most of them and uses iconv if the encoding is not supported internally, we could write our own such unit using the idea from synapse, i think they borrowed some conversion tables from iconv. Razvan _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives