Re: [lazarus] some questions

2007-11-29 Thread Joost van der Sluis
Op woensdag 28-11-2007 om 15:08 uur [tijdzone -0300], schreef Arí
Ricardo Ody:
> Talking about databases:
> 
> Was the bug of Lazarus with date, time and timestamp types when 
> accessing DB2 tables fixed?

DB2? I don't know any components which support DB2?

Joost

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


Re: [lazarus] some questions

2007-11-28 Thread Jeff Steinkamp
You are not missing a unit, you have a conflict between the definition of an 
event in the form file and the actual. event handler in the unit file.  I've 
run across this on a couple of occasions and the only what I have found to 
resolve the issue was to open the form file and determine which assigned event 
in the form file does not have a corresponding handler in the unit file.

Jeff



  - Original Message - 
  From: el stamatakos 
  To: lazarus@miraclec.com 
  Sent: Wednesday, November 28, 2007 12:21
  Subject: RE: [lazarus] some questions


  Hi All,
   I am still not able to get the OnCreate Event Handler for a form to work. It 
keeps complaining about missing units. I checked the Project Inspector and the 
LCL package is under the required packages. Should there be others there. When 
I go to Add and the Tab New Requirement there are many packages under Package 
Name: Do I need to install more. I appreciate all the help since I am a 
beginner and have no idea what is wrong. Thanks
   
  Best,
  Lefti

  > Date: Wed, 28 Nov 2007 19:38:04 +0100
  > From: [EMAIL PROTECTED]
  > To: lazarus@miraclec.com
  > Subject: Re: [lazarus] some questions
  > 
  > On Wed, 28 Nov 2007 09:25:41 -0600
  > "Marco Alvarado" <[EMAIL PROTECTED]> wrote:
  > 
  > > Hello!
  > > 
  > > 1) I have solved all of my "unit not found" problems by adding all the
  > > Path templates. Just go to the main menu > Project > Compiler Options,
  > > and click the right [...] button for Other Unit Files and for Other
  > > Sources. At the bottom of the dialog, you will see the Path templates,
  > > just add all of them.
  > 
  > No. Please add instead the LCL to the requirements in the project
  > inspector.
  > 
  > 
  > > 2) I have never worked with databases, maybe someone else can help you
  > > on this :)
  > > 
  > > Regards!
  > > -Marco
  > > 
  > > 2007/11/28, el stamatakos <[EMAIL PROTECTED]>:
  > > >
  > > > Hi All,
  > > > I would like to start by saying "Lazarus" seems like the answer I
  > > > have been looking for, for a long time. I love Delphi and have
  > > > finally found something similar for Linux.
  > > > I have a few questions, first I registered to the forums but never
  > > > received an e-mail back with password so I cannot log in.
  > > > I have two questions that pertain to the Linux version of Lazarus
  > > >
  > > > 1) I use a form and then I click in the OnCreate Event Handler in
  > > > the object inspector and it returns an error "Unable to find
  > > > method. Plz fix the error shown in the message window.". I look at
  > > > the message window and the error is "Error:unit not found:Forms". I
  > > > take the same code into windows and do not have this problem. Any
  > > > ideas.
  > 
  > Is the unit part of your project and the LCL in the list of
  > requirements (see Project / Project Inspector)?
  > 
  > 
  > Mattias
  > 
  > _
  > To unsubscribe: mail [EMAIL PROTECTED] with
  > "unsubscribe" as the Subject
  > archives at http://www.lazarus.freepascal.org/mailarchives



RE: [lazarus] some questions

2007-11-28 Thread el stamatakos

Hi All,
 I am still not able to get the OnCreate Event Handler for a form to work. It 
keeps complaining about missing units. I checked the Project Inspector and the 
LCL package is under the required packages. Should there be others there. When 
I go to Add and the Tab New Requirement there are many packages under Package 
Name: Do I need to install more. I appreciate all the help since I am a 
beginner and have no idea what is wrong. Thanks
 
Best,
Lefti> Date: Wed, 28 Nov 2007 19:38:04 +0100> From: [EMAIL PROTECTED]> To: 
lazarus@miraclec.com> Subject: Re: [lazarus] some questions> > On Wed, 28 Nov 
2007 09:25:41 -0600> "Marco Alvarado" <[EMAIL PROTECTED]> wrote:> > > Hello!> > 
> > 1) I have solved all of my "unit not found" problems by adding all the> > 
Path templates. Just go to the main menu > Project > Compiler Options,> > and 
click the right [...] button for Other Unit Files and for Other> > Sources. At 
the bottom of the dialog, you will see the Path templates,> > just add all of 
them.> > No. Please add instead the LCL to the requirements in the project> 
inspector.> > > > 2) I have never worked with databases, maybe someone else can 
help you> > on this :)> > > > Regards!> > -Marco> > > > 2007/11/28, el 
stamatakos <[EMAIL PROTECTED]>:> > >> > > Hi All,> > > I would like to start by 
saying "Lazarus" seems like the answer I> > > have been looking for, for a long 
time. I love Delphi and have> > > finally found something similar for Linux.> > 
> I have a few questions, first I registered to the forums but never> > > 
received an e-mail back with password so I cannot log in.> > > I have two 
questions that pertain to the Linux version of Lazarus> > >> > > 1) I use a 
form and then I click in the OnCreate Event Handler in> > > the object 
inspector and it returns an error "Unable to find> > > method. Plz fix the 
error shown in the message window.". I look at> > > the message window and the 
error is "Error:unit not found:Forms". I> > > take the same code into windows 
and do not have this problem. Any> > > ideas.> > Is the unit part of your 
project and the LCL in the list of> requirements (see Project / Project 
Inspector)?> > > Mattias> > 
_> To 
unsubscribe: mail [EMAIL PROTECTED] with> "unsubscribe" as the Subject> 
archives at http://www.lazarus.freepascal.org/mailarchives

