Ejemplo n.º 1
0
        protected override void OnHelpRequested(HelpEventArgs hevent)
        {
            // Get the active control
            Control activeControl = HelpUtils.GetActiveControl(this);

            // Figure out the context
            DataConnectionDialogContext context = DataConnectionDialogContext.AddProperty;
            if (activeControl == propertyTextBox)
            {
                context = DataConnectionDialogContext.AddPropertyTextBox;
            }
            if (activeControl == okButton)
            {
                context = DataConnectionDialogContext.AddPropertyOkButton;
            }
            if (activeControl == cancelButton)
            {
                context = DataConnectionDialogContext.AddPropertyCancelButton;
            }

            // Call OnContextHelpRequested
            ContextHelpEventArgs e = new ContextHelpEventArgs(context, hevent.MousePos);
            _mainDialog.OnContextHelpRequested(e);
            hevent.Handled = e.Handled;
            if (!e.Handled)
            {
                base.OnHelpRequested(hevent);
            }
        }
Ejemplo n.º 2
0
 private void ControlHelpRequested(object sender, HelpEventArgs helpEvent)
 {
     if (!SupressHelpRequests && !string.IsNullOrEmpty(Url))
     {
         helpEvent.Handled = true;
         OpenUrl();
     }
 }
Ejemplo n.º 3
0
 public void Catch_HelpRequested(object sender, HelpEventArgs hlpevent)
 {
     string message;
     if (_listeMessage.TryGetValue(sender, out message))
     {
         helpToolTip.Show(message, sender as IWin32Window);
     }
 }
Ejemplo n.º 4
0
 private void CurrentControl_HelpRequested(object sender, System.Windows.Forms.HelpEventArgs e)
 {
     if (System.Windows.Forms.Control.MouseButtons == System.Windows.Forms.MouseButtons.Left)
     {
         Provider.ShowTip(CurrentControl, Skybound.VisualTips.VisualTipDisplayOptions.HideOnMouseLeave | Skybound.VisualTips.VisualTipDisplayOptions.HideOnLostFocus);
     }
     e.Handled = true;
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Dit is de eventhandler voor het functioneren van de tooltips.
 /// </summary>
 /// <param name="sender">Het UI element waarover help wordt opgevraagt.</param>
 /// <param name="hlpevent"></param>
 public void View_HelpRequested(object sender, HelpEventArgs hlpevent)
 {
     Control requestingControl = (Control)sender;
     this.tooltip.ToolTipIcon = ToolTipIcon.Info;
     this.tooltip.ToolTipTitle = requestingControl.Text;
     this.tooltip.UseAnimation = true;
     this.tooltip.Show(requestingControl.Tag.ToString(), requestingControl, 5000);
     hlpevent.Handled = true;
 }
Ejemplo n.º 6
0
    private void textBox_HelpRequested(object sender, System.Windows.Forms.HelpEventArgs hlpevent)
    {
        // This event is raised when the F1 key is pressed or the
        // Help cursor is clicked on any of the address fields.
        // The Help text for the field is in the control's
        // Tag property. It is retrieved and displayed in the label.

        Control requestingControl = (Control)sender;

        helpLabel.Text   = (string)requestingControl.Tag;
        hlpevent.Handled = true;
    }
        protected override void OnHelpRequested(HelpEventArgs hevent)
        {
            // Get the active control
            Control activeControl = this;
            ContainerControl containerControl = null;
            while ((containerControl = activeControl as ContainerControl) != null &&
                containerControl != propertyGrid &&
                containerControl.ActiveControl != null)
            {
                activeControl = containerControl.ActiveControl;
            }

            // Figure out the context
            DataConnectionDialogContext context = DataConnectionDialogContext.Advanced;
            if (activeControl == propertyGrid)
            {
                context = DataConnectionDialogContext.AdvancedPropertyGrid;
            }
            if (activeControl == textBox)
            {
                context = DataConnectionDialogContext.AdvancedTextBox;
            }
            if (activeControl == okButton)
            {
                context = DataConnectionDialogContext.AdvancedOkButton;
            }
            if (activeControl == cancelButton)
            {
                context = DataConnectionDialogContext.AdvancedCancelButton;
            }

            // Call OnContextHelpRequested
            ContextHelpEventArgs e = new ContextHelpEventArgs(context, hevent.MousePos);
            _mainDialog.OnContextHelpRequested(e);
            hevent.Handled = e.Handled;
            if (!e.Handled)
            {
                base.OnHelpRequested(hevent);
            }
        }
 private void OnControlHelp(object sender, HelpEventArgs hevent)
 {
     Control ctl = (Control) sender;
     string helpString = this.GetHelpString(ctl);
     string helpKeyword = this.GetHelpKeyword(ctl);
     HelpNavigator helpNavigator = this.GetHelpNavigator(ctl);
     if (this.GetShowHelp(ctl))
     {
         if (((Control.MouseButtons != MouseButtons.None) && (helpString != null)) && (helpString.Length > 0))
         {
             Help.ShowPopup(ctl, helpString, hevent.MousePos);
             hevent.Handled = true;
         }
         if (!hevent.Handled && (this.helpNamespace != null))
         {
             if ((helpKeyword != null) && (helpKeyword.Length > 0))
             {
                 Help.ShowHelp(ctl, this.helpNamespace, helpNavigator, helpKeyword);
                 hevent.Handled = true;
             }
             if (!hevent.Handled)
             {
                 Help.ShowHelp(ctl, this.helpNamespace, helpNavigator);
                 hevent.Handled = true;
             }
         }
         if ((!hevent.Handled && (helpString != null)) && (helpString.Length > 0))
         {
             Help.ShowPopup(ctl, helpString, hevent.MousePos);
             hevent.Handled = true;
         }
         if (!hevent.Handled && (this.helpNamespace != null))
         {
             Help.ShowHelp(ctl, this.helpNamespace);
             hevent.Handled = true;
         }
     }
 }
Ejemplo n.º 9
0
        private void GetPassword_HelpRequested(object sender, HelpEventArgs hlpevent)
        {
            //Translate the screen coordinates to client coordinates..........
            Point p = this.PointToClient(hlpevent.MousePos);
            Control b = FindControl(this, p);
            if (b != null)
            {
                if (b == tbOldPassword || b == label1)
                {
                    ttHelp.Show("previously set password for sealth mode ", b,5000);
                }
                else if (b == tbPassword || b == label2)
                {
                    ttHelp.Show("Enter new password for sealth mode ", b,5000);
                }
                else if (b == tbConfirmPassowrd || b == label3)
                {
                    ttHelp.Show("Confirm newly entered password by reentering here", b,5000);
                }
            }

            hlpevent.Handled = true;
        }
Ejemplo n.º 10
0
        private void Form1_HelpRequested(System.Object sender, System.Windows.Forms.HelpEventArgs hlpevent)
        {
            // Create a custom Help window in response to the HelpRequested event.
            Form helpForm = new Form();

            // Set up the form position, size, and title caption.
            helpForm.StartPosition   = FormStartPosition.Manual;
            helpForm.Size            = new Size(200, 400);
            helpForm.DesktopLocation = new Point(this.DesktopBounds.X +
                                                 this.Size.Width,
                                                 this.DesktopBounds.Top);
            helpForm.Text = "Help Form";

            // Create a label to contain the Help text.
            Label helpLabel = new Label();

            // Add the label to the form and set its text.
            helpForm.Controls.Add(helpLabel);
            helpLabel.Dock = DockStyle.Fill;

            // Use the sender parameter to identify the context of the Help request.
            // The parameter must be cast to the Control type to get the Tag property.
            Control senderControl = sender as Control;

            helpLabel.Text = "Help information shown in response to user action on the '" +
                             (string)senderControl.Tag + "' message.";

            // Set the Help form to be owned by the main form. This helps
            // to ensure that the Help form is disposed of.
            this.AddOwnedForm(helpForm);

            // Show the custom Help window.
            helpForm.Show();

            // Indicate that the HelpRequested event is handled.
            hlpevent.Handled = true;
        }
Ejemplo n.º 11
0
 private void HistoryWindow_HelpRequested(object sender, HelpEventArgs hlpevent)
 {
     Help.HelpManager.Launch("LogWindow");
     hlpevent.Handled = true;
 }
 protected override void OnHelpRequested(HelpEventArgs e)
 {
     e.Handled = true;
     this.GetHelp();
 }
Ejemplo n.º 13
0
		// can't override the function in control. bug in compiler. Fixed?
		protected override void OnHelpRequested(HelpEventArgs e){
		}
Ejemplo n.º 14
0
 private void undockedForm_HelpRequested(object sender, HelpEventArgs hlpevent)
 {
     Help.HelpManager.Launch("TabPageConsole");
     hlpevent.Handled = true;
 }
 private void Form_HelpRequested(object sender, HelpEventArgs e)
 {
     this.editor.ShowHelp();
 }
Ejemplo n.º 16
0
        private void frmCountByDocument_HelpRequested(object sender, System.Windows.Forms.HelpEventArgs hlpevent)
        {
            ShowHelp myHelp = new ShowHelp();

            myHelp.MakeHelp("countbydoc");
        }
Ejemplo n.º 17
0
 /// <summary>
 /// Handles the help event by displaying the property pages help from WiX.chm.
 /// </summary>
 /// <param name="sender">The control sending the event.</param>
 /// <param name="hlpevent">Event parameters.</param>
 private void PropertyPagePanel_HelpRequested(object sender, HelpEventArgs hlpevent)
 {
     WixHelperMethods.ShowWixHelp(this.PropertyPagePanel, @"html\votive_property_pages.htm");
 }
Ejemplo n.º 18
0
 private void Form1_HelpRequested(object sender, System.Windows.Forms.HelpEventArgs hlpevent)
 {
     MessageBox.Show(this, Application.ProductName + " " + Application.ProductVersion + "\r\n\r\n©2006 Joel McBeth. All rights reserved.", "About", MessageBoxButtons.OK, MessageBoxIcon.Information);
     hlpevent.Handled = true;
 }
 private void DeleteCourseDialog_HelpRequested(object sender, System.Windows.Forms.HelpEventArgs hlpevent)
 {
     Microsoft.VisualStudio.VSHelp.Help help = (Microsoft.VisualStudio.VSHelp.Help)m_applicationObject.GetObject("Help");
     help.DisplayTopicFromF1Keyword("vs.AMDeleteCourse");
 }
Ejemplo n.º 20
0
 private void ControlHelpRequested(object sender, System.Windows.Forms.HelpEventArgs args)
 {
     args.Handled |= FindAndInvokeHelp((WinForms.Control)sender);
 }
Ejemplo n.º 21
0
        private void frmLogon_HelpRequested(object sender, System.Windows.Forms.HelpEventArgs hlpevent)
        {
            ShowHelp myHelp = new ShowHelp();

            myHelp.MakeHelp("login");
        }
Ejemplo n.º 22
0
 private void WizardFrom_HelpRequested(object sender, System.Windows.Forms.HelpEventArgs hlpevent)
 {
     ShowActivePaneHelp();
 }
Ejemplo n.º 23
0
 // Process a help request on the form.
 protected override void OnHelpRequested(HelpEventArgs e)
 {
     base.OnHelpRequested(e);
     dialog.EmitHelpRequest(e);
 }
Ejemplo n.º 24
0
        /// <include file='doc\HelpProvider.uex' path='docs/doc[@for="HelpProvider.OnControlHelp"]/*' />
        /// <devdoc>
        ///     Handles the help event for any bound controls.
        /// </devdoc>
        /// <internalonly/>
        private void OnControlHelp(object sender, HelpEventArgs hevent)
        {
            Control       ctl        = (Control)sender;
            string        helpString = GetHelpString(ctl);
            string        keyword    = GetHelpKeyword(ctl);
            HelpNavigator navigator  = GetHelpNavigator(ctl);
            bool          show       = GetShowHelp(ctl);

            if (!show)
            {
                return;
            }

            // If the mouse was down, we first try whats this help
            //
            if (Control.MouseButtons != MouseButtons.None && helpString != null)
            {
                Debug.WriteLineIf(Help.WindowsFormsHelpTrace.TraceVerbose, "HelpProvider:: Mouse down w/ helpstring");

                if (helpString.Length > 0)
                {
                    Help.ShowPopup(ctl, helpString, hevent.MousePos);
                    hevent.Handled = true;
                }
            }

            // If we have a help file, and help keyword we try F1 help next
            //
            if (!hevent.Handled && helpNamespace != null)
            {
                Debug.WriteLineIf(Help.WindowsFormsHelpTrace.TraceVerbose, "HelpProvider:: F1 help");
                if (keyword != null)
                {
                    if (keyword.Length > 0)
                    {
                        Help.ShowHelp(ctl, helpNamespace, navigator, keyword);
                        hevent.Handled = true;
                    }
                }

                if (!hevent.Handled)
                {
                    Help.ShowHelp(ctl, helpNamespace, navigator);
                    hevent.Handled = true;
                }
            }

            // So at this point we don't have a help keyword, so try to display
            // the whats this help
            //
            if (!hevent.Handled && helpString != null)
            {
                Debug.WriteLineIf(Help.WindowsFormsHelpTrace.TraceVerbose, "HelpProvider:: back to helpstring");

                if (helpString.Length > 0)
                {
                    Help.ShowPopup(ctl, helpString, hevent.MousePos);
                    hevent.Handled = true;
                }
            }

            // As a last resort, just popup the contents page of the help file...
            //
            if (!hevent.Handled && helpNamespace != null)
            {
                Debug.WriteLineIf(Help.WindowsFormsHelpTrace.TraceVerbose, "HelpProvider:: contents");

                Help.ShowHelp(ctl, helpNamespace);
                hevent.Handled = true;
            }
        }
Ejemplo n.º 25
0
 private void CreateSessionForm_HelpRequested(object sender, System.Windows.Forms.HelpEventArgs hlpevent)
 {
 }
Ejemplo n.º 26
0
        private void frmSupplierSearch_HelpRequested(object sender, System.Windows.Forms.HelpEventArgs hlpevent)
        {
            ShowHelp myHelp = new ShowHelp();

            myHelp.MakeHelp("supsearch");
        }
Ejemplo n.º 27
0
		// Process a help request on the form.
		protected override void OnHelpRequested(HelpEventArgs e)
				{
					base.OnHelpRequested(e);
					dialog.EmitHelpRequest(e);
				}
Ejemplo n.º 28
0
 private void MainForm_HelpRequested(object sender, System.Windows.Forms.HelpEventArgs hlpevent)
 {
     Help.ShowHelp(this, "ToolsHelp.chm", HelpNavigator.KeywordIndex, "Device Relay");
 }
Ejemplo n.º 29
0
 /// <summary>
 /// Displays help, if available.
 /// </summary>
 /// <param name="sender">Event sender.</param>
 /// <param name="hlpevent">Event arguments.</param>
 public void PropertyHelpRequested( object sender, HelpEventArgs hlpevent )
 {
     SetHelpTooltip( (Control) sender, this.Annotation );
 }
Ejemplo n.º 30
0
 private void OnHelpRequested(object sender, HelpEventArgs e)
 {
     OnClickHelpButton(null, null);
 }
        /// <summary>
        /// Extends BeginInvoke so that when a state object is not needed, null does not need to be passed.
        /// <example>
        /// helpeventhandler.BeginInvoke(sender, hlpevent, callback);
        /// </example>
        /// </summary>
        public static IAsyncResult BeginInvoke(this HelpEventHandler helpeventhandler, Object sender, HelpEventArgs hlpevent, AsyncCallback callback)
        {
            if(helpeventhandler == null) throw new ArgumentNullException("helpeventhandler");

            return helpeventhandler.BeginInvoke(sender, hlpevent, callback, null);
        }
Ejemplo n.º 32
0
 /// <summary>
 /// HelpRequested event handler of the mapPropertyEditor control.
 /// </summary>
 /// <param name="sender">The source object of this event.</param>
 /// <param name="hlpevent">The parameters of the help event.</param>
 void mapPropertyEditor_HelpRequested(object sender, HelpEventArgs hlpevent)
 {
     if (this.HelpRequested != null)
         this.HelpRequested(sender, hlpevent);
 }
 protected override void OnHelpRequested(HelpEventArgs hlpevent)
 {
     ProtectDialogHelpHelper.ShowHelpByTopicId(this, ProtectDialogHelpHelper.TopicId.PesMobileClient);
 }
Ejemplo n.º 34
0
//        private void mnuiDebugOn_Click(object sender, EventArgs e)
//        {
//            logger mylog = new logger();
//            mylog.makelog("Debug Toggle");

//            if (this.mnuiDebugOn.Text == "Debug On")
//            {
//                if (frmStart.debug == false)
//                {
//                    frmStart.debug = true;
//                    this.mnuiDebugOn.Text = "Debug Off";
//                    mylog.makelog("Debug On");
//                }
//            }
//            else
//            {
//                //debug off

//                if (frmStart.debug == true)
//                {
//                    frmStart.debug = false;
//                    this.mnuiDebugOn.Text = "Debug On";
//                    mylog.makelog("Debug Off");
//                }
//            }

//        }

        #endregion

        #region Help Links
        private void frmStockCountStart_HelpRequested(object sender, System.Windows.Forms.HelpEventArgs hlpevent)
        {
            ShowHelp myHelp = new ShowHelp();

            myHelp.MakeHelp("stockcount");
        }
Ejemplo n.º 35
0
        /// <include file='doc\HelpProvider.uex' path='docs/doc[@for="HelpProvider.OnControlHelp"]/*' />
        /// <devdoc>
        ///     Handles the help event for any bound controls.
        /// </devdoc>
        /// <internalonly/>
        private void OnControlHelp(object sender, HelpEventArgs hevent) {
            Control ctl = (Control)sender;
            string helpString = GetHelpString(ctl);
            string keyword = GetHelpKeyword(ctl);
            HelpNavigator navigator = GetHelpNavigator(ctl);
            bool show = GetShowHelp(ctl);

            if (!show) {
                return;
            }

            // If the mouse was down, we first try whats this help
            //
            if (Control.MouseButtons != MouseButtons.None && helpString != null) {
                Debug.WriteLineIf(Help.WindowsFormsHelpTrace.TraceVerbose, "HelpProvider:: Mouse down w/ helpstring");

                if (helpString.Length > 0) {
                    Help.ShowPopup(ctl, helpString, hevent.MousePos);
                    hevent.Handled = true;
                }
            }

            // If we have a help file, and help keyword we try F1 help next
            //
            if (!hevent.Handled && helpNamespace != null) {
                Debug.WriteLineIf(Help.WindowsFormsHelpTrace.TraceVerbose, "HelpProvider:: F1 help");
                if (keyword != null) {
                    if (keyword.Length > 0) {
                        Help.ShowHelp(ctl, helpNamespace, navigator, keyword);
                        hevent.Handled = true;
                    }
                }

                if (!hevent.Handled) {
                    Help.ShowHelp(ctl, helpNamespace, navigator);
                    hevent.Handled = true;
                }
            }

            // So at this point we don't have a help keyword, so try to display
            // the whats this help
            //
            if (!hevent.Handled && helpString != null) {
                Debug.WriteLineIf(Help.WindowsFormsHelpTrace.TraceVerbose, "HelpProvider:: back to helpstring");

                if (helpString.Length > 0) {
                    Help.ShowPopup(ctl, helpString, hevent.MousePos);
                    hevent.Handled = true;
                }
            }

            // As a last resort, just popup the contents page of the help file...
            //
            if (!hevent.Handled && helpNamespace != null) {
                Debug.WriteLineIf(Help.WindowsFormsHelpTrace.TraceVerbose, "HelpProvider:: contents");

                Help.ShowHelp(ctl, helpNamespace);
                hevent.Handled = true;
            }
        }
Ejemplo n.º 36
0
 private void tbPtoVta_HelpRequested(object sender, HelpEventArgs hlpevent)
 {
     formAyuda fa = CrearAyudaSucursales();
     if (fa.ShowDialog() == System.Windows.Forms.DialogResult.OK)
     {
         tbPtoVta.Text = ((sucursales)fa.ElementoDevuelto).id.ToString();
     }
 }
Ejemplo n.º 37
0
 private void Config_HelpRequested(object sender, HelpEventArgs hlpevent)
 {
   IrssHelp.Open(sender);
 }
Ejemplo n.º 38
0
 protected sealed override void OnHelpRequested(HelpEventArgs hevent)
 {
     ShowHelp();
     hevent.Handled = true;
 }
Ejemplo n.º 39
0
        /// <summary>
        /// Defines the event delegate when help is requested.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="hlpevent"></param>
        private void OnHelpRequested(object sender, HelpEventArgs hlpevent)
        {
            if (String.IsNullOrEmpty(this.helpTopic))
            {
                return;
            }

            this.ShowHelp();
            hlpevent.Handled = true;
        }
 private void DataGridViewColumnCollectionDialog_HelpRequested(object sender, HelpEventArgs e)
 {
     this.DataGridViewColumnCollectionDialog_HelpRequestHandled();
     e.Handled = true;
 }
        private void btnGetOffsetFromEditor_HelpRequested(object sender, HelpEventArgs hlpevent)
        {
            ToolBarHelpDLG HelpInfo = new ToolBarHelpDLG();

              string fileName = AssemblyDirectory + "/Help/GetOffsetFromEditor.htm";
              HelpInfo.webBrowser1.Url = new Uri(fileName);
              HelpInfo.Location = btnGetOffsetFromEditor.Location;
              HelpInfo.Owner = this;
              HelpInfo.Show();

              hlpevent.Handled = true;
        }
Ejemplo n.º 42
0
 private void Form1_HelpRequested(object sender, HelpEventArgs hlpevent)
 {
     button1_Click(sender, hlpevent);
 }
Ejemplo n.º 43
0
 private void XenDialogBase_HelpRequested(object sender, HelpEventArgs hlpevent)
 {
     Help.HelpManager.Launch(HelpName);
     hlpevent.Handled = true;
 }
Ejemplo n.º 44
0
		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// Handle the F1 help request. We treat it as the user pressing the help button (i.e.
		/// us).
		/// </summary>
		/// <param name="sender">The sender.</param>
		/// <param name="hlpevent">The <see cref="T:System.Windows.Forms.HelpEventArgs"/>
		/// instance containing the event data.</param>
		/// ------------------------------------------------------------------------------------
		private void OnParentHelpRequested(object sender, HelpEventArgs hlpevent)
		{
			hlpevent.Handled = true;
			OnClick(EventArgs.Empty);
		}
Ejemplo n.º 45
0
 private void XenWizardBase_HelpRequested(object sender, HelpEventArgs hlpevent)
 {
     Help.HelpManager.Launch(WizardPaneHelpID());
 }
Ejemplo n.º 46
0
 private void OnHelpRequested(object sender, System.Windows.Forms.HelpEventArgs hlpevent)
 {
     messageBoxDisplayService.Show($"Help for {sender.ToString()}");
 }