Changes

Jump to: navigation, search

Project R0.1 20133 - OOP344

1 byte added, 00:13, 27 September 2013
Step one
''Ignore the two arguments '''(InTextEditor and ReadOnly)''' for now write the method as follows:''
This method edits the C-style, null-terminated string pointed by str. The parameter row holds the row (0 is the top row) of the string on the screen. The parameter col holds the starting column (0 is the left-most column) on the screen. The parameter fieldLength holds the length of the editable field. The string may be larger than the field itself, in which case part of the string is hidden from view. The parameter maxStrLength holds the maximum length of the string, excluding the null byte. The parameter insertMode is a reference to a variable that stores the current editing mode (insert or over-strike). By default, this parameter hold holds the reference of a static bool attribute of the Console class (i.e. _insertMode) which globalizes the insert/over-strike mode between all instances of '''Console'''. The parameter strOffset points to an int variable that holds the initial offset of the string within the field; that is, the index of the character in the string that initially occupies the first character position in the field. The parameter curPosition points to an int variable that holds the initial cursor position within the field; that is, the index of the character in the field at which the cursor is initially placed.
* '''''Initial Corrections'''''
*:Do the following initial corrections before you engage in editing the string at the very beginning of the method.

Navigation menu