示例#1
0
        public override void Initialize()
        {
            base.Initialize();

            m_Popup           = new NPopup();
            m_Popup.Owner     = m_MainForm;
            m_Popup.Size      = new NSize(250, 220);
            m_Popup.SizeStyle = PopupSizeStyle.BottomRight;
            m_Popup.Padding   = new NPadding(4);

            propertyGrid.SelectedObject = m_Popup;
        }
        internal void InitFromDropDown()
        {
            NPopup p = m_DropDownControl.Popup;

            directionCombo.SelectedItem = m_DropDownControl.DropDownDirection;
            sizeStyleCombo.SelectedItem = p.SizeStyle;
            halignCombo.SelectedItem    = p.PlacementInfo.HAlign;
            valignCombo.SelectedItem    = p.PlacementInfo.VAlign;

            useDefPlacementCheck.Checked = m_DropDownControl.UseDefaultPopupPlacement;
            fadeInCheck.Checked          = p.AnimationInfo.FadeIn;
            fadeOutCheck.Checked         = p.AnimationInfo.FadeOut;
        }