In a Webpart I have some customs properties. For the strings, booleans and enums, is all ok, but I have a problem with the selects (comboboxes).
To use a select I needed to create a Toolpart that contains it. And then I added this toolpart this way:
public override ToolPart[] GetToolParts()
{
ToolPart[] toolparts = new ToolPart[3];
WebPartToolPart wptp = new WebPartToolPart();
CustomPropertyToolPart custom = new CustomPropertyToolPart();
toolparts[0] = wptp;
toolparts[1] = custom;
toolparts[2] = new SelectToolPart(); // MY NEW TOOLPART
return toolparts;
}
But I want that this select appears inside the custom menu (like the other "normal" options).
Better I add a image that I think is easy to understand:
http://imageshack.us/photo/my-images/824/capturastack.png/
How can I do this?