Creating An Interactive Grid
I'm new to the forums, so I apologize in advance for breaking any posting conventions.
I'm creating a game where I need to be able to display a grid and I need to be able to update what's contained in each cell of the grid frequently. The contents of each cell will either be nothing, or one of two images. I would like to eventually be able to make it so that if the user clicks on a specific cell, I will be able to respond to that click. It would also be ideal if I could drag and drop (from within my program) to each cell.
I'm not sure what class to use, buttons, content, text boxes etc to populate the grid and any direction would be much appreciated.
I'm new to GUI's, not new to programming, but so far have created a window, which on a button click closes and opens another window.
Thanks in advance for any advice!