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

📄 gq_ugroupsort.pas

📁 亚惠快餐管理信息系统 包括亚惠快餐管理的各项功能
💻 PAS
字号:
unit GQ_UGroupSort;

interface

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

type
  TGroupSortForm = class(TForm)
    sortbox: TListBox;
    sortlist: TListBox;
    sortradio: TRadioGroup;
    Label1: TLabel;
    Label2: TLabel;
    Label3: TLabel;
    Label4: TLabel;
    Button1: TButton;
    Button2: TButton;
    procedure Label3Click(Sender: TObject);
    procedure Label4Click(Sender: TObject);
    procedure Button2Click(Sender: TObject);
    procedure Button1Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  GroupSortForm: TGroupSortForm;

implementation

{$R *.DFM}

procedure TGroupSortForm.Label3Click(Sender: TObject);
var
  tempstring: string;
begin
  if sortbox.ItemIndex = -1 then
    exit;
  if sortRadio.ItemIndex = 0 then
    tempstring := sortbox.Items[sortbox.itemindex] + ' ASC';
  if sortRadio.ItemIndex = 1 then
    tempstring := sortbox.Items[sortbox.itemindex] + ' DESC';
  if sortlist.Items.IndexOf(tempstring) <> -1 then
  begin
    showmessage('请不要重复选取');
    exit;
  end;
  sortlist.Items.Add(tempstring);
end;

procedure TGroupSortForm.Label4Click(Sender: TObject);
begin
  if sortlist.ItemIndex = -1 then
    exit;
  sortlist.Items.Delete(sortlist.itemindex);
end;

procedure TGroupSortForm.Button2Click(Sender: TObject);
begin
  GroupSortForm.ModalResult := mrCancel;
end;

procedure TGroupSortForm.Button1Click(Sender: TObject);
begin
  GroupSortForm.ModalResult := mrOK;
end;

end.

⌨️ 快捷键说明

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