Reputation: 380
i want to show a color dialog that only displays custom colors and no basic colors or any other color. How can I do this? Is it even possible?
how can I hide the basic colors section in this dialog box and only show the custom colors section?
Upvotes: 0
Views: 1491
Reputation: 942338
It is a pre-baked dialog, built into Windows. Exact same one you see used in MSPaint's Edit Colors command for example. These dialogs are exposed by Windows to help programmers provide a consistent UI to their users. They'll learn to use it in one program and know how to use it in any other. OpenFileDialog and PrintDialog are other examples. No, you can't change it, that defeats the point.
Creating your own color dialog isn't terribly difficult. You can get inspiration from this magazine article
Upvotes: 7