• Login
Community
  • Login

List box hover text for Style Configurator?

Scheduled Pinned Locked Moved Notepad++ & Plugin Development
5 Posts 3 Posters 613 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.
  • P
    PeterJones
    last edited by PeterJones Dec 8, 2024, 8:34 PM Dec 8, 2024, 8:33 PM

    I’ve always thought the Style Configurator’s Style chooser column wasn’t wide enough – for example, without individually clicking, you cannot tell which Style is Change History revert modified vs Change History revert origin, because both show up as just Change History rev.

    But, as a practical matter, I recognize that the dialog is already pretty wide, and there isn’t room in the dialog to make just that column resizeable, so wider or resizable might not be feasible without making the whole dialog bigger, which is why I haven’t previously put in the request.

    After the recent comments about some controls allowing hover text and others not, I was curious whether the List Box control allows hover text for a specific entry? (Assuming that the Style chooser really is a List Box… I think it is, but I’m not 100% sure)

    If the Control can support hover over a particular entry, I would put in a feature request to officially ask for it, but if it cannot, I won’t bother. (Or, maybe I’d make it a more generic request that just mentions that it’s difficult-to-use as-is, and request wider-by-default or resizeable or some other creative solution, since hover doesn’t work. Because if the dialog as a whole were resizable, it could add all that width to the Style column, or split it 33%/66% between the Language and Style columns)

    228b121d-0735-4bd8-a0ba-715f4537f746-image.png

    Yes, I know, that’s not the normal hover style… that was just to illustrate the concept, not the real implementation.

    And yes, I know that you can just click to see which is which, but being wider or having hover text would make it faster, so you only need to click once on the right one rather than click-until-find.

    Also, does anyone else remember a recent Topic here or Issue/PR discussion where style-column-too-narrow was mentioned? I could have sworn it had come up recently, but my searches here and in the Issues/PRs haven’t found any results. (Because I would love to be able to include a reference to other people also mentioning it’s too narrow, to bolster my argument in my feature request.)

    M 1 Reply Last reply Dec 9, 2024, 2:02 AM Reply Quote 5
    • M
      mpheath @PeterJones
      last edited by Dec 9, 2024, 2:02 AM

      @PeterJones My suggestion would be changing the Language ListBox to a ComboBox which would make both of the Language and and the Style lists wider.

      NppListToCombo3.png

      The left side is current display. The right side is a mock to display what the change can look like.

      1 Reply Last reply Reply Quote 4
      • E
        Ekopalypse
        last edited by Dec 9, 2024, 6:21 AM

        @PeterJones said in List box hover text for Style Configurator?:

        Assuming that the Style chooser really is a List Box

        It is see here .

        If the Control can support hover over a particular entry,

        One can use LB_ITEMFROMPOINT to find out which item is the closest.

        1 Reply Last reply Reply Quote 5
        • P
          PeterJones
          last edited by Dec 11, 2024, 2:57 PM

          I created issue #15939 , putting in a list of possible suggestions, and indicated my preference of choosing @mpheath’s suggestion.

          Watch that space to see if anything ever comes from it.

          M 1 Reply Last reply Dec 12, 2024, 1:02 AM Reply Quote 2
          • M
            mpheath @PeterJones
            last edited by Dec 12, 2024, 1:02 AM

            @PeterJones keeping the 2 Listboxes might be OK as well since I have mocked it recently.

            NppListToCombo2.png

            Left side and center same as my previous post. The right side displays 2 listboxes with 8 items per list being visible. Either of the 2 alternatives appear wider as can be seen in the image.

            Here is the AutoIt3 sources if anyone wants to play with them. Just need the AutoIt3 interpreter which can get from downloading the Zip file and extract AutoIt3.exe or AutoIt3_x64.exe.

            ; about: With 1 ComboBox and 1 Listbox.
            
            Global Const $CBS_DROPDOWNLIST = 0x3
            Global Const $GUI_EVENT_CLOSE = -3
            Global Const $WS_VSCROLL = 0x00200000
            Global Const $WS_CAPTION = 0x00C00000
            
            GUICreate('Style Configurator', 750, 405, -1, -1, $WS_CAPTION)
            GUICtrlCreateLabel('Select theme:', 67, 15)
            GUICtrlCreateCombo('Default (stylers.xml)', 142, 15, 160, Default, $CBS_DROPDOWNLIST)
            GUICtrlCreateGroup('', 10, 45, 250, 345)
            
            GUICtrlCreateLabel('Language:', 20, 60)
            GUICtrlCreateCombo('Global Styles', 20, 85, 230, Default, $CBS_DROPDOWNLIST)
            GUICtrlSetData(Default, 'ActionScript|ADA|ASN.1|ASP')
            
            GUICtrlCreateLabel('Style:', 20, 120)
            GUICtrlCreateList('Default Style', 20, 145, 230, 180, $WS_VSCROLL)
            GUICtrlSetData(Default, 'Indent guideline style|Brace highlight style|Bad brace colour' & _
                                    '|Current line background|Selected text colour|Multi-selected text color' & _
                                    '|Caret colour|Multi-edit carets color|Edge colour|Line number margin' & _
                                    '|Bookmark margin|Change History margin|Change History modified' & _
                                    '|Change History revert modified|Change History revert origin' & _
                                    '|Change History saved|Fold|Fold active' & _
                                    '|1|2|3|4|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19|20')
            
            $idExit = GUICtrlCreateButton('Exit', 650, 365, 80)
            GUISetState()
            
            While 1
                Switch GUIGetMsg()
                Case $GUI_EVENT_CLOSE, $idExit
                    Exit
                EndSwitch
            WEnd
            
            ; about: With 2 Listboxes
            
            Global Const $CBS_DROPDOWNLIST = 0x3
            Global Const $GUI_EVENT_CLOSE = -3
            Global Const $WS_VSCROLL = 0x00200000
            Global Const $WS_CAPTION = 0x00C00000
            
            GUICreate('Style Configurator', 750, 405, -1, -1, $WS_CAPTION)
            GUICtrlCreateLabel('Select theme:', 67, 15)
            GUICtrlCreateCombo('Default (stylers.xml)', 142, 15, 160, Default, $CBS_DROPDOWNLIST)
            GUICtrlCreateGroup('', 10, 45, 250, 345)
            
            GUICtrlCreateLabel('Language:', 20, 60)
            GUICtrlCreateList('Global Styles', 20, 80, 230, 120, $WS_VSCROLL)
            GUICtrlSetData(Default, 'ActionScript|ADA|ASN.1|ASP|Assembly|AutoIt|AviSynth' & _
                                    '|1|2|3|4|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19|20')
            
            GUICtrlCreateLabel('Style:', 20, 195)
            GUICtrlCreateList('Default Style', 20, 215, 230, 120, $WS_VSCROLL)
            GUICtrlSetData(Default, 'Indent guideline style|Brace highlight style|Bad brace colour' & _
                                    '|Current line background|Selected text colour|Multi-selected text color' & _
                                    '|Caret colour|Multi-edit carets color|Edge colour|Line number margin' & _
                                    '|Bookmark margin|Change History margin|Change History modified' & _
                                    '|Change History revert modified|Change History revert origin' & _
                                    '|Change History saved|Fold|Fold active' & _
                                    '|1|2|3|4|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19|20')
            
            $idExit = GUICtrlCreateButton('Exit', 650, 365, 80)
            GUISetState()
            
            While 1
                Switch GUIGetMsg()
                Case $GUI_EVENT_CLOSE, $idExit
                    Exit
                EndSwitch
            WEnd
            

            I didn’t type the full list of items as it is just mocking the Style Configurator Dialog for display purposes.

            1 Reply Last reply Reply Quote 2
            3 out of 5
            • First post
              3/5
              Last post
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors