Re: [lazarus] Converting Delphi 5 source to Lazarus source

2008-02-11 Thread Mattias Gaertner
On Mon, 11 Feb 2008 18:47:52 +1100
Peter Williams [EMAIL PROTECTED] wrote:

 Hi All,
 
 I have a number of Delphi 5 projects which I want to port to Lazarus
 projects. I there a simple way for me to convert the projects and
 forms  .pas file within them to Lazarus code? I was thinking that
 maybe someone has written a Delphi to Lazarus source code conversion
 program.

IDE Menu / Tools / Convert ...

It can already convert simple projects and is described in our wiki
at 

http://wiki.lazarus.freepascal.org/Code_Conversion_Guide

The wiki seems currently down.
The basic idea is to backup of your Delphi project and then start the
converter on a copy. It changes some files and might
stop with an error. You fix the error and start it again. Repeat this
until it runs through. Then you have to fix the Delphi sugar.


Mattias

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] win32extra merged into FPC

2008-02-11 Thread Felipe Monteiro de Carvalho
On Feb 11, 2008 9:36 AM, Vincent Snijders [EMAIL PROTECTED] wrote:
 I think we should add IFDEF's for fpc 2.2.0 to keep the current code.

That's even better =)

-- 
Felipe Monteiro de Carvalho

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] TTrayIcon problem

2008-02-11 Thread Felipe Monteiro de Carvalho
you can also check the example at your local lazarus dir. I think it's
something like

lazarus/examples/trayicon

-- 
Felipe Monteiro de Carvalho

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] ColorToRGB in console app

2008-02-11 Thread Giuliano Colla

Felipe Monteiro de Carvalho ha scritto:

On Feb 11, 2008 8:21 AM, Vincent Snijders [EMAIL PROTECTED] wrote:

You do not get true console applications under Windows, because all
windows installations have a GUI installed.

All Mac OS X installations too. :-)


Actually Macs have a server edition and althougth I never saw that I
think it doesn't have a gui:

http://en.wikipedia.org/wiki/Xserve



Nope. Take a look at the Getting Started Manual:

http://images.apple.com/server/macosx/docs/Getting_Started_v10.5.pdf

The idea of just point and click is originally an Apple idea. It was 
part of the idea one computer if each house, which was revolutionary 
for the time!



Also, I read somewhere that Microsoft recently launched or at least
made a beta of a new revolutionary Windows Server.

The great inovation? It doesn't have a GUI, so it's more stable



Knowing a bit Redmond people, I'm afraid it's MSDos based! ;-)


Having said that I have also seen Linux and FreeBSD servers with GUI
(KDE) running 24/7. I personally think the technicians were lazy, but
it seamed to work well.



Our Linux based company servers have KDE running 24/7, so that unskilled 
people can check daily backups, and do other minor things, clicking on a 
few dedicated icons on the desktop. No problem whatsoever. Uptime 
depends only on kernel updates.


Giuliano

--
Giuliano Colla

Whenever people agree with me, I always feel I must be wrong (O. Wilde)

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] TTrayIcon problem

2008-02-11 Thread Felipe Monteiro de Carvalho
 FWIW, I use XN Resource Editor to create my main form icon to show in windows
 and that seems to work fine (as does windres for creating the resource) so I
 wonder if its anything to to do with using windres or not ??

Ok, the last difference that I see from here between your project and
the example is the icon file. That shouldn't cause any problem, but
just in case try to use the .ico file from the example on your project
and see if it works.

Also try to compile and run the example project. Those things should
put the problem on a corner.

Anyway, it's just a question of logic, if the example works, how is
your program different?

-- 
Felipe Monteiro de Carvalho

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] TTrayIcon problem

2008-02-11 Thread Lee Jenkins

Felipe Monteiro de Carvalho wrote:

On Feb 11, 2008 3:56 PM, Lee Jenkins [EMAIL PROTECTED] wrote:

M:\lazarus\projects\maestrom:\lazarus\IDE\fpc\2.2.0\bin\i386-win32\windres -i M
:\lazarus\projects\maestro\tray.rc -o m:\lazarus\projects\maestro\tray.res
gcc: installation problem, cannot exec `cpp': No such file or directory
m:\lazarus\IDE\fpc\2.2.0\bin\i386-win32\windres: no resources


windres complains it can't find cpp, which means that your path is
wrong, otherwise he would have found it.

before executing the line above fix the path:

PATH=m:\lazarus\IDE\fpc\2.2.0\bin\i386-win32\

The .res file needs to be generate with windres, you can't use another
tool AFAIK.



Thanks Felipe,

I added the lazarus bin folder to my path as you suggested and that allowed me 
to create the .res file.  However, the icon still will not show up in the task 
bar.  I traced through the code and it is getting called (tried both 
TrayIcon.Show and TrayIcon.Visible := true), but is not showing up in task bar.


FWIW, I use XN Resource Editor to create my main form icon to show in windows 
and that seems to work fine (as does windres for creating the resource) so I 
wonder if its anything to to do with using windres or not ??


Thanks again,

--
Warm Regards,

Lee

Everything I needed to learn in life, I learned selling encyclopedias door to 
door.


_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] TTrayIcon problem

2008-02-11 Thread Felipe Monteiro de Carvalho
On Feb 11, 2008 3:56 PM, Lee Jenkins [EMAIL PROTECTED] wrote:
 M:\lazarus\projects\maestrom:\lazarus\IDE\fpc\2.2.0\bin\i386-win32\windres 
 -i M
 :\lazarus\projects\maestro\tray.rc -o m:\lazarus\projects\maestro\tray.res
 gcc: installation problem, cannot exec `cpp': No such file or directory
 m:\lazarus\IDE\fpc\2.2.0\bin\i386-win32\windres: no resources

windres complains it can't find cpp, which means that your path is
wrong, otherwise he would have found it.

before executing the line above fix the path:

PATH=m:\lazarus\IDE\fpc\2.2.0\bin\i386-win32\

The .res file needs to be generate with windres, you can't use another
tool AFAIK.

-- 
Felipe Monteiro de Carvalho

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Converting Delphi 5 source to Lazarus source

2008-02-11 Thread Wanderlan Santos dos Anjos
see also: http://wiki.lazarus.freepascal.org/XDev_Toolkit

Wanderlan


RE: [lazarus] ColorToRGB in console app

2008-02-11 Thread Hess, Philip J
Hi Graeme,

Thanks for the tips.

Console apps with the Laz GUI linked in (i.e., linked against a
widgetset via inclusion of interfaces unit) work fine on Windows and
Carbon and even with GTK on OS X if run in an X termimal. However, I
would like to be able to have a truer console app (and a much smaller
one too).

ColorToRGB is widgetset-dependent so I can't use that if I want a true
console app.

Another problem I've run into is trying to decide what RGB value to use
for color constants. For example, ColorToRGB(clBtnFace) returns
different RGB values on Windows, OS X Carbon and OS X GTK, as
implemented by the widgetsets' GetSysColor. Probably different values
would also be returned on the same platform depending on user
preferences too. So I guess my problem is how to map color constants for
use, say, in other programs or in a Web browser. Maybe just use a
default Windows set of RGB values or something would make sense.

Thanks.

-Phil


-Original Message-
From: Graeme Geldenhuys [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 11, 2008 2:09 AM
To: lazarus@miraclec.com
Subject: Re: [lazarus] ColorToRGB in console app

On 10/02/2008, Hess, Philip J [EMAIL PROTECTED] wrote:

 Of course, now the app has the same issues as any Mac GUI app compiled
with
 GTK, in that even though it's a console app (sort of), it will only
run under X11. And
 no way to compile for Carbon with lazbuild unless the framework carbon
stuff already
 set in the .lpi.


That's correct. You can't include the 'interfaces' unit in a console
application because it requires (pulls in) GUI code. You will not
notice anything under Windows, because Windows always has a GUI
installed. Under Linux it's easily noticed when you don't run a X
Server and try an execute a console application that uses 'interfaces'
unit.

I had this same issue in the tiOPF project and console unit tests on
my Linux server which doesn't run a X Window server installed.  Some
unit tests required the clipboard, which is a GUI feature in LCL or
VCL. I had to rework the unit tests to exclude those tests when run as
a true console application.

 RGB value _or_ a color constant like clBtnFace (value of 15). If
someone passes a
 color constant to one of these functions, they'll get an unexpected
result. So it
 seems as though RedGreenBlue, etc. should either call ColorToRGB first
or else the
 param type should be


Again correct and what I forgot to mention in my previous post.  If
you pass in a cl color alias (like clBtnFace etc) you first need
to lookup the RGB equivalent color value via ColorToRGB. In fpGUI it's
possible to do without requiring a true GUI installed, but I'm not
sure what would happen under Windows etc...


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

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] TTrayIcon problem

2008-02-11 Thread Lee Jenkins

Felipe Monteiro de Carvalho wrote:

TIcon isn't fully implemented on Windows so it doesn't give a HICON
handle that TTrayIcon needs.

See bug report: http://bugs.freepascal.org/view.php?id=10305

The wiki page explains how to make TTrayIcon work everywhere:
http://wiki.lazarus.freepascal.org/TrayIcon#Demonstration_program_1

thanks,


I tried this using an icon that was already inside a .rc file for windows.  I 
use this for icon of main form in Windows anyway.  I added an additional icon to 
the resource and followed the instructions on the wiki and still no success 
unfortunately.


  SystrayIcon.Icon.Handle :=
  LoadIcon(HINSTANCE, MAKEINTRESOURCE(101));

  SystrayIcon.Visible := true;

I simply added another icon to the resource and called it 101, but obviously 
that is not the way to go.  Must the icon be in its own resource file or can it 
be placed in the existing resource file I already have?


Also, if its dependent on a handle, can I just load an icon from file and then 
pass the handle of that to the TTrayIcon.Icon.Handle property?  I don't think 
this is the case either since I have tried this too with no success.


--
Warm Regards,

Lee

Everything I needed to learn in life, I learned selling encyclopedias door to 
door.


_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] ColorToRGB in console app

2008-02-11 Thread John

Graeme Geldenhuys wrote:


On 11/02/2008, Giuliano Colla [EMAIL PROTECTED] wrote:
 


Our Linux based company servers have KDE running 24/7, so that unskilled
people can check daily backups, and do other minor things, clicking on a
few dedicated icons on the desktop. No problem whatsoever. Uptime
depends only on kernel updates.
   



We run a Windows 2003 server and Ubuntu 6.06 LTS (Linux) server side
by side. The Linux server has no GUI. All maintenance on the Linux
server is done via scripts and works beautifully. I'm thinking of
rewriting some of those scripts into a single maintenance application
using FPC's console GUI framework (that Turbo Pascal look - I can't
remember the name now).

The Linux server does about four times the work compared to the
Windows server, and it's uptime is also way higher (as in months).
Start-up time is also impressive. The Windows server takes about 5-7
minutes to boot - Linux is up in 30 seconds (and it's a slower
machine). The latter drives the windows administrators nuts!  :-)
Based on our company servers I think non-GUI servers kick ass.
but now I'm way off-topic again

Regards,
 - Graeme -

 


Hi Graeme,

I don't doubt anything you have said, but you are mistaking the 
difference between windows and *nix for the difference between gui and 
non-gui.  I ran HP-UX servers for years  without any problems, despite 
always having the CDE GUI environment available. 


cheers,
John

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] ColorToRGB in console app

2008-02-11 Thread Graeme Geldenhuys
On 11/02/2008, Giuliano Colla [EMAIL PROTECTED] wrote:

 Our Linux based company servers have KDE running 24/7, so that unskilled
 people can check daily backups, and do other minor things, clicking on a
 few dedicated icons on the desktop. No problem whatsoever. Uptime
 depends only on kernel updates.

We run a Windows 2003 server and Ubuntu 6.06 LTS (Linux) server side
by side. The Linux server has no GUI. All maintenance on the Linux
server is done via scripts and works beautifully. I'm thinking of
rewriting some of those scripts into a single maintenance application
using FPC's console GUI framework (that Turbo Pascal look - I can't
remember the name now).

The Linux server does about four times the work compared to the
Windows server, and it's uptime is also way higher (as in months).
Start-up time is also impressive. The Windows server takes about 5-7
minutes to boot - Linux is up in 30 seconds (and it's a slower
machine). The latter drives the windows administrators nuts!  :-)
Based on our company servers I think non-GUI servers kick ass.
but now I'm way off-topic again

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] TTrayIcon problem

