Changes

Jump to: navigation, search

OOP344 Assignment Two

1,010 bytes added, 10:55, 3 November 2009
Displaying the Form
<big><pre>
void display(unsigned int how = IO_CLEAR | IO_SHOW_ALL ,unsigned int fieldnumber = 0 );
 
</pre></big>
--- incomplete ---Displays the Form and all the Fields on it. '''fieldnumber''' is the number of the field that was returned by any of the '''add()''' functions.'''how:''' is a binary mask, and following bits can be set in it:<blockquote>IO_CLEAR (0x2u)IO_SHOW_ALL (0x4u)IO_SHOW_ERROR (0x8u)IO_SHOW_HELP (0x16u)</blockquote>The display function work in following order:# If IO_CLEAR bit is set in '''how''', then before anything the screen should be be cleared.# If the field number is 0 (zero) then ## if IO_SHOW_ALL is set in '''how''', then all the fields are displayed in the order they where added## otherwise either of IO_SHOW_ERROR or IO_SHOW_HELP is set, only their corresponding designated IO_Label will be displayed.# if the filed number is not zero, then the IO_Field number "fieldnumber" will be displayed. If the number is larger than the number of fields in the IO_Form then it will be rotated back from the beginning. (i.e. if there are 4 fields in the form and fieldnumber is 5, then filed number 1 will be displayed)
<hr width="50%" />

Navigation menu