一本正经瞎扯的段子 弱智的对话


先上效果图

一本正经瞎扯的段子 弱智的对话

文章插图
自动对话
再上源码
就一行
源码开始


unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;
type
TForm1 = class(TForm)
btn1: TButton;
edt1: TEdit;
mmo1: TMemo;
procedure btn1Click(Sender: TObject);
【一本正经瞎扯的段子 弱智的对话】private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
function MyFunction(name,s:string): Integer;
begin


end;
procedure TForm1.btn1Click(Sender: TObject);
begin
if edt1.Text=\'你好\' then
mmo1.Lines.Add(\'你也好啊\') else mmo1.Lines.add(\'你说的什么,我不懂!\')
end;
end.
源码结束


界面 Form
object Form1: TForm1
Left = 0
Top = 0
Caption = \'Form1\'
ClientHeight = 441
ClientWidth = 787
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = \'Tahoma\'
Font.Style = []
OldCreateOrder = False
PixelsPerInch = 96
TextHeight = 13
object btn1: TButton
Left = 440
Top = 358
Width = 75
Height = 25
Caption = \'btn1\'
TabOrder = 0
OnClick = btn1Click
end
object edt1: TEdit
Left = 72
Top = 360
Width = 329
Height = 21
TabOrder = 1
Text = \'edt1\'
end
object mmo1: TMemo
Left = 72
Top = 40
Width = 353
Height = 249
Lines.Strings = (
\'mmo1\')
TabOrder = 2
end
end


就这样,结束


    特别声明:本站内容均来自网友提供或互联网,仅供参考,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。