Alert accumulates messages

Back to topics list  | 1 2 To post a new topic, please log in or register
avatar
1236
FMIC 2016.04.28 10:15 #
 
macpee:
@FMIC, you are absolutely right. In fact, it triggers even after changing input parameter and when I change the chart time frame and so on. However, I think I like it that way. The only problem is that it should not be queued.

As GumRai explained, the Alert function keeps track of all alerts so that people that are away from there PC can view older alerts.

However, if you look at the Alert Window you will see that it is divided into two sections, the top one with the large icon is the Current Alert (that is the one you want), while the list below is the older alerts which you can simply ignore.

Alternatively, if you really just want a modal dialog box for the alert, then use the "MessageBox()" function.

avatar
1236
FMIC 2016.04.28 10:18 #
 
macpee:
Then I think the working solution I need now is on how to clear the queues the moment the alert is triggered.
You cannot clear the Alert history. That is just the way Alerts work. Your requirement is very specific so use alternatives like the "MessageBox()" or just display a message on the chart itself and use "PlaySound()" to call attention to it.
avatar
66
macpee 2016.04.28 10:23 #
 
Print() function and PlaySound() function may come handy though. However, I think It is good if the user does a little bit of work by closing the pop-up window.
avatar
1236
FMIC 2016.04.28 10:24 #
 
macpee:
  However, I think It is good if the user does a little bit of work by closing the pop-up window.
In that case, then use the "MessageBox()" solution!
avatar
66
macpee 2016.04.28 10:33 #
 
Ok thanks, I shall try it right away.
Back to topics list   | 1 2  

To add comments, please log in or register