Color Picker Dialog

Jost aus Soest

Active Member
Licensed User
Longtime User
I have encapsulated the using of the Dialogs Library's ColorPickerDialog:
B4X:
Sub Dialog_ColorPicker(Title As String, Default As Long) As Long

   Dim dlg As ColorPickerDialog
   Dim res As Int

   dlg.RGB = Default
   res = dlg.Show(Title, "OK", "", "", Null)
   If res = DialogResponse.POSITIVE Then
      Return dlg.RGB
   Else
      Return Default
   End If

End Sub
 
Last edited:
Upvote 0

tdocs2

Well-Known Member
Licensed User
Longtime User
Very good ColorPicker example

Thank you, Jost.

Your example saved me time with experimenting with the ColorPicker...

Best regards.
 
Upvote 0
Top