2008-02-11 Thread Lee Jenkins

Felipe Monteiro de Carvalho wrote:

On Feb 11, 2008 2:43 PM, Lee Jenkins [EMAIL PROTECTED] wrote:

I simply added another icon to the resource and called it 101, but obviously
that is not the way to go.  Must the icon be in its own resource file or can it
be placed in the existing resource file I already have?


I think that being on a separate resource file makes no difference.
Did you rebuild your rc file?


Yes, I rebuilt and opened it up with different editors (VS2005, XNResource) and 
the Icon is there labeled 101 as in the example.


Actually, I had to use XNResource editor to place the icon because the windres 
errors out when I try to use it, not sure what I'm doing wrong with that:


M:\lazarus\projects\maestrom:\lazarus\IDE\fpc\2.2.0\bin\i386-win32\windres -i M
:\lazarus\projects\maestro\tray.rc -o m:\lazarus\projects\maestro\tray.res
gcc: installation problem, cannot exec `cpp': No such file or directory
m:\lazarus\IDE\fpc\2.2.0\bin\i386-win32\windres: no resources

At any rate, the icon is definitely inside the resource file.

I also tried loading an icon and handing the handle to TTrayIcon and that didn't 
seem to work either.


I also tried using the icon suppled with the demo thinking maybe it was 
something with the icon, but that does not work either.  I also tried changing 
the icon ID in the resource from integer to string value just in case, but that 
doesn't work either.


I'm just not sure what I could be doing wrong.

Seems I will have to deploy the sample application in /examples and show that 
when I need to show a try icon ;)



--
Warm Regards,

Lee

Everything I needed to learn in life, I learned selling encyclopedias door to 
door.


_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] TTrayIcon problem

2008-02-11 Thread Felipe Monteiro de Carvalho
On Feb 11, 2008 2:43 PM, Lee Jenkins [EMAIL PROTECTED] wrote:
 I simply added another icon to the resource and called it 101, but obviously
 that is not the way to go.  Must the icon be in its own resource file or can 
 it
 be placed in the existing resource file I already have?

I think that being on a separate resource file makes no difference.
Did you rebuild your rc file?

Recent fpc versions can build it directly from the rc file, but I
don't remeber when that was added. I still do it the old way. Make a
script that will call windres to built it:

PATH=path/to/fpc/bin/dir
windres -i myresource.rc -o myresource.res

And then {$R Resource.res}

 Also, if its dependent on a handle, can I just load an icon from file and then
 pass the handle of that to the TTrayIcon.Icon.Handle property?

Sure, just put a HICON handle there. I never did it this way, so I
don't know what function to use. You can read the msdn docs to see
what functions return a HICON:

http://www.google.com/search?hl=ensafe=activeq=site%3Amsdn2.microsoft.com+HICONbtnG=Search

-- 
Felipe Monteiro de Carvalho

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] ColorToRGB in console app

2008-02-11 Thread mramirez

Quoting Giuliano Colla [EMAIL PROTECTED]:


Knowing a bit Redmond people, I'm afraid it's MSDos based! ;-)


All things old become new again
;-)

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] win32extra merged into FPC

2008-02-11 Thread Marco van de Voort
On Mon, Feb 11, 2008 at 09:50:40AM +0100, Felipe Monteiro de Carvalho wrote:
 On Feb 11, 2008 9:36 AM, Vincent Snijders [EMAIL PROTECTED] wrote:
  I think we should add IFDEF's for fpc 2.2.0 to keep the current code.
 
 That's even better =)

Moreover it only affects win32/64 in the first place. So people grabbing
binaries from outdated package systems is less of a problem. Windows users
generally go for all-in-one installers.

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] TTrayIcon problem

2008-02-11 Thread Felipe Monteiro de Carvalho
TIcon isn't fully implemented on Windows so it doesn't give a HICON
handle that TTrayIcon needs.

See bug report: http://bugs.freepascal.org/view.php?id=10305

The wiki page explains how to make TTrayIcon work everywhere:
http://wiki.lazarus.freepascal.org/TrayIcon#Demonstration_program_1

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] cross-platform balloon tip/help window

2008-02-11 Thread Felipe Monteiro de Carvalho
On Feb 11, 2008 8:51 AM, Graeme Geldenhuys [EMAIL PROTECTED] wrote:
 1)  Do you handle the positioning of the window correctly, even for
 multi-display setups?  Desktop position vs Screen position?

I don't know, I don't have multi-display setups to test.

 2) Does the position get adjusted if the taskbar (say under Windows)
 is located on the left edge or top edge of a screen. For example, I
 use it on the left edge due to a wide screen monitor.  Lots of
 applications don't consider this and position a window in the top
 right *behind* the taskbar.

The tricky part is on TWSCustomTrayIcon.GetPosition. Getting the
position of the tray was quite easy under gtk1. I don't remember if I
also did for gtk2 but it should be very similar.

Under Windows on the other hand it's a nightmare. The best I found is
some crazy code that allocates memory inside the tray application to
query data and goes around like crazy trying to find our icon inside
the taskbar app, and uses some API only available on Windows 2000+
(which is bad because they I have to dinamically load them =(  )

So I took a simpler approach and I try to detect where the tray is
(actually I failed doing that so I just detect where the whole taskbar
is) and try to put the window in a suitable position.

It works nicely here for taskbar on the bottom. Taskbar on the right
it doesn't work. I think taskbar on the left should work.

Anyway, the code is still very young and needs time to mature.

-- 
Felipe Monteiro de Carvalho

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] win32extra merged into FPC

2008-02-11 Thread Marco van de Voort
On Mon, Feb 11, 2008 at 09:16:16AM +0700, Paul Ishenin wrote:
 since 2.2.0. (the shell* units are mostly post 2.2.0 though). Most no
 There are some issues that must be still resolved:
 - TNMLVCustomDraw win32extra definition doesn't match commctrl one.
 
 I will fix this in lazarus. If we look at winapi definition then
 
 typedef struct tagNMLVCUSTOMDRAW {
   NMCUSTOMDRAW nmcd;
   COLORREF clrText;
   COLORREF clrTextBk;
 ...
 }
 
 In lazarus definition NMCUSTOMDRAW fields are moved from nested record 
 field into TNMLVCUSTOMDRAW itself.

Ah, now I see. Note that the winapi version is already in commctrls. It
doesn't need redefinition
 
 - comctrlversion* constants are not known in the SDK. What are these?
 - DSC_ constants are unknown in SDK (DSC_MODAL,  DSC_MODELESS)

(so these will stay)

 notes:
 - cdrf_NOTIFYITEMERASE not available in SDK 6.0!?!?! - added for now
 anyway, since some other constants (swp_*) have comments that defines
from wine were added.
 
 open msdn for NM_CUSTOMDRAW (list view) and you'll see CDRF_NOTIFYITEMERASE

(I grepped the headers of a SDK (6.0) dled last week. No match. Note that I
copied it anyway)

 My full notes of the conversion is here:
 - http://www.stack.nl/~marcov/win32extranotes.txt
 
 I found this:
 swp_* new items added, one not in sdk, but comments says it is from wine.
 
 Comment actually says that this one value is not documented, but windows 
 itself uses it. IIRC name of this const has been taken from wine since 
 there is no official name for undocumented const :)

Yes, but it was good enough, it is copied.
 
 I'll merge these changes to 2.2.1 today, since they mostly are nearly only 
 constants, and then the symbols can be removed/ifdefed from win32extra.
 
 Big thanks.

They were merged to 2.2.1 yesterdayevening, and since your comments don't
need more changes FPC side, I guess Lazarus can start changing when they
want.

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


[lazarus] Language translation...

2008-02-11 Thread Hakan K

Hi,

i plan translate lcl/languages/lclstrconsts.po file to Turkish Language...

What about this and where i can post translated file?

Thanks...

Hakan
(Turkey)


_
Windows Live Messenger'ın için Ücretsiz 30 İfadeyi yükle
http://get.live.com

Re: [lazarus] TTrayIcon problem

2008-02-11 Thread Lee Jenkins

Felipe Monteiro de Carvalho wrote:

TIcon isn't fully implemented on Windows so it doesn't give a HICON
handle that TTrayIcon needs.

See bug report: http://bugs.freepascal.org/view.php?id=10305

The wiki page explains how to make TTrayIcon work everywhere:
http://wiki.lazarus.freepascal.org/TrayIcon#Demonstration_program_1

thanks,


Thanks Felipe,

Wiki was was down last night so I didn't run across the article, just looking at 
the source.




--
Warm Regards,

Lee

Everything I needed to learn in life, I learned selling encyclopedias door to 
door.


_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] win32extra merged into FPC

2008-02-11 Thread Felipe Monteiro de Carvalho
On Feb 11, 2008 8:58 AM, Marco van de Voort [EMAIL PROTECTED] wrote:
 They were merged to 2.2.1 yesterdayevening, and since your comments don't
 need more changes FPC side, I guess Lazarus can start changing when they
 want.

Althougth we already require 2.2.1 for wince I'd rather not also
require for win32 now. The time to download subversion fpc and build
it is considerable, not to mention many people won't know how to do
that (lazarus svn is popular). I'd rather wait for 2.2.2 before
changing that.

-- 
Felipe Monteiro de Carvalho

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] ColorToRGB in console app

2008-02-11 Thread Graeme Geldenhuys
On 11/02/2008, Felipe Monteiro de Carvalho
[EMAIL PROTECTED] wrote:
 
  All Mac OS X installations too. :-)

 Actually Macs have a server edition and althougth I never saw that I
 think it doesn't have a gui:

 http://en.wikipedia.org/wiki/Xserve

I thought there had to be something like that...


 Also, I read somewhere that Microsoft recently launched or at least
 made a beta of a new revolutionary Windows Server.

 The great innovation? It doesn't have a GUI, so it's more stable

And let me guess, they already submitted their patent application for
it.  :-)  Should we tell them *unix has done it since forever!


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] win32extra merged into FPC

2008-02-11 Thread Vincent Snijders

Felipe Monteiro de Carvalho schreef:

On Feb 11, 2008 8:58 AM, Marco van de Voort [EMAIL PROTECTED] wrote:

They were merged to 2.2.1 yesterdayevening, and since your comments don't
need more changes FPC side, I guess Lazarus can start changing when they
want.


Althougth we already require 2.2.1 for wince I'd rather not also
require for win32 now. The time to download subversion fpc and build
it is considerable, not to mention many people won't know how to do
that (lazarus svn is popular). I'd rather wait for 2.2.2 before
changing that.



I think we should add IFDEF's for fpc 2.2.0 to keep the current code.

Vincent

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] GamePack 1.0 Released

2008-02-11 Thread A.J. Venter
I did so, but still the same behavior.  Just to note, I commented out 
the lines and then rebuilt the IDE a couple of times to be sure.

Thanks Lee,
At least it rules out the obvious.
I will be home this weekend where I have a windows machine, I'll give it 
 a shot when I'm there and see if I can locate and fix the bug.


A.J.
--
Any sufficiently advanced technology is indistinguishable from magic - 
Clarke's law
Any technology that is distinguishable from magic is insufficiently 
advanced -Gehm's corollary
Any technologist that is distinguishable from a magician is 
insufficiently advanced - My corollary

The worlds worst webcomic: http://silentcoder.co.za/scartoonz
The worlds best cybercafe manager: http://outkafe.outkastsolutions.co.za

begin:vcard
fn:AJ Venter
n:Venter;AJ
org:Global Pact Trading Pty. Ltd.;OutKast Solutions
email;internet:[EMAIL PROTECTED]
title:Director of Product Development
tel;work:+27 21 554 5059
tel;fax:+27 11 252 9197
tel;cell:+27 83 455 9978
url:http://www.outkastsolutions.co.za
version:2.1
end:vcard



Re: [lazarus] TTrayIcon problem

2008-02-11 Thread Lee Jenkins

Felipe Monteiro de Carvalho wrote:

On Feb 11, 2008 3:56 PM, Lee Jenkins [EMAIL PROTECTED] wrote:

M:\lazarus\projects\maestrom:\lazarus\IDE\fpc\2.2.0\bin\i386-win32\windres -i M
:\lazarus\projects\maestro\tray.rc -o m:\lazarus\projects\maestro\tray.res
gcc: installation problem, cannot exec `cpp': No such file or directory
m:\lazarus\IDE\fpc\2.2.0\bin\i386-win32\windres: no resources


