octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #38509] Multiline text not supported with uico


From: anonymous
Subject: [Octave-bug-tracker] [bug #38509] Multiline text not supported with uicontrol of type editable text field
Date: Wed, 13 Mar 2013 15:47:12 +0000
User-agent: Mozilla/5.0 (Windows NT 5.2; WOW64) AppleWebKit/537.22 (KHTML, like Gecko) Chrome/25.0.1364.152 Safari/537.22

URL:
  <http://savannah.gnu.org/bugs/?38509>

                 Summary: Multiline text not supported with uicontrol of type
editable text field
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Wed 13 Mar 2013 15:47:11 UTC
                Category: Plotting
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: None
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.6.2
        Operating System: Microsoft Windows

    _______________________________________________________

Details:

The following results in the text being displayed all on one line instead of
multiple lines, as expected:


hf = figure;
set(hf,'Units','normalized');
hp = uipanel('Title','Text panel','Units','normalized','Position',[0.05 0.05
0.9 0.9],'Parent',hf);
he = uicontrol('Style','edit','String','','Units','normalized','Position',[0.1
0.1 0.4 0.4],'Parent',hp,'BackgroundColor','y','Max',10,'Min',1);
str = {'line 1';'line 2';'line 3'};
set(he,'String',str);
he2 =
uicontrol('Style','edit','String','','Units','normalized','Position',[0.1 0.55
0.4 0.4],'Parent',hp,'BackgroundColor','g','Max',10,'Min',1);
str2 = ['line 1';'line 2';'line 3'];
set(he,'String',str);


When using a cell array of strings, it displays everything onto one line and
when using a string matrix, it doesn't display anything at all (see attached
screenshot).

This is with Octave 3.6.2 and the Qt graphics toolkit.




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Wed 13 Mar 2013 15:47:11 UTC  Name: uicontrol_edit_txt_bug.jpg  Size:
27kB   By: None

<http://savannah.gnu.org/bugs/download.php?file_id=27601>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?38509>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]