Mantis Bugtracker

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0001648 [tweak] Any minor always 08-10-05 23:09 08-10-05 23:31
Reporter elenzil View Status public  
Assigned To
Priority normal Resolution open Platform
Status new   OS
Projection none   OS Version
ETA none Product Build
Summary 0001648: allowEditing dis-allows several things it shouldn't
Description the following are not editing operations,
but allowAdding: false disables them on CInputFields.

Accept Focus (which implies none of the following work:)
  Display Text Cursor
  Highlight Text
  Copy text with <meta key>-C

  - If you copy the (whole) contents with Yellow-Button | Copy,
  the contents of the CInputField get highlit.
  However, they stay highlit even when you highlight text
  in some sibling field.
  My wild guess is that the un-highlight code is tied to losing focus,
  which is probably not happening because it never gets focus.

InputFields who's contents can be selected & copied but not edited
are quite useful, for example in displaying information which the user
isn't allowed to edit (say their IP address) but which they may want
to copy to somewhere else.
Steps To Reproduce
Additional Information
Attached Files

- Relationships

- Notes
(0002243 - 908 - 1214 - 1342 - 1342 - 1342 - 1342)
08-10-05 23:31

somewhat kludgy work-around:

Use a CInputFieldWithReset,
(see [^]

and in the textModified event, call reset.
this unfortunately removes the user's current selection,
but at least i can reset the cursor to the start of
the old selection.
.. i guess one could keep track of the old selection via textSelectionChanged,
but this is good enough for me.

- i'm not sure why i have to decrement the selection in the code below,
and also why it was necessary to call selectionStop before selectionStart,
but it was.

onTextModifiedInFileName: blah

    | sel |

    <on: textModified in: guiInputFileName>

    sel _ guiInputFileName selectionStart.
    guiInputFileName reset.
    guiInputFileName selectionStop: sel-1.
    guiInputFileName selectionStart: sel-1.

- Issue History
Date Modified Username Field Change
08-10-05 23:09 elenzil New Issue
08-10-05 23:31 elenzil Note Added: 0002243

Mantis 1.0.8[^]
Copyright © 2000 - 2007 Mantis Group
31 total queries executed.
26 unique queries executed.
Powered by Mantis Bugtracker