just wanted to thank you all for your responses. I was able to successfully do update and switch the color of the balls under the column within the table/listbox. i just needed to use invalidate and my vector is stored now as a property at the window level.
thanks, if anyone is interested or looking for a similar bevhavior i can mail a working rbp sample. luis On 3/4/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > On Mar 04, 2007, at 15:15 UTC, John Ross wrote: > > > I tried RBNUBE's example, since I am new to RealBasic. And here are > > some things I noticed, At first it looked it was not doing anything, > > but when I scrolled the list box it changed the ones that went off > > and back on the window > > Right, because cells that aren't in view are automatically invalid (in > need of being redrawn). > > > so I added InvalidateCell (not sure were I got that idea from) > > The part in parentheses is a joke, yes? Good one! :) > > > still the same result > > Well then, this just means you didn't add the InvalidateCell call in > the right place, or didn't invalidate the right cells. This call > forces the specified cells to be redrawn. You need to do that at the > point where those cells need to be redrawn (and of course, you need to > specify the right cells). > > > so I added a listbox1.refresh and it worked fine. > > Well, that'll work, but not in a way I would consider "fine." It's > doing way too much work and on some platforms will visibly flicker. > > > I then changed the example to > > put the celltag in the same column (0) I had the ball in instead of > > the next column (1), and I could take out the InvalidateCell and the > > refresh. > > Really? Changing the celltag invalidates the cell? This surprises me. > (...testing...) Hmm, so it does! Neat. And I've learned something > today -- thank you very much! > > Best, > - Joe > > -- > Joe Strout -- [EMAIL PROTECTED] > Verified Express, LLC "Making the Internet a Better Place" > http://www.verex.com/ > > _______________________________________________ > Unsubscribe or switch delivery mode: > <http://www.realsoftware.com/support/listmanager/> > > Search the archives: > <http://support.realsoftware.com/listarchives/lists.html> > _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives: <http://support.realsoftware.com/listarchives/lists.html>
