//显示消息提示框 //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;
时间: 2024-10-17 21:34:53