- 09 Feb, 2018 1 commit
-
-
Robert Sprowson authored
Fix checking of the DesktopColours flag to the scrolllist and textarea gadget SetColour methods - didn't match docs. Fix for expression precedence of + and ? operators by sprinkling in some brackets. Ref https://www.riscosopen.org/forum/forums/4/topics/9503#posts-72595 Also, optimise the forced redraw if the text area colour overall didn't change (reduces flicker). Docs corrected to list RISC OS palette words in the right order. Version 0.44. Tagged as 'Gadgets-0_44'
-
- 18 Jun, 1999 1 commit
-
-
John Beranek authored
* Fixed the textarea_set/get_cursor_position methods to use the method interface as specified in docs.textarea. I wasn't returning values in R4 as it showed in the document, I am now. The fetching of the cursor position (in both the get and set calls) doesn't appear to work (always returns 0) with what appears to be the correct code to achieve this. The fixing of this is left as an exercise for the bored and very brave person...textarea internals are "interesting". * Added some description of the methods into docs.textarea Version 0.21. Tagged as 'Gadgets-0_21'
-
- 30 Mar, 1999 1 commit
-
-
Andrew Hodgkinson authored
Added scrolllist_set_item_text. Tweak to extent setting to account for window border. _add_item fix ('>' should've read '>=' in index range check). Can now tell _add_item to make the new item visible (flag ScrollList_AddItem_MakeVisible), else it will try to maintain the y scroll position. _delete_items continues to jump to the top as before, but you can ask it to try and maintain the y scroll position too (flag ScrollList_DeleteItems_DoNotJumpToTop). Version 0.16. Tagged as 'Gadgets-0_16'
-
- 26 Mar, 1999 1 commit
-
-
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
-
- 13 May, 1997 1 commit
-
-
Rob Lougher authored
(TextGadget, etc.) and the makefiles to complete the Java ROM build under RiscOS.
-