[lazarus] Unicode (UTF-8) and OnKeyPress event

2007-07-17 Thread Graeme Geldenhuys
Hi, Maybe I'm not understanding Unicode (UTF-8 to be more precise) 100% yet, but isn't the OnKeyPress defined incorrectly, to work with UTF-8 input. TKeyPressEvent = procedure (Sender: TObject; var Key: Char) of object; The Key parameter is defined as a Char type, which is limited to the first

Re: [lazarus] Another little help with databases

2007-07-17 Thread Bram Kuijvenhoven
German C. Basisty wrote: I have now a form with a working TPQConnection, a TSQLTransaction, a TSQLQuery with a ‘select * from product’ as SQL, a TDatasource, an a TDBGrid, everithing is working fine and every product is shown on the DBGrid as expected. Now I want to add an TEdit to make

Re: [lazarus] Ide doesn't find units in the fcl (or outside the project)

2007-07-17 Thread Mattias Gaertner
On Tue, 17 Jul 2007 00:12:35 +0200 Luca Olivetti [EMAIL PROTECTED] wrote: En/na Mattias Gaertner ha escrit: Please check ~/.lazarus/inputhistory.xml. Search for the missing units. For example there should be a line eventlog /usr/share/fpcsrc/fcl/inc/eventlog.pp Are they there? No, I

Re: [lazarus] Unicode (UTF-8) and OnKeyPress event

2007-07-17 Thread Mattias Gaertner
On Tue, 17 Jul 2007 08:25:15 +0200 Graeme Geldenhuys [EMAIL PROTECTED] wrote: Hi, Maybe I'm not understanding Unicode (UTF-8 to be more precise) 100% yet, but isn't the OnKeyPress defined incorrectly, to work with UTF-8 input. TKeyPressEvent = procedure (Sender: TObject; var Key: Char)

Re: [lazarus] Unicode (UTF-8) and OnKeyPress event

2007-07-17 Thread Graeme Geldenhuys
On 17/07/07, Mattias Gaertner [EMAIL PROTECTED] wrote: The Key parameter is defined as a Char type, which is limited to the first 256 Unicode (or ASCII) characters. Shouldn't the TKeyPressEvent be redefined as a Word to be able to work with Unicode? A word is not sufficient for unicode.

Re: [lazarus] Ide doesn't find units in the fcl (or outside the project)

2007-07-17 Thread Luca Olivetti
En/na Mattias Gaertner ha escrit: Your SearchPath only contains the default paths: SearchPath Value=/home/luca/.lazarus/;/usr/lib/fpc/2.0.4/units/i386-linux/rtl/;/usr/lib/fpc/2.0.4/;/ That means your fpc config is broken. It should contain lines like:

Re: [lazarus] Unicode (UTF-8) and OnKeyPress event

2007-07-17 Thread Marc Weustink
Graeme Geldenhuys wrote: Hi, Maybe I'm not understanding Unicode (UTF-8 to be more precise) 100% yet, but isn't the OnKeyPress defined incorrectly, to work with UTF-8 input. TKeyPressEvent = procedure (Sender: TObject; var Key: Char) of object; IIRC there is a TUTF8KeyPressEvent. Marc

Re: [lazarus] Ide doesn't find units in the fcl (or outside the project)

2007-07-17 Thread Luca Olivetti
En/na Mattias Gaertner ha escrit: On Tue, 17 Jul 2007 09:38:15 +0200 Luca Olivetti [EMAIL PROTECTED] wrote: En/na Mattias Gaertner ha escrit: Your SearchPath only contains the default paths: SearchPath Value=/home/luca/.lazarus/;/usr/lib/fpc/2.0.4/units/i386-linux/rtl/;/usr/lib/fpc/2.0.4/;/

[lazarus] Trouble registering on lazarus.freepascal.org

2007-07-17 Thread John vd Waeter
Hi all, I try to register at lazarus.freepascal.org, but no emails with password are sent from the site. Can anyone take a look at it? tia! John _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as

[lazarus] Installing Lazarus in Slackware 12

2007-07-17 Thread Gandi Wibowo
Can anyone help me to install lazarus in Slackware 12? Fpc 2.0.4 has already installed in my System, but i can not install the lazarus. Could you tell me how to do it? _ To unsubscribe: mail [EMAIL PROTECTED] with

Re: [lazarus] Trouble registering on lazarus.freepascal.org

2007-07-17 Thread Marc Weustink
John vd Waeter wrote: Hi all, I try to register at lazarus.freepascal.org, but no emails with password are sent from the site. Can anyone take a look at it? Where did you try to register for ? Mantis ? Forum ? Site ? Marc

Re: [lazarus] Trouble registering on lazarus.freepascal.org

2007-07-17 Thread John vd Waeter
Marc Weustink wrote: John vd Waeter wrote: Hi all, I try to register at lazarus.freepascal.org, but no emails with password are sent from the site. Can anyone take a look at it? Where did you try to register for ? Mantis ? Forum ? Site ? Marc The forums. John

Re: [lazarus] Installing Lazarus in Slackware 12

2007-07-17 Thread A.J. Venter
Hiya Gandi, I have lazarus packages for OpenLab which are compatible with slackware (you can use installpkg) available from: http://www.getopenlab.com/openlab//openlab_400_optional/lazarus-0.9.17-i486-0.tgz You need to install the gdk-pixbuf package as well (grab one from slackware.com/pb if you

Re: [lazarus] Installing Lazarus in Slackware 12

2007-07-17 Thread Mattias Gaertner
On Tue, 17 Jul 2007 16:51:45 +0700 Gandi Wibowo [EMAIL PROTECTED] wrote: Can anyone help me to install lazarus in Slackware 12? Fpc 2.0.4 has already installed in my System, but i can not install the lazarus. Could you tell me how to do it? See for example:

Re: [lazarus] Installing Lazarus in Slackware 12

2007-07-17 Thread Gandi Wibowo
Thanks every one, i'll try it... i can't do with svn, my connection is very slow... i can't wait it finished 2007/7/17, Mattias Gaertner [EMAIL PROTECTED]: On Tue, 17 Jul 2007 16:51:45 +0700 Gandi Wibowo [EMAIL PROTECTED] wrote: Can anyone help me to install lazarus in Slackware 12? Fpc 2.0.4

Re: [lazarus] Installing Lazarus in Slackware 12

2007-07-17 Thread A.J. Venter
Hiya Gandi, I have lazarus packages for OpenLab which are compatible with slackware (you can use installpkg) available from: http://www.getopenlab.com/openlab//openlab_400_optional/lazarus-0.9.17-i486-0.tgz 0.9.17 is pretty old and a development version. Better use at least 0.9.22.

Re: [lazarus] Installing Lazarus in Slackware 12

2007-07-17 Thread Mattias Gaertner
On Tue, 17 Jul 2007 17:24:50 +0700 Gandi Wibowo [EMAIL PROTECTED] wrote: How can i get 0.9.22 in tgz format? http://sourceforge.net/project/showfiles.php?group_id=89339package_id=192182 Mattias 2007/7/17, Mattias Gaertner [EMAIL PROTECTED]: On Tue, 17 Jul 2007 12:13:00 +0200 A.J.

Re: [lazarus] Installing Lazarus in Slackware 12

2007-07-17 Thread Gandi Wibowo
2007/7/17, Mattias Gaertner [EMAIL PROTECTED]: On Tue, 17 Jul 2007 17:24:50 +0700 Gandi Wibowo [EMAIL PROTECTED] wrote: How can i get 0.9.22 in tgz format? http://sourceforge.net/project/showfiles.php?group_id=89339package_id=192182 This the tar.gz format, i mean the .tgz format wich can

Re: [lazarus] Installing Lazarus in Slackware 12

2007-07-17 Thread Gandi Wibowo
When i try to install gdk-pixbuf-0.22.0 there is an error, like this (after make command): gdk-pixbuf-scan.c:683: error: 'GTK_ARG_CHILD_ARG' undeclared (first use in this function) Compilation of scanner failed: make[2]: *** [scan-build.stamp] Error 1 make[2]: Leaving directory

Re: [lazarus] Installing Lazarus in Slackware 12

2007-07-17 Thread Gandi Wibowo
How can i get 0.9.22 in tgz format? 2007/7/17, Mattias Gaertner [EMAIL PROTECTED]: On Tue, 17 Jul 2007 12:13:00 +0200 A.J. Venter [EMAIL PROTECTED] wrote: Hiya Gandi, I have lazarus packages for OpenLab which are compatible with slackware (you can use installpkg) available from:

Re: [lazarus] Installing Lazarus in Slackware 12

2007-07-17 Thread Gandi Wibowo
Did Lazarus Need GNOME? There is no GNOME in my system, so i can't install gdk-pixbuff, it's need gnome.h I think that's way i can't install LAZARUS in my slackware 12 2007/7/17, Gandi Wibowo [EMAIL PROTECTED]: When i try to install gdk-pixbuf-0.22.0 there is an error, like this (after make

[lazarus] Did lazarus need GNOME for install?

2007-07-17 Thread Gandi Wibowo
Did lazarus need GNOME? There no GNOME in Slackware... So i can't install The gdk-pixbuff it's always error, i think it's need gnome.h and there is no GNOME in Slackware How can i install the lazarus without GNOME (in Slackware specially)?

Re: [lazarus] Did lazarus need GNOME for install?

2007-07-17 Thread Felipe Monteiro de Carvalho
On 7/17/07, Gandi Wibowo [EMAIL PROTECTED] wrote: Did lazarus need GNOME? No, Lazarus doesn't need GNOME There no GNOME in Slackware... So i can't install The gdk-pixbuff it's always error, Yes, lazarus needs gdk-pixbuf i think it's need gnome.h and there is no GNOME in Slackware No,

Re: [lazarus] Did lazarus need GNOME for install?

2007-07-17 Thread Mattias Gaertner
On Tue, 17 Jul 2007 18:50:03 +0700 Gandi Wibowo [EMAIL PROTECTED] wrote: Did lazarus need GNOME? GNOME is the desktop environment, providing all the tools a user needs for everyday work. Lazarus does not need GNOME. It can run under KDE and other window managers/desktops as well. But the gtk1

Re: [lazarus] Did lazarus need GNOME for install?

2007-07-17 Thread A.J. Venter
There is at least two ways to install gnome under slackware, dropline gnome (http://www.droplinegnome.net/) and freerock gnome (http://gsb.freerock.org/) freerock is easier to work with if you just want to install packages for parts of gnome, dropline is easier to install the whole thing.

Re: [lazarus] Another little help with databases

2007-07-17 Thread John
Bram Kuijvenhoven wrote: German C. Basisty wrote: I have now a form with a working TPQConnection, a TSQLTransaction, a TSQLQuery with a ‘select * from product’ as SQL, a TDatasource, an a TDBGrid, so you should either properly escape Edit1.Text, or use query parameters instead I

[lazarus] Debugging and property values

2007-07-17 Thread John
Hi all, Is there any way of viewing property values while tracing / debugging ? Thanks, John Sunderland _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at

[lazarus] Menu

2007-07-17 Thread German C. Basisty
Good people: Does anybody know where can I find documentation about creating and managing menu? I mean, like a standard Windows app main menu or something. Best regards German

Re: [lazarus] Debugging and property values

2007-07-17 Thread Marc Weustink
John wrote: Hi all, Is there any way of viewing property values while tracing / debugging ? Nope. Closest thing is try to prefix it with F to access the member directly Marc _ To unsubscribe: mail [EMAIL PROTECTED] with

Re: [lazarus] Another little help with databases

2007-07-17 Thread Joost van der Sluis
On Tue, 2007-07-17 at 08:34 +0200, Bram Kuijvenhoven wrote: German C. Basisty wrote: I have now a form with a working TPQConnection, a TSQLTransaction, a TSQLQuery with a ‘select * from product’ as SQL, a TDatasource, an a TDBGrid, everithing is working fine and every product is shown on

[lazarus] TListView Sorting

2007-07-17 Thread Charl van Jaarsveldt
Hi, I have a TListView in Report style. I would like to have the user click on the column to sort by that column. I set the TListView.SortType property to no avail. How do I enable sorting? Thanks Charl -- I love deadlines. I especially love the whooshing sound they make as they fly by. -

[lazarus] Initialize a DBGrid

2007-07-17 Thread German C. Basisty
Hi! Here goes another question: I have a form. This form contains a DBGrid. The DBGrid retrives information via an SQL connection from a PostgreSQL Database. How do I do to initialize parameters (like DBGrid1.Columns[1].Width := 20) when the form is shown (when the form appears)? Best

[lazarus] Find in Files using an external Indexing Engine

2007-07-17 Thread Al Boldi
Al Boldi wrote: Michael Van Canneyt wrote: On Sun, 4 Jun 2006, Mattias Gaertner wrote: Al Boldi [EMAIL PROTECTED] wrote: Mattias Gaertner wrote: Al Boldi wrote: The SourceEditor currently has the ability to search in files by searching a complete directory hierarchy.

Re: [lazarus] Another little help with databases

2007-07-17 Thread Bram Kuijvenhoven
Joost van der Sluis wrote: On Tue, 2007-07-17 at 08:34 +0200, Bram Kuijvenhoven wrote: German C. Basisty wrote: I have now a form with a working TPQConnection, a TSQLTransaction, a TSQLQuery with a ‘select * from product’ as SQL, a TDatasource, an a TDBGrid, everithing is working fine and

Re: [lazarus] Menu

2007-07-17 Thread Tom York
I do not know where you can find information on the subject, but can give you a few tips. You can attach submenu's to the parent forms menu by: -- begin code *procedure TForm1.CreateSubMenu(Sender: TObject); *var Sub, SubItems: TMenuItem; begin // Create a sub menu Sub :=

Re: [lazarus] Another little help with databases

2007-07-17 Thread Joost van der Sluis
On Tue, 2007-07-17 at 21:40 +0200, Bram Kuijvenhoven wrote: I didn't know about ServerFilter. [/me is looking it up...] Ah, from the SQLDB source I see the contents of ServerFilter are simply pasted into the query (at the right place, with a WHERE () or AND () added). I assume that this is

[lazarus] Problem with file

2007-07-17 Thread German C. Basisty
Hello again! I wrote this simple program in pascal on my Linux box: == program exists; var f: file of string; IOR: integer; begin assign(f, 'test.txt'); {$I-} reset(f); {$I+} IOR :=

Re: [lazarus] Problem with file

2007-07-17 Thread Mattias Gaertner
On Tue, 17 Jul 2007 18:49:35 -0300 German C. Basisty [EMAIL PROTECTED] wrote: Hello again! I wrote this simple program in pascal on my Linux box: == program exists; var f: file of string; IOR: integer; begin

RE: [lazarus] Problem with file

2007-07-17 Thread German C. Basisty
Thank you!! Regards -Mensaje original- De: Mattias Gaertner [mailto:[EMAIL PROTECTED] Enviado el: martes, 17 de julio de 2007 07:07 p.m. Para: lazarus@miraclec.com Asunto: Re: [lazarus] Problem with file On Tue, 17 Jul 2007 18:49:35 -0300 German C. Basisty [EMAIL PROTECTED] wrote:

Re: [lazarus] Problem with file

2007-07-17 Thread Marc Weustink
Mattias Gaertner wrote: On Tue, 17 Jul 2007 18:49:35 -0300 German C. Basisty [EMAIL PROTECTED] wrote: Hello again! I wrote this simple program in pascal on my Linux box: == program exists; var f: file of string; IOR: integer;

Re: [lazarus] Initialize a DBGrid

2007-07-17 Thread John
German C. Basisty wrote: Hi! Here goes another question: I have a form. This form contains a DBGrid. The DBGrid retrives information via an SQL connection from a PostgreSQL Database. How do I do to initialize parameters (like DBGrid1.Columns[1].Width := 20) when the form

[lazarus] files: I give up

2007-07-17 Thread German C. Basisty
Now I really dont know whats wrong, please help me. The writting code: procedure TForm1.Button1Click(Sender: TObject); var archivo: File of String; cadena: String; begin cadena := Edit1.Text; ShowMessage(cadena);

Re: [lazarus] files: I give up

2007-07-17 Thread Jesus Reyes A.
- Original Message - From: German C. Basisty [EMAIL PROTECTED] To: lazarus@miraclec.com Sent: Tuesday, July 17, 2007 7:46 PM Subject: [lazarus] files: I give up Now I really dont know whats wrong, please help me. The writting code:

Re: [lazarus] files: I give up

2007-07-17 Thread Alex Smirnov
German C. Basisty ?: Now I really dont know whats wrong, please help me. The writting code: procedure TForm1.Button1Click(Sender: TObject); var archivo: File of String; cadena: String; begin cadena := Edit1.Text;

[lazarus] Weird error problem

2007-07-17 Thread George Lober
Hi guys, I hope you can help me with this one. Using FPC 2.0.4 and Lazarus 0.9.23 rev.11447M. I am converting my main Delphi project to Lazarus under Linux/GTK1 and I get an odd error. As far as I can determine the error happens when a function in another unit is called the second time. The

Re: [lazarus] files: I give up

2007-07-17 Thread John
Also, it depends on exactly what you are trying to save. There are other ways of saving strings than using the low level file routines. They may be less efficient, but involve less programming. If your strings are in a TStrings or TStringList object, you can simply use the SaveToFile and

Re: [lazarus] Did lazarus need GNOME for install?

2007-07-17 Thread Gandi Wibowo
Thanks Venter, i'v installed gdk-pixbuf, and lazarus has installed in my slackware, i use .rpm packet of lazarus and convert it to .tgz using rpm2tgz 2007/7/17, A.J. Venter [EMAIL PROTECTED]: There is at least two ways to install gnome under slackware, dropline gnome