HI
i want to use ColorTemplate.SelectedColor to set color to panel, and how to use panel color to drawline ? thanks
i want to use ColorTemplate.SelectedColor to set color to panel, and how to use panel color to drawline ? thanks
B4X:
Dialog.Title = "select color"
Wait For (Dialog.ShowTemplate(ColorTemplate, "OK", "", "Exit")) Complete (Result As Int)
If Result = XUI.DialogResponse_Positive Then
Log("ColorTemplate.SelectedColor:" & ColorTemplate.SelectedColor)
PanelColorCurrent.Color = ColorTemplate.SelectedColor
'in this line , how to change panel color to rgb?
'Canv.DrawLine(oldX, oldY, newX, newY, Colors.ARGB(color_A,color_R,color_G,color_B), 5)
'Canv.Refresh
End If