How to change the font size of a popup menu, but ONLY when the popup menu is open and a selection is being made

2 次查看(过去 30 天)
Is it possible to have the font size of the popup menu be 32 when the window opens, reduce the font size to 12 when the user clicks on the menu and remain 12 while the user makes a selection, then resize again to be 32 when the menu closes after a selection is made?
Alternatively, can I have a popup menu appear as only the down arrow that usually appears to the right of the text? In other words, can I have the text portion be invisible until the arrow has been pressed?
I'm creating a GUI to display data for 1 of 48 different vessels that the user can select via popup menu (with various other ui elements to determine what data is actually displayed for the selected vessel). I would also like the popup menu to serve as the graph's title.

回答(1 个)

Walter Roberson
Walter Roberson 2017-3-9
uicontrol() do not support those options.
You might be able to make use of Java functions. For information on that, see http://undocumentedmatlab.com

类别

Help CenterFile Exchange 中查找有关 Interactive Control and Callbacks 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by