Tomasz, I wonder if we are talking about the same type of application. In my case, I am using RefreshAll() to synchronize several chart panes within a single chart sheet by means of static variables. I have not looked into Keith's type of application and perhaps it is a different "animal" which is why I said to consider it as a starting point.
In any case, for my application with RequestTimedRefresh() it appears that the only way to have all panes display the changes made in the "master" pane is to click on one of the panes because the interval parameter has no effect (e.g., enter 5 second for the interval parameter, wait a minute, nothing happens). After clicking on a pane, however, the changes proceed sequentially through all of the panes. On the other hand, the RefreshAll() route displays the changes as soon as the "master" pane is changed without clicking which is what I want. You say that this is slow but for my applications changes are also effected sequentially pane by pane as with RequestTimedRefresh() and by eye at the same speed. Assuming that there is a benefit (speed or otherwise) to using RequestTimedRefresh(), is there a way to make changes with this function when static variables are used without the need to click a chart pane? Bill ----- Original Message ----- From: Tomasz Janeczko To: [email protected] Sent: March 06, 2010 6:42 PM Subject: Re: [amibroker] Opps, Refresh All programmatically? Hello, RequestTimedRefresh function is preferred and way more efficient method to force refresh of chart. RefreshAll is overkill. Among other things it REFILLS symbol lists (tree/combo boxes) and due to the fact that Windows Controls are slow, it is not recommended to use RefreshAll unless you in fact want to refill the SYMBOL list/tree/combo. Best regards, Tomasz Janeczko amibroker.com On 2010-03-06 23:24, wavemechanic wrote: Here is what I use as an include file to refresh synched charts which may get you going: procedure pRefreshSynchedCharts() { AB = CreateObject ( "Broker.Application" ); AB.RefreshAll(); } pRefreshSynchedCharts(); Bill ----- Original Message ----- From: Keith McCombs To: [email protected] Sent: March 06, 2010 11:35 AM Subject: Re: [amibroker] Opps, Refresh All programmatically? Oops; I did not mean "Reset All", but instead "Refresh All", as in View>Refresh All. My reason for wanting to do a "Refresh All", is to reset the display of a Watchlist so it is displaying the most recent contents after I programmatically load it from a list of stocks. In light of this new revelation, does anybody have any ideas? Thank you. -- Keith On 3/4/2010 00:04, Keith McCombs wrote: Is there any way to do a Reset All from within .afl? How about jscript or any other way? Thanks -- Keith
