I've placed a RadApplicationMenu control to the form, and set a backcolor property to the transparent. After that, when i run an application, the round button of RadApplication doesn't have a transparent backcolor. So there is a white box around the round button
I have a VB.NET solution and use VS 2008 on Windows 7.
Installed RadControls for WinForms Q3 2009 SP1.
Thank you for help.
Hi,
I’ve been using HTML text formatting for some of theRadControls. I noticed that a RadControl will crash if the HTML font has anampersand in the tile. For example, the following HTML will crash a RadControl:
<html><span style="font-family: the king& queen font; font-size: 20pt">Add TextHere</span></html>
The above HTML was created using the RadMarkupDialog, andassumes you have the following installed font:
http://www.audiolabel.com/artopia/king-and-queen.zipI also noticed that a RadControl will crash if the HTML fontis missing from the user’s computer. This behavior is different than if you setthe font through the RadControl Font property. When setting the Font property,a missing font will be automatically replaced with a default system font.
Shouldn't a missing font be automatically replaced whensetting the font through HTML? I can see this being very important when yourTelerik program is installed on different computers.
I'm using the latest Telerik build - 2009.3.1203
Thanks for your help,
Tim
using System; |
using System.Collections.Generic; |
using System.Linq; |
using Telerik.WinControls; |
using Telerik.WinControls.UI; |
/// <summary> |
/// Wrapper class to make RadComboBox act like a WinForms ComboBox |
/// when DropDownStyle is DropDownList |
/// </summary> |
/// <!--Author: Michael Gerety--> |
public class WorkingDropDownList : RadComboBox |
{ |
private char _lastChar; |
private int _lastIndex; |
private Dictionary<char, List<RadComboBoxItem>> _cache; |
public override string ThemeClassName |
{ |
get |
{ |
return "Telerik.WinControls.UI.RadComboBox"; |
} |
set |
{ |
base.ThemeClassName = value; |
} |
} |
public WorkingDropDownList() |
{ |
KeyPress += ComboBox_KeyPress; |
_cache = new Dictionary<char, List<RadComboBoxItem>>(); |
Items.ItemsChanged += new ItemChangedDelegate(Items_ItemsChanged); |
} |
void Items_ItemsChanged(RadItemCollection changed, RadItem target, ItemsChangeOperation operation) |
{ |
//If the items collection changes, we need to remove the cache for the character affected. |
if(target.Text != null) |
{ |
var changedChar = Char.Parse(target.Text.Substring(0, 1)); |
if(_cache.ContainsKey(changedChar)) |
{ |
_cache.Remove(changedChar); |
} |
} |
} |
void ComboBox_KeyPress(object sender, System.Windows.Forms.KeyPressEventArgs e) |
{ |
if (DropDownStyle == RadDropDownStyle.DropDownList) |
{ |
if (Char.IsLetter(e.KeyChar)) |
{ |
if (Char.ToUpper(e.KeyChar) != _lastChar) |
{ |
_lastChar = Char.ToUpper(e.KeyChar); |
_lastIndex = 0; |
if (!_cache.ContainsKey(_lastChar)) |
{ |
var list = (from i in Items |
where (i as RadComboBoxItem).Text.ToUpper().StartsWith(_lastChar.ToString()) |
select (RadComboBoxItem)i).ToList(); |
_cache.Add(_lastChar, list); |
} |
} |
if (_lastIndex >= _cache[_lastChar].Count) |
{ |
_lastIndex = 0; |
} |
if (_cache[_lastChar].Count > 0) |
{ |
SelectedItem = _cache[_lastChar][_lastIndex]; |
} |
_lastIndex++; |
} |
} |
} |
} |