Esempio n. 1
0
        private void ShowPopUp()
        {
            Point pt = new Point(this.Left, this.Bottom + 1);

            m_WComboPopUp                   = new WComboPopUp(this, m_ViewStyle, m_WComboItems.ToArray(), m_VisibleItems, this.Text, m_DropDownWidth);
            m_WComboPopUp.Location          = this.Parent.PointToScreen(pt);
            m_WComboPopUp.SelectionChanged += new SelectionChangedHandler(this.OnPopUp_SelectionChanged);
            m_WComboPopUp.Closed           += new System.EventHandler(this.OnPopUp_Closed);

            User32.ShowWindow(m_WComboPopUp.Handle, 4);

            m_WComboPopUp.m_Start = true;
            m_DroppedDown         = true;
        }
Esempio n. 2
0
        protected override void WndProc(ref Message m)
        {
            if (m.Msg == (int)Msgs.WM_LBUTTONUP)
            {
                WComboPopUp frm = (WComboPopUp)this.FindForm();
                frm.RaiseSelectionChanged();
                frm.Close();
                return;
            }

            if (m.Msg == (int)Msgs.WM_LBUTTONDOWN)
            {
                return;
            }

            if (m.Msg == (int)Msgs.WM_MBUTTONDOWN)
            {
                return;
            }


            base.WndProc(ref m);
        }
Esempio n. 3
0
		private void ShowPopUp()
		{
			Point pt = new Point(this.Left,this.Bottom + 1);
			m_WComboPopUp = new WComboPopUp(this,m_ViewStyle,m_WComboItems.ToArray(),m_VisibleItems,this.Text,m_DropDownWidth);
			m_WComboPopUp.Location = this.Parent.PointToScreen(pt);
			m_WComboPopUp.SelectionChanged += new SelectionChangedHandler(this.OnPopUp_SelectionChanged);
			m_WComboPopUp.Closed += new System.EventHandler(this.OnPopUp_Closed);
	
			User32.ShowWindow(m_WComboPopUp.Handle,4);

			m_WComboPopUp.m_Start = true;
			m_DroppedDown = true;
		}