drawSelf VS populateRenderCache
Posted: Fri Oct 06, 2006 11:11
Hello guys !
Recently, I converted the rendering stuff of some of my custom widgets to renderCache oriented instead of drawSelf, as it is preconized in the 4.0 (I think) version. So far, am I right ?
Well, now that the visuals of my widgets are no longer updated every frame I have some clipping bugs. If the widget is not entirely clipped, images it draws are entirely visible while I scroll the pane in which I put these widgets...
I tried with or without a clipped rect in the cacheImage method, both results are unappropriate, but slightly different tough... Naturally, because they heritate from PushButton, everything comes back to normal when I pass the mouse among them, due to the requestDraw asked by the PushButton.
Did I miss something somewhere ?[/i]
Recently, I converted the rendering stuff of some of my custom widgets to renderCache oriented instead of drawSelf, as it is preconized in the 4.0 (I think) version. So far, am I right ?
Well, now that the visuals of my widgets are no longer updated every frame I have some clipping bugs. If the widget is not entirely clipped, images it draws are entirely visible while I scroll the pane in which I put these widgets...
I tried with or without a clipped rect in the cacheImage method, both results are unappropriate, but slightly different tough... Naturally, because they heritate from PushButton, everything comes back to normal when I pass the mouse among them, due to the requestDraw asked by the PushButton.
Did I miss something somewhere ?[/i]