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

📄 ribbonnotepaddemooptions.pas

📁 胜天进销存源码,国产优秀的进销存
💻 PAS
字号:
unit RibbonNotepadDemoOptions;

interface

uses
  Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls;

type

  TScreenTipOptions = record
    ShowScreenTips: Boolean;
    ShowDescripitons: Boolean;
  end;

  TRibbonDemoOptionsForm = class(TForm)
    cbColorScheme: TComboBox;
    cbScreenTipStyle: TComboBox;
    lblColorScheme: TLabel;
    lblScreenTipStyle: TLabel;
    Button1: TButton;
    Button2: TButton;
  private
    { Private declarations }
  public
    function GetOptions(var AColorSchemeName: string; var AScreenTipOptions: TScreenTipOptions): Boolean;
  end;

var
  RibbonDemoOptionsForm: TRibbonDemoOptionsForm;

implementation

{$R *.dfm}

function TRibbonDemoOptionsForm.GetOptions(var AColorSchemeName: string; var AScreenTipOptions: TScreenTipOptions): Boolean;
begin
  cbColorScheme.ItemIndex := cbColorScheme.Items.IndexOf(AColorSchemeName);
  if AScreenTipOptions.ShowScreenTips then
    if AScreenTipOptions.ShowDescripitons then
      cbScreenTipStyle.ItemIndex := 0
    else
      cbScreenTipStyle.ItemIndex := 1
  else
    cbScreenTipStyle.ItemIndex := 2;

  Result := ShowModal = mrOk;

  if Result then
  begin
    AColorSchemeName := cbColorScheme.Text;
    AScreenTipOptions.ShowScreenTips := cbScreenTipStyle.ItemIndex <> 2;
    AScreenTipOptions.ShowDescripitons := cbScreenTipStyle.ItemIndex = 0;
  end;
end;

end.

⌨️ 快捷键说明

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