RE: Phil Russell -- EuGrid Redraw problem?
- Posted by Andy Serpa <renegade at earthling.net> Aug 26, 2002
- 386 views
Derek Parnell wrote: > Have you tried refreshWindow(theGrid)? I'm not sure if it'll work, but > its > worth a shot. > That doesn't work. repaintWindow(MainWindow) works, but with a bit of a flicker. I think it needs to be addressed in the EuGrid code -- it doesn't seem to be getting a redraw message. > ---------------- > cheers, > Derek Parnell > ----- Original Message ----- > From: "Andy Serpa" <renegade at earthling.net> > To: "EUforum" <EUforum at topica.com> > Sent: Monday, August 26, 2002 2:50 PM > Subject: Phil Russell -- EuGrid Redraw problem? > > > > First of all, let me just say what a lifesaver your EuGrid control is. > > You definitely have some Eu bucks coming your way. [$3 in fake money for > > a year of work -- not bad :) ] > > > > Anyway, here's my issue: > > > > I've made a program that uses a grid more or less as a display with no > > user interaction. Every so many seconds, a timer causes it to do some > > internal stuff (grabs stuff from internet in the background and > > processes it) and then update the grid. (The data can change rather > > radically on an update, so I just delete all the rows, then LoadData > > with the modified dataset on each update. It also uses an event handler > > to change cell colors, etc.) All that works fine, BUT the grid doesn't > > actually update itself visually unless something "happens", like a > > change of focus (specifically loss of focus of the main window, but not > > vice-versa), mouse click on the grid, etc. > > > > Problem is, the program is designed to just be "watched" (it is sort of > > like a stock-ticker), not interacted with. If you don't touch anything, > > the grid never updates, but then if you click the mouse on it or > > something, suddenly it redraws and everything is there as it should be. > > > > How can I get it to redraw automatically when the underlying data > > changes? > > > >