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.

B4X:
PM1.ArrowsSize = 50dip
PM1.Base_Resize(PM1.mBase.Width, PM1.mBase.Height)
 

mangojack

Expert
Licensed User
Longtime User
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

Mahares

Expert
Licensed User
Longtime User
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:
B4X:
B4XPlusMinus4.ArrowsSize = 50dip
B4XPlusMinus4.Base_Resize(B4XPlusMinus4.mBase.Width, B4XPlusMinus4.mBase.Height)
B4XPlusMinus4.lblPlus.TextSize = 80
B4XPlusMinus4.lblMinus.TextSize = 80
Or this:
B4X:
B4XPlusMinus4.pnlPlus.GetView(0).TextSize =80
B4XPlusMinus4.pnlMinus.GetView(0).TextSize =80
 
Upvote 0

mangojack

Expert
Licensed User
Longtime User
I have not had the time / opportunity to test for undesirable results , but :

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

also
B4X:
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
B4X:
B4XPlusMinus.ArrowsSize = 80dip  '#note  changed from above examples to reflect uniformity . :) ?
B4XPlusMinus.Base_Resize(B4XPlusMinus.mBase.Width, B4XPlusMinus.mBase.Height)
 
Last edited:
Upvote 0

mangojack

Expert
Licensed User
Longtime User
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
B4X:
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:

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