TechnoRobbo Posted January 2, 2015 Posted January 2, 2015 This topic is in response to this post http://forums.getpaint.net/index.php?/topic/30462-feature-request-hex-color-input-available-in-plugins-color-wheel/?p=420010 I've been using a custom Color Wheel on Visual Studio. When I read the post I saw there was a need to modify it to include Hex input. I asked Ego Eram Reputo,Red Ochre and Midora to have a look at it before posting and they had excellent suggestions which were incorporated into the control. Thank you all for taking time to look. Here is the control source to be incorporated in a project Namespace is Controlz: Using Controlz; The control has one event : private void colorWheelTR1_ValueChanged(object sender, Color e) One Read/Write property: colorval Three Read only properties: hue,val,sat for HSV reference The Control :ColorWheelTRControl.zip Make sure to build the control after you import the source into your project. It will then appear inthe Toolbox 2 Quote Go out there and be amazing. Have Fun, TRSome Pretty Pictures Some Cool Plugins
Ego Eram Reputo Posted January 3, 2015 Posted January 3, 2015 It's a very nice control TR. Thank you for publishing it and for allowing me to make some suggestions. Usage: Download the zipped file in the post above. The zip contains three files: ColorWheelTR.cs, ColorWheelTR.designer.cs and ColorWheelTR.resx. Unzip them to a location you can find again. Open or create a new Visual Studio plugin project. If new, save it under it's own folder (good housekeeping!) Copy the three unzipped files to your project folder. In the VS Solution Explorer, right click the project name and select Add Existing Item from the context sensitive menu. Navigate to the ColorWheelTR.cs file and double click it to add it to the project. Press F6 to build the control. In your projects design view (the UI view), open the Toolbox. You'll find ColorWheelTR at the top of the Toolbox. Drag the control to your UI just like any regular control. Click the control to highlight it. At the top of the Properties window find and click the icon that looks like a lightning bolt (the Events tab) Find the field ValueChanged. Double click in the empty space beside the field to create an event handler which fires when the control is changed. The appropriate code stub will also be created. This is where your code should grab and use the new color value. 2 Quote ebook: Mastering Paint.NET | resources: Plugin Index | Stereogram Tut | proud supporter of Codelab plugins: EER's Plugin Pack | Planetoid | StickMan | WhichSymbol+ | Dr Scott's Markup Renderer | CSV Filetype | dwarf horde plugins: Plugin Browser | ShapeMaker
TechnoRobbo Posted January 3, 2015 Author Posted January 3, 2015 Excellent "How To" EER. Quote Go out there and be amazing. Have Fun, TRSome Pretty Pictures Some Cool Plugins
Ego Eram Reputo Posted January 3, 2015 Posted January 3, 2015 Thanks. I have to admit most of what I posted was from you explaining to me how to install it Quote ebook: Mastering Paint.NET | resources: Plugin Index | Stereogram Tut | proud supporter of Codelab plugins: EER's Plugin Pack | Planetoid | StickMan | WhichSymbol+ | Dr Scott's Markup Renderer | CSV Filetype | dwarf horde plugins: Plugin Browser | ShapeMaker
Red ochre Posted January 3, 2015 Posted January 3, 2015 Thanks for the control TR! Many E.E.R for the very useful guide on how to use it - I'm bookmarking this page! Quote Red ochre Plugin pack.............. Diabolical Drawings ................Real Paintings
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.