Changes

Jump to: navigation, search

Console UI Core Classes - OOP344 20113

846 bytes added, 11:31, 21 November 2011
CText
Returns the text of Label
==CText==
 
<pre>
// Console UI Core Classes
// text.h
//
// Fardad Soleimanloo, Chris Szalwinski
// Nov 13 2011
// Version 0.9
 
 
 
#pragma once
#include "cfield.h"
#include "text.h"
 
using namespace cio;
 
 
class CText:public CField{
Text _T;
bool _displayOnly;
int _curpos;
int _fieldlen;
bool* _insertmode;
int _offset;
int _lcurpos;
int _loffset;
public:
CText(int Row, int Col, int Width, int Height, bool* Insertmode,
bool displayOnly = false, const char* Border=C_BORDER_CHARS);
CText(const char* Str, int Row, int Col, int Width, int Height,
bool* Insertmode, bool displayOnly = false,
const char* Border=C_BORDER_CHARS);
void draw(int fn = C_FULL_FRAME);
 
void set(const void *Str);
void *data()const;
 
int edit();
bool editable()const;
bool displayOnly();
void displayOnly(bool val);
};
 
 
 
</pre>
===The Text Helper Class===
[svn://zenit.senecac.on.ca/oop344/trunk/textClass text class]

Navigation menu