fixed double creating hints in OI

git-svn-id: trunk@9820 -
This commit is contained in:
mattias 2006-09-06 08:53:48 +00:00
parent 3080a56bcc
commit cbbc16493d
2 changed files with 13 additions and 10 deletions

View File

@ -39,7 +39,7 @@ function LazSelectDirectory(const Title: string; const InitialDir: string = ''
): string; ): string;
var var
LazIDESelectDirectory: TIDESelectDirectory;// set by the IDE LazIDESelectDirectory: TIDESelectDirectory = nil;// set by the IDE
InitIDEFileDialog: TInitIDEFileDialog = nil; InitIDEFileDialog: TInitIDEFileDialog = nil;
StoreIDEFileDialog: TStoreIDEFileDialog = nil ; StoreIDEFileDialog: TStoreIDEFileDialog = nil ;
IDEMessageDialog: TIDEMessageDialog = nil; IDEMessageDialog: TIDEMessageDialog = nil;

View File

@ -926,18 +926,21 @@ end;
function TOICustomPropertyGrid.InitHints: boolean; function TOICustomPropertyGrid.InitHints: boolean;
begin begin
if not ShowHint then exit(false); if not ShowHint then exit(false);
Result:=true; Result:=true;
FHintTimer := TTimer.Create(nil); if FHintTimer=nil then begin
FHintTimer.Interval := 500; FHintTimer := TTimer.Create(nil);
FHintTimer.Enabled := False; FHintTimer.Interval := 500;
FHintTimer.OnTimer := @HintTimer; FHintTimer.Enabled := False;
FHintTimer.OnTimer := @HintTimer;
FHintWindow := THintWindow.Create(Self); FHintWindow := THintWindow.Create(Self);
FHIntWindow.Visible := False; FHIntWindow.Visible := False;
FHintWindow.Caption := 'This is a hint window'#13#10'Neat huh?'; FHintWindow.Caption := 'This is a hint window'#13#10'Neat huh?';
FHintWindow.HideInterval := 4000; FHintWindow.HideInterval := 4000;
FHintWindow.AutoHide := True; FHintWindow.AutoHide := True;
end;
end; end;
function TOICustomPropertyGrid.ConsistencyCheck: integer; function TOICustomPropertyGrid.ConsistencyCheck: integer;