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

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

[Octave-bug-tracker] [bug #48214] Special characters in uicontrol's stri


From: Guillaume
Subject: [Octave-bug-tracker] [bug #48214] Special characters in uicontrol's string
Date: Mon, 13 Jun 2016 10:54:11 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:46.0) Gecko/20100101 Firefox/46.0

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

                 Summary: Special characters in uicontrol's string
                 Project: GNU Octave
            Submitted by: gyom
            Submitted on: Mon 13 Jun 2016 10:54:09 AM GMT
                Category: GUI
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: None
                  Status: None
             Assigned to: None
         Originator Name: Guillaume
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: GNU/Linux

    _______________________________________________________

Details:

The character '&' is wrongly interpreted in the 'String' property of a
uicontrol (this was already mentioned in item 4 of bug #44672):


F = figure;
uicontrol(F,'units','normalized','Style','checkbox','String','A &
B','Position',[0.3 0.8 0.4 0.09]);
uicontrol(F,'units','normalized','Style','edit','String','A &
B','Position',[0.3 0.7 0.4 0.09]);
uicontrol(F,'units','normalized','Style','listbox','String','A &
B','Position',[0.3 0.6 0.4 0.09]);
uicontrol(F,'units','normalized','Style','popupmenu','String','A &
B','Position',[0.3 0.5 0.4 0.09]);
uicontrol(F,'units','normalized','Style','pushbutton','String','A &
B','Position',[0.3 0.4 0.4 0.09]);
uicontrol(F,'units','normalized','Style','radiobutton','String','A &
B','Position',[0.3 0.3 0.4 0.09]);
uicontrol(F,'units','normalized','Style','text','String','A &
B','Position',[0.3 0.2 0.4 0.09]);
uicontrol(F,'units','normalized','Style','togglebutton','String','A &
B','Position',[0.3 0.1 0.4 0.09]);


A screenshot of the display in Octave and Matlab is attached: the problem is
with checkbox, pushbutton, radiobutton and togglebutton.

The underscore seems to correspond to an access key, meaning that the '&' is
interpreted in the way it is for uimenus; using '&&' for the problematic
uicontrols fixes the display.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Mon 13 Jun 2016 10:54:09 AM GMT  Name: uicontrol.png  Size: 30kB   By:
gyom

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

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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