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

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

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

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 :)

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

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

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

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

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 ...

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

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

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;