Theming problem with ComboBox

Thread is closed for posting
2 posts, 0 answers
  1. NA
    NA avatar
    3 posts
    Member since:
    Dec 2007

    Posted 28 Mar 2008 Link to this post

    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!
  2. Nikolay
    Nikolay avatar
    1805 posts

    Posted 02 Apr 2008 Link to this post

    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,
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top