Displaying the position of cursor.

42 views
Skip to first unread message

satstnka

unread,
Apr 7, 2014, 12:55:13 AM4/7/14
to masspl...@googlegroups.com
 The position of mouse cursor is displayed in the status bar
but the current Mass++ has the problem that it's hidden if the width of
Mass++ window is less than 1600 px.
 So the high resolution environment is required to display it.

 Instead of that you can display the position of mouse cursor
using Script Console even if the resolution is not so high.
Please the following steps:

   1. Download the attached file "spec_pos.py."
   2. Check [View] > [Pane] > [Diagnostic Log] to display
     the "Diagnostic Log" pane.
   3. Select [View] > [Options] to display the "Options" dialog.
   4. Open the [Settings] > [Miscellaneous] > [Log] page.
   5. Select "Debug" as [Log Level] in the [Log View].
   6. Click the [OK] button to close the "Options" dialog.
   7. Select [Tools] > [Script Console] to open the "Script List" dialog.
   8. Click the [Add script] button. Then the "Script Console" dialog is displayed.
   9. Set the any name as the [Name] such as "Spectrum Position."
  10. Select "ON_SPEC_DBL_CLK" as the Event.
  11. Click the [Load] button to display the "Select File" dialog.
  12. Select the attached file and click the [Open] button.
  13. Click the [OK] button to close the "Script Console" dialog
       and confirm the new script is added in the "Script List" dialog.
  14. Click the [Close] button to close the "Script List" dialog.
  15. Close the Mass++.
  16. Run the Mass++ again.
  17. Open a sample and spectrum.
  
 In such a condition, the cursor position is displayed in the "Diagnostic Log"
if you double-click the mouse button on a spectrum window.
However the function of resetting zoom and pan by double-clicking does not work
in this case.
 Please adjust the displayed range with dynamic zoom by right-dragging
in the x-axis and y-axis area.

--
Satoshi Tanaka


 

spec_pos.py

satstnka

unread,
Apr 7, 2014, 8:51:18 PM4/7/14
to masspl...@googlegroups.com
 I forgot to mention about IronPython.
IronPython has to be installed to use the Script Console.
Please download it and install to your PC.

   https://ironpython.codeplex.com/

regards,

--
Satoshi Tanaka
Reply all
Reply to author
Forward
0 new messages