Re: [lazarus] AssignFile(), Reset(), Write() in Lazarus ????
On Thu, 12 Oct 2006, Onjahyr wrote: Help-me. In Delphi no problem! In Lazarus no Save, no Open... // AssignFile(f, Arq_T); // Reset(f); // and // Write(f, Tarefa); These functions definitely exist. They are even documented: http://www.freepascal.org/docs-html/rtl/objpas/assignfile.html http://www.freepascal.org/docs-html/rtl/objpas/closefile.html http://www.freepascal.org/docs-html/rtl/system/reset.html Can you tell us what the exact error is ? Michael. _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] Lazarus fails to compile ?
Lazarus does not compile on my system SuSE 10.1, AMD64. I tried both ppc386 and ppcx64 - version 2.0.4 First of all, in file customcodetool.pas, inline is used. Inline must be switched on with {$INLINE ON} or add -Si to the compiler options in the makefile, because -Si is not in the default config file of FPC. I suggest adding the {$INLINE ON} Secondly, it fails to link: /home/michael/fpc/lazarus/lcl/units/i386-linux/gtk/gtkint.o: In function `DATASOURCEINITIALIZE': gtkobject.inc:2333: undefined reference to `gdk_pixbuf_get_from_drawable' gtkobject.inc:2352: undefined reference to `gdk_pixbuf_get_from_drawable' /home/michael/fpc/lazarus/lcl/units/i386-linux/gtk/gtkproc.o: In function `GDK_PIXBUF_RENDER_PIXMAP_AND_MASK': gtkproc.inc:345: undefined reference to `gdk_pixbuf_render_pixmap_and_mask' /home/michael/fpc/lazarus/lcl/units/i386-linux/gtk/gtkproc.o: In function `SCALEPIXMAP': gtkproc.inc:1435: undefined reference to `gdk_pixbuf_get_from_drawable' lazarus.pp(114,1) Error: Error while linking Which version of gdk_pixbuf is needed to compile lazarus ? I have libgdk_pixbuf-2.0.so.0.800.10 installed both for 32-bit and 64-bit. Michael. _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Lazarus fails to compile ?
Michael Van Canneyt wrote: Lazarus does not compile on my system SuSE 10.1, AMD64. Secondly, it fails to link: /home/michael/fpc/lazarus/lcl/units/i386-linux/gtk/gtkint.o: In function `DATASOURCEINITIALIZE': gtkobject.inc:2333: undefined reference to `gdk_pixbuf_get_from_drawable' gtkobject.inc:2352: undefined reference to `gdk_pixbuf_get_from_drawable' /home/michael/fpc/lazarus/lcl/units/i386-linux/gtk/gtkproc.o: In function `GDK_PIXBUF_RENDER_PIXMAP_AND_MASK': gtkproc.inc:345: undefined reference to `gdk_pixbuf_render_pixmap_and_mask' /home/michael/fpc/lazarus/lcl/units/i386-linux/gtk/gtkproc.o: In function `SCALEPIXMAP': gtkproc.inc:1435: undefined reference to `gdk_pixbuf_get_from_drawable' lazarus.pp(114,1) Error: Error while linking Which version of gdk_pixbuf is needed to compile lazarus ? I have libgdk_pixbuf-2.0.so.0.800.10 installed both for 32-bit and 64-bit. I have [EMAIL PROTECTED]:~/src/fpc ls -l /opt/gnome/lib/libgdk_pixbuf.so lrwxrwxrwx 1 root root 22 2006-08-05 14:38 /opt/gnome/lib/libgdk_pixbuf.so - libgdk_pixbuf.so.2.0.0 Vincent _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Lazarus fails to compile ?
Michael Van Canneyt wrote: Lazarus does not compile on my system SuSE 10.1, AMD64. I tried both ppc386 and ppcx64 - version 2.0.4 First of all, in file customcodetool.pas, inline is used. Inline must be switched on with {$INLINE ON} or add -Si to the compiler options in the makefile, because -Si is not in the default config file of FPC. I suggest adding the {$INLINE ON} Done. These things go unnoticed for a while, because -Si *is* part of the default fpc.cfg. In the past such errors usually showed up, if people used an deb created from rpms with alien and forgot to convert the scripts. Vincent _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Lazarus fails to compile ?
On Thu, 12 Oct 2006, Vincent Snijders wrote: Michael Van Canneyt wrote: Lazarus does not compile on my system SuSE 10.1, AMD64. I tried both ppc386 and ppcx64 - version 2.0.4 First of all, in file customcodetool.pas, inline is used. Inline must be switched on with {$INLINE ON} or add -Si to the compiler options in the makefile, because -Si is not in the default config file of FPC. I suggest adding the {$INLINE ON} Done. These things go unnoticed for a while, because -Si *is* part of the default fpc.cfg. Hmmm... Searched for -Si in samplecfg, which didn't find the -Sgic line of course :( Since I don't have a fpc.cfg, that explains my error... In general I think maybe it's best to try and compile at least once with the -n option. This makes sure you don't get such errors ? In the past such errors usually showed up, if people used an deb created from rpms with alien and forgot to convert the scripts. Thanks. I could not fail to notice that you didn't answer the rest of the mail ? ;-) Michael. _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Lazarus fails to compile ?
Michael Van Canneyt wrote: On Thu, 12 Oct 2006, Vincent Snijders wrote: I could not fail to notice that you didn't answer the rest of the mail ? ;-) I answered the pixbuf question in a previous mail (it was easier). Didn't that help? Vincent _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] how are interfaces / virtual functions handled internally
I'll try to write a complete response to you very soon, I'm just very busy at the moment. If I should happen to forget it, will you please send me a private email? Thanks :) -- Regards, Christian Iversen _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] BUG - IpHTMLPanel on Linux WideScreen resolutions
A.J. Venter wrote: I found an annoying (and to me inexplicable) bug in the IpHTMLPanel. On widescreen laptops, it doesn't show the content - at least for SOME panels. I am not yet sure what the difference between the working programs and the broken ones are, I suspect though it's ONLY the size of the panels since I use pretty much the same codebase for these things all the time. OLAD on several machines show the bug - I thought at first it was to do with colour depths, but have confirmed this is NOT the case. Take the EXACT same xorg.conf file. Set it with 1024x768 as the default resolution - html displays fine. Set it with 1280x800 (widescreen) as the default resolution - nothing in the panel. The problem does NOT seem to affect any resolutions with the usual old CRT aspect ratio, it seems specific to the new standard widescreen LCD ratio that's becoming common on laptops - e.g. 1280x800. Any ideas ? I could only roughly guess but it looks like screen resolution is not properly detected and panel contents is resized to zero ? Check TScreen width height (or whatever similar exists in Lazarus) Regards Boguslaw _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Lazarus fails to compile ?
On Thu, 12 Oct 2006, Vincent Snijders wrote: Michael Van Canneyt wrote: On Thu, 12 Oct 2006, Vincent Snijders wrote: I could not fail to notice that you didn't answer the rest of the mail ? ;-) I answered the pixbuf question in a previous mail (it was easier). Didn't that help? I didn't see that mail ? Can you resent it to me in private, please ? Michael. _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] new lazarus component palette images
http://users.volja.net/delfi/lazimages.rar ^^ New lazarus component palette images, if you like these, i am working on more. drop me a line on irc, #lazarus-ide nick: JernejL / Jernej . _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] MS layer for Unicode for Win32 API on Win9x/Me
http://www.microsoft.com/downloads/details.aspx?FamilyID=73BA7BD7-ED06-4F0D- 80A4-2A7EEAEE17E2 http://www.microsoft.com/downloads/details.aspx?FamilyID=73BA7BD7-ED06-4F0D -80A4-2A7EEAEE17E2displaylang=en displaylang=en George Birbilis ([EMAIL PROTECTED]) Computer Informatics Engineer Microsoft MVP J# for 2004-2006 Borland Spirit of Delphi ++ QuickTime, Delphi, ActiveX, .NET components ++ http://www.kagi.com/birbilis ++ Robotics ++ http://www.mech.upatras.gr/~Robotics http://www.mech.upatras.gr/~robgroup _ avast! Antivirus http://www.avast.com : Outbound message clean. Virus Database (VPS): 0641-2, 10/10/2006 Tested on: 12/10/2006 11:58:19 p? avast! - copyright (c) 1988-2006 ALWIL Software. _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] Windows Unicode strategy
Hello, I know this has being discussed before, but I think nothing really concrete was agreed upon. If we were to add Unicode (and with that I mean UTF-8 ) support for Lazarus, without breaking any existing code, how could we do it? Which way is prefered? I see the following possibilities * - Add a {$IFDEF Win32Unicode} on every place that needs to be changed, so we don't break current code * - Create a new widgetset, inherit it from win32, and just reimplement things that use strings. * - Something else? I think that it should be easy to look at all places that use strings on win32 interface and make appropriate changes. My initial idea is to simply switch into using W version of the function, and use UTF8Decode and UTF8Encode to convert back and forth from the API to LCL. People that need Win9x support can do magical tricks to add iso convertion in the future. thanks, -- Felipe Monteiro de Carvalho _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Windows Unicode strategy
My initial idea is to simply switch into using W version of the function, and use UTF8Decode and UTF8Encode to convert back and forth from the API to LCL. People that need Win9x support can do magical tricks to add iso convertion in the future. I totally agree, unicode implemntation for actual os´s is for the start more than enougth. I dont think that many people use win98 or simelar. And also when this is so, you can add an depency to your program in case that unicode support is neesed. Christian _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Res: Re: [lazarus] AssignFile(), Reset(), Write() in Lazarus ????
Necessary of an example using TRecord, Please! Help-me... Open File in '/home/myuser/Desktop/test.bin' Save File in '/home/myuser/Desktop/test.bin' Open for components Edits To save text of the components for File Tanks SEE down: - unit unit1; {$mode objfpc}{$H+} interface uses Classes, SysUtils, LResources, Forms, Controls, Graphics, Dialogs, StdCtrls, Buttons, ExtCtrls; type Example : TRecord Amount : Integer; Question : String; Reply1 : String; Reply2 : String; Reply3 : String; Reply4 : String; Reply5 : String; end; type { TForm1 } TForm1 = class(TForm) Bevel1: TBevel; Btn_Save: TSpeedButton; Btn_Open: TSpeedButton; Edit_Question: TEdit Edit_Reply1: TEdit; Edit_Reply2: TEdit; Edit_Reply3: TEdit; Edit_Reply4: TEdit; Edit_Reply5: TEdit; SpinEdit_Amount : TSpinEdit; Panel1 : TPanel; Label1 : TLabel; Label2 : TLabel; Label3 : TLabel; Label4 : TLabel; Label5 : TLabel; Label6 : TLabel; Label7 : TLabel; procedure Btn_SaveClick(Sender: TObject); procedure Btn_OpenClick(Sender: TObject); private { private declarations } public { public declarations } end; var Form1 : TForm1; // ??? implementation { TForm1 } procedure TForm1.Btn_OpenClick(Sender: TObject); begin // ? end; procedure TForm1.Btn_SaveClick(Sender: TObject); begin // ? end; initialization {$I unit1.lrs} end. --- tks ;) _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] Auto complete error: TMySQL50Connection
Dear all, I get error when using auto complete on lazarus (ctrl+space) with TMySQL50Connection component in form. All component is working properly (can connect to mysql 5 server on design mode) but error occur when I add one button and want to add code into onclick button like this: unit1.pas(17,13) Error: identifier not found: TMySQL50Connection The compilation process is fine with no error. Is there any lib which I have to add on fpc.cfg ? I'm using lazarus v0.9.18 on FC5. Thanks, Diwa _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] First Success with Lazarus!
Hi folks! I am thrilled! My first lazarus program is installed for my school. A simple program to load the pdfs of student photos. Used SqlDB compos to connect to MySql 4.1.1. I have given it on Linux thin client (ltsp). Its working like a song. Thanks to all for the great work and support. My next work is to convert all of my Delphi4 code to lazarus. For this I need the rxlib compos working exactly as in D4. Plz help. Also one problem is of file size. My program is a small one with a Mysql compos and a DBGrid. But the executable size on Linux is 14152093 bytes (14M). Plz help me to reduce size. regards Nataraj begin:vcard fn:http://www.gsis.ac.in n:S Narayan;Nataraj org:Good Shepherd International School;Software adr:Niligiris, ;;M.Palada;Ootacamund;TN;643004;INDIA email;internet:[EMAIL PROTECTED] title:Project Coordinator tel;work:0423 2550371 - 307 x-mozilla-html:TRUE url:http://www.gsis.ac.in version:2.1 end:vcard