Filter löschen
Filter löschen

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 Ansicht (letzte 30 Tage)
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.

Akzeptierte Antwort

MathWorks Support Team
MathWorks Support Team am 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);

Weitere Antworten (0)

Kategorien

Mehr zu Migrate GUIDE Apps finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by