tufanv Expert Licensed User Longtime User Jan 7, 2015 #1 Hello, When I change the color of a panel with a border with panel1.color = colors.red the borders of the panel gets lost altough before changing it i can see the borders. How can i keep the borders when changing the color ? Thank you
Hello, When I change the color of a panel with a border with panel1.color = colors.red the borders of the panel gets lost altough before changing it i can see the borders. How can i keep the borders when changing the color ? Thank you
klaus Expert Licensed User Longtime User Jan 7, 2015 #2 You must use: B4X: Dim cdw As ColorDrawable cdw.Initialize2(Color, Radius, BorderWidth, ColorBorder) Panel.Background = cdw Upvote 0
You must use: B4X: Dim cdw As ColorDrawable cdw.Initialize2(Color, Radius, BorderWidth, ColorBorder) Panel.Background = cdw