Jump to content

Button to select a color?


Recommended Posts

Link to comment
Share on other sites

Link to comment
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.
Link to comment
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.
Link to comment
Share on other sites

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...