B Barovski New Member Sep 13, 2025 #1 I setup in Designer a simple Label with corner radius value 10 and border width value 2. After executing a code below, the corner radius and border disappeared. Any comments? Label1.TextColor = xui.Color_White Label1.Color = xui.Color_RGB(105, 105,105)
I setup in Designer a simple Label with corner radius value 10 and border width value 2. After executing a code below, the corner radius and border disappeared. Any comments? Label1.TextColor = xui.Color_White Label1.Color = xui.Color_RGB(105, 105,105)
Sagenut Expert Licensed User Longtime User Sep 13, 2025 #2 Here it does not happen. Can you attach a project that show the issue to check?
klaus Expert Licensed User Longtime User Sep 13, 2025 #4 I suppose that the Label is declared as a Label. Declare it as a B4XView and then use this code: B4X: Copy Label1.SetColorAndBorder(xui.Color_RGB(105, 105,105), 2dip, xui.Color_Red, 5dip) Or, keeping the declaration as Label, you can use this code: B4X: Copy Label1.As(B4XView).SetColorAndBorder(xui.Color_RGB(105, 105,105), 2dip, xui.Color_Red, 5dip)
I suppose that the Label is declared as a Label. Declare it as a B4XView and then use this code: B4X: Copy Label1.SetColorAndBorder(xui.Color_RGB(105, 105,105), 2dip, xui.Color_Red, 5dip) Or, keeping the declaration as Label, you can use this code: B4X: Copy Label1.As(B4XView).SetColorAndBorder(xui.Color_RGB(105, 105,105), 2dip, xui.Color_Red, 5dip)