Mask dialog box too small, adds verticle scrollbars

1 visualizzazione (ultimi 30 giorni)
Jeremy
Jeremy il 4 Gen 2012
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?

Risposte (1)

Fangjun Jiang
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.

Categorie

Scopri di più su Subsystems 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!

Translated by