|
From: | Rik |
Subject: | [Octave-bug-tracker] [bug #60153] Produces no resulat when using an array |
Date: | Mon, 1 Mar 2021 13:21:21 -0500 (EST) |
User-agent: | Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.66 Safari/537.36 |
Update of bug #60153 (project octave): Status: None => Confirmed Operating System: Microsoft Windows => Any _______________________________________________________ Follow-up Comment #1: I've simplified the code a bit and uploaded it for testing. The new files are tst_uipushbutton.m (run this one) and cb_uipushbutton.m (graphics callback function). Try left-clicking on one of the 4 uipushbuttons and holding the mouse down. For me, the callback function does not run. Then release the mouse button, and now the callback function runs. If you see the same behavior then I think what is happening is that Matlab is running the specified callback on a ButtonDown event while Octave is running the specified callback on a a ButtonRelease event. Because Octave is running after the release of the Button there is nothing selected and the Value property is always 0. Could you test in Matlab to see if the callback is executed immediately on a ButtonDown event? (file #50960, file #50961) _______________________________________________________ Additional Item Attachment: File name: tst_uipushbutton.m Size:0 KB <https://file.savannah.gnu.org/file/tst_uipushbutton.m?file_id=50960> File name: cb_uipushbutton.m Size:0 KB <https://file.savannah.gnu.org/file/cb_uipushbutton.m?file_id=50961> _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?60153> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |