mangojack Expert Licensed User Longtime User Oct 1, 2021 #1 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)
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)
M Mahares Expert Licensed User Longtime User Oct 1, 2021 #2 mangojack said: but still no change. Click to expand... Good to hear from you mj. Here it is: B4X: B4XPlusMinus4.pnlPlus.GetView(0).TextSize =80 B4XPlusMinus4.pnlMinus.GetView(0).TextSize =80 DOn't be a stranger Upvote 1
mangojack said: but still no change. Click to expand... Good to hear from you mj. Here it is: B4X: B4XPlusMinus4.pnlPlus.GetView(0).TextSize =80 B4XPlusMinus4.pnlMinus.GetView(0).TextSize =80 DOn't be a stranger
mangojack Expert Licensed User Longtime User Oct 1, 2021 #3 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
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
Erel B4X founder Staff member Licensed User Longtime User Oct 3, 2021 #4 Better to write it like this: B4X: 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: B4X: 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.
M Mahares Expert Licensed User Longtime User Oct 3, 2021 #5 Erel said: Better to write it like this: Click to expand... 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
Erel said: Better to write it like this: Click to expand... 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
Erel B4X founder Staff member Licensed User Longtime User Oct 3, 2021 #6 You should compare: B4X: B4XPlusMinus4.lblPlus.TextSize = 80 B4XPlusMinus4.lblMinus.TextSize = 80 With: B4X: B4XPlusMinus4.pnlPlus.GetView(0).TextSize =80 B4XPlusMinus4.pnlMinus.GetView(0).TextSize =80 The two other lines should be included in both cases. Upvote 0
You should compare: B4X: B4XPlusMinus4.lblPlus.TextSize = 80 B4XPlusMinus4.lblMinus.TextSize = 80 With: B4X: B4XPlusMinus4.pnlPlus.GetView(0).TextSize =80 B4XPlusMinus4.pnlMinus.GetView(0).TextSize =80 The two other lines should be included in both cases.
mangojack Expert Licensed User Longtime User Oct 3, 2021 #7 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: Oct 3, 2021 Upvote 0
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)
Erel B4X founder Staff member Licensed User Longtime User Oct 3, 2021 #8 The arrows are made of panels with labels. The icon itself is a font awesome icon. You need to resize the panels (ArrowsSize) and resize the text size (lbl.TextSize). Upvote 0
The arrows are made of panels with labels. The icon itself is a font awesome icon. You need to resize the panels (ArrowsSize) and resize the text size (lbl.TextSize).
mangojack Expert Licensed User Longtime User Oct 3, 2021 #9 Erel said: The arrows are made of panels with labels. The icon itself is a font awesome icon. Click to expand... 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) Erel said: Better to write it like this: Click to expand... B4X: B4XPlusMinus.ArrowsSize = 80dip B4XPlusMinus.Base_Resize(B4XPlusMinus.mBase.Width, B4XPlusMinus.mBase.Height) B4XPlusMinus.lblPlus.TextSize = 80 B4XPlusMinus.lblMinus.TextSize = 80 Upvote 1
Erel said: The arrows are made of panels with labels. The icon itself is a font awesome icon. Click to expand... 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) Erel said: Better to write it like this: Click to expand... B4X: B4XPlusMinus.ArrowsSize = 80dip B4XPlusMinus.Base_Resize(B4XPlusMinus.mBase.Width, B4XPlusMinus.mBase.Height) B4XPlusMinus.lblPlus.TextSize = 80 B4XPlusMinus.lblMinus.TextSize = 80