예제 #1
0
        public override Control ShowControl(Rectangle valueRect, PropertyEnumerator propEnum)
        {
            PropInPlaceFontButton button;

            if (mInPlaceCtrl == null)
            {
                button         = new PropInPlaceFontButton();
                button.Visible = false;
                button.Parent  = mParentWnd;
                mInPlaceCtrl   = button;
            }
            else
            {
                button = (PropInPlaceFontButton)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));
        }
예제 #2
0
        public override Control ShowControl(Rectangle valueRect, PropertyEnumerator propEnum)
        {
            PropInPlaceFontButton button;

            if (mInPlaceCtrl == null)
            {
                button = new PropInPlaceFontButton();
                button.Visible = false;
                button.Parent = mParentWnd;
                mInPlaceCtrl = button;
            }
            else
                button = (PropInPlaceFontButton)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);
        }