diff --git a/processing/app/PdeEditorButtons.java b/processing/app/PdeEditorButtons.java index 4cef61048..33dbb12c9 100644 --- a/processing/app/PdeEditorButtons.java +++ b/processing/app/PdeEditorButtons.java @@ -241,13 +241,20 @@ public class PdeEditorButtons extends JPanel implements MouseInputListener { screen.drawImage(offscreen, 0, 0, null); //screen.fillRect(0, 0, 10, 10); } - + public void mouseMoved(MouseEvent e) { + if (state[OPEN] != INACTIVE) { + // avoid flicker, since there will probably be an update event + setState(OPEN, INACTIVE, false); + } //System.out.println(e); mouseMove(e); } public void mouseDragged(MouseEvent e) { + //if (state[OPEN] != INACTIVE) { + //setState(OPEN, INACTIVE, true); + //} //System.out.println(e); //mouseMove(e); } @@ -320,6 +327,7 @@ public class PdeEditorButtons extends JPanel implements MouseInputListener { return -1; } + private void setState(int slot, int newState, boolean updateAfter) { //if (inactive == null) return; state[slot] = newState; @@ -339,10 +347,16 @@ public class PdeEditorButtons extends JPanel implements MouseInputListener { } public void mouseEntered(MouseEvent e) { + //System.out.println("entered"); mouseMove(e); } public void mouseExited(MouseEvent e) { + if (state[OPEN] != INACTIVE) { + setState(OPEN, INACTIVE, true); + } + //System.out.println("exited"); + // kludge for (int i = 0; i < BUTTON_COUNT; i++) { messageClear(title[i]); @@ -366,7 +380,7 @@ public class PdeEditorButtons extends JPanel implements MouseInputListener { if (currentSelection == OPEN) { if (popup == null) { - popup = new PopupMenu(); + popup = new PopupMenu(); add(popup); } //popup.addActionListener(this); diff --git a/processing/todo.txt b/processing/todo.txt index 638138920..fdc626b5e 100644 --- a/processing/todo.txt +++ b/processing/todo.txt @@ -254,21 +254,19 @@ dh X http://proce55ing.net/discourse/yabb/YaBB.cgi?board=Proce55ing_Software;a X notify user when size() is bad X need to use oro matcher when trying to grab the applet size (export?) -_ open button getting stuck on windows X macosx doesn't listen if 'cancel' is selected for save changes on quit X but windows works fine, so it's a macosx problem +X open button getting stuck on windows +_ make sure no CVS folders or .DS_Store files in the distribution -fixes from toxi -X BImage.get() was only grabbing a single line of pixels +ks X BImage.get() was only grabbing a single line of pixels +dm _ problem with inner classes and helix example +cr _ new reference for rev 60 .................................................................. -0060 -_ make sure no CVS folders or .DS_Store files in the distribution - - MEDIUM _ include version number in the about box _ http://proce55ing.net/discourse/yabb/YaBB.cgi?board=Proce55ing_software_bugs;action=display;num=1064220242