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

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

[Octave-bug-tracker] [bug #58224] HorizontalAlignment property of uicont


From: Guillaume
Subject: [Octave-bug-tracker] [bug #58224] HorizontalAlignment property of uicontrol Edit not recognized when Max property is not 1
Date: Tue, 21 Apr 2020 17:47:25 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0

URL:
  <https://savannah.gnu.org/bugs/?58224>

                 Summary: HorizontalAlignment property of uicontrol Edit not
recognized when Max property is not 1
                 Project: GNU Octave
            Submitted by: gyom
            Submitted on: Tue 21 Apr 2020 09:47:23 PM UTC
                Category: Plotting with OpenGL
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Matlab Compatibility
                  Status: None
             Assigned to: None
         Originator Name: Guillaume
        Originator Email: 
             Open/Closed: Open
                 Release: dev
         Discussion Lock: Any
        Operating System: Any

    _______________________________________________________

Details:

As spotted in bug #58186, the text of an Edit styled uicontrol is not aligned
according to the HorizontalAlignment property but remains on the left. This
only occurs when the Max property is set to a value greater than 1.


figure;
opts = {'left', 'center', 'right'};
for i=1:numel(opts)
  u(i) = uicontrol (...
    "Style", "edit", ...
    "Units", "normalized", ...
    "Position", [0.25 i/4 0.5 0.2], ...
    "HorizontalAlignment", opts{i}, ...
    "Max", 2, ...
    "String", opts{i});
end
pause (2);
set (u, "Max", 1);





    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?58224>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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