Why is the beginning of the string in an editable text field not visible when the string is long in MATLAB 7.0 (R14)?

1 回表示 (過去 30 日間)
In MATLAB 7.0 (R14), if I create an editable text field uicontrol and assign a long string to the "String" property, the uicontrol displays the string with the end of the string visible but not the beginning. I would like the string to be displayed such that the beginning is visible. The following code illustrates this issue:
uicontrol('Style','edit','String','jbvdkdnvkdhldndkhlfhmfj')
Setting the "HorizontalAlignment" property to "left" or "right" does not solve the issue.

採用された回答

MathWorks Support Team
MathWorks Support Team 2009 年 6 月 27 日
This bug has been fixed in Release 2007a (R2007a). For previous product releases, read below for any possible workarounds:
In MATLAB 7.0 (R14), MATLAB uses Java for creating figure windows. The observed behavior is due to the way Java displays the text.
If you are using a version of MATLAB prior to MATLAB 7.3 (R2006b), you may work around this issue by turning java figures off using the following command. Please note that this workaround will not be valid after MATLAB 7.3 (R2006b) as this feature will not be available:
feature('javafigures',0);

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMigrate GUIDE Apps についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by