Re: [lazarus] Lazarus for win64 available for download from sourceforge

2007-06-01 Thread Vincent Snijders
Carlos German Tejero schreef: Hi,my name is German Tejero, and my english is very bad. I download the lazarus win64 release, and i test it on a Intel Core 2 Duo E6400. I install the lazdaemon package and i discover a bug, when add a TDaemon or a TDaemonMapper, the uses contains duplicated

Re: [lazarus] Resizing an image

2007-06-01 Thread A.J. Venter
Hi Michael, Here is how I do it [I'm sure you can customise it to your needs, factor can also be something like 0.5 (to scale to halfsize)] :) A.J. Procedure Scale(P1 : TPicture;Var P2:TPicture;Factor : Real); Var ARect : TRect; X,Y : Integer; Begin X := Round(P1.Width *

Re: [lazarus] Wince Crossbin utils windows installer don't works

2007-06-01 Thread patrick feillant
hello try this, free download with image os http://www.microsoft.com/downloads/details.aspx?FamilyId=C62D54A5-183A-4A1E-A7E2-CC500ED1F19Adisplaylang=en Then i write in another message When you run your emulateur, you give the repertorie witch is shared between lazarus (compile exe) and the

[lazarus] new Thread Manager Demo

2007-06-01 Thread Graeme Geldenhuys
Hi, I'm busy writing a Thread Manager demo in Lazarus to help me understanding threads better. This demo will then serve as a good example of how to use threads and synchronization. No better way to learn something than writing code! :) A quick summary of what I want to do:

[lazarus] Concurrence and the Pattern: Singleton

2007-06-01 Thread Alvise Nicoletti
I have to implement the pattern Singleton, definition : Ensure a class has only one instance, and provide a global point of access to it. Does the delphi way work good in fpc mode? i never understand the difference between the two modes and actually in my project I got a {$mode objfpc} on the

Re: [lazarus] new Thread Manager Demo

2007-06-01 Thread Alvise Nicoletti
Graeme Geldenhuys ha scritto: Hi, I'm busy writing a Thread Manager demo in Lazarus to help me understanding threads better. This demo will then serve as a good example of how to use threads and synchronization. No better way to learn something than writing code! :) A quick summary of what I

Re: [lazarus] Wince Crossbin utils windows installer don't works

2007-06-01 Thread Alvise Nicoletti
patrick feillant ha scritto: hello try this, free download with image os http://www.microsoft.com/downloads/details.aspx?FamilyId=C62D54A5-183A-4A1E-A7E2-CC500ED1F19Adisplaylang=en http://www.microsoft.com/downloads/details.aspx?FamilyId=C62D54A5-183A-4A1E-A7E2-CC500ED1F19Adisplaylang=en Then

[lazarus] where to put the common files

2007-06-01 Thread Carlos Avogaro
Hi, in delphi I can do this uses Forms, Cadenas in 'c:\proyectos\delphi\commons\cadenas.pas', Unit1; when I do this in lazarus it say that not find cadenas.pas. where I can put the commons files Thanks - Now that's room

Re: [lazarus] Concurrence and the Pattern: Singleton

2007-06-01 Thread Graeme Geldenhuys
On 6/1/07, Alvise Nicoletti [EMAIL PROTECTED] wrote: Does the delphi way work good in fpc mode? i never understand the difference between the two modes and actually in my project I got a {$mode objfpc} on the code. I prefer the 'objfpc' mode because it is more strict with syntax etc... If you

Re: [lazarus] where to put the common files

2007-06-01 Thread Graeme Geldenhuys
The best would be to create a Lazarus Package for you common units. Then add that package to the project. Project - Project Inspector - Add - New Requirement and select your package. Lazarus will then handle all search paths etc for you. You only need to include Cadenas unit in you projects uses

Re: [lazarus] Resizing an image

2007-06-01 Thread Charl van Jaarsveldt
That works! Thank you!! I did try that method before though and then it misbehaved. I wonder what I did differently... Could I make a feature request? It would be nice and convenient to have a getScaledPicture method in TPicture. Charl On 6/1/07, A.J. Venter [EMAIL PROTECTED] wrote: Hi

Re: [lazarus] Concurrence and the Pattern: Singleton

2007-06-01 Thread Alvise Nicoletti
Graeme Geldenhuys ha scritto: On 6/1/07, Alvise Nicoletti [EMAIL PROTECTED] wrote: Does the delphi way work good in fpc mode? i never understand the difference between the two modes and actually in my project I got a {$mode objfpc} on the code. I prefer the 'objfpc' mode because it is more

Re: [lazarus] Concurrence and the Pattern: Singleton

2007-06-01 Thread Graeme Geldenhuys
You will have to protect your writing to file with thread synchronization. We do the exact same thing in the tiOPF2 project. You can look at the code to help with your implementation, or adapt the tiOPF2 code to you liking. The units you might be interested in are tiLog.pas and tiLogToFile.pas

Re: [lazarus] Concurrence and the Pattern: Singleton

2007-06-01 Thread Alvise Nicoletti
Ok, the code works perfectly, without declaring or creating any instance of the class. I have only one note... I get a segmentation fault the first time I used it cause there was a destructor that was freeing the class itself without checking if it was assigned (a check was useless in the

Re: [lazarus] Concurrence and the Pattern: Singleton

2007-06-01 Thread Graeme Geldenhuys
On 6/1/07, Alvise Nicoletti [EMAIL PROTECTED] wrote: I have only one note... I get a segmentation fault the first time I used it cause there was a destructor that was freeing the class itself without checking if it was assigned (a check was useless in the normal way of using it). Without

RE: [lazarus] Using gtk2 interface on Macs

2007-06-01 Thread Hess, Philip J
Felipe, When I tested gtk2 on OS X last winter, I installed Gimp and then just linked against its gtk2 libraries. http://www.apple.com/downloads/macosx/unix_open_source/ Gimp is a universal binary and includes both PowerPC and Intel gtk2 libraries (version 2.6.10). Use the attached custom .cfg

[lazarus] Using gtk2 interface on Macs

2007-06-01 Thread Felipe Monteiro de Carvalho
Hi, Has anyone already tested the gtk2 interface on Macs? I tryed to play with it, but linking a simple app will fail with: Free Pascal Compiler version 2.1.4 [2007/05/08] for i386 Copyright (c) 1993-2007 by Florian Klaempfl Target OS: Darwin for i386 Compiling lclbasictest.lpr Assembling

Re: [lazarus] Using gtk2 interface on Macs

2007-06-01 Thread Mattias Gaertner
On Fri, 1 Jun 2007 12:41:54 -0400 Hess, Philip J [EMAIL PROTECTED] wrote: Felipe, When I tested gtk2 on OS X last winter, I installed Gimp and then just linked against its gtk2 libraries. http://www.apple.com/downloads/macosx/unix_open_source/ Gimp is a universal binary and includes

[lazarus] Screenshots on mac

2007-06-01 Thread Felipe Monteiro de Carvalho
Hi, I already got some sucess with my graphics32 port to carbon-lcl =) I can show a graphcs32 image on screen, and the basic (non font related) drawing functions seam working just automatically. Then I wanted to take a screenshot, but where is the verflixte print screen?? =)) I googled the

Re: [lazarus] Screenshots on mac

2007-06-01 Thread Mattias Gaertner
On Fri, 1 Jun 2007 18:58:16 +0200 Felipe Monteiro de Carvalho [EMAIL PROTECTED] wrote: Hi, I already got some sucess with my graphics32 port to carbon-lcl =) I can show a graphcs32 image on screen, and the basic (non font related) drawing functions seam working just automatically. Then I

Re: [lazarus] Using gtk2 interface on Macs

2007-06-01 Thread Marc Weustink
Mattias Gaertner wrote: On Fri, 1 Jun 2007 12:41:54 -0400 Hess, Philip J [EMAIL PROTECTED] wrote: Felipe, When I tested gtk2 on OS X last winter, I installed Gimp and then just linked against its gtk2 libraries. http://www.apple.com/downloads/macosx/unix_open_source/ Gimp is a universal

Re: [lazarus] Accepting Input on controls which don't have focus

2007-06-01 Thread Dave Coventry
Hi Mattias, Can you tell me how to tell if a TMemo has received mouse wheel events? I've googled a lot for information on this, but haven't had any enlightenment Dave Coventry wrote: Mattias Gaertner wrote: Maybe do this for other platforms: If the image receives focus, set focus

[lazarus] html output

2007-06-01 Thread Andreas Berger
Hi all, Is there a way to convert a form into html or php? I have a client that wants to use an existing program over the net, but not install the program on his machine. Instead he wants to use the browser. Do I need to write a php client or can I convert my existing forms to html/php and

Re: [lazarus] html output

2007-06-01 Thread Michael Van Canneyt
On Fri, 1 Jun 2007, Andreas Berger wrote: Hi all, Is there a way to convert a form into html or php? I have a client that wants to use an existing program over the net, but not install the program on his machine. Instead he wants to use the browser. Do I need to write a php client or can

[lazarus] international dates

2007-06-01 Thread patrick feillant
Hi, I have a Ubuntu 7.04 french installation, so if i type $date --- vendredi 1 juin 2007, 23:14:41 (UTC+0200) That's ok. In Lazarus, the variables ShortDateFormat, LongDateFormat, ShortMonthNames, LongMonthNames ,ShortDayNames.. are initialize in the sysutils initialization section, from the

Re: [lazarus] Screenshots on mac

2007-06-01 Thread Felipe Monteiro de Carvalho
On 6/1/07, Mattias Gaertner [EMAIL PROTECTED] wrote: command+shift+4 Yes, but I press it, a aim appears, so I click on the screen ... and nothing happens (that I can notice at least) -- Felipe Monteiro de Carvalho _ To

Re: [lazarus] Screenshots on mac

2007-06-01 Thread Marc Weustink
Felipe Monteiro de Carvalho wrote: On 6/1/07, Mattias Gaertner [EMAIL PROTECTED] wrote: command+shift+4 Yes, but I press it, a aim appears, so I click on the screen ... and nothing happens (that I can notice at least) What I sometimes used was, VNC to my mac, take screenshot of VNC,

Re: [lazarus] Accepting Input on controls which don't have focus

2007-06-01 Thread Mattias Gaertner
On Fri, 01 Jun 2007 22:25:25 +0200 Dave Coventry [EMAIL PROTECTED] wrote: Hi Mattias, Can you tell me how to tell if a TMemo has received mouse wheel events? Normally you just set the OnMouseWheel event. I just tried: A TMemo does not trigger the OnMouseWheel event under windows. It

Re: [lazarus] Screenshots on mac

2007-06-01 Thread Mattias Gaertner
On Sat, 02 Jun 2007 00:40:02 +0200 Marc Weustink [EMAIL PROTECTED] wrote: Felipe Monteiro de Carvalho wrote: On 6/1/07, Mattias Gaertner [EMAIL PROTECTED] wrote: command+shift+4 Yes, but I press it, a aim appears, so I click on the screen ... and nothing happens (that I can notice at

Re: [lazarus] Lazarus for win64 available for download from sourceforge

2007-06-01 Thread Carlos German Tejero
Hi Vincent: I have many questions, on how work a Lazarus Daemon Application. In unix a Daemon is a process that forks, close the stdin-stdout-stderr and running on backgroup. In the SystemV way, put a script in /etc/init.d/ for start/restart/stop the daemon. In windows a Service, is registered