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 view (last 30 days)
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.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
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);

More Answers (0)

Categories

Find more on Migrate GUIDE Apps in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!