Re: [lazarus] some questions

2007-11-28 Thread Mattias Gaertner
On Wed, 28 Nov 2007 09:25:41 -0600
"Marco Alvarado" <[EMAIL PROTECTED]> wrote:

> Hello!
> 
> 1) I have solved all of my "unit not found" problems by adding all the
> Path templates. Just go to the main menu > Project > Compiler Options,
> and click the right [...] button for Other Unit Files and for Other
> Sources. At the bottom of the dialog, you will see the Path templates,
> just add all of them.

No. Please add instead the LCL to the requirements in the project
inspector.

 
> 2) I have never worked with databases, maybe someone else can help you
> on this :)
> 
> Regards!
> -Marco
> 
> 2007/11/28, el stamatakos <[EMAIL PROTECTED]>:
> >
> >  Hi All,
> >   I would like to start by saying "Lazarus" seems like the answer I
> > have been looking for, for a long time. I love Delphi and have
> > finally found something similar for Linux.
> >   I have a few questions, first I registered to the forums but never
> > received an e-mail back with password so I cannot log in.
> >   I have two questions that pertain to the Linux version of Lazarus
> >
> >  1) I use a form and then I click in the OnCreate Event Handler in
> > the object inspector and it returns an error "Unable to find
> > method. Plz fix the error shown in the message window.". I look at
> > the message window and the error is "Error:unit not found:Forms". I
> > take the same code into windows and do not have this problem. Any
> > ideas.

Is the unit part of your project and the LCL in the list of
requirements (see Project / Project Inspector)?


Mattias

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


Re: [lazarus] some questions

2007-11-28 Thread Leonardo M. Ramé

Take a look at this:

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

and this

http://z505.com/cgi-bin/powtils/docs/1.6/idx.cgi?file=fcldbnotes

Leonardo.

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


Re: [lazarus] some questions

2007-11-28 Thread Arí Ricardo Ody

Talking about databases:

Was the bug of Lazarus with date, time and timestamp types when 
accessing DB2 tables fixed?


No offense but I would like to know...

[ ]

Ricardo

At 13:48 28/11/2007, you wrote:
There is also a more advanced tutorial which addresses the use of 
data-sensitive components:

http://wiki.lazarus.freepascal.org/MySQLDatabases
Hope it helps!
Chris

Roberto Padovani wrote:

about accessing databases, there is a tutorial:
http://wiki.lazarus.freepascal.org/Lazarus_Database_Tutorial
which is only a very brief introduction, but it's much better than nothing.
After going through it a few times, after going through the forums
many times, and after stumbling upon even more "access violation"
errors, I managed to working with sqlite and mysql...at least for
simple queries.
In my project I went on with sqlite only, but the dataset interfaces
are basically always the same; this is a very active list and if you
ask, you'll probably get an answer.

R#


 2) I would like to use MySQL with Lazarus. I have no idea where 
to start. I

placed a MySQL50conn module. I then tried to connect to the database using
the HostName, DatabaseName, userName, password. Is there a field for port?
Is there a simple example to retrieve data from a MySQL. I have a form that
essentially has some combobox and they are to be filled with info from the
MySQL database. Please help. Thanks

 Lefti








_
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] some questions

2007-11-28 Thread Chris Kirkpatrick
There is also a more advanced tutorial which addresses the use of 
data-sensitive components:

http://wiki.lazarus.freepascal.org/MySQLDatabases
Hope it helps!
Chris

Roberto Padovani wrote:

about accessing databases, there is a tutorial:
http://wiki.lazarus.freepascal.org/Lazarus_Database_Tutorial
which is only a very brief introduction, but it's much better than nothing.
After going through it a few times, after going through the forums
many times, and after stumbling upon even more "access violation"
errors, I managed to working with sqlite and mysql...at least for
simple queries.
In my project I went on with sqlite only, but the dataset interfaces
are basically always the same; this is a very active list and if you
ask, you'll probably get an answer.

R#

  

 2) I would like to use MySQL with Lazarus. I have no idea where to start. I
placed a MySQL50conn module. I then tried to connect to the database using
the HostName, DatabaseName, userName, password. Is there a field for port?
Is there a simple example to retrieve data from a MySQL. I have a form that
essentially has some combobox and they are to be filled with info from the
MySQL database. Please help. Thanks

 Lefti





  


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


Re: [lazarus] some questions

2007-11-28 Thread Roberto Padovani
about accessing databases, there is a tutorial:
http://wiki.lazarus.freepascal.org/Lazarus_Database_Tutorial
which is only a very brief introduction, but it's much better than nothing.
After going through it a few times, after going through the forums
many times, and after stumbling upon even more "access violation"
errors, I managed to working with sqlite and mysql...at least for
simple queries.
In my project I went on with sqlite only, but the dataset interfaces
are basically always the same; this is a very active list and if you
ask, you'll probably get an answer.

R#

2007/11/28, el stamatakos <[EMAIL PROTECTED]>:
>
>  Hi All,
>   I would like to start by saying "Lazarus" seems like the answer I have
> been looking for, for a long time. I love Delphi and have finally found
> something similar for Linux.
>   I have a few questions, first I registered to the forums but never
> received an e-mail back with password so I cannot log in.
>   I have two questions that pertain to the Linux version of Lazarus
>
>  1) I use a form and then I click in the OnCreate Event Handler in the
> object inspector and it returns an error "Unable to find method. Plz fix the
> error shown in the message window.". I look at the message window and the
> error is "Error:unit not found:Forms". I take the same code into windows and
> do not have this problem. Any ideas.
>
>  2) I would like to use MySQL with Lazarus. I have no idea where to start. I
> placed a MySQL50conn module. I then tried to connect to the database using
> the HostName, DatabaseName, userName, password. Is there a field for port?
> Is there a simple example to retrieve data from a MySQL. I have a form that
> essentially has some combobox and they are to be filled with info from the
> MySQL database. Please help. Thanks
>
>  I look forward to joining the forums and receiving help. Thanks in advance.
>
>  Lefti
>


-- 
--
 Ing. Roberto Padovani

 via Mandrioli, 1
 40061 Minerbio (BO)
 Italy

 mail: [EMAIL PROTECTED]
 cell: 340-3428685
-

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


Re: [lazarus] some questions

2007-11-28 Thread Marco Alvarado
Hello!

1) I have solved all of my "unit not found" problems by adding all the
Path templates. Just go to the main menu > Project > Compiler Options,
and click the right [...] button for Other Unit Files and for Other
Sources. At the bottom of the dialog, you will see the Path templates,
just add all of them.

2) I have never worked with databases, maybe someone else can help you
on this :)

Regards!
-Marco

2007/11/28, el stamatakos <[EMAIL PROTECTED]>:
>
>  Hi All,
>   I would like to start by saying "Lazarus" seems like the answer I have
> been looking for, for a long time. I love Delphi and have finally found
> something similar for Linux.
>   I have a few questions, first I registered to the forums but never
> received an e-mail back with password so I cannot log in.
>   I have two questions that pertain to the Linux version of Lazarus
>
>  1) I use a form and then I click in the OnCreate Event Handler in the
> object inspector and it returns an error "Unable to find method. Plz fix the
> error shown in the message window.". I look at the message window and the
> error is "Error:unit not found:Forms". I take the same code into windows and
> do not have this problem. Any ideas.
>
>  2) I would like to use MySQL with Lazarus. I have no idea where to start. I
> placed a MySQL50conn module. I then tried to connect to the database using
> the HostName, DatabaseName, userName, password. Is there a field for port?
> Is there a simple example to retrieve data from a MySQL. I have a form that
> essentially has some combobox and they are to be filled with info from the
> MySQL database. Please help. Thanks
>
>  I look forward to joining the forums and receiving help. Thanks in advance.
>
>  Lefti
>

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


[lazarus] some questions

2007-11-28 Thread el stamatakos

Hi All,
 I would like to start by saying "Lazarus" seems like the answer I have been 
looking for, for a long time. I love Delphi and have finally found something 
similar for Linux. 
 I have a few questions, first I registered to the forums but never received an 
e-mail back with password so I cannot log in.
 I have two questions that pertain to the Linux version of Lazarus
 
1) I use a form and then I click in the OnCreate Event Handler in the object 
inspector and it returns an error "Unable to find method. Plz fix the error 
shown in the message window.". I look at the message window and the error is 
"Error:unit not found:Forms". I take the same code into windows and do not have 
this problem. Any ideas.
 
2) I would like to use MySQL with Lazarus. I have no idea where to start. I 
placed a MySQL50conn module. I then tried to connect to the database using the 
HostName, DatabaseName, userName, password. Is there a field for port? Is there 
a simple example to retrieve data from a MySQL. I have a form that essentially 
has some combobox and they are to be filled with info from the MySQL database. 
Please help. Thanks
 
I look forward to joining the forums and receiving help. Thanks in advance.
 
Lefti 

Re: [lazarus] Some questions about installation

2006-09-30 Thread Arí Ricardo Ody
You think wrong about Lazarus X glib pal!

[ ]
On Sat, 30 Sep 2006 22:39:36 -0300, "Felipe Monteiro de Carvalho" <[EMAIL 
PROTECTED]> escreveu:

> 
> You are right, but I think lazarus doesn´t depend on glib. There are
> other dependencies, however.
> 
> -- 
> Felipe Monteiro de Carvalho
> 
> _
>  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] Some questions about installation

2006-09-30 Thread Felipe Monteiro de Carvalho

On 9/30/06, Arí Ricardo Ody <[EMAIL PROTECTED]> wrote:

Thanks for mr. Felipe Monteiro(just a neighbor here in Sao Paulo) too. One 
comment: If I forced the Lazarus installation as you suggested, certainly there 
were dependencies that will give me troubles in the future. glib is one of them.


You are right, but I think lazarus doesn´t depend on glib. There are
other dependencies, however.

--
Felipe Monteiro de Carvalho

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


Re: [lazarus] Some questions about installation

2006-09-30 Thread Arí Ricardo Ody
You go direct to the point master Mattias. I used the Rpmdrake to install de 
MAKE package and repeat the urpmi command and Lazarus 0.9.18 was installed 
successfully. Thank you very much.

Thanks for mr. Felipe Monteiro(just a neighbor here in Sao Paulo) too. One 
comment: If I forced the Lazarus installation as you suggested, certainly there 
were dependencies that will give me troubles in the future. glib is one of them.

Best regards 

Ricardo

On Sat, 30 Sep 2006 14:48:09 +0200, Mattias Gaertner <[EMAIL PROTECTED]> 
escreveu:

> De: Mattias Gaertner <[EMAIL PROTECTED]>
> Data: Sat, 30 Sep 2006 14:48:09 +0200
> Para: lazarus@miraclec.com
> Assunto: Re: [lazarus] Some questions about installation
> Do you have the tool 'make' installed?
> It is normally in the package 'make'.
> 
> Mattias

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


Re: [lazarus] Some questions about installation

2006-09-30 Thread Mattias Gaertner
On Sat, 30 Sep 2006 08:59:02 -0300
"Arí Ricardo Ody" <[EMAIL PROTECTED]> wrote:

