⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 settings.pas

📁 The all mighty mouse: you can have more memory, you can have blue-ray discs but you are still using
💻 PAS
字号:
unit settings;

interface

uses
  main,
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, ExtCtrls, StdCtrls, Buttons;

type
  TSettingsForm = class(TForm)
    colorBox: TColorListBox;
    btnOk: TBitBtn;
  private
    { Private declarations }
  protected
    procedure CreateParams (var Params: TCreateParams); override;
  public

    class procedure Execute; 
  end;

implementation
{$R *.dfm}

procedure TSettingsForm.CreateParams(var Params: TCreateParams);
begin
  inherited;

  with Params do
  begin
    ExStyle := ExStyle or WS_EX_TOPMOST;
    WndParent := GetDesktopwindow;
  end;
end;

class procedure TSettingsForm.Execute;
begin
  with Create(nil) do
  try
    colorBox.Selected := MainForm.Color;
    if ShowModal <> mrCancel then MainForm.Color := colorBox.Selected;
    MainForm.Repaint;
  finally
    Release;
  end;
end;

end.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -