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

            PropInPlaceButton button;

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

            NotifyInPlaceControlCreated(propEnum);

//            button.Text = propEnum.Property.Value.DisplayString;

            button.OwnerPropertyEnumerator = propEnum;

            button.Font = propEnum.Property.Value.Font;

            MoveControl(valueRect, propEnum);

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

            PropInPlaceButton button;

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

            NotifyInPlaceControlCreated(propEnum);

//            button.Text = propEnum.Property.Value.DisplayString;

            button.OwnerPropertyEnumerator = propEnum;

            button.Font = propEnum.Property.Value.Font;

            MoveControl(valueRect, propEnum);

            return base.ShowControl(valueRect, propEnum);
        }