[EMAIL PROTECTED] wrote:
Subject: Listbox
From: Aubrey Todd <[EMAIL PROTECTED]>
Date: Mon, 9 Jan 2006 10:41:27 -0500
Hi,
I am trying to make a game-board using a listbox as a basis and am
running into some problems. How can I change the background color of
an individual cell (or get the CellBackgroundPaint event to fire for
the whole board if that is the only way to do it) and how can I
unselect an active cell without jumping to another object in the window?
The answer is in the Language Reference. But maybe you are asking to how you can
change the current color to another, then another, then another, then ...
Check InvalidateRow or something like that...
<quote>
ListBox.InvalidateCell Method
Redraws the specified cell "from scratch," rather than using the data in the
internal buffer. If you pass a -1 as the Row or Column parameter, it will redraw
the specified entire row or column, i.e., Invalidate(2,-1) redraws row 2.
</quote>
Was it the answer you were waiting for ?
Cheers,
Emile
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>