Added a property for BorderWidth in TForm

Changed the hint window in the designer to be more picky when it pops up.
Shane

git-svn-id: trunk@423 -
This commit is contained in:
lazarus 2001-11-15 19:16:43 +00:00
parent e7a4c972d5
commit 704da558b2
2 changed files with 6 additions and 1 deletions

View File

@ -1037,10 +1037,14 @@ var
AHint : String;
Control : TControl;
Position : TPoint;
BW : Integer;
begin
BW := 0;
if (FCustomForm is TForm) then
BW := TForm(FCustomForm).BorderWidth;
FHintTimer.Enabled := False;
Position := Mouse.CursorPos;
if ((Position.X < FCustomForm.LEft) or (Position.X > (FCustomForm.Left+FCustomForm.Width)) or (Position.Y < FCustomForm.Top) or (Position.Y > (FCustomForm.Top+FCustomForm.Height))) then Exit;
if ((Position.X < (FCustomForm.LEft +BW)) or (Position.X > (FCustomForm.Left+FCustomForm.Width - BW)) or (Position.Y < FCustomForm.Top+22) or (Position.Y > (FCustomForm.Top+FCustomForm.Height - BW))) then Exit;
Position := FCustomForm.ScreenToClient(Position);

View File

@ -186,6 +186,7 @@ type
property ActiveCOntrol;
property Align;
property AutoSize;
property BorderWidth;
property Caption;
property Color;
property ClientHeight;