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

Small Bug in VSB

1 Answer 53 Views
Tools - VSB, Control Spy, Shape Editor
This is a migrated thread and some comments may be shown as answers.
Pawz
Top achievements
Rank 1
Pawz asked on 04 Apr 2008, 03:06 AM
This isn't a real game ender - just something to note.

If you pick a font in the style builder that doesn't have a 'normal' setting (like a bold-only font) the VSB will crash. Easy to reproduce - try modifying the font of a control, then use the down-arrow to cycle through all the fonts on your system.

System.ArgumentException: Font 'Berlin Sans FB Demi' does not support style 'Regular'. 
   at System.Drawing.Font.CreateNativeFont() 
   at System.Drawing.Font.Initialize(FontFamily family, Single emSize, FontStyle style, GraphicsUnit unit, Byte gdiCharSet, Boolean gdiVerticalFont) 
   at System.Drawing.Font..ctor(String familyName, Single emSize, FontStyle style) 
   at Telerik.WinControls.Themes.Design.TextSettingsControl.radComboBox1_SelectedIndexChanged(Object sender, EventArgs e) 
   at Telerik.WinControls.UI.RadComboBox.OnSelectedIndexChanged(EventArgs e) 
   at Telerik.WinControls.UI.RadComboBox.comboBoxElement_SelectedIndexChanged(Object sender, EventArgs e) 
   at Telerik.WinControls.UI.RadComboBoxElement.OnSelectedIndexChanged(EventArgs e) 
   at Telerik.WinControls.UI.RadComboBoxElement.listBoxElement_SelectedIndexChanged(Object sender, EventArgs e) 
   at Telerik.WinControls.UI.RadListBoxElement.OnSelectedIndexChanged(SelectedIndexChangedEventArgs e) 
   at Telerik.WinControls.UI.RadListBoxElement.CallSelectedIndexChanged() 
   at Telerik.WinControls.UI.RadListBoxElement.selectedIndices_CollectionChanged(Object sender, RadListBoxItemIndexCollectionChangedEventArgs e) 
   at Telerik.WinControls.UI.RadListBoxItemIndexCollection.OnCollectionChanged(RadListBoxItemIndexCollectionChangedEventArgs e) 
   at Telerik.WinControls.UI.RadListBoxItemIndexCollection.OnInsertComplete(Int32 index, Object value) 
   at System.Collections.CollectionBase.System.Collections.IList.Add(Object value) 
   at Telerik.WinControls.UI.RadListBoxItemIndexCollection.Add(Int32 value) 
   at Telerik.WinControls.UI.RadListBoxElement.set_SelectedIndex(Int32 value) 
   at Telerik.WinControls.UI.RadComboBoxElement.set_SelectedIndex(Int32 value) 
   at Telerik.WinControls.UI.RadComboBoxElement.ExecuteDropDownStyleKeyDown(KeyEventArgs e) 
   at Telerik.WinControls.UI.RadComboBoxElement.textBox_KeyDown(Object sender, KeyEventArgs e) 
   at System.Windows.Forms.KeyEventHandler.Invoke(Object sender, KeyEventArgs e) 
   at Telerik.WinControls.UI.RadTextBoxItem.OnKeyDown(KeyEventArgs e) 
   at Telerik.WinControls.UI.RadTextBoxItem.TextBoxControl_KeyDown(Object sender, KeyEventArgs e) 
   at System.Windows.Forms.Control.OnKeyDown(KeyEventArgs e) 
   at System.Windows.Forms.Control.ProcessKeyEventArgs(Message& m) 
   at System.Windows.Forms.Control.ProcessKeyMessage(Message& m) 
   at System.Windows.Forms.Control.WmKeyChar(Message& m) 
   at System.Windows.Forms.Control.WndProc(Message& m) 
   at System.Windows.Forms.TextBoxBase.WndProc(Message& m) 
   at System.Windows.Forms.TextBox.WndProc(Message& m) 
   at Telerik.WinControls.UI.RadTextBoxBase.WndProc(Message& message) 
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) 
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) 
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) 
 
 

1 Answer, 1 is accepted

Sort by
0
Mike
Telerik team
answered on 04 Apr 2008, 03:36 PM
Hello Pawz,

Thank you for reporting this issue. I'll make sure we address it soon. Your Telerik points have been updated. Until we address this, you can use the "expert" property grid window in order to set the Font property of each element.

You are more than welcome to contact me with any other questions you have.

Sincerely yours,
Mike
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Tools - VSB, Control Spy, Shape Editor
Asked by
Pawz
Top achievements
Rank 1
Answers by
Mike
Telerik team
Share this question
or