mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-10-22 16:21:37 +02:00
fixed double creating hints in OI
git-svn-id: trunk@9820 -
This commit is contained in:
parent
3080a56bcc
commit
cbbc16493d
@ -39,7 +39,7 @@ function LazSelectDirectory(const Title: string; const InitialDir: string = ''
|
||||
): string;
|
||||
|
||||
var
|
||||
LazIDESelectDirectory: TIDESelectDirectory;// set by the IDE
|
||||
LazIDESelectDirectory: TIDESelectDirectory = nil;// set by the IDE
|
||||
InitIDEFileDialog: TInitIDEFileDialog = nil;
|
||||
StoreIDEFileDialog: TStoreIDEFileDialog = nil ;
|
||||
IDEMessageDialog: TIDEMessageDialog = nil;
|
||||
|
@ -926,18 +926,21 @@ end;
|
||||
function TOICustomPropertyGrid.InitHints: boolean;
|
||||
begin
|
||||
if not ShowHint then exit(false);
|
||||
|
||||
Result:=true;
|
||||
FHintTimer := TTimer.Create(nil);
|
||||
FHintTimer.Interval := 500;
|
||||
FHintTimer.Enabled := False;
|
||||
FHintTimer.OnTimer := @HintTimer;
|
||||
if FHintTimer=nil then begin
|
||||
FHintTimer := TTimer.Create(nil);
|
||||
FHintTimer.Interval := 500;
|
||||
FHintTimer.Enabled := False;
|
||||
FHintTimer.OnTimer := @HintTimer;
|
||||
|
||||
FHintWindow := THintWindow.Create(Self);
|
||||
FHintWindow := THintWindow.Create(Self);
|
||||
|
||||
FHIntWindow.Visible := False;
|
||||
FHintWindow.Caption := 'This is a hint window'#13#10'Neat huh?';
|
||||
FHintWindow.HideInterval := 4000;
|
||||
FHintWindow.AutoHide := True;
|
||||
FHIntWindow.Visible := False;
|
||||
FHintWindow.Caption := 'This is a hint window'#13#10'Neat huh?';
|
||||
FHintWindow.HideInterval := 4000;
|
||||
FHintWindow.AutoHide := True;
|
||||
end;
|
||||
end;
|
||||
|
||||
function TOICustomPropertyGrid.ConsistencyCheck: integer;
|
||||
|
Loading…
Reference in New Issue
Block a user