Various fixes and extensions to ScrollList, plus a related fix in TextArea and ScrollBar.
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
ba6f7fab
Name Last commit Last update
..
Font The Java directory contains the sources for the Java support modules
MemMan Function prototypes for telling if gadgets still exist...
ScrollLisP Function prototypes for telling if gadgets still exist...
ScrollLisS The Java directory contains the sources for the Java support modules
ScrollList Various fixes and extensions to ScrollList, plus a related fix in TextArea and ScrollBar.
Scrollbar * These changes make no difference to the build of the TextGadget module.
ScrollbarP Function prototypes for telling if gadgets still exist...
Sizes Various fixes and extensions to ScrollList, plus a related fix in TextArea and ScrollBar.
Text The Java directory contains the sources for the Java support modules
TextArea * These changes make no difference to the build of the TextGadget module.
TextAreaP * These changes make no difference to the build of the TextGadget module.
TextGadget * Merged in fixes from Daytona branch (tag sbrodie_Daytona_merge_19Jun98)
TextMan Function prototypes for telling if gadgets still exist...
Utils The Java directory contains the sources for the Java support modules
debug The Java directory contains the sources for the Java support modules
glib Merged Spinner branch back to trunk.
glibP Merged Spinner branch back to trunk.
modmem The Java directory contains the sources for the Java support modules
myswis The Java directory contains the sources for the Java support modules
riscos_uti The Java directory contains the sources for the Java support modules
rmensure Merged Spinner branch back to trunk.
string32 Merged Spinner branch back to trunk.