Open main menu

CDOT Wiki β

Changes

OOP344 Assignment Two

1,346 bytes added, 12:38, 7 November 2009
m
no edit summary
==IO_CheckList==
IO_Checklist a child of IO_Field and IO_Frame and is responsible to create an option list for user, letting her choose one or many of them and submit the selection.
IO_Checklist can work in two modes:
*Radio mode; were the the selection is exclusive and each selection deselects the rest of the selections.
*CheckBox mode; where the selection is inclusive and many selections can be done at the same time.
Checklist is created as follows:
 
''Note that IO_CheckList is always framed...''
 
<big><pre>
IO_CheckList(CheckListMode mode, int row, int col,
const char* items,
const char* format = (const char*)0,
const char* frameChars = _FRAME_LISTS);
</pre></big>
*'''mode''' is one of the two selection of <big><code>enum CheckListMode{CheckBox, Radio}</code></big> that should be defined in io_def.h.
*'''row''' and '''col''' are the top, left corner of the frame surrounding the options.
*'''items''' is the a "newline" separated list of options in a string.
*'''format''' is a 3 char string that holds the shape of a checked option(i.e. "[X]" or "<@>"),if the format is zero, then depending of the value of '''mode''' being '''Radio''' or '''CheckBox''', frame will be defaulted to '''_RADIOLIST_CHARS''' or '''_CHECKLIST_CHARS''' respectively.
*'''frameChars''' is a string with the characters building the frame.
 
---incomplete---
==IO_Menu==