Bug? Strange rteaction

Barovski

New Member
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
Here it does not happen.
Can you attach a project that show the issue to check?
 

klaus

Expert
Licensed User
Longtime User
I suppose that the Label is declared as a Label.
Declare it as a B4XView and then use this code:
B4X:
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:
    Label1.As(B4XView).SetColorAndBorder(xui.Color_RGB(105, 105,105), 2dip, xui.Color_Red, 5dip)
 
Top