Sfoglia il codice sorgente

add extra regions to reset to cursor to the default (+coloring the borders red for debugging and testing)

Martin Beyer 3 anni fa
parent
commit
cf633d74d2
1 ha cambiato i file con 6 aggiunte e 0 eliminazioni
  1. 6 0
      src/main/resources/fxml/main_window_resize.fxml

+ 6 - 0
src/main/resources/fxml/main_window_resize.fxml

@@ -11,6 +11,7 @@
 		<Cursor fx:id="neResize" fx:constant="NE_RESIZE"/>
 		<Cursor fx:id="nsResize" fx:constant="N_RESIZE"/>
 		<Cursor fx:id="ewResize" fx:constant="E_RESIZE"/>
+		<Cursor fx:id="default" fx:constant="DEFAULT"/>
 	</fx:define>
 
 	<Region fx:id="tlResizer" cursor="${nwResize}" prefWidth="10" prefHeight="10" maxWidth="-Infinity" maxHeight="-Infinity" visible="${controller.showResizingArrows}" managed="${controller.showResizingArrows}" onMouseDragged="#resizeTopLeft"     AnchorPane.topAnchor="0"       AnchorPane.leftAnchor="0"/>
@@ -21,5 +22,10 @@
 	<Region fx:id="rResizer"  cursor="${ewResize}" prefWidth="10" prefHeight="10" maxWidth="-Infinity" maxHeight="-Infinity" visible="${controller.showResizingArrows}" managed="${controller.showResizingArrows}" onMouseDragged="#resizeRight"       AnchorPane.bottomAnchor="10.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="10.0"/>
 	<Region fx:id="bResizer"  cursor="${nsResize}" prefWidth="10" prefHeight="10" maxWidth="-Infinity" maxHeight="-Infinity" visible="${controller.showResizingArrows}" managed="${controller.showResizingArrows}" onMouseDragged="#resizeBottom"      AnchorPane.bottomAnchor="0.0"  AnchorPane.leftAnchor="10.0" AnchorPane.rightAnchor="10.0"/>
 	<Region fx:id="lResizer"  cursor="${ewResize}" prefWidth="10" prefHeight="10" maxWidth="-Infinity" maxHeight="-Infinity" visible="${controller.showResizingArrows}" managed="${controller.showResizingArrows}" onMouseDragged="#resizeLeft"        AnchorPane.bottomAnchor="10.0" AnchorPane.leftAnchor="0.0" AnchorPane.topAnchor="10.0"/>
+	<Region fx:id="lDefaultRegion" cursor="${default}" prefWidth="1" prefHeight="1" maxWidth="-Infinity" maxHeight="-Infinity"  AnchorPane.bottomAnchor="-2" AnchorPane.leftAnchor="-2" AnchorPane.topAnchor="-2" style="-fx-border-color: red"/>
+	<Region fx:id="tDefaultRegion" cursor="${default}" prefWidth="1" prefHeight="1" maxWidth="-Infinity" maxHeight="-Infinity"  AnchorPane.leftAnchor="-2" AnchorPane.topAnchor="-2" AnchorPane.rightAnchor="-2" style="-fx-border-color: red"/>
+	<Region fx:id="rDefaultRegion" cursor="${default}" prefWidth="1" prefHeight="1" maxWidth="-Infinity" maxHeight="-Infinity"  AnchorPane.bottomAnchor="-2" AnchorPane.rightAnchor="-2" AnchorPane.topAnchor="-2" style="-fx-border-color: red"/>
+	<Region fx:id="bDefaultRegion" cursor="${default}" prefWidth="1" prefHeight="1" maxWidth="-Infinity" maxHeight="-Infinity"  AnchorPane.bottomAnchor="-2" AnchorPane.leftAnchor="-2" AnchorPane.rightAnchor="-2" style="-fx-border-color: red"/>
+
 
 </AnchorPane>