Ignore:
Timestamp:
Nov 12, 2017, 1:47:20 PM (7 years ago)
Author:
chronos
Message:
  • Modified: Do not create settings form on application start but just if form is opened.
  • Fixed: Removed various compilation warnings.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormMain.pas

    r133 r145  
    77uses
    88  Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, ExtCtrls,
    9   UGame, LCLType, Menus, ActnList, ComCtrls, types, dateutils, XMLConf;
     9  UGame, LCLType, Menus, ActnList, ComCtrls, types, dateutils, XMLConf, DOM;
    1010
    1111const
     
    193193begin
    194194  with Config do begin
    195     AToolBarBigIcons.Checked := GetValue(Path + '/LargeIcons', False);
    196     AToolBarVisible.Checked := GetValue(Path + '/ToolBarVisible', True);
    197     AStatusBarVisible.Checked := GetValue(Path + '/StatusBarVisible', False);
     195    AToolBarBigIcons.Checked := GetValue(DOMString(Path + '/LargeIcons'), False);
     196    AToolBarVisible.Checked := GetValue(DOMString(Path + '/ToolBarVisible'), True);
     197    AStatusBarVisible.Checked := GetValue(DOMString(Path + '/StatusBarVisible'), False);
    198198  end;
    199199end;
     
    202202begin
    203203  with Config do begin
    204     SetValue(Path + '/LargeIcons', AToolBarBigIcons.Checked);
    205     SetValue(Path + '/ToolBarVisible', AToolBarVisible.Checked);
    206     SetValue(Path + '/StatusBarVisible', AStatusBarVisible.Checked);
     204    SetValue(DOMString(Path + '/LargeIcons'), AToolBarBigIcons.Checked);
     205    SetValue(DOMString(Path + '/ToolBarVisible'), AToolBarVisible.Checked);
     206    SetValue(DOMString(Path + '/StatusBarVisible'), AStatusBarVisible.Checked);
    207207  end;
    208208end;
     
    289289
    290290procedure TFormMain.AZoomOutExecute(Sender: TObject);
    291 var
    292   D: TPoint;
     291//var
     292//  D: TPoint;
    293293begin
    294294  with Core.CurrentClient do begin
Note: See TracChangeset for help on using the changeset viewer.