B4J Question How do I use relative coordinates?

wdegler

Active Member
Licensed User
Longtime User
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?
 

wdegler

Active Member
Licensed User
Longtime User
Forms, unlike Activities can be resized by the user. This makes percentage units less useful.

It is better to use anchors instead.
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
Top