public override Control ShowControl(Rectangle valueRect, PropertyEnumerator propEnum)
        {
            if ((propEnum.Property.Value.IsReadOnly(propEnum)) && !_editable)
                return null;

            PropInPlaceTrackbar trackbar;

            if (mInPlaceCtrl == null)
            {
                trackbar = new PropInPlaceTrackbar(_editable);
                trackbar.Visible = false;
                trackbar.Parent = mParentWnd;
                mInPlaceCtrl = trackbar;
            }
            else
                trackbar = (PropInPlaceTrackbar)mInPlaceCtrl;

            NotifyInPlaceControlCreated(propEnum);

            trackbar.OwnerPropertyEnumerator = propEnum;

            trackbar.Font = propEnum.Property.Value.Font;

            MoveControl(valueRect, propEnum);

            return base.ShowControl(valueRect, propEnum);
        }
Example #2
0
        public override Control ShowControl(Rectangle valueRect, PropertyEnumerator propEnum)
        {
            if ((propEnum.Property.Value.IsReadOnly(propEnum)) && !_editable)
            {
                return(null);
            }

            PropInPlaceTrackbar trackbar;

            if (mInPlaceCtrl == null)
            {
                trackbar         = new PropInPlaceTrackbar(_editable);
                trackbar.Visible = false;
                trackbar.Parent  = mParentWnd;
                mInPlaceCtrl     = trackbar;
            }
            else
            {
                trackbar = (PropInPlaceTrackbar)mInPlaceCtrl;
            }

            NotifyInPlaceControlCreated(propEnum);

            trackbar.OwnerPropertyEnumerator = propEnum;

            trackbar.Font = propEnum.Property.Value.Font;

            MoveControl(valueRect, propEnum);

            return(base.ShowControl(valueRect, propEnum));
        }