Does anyone have an idea how to access the Color Picker that is built into Windows? Is it possible to communicate with it from inside of AMS?
I’d love to be able to let my users pick a color from the standard windows color picker window. Having it return the Hex, or RGB value to AMS. I don’t know if I’m looking for a DLL or an ActiveX control, or something else.
I’m working on a graphics program in AMS. I found some graphics library DLLs that are pretty cool. Since I don’t have a slider control in AMS, I have to use buttons to increase and decrease Contrast, Brightness, Alpha level, etc. It works.
Picking a color is a different ball game though. I started a sub project that would just be used to pick the color. I did a screen grab of the windows Color Picker. Now I have to set 256 hot spots, and 256 IF/Then statements to get the thing running. Eventually it could work, but being able to make a couple of calls to a DLL, to accomplish the same thing, might save about 500 lines of code, and the weight of a second sub-program.
I suppose that if I were smart, I could build a little AMS project that could turn out the XML code for me, then I could just read the XML back into my Color Picker project.
I know that at least some of these things (sliders) can be accomplished with Flash, but I don’t have, or know how to use Flash. Frankly, I’ve stopped holding my breath for the CD that Corey was talking about some months ago. No offense Corey, I’m behind on more than a couple of projects myself.
This graphics program (photo manipulation) has been a challenging but fun project for me. It writes HTML files on the fly to act as the ‘canvas’, and writes and executes BAT files to call the graphics dlls and manipulate the photo. I need access to a color picker to be able to add text overlay, and matting features, to the program.
If anyone has any hints on how I can do this I’d be grateful.
Thanks, Jim
I’d love to be able to let my users pick a color from the standard windows color picker window. Having it return the Hex, or RGB value to AMS. I don’t know if I’m looking for a DLL or an ActiveX control, or something else.
I’m working on a graphics program in AMS. I found some graphics library DLLs that are pretty cool. Since I don’t have a slider control in AMS, I have to use buttons to increase and decrease Contrast, Brightness, Alpha level, etc. It works.
Picking a color is a different ball game though. I started a sub project that would just be used to pick the color. I did a screen grab of the windows Color Picker. Now I have to set 256 hot spots, and 256 IF/Then statements to get the thing running. Eventually it could work, but being able to make a couple of calls to a DLL, to accomplish the same thing, might save about 500 lines of code, and the weight of a second sub-program.
I suppose that if I were smart, I could build a little AMS project that could turn out the XML code for me, then I could just read the XML back into my Color Picker project.
I know that at least some of these things (sliders) can be accomplished with Flash, but I don’t have, or know how to use Flash. Frankly, I’ve stopped holding my breath for the CD that Corey was talking about some months ago. No offense Corey, I’m behind on more than a couple of projects myself.
This graphics program (photo manipulation) has been a challenging but fun project for me. It writes HTML files on the fly to act as the ‘canvas’, and writes and executes BAT files to call the graphics dlls and manipulate the photo. I need access to a color picker to be able to add text overlay, and matting features, to the program.
If anyone has any hints on how I can do this I’d be grateful.
Thanks, Jim
Comment