Mask dialog box too small, adds verticle scrollbars
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
This is a small display issue, but it is annoying. I am developing a custom blockset, using masked subsystems for some of the blocks. These are dynamic masks, in which some fields appear or disappear based on the values selected by other fields. It all works great when run on one computer with an 1800x1400 size screen. But on smaller screens, the dialog box becomes smaller, and a vertical scrollbar is added so that the user can scroll through the different mask fields.
There would be plenty of room on these smaller screens to display all of the fields. I can easily manually resize the dialog box so that they all fit, which automatically causes the scrollbar to go away. But I cannot find a way to automatically resize the dialog in my control scripts. There is plenty of documentation on changing the size of the underlying Simulink block, but I can find nothing about controlling the size of the mask dialog. Any ideas?
0 Commenti
Risposte (1)
Fangjun Jiang
il 4 Gen 2012
Look at maskedit.m, the function CreateMaskEditor() decides the size of the dialog based on the screen size. Maybe you can modify it?
Modify it at your own risk. Also remember you have to modify it before it was first executed as there is a mlock line at the beginning.
0 Commenti
Vedere anche
Categorie
Scopri di più su Author Block Masks in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!