I use a piece of code like this to show an alert using the TdxAlertWindowManager.
This gives me one alert window and in this window there are several messages.
What I would like to do is to show an alert window with the first line of text and on the same window I would like to put a new text.
The program is used to connect a computer to some network shares and the message I would like to put looks like:
Connecting drive y: to \\server\foldery
Connecting drive x: to \\server\folderx
and so on for the rest of the shares.
But I can’t figure out how to do it with TdxAlertWindowManager
Some years ago when I made the program I used nxAlert from Berg software, but I don’t have it available any more. On that it was no problem to do this.
if fAlertWindow = nil then
dxAlertWindowManager.Show(sHpAlertCaption, AlertText, fIndex).Tag := 1
else
begin
fAlertWindow.MessageList.Add(sHpAlertCaption, AlertText, fIndex);
fAlertWindow.RestartDisplayTimer;
end;
I don’t know how to make
TdxAlerWindowManagerto display new line but I know how to alter current messages. Just editItems[0]property of theMessageList. I do it in timer.Works 100%