Ryan McGinty
rmcg...@oceris.com
OCERIS, Inc.
Home of FlexMedical
var
R: TRect;
...
Windows.GetClientRect(ClientHandle, R);
...
should give you what you want...
R.Right = Width
R.Bottom = Height
"Ryan McGinty" <rmcg...@oceris.com> wrote in message
news:3999924b$1_2@dnews...
Well, thanks for the suggestion, but that apparently is the same as the
ClientHeight and ClientWidth properties. It includes the area of the entire
form, not just the MDI area. But, again, thanks for the answer!
Ryan McGinty
rmcg...@oceris.com
"Andreas Vögerl" <NOSPAMandr...@gmx.net> wrote in message
news:8nc5q5$45...@bornews.borland.com...
> Windows.GetClientRect(ClientHandle, R);
> ...
--------Uni1.pas--------
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
ComCtrls, Menus, ExtCtrls, StdCtrls;
type
TForm1 = class(TForm)
Label1: TLabel;
procedure FormResize(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.DFM}
procedure TForm1.FormResize(Sender: TObject);
var
R: TRect;
begin
Windows.GetClientRect(ClientHandle, R);
Label1.Caption :=
Format('Form.ClientWidth=%d,'#13'MDIClient.ClientWidth=%d', [ClientWidth,
R.Right]);
end;
end.
----------------
--------Unit1.dfm--------
object Form1: TForm1
Left = 192
Top = 107
Width = 763
Height = 480
Caption = 'Form1'
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'MS Sans Serif'
Font.Style = []
FormStyle = fsMDIForm
OldCreateOrder = False
OnResize = FormResize
PixelsPerInch = 96
TextHeight = 13
object Label1: TLabel
Left = 0
Top = 0
Width = 249
Height = 453
Align = alLeft
Alignment = taCenter
AutoSize = False
Caption = 'Label1'
Layout = tlCenter
end
end
----------------
"Ryan McGinty" <rmcg...@oceris.com> wrote in message
news:3999a432$1_1@dnews...
Ryan McGinty
rmcg...@oceris.com
"Andreas Vögerl" <NOSPAMandr...@gmx.net> wrote in message
news:8nc9cl$8s...@bornews.borland.com...