> I'm trying to install Lazarus 0.9.18 in my mandriva 2006 and I'm
> having some troubles that I list below.
> 
> =>1. Must I install the "fpc_crosswin32-2.0.4-060910.i386.rpm" ? If
> affirmative, what is the function of this package? I think that in
> previousreleases of Lazarus I didn't need it. =>2. See the
> snapshot of the screen below:
> 
> 1/1: fpc-src
> # [EMAIL PROTECTED]
> download]# urpmi fpc-2.0.4-0.i586.rpm
> 
> instalando fpc-2.0.4-0.i586.rpm
> Preparando...
> # 1/1:
> fpc   #
> Running on linux Write permission in /etc.
> Saved old config to /etc/fpc.cfg.orig
> Found libgcc.a in .
> Writing sample configuration file to /etc/fpc.cfg
> [EMAIL PROTECTED] download]# urpmi lazarus-0.9.18-0.i386.rpm
> Alguns pacotes não puderam ser instalados:
> lazarus-0.9.18-0.i386 (devido a não satisfazer /usr/bin/make)
> Continue? (S/n) n
> [EMAIL PROTECTED] download]# man urpmi
> 
> [1]+  Stopped man urpmi
> [EMAIL PROTECTED] download]#
> 
> [EMAIL PROTECTED] download]# urpmi --auto lazarus-0.9.18-0.i386.rpm
> Alguns pacotes não puderam ser instalados:
> lazarus-0.9.18-0.i386 (devido a não satisfazer /usr/bin/make)
> [EMAIL PROTECTED] download]#
> ==
> After the last "urpmi" command we can read:
> 
> Some packages can't be installed:
> lazarus-0.9.18-0.i386 (due to doesn't satisfy/comply /usr/bin/make)

Do you have the tool 'make' installed?
It is normally in the package 'make'.

Mattias


> (I had previusly installed fpc-src-2.0.4-0.i386.rpm and
> fpc-2.0.4-0.i586.rpm successfully)
> 
> May someone give me some help?
> 
> Greetings from Sao Paulo - Brazil
> 
> Arí Ricardo
> 
> _
>  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] Some questions about installation

2006-09-30 Thread Felipe Monteiro de Carvalho

On 9/30/06, Arí Ricardo Ody <[EMAIL PROTECTED]> wrote:

=>1. Must I install the "fpc_crosswin32-2.0.4-060910.i386.rpm" ?


No


If affirmative, what is the function of this package?


That package is for cross-compilation from Linux to Windows.


May someone give me some help?


Type "make" on the command line on a directory without source files.
Does it show output?

If make works, and that´s the only complaint about installing Lazarus,
then I think you can just force it´s installation with:

rpm -Uvh --nodeps lazarus.rpm

--
Felipe Monteiro de Carvalho

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


[lazarus] Some questions about installation

2006-09-30 Thread Arí Ricardo Ody
I'm trying to install Lazarus 0.9.18 in my mandriva 2006 and I'm having some 
troubles that I list below.

=>1. Must I install the "fpc_crosswin32-2.0.4-060910.i386.rpm" ? If 
affirmative, what is the function of this package? I think that in previous
releases of Lazarus I didn't need it.
=>2. See the snapshot of the screen below:

  1/1: fpc-src   #
[EMAIL PROTECTED] download]# urpmi fpc-2.0.4-0.i586.rpm

instalando fpc-2.0.4-0.i586.rpm
Preparando...#
  1/1: fpc   #
Running on linux
Write permission in /etc.
Saved old config to /etc/fpc.cfg.orig
Found libgcc.a in .
Writing sample configuration file to /etc/fpc.cfg
[EMAIL PROTECTED] download]# urpmi lazarus-0.9.18-0.i386.rpm
Alguns pacotes não puderam ser instalados:
lazarus-0.9.18-0.i386 (devido a não satisfazer /usr/bin/make)
Continue? (S/n) n
[EMAIL PROTECTED] download]# man urpmi

[1]+  Stopped man urpmi
[EMAIL PROTECTED] download]#

[EMAIL PROTECTED] download]# urpmi --auto lazarus-0.9.18-0.i386.rpm
Alguns pacotes não puderam ser instalados:
lazarus-0.9.18-0.i386 (devido a não satisfazer /usr/bin/make)
[EMAIL PROTECTED] download]#
==
After the last "urpmi" command we can read:

Some packages can't be installed:
lazarus-0.9.18-0.i386 (due to doesn't satisfy/comply /usr/bin/make)
(I had previusly installed fpc-src-2.0.4-0.i386.rpm and fpc-2.0.4-0.i586.rpm 
successfully)

May someone give me some help?

Greetings from Sao Paulo - Brazil

Arí Ricardo

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


Re: [lazarus] some questions about Lazarus

2006-05-04 Thread Colin Western

Felipe Monteiro de Carvalho wrote:

On 5/3/06, dR <[EMAIL PROTECTED]> wrote:

Hello, I have some questions about Lazarus.

What is the status of drag-and-drop functionality? Is
anyone working on it, and do you need help?


I think noone is working on it and it needs to be implemented. Any
help would be greatly appreciated =)

Are you willing to implement it? If so, would you do it on Windows or
Gtk first? We can help you implementing it.

Searching the mailling list archives on Gmane I found some topics
about drag&drop from january.

I am using Drag and drop for files, and it is working fine under gtk - 
Attached is code fragment I am currently using. I posted something 
similar to the mailing lists a while back. I am not sure how to include 
it in the LCL - The code as is generates the WM_DROPFILES message more 
or less like MSWindows

Colin
interface
function DroppedFiles(Event: QDropEventH):TStringList;

procedure DragAcceptFiles(Handle: THandle; Enabled: Boolean);

function DroppedFiles(var Message: TMessage):TStringList;
implementation
{$IFDEF FPC}
var
  Targets: array [0..2] of TGtkTargetEntry = ((target:'text/plain'; flags:0; info:0), (target:'text/uri-list'; flags:0; info:1), (target:'STRING'; flags:0; info:1));

function DropCallBack(widget: PGtkWidget; dc: PGdkDragContext; x, y: gint; selection: PGtkSelectionData; info, t: guint; data: gPointer): GBoolean; cdecl;
var
  list: PGList;
  Message: TMessage;
