unit10.pas

来自「转发一个用Delphi7编写的网络即时通讯示例」· PAS 代码 · 共 44 行

PAS
44
字号
unit Unit10;

interface

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

type
  TForm10 = class(TForm)
    Label1: TLabel;
    RadioButton1: TRadioButton;
    RadioButton2: TRadioButton;
    procedure RadioButton1Click(Sender: TObject);
    procedure RadioButton2Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form10: TForm10;

implementation
 uses unit4;
{$R *.dfm}

procedure TForm10.RadioButton1Click(Sender: TObject);
begin
if messagedlg('你想让傻妞代你聊天吗?',mtinformation,[mbyes,mbNo],0)=mryes
then showmessage('对不起,傻妞暂时还无此功能,请向傻妞的设计者井峰哥哥求助!');
close;
end;

procedure TForm10.RadioButton2Click(Sender: TObject);
begin
if messagedlg('你想让傻妞辅助你聊天吗?',mtinformation,[mbyes,mbNo],0)=mryes
then showmessage('对不起,傻妞暂时还无此功能,请向傻妞的设计者井峰哥哥求助!');
close;
end;

end.

⌨️ 快捷键说明

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