Re: [Lazarus] Is Lazarus FPC compatible to RAD XE5?

2015-06-14 Thread Juha Manninen
On Sun, Jun 14, 2015 at 12:23 PM, Bo Berglund bo.bergl...@gmail.com wrote:
 When you talk about conversion tools, is there also some form of dproj
 project file conversion utility?

No but the .dproj file does not have much useful information for a
Lazarus project anyway.
I think it has the project search paths. They are needed in Lazarus
only if your project's unit files are in subdirectories. They must NOT
be used for library code. Lazarus package system takes care of that.

A related issue are the global search paths in Delphi. They are
commonly used for components and libraries which are used by many
projects. This breaks the idea of modular design and pollutes the
namespace, and prevents compiling projects in different machines
without first configuring Delphi's global path.
I think even Borland wanted to change that but they didn't for
backwards compatibility.
Lazarus does not have global search path at all. Any library code
should be in a Lazarus package. A project or another package can then
depend on that package. The package injects its own source paths to
the master project/package. No ugly path configuration is needed,
never!
Lazarus IDE remembers any package that is has once opened. The package
is then used when needed without extra configuration.

 So I had to start a new VCL project when I did the Unicode conversion
 (UTF8 is what I used) and then add all the sources to that project and
 set the various properties like search paths and such manually...

Do you use UTF-8 with XE Delphi? Why? It triggers conversion between
UTF-8 and UTF-16 at every assignment.

I can recommend the new UTF-8 support in Lazarus for you because you
only start converting now:
  http://wiki.freepascal.org/Better_Unicode_Support_in_Lazarus
It is almost compatible with Delphi even though the encoding is different.
It requires now development version of FPC but they will release
3.0RC1 soon. Thus you can ignore Unicode issues now and return to them
when your conversion works otherwise.

So, what the does the automatic conversion (in Tools menu) say?

Juha

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Is Lazarus FPC compatible to RAD XE5?

2015-06-14 Thread Sandro Cumerlato
Hello Bo,
there are several software examples listed here:

  http://wiki.freepascal.org/Lazarus_Application_Gallery

As you can see it is possible to develop any kind of software with
Lazarus, and the software description you provided does not preclude
its implementation with it.

Best regards,
Sandro Cumerlato

