I searched fo ColorPicker, then ColorPicker Control, then… ad nauseam.
At last, I found a project in the 2022r2 Examples folder.
But an entry in the documentation is a good idea for Newbies as none asked for that since the last time I do that (in early October 2021; I forgot why, but I still have the “demo project” I made then).
“Emile: this is Xojo.”
“I know, but this is the new documentation, and it have been improved three days ago…”
Fortunately, I already had the Properties; unfortunately I had the Canvases. I had to Copy(from the example) / Paste the 3 Events to all Canvas’ (MouseDown, MouseUp, Paint), change the Colour Properties, change the Canvas Name, correct all errors I’ve done changing the code, and understand I do not have to close and click in another Canvas to change its colour.
The colour change is live, the Color Picker closed by itself (or I do not saw where it is closed in the example.
Now I need a rest, I lost my brain while doing that.
But with the example from 2022r2, I was able to do that (I choosed colours, no tasteful colours…):
Fortunately (bis) I used “random” colours that let me see that I need to add a second Text colour: one for the image Header, one for the Main Header (look at the top of the image: Background Header and Background Main): the light color I used for Text was nearly invisible for Main part of the Picture (not displayed here).
There are some missing Black rectangles around some Canvas’…
There was not an API 1 equivalent. I remember creating one using a bevel button and drawing it’s icon in code to show the currently chose chosen color, years ago.