docstr: Handle anchor clicks manually
  
  The HTML window (on Windows at least) jams the anchor to the
  top of the window which obscures it.
docstr_tok: ["Handle","anchor","clicks","manually","The","HTML","window","(","on","Windows","at","least",")","jams","the","anchor","to","the","top","of","the","window","which","obscures","it","."]
code: def __on_link_clicked(self, event, html_window):
      """Handle anchor clicks manually
  
      The HTML window (on Windows at least) jams the anchor to the
      top of the window which obscures it.
      """
      linkinfo = event.GetLinkInfo()
  
      if linkinfo.GetHref()[0] != "#":
          event.Skip()
  
          return
  
      html_window.ScrollToAnchor(linkinfo.GetHref()[1:])
  
      html_window.ScrollLines(-1)
  
imports: import os
  import re
  import wx
  import wx.html
  from cellprofiler_core.preferences import get_plugin_directory
  from cellprofiler_core.utilities.core.modules import instantiate_module, get_module_names
  import cellprofiler.gui
  import cellprofiler.gui.help.content
  import cellprofiler.gui.html.utils
  import cellprofiler.gui.utilities.icon
  import cellprofiler.modules
label_desc: Use image node_id 5 for calling the Search obj's underlying member method code with example usage: obj.__on_link_clicked(event, html_window) without return types