Exemple #1
0
        public override Control ShowControl(Rectangle valueRect, PropertyEnumerator propEnum)
        {
            if (DontShowInPlaceCtrl(propEnum))
            {
                return(null);
            }

            PropInPlaceList list;

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

            NotifyInPlaceControlCreated(propEnum);

//            list.Text = propEnum.Property.Value.DisplayString;
            list.OwnerPropertyEnumerator = propEnum;
            list.Font = propEnum.Property.Value.Font;

            MoveControl(valueRect, propEnum);

            return(base.ShowControl(valueRect, propEnum));
        }
        public override Control ShowControl(Rectangle valueRect, PropertyEnumerator propEnum)
        {
            if (DontShowInPlaceCtrl(propEnum))
                return null;

            PropInPlaceList list;

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

            NotifyInPlaceControlCreated(propEnum);

//            list.Text = propEnum.Property.Value.DisplayString;
            list.OwnerPropertyEnumerator = propEnum;
            list.Font = propEnum.Property.Value.Font;

            MoveControl(valueRect, propEnum);

            return base.ShowControl(valueRect, propEnum);
        }