09-14-2023, 02:31 AM
Some sections just needed a bit more cleaning up...
List boxes in general, those that are fixed and do not scroll, there are no options highlighted. Yes, when you click an option, it becomes highlighted... but nothing is highlighted or selected by default. It is by mouse action and clicks that bring up a response.
But for scrolling lists, both in general and for the dropdown lists, the first item within their respective lists is highlighted by default. In fact, it is established as index position 0 for those that understand arrays or just that lists in this manner begin at 0 and not 1. THIS CAN CHANGE though, as the index position can be set at any time...
During the execution of this demo, I programmed the dropdown list on the right to highlight index position 3 at start.
As I stated earlier, list boxes highlight the information when you 'click' an item. In truth, when you click an item in any list, it is possible to just GET the desired information after the mouse click. But for the dropdown list, I added some nuances. First, the dropdown list's 'Title' now reflects the item selected just as any other Windows Dropdown widget would. And second, when you have an item highlighted within the dropdown list, the widget stores the data for the highlighted selection for retrieval at any time... not just when you click it.
Hrm... Perhaps that should be in the general 'scrolling' list boxes too. Yeah, sounds like a plan.
Lastly, I'm showing off in the upper-left a simple menu that appears when you 'right-click' over a widget that has a right-click option. Again, right-clicking the radio button brings up a menu and you can click either option that can affect the button itself. But now I set all available font and font background options to be editable properties after the object's creation. I know... that is an ugly shade of yellow. But every option does work.
But first... no. When you move the mouse over any items, the items are not highlighted. List items are only highlighted when clicked. So no menu will initially highlight what item you are targeting. And that includes the right-clicked options.
List boxes in general, those that are fixed and do not scroll, there are no options highlighted. Yes, when you click an option, it becomes highlighted... but nothing is highlighted or selected by default. It is by mouse action and clicks that bring up a response.
But for scrolling lists, both in general and for the dropdown lists, the first item within their respective lists is highlighted by default. In fact, it is established as index position 0 for those that understand arrays or just that lists in this manner begin at 0 and not 1. THIS CAN CHANGE though, as the index position can be set at any time...
During the execution of this demo, I programmed the dropdown list on the right to highlight index position 3 at start.
As I stated earlier, list boxes highlight the information when you 'click' an item. In truth, when you click an item in any list, it is possible to just GET the desired information after the mouse click. But for the dropdown list, I added some nuances. First, the dropdown list's 'Title' now reflects the item selected just as any other Windows Dropdown widget would. And second, when you have an item highlighted within the dropdown list, the widget stores the data for the highlighted selection for retrieval at any time... not just when you click it.
Hrm... Perhaps that should be in the general 'scrolling' list boxes too. Yeah, sounds like a plan.
Lastly, I'm showing off in the upper-left a simple menu that appears when you 'right-click' over a widget that has a right-click option. Again, right-clicking the radio button brings up a menu and you can click either option that can affect the button itself. But now I set all available font and font background options to be editable properties after the object's creation. I know... that is an ugly shade of yellow. But every option does work.
But first... no. When you move the mouse over any items, the items are not highlighted. List items are only highlighted when clicked. So no menu will initially highlight what item you are targeting. And that includes the right-clicked options.