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

Theming problem with ComboBox

1 Answer 42 Views
ComboBox and ListBox (obsolete as of Q2 2010)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
NA
Top achievements
Rank 1
NA asked on 28 Mar 2008, 05:01 PM
Using the theme designer I have been able to create a combo box that has rounded corners on the input control, as well as rounded corners on the drop-down portion.

The problem is that I really need the drop down when shown to extend from beneath the input portion, without creating its own rounded corners, so that the two portions form one rounded rectangle. As it is now, the input control portion and the drop down are adjacent to eachother top to bottom, but each having its own rounded corners on the line they meet, showing up as two distinct rounded rectangles.

This breaks with the entire design motif that I am working with. I don't know if there is a quick hack around this, but one idea I had is to not show the top line of the drop-down and not show the bottom line of the input control, and turn on rounding only on the top corners of the input and the bottom corners of the drop down. Then push the two a few pixels closer to form a complete single rounded rectangle.

Does this make sense? Does anyone know how to accomplish this using the control as it is now? Or can someone from Telerik comment on how soon they could implement this capability?

Many thanks!

1 Answer, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 02 Apr 2008, 05:12 PM
Hi NA,

RadControls for WinForms supports your scenario of having the editor and the dropdown portion of RadComboBox with the specified forms. You can use the ShapeEditor to do that.

Instead of setting the Shape property of these portions to RoundRectShape, choose Create New Custom Shape... and the ShapeEditor will open for you. Once there, you can create your custom shapes. Because you need a RoundRectShape kind of shape, you will need curved lines. To set them, right-click on the lines you need and choose Convert. Then, manipulate the line with the red handles to achieve different curves.

I have attached a movie where you can observe the additional actions you should take to accomplish the task of creating such a theme. The result theme made during the movie is attached as well.

If you have further questions, do not hesitate to contact me.

Kind regards,
Nikolay
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
ComboBox and ListBox (obsolete as of Q2 2010)
Asked by
NA
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Share this question
or