Exemplo n.º 1
0
        public override Control ShowControl(Rectangle valueRect, PropertyEnumerator propEnum)
        {
            PropInPlaceUnit unit;

            if (mInPlaceCtrl == null)
            {
                unit         = new PropInPlaceUnit();
                unit.Visible = false;
                unit.Parent  = mParentWnd;
                mInPlaceCtrl = unit;
            }
            else
            {
                unit = (PropInPlaceUnit)mInPlaceCtrl;
            }

            NotifyInPlaceControlCreated(propEnum);

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

            MoveControl(valueRect, propEnum);

            return(base.ShowControl(valueRect, propEnum));
        }
Exemplo n.º 2
0
        public override Control ShowControl(Rectangle valueRect, PropertyEnumerator propEnum)
        {
            PropInPlaceUnit unit;

            if (mInPlaceCtrl == null)
            {
                unit = new PropInPlaceUnit();
                unit.Visible = false;
                unit.Parent = mParentWnd;
                mInPlaceCtrl = unit;
            }
            else
                unit = (PropInPlaceUnit)mInPlaceCtrl;

            NotifyInPlaceControlCreated(propEnum);

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

            MoveControl(valueRect, propEnum);

            return base.ShowControl(valueRect, propEnum);
        }