Changes

Jump to: navigation, search

Console Framework Classes 20103 - OOP344

379 bytes removed, 14:09, 17 April 2013
m
Reverted edits by MCanaday49 (Talk) to last revision by Ldchen1
[[OOP344 20103 BorderTester | BorderTester.cpp]]
 
 
This tester may have some problems. In the tester, the most outer border is Cont, and then B, and C is the most inner border.When test B(press F6), and when press down_key, the if condition never become true. B's container is Cont. Cont's height by default is -1. Therefore, when our group test it, we can go up but cannot go down. Can go left but cannot go right. By Leiding Chen
==FWField==
</syntaxhighlight></big>
#Calls its parents draw, to draw the border.
#Using iol_display, it prints lines of text form from index _loffset, up to height()-2 times.
#:Note that each line is printed from _offset character using absRow() and absCol(), up o width()-2 characters
<big><syntaxhighlight lang="cpp">
int edit();
</syntaxhighlight></big>
Draws the text area and then starts the editing from the fist first line.<br />The whole text should scroll to left, writeright, up or down instead, if the cursor tries to pass the edges of the text area.<br />
When Enter key is hit, if in insertmode, a new line is inserted after the current line and any text after the cursor in the line should be moved into it.<br />
When Backspace key is hit at the beginning of the line, the content of the current line should be moved to the previous line, the and current line should be deleted. The cursor in this case should stand in front of the copied data. <br />
</syntaxhighlight></big>
It deallocates the allocated memory. (If any memory allocation is used).
 
=Compile, Build, testing=
==Compile and build==
cc -c iol.c
fwboderfwborder.o: fwborder.cpp fwborder.h confw.hiol.h c++ -c fwboderfwborder.cpp
fwfield.o: fwfield.cpp fwfield.h fwborder.h confw.h iol.h
=Due Date=
*Due Nov 2829, 23:59
*: Tagged prj0.6
3
edits

Navigation menu