
Andrew Hodgkinson
authored
Title background colour of gadgets was either undefined or set to 0; should be 2. Corrected. Would be apparent with 2D tools or any transparent tool sprite set. SELECT clicks on deselected entries in a ScrollList now deselect any other selected items before selecting the new one. Embedded window of TextArea and ScrollList now put in the right place. At create time, the sizes of the current tool sprite set is also checked; this used to be hard coded. If the tool sizes and/or Desktop scaling changes at run-time this won't be noticed yet, as no mechanism to pass Wimp messages to *external* gadgets exists in the Toolbox currently. Still, at least it gets it right the next time a new instance of the gadget is created. Flag bit ScrollList_SelectionChangingMethod_SendEvent to any of scrolllist_select_item, scrolllist_deselect_item or scrolllist_delete_items prompts them to send ScrollList_Selection to the client on completion. This can help simplify client UI code for UIs which depend on what is selected (e.g. a "Select all" button greys out if all items are selected by a keyboard shortcut - this can now all work on just the one event handler). Flag bit ScrollList_SelectionChangingMethod_OnAll to either of scrolllist_select_item or scrolllist_deselect_item tells the methods to act like a "Select all" or "Clear selection" call. This is a common client operation and it's a lot easier for the ScrollList gadget to do it than have the client iterate over all items. Supports new method ScrollList_CountItems (scrolllist_count_items veneer present in tboxlibs 0.04 or later). Returns number of entries in gadget. Avoids clumsy situation of both the gadget and the clienty keeping track of how many entries are present. Note that docs.ScrollList mis-documented some flags settings. Now fixed. Version 0.15. Not tagged