1. 04 Jan, 2020 1 commit
    • ROOL's avatar
      Apply same vetting to SetCaretPosition window handle as non cut & paste Wimp · 091831e4
      ROOL authored
      Detail:
        Summary of how non-CnP Wimp treats the window handle for Wimp_SetCaretPosition
        R0 = valid window handle
          or invalid window handle (mapped to -1)
          or any negative number or 0 (mapped to -1)
      
        With this change, the CnP Wimp does
        R0 = valid window handle
          or invalid window handle (throws error)
          or any negative number or 0 if pre RISC OS 5 (mapped to -1)
          or 0 for RISC OS 5 (mapped to -1)
      
        Noting the use of AcceptLoosePointer macro if built for a 26 bit target.
      091831e4
  2. 18 Dec, 2019 1 commit
    • ROOL's avatar
      Clipboard caret/task fixes · 9cc627ac
      ROOL authored
      Detail:
        In CnPCaret.s
          * Clear any invalid window handles currently stored in caret blocks on Wimp_SetCaretPosition entry
          * Clear R2 on exit if R0=-1,R2=TASK on entry to Wimp_SetCaretPosition
          * If window is not open or able to receive a focus, then return WimpFocus error rather than causing an alignment exception
        In CBTask.s
          A drag to writeable with invalid (eg.rejection due to validation string mismatch or overlong insert) caused ghost caret to be left behind and still deletes the source text.
          * Changed LDR R2,=cbtask_TASK to LDR r2,cbtask3_TASK
          * Ensure cbtask_insert_text_into_icon returns V set on error
          Drag and drop text from icon to non-d&d application, the last message was erroneously sent as DataSaveAck, not Dataload
      Admin:
        Submission for Clipboard Support bounty.
      
      Version 5.66. Tagged as 'Wimp-5_66'
      9cc627ac
  3. 14 Dec, 2019 1 commit
    • ROOL's avatar
      Add copy & paste and drag & drop operations to the Wimp · 0fb14a00
      ROOL authored
      Detail:
        The text in writable icons can now be manipulated using the familiar keyboard shortcuts, or using Drag and Drop in conjunction with any compliant applications.
        Further details are in Doc/DragAndDrop along with information on API extensions which are implemented.
      Admin:
        Submission for Clipboard Support bounty.
      
      Version 5.65. Tagged as 'Wimp-5_65'
      0fb14a00