A-ha! The refreshes were there because I thought I needed them when enabling/disabling gadgets. I've changed as suggested and this problem has gone - thanks!Rigo wrote:Well, the first one is an easy fix, as the button is probably being redrawn with RefreshSetGadgetAttrs() which is forcing a refresh when one isn't needed. Simply use SetGadgetAttrs() on buttons that contain an image to sort out the double refresh problem. As for the others, I can't really do any more without looking at how the code sets up these gadgets.
The third one you can look at my example in the other thread.
The second one... possibly might be caused by another unnecessary refresh.