Refresh

Back to topics list To post a new topic, please log in or register
avatar
735
honest_knave 2016.01.25 09:33
 

I'm currently using the PostMessageW method to update an offline chart.

The problem is that this won't work in all circumstances (e.g. using MT4 through WINE).

I've noticed that Right Click > Refresh will update the offline chart

 

  

However, Refresh is not the same as ChartRedraw() or WindowRedraw(), both of which won't update the offline chart.

Is there a way to call Refresh natively from MQL4?

 

avatar
1109
Ovo 2016.01.25 10:16 #
 

ChartRedraw covers only canvas as far as I could guess. And there is no pure MQL4 way to reload a chart I would know of.

Anyway, could you PM me what the problem was in detail? (what exactly failed on WINE)

avatar
735
honest_knave 2016.01.25 14:07 #
 

I feared as much regarding the lack of Refresh.

Regarding WINE - my mistake. Because I'd never managed to get custom DLLs to work through MT4 on WINE, I (incorrectly) assumed that user32 would have problems too. But I just tried it and realised it works fine. 

avatar
1109
Ovo 2016.01.25 14:13 #
 
Yes, it usually does, though WINE has custom user32 implementation and some functions fail.
avatar
735
honest_knave 2016.01.25 14:33 #
 
Thanks Ovo
Back to topics list  

To add comments, please log in or register