windres complains it can't find cpp, which means that your path is
wrong, otherwise he would have found it.

before executing the line above fix the path:

PATH=m:\lazarus\IDE\fpc\2.2.0\bin\i386-win32\

The .res file needs to be generate with windres, you can't use another
tool AFAIK.



Ah, well that could be the problem.  I'll try it with that command.

Thanks a bunch,

--
Warm Regards,

Lee

Everything I needed to learn in life, I learned selling encyclopedias door to 
door.


_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] LoadCursor replacement

2008-02-10 Thread user1

Thanks! :-)

Paul Ishenin wrote:

[EMAIL PROTECTED] wrote:

I found this in Delphi Win32 code:

  Screen.Cursors[crCrossSmall] := LoadCursor(hInstance, 
'CURSOR_CROSSSMALL');


What is the replacement in Linux?
In LCL you should use this: 
LoadCursorFromLazarusResource('CURSOR_CROSSSMALL') and place cursor in 
..lrs resource.


Best regards,
Paul Ishenin.

_
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] win32extra merged into FPC

2008-02-10 Thread Marco van de Voort

I merged the few remaining symbols into FPC units. Note that most of the
symbols that win32extra provides are already in commctrl, and thus in FPC
since 2.2.0. (the shell* units are mostly post 2.2.0 though). Most no

There are some issues that must be still resolved:

- TNMLVCustomDraw win32extra definition doesn't match commctrl one.
- comctrlversion* constants are not known in the SDK. What are these?
- DSC_ constants are unknown in SDK (DSC_MODAL,  DSC_MODELESS)

notes:

- BIF_* are in shlobj AND shellapi, probably due to conversion error.
One set might disappear as soon as I find out which one Delphi uses.
- cdrf_NOTIFYITEMERASE not available in SDK 6.0!?!?! - added for now
anyway, since some other constants (swp_*) have comments that defines
   from wine were added.
- openfilename struct: windows unit has been strongly updated with comdlg
  structs a while ago. Note that openfilename_nt4 refers to the old struct
  and
  openfilename to the new (w2k) struct, which is slightly different from the
  win32extra version where the _nt4 symbols are simply an alias for the w2k
  one.

My full notes of the conversion is here:
- http://www.stack.nl/~marcov/win32extranotes.txt

I'll merge these changes to 2.2.1 today, since they mostly are nearly only 
constants, and then the symbols can be removed/ifdefed from win32extra.

Lazarus will need some mods, mostly importing of winunits-base units
(commctrl,activex,shlobj,shellapi)


_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


RE: [lazarus] ColorToRGB in console app

2008-02-10 Thread Hess, Philip J
Not concerned about myself. I'm preparing something for others to compile and 
want to make it as easy as possible.

Thanks.

-Phil


-Original Message-
From: Vincent Snijders [mailto:[EMAIL PROTECTED]
Sent: Sun 2/10/2008 1:12 AM
To: lazarus@miraclec.com
Subject: Re: [lazarus] ColorToRGB in console app
 
Hess, Philip J schreef:
 Of course, now the app has the same issues as any Mac GUI app compiled with 
 GTK, in that even though it's a console app (sort of), it will only run under 
 X11. And no way to compile for Carbon with lazbuild unless the framework 
 carbon stuff already set in the .lpi.
 

Maybe you should set the framework parameters in the fpc.cfg, under 
#ifdef LCLCarbon, if you don't want to pass them always.

Vincent

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

winmail.dat

[lazarus] TTrayIcon problem

2008-02-10 Thread Lee Jenkins


Hi all,

Opening up the example project in /example directory, the project works fine. 
However, when I add a TTrayIcon to the main form of my project (assigon icon, 
etc) and execute TrayIcon.Visible := true, the icon doesn't appear in the system 
tray.


Gain, the examples project does, but it loads the icon from a resource.  Is this 
necessary or can I just assign the icon at design time?  Not sure if that has 
anything to do with it...


Thanks for any pointers.

--
Warm Regards,

Lee

Everything I needed to learn in life, I learned selling encyclopedias door to 
door.


_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] win32extra merged into FPC

2008-02-10 Thread Paul Ishenin

Marco van de Voort wrote:

I merged the few remaining symbols into FPC units. Note that most of the
symbols that win32extra provides are already in commctrl, and thus in FPC
since 2.2.0. (the shell* units are mostly post 2.2.0 though). Most no

There are some issues that must be still resolved:

- TNMLVCustomDraw win32extra definition doesn't match commctrl one.


I will fix this in lazarus. If we look at winapi definition then

typedef struct tagNMLVCUSTOMDRAW {
  NMCUSTOMDRAW nmcd;
  COLORREF clrText;
  COLORREF clrTextBk;
...
}

In lazarus definition NMCUSTOMDRAW fields are moved from nested record 
field into TNMLVCUSTOMDRAW itself.



- comctrlversion* constants are not known in the SDK. What are these?

no need to move them to fpc


- DSC_ constants are unknown in SDK (DSC_MODAL,  DSC_MODELESS)


just for internal use = no need to move to fpc


notes:

- cdrf_NOTIFYITEMERASE not available in SDK 6.0!?!?! - added for now
anyway, since some other constants (swp_*) have comments that defines
   from wine were added.


open msdn for NM_CUSTOMDRAW (list view) and you'll see CDRF_NOTIFYITEMERASE


- openfilename struct: windows unit has been strongly updated with comdlg
  structs a while ago. Note that openfilename_nt4 refers to the old struct
  and
  openfilename to the new (w2k) struct, which is slightly different from the
  win32extra version where the _nt4 symbols are simply an alias for the w2k
  one.


hope Vincent will comment


My full notes of the conversion is here:
- http://www.stack.nl/~marcov/win32extranotes.txt


I found this:
swp_* new items added, one not in sdk, but comments says it is from wine.

Comment actually says that this one value is not documented, but windows 
itself uses it. IIRC name of this const has been taken from wine since 
there is no official name for undocumented const :)


I'll merge these changes to 2.2.1 today, since they mostly are nearly only 
constants, and then the symbols can be removed/ifdefed from win32extra.


Big thanks.


Best regards,
Paul Ishenin.

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] ColorToRGB in console app

2008-02-10 Thread Felipe Monteiro de Carvalho
On Feb 11, 2008 8:21 AM, Vincent Snijders [EMAIL PROTECTED] wrote:
  You do not get true console applications under Windows, because all
  windows installations have a GUI installed.

 All Mac OS X installations too. :-)

Actually Macs have a server edition and althougth I never saw that I
think it doesn't have a gui:

http://en.wikipedia.org/wiki/Xserve

Also, I read somewhere that Microsoft recently launched or at least
made a beta of a new revolutionary Windows Server.

The great inovation? It doesn't have a GUI, so it's more stable

Having said that I have also seen Linux and FreeBSD servers with GUI
(KDE) running 24/7. I personally think the technicians were lazy, but
it seamed to work well.

bye,
-- 
Felipe Monteiro de Carvalho

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] ColorToRGB in console app

2008-02-10 Thread Graeme Geldenhuys
On 11/02/2008, Vincent Snijders [EMAIL PROTECTED] wrote:
 
  You do not get true console applications under Windows, because all
  windows installations have a GUI installed.

 All Mac OS X installations too. :-)

Interesting, even servers? Or don't you get Mac OS X servers?  So even
though Macs use the *BSD OS (forgot it's name) as the underlying OS,
you can't install without a GUI? As you can guess I know next to
nothing about Macs.


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] ColorToRGB in console app

2008-02-10 Thread Graeme Geldenhuys
On 10/02/2008, Hess, Philip J [EMAIL PROTECTED] wrote:

 Of course, now the app has the same issues as any Mac GUI app compiled with
 GTK, in that even though it's a console app (sort of), it will only run under 
 X11. And
 no way to compile for Carbon with lazbuild unless the framework carbon stuff 
 already
 set in the .lpi.


That's correct. You can't include the 'interfaces' unit in a console
application because it requires (pulls in) GUI code. You will not
notice anything under Windows, because Windows always has a GUI
installed. Under Linux it's easily noticed when you don't run a X
Server and try an execute a console application that uses 'interfaces'
unit.

I had this same issue in the tiOPF project and console unit tests on
my Linux server which doesn't run a X Window server installed.  Some
unit tests required the clipboard, which is a GUI feature in LCL or
VCL. I had to rework the unit tests to exclude those tests when run as
a true console application.

 RGB value _or_ a color constant like clBtnFace (value of 15). If someone 
 passes a
 color constant to one of these functions, they'll get an unexpected result. 
 So it
 seems as though RedGreenBlue, etc. should either call ColorToRGB first or 
 else the
 param type should be


Again correct and what I forgot to mention in my previous post.  If
you pass in a cl color alias (like clBtnFace etc) you first need
to lookup the RGB equivalent color value via ColorToRGB. In fpGUI it's
possible to do without requiring a true GUI installed, but I'm not
sure what would happen under Windows etc...


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] cross-platform balloon tip/help window

2008-02-10 Thread Felipe Monteiro de Carvalho
On Feb 11, 2008 7:45 AM, Graeme Geldenhuys [EMAIL PROTECTED] wrote:
 Where could I find this cross-platform balloon help window you implemented?

In the Common Controls pallete of a recent Lazarus =)

TTrayIcon uses that to implement ShowBallonHint. It still needs work
to look better, but all the basics are there.

I also added the possibility that the widgetset may override this and
implement it's own, but no widgetset currently does that.

-- 
Felipe Monteiro de Carvalho

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] ColorToRGB in console app

2008-02-10 Thread Vincent Snijders

Graeme Geldenhuys schreef:

On 09/02/2008, Hess, Philip J [EMAIL PROTECTED] wrote:

 This console app runs okay on Delphi. Is there something I'm missing here
or is this just not possible with Lazarus?


You do not get true console applications under Windows, because all
windows installations have a GUI installed. 


All Mac OS X installations too. :-)

Vincent

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


[lazarus] Converting Delphi 5 source to Lazarus source

2008-02-10 Thread Peter Williams
Hi All,

I have a number of Delphi 5 projects which I want to port to Lazarus
projects. I there a simple way for me to convert the projects and
forms  .pas file within them to Lazarus code? I was thinking that
maybe someone has written a Delphi to Lazarus source code conversion
program.

Regards,
  PEW
from Hobart, Tasmania, Australia

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] cross-platform balloon tip/help window

2008-02-10 Thread Graeme Geldenhuys
On 11/02/2008, Felipe Monteiro de Carvalho
[EMAIL PROTECTED] wrote:
  Where could I find this cross-platform balloon help window you implemented?

 In the Common Controls palette of a recent Lazarus =)


Excellent, thanks Felipe.  This is going to come in handy.  :)

I'm sure that looking at the code should answer my questions, but if
you have the time...

1)  Do you handle the positioning of the window correctly, even for
multi-display setups?  Desktop position vs Screen position?

2) Does the position get adjusted if the taskbar (say under Windows)
is located on the left edge or top edge of a screen. For example, I
use it on the left edge due to a wide screen monitor.  Lots of
applications don't consider this and position a window in the top
right *behind* the taskbar.


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] Error: Invalid Free Pascal Source Directory

2008-02-09 Thread Chris Kirkpatrick
Source files will be in /usr/share/fpc ... or somewhere close to that 
(you may have to dig around  a little!)


In general, Lazarus will be in the directory in which it is installed, 
fpc compiler will be in /usr/bin (or there will be a symbolic link from 
/usr/bin/ppc386 to /usr/(local)/lib/fpc/$version/..., make sure ppc386 
is pointing to the correct version of the compiler), fpc units will be 
in /usr/lib/fpc/$version ... or /usr/local/lib/fpc/$version ... and fpc 
sources will be in /usr/share/fpc ...

Regards - Chris

Peter Williams wrote:

Hi Vincent  All,

On 08/02/2008, Vincent Snijders [EMAIL PROTECTED] wrote:
  

Luk Vandelaer schreef:


The correct path for you would be /usr/lib/fpc/2.0.4
Lazarus knows his way from there.
  

No that is the path of the compiled units (.ppu and .o), not for the pascal 
*source*
directory, with .pas, .pp and .inc files.




I am more confused than ever now. Can you please tell me what is the
correct path for Lazarus on a standard Linux Ubuntu system? Note that
I used the Synaptic Package Manager to install Lazarus and it
*appears* to be a complete installation... but give the error message:

  

The current Free Pascal source directory
/usr/lib/fpc/2.0.4/units/i386-linux/
does not look correct.
Choose OK to choose the default .
Otherwise check Environment - Environment Options - File

