klaus Expert Licensed User Longtime User Oct 1, 2018 #1 Hi Erel, The B4XCanvas DrawLine method doesn't behave the same in B4J like in B4A / B4i. Drawing a thick line starts at the start point and ends at the end point. In B4J, the line is longer, I think you set the LineCap property to SQUARE by default and in B4A / B4i it's BUTT. I would prefer having the same behavior for all three products. Below, the code for the lines, it draws a thick and a small line to show the difference: Code: Copy cvsPanelBack.DrawLine(MarginLeft, BaseLineY, MarginRight, BaseLineY, xui.Color_Black, 8dip) cvsPanelBack.DrawLine(MarginLeft, BaseLineY, MarginRight, BaseLineY, xui.Color_Red, 1dip) Only the end point is shown in the pictures. Best regards. Klaus.
Hi Erel, The B4XCanvas DrawLine method doesn't behave the same in B4J like in B4A / B4i. Drawing a thick line starts at the start point and ends at the end point. In B4J, the line is longer, I think you set the LineCap property to SQUARE by default and in B4A / B4i it's BUTT. I would prefer having the same behavior for all three products. Below, the code for the lines, it draws a thick and a small line to show the difference: Code: Copy cvsPanelBack.DrawLine(MarginLeft, BaseLineY, MarginRight, BaseLineY, xui.Color_Black, 8dip) cvsPanelBack.DrawLine(MarginLeft, BaseLineY, MarginRight, BaseLineY, xui.Color_Red, 1dip) Only the end point is shown in the pictures. Best regards. Klaus.
Erel B4X founder Staff member Licensed User Longtime User Oct 2, 2018 #2 Fixed in jXUI 1.81: https://www.b4x.com/android/forum/threads/updates-to-internal-libaries.48274/#post-616400
Fixed in jXUI 1.81: https://www.b4x.com/android/forum/threads/updates-to-internal-libaries.48274/#post-616400