Inheritance: VisualControlBase, IContainedInputControl
        /// <summary>
        /// Initialize a new instance of the KryptonCheckedListBoxActionList class.
        /// </summary>
        /// <param name="owner">Designer that owns this action list instance.</param>
        public KryptonCheckedListBoxActionList(KryptonCheckedListBoxDesigner owner)
            : base(owner.Component)
        {
            // Remember the list box instance
            _checkedListBox = owner.Component as KryptonCheckedListBox;

            // Cache service used to notify when a property has changed
            _service = (IComponentChangeService)GetService(typeof(IComponentChangeService));
        }
            /// <summary>
            /// Initialize a new instance of the InternalCheckedListBox class.
            /// </summary>
            /// <param name="kryptonCheckedListBox">Reference to owning control.</param>
            public InternalCheckedListBox(KryptonCheckedListBox kryptonCheckedListBox)
            {
                SetStyle(ControlStyles.ResizeRedraw, true);

                _kryptonCheckedListBox = kryptonCheckedListBox;
                _mouseIndex = -1;
                _lastSelected = -1;

                // Create manager and view for drawing the background
                _drawPanel = new ViewDrawPanel();
                _viewManager = new ViewManager(this, _drawPanel);

                // Set required properties to act as an owner draw list box
                base.Size = Size.Empty;
                base.BorderStyle = BorderStyle.None;
                base.IntegralHeight = false;
                base.MultiColumn = false;
                base.DrawMode = DrawMode.OwnerDrawVariable;

                // We need to create and cache a device context compatible with the display
                _screenDC = PI.CreateCompatibleDC(IntPtr.Zero);
            }
 /// <summary>
 /// Initialize a new instance of the CheckedItemCollection class.
 /// </summary>
 /// <param name="owner">Reference to owning control.</param>
 internal CheckedItemCollection(KryptonCheckedListBox owner)
 {
     _owner = owner;
     _internalListBox = (InternalCheckedListBox)owner.ListBox;
 }
 /// <summary>
 /// Initialize a new instance of the ObjectCollection class.
 /// </summary>
 /// <param name="owner">Reference to owning control.</param>
 public ObjectCollection(KryptonCheckedListBox owner)
     : base(owner.ListBox)
 {
     _owner = owner;
 }
Esempio n. 5
0
 protected override Control InitialControl()
 {
     KryptonCheckedListBox ctl = new KryptonCheckedListBox();
     return ctl;
 }