Try specifying the CC_FULLOPEN flag.
The controls of the custom color chooser (i.e. the right side RGB
part) may be ignored by the default handler if it's not shown.
If you create the dialog from scratch
Hello all,
I've got a standard 'ChooseColor' running, but would like to have it act as
a /single/ color picker. So, I thought I would (on the fully opened
dialog) just swap pretty-much all of the left and right side controls and just use the default opening, only showing the left half, now with that big colorfull box on it.
Well, it ain't working. :-(
Although I can see that the /controls/ are swapped, those seem to be just placeholders - with the actual stuff drawn smack on the dialog itself.
tl;dr:
Can I, on a 'ChooseColor' dialog change its appearance (move controls around), and if so how ?
I've not even thought of that. Though testing it (what effect it has) will have to wait until the swapping works.
I've not even thought of that. Though testing it (what effect it
has) will have to wait until the swapping works.
Then you may end up waiting for a deadlock.
The controls of the custom color chooser (i.e. the right side
RGB part) may be ignored by the default handler if it's not
shown.
.... but which (the CC_FULLOPEN flag) created a new problem, being that the COLOR_MIX ("define custom colors") button is now disabled.
Re-enabeling that button gives an unexpected effect : clicking it makes the dialog disappear. :-\ Oh well, I just have to do some more "fighting the system" I suppose. :-)
If you only need the RGB part, why would you need the "Define
custom color" button? It should be hidden, IMO - as it's irrelevant.
JJ,
Some more stuff I bumped into:
The "Add to Custom Colors" button also advances the "Custom Colors" to the next entry ) - in a zig-zag way - without giving any indication what the new entry actually is (the focus rectangle doesn't move).
There is no way to select one of the 16 "Custom colors" as a /target/ (for the above mentioned button) without the contained color overwriting the "freeform color selector" stuff on the right. :-|
Well, thats easy enough to fix : we just grab the mouses right-click on any of those 16 "Custom colors" and see if we can use it to select one of them
as a target, right ?
Wrong, as neither the "Custom colors" nor the "Basic colors" controls above it generate any kind of WM_ messages (command or otherwise) - and thus there is nothing to catch. :-(
As I said before, that 'ChooseColor' dialog *looks* to be way-over-flexible, but in reality it absolutily isn't. :-((
Regards,
Rudy Wieser
P.s.
The open / close button (to "open" / "close" the right-side pane) was easily added. Than again, that one I created and wrote code for myself. :-)
There is no way to select one of the 16 "Custom colors" as a /target/
(for the above mentioned button) without the contained color overwriting
the "freeform color selector" stuff on the right. :-|
Mind you, at least the color chooser, find text, replace text, and
print related dialogs are remnants of Windows v2.x, and there
hasn't been any significant changes.
The reason why there's no alpha channel and OTF font filtering
support in the first place.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 379 |
Nodes: | 16 (2 / 14) |
Uptime: | 42:29:01 |
Calls: | 8,141 |
Calls today: | 4 |
Files: | 13,085 |
Messages: | 5,857,851 |