Web端uniGUI类似功能实现基于uniGUI的第三方控件Unifalcon的叠层提示UniFSiGrowl1(60)

默认显示效果(默认半透明,7秒后 消失推出, 鼠标移入后半透明效果消失)

dxAlertWindowManager1.Show('提示','点击了表格');

 可以运行多次,自动垛叠显示

  //合并显示用AlertWindow.MessageList.Add()方法
  //如果独立显示消息提示框用dxAlertWindowManager1.Show()方法  

01]添加图片显示

拖一个cxImageList1,添加64*64图标

dxAlertWindowManager1.Show('提示','点击了表格',0);


 02]其他属性说明

LookAndFeel(界面外观):
NativeStyle:本地化界面为真实用系统内置外观
SkinName:本地化界面(NativeStyle:设置为假可使用皮肤外观)


OptionAnimate(动画选项):
AlphaBlendValue:提示窗口默认透明度
CollapseEmptySlots:提示窗关闭效果,True多个提示窗口出现后,最后消失的出现坠落效果,False在原位置消失
CollapseEmptySlotsAnimationTime:提示窗关闭动画持续时间
SizeAdjustmentAnimationTime:调整动画大小时间
ShowingAnimation:显示提示窗动画效果,awaFade淡入,awaMove移入,awaNone无效果,awaSlide侧滑
ShowingAnimationDirection:提示窗显示动画方向,awmdAuto自动,awmdDown向下,awmdLeft向左,awmdRight向右,awmdUp向上
ShowingAnimationTime:提示窗显示动画持续时间


OptionsBehavior(行为选择):
CloseOnRightClick:是否点击右键关闭提示框
DisplayTime:提示框持续时间
ScreenSnap:是否固定显示提示框(点击图钉后不关闭窗口)
ScreenSnapBuffer:XXXX(不知道怎么翻译,屏幕快照之类的不适合)缓冲区大小


OptionsButtons(按钮选项):
Buttons:按钮组,双击后增加按钮,并给按钮增加图像(ImageIndex),并控制是否启用及是否显示
Height:按钮高度
Width:按钮宽度
Images:赋值图片组(需要添加ImageList,16*16并绑定)

添加事件在

 

OptionsCaptionButtons(标题按钮):
CaptionButtons.awcbDropdown:是否显示最小化按钮
CaptionButtons.awcbPin:是否显示图钉按钮
CaptionButtons.awcbClose:是否显示关闭按钮

PopupMenu (需要新建 并绑定一个PopupMenu1)


OptionsMessage(消息选项):
Caption.AlignVert:标题垂直对其方式
Caption.AlignHorz:标题水平对其方式
Caption.Font:标题字体颜色及大小
Text.AlignHorz:消息内容水平对其方式
Text.AlignVert:消息内容垂直对其方式
Text.Font:消息内容字体大小及颜色设置


OptionsNavigationPanel(导航面板选项):  合并显示
DisplayMask:显示格式,例如:第[MessageIndex]条,共[MessageCount]条]

Visibility:显示导航面板的方式:awnpvAlways总是显示,awnpvAuto自动确定是否显示,awnpvNever从不显示;

var
  AlertWindow: TdxAlertWindow;
begin
AlertWindow:= TdxAlertWindow.Create(self);
  AlertWindow.MessageList.Add('故乡', '111'+ #13#10 + '却是那样一般惆怅的模样');
  AlertWindow.MessageList.Add('故乡(接上)', '222');
  AlertWindow.MessageList.Add('故乡(接上)', '333');
  //合并显示用AlertWindow.MessageList.Add()方法
  //如果独立显示消息提示框用dxAlertWindowManager1.Show()方法
  AlertWindow.Left:=Screen.width - AlertWindow.OptionsSize.Width;
  AlertWindow.top:= Screen.height-AlertWindow.OptionsSize.Height-50;

  AlertWindow.Show;
end;

 

OptionsSize(消息框尺寸):
AutoHeight:自动高度
AutoWidth:自动宽度
AutoSizeAdjustment
MaxHeight:最大高度
MaxWidth:最大宽度
MinHeight:最小高度
MinWidth:最小宽度
Height:高度
Width:宽度

WindowMaxCount:每次打开的消息提示框总数,超过总数后关闭一个再显示新的提示窗口
WindowPosition:显示提示框位置,awpAuto自动显示,awpBottomLeft屏幕左下方,awpBottomRight屏幕右下方,awpTopLeft屏幕左上方,awpTopRight屏幕右上方