Changeset 30 for trunk/Forms/UFormMain.pas
- Timestamp:
- Jul 12, 2016, 5:56:39 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormMain.pas
r29 r30 55 55 MenuItem22: TMenuItem; 56 56 MenuItem23: TMenuItem; 57 MenuItem24: TMenuItem; 58 MenuItemToolbar: TMenuItem; 57 59 MenuItem4: TMenuItem; 58 60 MenuItem5: TMenuItem; … … 65 67 MenuItem9: TMenuItem; 66 68 OpenDialog1: TOpenDialog; 69 Panel1: TPanel; 67 70 PersistentForm1: TPersistentForm; 68 71 PopupMenuTryIcon: TPopupMenu; 69 72 SaveDialog1: TSaveDialog; 73 ToolBar1: TToolBar; 74 ToolButton1: TToolButton; 75 ToolButton2: TToolButton; 76 ToolButton3: TToolButton; 77 ToolButton4: TToolButton; 78 ToolButton5: TToolButton; 79 ToolButton6: TToolButton; 80 ToolButton7: TToolButton; 81 ToolButton8: TToolButton; 70 82 TrayIcon1: TTrayIcon; 71 83 procedure AExitExecute(Sender: TObject); … … 98 110 function ListViewSort1CompareItem(Item1, Item2: TObject): Integer; 99 111 procedure ListViewSort1Filter(ListViewSort: TListViewSort); 112 procedure MenuItemToolbarClick(Sender: TObject); 100 113 procedure TrayIcon1Click(Sender: TObject); 101 114 private … … 387 400 AcronymDb.AssignToList(ListViewSort1.List); 388 401 FilterList(ListViewSort1.List); 402 end; 403 404 procedure TFormMain.MenuItemToolbarClick(Sender: TObject); 405 begin 406 MenuItemToolbar.Checked := not MenuItemToolbar.Checked; 407 UpdateInterface; 389 408 end; 390 409 … … 484 503 AShowAcronyms.Enabled := Assigned(AcronymDb); 485 504 AShowImportSources.Enabled := Assigned(AcronymDb); 505 ToolBar1.Visible := MenuItemToolbar.Checked; 486 506 487 507 Title := Application.Title; … … 506 526 AlwaysOnTop := ReadBoolWithDefault('AlwaysOnTop', False); 507 527 CheckBoxExactMath.Checked := ReadBoolWithDefault('ExactMatch', False); 528 MenuItemToolbar.Checked := ReadBoolWithDefault('ToolBarVisible', True); 508 529 finally 509 530 Free; … … 524 545 WriteBool('AlwaysOnTop', AlwaysOnTop); 525 546 WriteBool('ExactMatch', CheckBoxExactMath.Checked); 547 WriteBool('ToolBarVisible', MenuItemToolbar.Checked); 526 548 finally 527 549 Free;
Note:
See TracChangeset
for help on using the changeset viewer.