You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
888 B
Plaintext
44 lines
888 B
Plaintext
unit u_op_memo;
|
|
|
|
interface
|
|
|
|
uses
|
|
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
|
|
Dialogs, BusinessSkinForm, StdCtrls, DBCtrls, bsSkinCtrls;
|
|
|
|
type
|
|
Tfrm_op_memo = class(TForm)
|
|
bsSkinButton5: TbsSkinButton;
|
|
DBMemo1: TDBMemo;
|
|
bsBusinessSkinForm1: TbsBusinessSkinForm;
|
|
Label1: TLabel;
|
|
procedure bsSkinButton5Click(Sender: TObject);
|
|
procedure DBMemo1KeyDown(Sender: TObject; var Key: Word;
|
|
Shift: TShiftState);
|
|
private
|
|
{ Private declarations }
|
|
public
|
|
{ Public declarations }
|
|
end;
|
|
|
|
var
|
|
frm_op_memo: Tfrm_op_memo;
|
|
|
|
implementation
|
|
|
|
{$R *.dfm}
|
|
|
|
procedure Tfrm_op_memo.bsSkinButton5Click(Sender: TObject);
|
|
begin
|
|
close;
|
|
|
|
end;
|
|
|
|
procedure Tfrm_op_memo.DBMemo1KeyDown(Sender: TObject; var Key: Word;
|
|
Shift: TShiftState);
|
|
begin
|
|
Label1.Caption:='Num:'+IntToStr(Length(DBMemo1.Lines[DBMemo1.CaretPos.Y])+1);
|
|
end;
|
|
|
|
end.
|