Menu

Change Text Direction in both Views

Help
Yaron
2014-12-20
2015-01-18
  • Yaron

    Yaron - 2014-12-20

    I use the following script to change Text Direction (LTR/RTL) in both Views.

    notepad.menuCommand(MENUCOMMAND.EDIT_LTR)
    notepad.menuCommand(MENUCOMMAND.VIEW_GOTO_ANOTHER_VIEW)
    notepad.menuCommand(MENUCOMMAND.EDIT_LTR)
    notepad.menuCommand(MENUCOMMAND.VIEW_GOTO_ANOTHER_VIEW)

    After the script is run, the Synchronized Scroll is turned off.
    What might be the cause?

    Is there a better way to change Text Direction in both Views?
    I couldn't find a way to do that with editor1 and editor2.

    Thank you.

     
  • Yaron

    Yaron - 2014-12-22

    It should be:
    notepad.menuCommand(MENUCOMMAND.VIEW_SWITCHTO_OTHER_VIEW)

    Still, Is there a better way?

    Thanks.

     
  • Yaron

    Yaron - 2015-01-18

    Thank you Dave.

    I had read the excellent Python Script documentation, and couldn't find a different way.
    Your confirmation is important to me. I appreciate your time.

    Regards.

     

Log in to post a comment.