Danny Backx <[EMAIL PROTECTED]> wrote: > Joanna Lee wrote: > > I would like to be able to perform a certain action (i.e. updating cell > > contents) as soon as the matrix is scrolled. I want to update only those > > cells that are visible so, as soon as the matrix is scrolled, the visible > > cells change and therefore I would need to update the new visible cells' > > contents. > > > > Is there a way to get this info? Would I get this information from editing > > ScrollMgr.c? > > The manual page mentions XmNdrawCellCallback and XmNwriteCellCallback, see > below. > They probably solve your problem.
One should make sure, though, when using this technique, that the calls don't copy the user's strings but refer to the pointers instead. Which, strictly speaking, means the *whole* table contents should be allocated in advance (or be static)... I'd like to see this (wrong IMHO) behaviour changed. Regards, Evgeny