Been trying to change the pen color for the B4XSignatureTemplate, like below.
B4XSignatureTemplate pen color change:
Sub Btn_Color_Click
Wait For (Dialog.ShowTemplate(ColorTemplate, "OK", "", "CANCEL")) Complete (Result As Int)
If Result = xui.DialogResponse_Positive Then
SignatureTemplate.StrokeColor = ColorTemplate.SelectedColor
DrawPad ' display the Signature template again
End If
End Sub
Sub Btn_Erase_Click
'???
End Sub
But the earlier drawing on Signature template disappears, since I'm reloading the template.
How do I do this?
Also, how do I erase the current drawing?
Can we do something like an "Eraser" effect?