I gather that the height setting of the RadTextBox is based on the font size being used within the textbox. The problem is that the text is too close to the bottom edge of the textbox. The spacing between the top edge of the textbox and the actual text is fine but the bottom edge of the textbox does not have the same spacing.
this would be okay - sorta - if you could manually adjust the height of the textbox but I have note been able to find where this can be done. I have tried setting the height size from wothin the RootElement tree (Size) and from the standard Size setting but thet both automatically reset to the intial height size set when the control is placed or the font size is changed.
Steven Hodson
WinExtra / Hodson Report
http://www.winextra.com
http://www.hodsonreport.com
10 Answers, 1 is accepted
As to the problem with the location of the text, indeed, we were able to confirm it. It appears when the font size is set to certain values. It is in our TODO list and it'll be fixed for the Q2 2007 release. Your points have been updated for the report.
Let us know if you find anything else - we will be glad to review it for you.
Sincerely yours,
Georgi
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
However the problem that sparked the post is the one you plan on addressing so all is good :)
Steven Hodson
WinExtra / Hodson Report
http://www.winextra.com
http://www.hodsonreport.com
I'm having a similar problem. But it has to do with the amount of padding that the TextBox contains. The control is functioning as if you had set Borders = None on a standard WinForms control.
I would like it function more like a standard TextBox with the extra padding between the text and the border. (It can auto-adjust its height based on the font size, but the padding should still be there).
Sergio
To set the padding between the text and the border you could use the Padding property of the control or the RadTextBoxElement (this functionality is available from the Q1 2007 SP2 release). You could set it to the desired value either at design-time or directly by code or when implementing a custom theme.
If you have any additional questions, please don't hesitate to ask us.
All the best,
Georgi
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
Ok. Here's the further problem: I turned on the 4 borders option, because my client just wants a bottom border. When I increase the padding, there is some separation between the entry area and the border. Is there a way to make that white, or just increase the padding within the entry area (which should increase the space between the text and the internal edges of the entry rectangle)?
Secondly, I was trying to do this all with a theme. So an additional question I have is that I saw where I can adjust the theme on a mouseover, can I adjust the theme when the control has focus?
And finally, how can I get the theme creator dialog box to more accurately represent what's happening? It doesn't quite show the correct style when they are set. Also, if I make a change to a theme, it doesn't automatically reflect in the UI. I have to close the form designer and reopen it.
Thanks,
Sergio
Hello Sergio,
Thank you for contacting us.
As to the first problem, the area that appears between the text and the border is in fact the fill primitive that is behind the entry area. This primitive takes the whole area between the borders (in our examples, you could use RadControlSpy to explore the structure of the textbox). You can change its color as you like in the theme or by code.
As to the second question, using Visual Style Builder you have to locate the RadTextBoxItem in the hierarchy and add a new state to it. Then create a condition with property set to RadElement.IsFocused property and Value set to true.
As it comes to the Visual Style Builder, can you please elaborate a bit more on what exactly you find inaccurate when editing a theme? The preview part of the VSB shows the corresponding control in the same way as it will appear on the form (with all states applied). The design pane shows the selected element as it would appear in the selected "state" only. For more information on the Visual Style Builder I will recommend the two WinForms videos here and Build Great User Interfaces with the VisualStyleBuilder for Telerik Windows Forms whitepaper.
The last problem you mention appears because Visual Style Builder does not refresh the theme that has been loaded in the memory of the Visual Studio designer when you save the theme. We will consider adding this functionality for the next major update.
Let us know if you have other questions.
Best wishes,
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
Thank you for writing.
The RadComboBox has almost the same layout behavior as the standard MS combobox. By default, the height of the RadComboBox cannot be changed. Instead, it is tied to the font size so when it changes the height changes accordingly. However, you can use its Padding property to set a different height.
On the other hand, if the Multiline property of the RadComboBox is set to true, you can change its height either at design-time or at runtime (through the code).
Please don't hesitate to write us if you have any additional questions.
Greetings,
Georgi
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
You currently have the ability to set the height of the RadTextBox. When the RadTextBox is in single line mode, the height of the text area is calculated dynamically. The only way to increase the height of the RadTextBox is to increase the Padding values. The height of the entire RadTextBox equals the height of the text area, plus top and bottom paddings.
For additional information, refer to this KB article:
http://www.telerik.com/support/kb/article/b454K-meh-b454T-ckt-b454c-ckt.aspx
If you have further questions, don't hesitate to contact us.
Kind regards,
Angel
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center