Editing 3

Modifications of the CCCalc text are done in the same way with almost any other computer text: you set the caret where necessary and delete or insert chars as needed.

The CCCalc's response may differ though. This difference arises from the idea that the text inside CCCalc shall always be a valid mathematical expression which can be calculated. To achieve this, CCCalc may ignore some actions or perform more modifications then it can be expected. See notes below for details.

Move caret

To move the caret with the keyboard use arrow keys, PageUp, PageDown, Home and End keys. CTRL and SHIFT usually make the move some more distant.

To move caret with the mouse simply click to the desired location.

Selections

To cut/copy or delete a text fragment it is necessary to select it first. Choose a way you prefer:

  1. Press left mouse button and drag mouse pointer.
  2. Press SHIFT key of the keyboard and move the caret using keyboard keys.
  3. To select an expression in whole, double click it with left mouse button or use menu command Edit - Select expression.
  4. To select all the text use menu command Edit - Select all.

Deletion

To delete characters click  or buttons of the virtual keypad. Corresponding keyboard keys are BACKSPACE and DEL respectively. The first one deletes chars to the left of the caret, the later one to the right.

To keep an expression valid  CCCalc sometime have to delete more then one character. The following table illustrates general ideas on how it happens:
Sample DEL BACKSPACE Note
1 +
2 -
3 =
0
1 +
2 =
3
 
1 +
0 -
3 =
-2
DEL will delete "-" to the right of "2" and also "3" that follows "-".

BACKSPACE deletes "2" but the number is not deleted completely, it becomes zero.

1 +
0 -
3 =
-2
1 -
3 =
-2
 
  DEL deletes zero number at all and the "+" sign that is before zero.
1 +
2 -
3 =
0
1 +
2 =
3
 
1 +
3 =
4
 
When operation sign is deleted the neighbor number will be deleted also, to the left or right depends on what deletion key was pressed.

If there is a selection then it will be deleted in whole, possibly with some extra chars to the left or to the right depending on which key was used to delete.

Expression result is always deleted in whole, along with preceding "=" or following operation sign or line break, depending on which key was used to delete.

Change operation

To replace one operation by another:

  1. Set the caret to a desired operation sign. The caret became wide and covers the whole operation sign.
  2. Input a new operation sign. The operation got changed and an expression  result is recalculated.

To undo a modification

To undo a modification:

  1. left-click button, or
  2. use menu command Edit - Undo, or
  3. press CTRL-Z

To undo several modifications repeat it as many times as needed. There is no limitations on a number of Undo operations.

To redo a modification

To repeat a modification which was previously rolled back with Undo:

  1. left-click button, or
  2. use menu command Edit - Redo

You may repeat this action until there are no more rolled back operations to redo.

Cut selection

To cut selection and put its copy to the Windows clipboard:

  1. left-click button, or
  2. use menu command Edit - Cut, or
  3. press CTRL-X or SHIFT-DEL

Note that if there in no selection then Cut uses

  • a number if the caret is set somewhere inside it
  • an operation sign if the caret is set over it

Copy selection

To copy selection to the Clipboard:

  1. left-click button, or
  2. use menu command Edit - Copy, or
  3. press CTRL-C or CTRL-INS

Note that if there in no selection then Copy uses

  • a number if the caret is set somewhere inside it
  • an operation sign if the caret is set over it

Paste text from the Clipboard

To paste clipboard text set the caret to a desired location and:

  1. left-click button, or
  2. use menu command Edit - Paste, or
  3. press CTRL-V or SHIFT-INS

To exchange text with another document

To exchange text with another document:

  1. Select text to exchange, copy it to Clipboard (see above), then activate another document window and paste clipboard text into. Or
  2. Select text to exchange. Navigate mouse pointer to the selection, press left mouse button and drag-drop the selection into the desired document. Note that this way may not work for some documents.

Next: Operations with memory