📄 frminput.pas
字号:
////////////////////////////////////////////////////////////////////////////////
//
//
// FileName : frmInput.pas
// Creator : Shen Min
// Date : 2003-04-22
// Comment :
//
// Copyright (c) 2002-2006 Sunisoft
// http://www.sunisoft.com
// Email: support@sunisoft.com
//
////////////////////////////////////////////////////////////////////////////////
unit frmInput;
interface
{$I SUIPack.inc}
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms,
Dialogs, ExtCtrls, SUIForm, StdCtrls, SUIEdit, SUIButton;
type
TfrmInput = class(TForm)
suiForm1: TsuiForm;
lbl_prompt: TLabel;
edt_value: TsuiEdit;
btn1: TsuiButton;
btn2: TsuiButton;
procedure FormShow(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
implementation
uses SUITitleBar;
{$R *.dfm}
procedure TfrmInput.FormShow(Sender: TObject);
var
w : Integer;
begin
if Width - (edt_value.Left + edt_value.Width) > 50 then
begin
edt_value.Width := Width - 50 - edt_value.Left;
btn1.Left := (Width - btn1.Width - btn2.Width - 16) div 2;
btn2.Left := btn1.Left + btn1.Width + 16;
end;
w := SendMessage(Handle, SUIM_GETBORDERWIDTH, 0, 0);
if w > 6 then
Width := Width + 2 * w;
end;
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -