1. 25 Jan, 2023 1 commit
  2. 18 Aug, 2021 1 commit
    • ROOL's avatar
      Fix to painting non-square sprites in a list · e458c2d9
      ROOL authored
      Detail:
        Correction to argument order when getting the sprite size.
      Admin:
        Spotted during work on the Git source control client.
      
      Version 0.45. Tagged as 'Gadgets-0_45'
      e458c2d9
  3. 09 Feb, 2018 1 commit
    • Robert Sprowson's avatar
      SetColour method flag fixes · ec906ab4
      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'
      ec906ab4
  4. 18 Jun, 2016 1 commit
    • ROOL's avatar
      Have object modules use same message style · 13fdda25
      ROOL authored
      Admin:
        Converge on "ObjModName has active tasks.". This allows only 1 section describing the errors in the User Guide.
      
      Version 0.43. Tagged as 'Gadgets-0_43'
      13fdda25
  5. 02 May, 2016 1 commit
  6. 25 Mar, 2016 1 commit
  7. 28 Nov, 2015 1 commit
    • Robert Sprowson's avatar
      Plot a more credible rendition of TextArea and ScrollList · 7b479563
      Robert Sprowson authored
      Both the TextArea gadget and ScrollList were outputting an unhelpful white rectangle and mysterious black rectangle when asked to plot the gadget prototype (eg. in the gadget palette in ResEd). The black rectangle turned out to represent a scroll bar, though it was the wrong width.
      Changed to plot a 2D scrollbar (ala RISC OS 2) then overlay a virtual icon with the name of the gadget type.
      main.c:
      Relocate helper functions into glib.
      Return 'Bad SWI' for unknown subreasons.
      glib.c/glib3.c:
      Remove various unused functions.
      Added new function to plot a grey scrollbar from nested rectangles.
      TextArea.c:
      Add a vertical, or horixontal, or both, scrollbar plus the label "TextArea".
      ScrollList.c:
      Add a vertical scrollbar plus the label "ScrollList".
      
      Requires Common-0_25 for the colour defines. Tested in !ResEd in various eigenfactor modes.
      
      Version 0.40. Tagged as 'Gadgets-0_40'
      7b479563
  8. 12 Oct, 2015 1 commit
    • Robert Sprowson's avatar
      ScrollList gadget redraw fixes · 57071f9e
      Robert Sprowson authored
      When _set_colour() is called, remember to redraw the gadget if the colours changed.
      When _set_font() is called, remember to redraw the gadget and try to preserve the scroll bar positions.
      Save a couple of SWIs if we know the scroll bars must jump in 2 other places.
      Remove ScrollLisS, its (never called) function did nothing but return.
      Removed duplicate redraw_box, same as redraw_all_box and marked as const.
      
      Reported by Fred Graute, reference
        https://www.riscosopen.org/forum/forums/4/topics/3628
      the memory leak aspects of the report have been transferred to ticket #414 for later consideration.
      Tested with !ExifEdit and some special versions from Fred with the redraw workarounds removed.
      
      Version 0.39. Tagged as 'Gadgets-0_39'
      57071f9e
  9. 18 Aug, 2015 1 commit
    • Robert Sprowson's avatar
      Makefile recreated from fragments · f4fe9155
      Robert Sprowson authored
      Don't bother calling TinyStubs SWI since in ROM it does nothing, and the RAM versions haven't used it since ~1997.
      Use module header constants generated from CMHG rather than hand made one.
      
      Version 0.38. Tagged as 'Gadgets-0_38'
      f4fe9155
  10. 30 Aug, 2013 2 commits
    • Robert Sprowson's avatar
      Internationalised · b38b4d62
      Robert Sprowson authored
      Supporting code borrowed from 'Iconbar' toolbox module.
      Tested in a ROM build and RAM build, triggering one error message and checking the dynamic area in task manager.
      
      Version 0.37. Tagged as 'Gadgets-0_37'
      b38b4d62
    • Robert Sprowson's avatar
      Change to link against tboxlibint · 2729d7af
      Robert Sprowson authored
      For some reason this toolbox module was unique in linking against the public toolboxlib rather than the internal one, this meant having to carefully tippy toe around not mixing header files (as they contain similar but differently named definitions).
      A massive search and replace job.
      Tested briefly using ResEd/ResTest and a textarea and scrolllist in a ROM build.
      Requires Common-0_21.
      
      Version 0.36. Tagged as 'Gadgets-0_36'
      2729d7af
  11. 16 Mar, 2013 1 commit
    • Robert Sprowson's avatar
      ScrollList gadget fix · 25c43974
      Robert Sprowson authored
      When 'select only one' or 'multiple selections forbidden' is in use any selection changes first deselect all.
      However, in the second case, the module overrode the caller's selection reason so adjust clicking on an item would not deselect it - instead reselecting it!
      Logic ammended.
      From http://www.riscosopen.org/forum/forums/4/topics/1057
      
      Version 0.35. Tagged as 'Gadgets-0_35'
      25c43974
  12. 14 Jan, 2012 2 commits
    • Robert Sprowson's avatar
      Remove unnecessary includes of "Modhdr.h". · ed61893d
      Robert Sprowson authored
      The last change meant it was no longer being generated, so ammended the code to not need it in line with all the other toolbox modules.
      
      Version 0.34. Tagged as 'Gadgets-0_34'
      ed61893d
    • Robert Sprowson's avatar
      Changed to use shared TboxMake makefile. · 807f7234
      Robert Sprowson authored
      Removed local duplication of string32 and rmensure, since the common library has these in.
      Rename TextGadget.c to main.c to fall into line with the "o.mainROM" rule.
      Compiles, but not tested.
      
      Version 0.33. Tagged as 'Gadgets-0_33'
      807f7234
  13. 25 Jun, 2011 1 commit
    • Jeffrey Lee's avatar
      TextGadgets module fixes & improvements · 62cdc19f
      Jeffrey Lee authored
      Detail:
        c/ScrollList, c/TextArea - ScrollList_SetFont and TextArea_SetFont now accept font handles instead of just font names. The handles are handled in the same way as the Window module, i.e. the handle will be managed and freed by the TextGadgets modules. Fixes bug #212.
        c/ScrollList, c/Scrollbar, c/TextArea - Fix handling of Toolbox_ObjectDeleted events. Original code would corrupt the object lists when deleting items, and reallocate much more memory than was actually needed. Fixes bug #214
        c/MemMan - Fix grow_handlers to not leave handle_list as NULL if the realloc fails. Fixes bug #216.
        c/MemMan, c/TextArea, c/TextMan, h/MemMan, h/TextMan - Changed how the 'Handle' type is handled. Instead of MemMan giving out direct pointers to Handle instances, it now gives out identifiers (HandleId). These identifiers are then converted to Handle pointers via get_handle whenever the contents need to be accessed. This allows the handle_list to be safely realloc'd without breaking all the existing Handle pointers. Fixes bug #217
        c/MemMan - Reduced HDNLE_GRW_BY from 1000 to 128 to save a bit of memory
      Admin:
        Module compiles and runs, but actual functionality is untested.
        Fixes bugs 212, 214, 216, 217.
      
      
      Version 0.32. Tagged as 'Gadgets-0_32'
      62cdc19f
  14. 28 Feb, 2010 1 commit
    • Robert Sprowson's avatar
      Function returns no longer use stack structures. · 44aae368
      Robert Sprowson authored
      Previously, a number of errors were contructed as automatic variables then returned to the caller - potentially accessing stale stack area. All error blocks are now held in ROM and cast from there.
      Error numbers are now not &00000000 or &20202020, using the allocated base - requires 'Common-0_15'.
      Trimmed some unused debugging code out, saves about 3k.
      Renamed C++ clashing variables to stop the compiler moaning.
      Implemented feature request to accept the empty string "" as no font handle in _SetFont calls.
      At some point, this module needs internationalising.
      
      Version 0.31. Tagged as 'Gadgets-0_31'
      44aae368
  15. 14 Jun, 2008 1 commit
  16. 15 Apr, 2005 1 commit
  17. 09 Nov, 2004 1 commit
    • Ben Avison's avatar
      Linking change. · 1624975f
      Ben Avison authored
      Detail:
        Was still doing link -bin in rom_link phase. Changed to use link -rmf
        for consistency with all other C components, and with the BBE auto-
        generated makefile. Also has the benefit of saving approx 1K of ROM space.
      Admin:
        Not expected to cause any problems.
      
      Version 0.28. Tagged as 'Gadgets-0_28'
      1624975f
  18. 16 Jun, 2003 1 commit
    • Robert Sprowson's avatar
      Fix for data abort triggered in the following case: · dc8351f4
      Robert Sprowson authored
       create res file with a single TextArea in it
       change flags to be auto create and auto display
       drop into restest
       delete the 8 character "TextArea" default text
       press enter
       press backspace
      Also,there was a _swix(&107) left in from some point in the past.
      
      Version 0.27. Tagged as 'Gadgets-0_27'
      dc8351f4
  19. 18 Feb, 2003 1 commit
  20. 16 Mar, 2000 1 commit
    • Ben Laughton's avatar
      Removed unused files that were preventing build. · e3556e3c
      Ben Laughton authored
      Detail:
        debug.s was still in the build and included a header which had been removed
        in a previous version.  The code in debug.s in not used anywhere, so I've
        just removed it (and the corresponding debug.h, which was empty anyway).
      Admin:
        Compiled.
      
      Version 0.25. Tagged as 'Gadgets-0_25'
      e3556e3c
  21. 13 Dec, 1999 1 commit
    • Stewart Brodie's avatar
      32-bit compatibility. · 6f8d9c4a
      Stewart Brodie authored
        Improved some of the rather odd Piers-assembler.
      Detail:
        Some rather odd assembler has been tidied up.
        Removed some obsolete header files that are no longer required.
        Removed "objs" - nothing uses it - looks like an accidental
          checkin.
      Admin:
        Tested on Risc PC with Phoebe & 32 machine builds.
      
      Version 0.24. Tagged as 'Gadgets-0_24'
      6f8d9c4a
  22. 18 Oct, 1999 1 commit
    • David Cotton's avatar
      ======== · 44381c2e
      David Cotton authored
      	Altered to work with HdrSrc 0.46
      
      Detail:
      =======
       	HdrSrc 0.46 now includes the macros defined in the hdr.Cvars local
      file in it's Hdr:Macros file. Hence have altered this component to use the
      global header rather than the local copy. Also altered it so its hdr.SWINames
      file no longer attempts to define the AddSWI macro, which is also defined in
      hdr:Macros.
      
      Admin:
      ======
      	tedted that it builds.
      
      Version 0.23. Tagged as 'Gadgets-0_23'
      44381c2e
  23. 23 Jun, 1999 2 commits
  24. 21 Jun, 1999 1 commit
  25. 18 Jun, 1999 2 commits
    • John Beranek's avatar
      * Fixed the textarea_set/get_cursor_position methods to use the method... · 6770c2da
      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'
      6770c2da
    • Pete Goodliffe's avatar
      The scrollbar gadget can now be 'faded' (it doesn't actually fade - it just... · 04521800
      Pete Goodliffe authored
      The scrollbar gadget can now be 'faded' (it doesn't actually fade - it just stops responding and maximises the sausage).
      04521800
  26. 17 Jun, 1999 1 commit
  27. 20 Apr, 1999 1 commit
  28. 15 Apr, 1999 1 commit
  29. 31 Mar, 1999 1 commit
  30. 30 Mar, 1999 1 commit
    • Andrew Hodgkinson's avatar
      ScrollList changes. · adbbc308
      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'
      adbbc308
  31. 26 Mar, 1999 1 commit
    • Andrew Hodgkinson's avatar
      Various fixes and extensions to ScrollList, plus a related fix in TextArea and ScrollBar. · ba6f7fab
      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
  32. 21 Oct, 1998 2 commits
  33. 22 Jun, 1998 1 commit
    • Stewart Brodie's avatar
      * These changes make no difference to the build of the TextGadget module. · a76193d9
      Stewart Brodie authored
      Re-arranged header files to be suitable for sharing with Toolboxlib and
      for export to RiscOS/Export/Lib/tboxlibs/h.  The ordering and style of
      these files now matches other toolboxlib header files.
      
      Private TextArea macro definitions moved from TextArea.h to TextAreaP.h
      
      Most function declarations are now auto-generated by MethodGen so they
      come with documentation for free, except for TextArea_GetSelection*
      which need to be done manually.  This new set of declarations is
      identical to the hand-written ones which existed previously.
      a76193d9
  34. 19 Jun, 1998 2 commits