Esempio n. 1
0
        public override Control ShowControl(Rectangle valueRect, PropertyEnumerator propEnum)
        {
            PropInPlaceRadioButton radioButton;

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

            NotifyInPlaceControlCreated(propEnum);

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

            MoveControl(valueRect, propEnum);

            return(base.ShowControl(valueRect, propEnum));
        }
        public override Control ShowControl(Rectangle valueRect, PropertyEnumerator propEnum)
        {
            PropInPlaceRadioButton radioButton;

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

            NotifyInPlaceControlCreated(propEnum);

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

            MoveControl(valueRect, propEnum);

            return base.ShowControl(valueRect, propEnum);
        }