List box hover text for Style Configurator?
-
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
vsChange History revert origin
, because both show up as justChange 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)
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.)
-
@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.
The left side is current display. The right side is a mock to display what the change can look like.
-
@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.
-
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.
-
@PeterJones keeping the 2 Listboxes might be OK as well since I have mocked it recently.
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.