Changeset 268 for trunk/Forms/UFormMain.pas
- Timestamp:
- Jan 20, 2019, 9:32:16 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormMain.pas
r253 r268 18 18 19 19 TFormMain = class(TForm) 20 AMapGridVisible: TAction; 20 21 AStatusBarVisible: TAction; 21 22 AToolBarVisible: TAction; … … 47 48 MenuItem30: TMenuItem; 48 49 MenuItem32: TMenuItem; 50 MenuItem33: TMenuItem; 49 51 MenuItemDebug: TMenuItem; 50 52 MenuItem31: TMenuItem; … … 70 72 ToolButton5: TToolButton; 71 73 ToolButton9: TToolButton; 74 procedure AMapGridVisibleExecute(Sender: TObject); 72 75 procedure AStatusBarVisibleExecute(Sender: TObject); 73 76 procedure AToolBarBigIconsExecute(Sender: TObject); … … 178 181 end; 179 182 183 procedure TFormMain.AMapGridVisibleExecute(Sender: TObject); 184 begin 185 AMapGridVisible.Checked := not AMapGridVisible.Checked; 186 UpdateClientForms; 187 end; 188 180 189 procedure TFormMain.AToolBarBigIconsExecute(Sender: TObject); 181 190 begin … … 211 220 Core.PersistentForm.Save(Self); 212 221 SaveConfig(Core.XMLConfig1, 'FormMain'); 222 Core.ShowCellGrid := AMapGridVisible.Checked; 213 223 Core.Done; 214 224 end; … … 234 244 FormClient.AStatusBarVisible.Checked := AStatusBarVisible.Checked; 235 245 FormClient.AStatusBarVisible.Update; 246 Core.ShowCellGrid := AMapGridVisible.Checked; 247 if Assigned(FormClient.Client) then 248 FormClient.Client.ShowCellGrid := Core.ShowCellGrid; 249 FormClient.Redraw; 236 250 for I := 0 to Core.FormClients.Count - 1 do begin 237 251 Core.FormClients[I].AToolBarBigIcons.Checked := AToolBarBigIcons.Checked; … … 241 255 Core.FormClients[I].AStatusBarVisible.Checked := AStatusBarVisible.Checked; 242 256 Core.FormClients[I].AStatusBarVisible.Update; 257 if Assigned(Core.FormClients[I].Client) then 258 Core.FormClients[I].Client.ShowCellGrid := Core.ShowCellGrid; 259 Core.FormClients[I].Redraw; 243 260 end; 244 261 end; … … 248 265 if not FormShown then begin 249 266 Core.LoadConfig; 267 AMapGridVisible.Checked := Core.ShowCellGrid; 250 268 Core.ScaleDPI; 251 269 Core.PersistentForm.Load(Self, True);
Note:
See TracChangeset
for help on using the changeset viewer.