IsDraggingSelectComboBox : Boolean;
DraggingSelectComboBoxPosition : TPoint;
+ FSearchDialog: TForm;
+
procedure SetBoardTreeNode;
function SetCategoryListItem(ABBS2ch: TBBS2ch): Integer;
function SetBoardListItem(Category: TCategory): Integer;
FTreeType := gttNone;
+ FSearchDialog := nil;
+
//\8eè\82Ì\83J\81[\83\\83\8b
Screen.Cursors[5] := LoadCursor(HInstance, 'GIKOHAND');
procedure TGikoForm.SearchActionExecute(Sender: TObject);
var
- Dlg: TSearchDialog;
chk: TObject;
begin
- if (GikoForm.GetActiveList is TCategory) or (GikoForm.GetActiveList is TBoard) then
- chk := GikoForm.GetActiveList
- else
- chk := nil;
- Dlg := TSearchDialog.Create(Self, chk);
- try
- Dlg.ShowModal;
- finally
- Dlg.Release;
- end;
+ if FSearchDialog = nil then begin
+ if (GikoForm.GetActiveList is TCategory) or (GikoForm.GetActiveList is TBoard) then
+ chk := GikoForm.GetActiveList
+ else
+ chk := nil;
+
+ FSearchDialog := TSearchDialog.Create(Self, chk);
+ end;
+
+ try
+ FSearchDialog.Show;
+ except
+ end;
+
end;
procedure TGikoForm.OptionActionExecute(Sender: TObject);