Yvon Steinthal Active Member Licensed User Longtime User Aug 30, 2017 #1 Hello, I have a problem with the setshadow effect on labels. Here is my code: B4X: Dim lbl As Label lbl.Initialize("") lbl.Text = name lbl.TextColor = Colors.White lbl.Tag = id lbl.Font = Font.Createnewbold(12) lbl.TextAlignment = lbl.ALIGNMENT_CENTER lbl.Color = Colors.ARGB(255,30,144,255) lbl.SetBorder(0dip,Colors.Transparent,15) lbl.SetShadow(Colors.Black,1dip,1dip,0.6,False) The shadow effect works well, but the border that i've set previously is completely ignored... Thanks Y.
Hello, I have a problem with the setshadow effect on labels. Here is my code: B4X: Dim lbl As Label lbl.Initialize("") lbl.Text = name lbl.TextColor = Colors.White lbl.Tag = id lbl.Font = Font.Createnewbold(12) lbl.TextAlignment = lbl.ALIGNMENT_CENTER lbl.Color = Colors.ARGB(255,30,144,255) lbl.SetBorder(0dip,Colors.Transparent,15) lbl.SetShadow(Colors.Black,1dip,1dip,0.6,False) The shadow effect works well, but the border that i've set previously is completely ignored... Thanks Y.
Erel B4X founder Staff member Licensed User Longtime User Aug 31, 2017 #2 The border corners radius should be set to 0 when adding shadow. If it doesn't help then put the label inside a panel and add the border to the panel. Labels are special lightweight views and they don't behave exactly like other views. Upvote 0
The border corners radius should be set to 0 when adding shadow. If it doesn't help then put the label inside a panel and add the border to the panel. Labels are special lightweight views and they don't behave exactly like other views.
Yvon Steinthal Active Member Licensed User Longtime User Aug 31, 2017 #3 Thanks Erel, i will try the panel solution. Upvote 0