Android Question B4XPlusMinus Arrow Size Change Not Working

mangojack

Expert
Licensed User
Longtime User
Increasing the Arrow Size in Code has no affect.

I tried the suggestion Here ... , but still no change.

Code: Copy
PM1.ArrowsSize = 50dip
PM1.Base_Resize(PM1.mBase.Width, PM1.mBase.Height)
 
Thanks Mahares ... That certainly worked ... Still here , busy but very little coding.

I beg the question then , why does the view have an ArrowSize property that seems does little ?

Cheers
 
Upvote 0
Better to write it like this:
Code: Copy
PM1.ArrowsSize = 50dip
PM1.Base_Resize(PM1.mBase.Width, PM1.mBase.Height)
B4XPlusMinus4.lblPlus.TextSize = 80
B4XPlusMinus4.lblMinus.TextSize = 80

The ArrowSize sets the control layout, but it doesn't change the labels text size. You need to do it yourself.
 
Upvote 0
Better to write it like this:
Normally, I buy any corrections or suggestions made by Erel to my posts, but on this one, you tell me: which one is easier to remember:
This:
Code: Copy
B4XPlusMinus4.ArrowsSize = 50dip
B4XPlusMinus4.Base_Resize(B4XPlusMinus4.mBase.Width, B4XPlusMinus4.mBase.Height)
B4XPlusMinus4.lblPlus.TextSize = 80
B4XPlusMinus4.lblMinus.TextSize = 80
Or this:
Code: Copy
B4XPlusMinus4.pnlPlus.GetView(0).TextSize =80
B4XPlusMinus4.pnlMinus.GetView(0).TextSize =80
 
Upvote 0
I have not had the time / opportunity to test for undesirable results , but :

if both of the following achieve the desired result ...
Code: Copy
B4XPlusMinus.lblPlus.TextSize = 80
B4XPlusMinus.lblMinus.TextSize = 80

also
Code: Copy
B4XPlusMinus.pnlPlus.GetView(0).TextSize =80
B4XPlusMinus.pnlMinus.GetView(0).TextSize =80

Why is the extra code in my initial post and @Erel 's at #4 necessary ? ie
Code: Copy
B4XPlusMinus.ArrowsSize = 80dip  '#note  changed from above examples to reflect uniformity . :) ?
B4XPlusMinus.Base_Resize(B4XPlusMinus.mBase.Width, B4XPlusMinus.mBase.Height)
 
Last edited:
Upvote 0
The arrows are made of panels with labels. The icon itself is a font awesome icon.
Understood ..


After some testing, I believe : If you are increasing the Arrow Size marginally , you might get away with the following code on its own
Code: Copy
B4XPlusMinus.lblPlus.TextSize = 40
B4XPlusMinus.lblMinus.TextSize = 40


But if the arrow Size is being increased significantly , I believe you need to follow @Erels suggestion above: (Edited for uniformity)

Better to write it like this:

Code: Copy
B4XPlusMinus.ArrowsSize = 80dip
B4XPlusMinus.Base_Resize(B4XPlusMinus.mBase.Width, B4XPlusMinus.mBase.Height)
B4XPlusMinus.lblPlus.TextSize = 80
B4XPlusMinus.lblMinus.TextSize = 80
 
Upvote 1
Back
Top