On 14 June 2015 at 08:41, Bo Berglund bo.bergl...@gmail.com wrote:
 I am seeking an alternative to the Embarcadero RAD studio XE5 and I
 would like to know if a Delphi application developed with
 D6-D7-BDS2006-XE5 could be loaded and built in Lazarus?
 The application uses only standard features existing in the older
 versions of Delphi plus a couple custom components like an RS232
 component (AsyncPro) and graphics (GLScene).
 It is only VCL based for Windows32 (even though it would have been
 nice to compile it for Win64 to use a larger memory.
 The primary function is processing of tomographic data (lots of math)
 and display of the results using GLScene.
 The bulk of the math is implemented in 3 DLL files developed in
 Fortran(!), but these are standard interface DLL functions.
 No database stuff at all is involved.

 I moved it to XE5 about 6 months ago to make use of Unicode for the
 GUI and user messages (display in foreign languages even Chinese).

 Is it possible or is it going to be an uphill battle for a long time?

 --
 Bo Berglund
 Developer in Sweden


 --
 ___
 Lazarus mailing list
 Lazarus@lists.lazarus.freepascal.org
 http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Is Lazarus FPC compatible to RAD XE5?

2015-06-14 Thread Bo Berglund
I am seeking an alternative to the Embarcadero RAD studio XE5 and I
would like to know if a Delphi application developed with
D6-D7-BDS2006-XE5 could be loaded and built in Lazarus?
The application uses only standard features existing in the older
versions of Delphi plus a couple custom components like an RS232
component (AsyncPro) and graphics (GLScene).
It is only VCL based for Windows32 (even though it would have been
nice to compile it for Win64 to use a larger memory.
The primary function is processing of tomographic data (lots of math)
and display of the results using GLScene.
The bulk of the math is implemented in 3 DLL files developed in
Fortran(!), but these are standard interface DLL functions.
No database stuff at all is involved.

I moved it to XE5 about 6 months ago to make use of Unicode for the
GUI and user messages (display in foreign languages even Chinese).

Is it possible or is it going to be an uphill battle for a long time?

-- 
Bo Berglund
Developer in Sweden


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Is Lazarus FPC compatible to RAD XE5?

2015-06-14 Thread Juha Manninen
On Sun, Jun 14, 2015 at 7:51 PM, Bo Berglund bo.bergl...@gmail.com wrote:
 I am now investigating if it is likely I could do this and I have not
 yet installed Lazarus. The computers I used back in 2005 and 2010 are
 long gone...

You don't need computers from 2005. Just install Lazarus and do :
 Tools - Delphi Conversion - Convert Delphi Project to Lazarus Project ...
It is the best way to investigate.

Juha

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Is Lazarus FPC compatible to RAD XE5?

2015-06-14 Thread Bo Berglund
On Sun, 14 Jun 2015 15:45:33 +0300, Juha Manninen
juha.mannine...@gmail.com wrote:

On Sun, Jun 14, 2015 at 12:23 PM, Bo Berglund bo.bergl...@gmail.com wrote:
 So I had to start a new VCL project when I did the Unicode conversion
 (UTF8 is what I used) and then add all the sources to that project and
 set the various properties like search paths and such manually...

Do you use UTF-8 with XE Delphi? Why? It triggers conversion between
UTF-8 and UTF-16 at every assignment.

We have developed a couple of components for handling the translation
of our applications into different languages. The languages are
defined by ini file formatted text files and before my conversion
these were just plain ini files accessed via the TIniFile class.

But for Unicode I use a different subclass of TCustomIniFile, namely
TMemIniFile and it has (now in XE) an optional Create parameter that
sets the encoding of data in the file. Here I use UTF8.
But internal to the application the texts are in strings, which now
means Unicode strings since Embarcadero simply redefined what type
string means. So only when reading in the language strings into the
internal arrays will there be any conversion.

This brings to mind these components for language handling:
- One on each form which will have its GUI texts managed
- Another in a data module to handle the complete application
- A 3rd type also on the data module to handle non-GUI texts, which
are sent by code to message boxes and dialogs or written on graphics
etc.

These components need to be possible to use in Lazarus/FPC as well.

So, what the does the automatic conversion (in Tools menu) say?

I am now investigating if it is likely I could do this and I have not
yet installed Lazarus. The computers I used back in 2005 and 2010 are
long gone...


-- 
Bo Berglund
Developer in Sweden


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Docked Form

2015-06-14 Thread Maciej Izak
If you can, please verify concepts. If my idea is correct then I can make
easier to use patch (more compilable). Just I do not want to do
unnecessary work.

Regards,
Maciej Izak
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Docked Form

2015-06-14 Thread Maciej Izak
2015-06-12 18:40 GMT+02:00 Balazs Szekely balazsszek...@yahoo.com:

 I have a question, though:
 I read on your site that FreeSparta only works on Windows. It would be
 difficult to make it Linux/OSX compatible? We need a docking system that is
 functional on every widgetset.

The latest CT implementation works on every platform(ok, it has some issues
on OSX, but it can be fixed).

I'm sorry for late reply, your message was categorized as spam. :\

The root of CT solution and Sparta solution is inspired by kzdesktop. I
don't have code, related for windows platform directly. I use only LCL, and
I fixed small bugs in parts of Lazarus for Windows platform ( for example
OverlayWindowProc in
https://github.com/dathox/freesparta/blob/master/lazarus_sparta_patch/lcl/interfaces/win32/win32callback.inc
).

FreeSparta is avaible for Windows platform because I only use windows for
my daily work. It's very hard to release big (commercial) project for many
platforms. FreeSparta should work in any platform supported by Lazarus with
small changes. Inside project I use only LCL without windows directly
related stuff.

The main difference between Sparta and Typhon implementation :

1. Docked form scrolling
2. Docked form position

THE MOST IMPORTANT DETAILS :)

In Sparta all is done by overriding published properties related to
scrolling and related to form position. In CT it is achived by blocking
messages in WindowProc.

What is better solution ? I don't know :)
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus