OSDN Git Service

最小化時にタスクトレイに格納する機能&オプション追加
authorh677 <h677>
Sun, 6 Aug 2006 13:20:46 +0000 (13:20 +0000)
committerh677 <h677>
Sun, 6 Aug 2006 13:20:46 +0000 (13:20 +0000)
Option.pas
Setting.pas

index 2627d48..960caf7 100644 (file)
@@ -205,6 +205,8 @@ type
     GroupBox20: TGroupBox;
     AutoSortCheckBox: TCheckBox;
     Label24: TLabel;
+    GroupBox21: TGroupBox;
+    StoredTaskTrayCB: TCheckBox;
                procedure FormCreate(Sender: TObject);
                procedure FormDestroy(Sender: TObject);
                procedure ApplyButtonClick(Sender: TObject);
@@ -864,6 +866,8 @@ begin
        BeAutoLoginCheckBox.Checked := GikoSys.Setting.BeAutoLogin;
        //\97\9a\97ð\82Ì\8dÅ\91å\95Û\91\90\94
        MaxRecordCountEdit.Text := IntToStr(GikoSys.Setting.MaxRecordCount);
+    // \8dÅ\8f¬\89»\8e\9e\82É\83^\83X\83N\83g\83\8c\83C\82É\8ai\94[\82·\82é\82©
+    StoredTaskTrayCB.Checked := GikoSys.Setting.StoredTaskTray;
 end;
 
 procedure TOptionDialog.SaveSetting;
@@ -1151,6 +1155,7 @@ begin
                GikoSys.Setting.BeAutoLogin := BeAutoLoginCheckBox.Checked;
        //\97\9a\97ð\82Ì\8dÅ\91å\95Û\91\90\94
        GikoSys.Setting.MaxRecordCount := Max(StrToInt64Def(MaxRecordCountEdit.Text,100),1);
+    GikoSys.Setting.StoredTaskTray := StoredTaskTrayCB.Checked;
 end;
 
 procedure TOptionDialog.SettingApply;
index c657607..f50e858 100644 (file)
@@ -434,7 +434,8 @@ type
                FFixedCookie: String;
         //! \83\8a\83\93\83N\88Ú\93®\97\9a\97ð\82Ì\95Û\8e\9d\90\94
         FMoveHistorySize : Integer;
-
+        //! \8dÅ\8f¬\89»\82µ\82½\82Æ\82«\82É\83^\83X\83N\83g\83\8c\83C\82É\8ai\94[\82·\82é\82©
+        FStoredTaskTray : Boolean;
                function GetMainCoolSet(Index: Integer): TCoolSet;
                function GetBoardCoolSet(Index: Integer): TCoolSet;
                function GetBrowserCoolSet(Index: Integer): TCoolSet;
@@ -765,9 +766,10 @@ type
                property InputAssistFormHeight: Integer read FInputAssistFormHeight write FInputAssistFormHeight;
                //! Cookie\82É\95t\89Á\82·\82é\8cÅ\92è\83R\81[\83h
                property FixedCookie: String read FFixedCookie write FFixedCookie;
-        // \83\8a\83\93\83N\88Ú\93®\97\9a\97ð\82Ì\95Û\8e\9d\90\94
+        //! \83\8a\83\93\83N\88Ú\93®\97\9a\97ð\82Ì\95Û\8e\9d\90\94
         property MoveHistorySize : Integer read FMoveHistorySize write SetMoveHistorySize;
-
+        //! \8dÅ\8f¬\89»\8e\9e\82É\83^\83X\83N\83g\83\8c\83C\82É\8ai\94[\82·\82é\82©
+        property StoredTaskTray : Boolean read FStoredTaskTray write FStoredTaskTray;
 end;
 
 
@@ -1393,6 +1395,8 @@ begin
         // \83\8a\83\93\83N\88Ú\93®\97\9a\97ð\82Ì\8dÅ\91å\95Û\8e\9d\90\94
         FMoveHistorySize := ini.ReadInteger('MoveHisotry', 'Max', 20);
 
+        FStoredTaskTray := ini.ReadBool('Function', 'StroedTaskTray', false);
+
                ini.UpdateFile;
        finally
                ini.Free;
@@ -1767,6 +1771,8 @@ begin
         // \83\8a\83\93\83N\88Ú\93®\97\9a\97ð\82Ì\8dÅ\91å\95Û\8e\9d\90\94
         ini.WriteInteger('MoveHisotry', 'Max', FMoveHistorySize);
 
+        ini.WriteBool('Function', 'StroedTaskTray', FStoredTaskTray);
+
                ini.UpdateFile;
        finally
                ini.Free;