Its really easy to add the Color Property Page to your UserControl. The last part to do is populate the colors.
In your UserControl there is a PropertyPages property which when you click the elipsis it brings up a dialog where you can check the box to add the Color property page tab to your UserControl. The dialog is captioned as "Connect Property Pages". Also in there will be your custom property page if any exist.
I have added two forms of property page type to my usercontrol project and also the Color Property Page as you can see in my attached screenshot.
In the code behind view you can use the Tools > Procedure Attributes... to associate your property with the desired property page.
-Robert
Ps, this is my custom property page dialog as you can see only Column Header and Icon Imagelist tabs
Thanks for your help and research, sorry I havent replied sooner, I have just revisited problem, and looking into it again.
certain some good ideas in the source their, may see if I can play with columns / colours in the list box maybe, to get a closer look.
Its a shame this control isnt available as I see it used so much in other 3rd party controls, it must be out the somewhere for all of them to use it.
Or the API that adds images to List Box, so I can do my own.
Thanks again Hannes for the work you put in, very rare indeed to see this kind of effort on forums
Neil
Originally Posted by HanneSThEGreaT
OK...
Mine is not so pretty as your shown picure, but it is still pretty funky ( I think so )
What happens with my project is that it overrides the standard listbox in order to display the system colours ( that you want ). How the list displays them is, with each colour, the item's background is that associated colour.
Have a look at it, it does work, but if it is not what you wanted, or if you wanted something a bit more funky, I'll see what I can come up with - just note, I have very limited time these days, so I'll try my best for you
See attached, for what I am trying to acheive, I have a series of properties that are not directly exposed by the control, which dont get picked up by the Property Page Wizard / Color Properties, so I am trying to find the Color Set Combo / Color Pallete List Box , Edit Cusom Color Button combination as a control somewhere, so I can utilise it in a custom way as they do in TDBGRid, and other controls.
Regards
Neil
Originally Posted by RobDog888
Hi Neil,
Its really easy to add the Color Property Page to your UserControl. The last part to do is populate the colors.
In your UserControl there is a PropertyPages property which when you click the elipsis it brings up a dialog where you can check the box to add the Color property page tab to your UserControl. The dialog is captioned as "Connect Property Pages". Also in there will be your custom property page if any exist.
I have added two forms of property page type to my usercontrol project and also the Color Property Page as you can see in my attached screenshot.
In the code behind view you can use the Tools > Procedure Attributes... to associate your property with the desired property page.
-Robert
Ps, this is my custom property page dialog as you can see only Column Header and Icon Imagelist tabs
I think the properties to be included on the StandardColor PropertyPage must be declared as Public in order to show up. Do you want some properties to not be public, while still showing in the color PropertyPage?
Attached is an example which achieves what you've shown.
Please remember to rate the posts and threads that you find useful.
How can something be both new and improved at the same time?
* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.