Im making a application in which i need to make a matrix of 8x8x8 buttons.
Each layer contains 8x8 buttons (so 8 layers in total).
Each button can be clicked and when clicked it change the color to red, the second click changes the color of the button to green, and the third click makes it blanc again.
I tried making different arrays for each row, but this didnt work out.
Can anyone help me creating this application?
Jump to Post
Create all your buttons, you don't need them in an array (unless there is some specific reason you do). Create one handler event and use the sender parameter to get the button that was clicked. Set all the clicked events to this handler. Get the current color and figure out …
All 3 Replies
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.