AlertWindowManager 弹出提示窗口使用帮助(下)

时间:2017-07-04 01:06:54   收藏:0   阅读:761
//显示消息提示框
//function TdxAlertWindowManager.Show(const ACaption, AText: string; AImageIndex: TcxImageIndex = -1): TdxAlertWindow;
//ACaption显示标题
//AText消息内容
//AImageIndex显示图片索引
procedure TForm1.Button1Click(Sender: TObject);
begin
  dxAlertWindowManager1.Show(‘消息提示框标题‘, ‘这里是消息内容,这里是消息内容!‘);
end;
//dxAlertWindowManager点击按钮事件
procedure TForm1.dxAlertWindowManager1ButtonClick(Sender: TObject; AAlertWindow: TdxAlertWindow; AButtonIndex: Integer);
begin
  if AButtonIndex = 0 then
    ShowMessage(‘Button1‘)
  else if AButtonIndex = 1 then
    ShowMessage(‘Button2‘)
  else if AButtonIndex = 2 then
    ShowMessage(‘Button3‘);
end;

 

评论(0)
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!