Open main menu

CDOT Wiki β

Changes

Console UI Core Classes - OOP344 20113

50 bytes added, 23:03, 8 November 2011
CLineEdit
'''ClineEdit''' encapsulates the console.edit() function of Console class.
<big><syntaxhighlight lang="cpp">
#pragma once
#include "cfield.h"
namespace cio{
class CLineEdit: public CField{
bool _dyn;
int _maxdatalen;
bool* _insertmode;
int _curpos;
int _offset;
public:
CLineEdit(char* Str, int Row, int Col, int Width,
int Maxdatalen, bool* Insertmode,
bool Bordered = false,
const char* Border=C_BORDER_CHARS);
CLineEdit(int Row, int Col, int Width,
int Maxdatalen, bool* Insertmode,
bool Bordered = false,
const char* Border=C_BORDER_CHARS);
~CLineEdit();
void draw(int Refresh = C_FULL_FRAME);
int edit();
bool editable()const;
class CLineEdit: public CField{ bool _dyn; int _maxdatalen; bool* _insertmode; int _curpos; int _offset;public: CLineEdit(char* Str, int Row, int Col, int Width, int Maxdatalen, int* Insertmode, bool Bordered = false, const char* Border=C_BORDER_CHARS); CLineEdit(int Row, int Col, int Width, int Maxdatalen, int* Insertmode, bool Bordered = false, const char* Border=C_BORDER_CHARS); ~CLineEdit(); void draw(int Refresh = C_FULL_FRAME); int edit(); bool editable()const; void set(const void* Str); };}
</syntaxhighlight></big>