📄 uselectclass.pas
字号:
unit uSelectClass;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, Buttons, ComCtrls, uGlobe;
type
TdlgSelectClass = class(TForm)
tvClass: TTreeView;
Label1: TLabel;
BitBtn1: TBitBtn;
BitBtn2: TBitBtn;
procedure FormCreate(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
function SelectClass: string;
implementation
uses uDM;
{$R *.dfm}
function SelectClass: string;
var
dlgSelectClass: TdlgSelectClass;
begin
dlgSelectClass := TdlgSelectClass.Create(nil);
try
Result := '';
if dlgSelectClass.ShowModal = mrOK then
if dlgSelectClass.tvClass.Selected.Level=2 then
Result := GetClassName(dlgSelectClass.tvClass.Selected);
finally
FreeAndNil(dlgSelectClass);
end;
end;
procedure TdlgSelectClass.FormCreate(Sender: TObject);
begin
tvClass.LoadFromFile(GradeTreeFileName);
tvClass.FullExpand;
end;
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -