Newsgroups: comp.lang.smalltalk Path: utzoo!utgpu!cunews!ags From: ags@scs.carleton.ca (Alexander George Morison Smith) Subject: Re: Problems with ST80-2.5 StandardSystemView window cache Message-ID: <1991May4.154503.18877@ccs.carleton.ca> Keywords: MVC, ST80, WindowRefresh, DisplaySafe Sender: news@ccs.carleton.ca (news) Organization: School of Computer Science, Carleton University, Ottawa, Canada References: <5873@ns-mx.uiowa.edu> Date: Sat, 4 May 1991 15:45:03 GMT In article <5873@ns-mx.uiowa.edu> williams@herky.cs.edu () writes: >Another guy in my group was trying to put together a demo of our program, and >noticed that the main view for our application was showing bogus information >after he did something to change the application's state. The old window refresh problem! Just use the displaySafe: [aBlock] method in your update code. When a view is sent the displaySafe: message, it moves its window temporarily to the front, does the drawing by executing your code in the block, caches the new bitmap and moves it back to the background, leaving the previous front window in front. Not pretty and not fast but it does work. - Alex