I want to launch the Color Picker's Dialog window and get the selected color as output. In my case I want this window to launch from clicking on a Rectangle object instead of the ColorPicker component.
I'm having trouble finding out what the class/method is for launching this window since all online resources just point me to ColorPicker examples which I want to avoid. I tried checking the documentation without any luck so if you guys know how to help me I would be very grateful to you.
I think you are asking how to make the color picker's popup appear without actually showing the color picker control. You need to have the color picker in the scene graph for it to work; however you can just make it invisible. Note that it will still be placed in the scene graph and its location will determine the location of the popup.
Here's a minimal example:
Here is how this looks at startup:
and here is the result of clicking on the rectangle: