Exemplo n.º 1
0
        protected virtual void ShowMenu()
        {
            if (this.Parent == null)
            {
                throw new Exception("You cannot show the menu on a Menu unless it has a parent (has been added to a GuiWidget).");
            }

            DropDownContainer         = new OpenMenuContents(MenuItems, this, OpenOffset, MenuDirection, MenuItemsBackgroundColor, MenuItemsBorderColor, MenuItemsBorderWidth, maxHeight, AlignToRightEdge);
            DropDownContainer.Closed += DropListItems_Closed;
            DropDownContainer.Focus();
        }
Exemplo n.º 2
0
        private void ShowMenu()
        {
            if (this.Parent == null)
            {
                throw new Exception("You cannot show the menu on a Menu unless it has a parent (has been added to a GuiWidegt).");
            }

            OpenMenuContents dropListItems = new OpenMenuContents(MenuItems, this, OpenOffset, menuDirection, MenuItemsBackgroundColor, MenuItemsBorderColor, MenuItemsBorderWidth, maxHeight, AlignToRightEdge);

            dropListItems.Closed += new EventHandler(DropListItems_Closed);

            dropListItems.Focus();
        }
Exemplo n.º 3
0
		protected virtual void ShowMenu()
		{
			if (this.Parent == null)
			{
				throw new Exception("You cannot show the menu on a Menu unless it has a parent (has been added to a GuiWidegt).");
			}

			DropDownContainer = new OpenMenuContents(MenuItems, this, OpenOffset, MenuDirection, MenuItemsBackgroundColor, MenuItemsBorderColor, MenuItemsBorderWidth, maxHeight, AlignToRightEdge);
			DropDownContainer.Closed += new EventHandler(DropListItems_Closed);
			DropDownContainer.Focus();
		}
Exemplo n.º 4
0
        void ShowMenu(object state)
        {
            if (this.Parent == null)
            {
                throw new Exception("You cannot show the menu on a Menu unless it has a parent (has been added to a GuiWidegt).");
            }

            OpenMenuContents dropListItems = new OpenMenuContents(MenuItems, this, OpenOffset, menuDirection, MenuItemsBackgroundColor, MenuItemsBorderColor, MenuItemsBorderWidth, maxHeight, AlignToRightEdge);
            dropListItems.Closed += new EventHandler(dropListItems_Closed);

            dropListItems.Focus();
        }