Jump to content
Sign in to follow this  
Yashied

Button to select a color?

Recommended Posts

Yashied
Yashied

Share this post


Link to post
Share on other sites
Zedna

No, I need just a button. I am sure at 98%, that it is possible to realize by Windows (shell32.dll), but the question of how?

I don't know either. I have seen some Delphi components for this.

I would like to see some elegant API call for this too ;-)

Share this post


Link to post
Share on other sites
Yashied
martin

Because this dialog is used by many programs (not just Windows), i will do the conclusion that this can be done with Windows API.

But _ChooseColor does what is wanted doesn't it? It uses a windows API and all you need to do is call it when a button is pressed.

Maybe I misunderstand what is wanted.


Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

Share this post


Link to post
Share on other sites
Yashied

But _ChooseColor does what is wanted doesn't it? It uses a windows API and all you need to do is call it when a button is pressed.

Maybe I misunderstand what is wanted.

martin, I want to do exactly as in my screenshot. As dialog Windows - Display Properties - Desktop. I want to have a pop-up dialog with 4x5 colors.

Share this post


Link to post
Share on other sites
Zedna

I did some googling for: color picker button

and it seems there is no standard Windows API for this type of control

Web is full of custom controls either free or licenced which only reproduce look of that Window's control.

By the way it also used in MS Office.

Here are some good links:

A color picker button

http://www.codeproject.com/KB/miscctrl/colorbutton.aspx

A color picker dialog with a color dropper like Photoshop and Frontpage 2000

http://www.codeproject.com/KB/miscctrl/uucolorpicker.aspx

Delphi TColorPickerButton

http://www.sourcecodeonline.com/details/co...ker_button.html

Visual Basic Concepts

Using the Color Dialog Box

http://msdn.microsoft.com/en-us/library/aa231234(VS.60).aspx

Color Picker ActiveX Control - not free

http://www.innovasys.com/products/colorpicker/overview.aspx

Edited by Zedna

Share this post


Link to post
Share on other sites
Yashied
Yashied

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.