begin
  if (data <> nil) and (selection <> nil) and (selection^.length >= 0) then begin
list := dc^.targets;
while list <> nil do begin
  if (selection^.data <> nil) and (StrPos(PChar(selection^.data), 'file://') = PChar(selection^.data)) then begin
Message.Msg := WM_DROPFILES;
Message.lParam := LongInt(selection^.data);
TWinControl(data).Dispatch(Message);
Exit;
  end;
  list := list^.next;
end;
  end;
end;

function DroppedFiles(var Message: TMessage):TStringList;
var
  i: Integer;
begin
  Result := TStringList.Create;
  try
Result.Text := PChar(Message.lParam);
for i := 0 to Result.Count-1 do
  if Pos('file://', Result[i]) = 1 then
Result[i] := Copy(Result[i], 8, Length(Result[i]));
  except
Result.Free;
Raise;
  end;
end;

procedure DragAcceptFiles(Handle: THandle; Enabled: Boolean);
begin
  if Enabled then begin
gtk_drag_dest_set(PGtkWidget(Handle), GTK_DEST_DEFAULT_ALL, @Targets[0], Length(Targets), GDK_ACTION_COPY);
gtk_signal_connect(PGtkObject(Handle), 'drag_data_received', TGTKSignalFunc(@DropCallBack), gPointer(FindOwnerControl(Handle)));
  end else
gtk_drag_dest_unset(PGtkWidget(Handle));
end;

{$IFDEF MSWINDOWS}
function DroppedFiles(var Message: TMessage):TStringList;
var
  n, nFiles: Integer;
  Buffer: array [0..600] of Char;
begin
  Result := TStringList.Create;
  try
try
  nFiles := DragQueryFile(Message.wParam, UINT(MinusOne), nil, 0);
  for n := 0 to nFiles-1 do begin
DragQueryFile(Message.wParam, n, @Buffer[0], 270);
Result.Add(StrPas(Buffer));
  end;
finally
  DragFinish(Message.wParam);
  Message.Result := 0;
end;
  except
Result.Free;
Raise;
  end;
end;
{$ENDIF}




Re: [lazarus] some questions about Lazarus

2006-05-03 Thread Felipe Monteiro de Carvalho

On 5/3/06, dR <[EMAIL PROTECTED]> wrote:

Hello, I have some questions about Lazarus.

What is the status of drag-and-drop functionality? Is
anyone working on it, and do you need help?


I think noone is working on it and it needs to be implemented. Any
help would be greatly appreciated =)

Are you willing to implement it? If so, would you do it on Windows or
Gtk first? We can help you implementing it.

Searching the mailling list archives on Gmane I found some topics
about drag&drop from january.

Bellow is a topic about drag&drop from Mattias:

From: Mattias Gaertner  netcologne.de>
Subject: Re: Drag&Drop
Newsgroups: gmane.comp.ide.lazarus.general
Date: 2006-01-02 19:43:49 GMT (17 weeks, 2 days, 6 hours and 15 minutes ago)

On Mon, 02 Jan 2006 20:20:12 +0100
dannym  gmx.net> wrote:


Hi,

Am Montag, den 02.01.2006, 19:48 +0100 schrieb Christian U.:
> Seems taht nobody have used something bevore...
> We don___t need LM_DROPFILES for Linux i do need it in windows, iam
> underway to implement it in windows.
> Also I have found documentations for qt (kde) so thers also no big
> problem.
> Does the gtk+ drag/drop support work also for not gtk applications ?
> At example with kfm ?

yes, XDND is a freedesktop standard, so it works with everything that
honors it. Gnome honors it, KDE honors it and firefox honors it (the
latter a little bit only).
http://www.newplanetsoftware.com/xdnd/dragging_files.html

Are you only talking about dragging+dropping files or do you want
dragging+dropping work for anything else too? (text, images, .)

> Or is it needed to use the lib of the wm ?

No, as far as I know the window manager does not take part in drag&drop.
What would it do?

>
> What schould we do to implement drag & drop correctMatthias ?
> Implement it in the Interface (I think that___s the best choice)
> Or implement it in an special unit that musnt come with lazarus ?


Drag&Drop needs to be completed in the interface and controls.pp.
For Drag&Drop between applications we need to gather the different ways of
winapi, gtk, qt and carbon and find a platform independent interface for the
LCL.
How does it work under gtk2, carbon, winapi? Examples would be nice.



> I think the best way could be to implement it in the interface and make
> it useable in OnDragOver/OnDragDrop of the Form or OnDragFiles or
> something similar ...

In my opinion having a OnDropFiles or so would be nice to have. Note
that XDND (X Drag and Drop) and XDS (X Drag Save) payloads are somewhat
sophisticated, so I'm not sure if OnDropFiles can do much stuff on
behalf of the programmer. That is, even with OnDropFiles provided, it
still will be a bit of work for the actual application programmer to get
some useful data out of the drop :)

Do we want to handle the "drag" part of "drag&drop" too ? :)


Of course.

Mattias

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


Re: [lazarus] some questions about Lazarus

2006-05-03 Thread Marco van de Voort
> Second question: does anyone know the status of
> CrossFPC? This is not specific to Lazarus, but the
> project would have significant ramifications.  

Simon said he had been busy lately, but planned to pick up development soon.

The legal issue of Borland opening up the CLX to a usable license is also
still pending afaik.

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


Re: [lazarus] some questions about Lazarus

2006-05-03 Thread Florian Klaempfl
dR wrote:
> Second question: does anyone know the status of
> CrossFPC? This is not specific to Lazarus, but the
> project would have significant ramifications.  

