Example #1
0
 private void ToolStripDropDown1_Closed(Object sender, Forms.ToolStripDropDownClosedEventArgs e)
 {
     System.Text.StringBuilder messageBoxCS = new System.Text.StringBuilder();
     messageBoxCS.AppendFormat("{0} = {1}", "CloseReason", e.CloseReason);
     messageBoxCS.AppendLine();
     MessageBox.Show(messageBoxCS.ToString(), "Closed Event");
 }
Example #2
0
 private void menu_Closed(object sender, ToolStripDropDownClosedEventArgs e)
 {
     if (this.WindowState != FormWindowState.Minimized)
     {
         topmost.Enabled = true;
     }
 }
Example #3
0
 private void popup_Closed(object sender, ToolStripDropDownClosedEventArgs e)
 {
     if (!textBox.Visible)
     {
         borderLabel.Image = searchProviders.ProviderImage;
     }
     borderLabel.Text = searchProviders.ProviderName;
 }
 private void mnuContext_Closed(object sender, ToolStripDropDownClosedEventArgs e)
 {
     mnuContext.Items.ClearAndDispose(
         mnuContext.Items.IndexOf(mnuContextCallees) + 1,
         mnuContext.Items.IndexOf(mnuContextCallers) - 1);
     mnuContext.Items.ClearAndDispose(
         mnuContext.Items.IndexOf(mnuContextCallers) + 1,
         mnuContext.Items.Count);
 }
Example #5
0
        /// <summary>
        /// Context menu has just closed.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void contextMenuMain_Closed(object sender, ToolStripDropDownClosedEventArgs e)
        {
            // Get the various modes we are in, and change them as necessary for the length of
            // time the menu is opened.

            if (fWasInSlideshowModeWhenMenuOpened)
            {
                fWasInSlideshowModeWhenMenuOpened = false;
                ourSlideshow.Start();
            }
        }
Example #6
0
 private void mnuApplication_Closed(object sender, ToolStripDropDownClosedEventArgs e)
 {
     ApplicationMenuHover = false;
     ApplicationMenuActive = false;
     lblApplicationMenu.ForeColor = Color.White;
     lblApplicationMenu.Invalidate();
 }
Example #7
0
 private void dropDownButtons_DropDown_Closed(object sender, ToolStripDropDownClosedEventArgs e) {
     DropDownMenuBase.ExitMenuMode();
 }
Example #8
0
 private void unavailableMenu_Closed(object sender, ToolStripDropDownClosedEventArgs e)
 {
     timetableControl1.ClearActive();
 }
Example #9
0
 private void _trayIconContextMenuStrip_Closed(object sender, ToolStripDropDownClosedEventArgs e)
 {
     // Restore the items back to the main menu when closing
     ToolStripItem[] items = new ToolStripItem[_trayIconContextMenuStrip.Items.Count];
     _trayIconContextMenuStrip.Items.CopyTo(items, 0);
     fileToolStripMenuItem.DropDownItems.AddRange(items);
     _trayIconContextMenuStrip.Items.Clear();
     _trayIconContextMenuStrip.Items.Add(new ToolStripSeparator());  // Dummy item so menu is shown the next time
     minimizeToTrayToolStripMenuItem.Checked = false;
     minimizeToTrayToolStripMenuItem.Font = new Font(minimizeToTrayToolStripMenuItem.Font, FontStyle.Regular);
 }
Example #10
0
 private void DropDown_Closed(object sender, ToolStripDropDownClosedEventArgs e) {
     OnDropDownClosed(EventArgs.Empty);
 }
Example #11
0
 void DiMenuStrip_Closed(object sender, ToolStripDropDownClosedEventArgs e)
 {
     EnableDPadMenu(false);
 }
Example #12
0
 private void u_toggleInputMethodDropDown_Closed(object sender, System.Windows.Forms.ToolStripDropDownClosedEventArgs e)
 {
     this.u_toggleInputMethod.ForeColor = Color.White;
     this.m_isInputMethodDropDownOpened = false;
 }
Example #13
0
 private void ctContextMenu_Closed(object sender, System.Windows.Forms.ToolStripDropDownClosedEventArgs e)
 {
     bShouldRemainVisible = false;
     bMouseIsOn           = false;
     tmAnimation.Start();
 }
Example #14
0
 private void ToolStripDropDown_Closed(object sender, System.Windows.Forms.ToolStripDropDownClosedEventArgs e)
 {
     _opened = false;
 }
 private void quickTextClosed(object sender, ToolStripDropDownClosedEventArgs e)
 {
     textbox.ImeMode = ImeMode.NoControl;
 }
Example #16
0
 void contextMenu_Closed(object sender, ToolStripDropDownClosedEventArgs e)
 {
     if (selectedToolStripMenuItem.Tag == null)
         gridContainer.ClearSelected();
 }
		private void contextMenu_Closed(object sender, ToolStripDropDownClosedEventArgs e)
		{
			this.ParentGrid.Focus();
		}
        private void contextMenuStrip1_Closed(object sender, ToolStripDropDownClosedEventArgs e)
        {
            //contextMenuShowing = false;
            //if (hasChanged)
            //{
            //    hasChanged = false;

            //    lvLastestUpdates.SetObjects(DataSource);
            //}
        }
Example #19
0
 protected override void OnClosed(ToolStripDropDownClosedEventArgs e)
 {
     fOnceKeyDown = false;
     ResetImageKeys();
     base.OnClosed(e);
 }
