Color Picker Dialog

I have encapsulated the using of the Dialogs Library's ColorPickerDialog:
Code: Copy
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
Very good ColorPicker example

Thank you, Jost.

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

Best regards.
 
Upvote 0
Back
Top