[OK] [ignore]
  


Help please!!!

Regards,
 PEW   ;-)))
from Hobart, Tasmania, Australia

  

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] Error: Invalid Free Pascal Source Directory

2008-02-09 Thread Mattias Gaertner
On Sat, 9 Feb 2008 18:04:28 +1100
Peter Williams [EMAIL PROTECTED] wrote:

 Hi Vincent  All,
 
 On 08/02/2008, Vincent Snijders [EMAIL PROTECTED] wrote:
  Luk Vandelaer schreef:
  
   The correct path for you would be /usr/lib/fpc/2.0.4
   Lazarus knows his way from there.
 
  No that is the path of the compiled units (.ppu and .o), not for
  the pascal *source* directory, with .pas, .pp and .inc files.
 
 
 I am more confused than ever now. Can you please tell me what is the
 correct path for Lazarus on a standard Linux Ubuntu system? Note that
 I used the Synaptic Package Manager to install Lazarus and it
 *appears* to be a complete installation... 

Sorry. No, it is not complete.
Either try our ubuntu repository or download and install the fpc_src
package from sf:
http://sourceforge.net/project/showfiles.php?group_id=89339

The fpc_src package installs the sources to /usr/share/fpcsrc.


[...] but give the error message:
 
   The current Free Pascal source directory
   /usr/lib/fpc/2.0.4/units/i386-linux/
   does not look correct.
   Choose OK to choose the default .
   Otherwise check Environment - Environment Options - File
  
   [OK] [ignore]
 
 Help please!!!

Mattias

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Win32 compilation error : Import library not found for libz

2008-02-09 Thread Dominique Louis

Hi all,
  Anyone have any ideas?


Dominique

Dominique Louis wrote:

My uses clause is as follows

uses
  Zlib,  // To avoid linking to objects
  Sysutils,
  Classes;

This works fine on Mac OS X, but on Win32 I get the error mentioned.

Yes I'm using the zlib that ships with FPC.


Dominique.

Graeme Geldenhuys wrote:

Are you using/linking a external (.dll or .so) or are you using the
zlib unit  (implementation in object pascal) included with FPC?

Regards,
  - Graeme -


On 30/01/2008, Dominique Louis [EMAIL PROTECTED] wrote:

Hi all,
   I've just been trying to compile some code that makes use of Zlib and
when I try to compile it from within Lazarus I get the following error

Error: Import library not found for libz

at the linking stage. It's the only thing stopping it from linking.

Is this a bug in FPC 2.2.1 or am I missing the libz.o file?

I'm using the snapshot from 27th of Jan 2008, if that makes any 
difference.


Thanks,


Dominique.


_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Win32 compilation error : Import library not found for libz

2008-02-09 Thread Vincent Snijders

Dominique Louis schreef:

Hi all,
  Anyone have any ideas?



Yes, drop zlib and use paszlib.

Vincent

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


[lazarus] LoadCursor replacement

2008-02-09 Thread user1

I found this in Delphi Win32 code:

  Screen.Cursors[crCrossSmall] := LoadCursor(hInstance, 
'CURSOR_CROSSSMALL');


What is the replacement in Linux?




_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] LoadCursor replacement

2008-02-09 Thread Paul Ishenin

[EMAIL PROTECTED] wrote:

I found this in Delphi Win32 code:

  Screen.Cursors[crCrossSmall] := LoadCursor(hInstance, 
'CURSOR_CROSSSMALL');


What is the replacement in Linux?
In LCL you should use this: 
LoadCursorFromLazarusResource('CURSOR_CROSSSMALL') and place cursor in 
.lrs resource.


Best regards,
Paul Ishenin.

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Win32 compilation error : Import library not found for libz

2008-02-09 Thread Dominique Louis

Marco van de Voort wrote:
  I've just been trying to compile some code that makes use of Zlib and 
when I try to compile it from within Lazarus I get the following error


Error: Import library not found for libz

at the linking stage. It's the only thing stopping it from linking.

Is this a bug in FPC 2.2.1 or am I missing the libz.o file?

I'm using the snapshot from 27th of Jan 2008, if that makes any difference.


The zlib unit simply links to the zlib library  (libz.so libz.dll). It seems
that you are missing that one. IOW it is different from the borland one that 
does have a zlib implementation


The paszlib package provides an compatible (though older) zlib
implementation in pascal.



Ok, but shouldn't it work with both?

Are there any plans to update paszlib to a more recent version of zlib?


Dominique.

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Win32 compilation error : Import library not found for libz

2008-02-09 Thread Dominique Louis

Ok, but shouldn't it work with both?

Vincent Snijders wrote:

Dominique Louis schreef:

Hi all,
  Anyone have any ideas?



Yes, drop zlib and use paszlib.

Vincent



_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


[lazarus] FW: [FPC 0010433]: Can't compile IDE to add package

2008-02-09 Thread Hess, Philip J
From time to time I receive blank bug reports like the one below. Today I 
received several so I logged into Mantis and saw that a couple weeks ago there 
was a message to me from Vincent related to this bug - I never saw the 
message, probably because it came to me as a blank e-mail. Is there a simple 
explanation for what's happening here or a way to correct Mantis?

Thanks.

-Phil


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Sat 2/9/2008 2:10 PM
To: Hess, Philip J
Subject: [FPC 0010433]: Can't compile IDE to add package
 





Re[2]: [lazarus] Win32 compilation error : Import library not found for libz

2008-02-09 Thread JoshyFun
Hello Dominique,

Saturday, February 9, 2008, 8:42:46 PM, you wrote:

DL Marco van de Voort wrote:
   I've just been trying to compile some code that makes use of Zlib and
 when I try to compile it from within Lazarus I get the following error

DL Ok, but shouldn't it work with both?
DL Are there any plans to update paszlib to a more recent version of zlib?

Yes, and it works (I'm using both with a $DEFINE) but the zlib needs
zlib1.dll which is AFAIK the regular zlib.dll renamed (reason
unknown).

{$ifdef netware}  {zlib.nlm comes with netware6}
  libz='zlib';
{$else}
  {$ifdef windows}
libz='zlib1';
  {$else windows}
libz='z';
  {$endif windows}
{$endif}

paszlib is 1.1.2 meanwhile zlib is 1.1.3 and AFAIK the difference is
related to a NULL pointer in the 'C' version which may be present or
not in the Pascal version, but as it has not been updated I think that
the paszlib is not affected by the bug.

-- 
Best regards,
 JoshyFunmailto:[EMAIL PROTECTED]

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] FW: [FPC 0010433]: Can't compile IDE to add package

2008-02-09 Thread Vincent Snijders

Hess, Philip J schreef:
 From time to time I receive blank bug reports like the one below. Today 
I received several so I logged into Mantis and saw that a couple weeks 
ago there was a message to me from Vincent related to this bug - I never 
saw the message, probably because it came to me as a blank e-mail. Is 
there a simple explanation for what's happening here or a way to correct 
Mantis?




A bug in Mantis or our coniguration of it, that it doesn't add notes, if 
they are too big. Hopefully it will be fixed, after the upgrade of 
Mantis soon.


Vincent

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Win32 compilation error : Import library not found for libz

2008-02-09 Thread Vincent Snijders

Dominique Louis schreef:

Ok, but shouldn't it work with both?




If you have a compatible zlib dll.

Vincent

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


[lazarus] ColorToRGB in console app

2008-02-09 Thread Hess, Philip J

I need to call ColorToRGB in a console app. Adding Graphics to uses allows 
lazbuild to compile the console app okay, but I get an AV when running it, 
presumably because the widgetset that actually implements ColorToRGB isn't 
getting linked into the app, as evidenced by otool -L (on Mac):

/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current 
version 88.1.10)

If any widgetset code were linked in, I would see something like this:

/System/Library/Frameworks/Carbon.framework/Versions/A/Carbon 
(compatibility version 2.0.0, current version 128.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current 
version 88.1.10)

This console app runs okay on Delphi. Is there something I'm missing here or is 
this just not possible with Lazarus?

Thanks.

-Phil


Re: [lazarus] ColorToRGB in console app

2008-02-09 Thread Mattias Gaertner
On Sat, 9 Feb 2008 15:42:22 -0500
Hess, Philip J [EMAIL PROTECTED] wrote:

 
 I need to call ColorToRGB in a console app. Adding Graphics to uses
 allows lazbuild to compile the console app okay, but I get an AV when
 running it, presumably because the widgetset that actually implements
 ColorToRGB isn't getting linked into the app, as evidenced by otool
 -L (on Mac):
 
 /usr/lib/libSystem.B.dylib (compatibility version 1.0.0,
 current version 88.1.10)
 
 If any widgetset code were linked in, I would see something like this:
 
 /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
 (compatibility version 2.0.0, current version
 128.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0,
 current version 88.1.10)
 
 This console app runs okay on Delphi. Is there something I'm missing
 here or is this just not possible with Lazarus?

Did you add the 'interfaces' unit as one of the first units of your
program?

Mattias

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


RE: [lazarus] ColorToRGB in console app

2008-02-09 Thread Hess, Philip J
Excellent, that's what I was forgetting.

Of course, now the app has the same issues as any Mac GUI app compiled with 
GTK, in that even though it's a console app (sort of), it will only run under 
X11. And no way to compile for Carbon with lazbuild unless the framework carbon 
stuff already set in the .lpi.

Also, looking at some of the functions in Graphics.pp, I wonder if it's 
confusing to use TColor for params with functions like RedGreenBlue, 
InvertColor, etc. TColor can be a full RGB value _or_ a color constant like 
clBtnFace (value of 15). If someone passes a color constant to one of these 
functions, they'll get an unexpected result. So it seems as though 
RedGreenBlue, etc. should either call ColorToRGB first or else the param type 
should be LongInt or something to make it clearer that a color constant should 
not be passed. Same with ColorToRGB - in Delphi the return type is LongInt, not 
TColor, since it only returns RGB values, not color constants.

Thanks.

-Phil



-Original Message-
From: Mattias Gaertner [mailto:[EMAIL PROTECTED]
Sent: Sat 2/9/2008 6:53 PM
To: lazarus@miraclec.com
Subject: Re: [lazarus] ColorToRGB in console app
 
On Sat, 9 Feb 2008 15:42:22 -0500
Hess, Philip J [EMAIL PROTECTED] wrote:

 
 I need to call ColorToRGB in a console app. Adding Graphics to uses
 allows lazbuild to compile the console app okay, but I get an AV when
 running it, presumably because the widgetset that actually implements
 ColorToRGB isn't getting linked into the app, as evidenced by otool
 -L (on Mac):
 
 /usr/lib/libSystem.B.dylib (compatibility version 1.0.0,
 current version 88.1.10)
 
 If any widgetset code were linked in, I would see something like this:
 
 /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
 (compatibility version 2.0.0, current version
 128.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0,
 current version 88.1.10)
 
 This console app runs okay on Delphi. Is there something I'm missing
 here or is this just not possible with Lazarus?

Did you add the 'interfaces' unit as one of the first units of your
program?

Mattias

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

winmail.dat

Re: [lazarus] ColorToRGB in console app

2008-02-09 Thread Vincent Snijders

Hess, Philip J schreef:

Of course, now the app has the same issues as any Mac GUI app compiled with 
GTK, in that even though it's a console app (sort of), it will only run under 
X11. And no way to compile for Carbon with lazbuild unless the framework carbon 
stuff already set in the .lpi.



Maybe you should set the framework parameters in the fpc.cfg, under 
#ifdef LCLCarbon, if you don't want to pass them always.


Vincent

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Error: Invalid Free Pascal Source Directory

2008-02-08 Thread Luk Vandelaer
On Friday 08 February 2008 09:41, Peter Williams wrote:
 Hi all,

 I installed Lazarus and Free Pascal on my Linux Ubuntu pc
 using the Synaptic Package Manager. However, when I start Lazarus I
 get the following error message (see subject).

 The current Free Pascal source directory
 /usr/lib/fpc/2.0.4/units/i386-linux/
 does not look correct.
 Choose OK to choose the default .
 Otherwise check Environment - Environment Options - File

 [OK] [ignore]

   Note that the above listed directory (
 /usr/lib/fpc/2.0.4/units/i386-linux/ ) *does* exist.

   What am I doing wrong?!? Can someone please tell me the URL for
 downloading any files I'm missing and also what is the exact directory
 in which they should reside?

The correct path for you would be /usr/lib/fpc/2.0.4
Lazarus knows his way from there.

Luk

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


[lazarus] Error: Invalid Free Pascal Source Directory

2008-02-08 Thread Peter Williams
Hi all,

I installed Lazarus and Free Pascal on my Linux Ubuntu pc
using the Synaptic Package Manager. However, when I start Lazarus I
get the following error message (see subject).

The current Free Pascal source directory
/usr/lib/fpc/2.0.4/units/i386-linux/
does not look correct.
Choose OK to choose the default .
Otherwise check Environment - Environment Options - File

[OK] [ignore]

  Note that the above listed directory (
/usr/lib/fpc/2.0.4/units/i386-linux/ ) *does* exist.

  What am I doing wrong?!? Can someone please tell me the URL for
downloading any files I'm missing and also what is the exact directory
in which they should reside?

-- 
Fond Regards,
Peter Eric (aka 'pew') WILLIAMS

My free website is:
http://pewtas.googlepages.com  (or)  http://tinyurl.com/yuyejs

(please visit my free website and let me know what you think about it.)

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


[lazarus] postgres revisited

2008-02-08 Thread Alex du Plessis

Hi all

Earlier I reported a problem finding libpq.dll.  I then suspected a 
problem on my disc and did a complete  Windows XP re-install, followed 
by a postgres 8.3 install and then  a  Lazarus 0.9.25  re-install.


I started by changing fpc.cfg to add the library path of the libpq.dll 
file to fpc.cfg and that had no effect.  The TPQConnection still could 
not find the file libpq.dll when trying to set the connection to active. 
Restarting Lazarus also did not improve this situation.(Maybe it needed 
to reread fpc.cfg?).


I finally resorted to copying the  libpq file into /windows/sytem32  
and  tried to connect again. This time  round Lazarus asked for  
ssleay32.dll as well as  vsinit.dll. After duly  downloading and copying 
these files into system32.


On trying to connect this time I get the message The ordinal 284 could 
not be located in the link library SSLEAY32.DLL.  Even trying with 
different versions of ssleay32 does not solve the problem.  At this 
point Lazarus shows the connection as Active in the object inspector 
but seems to be frozen.  Switching to another task in the windows 
taskbar brings Lazarus out of its reverie and gives me the message Can 
not load the PostgreSQL client. Is it installed?(libpq.dll).


Does anybody have any idea how to rectify this problem?

Regards.

Alex

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Error: Invalid Free Pascal Source Directory

2008-02-08 Thread Mattias Gaertner
On Fri, 8 Feb 2008 19:41:11 +1100
Peter Williams [EMAIL PROTECTED] wrote:

 Hi all,
 
 I installed Lazarus and Free Pascal on my Linux Ubuntu pc
 using the Synaptic Package Manager. However, when I start Lazarus I
 get the following error message (see subject).
 
 The current Free Pascal source directory
 /usr/lib/fpc/2.0.4/units/i386-linux/
 does not look correct.
 Choose OK to choose the default .
 Otherwise check Environment - Environment Options - File
 
 [OK] [ignore]
 
   Note that the above listed directory (
 /usr/lib/fpc/2.0.4/units/i386-linux/ ) *does* exist.
 
   What am I doing wrong?!? Can someone please tell me the URL for
 downloading any files I'm missing and also what is the exact directory
 in which they should reside?

The IDE searches the FPC sources, which is provided by a package
called fpc-src.
As ubuntu user, you can use:

http://wiki.lazarus.freepascal.org/Getting_Lazarus#Getting_Lazarus_from_our_Ubuntu_repository

Then you will get the current fpc 2.2.0 too (instead of the old 2.0.4).


Mattias
 

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Error: Invalid Free Pascal Source Directory

2008-02-08 Thread Mattias Gaertner
On Fri, 8 Feb 2008 09:45:00 +0100
Luk Vandelaer [EMAIL PROTECTED] wrote:

 On Friday 08 February 2008 09:41, Peter Williams wrote:
  Hi all,
 
  I installed Lazarus and Free Pascal on my Linux Ubuntu pc
  using the Synaptic Package Manager. However, when I start Lazarus I
  get the following error message (see subject).
 
  The current Free Pascal source directory
  /usr/lib/fpc/2.0.4/units/i386-linux/
  does not look correct.
  Choose OK to choose the default .
  Otherwise check Environment - Environment Options - File
 
  [OK] [ignore]
 
Note that the above listed directory (
  /usr/lib/fpc/2.0.4/units/i386-linux/ ) *does* exist.
 
What am I doing wrong?!? Can someone please tell me the URL
  for downloading any files I'm missing and also what is the exact
  directory in which they should reside?
 
 The correct path for you would be /usr/lib/fpc/2.0.4
 Lazarus knows his way from there.

No. This path contains the FPC binary units - not the FPC sources.


Mattias

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Error: Invalid Free Pascal Source Directory

2008-02-08 Thread Vincent Snijders

Luk Vandelaer schreef:


The correct path for you would be /usr/lib/fpc/2.0.4
Lazarus knows his way from there.


No that is the path of the compiled units (.ppu and .o), not for the pascal *source* 
directory, with .pas, .pp and .inc files.


Vincent

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] postgres revisited

2008-02-08 Thread Vincent Snijders

Alex du Plessis schreef:

Hi all

Earlier I reported a problem finding libpq.dll.  I then suspected a 
problem on my disc and did a complete  Windows XP re-install, followed 
by a postgres 8.3 install and then  a  Lazarus 0.9.25  re-install.


I started by changing fpc.cfg to add the library path of the libpq.dll 
file to fpc.cfg and that had no effect.  The TPQConnection still could 
not find the file libpq.dll when trying to set the connection to active. 
Restarting Lazarus also did not improve this situation.(Maybe it needed 
to reread fpc.cfg?).


I finally resorted to copying the  libpq file into /windows/sytem32  
and  tried to connect again. This time  round Lazarus asked for  
ssleay32.dll as well as  vsinit.dll. After duly  downloading and copying 
these files into system32.


As Marc said a couple of days ago, copying to system32 is not the 'correct' way to 
do this. Add The directory that contains the libpq.dll to the PATH environment 
variable instead.


Vincent

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] postgres revisited

2008-02-08 Thread Alex du Plessis

Marc Weustink wrote:

Alex du Plessis wrote:

Alex du Plessis wrote:

Hi all

Earlier I reported a problem finding libpq.dll.  I then suspected a 
problem on my disc and did a complete  Windows XP re-install, 
followed by a postgres 8.3 install and then  a  Lazarus 0.9.25  
re-install.


I started by changing fpc.cfg to add the library path of the 
libpq.dll file to fpc.cfg and that had no effect.  The TPQConnection 
still could not find the file libpq.dll when trying to set the 
connection to active. Restarting Lazarus also did not improve this 
situation.(Maybe it needed to reread fpc.cfg?).


I finally resorted to copying the  libpq file into /windows/sytem32  
and  tried to connect again. This time  round Lazarus asked for  
ssleay32.dll as well as  vsinit.dll. After duly  downloading and 
copying these files into system32.


On trying to connect this time I get the message The ordinal 284 
could not be located in the link library SSLEAY32.DLL.  Even trying 
with different versions of ssleay32 does not solve the problem.  At 
this point Lazarus shows the connection as Active in the object 
inspector but seems to be frozen.  Switching to another task in the 
windows taskbar brings Lazarus out of its reverie and gives me the 
message Can not load the PostgreSQL client. Is it 
installed?(libpq.dll).


Does anybody have any idea how to rectify this problem?

Regards.

Alex

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Thanx for the advice, I have already adjusted the PATH variable.  
However it still does not solve the problem of looking for an unknown 
ordinal value in ssleay32?


where did you find the SSLEAY32.dll ?
You said you downloaded and copied it ?

Marc

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


I searched on the web and downloaded from there.  Should I have obtained 
it from a specific location?

Copied it into system32.

Alex

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] postgres revisited

2008-02-08 Thread Vincent Snijders

Alex du Plessis schreef:

Marc Weustink wrote:

Alex du Plessis wrote:

Alex du Plessis wrote:

Hi all

Earlier I reported a problem finding libpq.dll.  I then suspected a 
problem on my disc and did a complete  Windows XP re-install, 
followed by a postgres 8.3 install and then  a  Lazarus 0.9.25  
re-install.


I started by changing fpc.cfg to add the library path of the 
libpq.dll file to fpc.cfg and that had no effect.  The TPQConnection 
still could not find the file libpq.dll when trying to set the 
connection to active. Restarting Lazarus also did not improve this 
situation.(Maybe it needed to reread fpc.cfg?).


I finally resorted to copying the  libpq file into /windows/sytem32  
and  tried to connect again. This time  round Lazarus asked for  
ssleay32.dll as well as  vsinit.dll. After duly  downloading and 
copying these files into system32.


On trying to connect this time I get the message The ordinal 284 
could not be located in the link library SSLEAY32.DLL.  Even trying 
with different versions of ssleay32 does not solve the problem.  At 
this point Lazarus shows the connection as Active in the object 
inspector but seems to be frozen.  Switching to another task in the 
windows taskbar brings Lazarus out of its reverie and gives me the 
message Can not load the PostgreSQL client. Is it 
installed?(libpq.dll).


Does anybody have any idea how to rectify this problem?

Regards.

Alex

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Thanx for the advice, I have already adjusted the PATH variable.  
However it still does not solve the problem of looking for an unknown 
ordinal value in ssleay32?


where did you find the SSLEAY32.dll ?
You said you downloaded and copied it ?

Marc

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


I searched on the web and downloaded from there.  Should I have obtained 
it from a specific location?

Copied it into system32.




I have ssleay32.dll in C:\Program Files\PostgreSQL\8.3\bin, which was created when 
installing PostgreSQL 8.3 the other day.


Vincent

P.S. How hard is it to remove footers from an email before replying?

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] postgres revisited

2008-02-08 Thread Marc Weustink

Alex du Plessis wrote:

Alex du Plessis wrote:

Hi all

Earlier I reported a problem finding libpq.dll.  I then suspected a 
problem on my disc and did a complete  Windows XP re-install, followed 
by a postgres 8.3 install and then  a  Lazarus 0.9.25  re-install.


I started by changing fpc.cfg to add the library path of the libpq.dll 
file to fpc.cfg and that had no effect.  The TPQConnection still could 
not find the file libpq.dll when trying to set the connection to 
active. Restarting Lazarus also did not improve this situation.(Maybe 
it needed to reread fpc.cfg?).


I finally resorted to copying the  libpq file into /windows/sytem32  
and  tried to connect again. This time  round Lazarus asked for  
ssleay32.dll as well as  vsinit.dll. After duly  downloading and 
copying these files into system32.


On trying to connect this time I get the message The ordinal 284 
could not be located in the link library SSLEAY32.DLL.  Even trying 
with different versions of ssleay32 does not solve the problem.  At 
this point Lazarus shows the connection as Active in the object 
inspector but seems to be frozen.  Switching to another task in the 
windows taskbar brings Lazarus out of its reverie and gives me the 
message Can not load the PostgreSQL client. Is it 
installed?(libpq.dll).


Does anybody have any idea how to rectify this problem?

Regards.

Alex

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Thanx for the advice, I have already adjusted the PATH variable.  
However it still does not solve the problem of looking for an unknown 
ordinal value in ssleay32?


where did you find the SSLEAY32.dll ?
You said you downloaded and copied it ?

Marc

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] My first GUI Application

2008-02-08 Thread Gerard N/A
Looks nice, congrats.

Gerard.


Re: [lazarus] GTK2 Help [OT]

2008-02-08 Thread ik
Hi,

If you can, try to install debian instead (Sorry, I just don't like RH
distro's thy sucks imho) ;)

You should know that with yum you must first clean the repository
cache, and then read it again (as I said, they sucks). The best way is
to add a new repository with your rpm's made for centos 4.4, and last,
try to upgrade to centos 5.5 final.

Ido

On Feb 8, 2008 3:34 AM, Lee Jenkins [EMAIL PROTECTED] wrote:

 Hi all,

 Sorry for off topic request, but I'd like to see what an app looks like on 
 gtk2
 and I'm having a dickens of a time trying to upgrade my current gtk2 on Centos
 4.4.

 Can someone suggest a simple way to upgrade this?  I've tried yum, but it
 doesn't seem to think there is a new version of gtk2 than my current 2.4.13-22
 version.

 Thanks and sorry for OT post.

 --
 Warm Regards,

 Lee

 Everything I needed to learn in life, I learned selling encyclopedias door to
 door.

 _
  To unsubscribe: mail [EMAIL PROTECTED] with
 unsubscribe as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives




-- 
http://ik.homelinux.org/

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] My first GUI Application

