Is there a specific way for something to refer to its own properties in a gui?
2 views (last 30 days)
Show older comments
I am trying to make a working chess set. The way I have things set up now, a lot of my code has to be manually manipulated 63 times for pushbuttons (what I am using as tiles) to refer to themselves.
Instead of having, say, the code for pushbutton A1 be: set(handles.A1,-----) I want it to be set(handles."-",----- where the "-" is something that would refer to A1 in this case, but A2, A3,...H8. This way I could write the code for 1 square and copy paste it to all other 63. I've tried to search around for it, but I don't know exactly what to search for since I have no idea what it would be called.
0 Comments
Answers (0)
See Also
Categories
Find more on Programming Utilities in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!