AlertWindowManager 弹出提示窗口使用帮助(下)
//显示消息提示框
//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 = then
ShowMessage('Button1')
else if AButtonIndex = then
ShowMessage('Button2')
else if AButtonIndex = then
ShowMessage('Button3');
end;
procedure TForm1.Button1Click(Sender: TObject);
begin
dxAlertWindowManager1.Show('这里是标题','这里是内容');
ShowMessage(IntToStr(
// 获取目前打开的消息框个数,打开后数量加一,关闭后数量减一
dxAlertWindowManager1.Count
));
end;
var
AlertWindow: TdxAlertWindow; // 增加一条消息
procedure TForm1.btnAppMsgClick(Sender: TObject);
begin
AlertWindow.BeginUpdate;
AlertWindow.MessageList.Add('故乡(接上)', '故乡的面貌' + ## + '却是那样一般惆怅的模样' + ## + '仿佛迷雾里的招手', );
//合并显示用AlertWindow.MessageList.Add()方法
//如果独立显示消息提示框用dxAlertWindowManager1.Show()方法
AlertWindow.EndUpdate;
end; // 显示一条消息,并设置高度宽度自适应
procedure TForm1.btnShowMsgClick(Sender: TObject);
begin
dxAlertWindowManager1.OptionsSize.AutoHeight := True;
dxAlertWindowManager1.OptionsSize.AutoWidth := True;
AlertWindow := dxAlertWindowManager1.Show('故乡', '故乡的月' + ## + '是一把炽热的火' + ## + '总会在寒蝉凄切的夜' + ## + '释放出舒心的暖', );
end;
消息显示效果如下


AlertWindowManager 弹出提示窗口使用帮助(下)的更多相关文章
- AlertWindowManager 弹出提示窗口使用帮助(上)
LookAndFeel(界面外观): NativeStyle:本地化界面为真实用系统内置外观 SkinName:本地化界面(NativeStyle:)设置为假可使用皮肤外观 OptionAnimate ...
- MyEclipse弹出提示窗口
MyEclipse弹出提示窗口 1.弹窗如下
- 解决win10 cmd运行python弹出windows应用商店下python应用程序
方法一: 1.我一开始下载完python后,忘记下载到哪个位置,在win10底下输入框搜索python,点击打开文件所在位置,所在位置是python快捷键的位置,直接复制进行环境配置 配置完环境变量后 ...
- ALV屏幕捕捉回车及下拉框事件&ALV弹出框回车及下拉框事件
示例展示: 屏幕依据输入的物料编码或下拉框物料编码拍回车自动带出物料描述: 点击弹出框,输入物料编码拍回车带出物料描述,点击确认,更新ALV: 1.创建屏幕9000,用于处理ALV弹出框: 2.针对屏 ...
- iframe弹出框js ie6下存在bug
ie6的iframe在第一次加载的显示不出来,显示空白,但是很奇怪,刷新就可以正常显示了,一开始以为这只是IE6下iframe加载的bug,但是最后结果发现这是ie6下javascript延迟加载出现 ...
- firefox浏览器中 bootstrap 静态弹出框中select下拉框不能弹出(解决方案)
问题出现场景1: 在firefox浏览器中在bootstrap弹出的modal静态框中再次弹出一个静态框时 select下拉框不能弹出选项 解决方案:去掉最外层静态框的 tabindex=" ...
- bootstrap弹出提示窗口功能
大家常用弹出提示成功或失败时候喜欢用alert,如果不用这个,写个弹窗又麻烦,bootstrap中就有个方法 alert("操作成功"); commonAlert("操作 ...
- jQuery实现鼠标选中文字后弹出提示窗口效果
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/ ...
- Cadence——每次启动软件弹出找不到license文件的提示窗口
1. 摘要 按照Cadence16.60,每次启动该软件,总弹出提示窗口,内如大致为:Orcad Capture license was not found.... 2. 解决方法 参考此链接:htt ...
随机推荐
- 移除input在type="number"时的上下箭头
网页在有些情况下,会需要input的输入的为单纯数字的文本框,此时type=number,但使用type=number时,输入框后面会有一个上下箭头,那么如何去掉上下箭头呢? <input ty ...
- [Python] 00 - Books
A.I. & Optimization Advanced Machine Learning, Data Mining, and Online Advertising Services Ref: ...
- 【代码审计】XYHCMS V3.5URL重定向漏洞分析
0x00 环境准备 XYHCMS官网:http://www.xyhcms.com/ 网站源码版本:XYHCMS V3.5(2017-12-04 更新) 程序源码下载:http://www.xyhc ...
- SQL Server 2012 R2升级到SQL Server 2016无法正常启动数据库服务解决方案
原定周末把公司的TFS升级到2018,由于TFS 2018需要SQL Server至少是2016以上版本,所以还需要将原来的SQL Server 2012 R2一并升级.今天早上负责的同事告诉我升级失 ...
- day_6.20动态加载py文件
__import__() 魔法方法! 关于动态网站打开的 代码流程!
- react-snippets
rcjc class componentName extends Component { render() { return ( <div> </div> ); } } con ...
- 正则表达式、re模块
正则表达式 一说规则我已经知道你很晕了,现在就让我们先来看一些实际的应用.在线测试工具 http://tool.chinaz.com/regex/ 正则表达式是用来匹配字符串非常强大的工具,在其他编程 ...
- How to add the ApplicationPoolIdentity to a SQL Server Login
The ApplicationPoolIdentity is a virtual account in Windows that is dynamically generated when the a ...
- Maven知识点积累一
配置maven变量,变量名可以是:MAVEN_HOME 或 M2_HOME settings.xml配置本地仓库地址: <localRepository>G:/.m2/repository ...
- nvidia-smi failed because it couldn't communicate with the nvidia driver
Ubuntu装好CUDA之后过段时间提示NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. NV ...