Sign in to follow this  
Followers 0
Yashied

Button to select a color?

11 posts in this topic




Share this post


Link to post
Share on other sites

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

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

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

#8 ·  Posted (edited)

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

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  
Followers 0