mjtaryan Active Member Licensed User Longtime User Sep 30, 2013 #1 How do I set the horizontal and vertical text alignment properties of a label I've added in code (not in Designer)? If that can't be done directly, what is a viable workaround? Thanks.
How do I set the horizontal and vertical text alignment properties of a label I've added in code (not in Designer)? If that can't be done directly, what is a viable workaround? Thanks.
D dxxxyyyzzz Member Licensed User Longtime User Sep 30, 2013 #2 B4X: label.Gravity= Bit.Or(Gravity.CENTER, Gravity.CENTER_HORIZONTAL) Upvote 0
mjtaryan Active Member Licensed User Longtime User Oct 2, 2013 #3 Oops, I should have remembered that. Thanks for reminding me. Upvote 0
E Edgardo PuntoCom Member Licensed User Longtime User Aug 30, 2015 #4 dxxxyyyzzz said: B4X: label.Gravity= Bit.Or(Gravity.CENTER, Gravity.CENTER_HORIZONTAL) Click to expand... Thank you, it is easy...XD Upvote 0
dxxxyyyzzz said: B4X: label.Gravity= Bit.Or(Gravity.CENTER, Gravity.CENTER_HORIZONTAL) Click to expand... Thank you, it is easy...XD