Ignore:
Timestamp:
Dec 22, 2016, 9:46:17 PM (8 years ago)
Author:
chronos
Message:
  • Modified: Load image data from file quickly using Bitmap RawImage.
  • Modified: Remember last selected color format.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormNew.pas

    r28 r29  
    77uses
    88  Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, Spin,
    9   StdCtrls, ActnList, UFGraphics;
     9  StdCtrls, ActnList, UFGraphics, URegistry;
    1010
    1111type
     
    3232    { private declarations }
    3333  public
    34     { public declarations }
    3534  end;
    3635
     
    7170    ComboBoxColorFormat.ItemIndex := 0;
    7271
     72  if ComboBoxColorFormat.Items.IndexOf(Core.LastColorFormat) <> -1 then
     73    ComboBoxColorFormat.ItemIndex := ComboBoxColorFormat.Items.IndexOf(Core.LastColorFormat);
     74
    7375  // Default
    7476  SpinEditWidth.Value := 200;
     
    7981procedure TFormNew.FormClose(Sender: TObject; var CloseAction: TCloseAction);
    8082begin
     83  Core.LastColorFormat := ComboBoxColorFormat.Items[ComboBoxColorFormat.ItemIndex];
    8184  Core.PersistentForm1.Save(Self);
    8285end;
Note: See TracChangeset for help on using the changeset viewer.