Re: [fpc-pascal] Free Pascal widget set

2006-08-19 Thread Graeme Geldenhuys

On 8/18/06, Darius Blaszijk <[EMAIL PROTECTED]> wrote:

Just a note, but the "auto-sizing" of components as depicted in the fig2.
example is perfectly possible with Anchoring already. There's no need for a
layout manager for that functionality.

Darius


Lazarus has much better anchoring support that Delphi, I have to
admit.  But "auto-sizing" is just one of the things the Layout
Managers do.  It also aligns the components, positions them, prevents
them from being clipped (setting minimum allowed size) when the form
is resized, etc...  All this by just creating a layout manager and
inserting widgets into it.

Take a look at the attached screenshot.  This is how most of the
dialogs in Lazarus look to me.  It is compiled with Gtk1.  Most of the
captions are clipped, group boxes don't align...  It doesn't resize
the controls when the dialog resizes.  Those problems will never
happen in fpGUI, no matter the language, resolution, dpi setting, etc.
Yes, I have tried to recreate that exact screen using Lazarus with
all its anchoring features and alignment features.  I never got it to
work 100% and it wasn't easy at all.

Good news is, if you don't like the Box and Grid Layouts, you can
always use the Fixed Layout, which then allows you to place component
anywhere without auto-align and positioning.

Regards,
 - Graeme -


CompilerOptions.png
Description: PNG image
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] Widget Sets, Lazarus, Graeme Project, FPC Win32

2006-08-19 Thread Jason P Sage
Couple Questions Folks
--
1: Does Lazarus Work well in Win32 yet?

2: Is it difficult to make a GUI that compiles for Linux and Win32 with
Lazarus?

3: To Do it do you need to compile the actual FPC Compiler with Lazarus
extensions or is it just Units you add to your code?

3: If Lazarus is Win32 Capable, is Graeme's Widget Set work on Win32 also?

Thank You in advance.

I've tried Lazarus in the past, and didn't have much success. And frankly it
seemed Linux Specific. I know there were developers porting it, but I never
saw a working Win32 Demo. 

Bottom line is that I've been watching/waiting for Lazarus to Mature to the
point to where you just download something, and can make a hello world
dialog window in both Win32 and Linux and maybe toss some widgets on that
dialog (Text Box, Combo Box, List, tree View, scroll bars, a data grid like
MSFlexGrid, Labels, buttons, checkboxes, and maybe picture box or
something).

4: Has Lazarus progressed to this level yet? 

Forgive my ignorance here, I have spent time trying to find out, and
download stuff - but my efforts have been futile. Additionally, if it
doesn't work on windows I get gun shy. Not because I'm a windows fan - I
love Linux - but I TRY to write applications that compile on both.

Thank you in Advance.

Jason P Sage

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Free Pascal widget set

2006-08-19 Thread Krishna

On 8/18/06, Graeme Geldenhuys <[EMAIL PROTECTED]> wrote:


The fpGUI development team [ Me, myself and I ] is looking for
developers willing to join this project.  I have made the source
available on my sever using SubVersion.  The documentation will be
online over the weekend.  fpGUI is not yet ready for usage in a
application, but is is rapidly getting there.  My company has a
deadline to get it at such a point before the end of the year.



Nice nice nice.


For more details about the project and the ever growing todo list,
point your browser at:
  http://opensoft.homeip.net/fpgui/

Download the Source from:
  svn co svn://opensoft.homeip.net/fpgui/trunk fpGUI
  svn co svn://opensoft.homeip.net/fpgfx/trunk fpGFX



I have problems building the thing. Executing make in the topdir of
fpGFX is exiting with an error like 'Can't find unit GFXImpl...' .
fpGUI also fails to build with an error like 'Can't find unit DOM...'

Cheers,
Krishna
--
First they ignore you, then they laugh at you, then they fight you,
then you win.
- Mahatma Gandhi
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Widget Sets, Lazarus, Graeme Project, FPC Win32

2006-08-19 Thread Bisma Jayadi

I've tried Lazarus in the past, and didn't have much success. And frankly it
seemed Linux Specific. I know there were developers porting it, but I never
saw a working Win32 Demo. 


Hello Jason, I wonder... where have you been lately? :D Of course Lazarus 
works great both on win32 and linux, and some other platforms as well. Yes, we 
must admit that still there are bugs here and there but they're (mostly) not a 
very critical bugs. I think Lazarus is "good enough" to build serious 
applications. Some people had built some good applications using it.



Bottom line is that I've been watching/waiting for Lazarus to Mature to the
point to where you just download something, and can make a hello world
dialog window in both Win32 and Linux and maybe toss some widgets on that
dialog (Text Box, Combo Box, List, tree View, scroll bars, a data grid like
MSFlexGrid, Labels, buttons, checkboxes, and maybe picture box or
something).


If you demand a very complicated and complex component on Lazarus as we used 
to see on Delphi, maybe it's not happen yet. But, almost every (standard) 
common control that is required to build a working application are already 
there. Of course, it's not impossible to build your own complex and 
complicated components.



Forgive my ignorance here, I have spent time trying to find out, and
download stuff - but my efforts have been futile. Additionally, if it
doesn't work on windows I get gun shy. Not because I'm a windows fan - I
love Linux - but I TRY to write applications that compile on both.


Have you tried the latest Lazarus? It's v.0.9.16 beta, if I'm not mistaken. 
I've been using it for a while, both on win32 (XP SP 2) and linux (SuSE 10.1). 
 FYI... just to give you an example, I'm currently working on Database 
Modeller similar to FabForce's DBDesigner 
(http://www.fabforce.net/dbdesigner4) using Lazarus. Some basic features have 
been done and it works nicely on win32 and linux.


Please visit the Lazarus' wiki to get more up-to-date informations. HTH. :)

-Bee-

has Bee.ography at:
http://beeography.wordpress.com

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Widget Sets, Lazarus, Graeme Project, FPC Win32

2006-08-19 Thread Michael Van Canneyt


On Sat, 19 Aug 2006, Jason P Sage wrote:

> Couple Questions Folks
> --
> 1: Does Lazarus Work well in Win32 yet?

Of course.

> 
> 2: Is it difficult to make a GUI that compiles for Linux and Win32 with
> Lazarus?

No. I do it often.

> 
> 3: To Do it do you need to compile the actual FPC Compiler with Lazarus
> extensions or is it just Units you add to your code?

You just add units.

> 
> 3: If Lazarus is Win32 Capable, is Graeme's Widget Set work on Win32 also?

They have nothing to do with each other, although in time, Lazarus could in
theory be made to work with Graeme's widget set. Personally, I think that 
is pushing it a bit, but then, many things are :-)

> 
> Thank You in advance.
> 
> I've tried Lazarus in the past, and didn't have much success. And frankly it
> seemed Linux Specific. I know there were developers porting it, but I never
> saw a working Win32 Demo. 

I work often in it on Win32.

> 
> Bottom line is that I've been watching/waiting for Lazarus to Mature to the
> point to where you just download something, and can make a hello world
> dialog window in both Win32 and Linux and maybe toss some widgets on that
> dialog (Text Box, Combo Box, List, tree View, scroll bars, a data grid like
> MSFlexGrid, Labels, buttons, checkboxes, and maybe picture box or
> something).
> 
> 4: Has Lazarus progressed to this level yet? 

Yes, definitely.

> 
> Forgive my ignorance here, I have spent time trying to find out, and
> download stuff - but my efforts have been futile. Additionally, if it
> doesn't work on windows I get gun shy. Not because I'm a windows fan - I
> love Linux - but I TRY to write applications that compile on both.

It should not be a problem to do this. I write articles for a German magazine,
and I compiled sophisticated database applications on Windows and Linux, no code
changes needed.

Michael.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Free Pascal widget set

2006-08-19 Thread Graeme Geldenhuys

On 8/19/06, Krishna <[EMAIL PROTECTED]> wrote:

I have problems building the thing. Executing make in the topdir of
fpGFX is exiting with an error like 'Can't find unit GFXImpl...' .
fpGUI also fails to build with an error like 'Can't find unit DOM...'


The Makefiles are still work-in-progress.  I had them working a couple
of weeks back, but might have broken them again.  I develop using
Lazarus and normally compile fpGUI and fgGFX using the packages (*.lpk
files).

DOM is part of FPC located in /fcl/xml/
GFXImpl is part of fpGFX and depending on the OS it is located in
/src/linux/ or /src/win32/

