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

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

[Octave-bug-tracker] [bug #60951] ListboxTop property not implemented


From: Rik
Subject: [Octave-bug-tracker] [bug #60951] ListboxTop property not implemented
Date: Thu, 22 Jul 2021 11:26:36 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.101 Safari/537.36

Update of bug #60951 (project octave):

                  Status:               Confirmed => Ready For Test         

    _______________________________________________________

Follow-up Comment #1:

This wasn't that hard to implement.  I checked a change in on the development
branch here: http://hg.savannah.gnu.org/hgweb/octave/rev/ad023dbe9606.

This works for the example in this bug report which uses write access (set()).
 It looks like Matlab has also implemented read-access for this property,
which seems less useful to me.

Could you test the following code on Matlab?


h = uicontrol('style','listbox','position',[20 20 120 300],...
     'backgroundcolor','black','foregroundcolor','yellow',...
     'string',reshape(sprintf(' This is Line %2d',1:60),16,60)');
set(h,'listboxTop',40);
% now use the mouse to scroll the ListBox so that "This is Line 13" is at the
top of the ListBox
get (h, 'listboxTop')


I'm wondering if it will report '13' or the value that was previously set
('40').

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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