Hi Boki,
I mainly using NextSuite 6 but I like the TNxAlertWindow from NextSuite 5 for some things.
I have a couple of event handlers in an application that show when a connection to a server application has been lost, and when it reconnects.
What I'm trying to do is, if the disconnection alert is still showing when a connection is reestablished, it will be closed and the re-connection alert shown instead.
However, it doesn't seem to work. The code is below.
= Steve
procedure TfrmMain.ConnectionLost(Sender: TObject); begin LostConnectionNotification.CloseDelay := 5000; LostConnectionNotification.Popup; end; // ****************************** TfrmMain.ConnectionReEstablished ************************************************** procedure TfrmMain.ConnectionReEstablished(Sender: TObject); begin if LostConnectionNotification.Showing then begin LostConnectionNotification.Close; end; ReconnectionNotification.CloseDelay := 5000; ReconnectionNotification.Popup; end;