Still no web color picker for webapp?

Anyone have an example for a webcolorpicker ? The last example is 10 years ago :frowning:

could you pick a color from a painted image in canvas?
an image i created myself

2 Likes

You should be able to hack a WebTextField and convert it into an HTML color picker:

Me.ExecuteJavaScript("document.querySelector('#" + Me.ControlID + " input').type = 'color'")

The color picker varies from browser to browser. It will work in most of them, except on Android’s Firefox:

Here is a sample project:
webcolorpicker.xojo_binary_project.zip (8.5 KB)

5 Likes

GraffitiSuite also includes GraffitiColorPicker if third-party isn’t off the table. Otherwise, Ricardo’s answer is the best you can do without building a WebSDK component.

2 Likes

Mini Web Projekt with Canvas

WebColorPick.zip (10.0 KB)

1 Like

and the minimal html javascript

Avoid this kind of things like plague:

Seen some minutes ago…

What is that ?

1 Like