Currently less or more dead, people want to use it only but they want to spent
time in getting things working ;(

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


[lazarus] some questions about Lazarus

2006-05-03 Thread dR
Hello, I have some questions about Lazarus. 

What is the status of drag-and-drop functionality? Is
anyone working on it, and do you need help? 

Second question: does anyone know the status of
CrossFPC? This is not specific to Lazarus, but the
project would have significant ramifications.  

Marko
Ottawa, Canada

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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


Re: [lazarus] Some questions on Identifier Completion of TSourceNotebook

2006-01-16 Thread Mattias Gaertner
On 16 Jan 2006 21:36:09 +0100
Darius Blaszijk <[EMAIL PROTECTED]> wrote:

> On Mon, 2006-01-16 at 19:59, Mattias Gaertner wrote:
> > What we need:
> > 1. a hint window to right of the completion box.
> > 2. the search for the fpdoc/xml path
> > 3. the parsing of the fpdoc xml item and showing as formatted text
> > 
> > If someone implements 1 and 3, I will do 2.
> 
> The fpdoc/xml path is already known, you set it for LazDoc already, so
> perhaps you can use that.

I meant the full path. Example

docs/xml/lcl/controls.xml#TCustomControl.Paint


Mattias

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


Re: [lazarus] Some questions on Identifier Completion of TSourceNotebook

2006-01-16 Thread Darius Blaszijk
On Mon, 2006-01-16 at 19:59, Mattias Gaertner wrote:
> What we need:
> 1. a hint window to right of the completion box.
> 2. the search for the fpdoc/xml path
> 3. the parsing of the fpdoc xml item and showing as formatted text
> 
> If someone implements 1 and 3, I will do 2.

The fpdoc/xml path is already known, you set it for LazDoc already, so
perhaps you can use that.

Darius

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


Re: [lazarus] Some questions on Identifier Completion of TSourceNotebook

2006-01-16 Thread Mattias Gaertner
On Mon, 16 Jan 2006 23:19:53 +0800
Funky Beast <[EMAIL PROTECTED]> wrote:

> Have been looking at UnitEditor.pp and SynCompletion.pas.
> 
> I'm trying to implement item hints on SynBaseCompletionForm of
> ACompletion of TSourceNotebook. That is, when mouse is over
> an item of the identifier completion list, a hint pops up to
> display and describe the item.
> (Useful when looking at items that are longer than the
> completion form can show it, especially overloaded functions)
> 
> Is it implemented halfway or not at all?
> 
> Is the 'ItemList' property of ACompletion of TSourceNotebook
> used for this purpose, as I see it is filled with 'Dummy' strings,
> which looks like initializing ItemList?
> 
> If its not the above, i'll have to add a FHintList to TSourceNotebook.
> 
> Asking first so as not to cause overlapping codes.

Maybe these hints can help:

The completion box supports at the moment: Word completion, Template
completion and Identifer completion.
Word completion and Template completion collects the whole list and put them
into the ItemList.
Identifier completion is far more dynamic. There can be easily thousands of
items with long parameter lists. So adding them to the list would be far too
slow. The codetools do nearly everything on the fly. They don't for example
create strings to put into the list. They only gather code positions, and
when the user scrolls, the codetools read the information as needed.

About hints for identifiers:
I think, 'eclipse' has a nice idea: Right to completion box it puts a second
box of the same size and shows the help for each item. This has the
advantage, that you don't need the mouse and no new shortcuts.
This information is also available in lazarus. We have the fpdoc xml files.

What we need:
1. a hint window to right of the completion box.
2. the search for the fpdoc/xml path
3. the parsing of the fpdoc xml item and showing as formatted text

If someone implements 1 and 3, I will do 2.


Mattias


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


[lazarus] Some questions on Identifier Completion of TSourceNotebook

2006-01-16 Thread Funky Beast

Have been looking at UnitEditor.pp and SynCompletion.pas.

I'm trying to implement item hints on SynBaseCompletionForm of
ACompletion of TSourceNotebook. That is, when mouse is over
an item of the identifier completion list, a hint pops up to
display and describe the item.
(Useful when looking at items that are longer than the
completion form can show it, especially overloaded functions)

Is it implemented halfway or not at all?

Is the 'ItemList' property of ACompletion of TSourceNotebook
used for this purpose, as I see it is filled with 'Dummy' strings,
which looks like initializing ItemList?

If its not the above, i'll have to add a FHintList to TSourceNotebook.

Asking first so as not to cause overlapping codes.

Funky Beast

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


Re: [lazarus] Some questions about TForm.Height

2005-10-20 Thread dannym
Hi,

Am Donnerstag, den 20.10.2005, 22:49 +0400 schrieb Alex Smirnov:
> Hi, friends!
> 
> For Win32 I can use GetSystemMetrics in this case. So in Windows it
> works. But in Linux (Gnome/GTK) GetSystemMetrics is seems to be not
> realized jet - this function presents, code can be compiled, but
> GetSystemMetrics returns some strange and illegal values.
> 
> So code, that is working in Windows will not work in Linux(Gnome/GTK).
> 
> But I think that there MUST BE an information about Title Bar height
> in Gnome/GTK. So the question is HOW can we get this information using
> Gnome or GTK API. Is there any Gnome or GTK guru to help?  :-) 

Note that depending on the presence of a window frame is bad. The frame
(and thus the frame size / orientation) can change while the application
is running (every time the user switches to another window theme). It
can also change depending on the window title, or window flags, or when
you change the display resolution, or start another window manager (i.e.
terminate the current one) while the application is running. Maybe the
window itself is animating (opening/closing animation) and thus the
window frame (and thus the size) changes rapidly. Maybe the window is
minimized/hidden and has no frame yet. Maybe it is docked within windows
of other applications (i.e. tabs) -> they have one common frame. Maybe
it is running on a small display and hence nothing has window frames at
all. Maybe the window frame (and frame size) changes depending on if the
window is maximized or not.

gtk does not provide a way to determine the current frame extents.

That said, it is possible to find out the current frame extents, via
xlib, if the window manager cooperates. 
> 
http://standards.freedesktop.org/wm-spec/wm-spec-1.4.html#id2511948

_NET_FRAME_EXTENTS, left, right, top, bottom, CARDINAL[4]/32

via the gdk xlib interface:

  unsigned long* extents;

  extents = NULL;

  if (gdk_property_get (w->window,
gdk_atom_intern ("_NET_FRAME_EXTENTS", FALSE),
gdk_atom_intern ("CARDINAL", FALSE),
0,
sizeof(unsigned long) * 4,
FALSE,
NULL,
NULL,
NULL,
(guchar**)& extents
  ) && extents) {
printf("%d %d %d %d\n", extents[0], extents[1], extents[2],
extents[3]);
XFree (extents);
  }

you can get it with the normal Xlib function too, which is
XGetWindowProperty, but I'm way too tired to find out how to call that
right now :)

There are xlib bindings for fpc, so it shouldn't be hard to get it
working.

Hope that helps.

> Regards. Alexey

cheers,
   Danny


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


Re: [lazarus] Some questions about TForm.Height

2005-10-20 Thread Bram Kuijvenhoven

Tim Laurent wrote:
What about creating a window *without* a title bar first, then adding a 
title bar to it and interpret the height difference as the height of the 
title bar? I think this could even be done offscreen and Lazarus could 
do that during startup ...


Lol :) You must be kidding :)

Please read where this thread started with: the problem is the actual window 
height (i.e. the height including the title bar) can't be determined. 
Furthermore, the title bar size cannot be determined (i.e., for some 
OSes/window managers).

Regards,

Bram

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


Re: [lazarus] Some questions about TForm.Height

2005-10-20 Thread Alex Smirnov




Hi, friends!

For Win32 I can use GetSystemMetrics in this case. So in Windows it
works. But in Linux (Gnome/GTK) GetSystemMetrics is seems to be not
realized jet - this function presents, code can be compiled, but
GetSystemMetrics returns some strange and illegal values.

So code, that is working in Windows will not work in Linux(Gnome/GTK).

But I think that there MUST BE an information about Title Bar height in
Gnome/GTK. So the question is HOW can we get this information using
Gnome or GTK API. Is there any Gnome or GTK guru to help?  :-) 

Regards. Alexey




Re: [lazarus] Some questions about TForm.Height

2005-10-20 Thread Tim Laurent

If it's not posible to calculate a title bar*s height in GNU/Linux,


due to the different windows managers, why don't CREATE YOUR OWN
TITLE BAR WITH YOUR OWN HEIGHT ?



What about creating a window *without* a title bar first, then adding a 
title bar to it and interpret the height difference as the height of the 
title bar? I think this could even be done offscreen and Lazarus could 
do that during startup ...


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


Re: [lazarus] Some questions about TForm.Height

2005-10-20 Thread lazarus . mramirez
Hi.

> minus title bar height. Actually, in Lazarus TForm.Height is equal to
> TForm.ClientHeight in Delphi.

The "CLX" (QT) form in delphi had a similar problem,
I need it to simulate MDI forms with independent windows/forms,
and need it to known the height of title bar...

> So, ones more - I can't find any info about that. This problem is very

If it's not posible to calculate a title bar*s height in GNU/Linux,
due to the different windows managers, why don't CREATE YOUR OWN
TITLE BAR WITH YOUR OWN HEIGHT ?

Let me explain, if is possible to create not title forms in GNU/Linux
windows managers, then a workaround could be to create a form with no
titlebar, and then emulate your own titlebar
with your own custom close, minimize, maximize (zoom) buttons,
where you can obtain the height of the bar...


> *Best regards, Alexey.*

Cheers.

[EMAIL PROTECTED]


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


Re: [lazarus] Some questions about TForm.Height

2005-10-19 Thread Alex Smirnov




Thank you for your help.  :-)


  
Can you explain why you need the complete height ?
  

As I told you - I need to work with 3 windows. 1st is top window (like
Lazarus main window). 2nd and 3rd must be placed under that window. So,
I do:

F2ndWindow.Left:=1;                       
           
F2ndWindow.Top:=F1stWindow.Top+F1stWindow.Height;

F3rdWindow.Left:=F2ndWindow.Left+F2ndWindow.Wight; 
F3Window.Top    :=F1stWindow.Top+F1stWindow.Height;

Im Delphi all is correctly calculated. In Lazarus both F3rdWindow.Left
and F3rdWindow.Top are calculated wrong.

So. How can I obtain titlebar height (both in WIndows and in Linux) to
get a real height of my window?


Best regards. Alexey.





Re: [lazarus] Some questions about TForm.Height

2005-10-19 Thread Andrew Haines

Michael Van Canneyt wrote:


On Wed, 19 Oct 2005, Andrew Haines wrote:

 


Michael Van Canneyt wrote:

   


Since Lazarus cannot offer a method to get the title bar height on all
platforms
(notably Linux/Unix), the most sensible thing to do is to make
Height=ClientHeight...



 


This is not entirely correct. It is possible to get these values through the
window manager hints.
   



For FVWM, ICEwm etc ? 


You can try, but you are dependent on the goodwill of the window manager, no ?
 

Yes that's true. Any window manager that conforms to the freedesktop.org 
1.3 standard will work though.


Andrew

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


Re: [lazarus] Some questions about TForm.Height

2005-10-19 Thread Michael Van Canneyt


On Wed, 19 Oct 2005, Andrew Haines wrote:

> Michael Van Canneyt wrote:
> 
> > 
> > 
> > Since Lazarus cannot offer a method to get the title bar height on all
> > platforms
> > (notably Linux/Unix), the most sensible thing to do is to make
> > Height=ClientHeight...
> > 
> > 
> > 
> This is not entirely correct. It is possible to get these values through the
> window manager hints.

For FVWM, ICEwm etc ? 

You can try, but you are dependent on the goodwill of the window manager, no ?

