On Tuesday 03 June 2003 4:02 pm, Chris Cannam wrote: > Guillaume Laurent wrote: > > Actually I'd have thought the opposite : we have one too many, > > which causes the display of that grey area in between the rebuild > > of the view. > > Not persuaded by that -- if you delete an X window, X will usually > fill immediately with the background colour, won't it? Even if you > process no events yourself.
Well the extra processEvents() doesn't seem to make any difference here, not that I would expect it to really. There's no getting around the fact that we're destroying one view and replacing it with another. The code in setDocument() speaks for itself. Following the revolt-of-the-m_docs I moved all that code aside and gone back to square one and tried to just have an alternative m_view (m_swapView type of thing) and then perhaps try to draw that in in the background and then swap the pointers. A bit like double buffering but with entire views. God knows if that will have any success but it's certainly simpler to attempt. There is something inherently wrong though with throwing away all that good stuff just because we've got a new document - the paramters boxes et al should just stay - perhaps the canvas and buttons can go but there is so much 1-1 reusability tbat it seems such a waste. R ------------------------------------------------------- This SF.net email is sponsored by: eBay Get office equipment for less on eBay! http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5 _______________________________________________ Rosegarden-devel mailing list [EMAIL PROTECTED] - use the link below to unsubscribe https://lists.sourceforge.net/lists/listinfo/rosegarden-devel
