Changeset 58 for trunk/Forms/UFormMain.pas
- Timestamp:
- Sep 25, 2014, 3:24:18 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormMain.pas
r52 r58 17 17 18 18 TFormMain = class(TForm) 19 AStatusBarVisible: TAction; 20 AToolBarVisible: TAction; 19 21 AToolBarBigIcons: TAction; 20 22 AZoomIn: TAction; … … 36 38 MenuItem2: TMenuItem; 37 39 MenuItem20: TMenuItem; 40 MenuItem21: TMenuItem; 41 MenuItem22: TMenuItem; 38 42 MenuItem3: TMenuItem; 39 43 MenuItem4: TMenuItem; … … 53 57 ToolButton4: TToolButton; 54 58 ToolButton5: TToolButton; 59 ToolButton6: TToolButton; 60 ToolButton7: TToolButton; 61 ToolButton8: TToolButton; 62 ToolButton9: TToolButton; 63 procedure AStatusBarVisibleExecute(Sender: TObject); 55 64 procedure AToolBarBigIconsExecute(Sender: TObject); 65 procedure AToolBarVisibleExecute(Sender: TObject); 56 66 procedure AZoomAllExecute(Sender: TObject); 57 67 procedure AZoomInExecute(Sender: TObject); … … 149 159 with Config do begin 150 160 AToolBarBigIcons.Checked := GetValue(Path + '/LargeIcons', False); 161 AToolBarVisible.Checked := GetValue(Path + '/ToolBarVisible', True); 162 AStatusBarVisible.Checked := GetValue(Path + '/StatusBarVisible', True); 151 163 end; 152 164 end; … … 156 168 with Config do begin 157 169 SetValue(Path + '/LargeIcons', AToolBarBigIcons.Checked); 170 SetValue(Path + '/ToolBarVisible', AToolBarVisible.Checked); 171 SetValue(Path + '/StatusBarVisible', AStatusBarVisible.Checked); 158 172 end; 159 173 end; … … 172 186 ToolBar1.Images := Core.ImageListSmall; 173 187 end; 188 ToolBar1.Visible := AToolBarVisible.Checked; 189 StatusBar1.Visible := AStatusBarVisible.Checked; 174 190 end; 175 191 … … 209 225 begin 210 226 AToolBarBigIcons.Checked := not AToolBarBigIcons.Checked; 227 ReloadView; 228 end; 229 230 procedure TFormMain.AStatusBarVisibleExecute(Sender: TObject); 231 begin 232 AStatusBarVisible.Checked := not AStatusBarVisible.Checked; 233 ReloadView; 234 end; 235 236 procedure TFormMain.AToolBarVisibleExecute(Sender: TObject); 237 begin 238 AToolBarVisible.Checked := not AToolBarVisible.Checked; 211 239 ReloadView; 212 240 end;
Note:
See TracChangeset
for help on using the changeset viewer.