Changes

Jump to: navigation, search

The CIO Framework - OOP344 20123

202 bytes added, 12:31, 18 October 2012
Constructors and Methods
const char* Border=C_BORDER_CHARS);
</syntaxhighlight></big>
Passes the corresponding attributes to it's parents (CFrame) constructor and then sets the _data attribute to the incoming Data argument. Also using '''container(CDialog* theContainer)''' it set the container to NULL.
<big><syntaxhighlight lang="cpp">
~CField();
virtual void set(const void* data) = 0;
</syntaxhighlight></big>
Enforce Pure virtual methods to enforce the children to implement;
* an edit() method
* an editable() method that returns true if the class is to edit data and false if the class is to only display data.
<big><syntaxhighlight lang="cpp">
void container(CDialog* theContainer);
</syntaxhighlight></big>
Casts '''"theContainer"''' to a CFrame pointer and passes it to CFrame::frame(CFrame*) method; (to set the frame of CDialog)
<big><syntaxhighlight lang="cpp">
CDialog* container();
</syntaxhighlight></big>
Sets and Gets Casts the _frame attribute return value of CFrame by calling CFrame::frame() method. Make sure to cast The a CDialog to CFrame when setting pointer and cast CFrame to CDialog when getting!returns it.
==CLabel==

Navigation menu