2008-02-08 Thread ik
Wow, cool application. What version of Asterisk does your manager works with ?

Ido

On Feb 8, 2008 7:41 AM, Lee Jenkins [EMAIL PROTECTED] wrote:

 I've written several console/daemon apps with Lazarus/Freepascal, but this is 
 my
 first GUI app that really does anything and aside from some gotchas getting it
 to run on Linux (developed on WinXP), it seems to be running very well.

 http://leebo.dreamhosters.com/images/guiApp.png

 There's a few idiosyncrasies with the fonts (size, etc) between Win32 and GTK,
 but all in all, I'm very happy with results thus far.

 Kudos to the developers and community.

 I'm hooked.

 --
 Warm Regards,

 Lee

 Everything I needed to learn in life, I learned selling encyclopedias door to
 door.

 _
  To unsubscribe: mail [EMAIL PROTECTED] with
 unsubscribe as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives




-- 
http://ik.homelinux.org/

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] postgres revisited

2008-02-08 Thread Alex du Plessis

Alex du Plessis wrote:

Hi all

Earlier I reported a problem finding libpq.dll.  I then suspected a 
problem on my disc and did a complete  Windows XP re-install, followed 
by a postgres 8.3 install and then  a  Lazarus 0.9.25  re-install.


I started by changing fpc.cfg to add the library path of the libpq.dll 
file to fpc.cfg and that had no effect.  The TPQConnection still could 
not find the file libpq.dll when trying to set the connection to 
active. Restarting Lazarus also did not improve this situation.(Maybe 
it needed to reread fpc.cfg?).


I finally resorted to copying the  libpq file into /windows/sytem32  
and  tried to connect again. This time  round Lazarus asked for  
ssleay32.dll as well as  vsinit.dll. After duly  downloading and 
copying these files into system32.


On trying to connect this time I get the message The ordinal 284 
could not be located in the link library SSLEAY32.DLL.  Even trying 
with different versions of ssleay32 does not solve the problem.  At 
this point Lazarus shows the connection as Active in the object 
inspector but seems to be frozen.  Switching to another task in the 
windows taskbar brings Lazarus out of its reverie and gives me the 
message Can not load the PostgreSQL client. Is it 
installed?(libpq.dll).


Does anybody have any idea how to rectify this problem?

Regards.

Alex

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Thanx for the advice, I have already adjusted the PATH variable.  
However it still does not solve the problem of looking for an unknown 
ordinal value in ssleay32?


_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] postgres revisited

2008-02-08 Thread Alex du Plessis

Vincent Snijders wrote:

Alex du Plessis schreef:

Marc Weustink wrote:

Alex du Plessis wrote:

Alex du Plessis wrote:

Hi all

Earlier I reported a problem finding libpq.dll.  I then suspected 
a problem on my disc and did a complete  Windows XP re-install, 
followed by a postgres 8.3 install and then  a  Lazarus 0.9.25  
re-install.


I started by changing fpc.cfg to add the library path of the 
libpq.dll file to fpc.cfg and that had no effect.  The 
TPQConnection still could not find the file libpq.dll when trying 
to set the connection to active. Restarting Lazarus also did not 
improve this situation.(Maybe it needed to reread fpc.cfg?).


I finally resorted to copying the  libpq file into 
/windows/sytem32  and  tried to connect again. This time  round 
Lazarus asked for  ssleay32.dll as well as  vsinit.dll. After 
duly  downloading and copying these files into system32.


On trying to connect this time I get the message The ordinal 284 
could not be located in the link library SSLEAY32.DLL.  Even 
trying with different versions of ssleay32 does not solve the 
problem.  At this point Lazarus shows the connection as Active 
in the object inspector but seems to be frozen.  Switching to 
another task in the windows taskbar brings Lazarus out of its 
reverie and gives me the message Can not load the PostgreSQL 
client. Is it installed?(libpq.dll).


Does anybody have any idea how to rectify this problem?

Regards.

Alex

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Thanx for the advice, I have already adjusted the PATH variable.  
However it still does not solve the problem of looking for an 
unknown ordinal value in ssleay32?


where did you find the SSLEAY32.dll ?
You said you downloaded and copied it ?

Marc

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


I searched on the web and downloaded from there.  Should I have 
obtained it from a specific location?

Copied it into system32.




I have ssleay32.dll in C:\Program Files\PostgreSQL\8.3\bin, which was 
created when installing PostgreSQL 8.3 the other day.


Vincent

P.S. How hard is it to remove footers from an email before replying?

It seems I'm the right real idiot for the day - my apologies for not 
looking properly and for not removing footers. 


Thanks for the advice on postgres.

Regards

Alex

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] My first GUI Application

2008-02-08 Thread Lee Jenkins

ik wrote:

On Feb 8, 2008 3:43 PM, Lee Jenkins [EMAIL PROTECTED] wrote:

ik wrote:

Wow, cool application. What version of Asterisk does your manager works with ?

Ido


Thanks guys,

I'm on Asterisk 1.2.12 here at my office, but I'd assume that it would work on
1.4 as well.  I don't think they made any breakable changes to AMI in 1.4.


There are additions to 1.4 and 1.6


I will check these out.  But if the (ugly) protocol for AMI remains backwards 
compatible then again, I assume that it would work.  I will definitely check out 
the addition to AMI as I have been hoping for more standardized output.



A business associate introduced me to Asterisk a year or so ago and I'm addicted
to it since.  This current project is actually a rewrite of one of 3 existing
products that I've written for Asterisk (not counting AGI apps, etc) already.


I worked at a company that developed applications above Asterisk,
until they stopped developing, and now I'm a freelancer in this field.
I also added support for Asterisk to talk in proper Hebrew (the
recordings are from a person that does it for a living), and now I'm
writing some Asterisk module for a test, I'll release it under GPL.
And I'm also the co-editor of www.asterisk.org.il :)


Look informative from the volume of text.  I can't read Hebrew ;)


http://www.datatrakpos.com/pos/datatalk/Default.aspx
(Delphi)

http://www.datatrakpos.com/pos/datatalk/asterpas.aspx
(Lazarus/Freepascal/Rem PascalScript)

http://www.datatrakpos.com/pos/datatalk/maestro.aspx
(Delphi - currently being re-written in lazarus)

I've also written several little applications including a wrapper around
AGI/FastAGI for ObjectPascal, Cepstral Swift AGI Wrapper, etc.


I started working on AGI/FastAGI library for lnet 6 months ago, but I
do not have time to finish it (and it requires some rewrite).


I'm thinking of releasing ours under LGPL so that others are able to help with 
its development.  Ours is written with Synapse and RemObjects pascalscript 
engine.  Please let me know if you are interested.


I forgot to mention that I also wrote a proxy server for AMI recently too.  I 
know there is a couple out there already (AstManProxy), but sometimes its better 
to write your own so you can have control over its features and destiny, I think.



Someone else in our office is working on integration between Asterisk and our
P.O.S. application for for use with Drive Thru's, Pizza Delivery operations as 
well.

Asterisk is a lot like FreePascal/Lazarus.  Once its under your skin, its
difficult to dig it out!


Well, if Asterisk would have written in FPC, then things would be even
better ;) But Mark told us (I met him last year) that he loves C :(



Yes, many C zealots over there, but I don't know C (other than to read it a bit) 
so I cannot contribute anything to the project itself.  I was going to learn C, 
but I think I'd rather sand paper sensitive parts of my body instead ;)


It would be very interesting to see an application with the same complexity of 
Asterisk written in FPC, especially from a performance standpoint.


Mark seems like a very nice fellow.  He was on the VOIP conference last Friday 
or the Friday before, I think.


--
Warm Regards,

Lee

Everything I needed to learn in life, I learned selling encyclopedias door to 
door.


_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Open URL in a browser

2008-02-08 Thread Luca Olivetti

En/na Antonio Sanguigni ha escrit:


Thanks all, guys. I'll have a look at your suggests.


Note that all suggestions are distro specific. As more and more distro 
move to freedesktop, maybe the best cross-distro solution is to use the 
freedesktop standards, e.g. xdg-open:


http://portland.freedesktop.org/wiki/XdgUtils

(but then you have to provide a fall-back if xdg is not available)

Bye
--
Luca Olivetti
Wetron Automatización S.A. http://www.wetron.es/
Tel. +34 93 5883004  Fax +34 93 5883007

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] GamePack 1.0 Released

2008-02-08 Thread Lee Jenkins

A.J. Venter wrote:


I downloaded and installed the components fine.  However, when trying 
to load the demo project, the IDE hangs and eats up 50% CPU.  End 
Task'ing the lazarus process in Windows is necessary at that point.


Is this only linux/gtk?  Or is Win32 supported?

Hi Lee,
It's definitely meant to be a multiplatform suite.
You seem to have discovered a win32 specific bug. Since I only use 
native components that means that it must be something the w32 widget 
set does different.
Logically - only visual components could have issues with widget set 
implementations. That limits it to TDoubleBuffer.
The only part of TDoubleBuffer that is active during design is the paint 
method - so it seems win32 isn't handling that right.


Please try the following for me (I have no access to a windows machine 
for a while)

Fine the lines in doublebuffer.pas that read:

if csDesigning in ComponentState then
Self.Canvas.CopyRect(rect(0,0,width,height),FBackground.BitMap.Canvas,rect(0,0,width,height)); 



And comment them out.
This will have no impact on running programs, it will just prevent the 
background from being visible at designtime - but it may solve your 
problem. Please let me know if it does, so I can update the code on my 
side (I would use an IFDEF I imagine).

Win32 experts: If this works, how SHOULD I do it instead ?

Ciao
A.J.


I did so, but still the same behavior.  Just to note, I commented out the lines 
and then rebuilt the IDE a couple of times to be sure.


--
Warm Regards,

Lee

Everything I needed to learn in life, I learned selling encyclopedias door to 
door.


_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] My first GUI Application

2008-02-08 Thread ik
On Feb 8, 2008 3:43 PM, Lee Jenkins [EMAIL PROTECTED] wrote:
 ik wrote:
  Wow, cool application. What version of Asterisk does your manager works 
  with ?
 
  Ido
 

 Thanks guys,

 I'm on Asterisk 1.2.12 here at my office, but I'd assume that it would work on
 1.4 as well.  I don't think they made any breakable changes to AMI in 1.4.

There are additions to 1.4 and 1.6


 A business associate introduced me to Asterisk a year or so ago and I'm 
 addicted
 to it since.  This current project is actually a rewrite of one of 3 existing
 products that I've written for Asterisk (not counting AGI apps, etc) already.

I worked at a company that developed applications above Asterisk,
until they stopped developing, and now I'm a freelancer in this field.
I also added support for Asterisk to talk in proper Hebrew (the
recordings are from a person that does it for a living), and now I'm
writing some Asterisk module for a test, I'll release it under GPL.
And I'm also the co-editor of www.asterisk.org.il :)


 http://www.datatrakpos.com/pos/datatalk/Default.aspx
 (Delphi)

 http://www.datatrakpos.com/pos/datatalk/asterpas.aspx
 (Lazarus/Freepascal/Rem PascalScript)

 http://www.datatrakpos.com/pos/datatalk/maestro.aspx
 (Delphi - currently being re-written in lazarus)

 I've also written several little applications including a wrapper around
 AGI/FastAGI for ObjectPascal, Cepstral Swift AGI Wrapper, etc.

I started working on AGI/FastAGI library for lnet 6 months ago, but I
do not have time to finish it (and it requires some rewrite).


 Someone else in our office is working on integration between Asterisk and our
 P.O.S. application for for use with Drive Thru's, Pizza Delivery operations 
 as well.

 Asterisk is a lot like FreePascal/Lazarus.  Once its under your skin, its
 difficult to dig it out!

Well, if Asterisk would have written in FPC, then things would be even
better ;) But Mark told us (I met him last year) that he loves C :(


 --

 Warm Regards,

 Lee

 Everything I needed to learn in life, I learned selling encyclopedias door to
 door.



Ido
-- 
http://ik.homelinux.org/

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] GTK2 Help [OT]

2008-02-08 Thread Lee Jenkins

ik wrote:

Hi,

If you can, try to install debian instead (Sorry, I just don't like RH
distro's thy sucks imho) ;)

You should know that with yum you must first clean the repository
cache, and then read it again (as I said, they sucks). The best way is
to add a new repository with your rpm's made for centos 4.4, and last,
try to upgrade to centos 5.5 final.

Ido



Hi Ido,

Thanks for the tip.  Other distros scare me ;)  I may try ubuntu as people seem 
to feel that one is pretty easy to setup an administer.  I'm pretty confident 
that any shortcomings of CentOS are overshadowed by my inexperience with linux 
in general anyway ;)


I'll give Debian a try as well as ubuntu when a I get a chance.

Again, thanks for the tip.


--
Warm Regards,

Lee

Everything I needed to learn in life, I learned selling encyclopedias door to 
door.


_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


[lazarus] Form.SessionProperites question

2008-02-08 Thread Lee Jenkins


Hi all,

First, great job on the SessionProperties functionality, a great feature.

Secondly, I have a couple of questions in using it with TXMLPropStorage 
component.

1. (More of an issue than a question) The settings do not seem to get saved when 
you close the form from code (calling forms .Close method) or if I create the 
form with another form as owner and then close the owner form.


2. Can someone lend a tip to be able to control the settings at runtime?  In 
other words, I'd like to be able to create multiple profiles and when applied, 
they load the forms with TXMLPropStorage and force them to use a specific so 
that the user can have different placement of applicable forms when they want.


I'm assuming this could be done in OnRestoreProperties or OnRestoringProperties 
to specify the file to use?


Thanks again,

--
Warm Regards,

Lee

Everything I needed to learn in life, I learned selling encyclopedias door to 
door.


_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] GTK2 Help [OT]

2008-02-08 Thread Lee Jenkins

Giuliano Colla wrote:

Lee Jenkins ha scritto:

ik wrote:

Hi,

If you can, try to install debian instead (Sorry, I just don't like RH
distro's thy sucks imho) ;)

You should know that with yum you must first clean the repository
cache, and then read it again (as I said, they sucks). The best way is
to add a new repository with your rpm's made for centos 4.4, and last,
try to upgrade to centos 5.5 final.

Ido



Hi Ido,

Thanks for the tip.  Other distros scare me ;)  I may try ubuntu as 
people seem to feel that one is pretty easy to setup an administer.  
I'm pretty confident that any shortcomings of CentOS are overshadowed 
by my inexperience with linux in general anyway ;)




My rule of thumb with Linux distros.

More or less all of them try to make your life easy if you don't have 
enough GB on your HD, so they propose a subset of packages for normal, 
workstation or whatever, which provides you with a minimal set for 
with what you need to surf the web, to write your documents, etc.
But if you need to make some kind of development (even just install a 
source package) you end up missing a lot of -devel packages, which have 
different names for each distro, and you have a hell of a time sorting 
out what you need.


My solution has always been: install everything.

If you don't have disk space constraints it's the easiest way out. You 
lose some disk space, but save a lot of time, and have always at hand 
what you need.


rpm or deb based doesn't make a big difference: with deb you have 
apt-get as default, but you may install it also in non deb distros, rpm 
distro's use yum which gives pretty much the same functionalities.


Just my 2 cents.

Giuliano



Thanks Giuliano,

I usually check the Developer packets on CentOS installation wizard.

Thanks for the tip.

--
Warm Regards,

Lee

Everything I needed to learn in life, I learned selling encyclopedias door to 
door.


_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Open URL in a browser

2008-02-08 Thread micahel schneider
Am Freitag 08 Februar 2008 schrieb Luca Olivetti:
 En/na Antonio Sanguigni ha escrit:
  Thanks all, guys. I'll have a look at your suggests.

 Note that all suggestions are distro specific. As more and more distro
 move to freedesktop, maybe the best cross-distro solution is to use the
 freedesktop standards, e.g. xdg-open:

 http://portland.freedesktop.org/wiki/XdgUtils

 (but then you have to provide a fall-back if xdg is not available)

kfmclient exec for KDE (kfmclient exec http://kde.org )
gnome-open for Gnome (gnome-open http://gnome.org)
exo-open for XFCE

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] My first GUI Application

2008-02-08 Thread Lee Jenkins

ik wrote:

On Feb 8, 2008 3:43 PM, Lee Jenkins [EMAIL PROTECTED] wrote:

ik wrote:

Wow, cool application. What version of Asterisk does your manager works with ?

Ido


Thanks guys,

I'm on Asterisk 1.2.12 here at my office, but I'd assume that it would work on
1.4 as well.  I don't think they made any breakable changes to AMI in 1.4.


There are additions to 1.4 and 1.6


Apparently, not just additions, but changes that impact my existing code and 
what it looks for when events and request responses arrive:


http://svn.digium.com/view/asterisk/trunk/doc/manager_1_1.txt?revision=98152view=markup

--
Warm Regards,

Lee

Everything I needed to learn in life, I learned selling encyclopedias door to 
door.


_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] GTK2 Help [OT]

2008-02-08 Thread Giuliano Colla

Lee Jenkins ha scritto:

ik wrote:

Hi,

If you can, try to install debian instead (Sorry, I just don't like RH
distro's thy sucks imho) ;)

You should know that with yum you must first clean the repository
cache, and then read it again (as I said, they sucks). The best way is
to add a new repository with your rpm's made for centos 4.4, and last,
try to upgrade to centos 5.5 final.

Ido



Hi Ido,

Thanks for the tip.  Other distros scare me ;)  I may try ubuntu as 
people seem to feel that one is pretty easy to setup an administer.  I'm 
pretty confident that any shortcomings of CentOS are overshadowed by my 
inexperience with linux in general anyway ;)




My rule of thumb with Linux distros.

More or less all of them try to make your life easy if you don't have 
enough GB on your HD, so they propose a subset of packages for normal, 
workstation or whatever, which provides you with a minimal set for 
with what you need to surf the web, to write your documents, etc.
But if you need to make some kind of development (even just install a 
source package) you end up missing a lot of -devel packages, which have 
different names for each distro, and you have a hell of a time sorting 
out what you need.


My solution has always been: install everything.

If you don't have disk space constraints it's the easiest way out. You 
lose some disk space, but save a lot of time, and have always at hand 
what you need.


rpm or deb based doesn't make a big difference: with deb you have 
apt-get as default, but you may install it also in non deb distros, rpm 
distro's use yum which gives pretty much the same functionalities.


Just my 2 cents.

Giuliano

--
Giuliano Colla

Whenever people agree with me, I always feel I must be wrong (O. Wilde)

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] My first GUI Application

2008-02-08 Thread Lee Jenkins

ik wrote:

Wow, cool application. What version of Asterisk does your manager works with ?

Ido



Thanks guys,

I'm on Asterisk 1.2.12 here at my office, but I'd assume that it would work on 
1.4 as well.  I don't think they made any breakable changes to AMI in 1.4.


A business associate introduced me to Asterisk a year or so ago and I'm addicted 
to it since.  This current project is actually a rewrite of one of 3 existing 
products that I've written for Asterisk (not counting AGI apps, etc) already.


http://www.datatrakpos.com/pos/datatalk/Default.aspx
(Delphi)

http://www.datatrakpos.com/pos/datatalk/asterpas.aspx
(Lazarus/Freepascal/Rem PascalScript)

http://www.datatrakpos.com/pos/datatalk/maestro.aspx
(Delphi - currently being re-written in lazarus)

I've also written several little applications including a wrapper around 
AGI/FastAGI for ObjectPascal, Cepstral Swift AGI Wrapper, etc.


Someone else in our office is working on integration between Asterisk and our 
P.O.S. application for for use with Drive Thru's, Pizza Delivery operations as well.


Asterisk is a lot like FreePascal/Lazarus.  Once its under your skin, its 
difficult to dig it out!


--
Warm Regards,

Lee

Everything I needed to learn in life, I learned selling encyclopedias door to 
door.


_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] FPC compiler for virtual machines?

2008-02-07 Thread Marco van de Voort
On Wed, Feb 06, 2008 at 11:37:41PM +0100, Felipe Monteiro de Carvalho wrote:
 On Feb 6, 2008 10:45 PM, Marco van de Voort [EMAIL PROTECTED] wrote:
  There already is FPC on mobile devices.
 
  For the rest, the FAQ mostly applies:
  http://www.hu.freepascal.org/faq.var#dotnet
 
 I think this is a little bit too intransigent. Many mobiles run only
 Java, so there is no other path to support them.

Nobody says there _should_ be a path then. 
 
 My experience with Symbian makes me think I should have instead
 started a Java port. The Symbian is such a mess that a Java port would
 maybe be easier to do and achieve support for a hugely superior number
 of devices.
 
 There is even a Java assembler out there. I'm not 100% convinced that
 it can't be abstracted just like if it was just another platform.

The question is not if you can't shoehorn FPC into something it wasn't
designed for, but if the result is more than an academic exercise.

IOW, is a FPC that has parts of the language removed, where datatypes change
meaning, possible extensions that don't work on native etc still a FPC as we
know today ? 

The Delphi.NET experiment of Borland shows this perfectly. Superficially
everything is ok, but practically you see each after the other halt the
shared codebases and do a proper new framework based on .NET classes and
types.

In Borlands case, the shared source between classic and .NET was mostly
temporary, for transition purposes, but how do you see this for FPC?

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] FPC compiler for virtual machines?

2008-02-07 Thread Michael Van Canneyt


On Wed, 6 Feb 2008, Marco Alvarado wrote:

 2008/2/6, Wanderlan Santos dos Anjos [EMAIL PROTECTED]:
  Options for a Pascal compiler which targets Java:
 
  1. http://www.mhccorp.com/pasjvm.shtml
  2. http://en.wikipedia.org/wiki/MIDletPascal. Dead product?
  Download: http://www.softlookup.com/display.asp?id=157709
 
 I know MIDletPascal, and it's a perfect example. It suffers the same
 problem that Delphi has now, it's not Open Source. You have to wait
 for it's development team to fix bugs, and the most important is that
 if the team takes a different path (or vanishes), you will have to
 jump to another compiler to keep on track, maybe a compiler for
 another language as it is the case with Pascal.
 
 I'd rather give my engine support for an unperfect compiler that
 anyone can continue developing (reminds me of Lazarus), than a
 compiler that can die unexpectedly.

Well, what stops you from getting started ?

Many people have asked the questions you asked, none have actually
contributed.

The FPC team has no direct interest in this, but that doesn't mean
we will not offer help in the form of explanations to whoever wants
to try anyway... 

Michael.

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


[lazarus] Who is the controlling 'native' widget set in LCL?

2008-02-07 Thread Graeme Geldenhuys
Hi,

I'm not trying to start a flame war, I would simply like to understand
the thinking and decision process of the core lazarus developers
regarding the LCL features.  I'm sure any developer using LCL would
like the following answers as well.

For more background on this issue see the mantis bug report:
  http://bugs.freepascal.org/view.php?id=9285

In summary.  TButton.Color is not available in LCL because Win32
doesn't allow a button face to change color without custom drawing.
Yet other widget sets do like Qt and GTK1.


Comments from Paul:

Kylix = qt = library that draw widgets itself
Win32 = library that also has some mids about widget drawing

Why LCL should invent hacks to force win32 draw color buttons? If
win32 does not want to do that why LCL should have ability to override
designed by ms devels way of button drawing?

LCL is library of native widgets = library that uses abilities of
underlying libraries. If they (win32 or other) doesnot support
something then LCL should not invent own ways.

My opinion - this issue should be closed.



Comments from Me:
--
Ok, so LCL uses native widgets - I get that. Well, Qt is a supported
widget set of LCL. So Qt should in all respects be consider 'native'.
So now, because Win32 doesn't allow Button.Color, Qt may not use
Button.Color either! That's a bit unfair. The LCL now limits
developers only to what Win32 can do! What happened to LCL being
cross-platform? What about the features of other underlying native
widget sets?

Is Win32 the controlling widget set for LCL. If Win32 doesn't support
something, neither may the other widget sets?



So, my question again:
Is Win32 the controlling widget set in LCL?  Is Win32 the deciding
widget set for what is allowed in the LCL?  If Win32 doesn't support
it, it's not going to be supported in the LCL - even if the other
native widget sets support a function?

How do the core developers decide what is allowed in the LCL and what
isn't? What criteria do they use?