I have to admit, I am very new to Makefiles, but will see what happens
when I try and compile it here using them.  Otherwise, if you use
Lazarus, compile the *.lpk files.

Regards,
 - Graeme -
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Widget Sets, Lazarus, Graeme Project, FPC Win32

2006-08-19 Thread Graeme Geldenhuys

1: Does Lazarus Work well in Win32 yet?


Yes!  For the most apps it works great.  We develop using Lazarus on
Windows and Linux.  We did pickup some slight functionality
differences between the two platforms, but nothing to major.  Then
again our app is not quite a standard looking app either.



2: Is it difficult to make a GUI that compiles for Linux and Win32 with
Lazarus?


Not at all.  Just recompile the same app under each platform.



3: To Do it do you need to compile the actual FPC Compiler with Lazarus
extensions or is it just Units you add to your code?


You only need to add the units you require.



3: If Lazarus is Win32 Capable, is Graeme's Widget Set work on Win32 also?


As Michael said.  They have nothing to do with each other.  I use
Lazarus as my development IDE (editor), but that is where it ends.
fpGUI does work under both Win32 and Linux though.


I've tried Lazarus in the past, and didn't have much success. And frankly it
seemed Linux Specific. I know there were developers porting it, but I never
saw a working Win32 Demo.


This must have been a long time ago. Lazarus works great under both platforms.
I develop under Linux and my co-worker develops under Windows.
Sometimes I have to admit, I think Lazarus looks better under Windows.
Maybe that is due to my default GTK1 widget set style.  (I hate the
default look of Gtk1).


Bottom line is that I've been watching/waiting for Lazarus to Mature to the
point to where you just download something, and can make a hello world


My client (Master Maths) have completely moved over to Free Pascal and
Lazarus as a development platform for their flagship product.  They
used to use Delphi 7.  FPC and Lazarus just gives them so much more
flexibility.


4: Has Lazarus progressed to this level yet?


For sure!

Regards,
 - Graeme -
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Free Pascal widget set

2006-08-19 Thread Krishna

On 8/19/06, Graeme Geldenhuys <[EMAIL PROTECTED]> wrote:

On 8/19/06, Krishna <[EMAIL PROTECTED]> wrote:
> I have problems building the thing. Executing make in the topdir of
> fpGFX is exiting with an error like 'Can't find unit GFXImpl...' .
> fpGUI also fails to build with an error like 'Can't find unit DOM...'

The Makefiles are still work-in-progress.  I had them working a couple
of weeks back, but might have broken them again.  I develop using
Lazarus and normally compile fpGUI and fgGFX using the packages (*.lpk
files).

DOM is part of FPC located in /fcl/xml/
GFXImpl is part of fpGFX and depending on the OS it is located in
/src/linux/ or /src/win32/



OK, now I've compiled fpGfx but the examples do not compile -
helloworld's compilation exits with 'TSize... illegal qualifier etc.'

-Krishna
--
First they ignore you, then they laugh at you, then they fight you,
then you win.
- Mahatma Gandhi
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Free Pascal widget set

2006-08-19 Thread Mattias Gaertner
On Fri, 18 Aug 2006 22:24:33 +0200
"Graeme Geldenhuys" <[EMAIL PROTECTED]> wrote:

> On 8/18/06, Darius Blaszijk <[EMAIL PROTECTED]> wrote:
> > Just a note, but the "auto-sizing" of components as depicted in the
> > fig2. example is perfectly possible with Anchoring already. There's
> > no need for a layout manager for that functionality.
> >
> > Darius
> 
> Lazarus has much better anchoring support that Delphi, I have to
> admit.  But "auto-sizing" is just one of the things the Layout
> Managers do.  It also aligns the components, positions them, prevents
> them from being clipped (setting minimum allowed size) when the form
> is resized, etc...  All this by just creating a layout manager and
> inserting widgets into it.
> 
> Take a look at the attached screenshot.  This is how most of the
> dialogs in Lazarus look to me.  It is compiled with Gtk1.  Most of the
> captions are clipped, group boxes don't align...  It doesn't resize
> the controls when the dialog resizes.

Right. This dialog is not using all LCL abilities.


>  Those problems will never
> happen in fpGUI, no matter the language, resolution, dpi setting, etc.
>  Yes, I have tried to recreate that exact screen using Lazarus with
> all its anchoring features and alignment features.  I never got it to
> work 100% and it wasn't easy at all.
> 
> Good news is, if you don't like the Box and Grid Layouts, you can
> always use the Fixed Layout, which then allows you to place component
> anywhere without auto-align and positioning.

yes, both approaches have their pros and cons. The rule based Box/Grid
layout is never overlapping, but more work to setup and is more
difficult to change. While the 'fixed' layout is quite the opposite:
Easy to learn, easy to setup, easy to change and easily overlaps.
The never overlapping feature is important for platform/theme
independent software, while the other approach is more comfortable for
the rapid application goal.
The LCL has already Boxes and simple Grids. Complex Grids are missing.
You can use the autosizing properties to prevent overlapping, but then
you loose the ability to easily change the layout.
I think, best would would be the 'fixed' layout editing plus automatic
anti overlapping and some properties to fine tune the automatic.
Delphi has Scaling, which is easy to implement, but does not work for
different languages.
It should more work like: If a control overlaps, then the
overlapped controls must be moved and maybe the parent enlarged.


Mattias
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Free Pascal widget set

2006-08-19 Thread Graeme Geldenhuys

OK, now I've compiled fpGfx but the examples do not compile -
helloworld's compilation exits with 'TSize... illegal qualifier etc.'


Fixed! Also added the missing Lazarus *.lpi files.
Get a svn update...

Regards,
 - Graeme -
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal] Re: Free Pascal widget set

2006-08-19 Thread Graeme Geldenhuys

The documentation will be online over the weekend.


As promised, the documenation for fpGUI (not complete) is available on
the website at:

 http://opensoft.homeip.net/fpgui/docs/


Regards,
 - Graeme -
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal] Re: Free Pascal widget set

2006-08-19 Thread Cesar Romero

Why not wxWidgets?
Linux map to GTK - GTK 2.0 alread done
Windows to Native widget set
Mac to Cocoa

Serious, I still dont undertande why not, is a licence issue?

[]s

Cesar Romero
http://blogs.liws.com.br/cesar


As promised, the documenation for fpGUI (not complete) is available on
the website at:

 http://opensoft.homeip.net/fpgui/docs/


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Re: Free Pascal widget set

2006-08-19 Thread Krishna

On 8/19/06, Cesar Romero <[EMAIL PROTECTED]> wrote:

Why not wxWidgets?
Linux map to GTK - GTK 2.0 alread done
Windows to Native widget set
Mac to Cocoa




Serious, I still dont undertande why not, is a licence issue?


Too many layers perhaps... pascal -> wx -> gtk2 -> xlib

Also the need to setup message maps which are plain ugly. Object
Pascal's bound method pointers rock!

Cheers,
Krishna
--
First they ignore you, then they laugh at you, then they fight you,
then you win.
- Mahatma Gandhi
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal] Re: Free Pascal widget set

2006-08-19 Thread Michael Van Canneyt


On Sat, 19 Aug 2006, Cesar Romero wrote:

> Why not wxWidgets?
> Linux map to GTK - GTK 2.0 alread done
> Windows to Native widget set
> Mac to Cocoa
>
> Serious, I still dont undertande why not, is a licence issue?

Because no-one has started it yet.

And on Linux, I think it would be a very bad choice indeed:

- LCL
- Pascal import (wxWidgets is C++, and cannot be used directly)
- wxWidgets
- GTK
- X11

That is 4 libraries on top of X !

Graeme's stuff is directly on top of X, which means 3 libraries less.
- Faster.
- Less resource usage.
- No workarounds for different quircks of different libraries

Michael.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] TCP Server

2006-08-19 Thread Fabrício F. Kammer
OK I was able to run the echo server example. Now I need to know how can 
I make a server that gets the commands sends by my client application 
and make the right actions with these commands.


Can anyone help with this?

PS: I'm trying to install the indy on windows xp without succes, if 
someone can help me I'll be thanks.


[]s

Fabrício

Andreas Berger escreveu:



OK,

I downloaded the synapse, but I don't know how to use it to make a TCP 
server.


I need to do a server that listen on a specific port. After connected 
the client will send some commands to the server that will make some 
actions and return the results to the client.


Basicly the client will send strings to the server and receive another 
strings.

Check out the echo demo in synapse. It seem to be exactly what you want.

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal