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

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

[Octave-bug-tracker] [bug #46494] Incorrect behavior of setting handle c


From: anonymous
Subject: [Octave-bug-tracker] [bug #46494] Incorrect behavior of setting handle children.
Date: Sun, 22 Nov 2015 01:59:40 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:42.0) Gecko/20100101 Firefox/42.0

Follow-up Comment #2, bug #46494 (project octave):

Afterwards, I got a workaround, where I can grab all hidden handle indices,
set them visible, turn off the ShowHiddenHandles flag, reorder the children,
then set those handles back to being hidden.

Thus, I can replace this:

    kk_h = get(gca,'children');
    set(gca,'children',[kk_h(2);kk_h(3:length(kk_h));kk_h(1)]); 

with:

    kk_h = get(gca,'children');
    kk_inv = strcmp('off', get(kk_h, 'HandleVisibility'));
    set(kk_h(kk_inv), 'HandleVisibility', 'on');
    tmp_show=get(0, 'ShowHiddenHandles');
    set(0, 'ShowHiddenHandles', 'off');
    set(gca,'children',[kk_h(2);kk_h(3:length(kk_h));kk_h(1)]);
    set(kk_h(kk_inv), 'HandleVisibility', 'off');
    set(0, 'ShowHiddenHandles', tmp_show);

And then the first handle will be set even below those invisible ones.
    

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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