Community
    • Login

    Replace in Files / "Directory" field scrolls right when clicked

    Scheduled Pinned Locked Moved General Discussion
    22 Posts 6 Posters 843 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • PeterJonesP
      PeterJones @fml2
      last edited by PeterJones

      @fml2 said in Replace in Files / "Directory" field scrolls right when clicked:

      I’m just expressing my not understanding the logics and the rationale in the standard behaviour of combo boxes in Windows.

      To put it simply, for a standard combobox:

      • When you move focus into a combobox, it selects all the active text, and scrolls all the way to the right, so that you can see the last character in the combobox
        • if you click again once it’s selected, it will clear the selection, and your typing caret will go to wherever you clicked in the visible section of text
      • When you move focus out of a combobox, it deselects all the active selection in that combobox, and scrolls all the way to the left, so you can see the first character.

      As to the rationale: I have no clue what the win32 API designers were thinking when they created their standard combobox more than 20 years ago; sorry.

      1 Reply Last reply Reply Quote 0
      • Alan KilbornA
        Alan Kilborn
        last edited by

        Somewhat unfortunately, I can understand the complaint of @fml2 here. As I said earlier in the thread, it has bothered me in the past. Now that I’m fully aware of it (due to this discussion), it will probably bother me in a more significant way moving forward. Perhaps I’ll see what I can do, on a script basis, to change the behavior…

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors