Re: [Lazarus] MYSQL setup

2008-12-04 Thread Eric March
Joost van der Sluis wrote: Op woensdag 03-12-2008 om 09:40 uur [tijdzone +1030], schreef Eric March: I have set the connection in MySQL50Connection1to SQLTransaction1 As you point out I still can't set the transaction to True, so I leave it False. Now

Re: [Lazarus] Open URL in default browser X-platform

2008-12-04 Thread Graeme Geldenhuys
On Thu, Dec 4, 2008 at 3:03 AM, Michael Schneider [EMAIL PROTECTED] wrote: You can take a look at the script to: http://bbs.archlinux.org/viewtopic.php?id=24208p=1 Interesting idea and I'm sure I can adapt it to a Free Pascal program. Unfortunately I couldn't get any of those scripts working

Re: [Lazarus] real user name

2008-12-04 Thread Andrea Mauri
Marco van de Voort ha scritto: In our previous episode, Andrea Mauri said: I solved using GetUserData procedure from users unit. GetUserData(FpGetuid, Data); Result.Name:= Data.pw_name; Result.Real_name:= Data.pw_gecos; Result.User_id:= Data.pw_uid; Result.Group_id:=

Re: [Lazarus] Open URL in default browser X-platform

2008-12-04 Thread Patrick Chevalley
You can also look at THTMLBrowserHelpViewer.FindDefaultBrowser in lcl/lazhelphtml.pas ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Lazarus-wince screenshots

2008-12-04 Thread Patrick Chevalley
I have a few at the bottom of this page : http://ap-i.net/avl/en/screenshot/start Patrick ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] MYSQL setup

2008-12-04 Thread Joost van der Sluis
Op donderdag 04-12-2008 om 18:40 uur [tijdzone +1030], schreef Eric March: Joost van der Sluis wrote: Op woensdag 03-12-2008 om 09:40 uur [tijdzone +1030], schreef Eric March: I have set the connection in MySQL50Connection1to SQLTransaction1 As you point out I still can't set the

Re: [Lazarus] SQLite database schema has changed

2008-12-04 Thread Luca Olivetti
En/na Luiz Americo Pereira Camara ha escrit: Luca Olivetti escreveu: En/na Luiz Americo Pereira Camara ha escrit: Try to use the function sqlite3_enable_shared_cache with true as parameter in the start of your application. The function declaration: function

Re: [Lazarus] Open URL in default browser X-platform

2008-12-04 Thread Mark Morgan Lloyd
Bart wrote: Hi, I come from Windows/Delphi (3.0) background and I'm gradually moving towards Lazarus/fpc. Opening an URL in Windows is a piece of cake, you just let the OS take care of the assotiations with the http protocol to open it (using shellexecute). This of course will not do

[Lazarus] Lazarus on Mac OS 10.5, 10.4

2008-12-04 Thread Geoffrey Barton
How do I setup Lazarus so that programs compiled under OS 10.5 will also run on machines using 10.4? Geoffrey ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

[Lazarus] lNet servers

2008-12-04 Thread User
If I want that a server put to listen then I make: LTCPComponent1.Listen(Port) What I do if I want that the servant stops listening? How I stop it? Best regards. ___ Lazarus mailing list Lazarus@lazarus.freepascal.org

Re: [Lazarus] Lazarus-wince screenshots

2008-12-04 Thread Marc Weustink
Felipe Monteiro de Carvalho wrote: Ok, I started a gallery here: http://wiki.lazarus.freepascal.org/Windows_CE_Interface#Gallery The clock app is nice, but it's image is rather poluted with the texts. Its an unmodified version of the app I use to demo on windows/linux/osx :) (and I

Re: [Lazarus] Lazarus on Mac OS 10.5, 10.4

2008-12-04 Thread Mattias Gärtner
Zitat von Geoffrey Barton [EMAIL PROTECTED]: How do I setup Lazarus so that programs compiled under OS 10.5 will also run on machines using 10.4? Compile the LCL with -dDisableCWString. You need the lazarus svn source code of 0.9.27. Reason: The current cwstrings unit, which is needed for non

Re: [Lazarus] Lazarus on Mac OS 10.5, 10.4

2008-12-04 Thread Felipe Monteiro de Carvalho
Oh, there is a lot more to it then that! To start with you need to link to the 10.4 framework and you need to have it installed in your computer (I think you probably have if you did a full XCode install). I would ask in Mac-Pascal mailling list if I were you (google). -- Felipe Monteiro de

Re: [Lazarus] LoadLibrary fails on WinCE

2008-12-04 Thread Yury Sidorov
From: Pavel Reznícek [EMAIL PROTECTED] Felipe Monteiro de Carvalho napsal(a): 1 - make sure you are using loadlibrary from the windows unit and then call GetLastError to see why it failed. Windows CE has some differences from desktop. I would try putting the library in the windows or

Re: [Lazarus] Lazarus on Mac OS 10.5, 10.4

2008-12-04 Thread dmitry boyarintsev
you might also need to specify a linker option -macosx_version_min=10.4 don't forget to take a glance at apple mailing list: lists.apple.com ___ Lazarus mailing list Lazarus@lazarus.freepascal.org

Re: [Lazarus] Lazarus on Mac OS 10.5, 10.4

2008-12-04 Thread Mattias Gärtner
Zitat von Felipe Monteiro de Carvalho [EMAIL PROTECTED]: Oh, there is a lot more to it then that! To start with you need to link to the 10.4 framework and you need to have it installed in your computer (I think you probably have if you did a full XCode install). I would ask in Mac-Pascal

[Lazarus] KOL-CE How was overlapping menu fixed?

2008-12-04 Thread Felipe Monteiro de Carvalho
Hello Yuri, How did you implement maximizing a form in KOL-CE? Take a look here: http://wiki.lazarus.freepascal.org/Windows_CE_Development_Notes#Overlapping_menu_bottom I have looked a lot, but it seams impossible to maximize a form perfectly in Windows CE, because sometimes the menu will not

Re: [Lazarus] Lazarus on Mac OS 10.5, 10.4

2008-12-04 Thread Felipe Monteiro de Carvalho
wow! astonishing the last time I read there were all kinds of complicated linking problems to be taken care of. On Thu, Dec 4, 2008 at 1:07 PM, Mattias Gärtner [EMAIL PROTECTED] wrote: Maybe some special controls need some special libs? No, as I understood, this should be a general problem

Re: [Lazarus] KOL-CE How was overlapping menu fixed?

2008-12-04 Thread Yury Sidorov
From: Felipe Monteiro de Carvalho [EMAIL PROTECTED] Hello Yuri, How did you implement maximizing a form in KOL-CE? Take a look here: http://wiki.lazarus.freepascal.org/Windows_CE_Development_Notes#Overlapping_menu_bottom I have looked a lot, but it seams impossible to maximize a form

[Lazarus] Import library not found for libz

2008-12-04 Thread Bob K.
I've uninstalled Lazarus, and re-installed. I checked all the environment options and everything seems fine. I ran some Lazarus example projects and they all work. Version #: 0.9.26 beta Date: 2008-10-05 FPC Version: 2.2.2 SVN Revision: 16885 i386-win32-win32/win64 Windows Vista I've

[Lazarus] checklistbox on XP

2008-12-04 Thread Andrea Mauri
Hi, I am trying to use checklistbox. On linux it seems to be drawn correctly but not on windows (I am trying it on WinXP). The checkboxes in a checklistbox are smaller that the checkbox of a TCheckBox (fonts seem to be the same but boxes are smaller). Is it a bug? Andrea -- Dr. Andrea Mauri,

Re: [Lazarus] Import library not found for libz

2008-12-04 Thread zeljko
On Thursday 04 December 2008 16:59, Bob K. wrote: I've uninstalled Lazarus, and re-installed. I checked all the environment options and everything seems fine. I ran some Lazarus example projects and they all work. Version #: 0.9.26 beta Date: 2008-10-05 FPC Version: 2.2.2 SVN Revision:

Re: [Lazarus] Import library not found for libz

2008-12-04 Thread Bob K.
I copied zlib1.dll to Windows/System32 directory. I then ran Tools | Build Lazarus... and received the same error: C:\lazarus\ide\lazarus.pp(122,1) Error: Import library not found for libz Here's the c:\lazarus\ide\lazarus.pp file: { $Id: lazarus.pp 16543 2008-09-11 11:24:03Z mattias $ } {

[Lazarus] Resources and Version info

2008-12-04 Thread Leonardo M. Ramé
Hi, I'm trying to convert a Delphi Dll to a Lazarus one. After a couple of changes the Dll compiles as expected, the problem is that I need to add some fields to version information resource. When I check Project Options - Version Information - Include version info... The compiler

Re: [Lazarus] lNet servers

2008-12-04 Thread Aleš Katona
On Thu, 4 Dec 2008 16:33:07 +0200 Reenen Laurie [EMAIL PROTECTED] wrote: LTCPComponent1.disconnect perhaps? Exactly. Ales ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] First steps

2008-12-04 Thread Hans-Peter Diettrich
Mattias Gärtner schrieb: 2.1 The help (at least for the browser setup) should occur in hints, because online help relies on a valid browser link. Do you mean: The parameters in the configure help should show hints? The fields in the configure dialog should have hints. 2.3 When the

[Lazarus] lNet no TCP.OnDisconnect at TCP.Disconnect?

2008-12-04 Thread Eugen Bolz
Hey, the Event OnDisconnect, dont get called if i execute TCP.Disconnect ... Why? Is this a Bug? Best Regards, Eugen ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Import library not found for libz

2008-12-04 Thread Bob K.
I received the following message from Adrian Gallero at tmssoftware: Hi Bob, This is actually a bug in Lazarus, in that it can't find zlib1.dll. I don't remember the exact steps, but you can try to: 1) copy zlib1.dll as zlib.dll. 2) copy both zlib1 and zlib2 to a folder where the ide can find

Re: [Lazarus] lNet no TCP.OnDisconnect at TCP.Disconnect?

2008-12-04 Thread Aleš Katona
On Thu, 04 Dec 2008 21:55:23 +0100 Eugen Bolz [EMAIL PROTECTED] wrote: Hey, the Event OnDisconnect, dont get called if i execute TCP.Disconnect ... Why? Is this a Bug? Best Regards, Eugen It shouldn't and it's not a bug. Read the documentation. OnDisconnect is called when the

Re: [Lazarus] lNet servers

2008-12-04 Thread User
Thank you very much. 2008/12/4 Aleš Katona [EMAIL PROTECTED] On Thu, 4 Dec 2008 16:33:07 +0200 Reenen Laurie [EMAIL PROTECTED] wrote: LTCPComponent1.disconnect perhaps? Exactly. Ales ___ Lazarus mailing list Lazarus@lazarus.freepascal.org

[Lazarus] Portable error messages

2008-12-04 Thread Mark Morgan Lloyd
In Windows one can get standard error messages using e.g. SysErrorMessage(GetLastError); If there a portable way (e.g. for Linux and Windows) in FPC? If direct access to the function above is best practice for Windows is there am equivalent for Linux? -- Mark Morgan Lloyd markMLl .AT.

Re: [Lazarus] Resources and Version info

2008-12-04 Thread Henrique Faria
Did you check Version Info - +Additional info? Which version info fields Lazarus doesn't have? Henrique. Date: Thu, 4 Dec 2008 16:37:08 -0300 From: [EMAIL PROTECTED] To: lazarus@lazarus.freepascal.org Subject: [Lazarus] Resources and Version info Hi, I'm trying to convert a Delphi Dll

[Lazarus] Cocoa bindings

2008-12-04 Thread Mac Programmer
It appears as though Felipe has provided a complete set of bindings for doing Cocoa development. Is it possible to cross-compile against these to create an app for the iPhone and iPod Touch? I don't believe the version of OS X on those devices includes the Carbon framework, so it'll have

Re: [Lazarus] Cocoa bindings

2008-12-04 Thread Felipe Monteiro de Carvalho
2008/12/4 Mac Programmer [EMAIL PROTECTED]: It appears as though Felipe has provided a complete set of bindings for doing Cocoa development. Yes, that is correct, althougth I would call it complete at the moment. It has the potential to be complete. If you need any specific classes added to the

Re: [Lazarus] Resources and Version info

2008-12-04 Thread Felipe Monteiro de Carvalho
Make the entire .rc file yourself. Possibly disable the version info taken care by the IDE or create a file with a different name from the one the IDE maintains. Link it to your project with {$R myrcfile.rc} -- Felipe Monteiro de Carvalho ___ Lazarus

Re: [Lazarus] Resources and Version info

2008-12-04 Thread Mac Programmer
In Delphi you can add additional keys to a version info resource in addition to the standard keys, but Lazarus doesn't have a place to define additional keys, only the standard ones. The .rc file supports them okay, so just create it manually. For example, I usually add a key for

Re: [Lazarus] checklistbox on XP

2008-12-04 Thread Paul Ishenin
Andrea Mauri wrote: Hi, I am trying to use checklistbox. On linux it seems to be drawn correctly but not on windows (I am trying it on WinXP). The checkboxes in a checklistbox are smaller that the checkbox of a TCheckBox (fonts seem to be the same but boxes are smaller). Is it a bug?

Re: [Lazarus] Portable error messages

2008-12-04 Thread Graeme Geldenhuys
On Fri, Dec 5, 2008 at 1:36 AM, Mark Morgan Lloyd [EMAIL PROTECTED] wrote: SysErrorMessage(GetLastError); If there a portable way (e.g. for Linux and Windows) in FPC? There is a SysUtils function called GetLastOSError(). it's cross-platform, but I don't know if it is implemented in all

Re: [Lazarus] Resources and Version info

2008-12-04 Thread Graeme Geldenhuys
On Fri, Dec 5, 2008 at 5:05 AM, Mac Programmer [EMAIL PROTECTED] wrote: In Delphi you can add additional keys to a version info resource in addition to the standard keys, but Lazarus doesn't have a place to define additional keys, only the standard ones. Yes it does. Project Options | Version

[Lazarus] GTK1 app give error output to console

2008-12-04 Thread Graeme Geldenhuys
Hi, I'm use the Archiv.tar.gz file which Michael Schneider attached to a message in the open URL in default browser... thread. It's a GTK1 application and I'm using Lazarus 0.9.26 (released version) under Linux. When I run the app, I get the following output to the console... Nowhere in the