SceneBookDatabase() : _insertingBook(false), _deletingBook(false), insert(true), scrMain(), scrBook(&scrMain, 5, 10, 50, 15, true, "+-+|+-+|"), lblName("Name: ", 4, 3), lblAuthor("Author: ", 5, 3), lblPublisher("Publisher: ", 6, 3), lblRDate("Release Date: ", 7, 3), lblISBN("ISBN: ", 8, 3), lblRating("Rating: ", 9, 3), lblMessage("Welcome to use Team-T's Program", 11, 2), lblMessage2("", 12, 2), lblFunctionKeys1(" F3=EXIT F5=SEARCH F6=INSERT F7=GO FIRST F8=GO LAST F9=COMMIT F10=DISCARD ", 23, 0), lblFunctionKeys2(" PAGEUP=PREV RECORD PAGEDOWN=NEXT RECORD F11=DELETE RECORD ", 24, 0), txtName(4, 13, 20, 40, &insert), txtAuthor(5, 11, 20, 70, &insert), txtPublisher(6, 14, 20, 70, &insert), txtRDate(7, 17, 20, 10, &insert), txtISBN(8, 9, 20, 10, &insert), txtRating(9, 11, 20, 10, &insert) { int i = 0; for (int k = 1; k<console.getRows(); k += 2){ for (int m = 0; m<console.getCols() - 10; m += 10){ scrMain << new CLabel((i = !i) ? "Hello" : "Hi", k, m, 9); } } scrMain << new CLabel("Dialog and Line Editor Tester ", 0, 0) << lblFunctionKeys1 << lblFunctionKeys2; scrMain.draw(); scrBook.add(new CLabel("Book Database", 1, 12)); scrBook << lblName << txtName << lblAuthor << txtAuthor << lblPublisher << lblMessage << lblMessage2 << txtPublisher << lblRDate << txtRDate << lblISBN << txtISBN << lblRating << txtRating; scrBook.draw(); }