Barry Traver wrote:
I'm working on a simple program to do basic analysis of Sudoku
puzzles, which requires a 9 x 9 grid in which you can put single-digit
numbers from 1 to 9.
The coding, even though I expect it may be a bit complex, I think will
be the easy part. What I'm having trouble doing is creating the user
interface.
Since the user has to be able to edit the content of each of the
boxes, I've assumed (but I may be wrong) that the easiest way to
approach it would be to use 81 EditFields in a control array.
Two problems: (1) it is rather tedious to put the controls on the
window one at a time, but (2) when I try to clone several (e.g., 10)
controls at once (e.g., ten), sometimes it works and sometimes RB
2005 crashes <sigh>.
Any advice?
Barry Traver
You could use a control array, but I think the easiest option is to
"cheat" and use a canvas.
Use the keydown event to read the number they input.
81 editfields is a path leading to madness.
_______________________________________________
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>
|