public MirandaContactBlock() { // This call is required by the Windows.Forms Form Designer. InitializeComponent(); _typeLabelPool = new ControlPool(this, new ControlPoolCreateDelegate(CreateTypeLabel)); _valueLabelPool = new ControlPool(this, new ControlPoolCreateDelegate(CreateValueLabel)); }
public LinksPane() { // This call is required by the Windows.Forms Form Designer. InitializeComponent(); _linkTypeLabelPool = new ControlPool(_borderPanel, OnCreateLinkTypeLabel); _actionLabelPool = new ControlPool(_borderPanel, OnCreateActionLabel); _separatorPool = new ControlPool(_borderPanel, OnCreateSeparator); _resourceLinkLabelPool = new ControlPool(_borderPanel, OnCreateResourceLinkLabel); _resourceLinkLabelPool.DisposeDelegate = OnDisposeResourceLinkLabel; SetStyle(ControlStyles.UserPaint, true); }
public LinksBar() { // This call is required by the Windows.Forms Form Designer. InitializeComponent(); SetStyle(ControlStyles.ResizeRedraw, true); _linkTypeLabelPool = new ControlPool(this, OnCreateLinkTypeLabel); _resourceLinkLabelPool = new ControlPool(this, OnCreateResourceLinkLabel); _resourceLinkLabelPool.DisposeDelegate = OnDisposeResourceLinkLabel; _actionLabelPool = new ControlPool(this, OnCreateActionLabel); _defltVerticalViewLines = Core.SettingStore.ReadInt("LinksBar", "VerticalViewLines", 3); }
public SeeAlsoBar() { // This call is required by the Windows.Forms Form Designer. InitializeComponent(); SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.CacheText | ControlStyles.ContainerControl | ControlStyles.ResizeRedraw | ControlStyles.Selectable | ControlStyles.UserPaint, true); UpdateColors(); _iconPool = new ControlPool(this, new ControlPoolCreateDelegate(OnCreateIcon)); _linkLabelPool = new ControlPool(this, new ControlPoolCreateDelegate(OnCreateLinkLabel)); _linkFont = new Font("Tahoma", 8); }