Jump to content
Sign in to follow this  
qwert

How to get small color dialog

Recommended Posts

qwert

When using the _ChooseColor function in Misc.au3, the dialog opens with the Define Custom Color already activated. I would like only the minimum dialog, since I rarely change the standard selections. Can someone point out a way to get the abbreviated dialog?

Thanks in advance for any help.

post-29172-0-25075800-1325373098_thumb.p

Share this post


Link to post
Share on other sites
Malkey

In the _ChooseColor() function within the Misc.au3 file in the AutoIt include directory, change

DllStructSetData($tChoose, "Flags", BitOR($__MISCCONSTANT_CC_ANYCOLOR, $__MISCCONSTANT_CC_FULLOPEN, $__MISCCONSTANT_CC_RGBINIT))

to

DllStructSetData($tChoose, "Flags", BitOR($__MISCCONSTANT_CC_ANYCOLOR, $__MISCCONSTANT_CC_RGBINIT))

This just removes the $__MISCCONSTANT_CC_FULLOPEN constant.

Share this post


Link to post
Share on other sites
Yashied
qwert

Those are three excellent solutions. It's sure nice to be able to tailor the color selection dialog to exactly match the application purpose.

Thanks to you both!

Now if the color dialogs could only be zoomed to be 4x the size, they would be perfect. Remember the old days of 640x480 ... when the color boxes were "big" and easy to see and compare? But I guess that's beyond our control. True?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.