|
|
|
@ -202,7 +202,8 @@ public class XCardSwitchButton extends XButton {
|
|
|
|
|
jPopupMenu.add(prev); |
|
|
|
|
jPopupMenu.add(next); |
|
|
|
|
jPopupMenu.add(end); |
|
|
|
|
GUICoreUtils.showPopupMenu(jPopupMenu, editingMouseListener.getDesigner(), e.getX(), e.getY()); |
|
|
|
|
FormDesigner designer = editingMouseListener.getDesigner(); |
|
|
|
|
GUICoreUtils.showPopupMenu(jPopupMenu, editingMouseListener.getDesigner(), designer.getOriginX(e.getX()), designer.getOriginY(e.getY())); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@ -251,7 +252,7 @@ public class XCardSwitchButton extends XButton {
|
|
|
|
|
//是否进入点击关闭按钮区域
|
|
|
|
|
private boolean isSelectedClose(MouseEvent e, FormDesigner designer){ |
|
|
|
|
|
|
|
|
|
int diff = designer.getArea().getHorScrollBar().getValue(); |
|
|
|
|
int diff = designer.getHorizontalScaleValue(); |
|
|
|
|
|
|
|
|
|
// mouse position
|
|
|
|
|
int ex = e.getX() + diff; |
|
|
|
|