As a extra argument to Paul:
MS developers decided not support MouseEnter and MouseLeave OS level
events in Win32. Other widget sets do. Borland even had to hack their
own support for it in the VCL.  Then in Windows XP and Vista the
Microsoft developers show that a 'hot' state over buttons are cool,
yet the underlying Win32 still doesn't support MouseEnter and
MouseLeave OS events!  I wouldn't stake my life on what MS developers
decided is good! They sometimes come up with pretty shitty ideas of
what they think is right!


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] Who is the controlling 'native' widget set in LCL?

2008-02-07 Thread Florian Klaempfl
Graeme Geldenhuys schrieb:
 So, my question again:
 Is Win32 the controlling widget set in LCL?  Is Win32 the deciding
 widget set for what is allowed in the LCL?  If Win32 doesn't support
 it, it's not going to be supported in the LCL - even if the other
 native widget sets support a function?

I guess in case of doubts, the VCL is the reference. If one wants to
explore all features of a certain widget set, he has simply to use a
direct interface to the widget set.

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Who is the controlling 'native' widget set in LCL?

2008-02-07 Thread Paul Ishenin

Graeme Geldenhuys wrote:

Hi,

I'm not trying to start a flame war, I would simply like to understand
the thinking and decision process of the core lazarus developers
regarding the LCL features.  I'm sure any developer using LCL would
like the following answers as well.

For more background on this issue see the mantis bug report:
  http://bugs.freepascal.org/view.php?id=9285

In summary.  TButton.Color is not available in LCL because Win32
doesn't allow a button face to change color without custom drawing.
Yet other widget sets do like Qt and GTK1.


That problem has been havily discussed in lazarus-dev list and we came 
to the conclusion that such properties should be in LCL, but on the 
other hand they must be marked some way in object inspector as non 
cross platform.


Best regards,
Paul Ishenin.

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


[lazarus] Open URL in a browser

2008-02-07 Thread Antonio Sanguigni
Hi all,

I'm trying to create an hyperlink component but I'm having some difficult to
catch default browser under Linux. In Windows it has to be easier but I
would like to find an elegant cross-platform way. I saw the Lazarus Ide has
Help - OnLine help menu which I can get a look. Any suggest to better
understand the code ?

I saw there are THelpViewer class and THelpDatabase and their containers but
I cannot be able to understand deeply how this code is working.

Thanks
Antonio

-- 
Antonio Sanguigni alias slapshot
--
GioveLUG (Linux User Group) - http://www.giovelug.org
Edupup (Educational distro) - http://www.edupup.org


Re: [lazarus] Behavior of ClientToScreen in scrolling windows across different widget sets

2008-02-07 Thread Marc Weustink

Luiz Americo Pereira Camara wrote:
While debugging scrolling bugs in LCL i found that ClientToScreen acts 
differently according to the widget set.


These are the behaviors:

1) The returned value is related to the actual position, i.e., it does 
not consider the scroll offset. If you pass Point(0,0) the value will be 
the same regardless of the scroll position. (Gtk1)


2) The returned value is related to the virtual position, i.e, it takes 
into account the scroll offset. If you pass Point(0, 0) the value 
changes inversely to scrollbar position. (Gtk2)  
3)  The returned value is related to the virtual position, i.e, it takes 
into account the scroll offset. If you pass Point(0, 0) the value 
changes the same amount of scrollbar position. (Win32)


4) Nothing. Qt has no visible scrollbars so...

Notes:

Delphi does the same as (1)/Gtk1


Not really, internally Delphi does it like 2. All controls are moved.



(3) is clearly buggy.

Between (1) and (2) is a design decision.


We started like delphi, move controls and report corrected values when 
asked. However this aproach is very inefficient on all widgetsets except 
win32. So the new approach is that controls stay at their position and 
only the virtual parent gets an offset.
This means that the top/left of a control on a say scrollbox are allways 
the same, an offset to the virtual parent top/left.


So now ClientToScreen.
The top/left of a scrolled control needs to get a scrolled offset, so 
that is reflects the real position relative to the real parent of 
the control.


Marc




Attached is a patch that makes win32 acts like (2)/gtk2. It changes the 
offset signal when calculating the LCL bounds. With the change it 
becomes consistent with the TCustomGroupBox signal convention (LCL 
bounds at Right/Down  of win32 +, at Left/Up -).

It also fixes the scrolling paint and setcursor of non TWincontrol.

Luiz





_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Open URL in a browser

2008-02-07 Thread ik
Hi,

On Debian bases system (I don't know on others) there is an
alternative that known as x-www-browser that holds the default web
browser.

On Feb 7, 2008 12:18 PM, Antonio Sanguigni [EMAIL PROTECTED] wrote:
 Hi all,

 I'm trying to create an hyperlink component but I'm having some difficult to
 catch default browser under Linux. In Windows it has to be easier but I
 would like to find an elegant cross-platform way. I saw the Lazarus Ide has
 Help - OnLine help menu which I can get a look. Any suggest to better
 understand the code ?

 I saw there are THelpViewer class and THelpDatabase and their containers but
 I cannot be able to understand deeply how this code is working.

 Thanks
 Antonio

 --
 Antonio Sanguigni alias slapshot
  --
 GioveLUG (Linux User Group) - http://www.giovelug.org
 Edupup (Educational distro) - http://www.edupup.org


Ido
-- 
http://ik.homelinux.org/

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Who is the controlling 'native' widget set in LCL?

2008-02-07 Thread Graeme Geldenhuys
On 07/02/2008, Paul Ishenin [EMAIL PROTECTED] wrote:
 
  In summary.  TButton.Color is not available in LCL because Win32
  doesn't allow a button face to change color without custom drawing.
  Yet other widget sets do like Qt and GTK1.

 That problem has been havily discussed in lazarus-dev list and we came
 to the conclusion that such properties should be in LCL, but on the
 other hand they must be marked some way in object inspector as non
 cross platform.

My apologies. I didn't know of a 'lazarus-dev' mailing list.  When was
this decided, in the last 7 days?  Because from your comment  in he
mantis bug report dated 2008-02-01 (7 days ago), your clearly stated
that it _shouldn't_ be supported.


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] Open URL in a browser

2008-02-07 Thread wile64
See also environnement variable $BROWSER under linux

-- 
Laurent.

My Components: http://wiki.lazarus.freepascal.org/Wile64
French Forum : http://lazforum-fr.tuxfamily.org/index.php


Re: [lazarus] Open URL in a browser

2008-02-07 Thread Henry Vermaak
On 07/02/2008, wile64 [EMAIL PROTECTED] wrote:
 See also environnement variable $BROWSER under linux


there is also the sensible-browser script that makes things easy (at
least on debian).

henry

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Open URL in a browser

2008-02-07 Thread Graeme Geldenhuys
On 07/02/2008, wile64 [EMAIL PROTECTED] wrote:
 See also environnement variable $BROWSER under linux


Wow, I never knew about that.  It's available in Ubuntu 7.10 as well.
Is that a LSB standard?

I see the /etc/alternatives directory is full of such files... :-)
Nice one, it's about time Linux helped developers detect favoured
applications.


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] Open URL in a browser

2008-02-07 Thread Graeme Geldenhuys
On 07/02/2008, ik [EMAIL PROTECTED] wrote:
 Hi,

 On Debian bases system (I don't know on others) there is an
 alternative that known as x-www-browser that holds the default web
 browser.



Wow, I never knew about that.  It's available in Ubuntu 7.10 as well.
Is that a LSB standard?

I see the /etc/alternatives directory is full of such files... :-)
Nice one, it's about time Linux helped developers detect favoured
applications.


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] Open URL in a browser

2008-02-07 Thread Graeme Geldenhuys
Oops, I meant the reply to Ido's email


On 07/02/2008, Graeme Geldenhuys [EMAIL PROTECTED] wrote:
 On 07/02/2008, wile64 [EMAIL PROTECTED] wrote:
  See also environnement variable $BROWSER under linux
 

 Wow, I never knew about that.  It's available in Ubuntu 7.10 as well.
 Is that a LSB standard?

 I see the /etc/alternatives directory is full of such files... :-)
 Nice one, it's about time Linux helped developers detect favoured
 applications.


 Regards,
   - Graeme -


 ___
 fpGUI - a cross-platform Free Pascal GUI toolkit
 http://opensoft.homeip.net/fpgui/



-- 
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] Open URL in a browser

2008-02-07 Thread Vincent Snijders

Antonio Sanguigni schreef:

Hi all,

I'm trying to create an hyperlink component but I'm having some 
difficult to catch default browser under Linux. In Windows it has to be 
easier but I would like to find an elegant cross-platform way. I saw the 
Lazarus Ide has Help - OnLine help menu which I can get a look. Any 
suggest to better understand the code ?


I saw there are THelpViewer class and THelpDatabase and their containers 
but I cannot be able to understand deeply how this code is working.




See also lazarus\examples\openbrowser

Vincent

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] FPC compiler for virtual machines?

2008-02-07 Thread Marco Alvarado
I've been investigating, and came to the conclussion that the best
compiler I can do IS NOT a compiler, BUT an specialiced translator. I
could use customizable templates to transform Pascal code into each
VM's natural language, then take advantage of the command-line
compilers for those VMs. There are open-source compilers that will fit
perfectly on this project. At least MTASC, is a much faster and
optimal compiler than the actual Macromedia/Adobe Flash compiler.

Crappy and cheaty, maybe, but will output the best optimal code
possible, and also will save myself from the HUGE task of creating
real compilers, since I must keep focused on my game engine. If we
remove pointers, goto's (...what else?), there is almost a one-on-one
correspondence between Object Pascal and ECMA's scripts (javascript
and actionscript), Java and .NET. But will require some cheating with
the class frameworks (thinking on FPC's RTL and the LCL), like
converting TBitmap into MovieClip, as an example. As said it's a
language mutilation, but it's something a programmer can live with if
he/she wants to target those virtual platforms, Delphi .NET shows that
as you mentioned.

-Marco

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Open URL in a browser

2008-02-07 Thread ik
2008/2/7 wile64 [EMAIL PROTECTED]:
 See also environnement variable $BROWSER under linux

On my machine it is not set (Kubuntu 7.10 amd64)...


 --
 Laurent.

 My Components: http://wiki.lazarus.freepascal.org/Wile64
 French Forum : http://lazforum-fr.tuxfamily.org/index.php

Ido
-- 
http://ik.homelinux.org/

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Open URL in a browser

2008-02-07 Thread wile64
2008/2/7, Graeme Geldenhuys [EMAIL PROTECTED]:

 On 07/02/2008, wile64 [EMAIL PROTECTED] wrote:
  See also environnement variable $BROWSER under linux
 

 Wow, I never knew about that.  It's available in Ubuntu 7.10 as well.
 Is that a LSB standard?


This is Debian, I have on my Ubuntu 7.10 and others are also


I see the /etc/alternatives directory is full of such files... :-)
 Nice one, it's about time Linux helped developers detect favoured
 applications.


I Found it but I do not know where :)

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




-- 
Laurent.

My Components: http://wiki.lazarus.freepascal.org/Wile64
French Forum : http://lazforum-fr.tuxfamily.org/index.php


RE: [lazarus] Open URL in a browser

2008-02-07 Thread Hess, Philip J
Orpheus has a TOvcURL component for hyperlinks.

 

http://wiki.lazarus.freepascal.org/OrphPort

 

Thanks.

 

-Phil

 

 



From: Antonio Sanguigni [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 07, 2008 5:19 AM
To: lazarus@miraclec.com
Subject: [lazarus] Open URL in a browser

 

Hi all,

I'm trying to create an hyperlink component but I'm having some
difficult to catch default browser under Linux. In Windows it has to be
easier but I would like to find an elegant cross-platform way. I saw the
Lazarus Ide has Help - OnLine help menu which I can get a look. Any
suggest to better understand the code ? 

I saw there are THelpViewer class and THelpDatabase and their containers
but I cannot be able to understand deeply how this code is working.

Thanks
Antonio

-- 
Antonio Sanguigni alias slapshot
--
GioveLUG (Linux User Group) - http://www.giovelug.org
Edupup (Educational distro) - http://www.edupup.org 



Re: [lazarus] Linux Journal Poll: Pascal does not exist

2008-02-07 Thread mramirez

Quoting Marco Alvarado [EMAIL PROTECTED]:


Working with an underground language gives a cool feeling :D


Please see attached image ;-)

Cheers (with a tequila)
mramirez
attachment: Black-T-Shirt-Lazarus.JPG

  1   2   3   4   5   6   7   8   9   10   >