Changeset 174 for trunk/Forms


Ignore:
Timestamp:
Jul 19, 2024, 3:51:57 PM (4 months ago)
Author:
chronos
Message:
  • Added: Menu action View - Fullscreen for switching into full screen mode.
  • Fixed: Save main form dimensions if application Exit action is selected.
Location:
trunk/Forms
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/FormMain.lfm

    r167 r174  
    11object FormMain: TFormMain
    22  Left = 534
    3   Height = 993
     3  Height = 1061
    44  Top = 223
    55  Width = 1491
    66  AllowDropFiles = True
    77  Caption = 'vCard Studio'
    8   ClientHeight = 959
     8  ClientHeight = 1061
    99  ClientWidth = 1491
    1010  DesignTimePPI = 144
     
    1818  OnResize = FormResize
    1919  OnShow = FormShow
    20   LCLVersion = '2.2.6.0'
     20  LCLVersion = '3.4.0.0'
    2121  object CoolBar1: TCoolBar
    2222    Left = 0
     
    196196        OnClick = MenuItemColumnsClick
    197197      end
     198      object MenuItem17: TMenuItem
     199        Action = Core.AFullScreen
     200      end
    198201    end
    199202    object MenuItemTools: TMenuItem
  • trunk/Forms/FormMain.pas

    r167 r174  
    2222    MenuItem15: TMenuItem;
    2323    MenuItem16: TMenuItem;
     24    MenuItem17: TMenuItem;
    2425    MenuItemColumns: TMenuItem;
    2526    MenuItem3: TMenuItem;
     
    8081    procedure UpdateInterface;
    8182    procedure SettingsChanged;
     83    procedure ToggleFullScreen;
    8284  end;
    8385
     
    249251  UpdateFormTitle;
    250252  CoolBar1.Visible := MenuItemToolbar.Checked;
     253  Core.Core.AFullScreen.Checked := FullScreen;
    251254end;
    252255
     
    259262end;
    260263
     264procedure TFormMain.ToggleFullScreen;
     265begin
     266  FullScreen := not FullScreen;
     267  Core.Core.AFullScreen.Checked := FullScreen;
     268  TFormEx.PersistentForm.Save(Self);
     269  TFormEx.PersistentForm.SetFullScreen(FullScreen);
     270  UpdateInterface;
     271end;
     272
    261273end.
    262274
Note: See TracChangeset for help on using the changeset viewer.