|
When the user clicks or, more typically, double-clicks on
the text to be edited, simply replace it with an editable text field
containing the string. Anything the user types is then entered
into the text field. End the edit session when the user clicks
somewhere else.
Make sure the text field appears in precisely the same apparent
location as the original non-editable string. If it seems to
jump when editing starts, it may irritate users. (This situation
doesn't seem like a big deal, but it can be.) Also, retain the
same typeface as the original text, if you can. In short, make
it as WYSIWYG as possible.
Usually a border appears around the text when the editor is
invoked, indicating to the user that editing has begun. That
may not even be necessary, though. Other cues may suffice: a
text-entry cursor should appear (often blinking), and if a common
user task is to replace the original string entirely, then the
whole original string should be automatically selected when the
editor appears.
|