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

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

[Octave-bug-tracker] [bug #58144] Cdata for UIcontrol is not properly im


From: Rik
Subject: [Octave-bug-tracker] [bug #58144] Cdata for UIcontrol is not properly implemented
Date: Tue, 14 Apr 2020 16:16:19 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko

Update of bug #58144 (project octave):

        Operating System:       Microsoft Windows => Any                    

    _______________________________________________________

Follow-up Comment #3:

Confirmed.

I wrote a smaller test script tst_58144.m which is attached.  The code for
that is


load startbutton.mat

figure()

h = uicontrol ('Style','pushbutton', ...
               'Position', [60 12 60 75], ...
               'CData', startbutton);

%% icon should be 60x75 since that is the size of
%% startbutton (60x75x3 uint8 image).
%% Instead, it is 12x14 pixels (on my machine)


I also extracted the startbutton image from your file and placed it in its own
file "startbutton.mat" to make things simpler.


(file #48838, file #48839)
    _______________________________________________________

Additional Item Attachment:

File name: startbutton.mat                Size:3 KB
    <https://savannah.gnu.org/file/startbutton.mat?file_id=48838>

File name: tst_58144.m                    Size:0 KB
    <https://savannah.gnu.org/file/tst_58144.m?file_id=48839>



    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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