Ignore:
Timestamp:
Sep 25, 2014, 3:24:18 PM (10 years ago)
Author:
chronos
Message:
  • Fixed: Background drawing problems of cells and arrows.
  • Added: Zooming actions added also to toolbar.
  • Added: Toolbar and statusbar visibility settings.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormMain.pas

    r52 r58  
    1717
    1818  TFormMain = class(TForm)
     19    AStatusBarVisible: TAction;
     20    AToolBarVisible: TAction;
    1921    AToolBarBigIcons: TAction;
    2022    AZoomIn: TAction;
     
    3638    MenuItem2: TMenuItem;
    3739    MenuItem20: TMenuItem;
     40    MenuItem21: TMenuItem;
     41    MenuItem22: TMenuItem;
    3842    MenuItem3: TMenuItem;
    3943    MenuItem4: TMenuItem;
     
    5357    ToolButton4: TToolButton;
    5458    ToolButton5: TToolButton;
     59    ToolButton6: TToolButton;
     60    ToolButton7: TToolButton;
     61    ToolButton8: TToolButton;
     62    ToolButton9: TToolButton;
     63    procedure AStatusBarVisibleExecute(Sender: TObject);
    5564    procedure AToolBarBigIconsExecute(Sender: TObject);
     65    procedure AToolBarVisibleExecute(Sender: TObject);
    5666    procedure AZoomAllExecute(Sender: TObject);
    5767    procedure AZoomInExecute(Sender: TObject);
     
    149159  with Config do begin
    150160    AToolBarBigIcons.Checked := GetValue(Path + '/LargeIcons', False);
     161    AToolBarVisible.Checked := GetValue(Path + '/ToolBarVisible', True);
     162    AStatusBarVisible.Checked := GetValue(Path + '/StatusBarVisible', True);
    151163  end;
    152164end;
     
    156168  with Config do begin
    157169    SetValue(Path + '/LargeIcons', AToolBarBigIcons.Checked);
     170    SetValue(Path + '/ToolBarVisible', AToolBarVisible.Checked);
     171    SetValue(Path + '/StatusBarVisible', AStatusBarVisible.Checked);
    158172  end;
    159173end;
     
    172186    ToolBar1.Images := Core.ImageListSmall;
    173187  end;
     188  ToolBar1.Visible := AToolBarVisible.Checked;
     189  StatusBar1.Visible := AStatusBarVisible.Checked;
    174190end;
    175191
     
    209225begin
    210226  AToolBarBigIcons.Checked := not AToolBarBigIcons.Checked;
     227  ReloadView;
     228end;
     229
     230procedure TFormMain.AStatusBarVisibleExecute(Sender: TObject);
     231begin
     232  AStatusBarVisible.Checked := not AStatusBarVisible.Checked;
     233  ReloadView;
     234end;
     235
     236procedure TFormMain.AToolBarVisibleExecute(Sender: TObject);
     237begin
     238  AToolBarVisible.Checked := not AToolBarVisible.Checked;
    211239  ReloadView;
    212240end;
Note: See TracChangeset for help on using the changeset viewer.