W wdegler Active Member Licensed User Longtime User Oct 5, 2014 #1 When writing in B4A I used %x %y coordinates to allow for different screen sizes. In B4J, this notation is not accepted. How is this done in B4J?
When writing in B4A I used %x %y coordinates to allow for different screen sizes. In B4J, this notation is not accepted. How is this done in B4J?
Erel B4X founder Staff member Licensed User Longtime User Oct 6, 2014 #2 Forms, unlike Activities can be resized by the user. This makes percentage units less useful. It is better to use anchors instead. Upvote 0
Forms, unlike Activities can be resized by the user. This makes percentage units less useful. It is better to use anchors instead.
W wdegler Active Member Licensed User Longtime User Oct 6, 2014 #3 Erel said: Forms, unlike Activities can be resized by the user. This makes percentage units less useful. It is better to use anchors instead. Click to expand... Thank you for the information. I am studying anchor properties to apply them as suggested. It seems that the placement and size of a node in an AnchorPane is overridden by use of SetAnchor for the node. I also assume that to account for changes in font size I need to calculate the font size as a function of width and/or height of the anchor pane. Please let me know if I am not thinking correctly. Upvote 0
Erel said: Forms, unlike Activities can be resized by the user. This makes percentage units less useful. It is better to use anchors instead. Click to expand... Thank you for the information. I am studying anchor properties to apply them as suggested. It seems that the placement and size of a node in an AnchorPane is overridden by use of SetAnchor for the node. I also assume that to account for changes in font size I need to calculate the font size as a function of width and/or height of the anchor pane. Please let me know if I am not thinking correctly.
Erel B4X founder Staff member Licensed User Longtime User Oct 7, 2014 #4 You are correct. It is easier to set the anchors with the visual designer. Upvote 0