void AddLabelInfoText(string text, FilterControlFocusInfo focusInfo, Color activeColor, ElementType type, bool active) { if (active) { LabelInfoText info = Texts.Add(text, activeColor, true); info.Tag = new NodeElement(focusInfo, type); } else { Texts.Add(text, activeColor, active); } }
public static bool EditorItem(FilterControl control, LabelInfoText text) { if (!control.ShowEditors && control.ActiveEditor != null && control.FocusedItem != null && control.FocusedItemType == ElementType.Value && control.FocusedItem.InfoText.Equals(text)) { return(true); } if (control.ShowEditors && text.Tag != null && ((NodeElement)text.Tag).Type == ElementType.Value) { return(true); } return(false); }
public FilterLabelInfoTextViewInfo(FilterLabelInfoViewInfo viewInfo, LabelInfoText infoText, int width, Point location) : base(viewInfo, infoText, width) { this.location = location; this.list = new ArrayList(); }
protected override LabelInfoTextViewInfoBase CreateViewInfo(LabelInfoText infoText, int width) { return(new FilterLabelInfoTextViewInfo(this, infoText, width, this.Label.ClientLocation)); }