Michael.

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


Re: [lazarus] Some questions about TForm.Height

2005-10-19 Thread Andrew Haines

Michael Van Canneyt wrote:

 


Since Lazarus cannot offer a method to get the title bar height on all platforms
(notably Linux/Unix), the most sensible thing to do is to make 
Height=ClientHeight...

 

This is not entirely correct. It is possible to get these values through 
the window manager hints.


Andrew

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


Re: [lazarus] Some questions about TForm.Height

2005-10-19 Thread Tim Laurent



Can you explain why you need the complete height ?

 

Well you may want to position a window relative to other windows, for 
example - like a playlist window that is part of a media player but can 
be positioned seperately. Or you may want to center a window on the 
screen ...



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


Re: [lazarus] Some questions about TForm.Height

2005-10-19 Thread Michael Van Canneyt


On Wed, 19 Oct 2005, Tony Maro wrote:

> Alex Smirnov wrote:
> 
> > *Dear Friends!*
> > 
> > Ones more I ask you for some help. Help me please to understand how can I
> > get real height of any form window created by Lazarus? The matter is
> > trhat TForm.Height returns not a total Form height, but Form height minus
> > title bar height. Actually, in Lazarus TForm.Height is equal to
> > TForm.ClientHeight in Delphi.
> > 
> > So, ones more - I can't find any info about that. This problem is very
> > important for me.
> > 
> > *Best regards, Alexey.*
> 
> In Linux (and OSX?) the window manager is a separate thing, and
> interchangable, so the only metric we can reliably get is the clientheight.
> 
> I'm not sure what happens in Winblows.

The height of the Window title bar can be obtained in windows through 
the system metrics, just as the width of the scrollbars etc. In Delphi

- Height is the height of the window + the height of the title bar
- Clientheight is the available height of the window. 
  This becomes smaller for MDI Windows, as e.g. the menu 
  height is substracted from the height.

There are probably some other subtleties which I'm unaware of, but the 
above should be more or less correct.

Since Lazarus cannot offer a method to get the title bar height on all platforms
(notably Linux/Unix), the most sensible thing to do is to make 
Height=ClientHeight...


Michael.

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


Re: [lazarus] Some questions about TForm.Height

2005-10-19 Thread Vincent Snijders

Alex Smirnov wrote:

*Dear Friends!*

Ones more I ask you for some help. Help me please to understand how can 
I get real height of any form window created by Lazarus? The matter is 
trhat TForm.Height returns not a total Form height, but Form height 
minus title bar height.


Yes, that is correct and by design. It is maybe historical, but it 
is/was very difficult to create a form with a given total size, if you 
can't get the size of the title bar (with gtk).


Actually, in Lazarus TForm.Height is equal to 
TForm.ClientHeight in Delphi.


In Lazarus TForm.ClientHeight doesn't include the space for the menubar, 
so if you have a menubar TForm.ClientHeight



So, ones more - I can't find any info about that. This problem is very 
important for me.


*Best regards, Alexey.*


Best regards,
Vincent

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


Re: [lazarus] Some questions about TForm.Height

2005-10-19 Thread Micha Nelissen
On Wed, 19 Oct 2005 22:07:15 +0400
Alex Smirnov <[EMAIL PROTECTED]> wrote:

> *Dear Friends!*
> 
> Ones more I ask you for some help. Help me please to understand how can 
> I get real height of any form window created by Lazarus? The matter is 
> trhat TForm.Height returns not a total Form height, but Form height 
> minus title bar height. Actually, in Lazarus TForm.Height is equal to 
> TForm.ClientHeight in Delphi.
> 
> So, ones more - I can't find any info about that. This problem is very 
> important for me.

Can you explain why you need the complete height ?

Micha

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


Re: [lazarus] Some questions about TForm.Height

2005-10-19 Thread Tony Maro

Alex Smirnov wrote:


*Dear Friends!*

Ones more I ask you for some help. Help me please to understand how 
can I get real height of any form window created by Lazarus? The 
matter is trhat TForm.Height returns not a total Form height, but Form 
height minus title bar height. Actually, in Lazarus TForm.Height is 
equal to TForm.ClientHeight in Delphi.


So, ones more - I can't find any info about that. This problem is very 
important for me.


*Best regards, Alexey.*


In Linux (and OSX?) the window manager is a separate thing, and 
interchangable, so the only metric we can reliably get is the clientheight.


I'm not sure what happens in Winblows.

-Tony

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


Re: [lazarus] Some questions about TForm.Height

2005-10-19 Thread Alex Smirnov




Dear Friends!

Ones more I ask you for some help. Help me please to understand how can
I get real height of any form window created by Lazarus? The matter is
trhat TForm.Height returns not a total Form height, but Form height
minus title bar height. Actually, in Lazarus TForm.Height is equal to
TForm.ClientHeight in Delphi.

So, ones more - I can't find any info about that. This problem is very
important for me.

Best regards, Alexey.




Re: [lazarus] Some questions about TForm.Height

2005-10-17 Thread Alex Smirnov




Problem description:

I have 3 windows(Forms). 1st form is on the top of the screen - like
Lazarus main window. I want to show two other windows below the main
window, and closely to each other.

So I wrote:

SecondForm.Left  :=1;
SecondForm.Top :=MainForm.Top + MainForm.Height;
ThirdForm.Top    :=MainForm.Top + MainForm.Height;
ThirdForm.Left    :=SecondForm.Left + SecondForm.Width;

This code works well in Delphi. But in Lazarus I see that SecondForm
and ThirdForm IS NOT placed below the MainForm - they are ON IT. So the
.Top of 3rd and 2nd windows are not calculated correctly. It is smaller
than expected and the difference is looking like a height of main
window TitleBar.

I try to find some information about this in Wiki and also in other
Lazarus documentation, examples, but had found nothing.

Thank you for your help.

Regards, Alexey.