Best practice with class/GUI
Ältere Kommentare anzeigen
Hi all, I've got a GUI based on a class I've developped. I've got a property which can be modified either directly (if the GUI is not called) or via the GUI, and I'm wondering what is the best practice to make sure that what is stored in the property is the same value that displayed by the GUI. I've done it by a set method (which looks for the corresponding edit box in the GUI if it exists) and with a listener which update the numbers if something changes... But I'm not sure which one is the best practice or if there is a better solution.
Thanks
Stéphane
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Work with Components finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!