Ignore:
Timestamp:
Feb 26, 2023, 1:26:47 AM (2 years ago)
Author:
ataylor
Message:

Improve print dialog scaling; avoid crash when querying the system time/date formats

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ae/MainFormUnit.pas

    r467 r469  
    99
    1010Const
    11   AppVersion =     'v1.9.8c'; // $SS_REQUIRE_NEW_VERSION$
    12   BldLevelVersion = '1.9.9';
     11  AppVersion =      'v1.9.8d'; // $SS_REQUIRE_NEW_VERSION$
     12  BldLevelVersion = '1.9.8d';
    1313
    1414{ Todo:
     
    666666                          ExtractFileName( FFilename ) );
    667667
    668   // centred date/time, if it fits
    669   DateTimeStr := FormatDateTime( 'ddddd t', // short date, short time
     668  // centred date/time, if it fits (short/long date/time strings cause crash on some systems)
     669  DateTimeStr := FormatDateTime( 'yyyy/mm/dd h:nn:ss ampm',
    670670                                 Now );
    671671
     
    687687                          Y,
    688688                          PageNumberStr );
     689
    689690end;
    690691
     
    771772    begin
    772773      Printer.Canvas.Font :=
    773         Screen.GetFontFromPointSize( 'Courier New',
     774        Screen.GetFontFromPointSize( 'Courier',
    774775                                     FMemoFont.PointSize );
    775776    end
     
    838839
    839840    // print text that fits on this page
    840 
    841841    while P < EndP do
    842842    begin
     
    933933                          nil // no vector of increments
    934934                        );
    935 
    936935      // subtract line height from vertical position
    937936      dec( Y, TextHeight );
     
    22842283  Description = 'Text Editor';
    22852284
    2286   // BLDLevel - compatible - mostly
     2285  // BLDLevel-like info (not actually compatible with BLDLEVEL command)
    22872286  EmbeddedVersion: string =
    22882287      '@#'
Note: See TracChangeset for help on using the changeset viewer.