Example #20
0
 void contextMenuStrip_Closed(object sender, ToolStripDropDownClosedEventArgs e)
 {
     this._isFocus = false;
     base.Invalidate(this._btnArrowRect);
 }
		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// Handles the Closed event of the m_commentToolTip control.
		/// </summary>
		/// <param name="sender">The source of the event.</param>
		/// <param name="e">The <see cref="T:System.Windows.Forms.ToolStripDropDownClosedEventArgs"/>
		/// instance containing the event data.</param>
		/// ------------------------------------------------------------------------------------
		private void m_commentToolTip_Closed(object sender, ToolStripDropDownClosedEventArgs e)
		{
			m_toolTipCell = null;
		}
 void m_DropDown_Closed(object sender, ToolStripDropDownClosedEventArgs e)
 {
     //Set the focus back to us
     this.Focus();
     Invalidate();
 }
Example #23
0
 private void dropDown_Closed(object sender, ToolStripDropDownClosedEventArgs e)
 {
     dropDownHideTime = DateTime.Now;
 }
Example #24
0
    private void conStrip_Closed(object sender, ToolStripDropDownClosedEventArgs e)
    {
      try
      {
        var items = gridSelected.SelectedRows.OfType<DataGridViewRow>().Select(r => (ItemReference)r.DataBoundItem).ToList();

        if (items.Any())
        {
          var selectedLevelItem = mniLevels.DropDownItems.OfType<ToolStripMenuItem>().Where(m => m.Checked).FirstOrDefault();
          if (selectedLevelItem != null)
          {
            var level = mniLevels.DropDownItems.IndexOf(selectedLevelItem);
            foreach (var item in items) item.Levels = level;
          }

          var sysProps = (mniHistory.Checked ? SystemPropertyGroup.History : 0)
            | (mniPermissions.Checked ? SystemPropertyGroup.Permission : 0)
            | (mniState.Checked ? SystemPropertyGroup.State : 0)
            | (mniVersion.Checked ? SystemPropertyGroup.Versioning : 0);

          foreach (var item in items) item.SystemProps = sysProps;
        }
      }
      catch (Exception ex)
      {
        Utils.HandleError(ex);
      }
    }
Example #25
0
		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// Handles the Closed event of the m_dropDown control.
		/// </summary>
		/// <param name="sender">The source of the event.</param>
		/// <param name="e">The <see cref="T:System.Windows.Forms.ToolStripDropDownClosedEventArgs"/>
		/// instance containing the event data.</param>
		/// ------------------------------------------------------------------------------------
		private void dropDown_Closed(object sender, ToolStripDropDownClosedEventArgs e)
		{
			// we have to set a variable so that we know that user clicked on drop down button
			// or in text box to close the drop down.
			m_fDropDownClickedClose = ClientRectangle.Contains(PointToClient(MousePosition));
			m_dropDown = null;
		}
Example #26
0
 private void anyStrip_Closed(object sender, ToolStripDropDownClosedEventArgs e)
 {
     ((ContextMenuStrip)sender).Text = "Hidden";
     //Debug.Write(((ContextMenuStrip)sender).Name);
 }
Example #27
0
 private void ux_contextmenustripDGVCell_Closed(object sender, ToolStripDropDownClosedEventArgs e)
 {
     RefreshMainDGVFormatting();
 }
            private void m_dropDown_Closed(object sender, ToolStripDropDownClosedEventArgs e)
            {
                if (AutoResetWhenClosed)
                    DisposeHost();

                // Hide drop down within popup control.
                if (PopupControlHost != null)
                    PopupControlHost.HideDropDown();
            }
Example #29
0
		void m_taggingContextMenu_Closed(object sender, ToolStripDropDownClosedEventArgs e)
		{
			m_ticksWhenContextMenuClosed = DateTime.Now.Ticks;
		}
Example #30
0
 private void mnuDebug_Closed(object sender, ToolStripDropDownClosedEventArgs e)
 {
     DebugMenuHover = false;
     DebugMenuActive = false;
     lblDebugMenu.ForeColor = Color.White;
     lblDebugMenu.Invalidate();
 }
 void ContextMenuForDir_Closed(object sender, System.Windows.Forms.ToolStripDropDownClosedEventArgs e)
 {
 }
Example #32
0
        private void ListSelect_Close(object sender, ToolStripDropDownClosedEventArgs e)
        {
            int A = 0;

            for ( A = 0; A <= ListSelectItems.GetUpperBound(0); A++ )
            {
                ListSelectItems[A].Tag = null;
                ListSelectItems[A].Dispose();
            }
            ListSelect.Items.Clear();
            ListSelectItems = new ToolStripItem[0];

            App.ViewKeyDown_Clear();
        }
Example #33
0
 private void ctx_gesturesMenu_Closed(object sender, ToolStripDropDownClosedEventArgs e)
 {
     pic_menuBtn.Image = Properties.Resources.menuBtn;
 }
Example #34
0
		//-------------------------------------------------------------------------------------
		private void contextMenuStripFind_Closed(object sender, ToolStripDropDownClosedEventArgs e)
		{
			if(e.CloseReason == ToolStripDropDownCloseReason.ItemClicked)
				BeginFind();
		}
Example #35
0
 private void contextMenuStrip1_Closed(object sender, ToolStripDropDownClosedEventArgs e)
 {
     removeToolStripMenuItem.DropDownItems.Clear();
 }