This is a migrated thread and some comments may be shown as answers.

Problem with ToolWindow ToolStrip or DockStrip

1 Answer 136 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Ram
Top achievements
Rank 1
Ram asked on 06 Apr 2011, 07:48 AM
Hi,

I want to add the some Combobox,TextBox and Button on the DockTabStrip or Top of the ToolWindow of RadDock Control.
But i am not getting any way to do this.

And my anathor problem is that i rounded the shape of the e.DockWIndow with FIllPrimitive and BorderPrimitive properties that rounded
the upper portion of the ToolWindow but back portion of the control is looking odd/rectangle.

The Snap Shot of my problem with code over it is attached with this thread (dock.png).

Please review this problem as soon as possible.

 
private void radDock1_DockStateChanged_1(object sender, DockWindowEventArgs e)
        {
            try
            {
                e.DockWindow.Text = strCaption;
                FillPrimitive fill = (FillPrimitive)((ToolTabStrip)e.DockWindow.DockTabStrip).CaptionElement.Children[0];
                BorderPrimitive border = (BorderPrimitive)((ToolTabStrip)e.DockWindow.DockTabStrip).CaptionElement.Children[1];
                fill.AutoSize = false;
 
                fill.Size = new Size(e.DockWindow.Width, 35);
                
               border.Shape = this.toproundedshape;
                
            }
            catch (Exception)
            {
                throw;
            }
        }

1 Answer, 1 is accepted

Sort by
0
Alexander
Telerik team
answered on 11 Apr 2011, 09:58 AM
Hello Ram,

Thank you for your question.

Please review this forum thread regarding your first question. You can add button elements but not RadComboBoxElement in the 'caption' area of ToolTabStrip.

Concerning your second question, you should be able to change the BackColor of the FillPrimitive in your code snippet:

fill.BackColor = Color.Green;
fill.GradientStyle = GradientStyles.Solid;

It this code does not work on your side, please open a support ticket and attach a sample project demonstrating the issue. It will help me investigate this case further.

Kind regards,
Alexander
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Dock
Asked by
Ram
Top achievements
Rank 1
Answers by
Alexander
Telerik team
Share this question
or