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

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

[Octave-bug-tracker] [bug #52795] "pickableparts" unimplemented


From: Pantxo Diribarne
Subject: [Octave-bug-tracker] [bug #52795] "pickableparts" unimplemented
Date: Mon, 22 Jan 2018 08:48:01 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0

Follow-up Comment #5, bug #52795 (project octave):

Today at work I tested how "hittest" works:


fcn = @(h,e) disp (get (h, 'type'));
fcn2 = @(h,e) disp ([get(h, 'type') '2']); 
hp1 = patch ('buttondownfcn', fcn);
hg = hggroup ('buttondownfcn', fcn);
hp2 = patch ('parent', hg, 'buttondownfcn', fcn2);
set (gca, 'buttondownfcn', fcn); 
set (gcf, 'buttondownfcn', fcn); 
## click on the patch -> "patch2"
set (hp2, 'hittest', 'off')
## click on the patch -> "hggroup"
set (hg, 'hittest', 'off')
## click on the patch -> "axes"
set (gca, 'hittest', 'off')
## click on the patch -> "figure"


This is the same behavior as what I obtain with the attached (fixed "||" ->
"&&") patch.

(file #43018)
    _______________________________________________________

Additional Item Attachment:

File name: pickableparts4.patch           Size:1 KB


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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