Disable custom Toolstrip based on conditions, which could be validated in sl_customization function
11 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Nick
le 21 Sep 2025 à 9:19
Réponse apportée : Nick
il y a environ 7 heures
Hi,
I'm developing a custom Toolbox, which supplies also a custom Toolstrip in Simulink.
I want to add functionality to disable this toolstrip, if some conditions are not met.
E.g. the Toolbox provides infrastructure to extend Requirements Toolbox, and it makes no sense, if user didn't install yet the Requirements Toolbox, or he doesn't have the license activated.
Documentation refers only to possibility to disable particular actions on the toolstrip, which i can register in the sl_customization function, but not to hide/disable toolstrip completely.
Any hint?
Thank you!
Best regards,
Nick
2 commentaires
dpb
il y a environ 3 heures
Never messed with them and don't have Simulink but couldn't/wouldn't your code be able to simply not create the pertinent toolstrip features if not pertinent? Or, if there are subsets, create those as tabbed, maybe?
Réponse acceptée
Plus de réponses (0)
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!