diff options
Diffstat (limited to 'Source/CursesDialog/cmCursesLabelWidget.cxx')
-rw-r--r-- | Source/CursesDialog/cmCursesLabelWidget.cxx | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Source/CursesDialog/cmCursesLabelWidget.cxx b/Source/CursesDialog/cmCursesLabelWidget.cxx new file mode 100644 index 0000000..6c8adcc --- /dev/null +++ b/Source/CursesDialog/cmCursesLabelWidget.cxx @@ -0,0 +1,21 @@ +#include "cmCursesLabelWidget.h" + +cmCursesLabelWidget::cmCursesLabelWidget(int width, int height, + int left, int top, + const std::string& name) : + cmCursesWidget(width, height, left, top) +{ + field_opts_off(m_Field, O_EDIT); + field_opts_off(m_Field, O_ACTIVE); + this->SetValue(name.c_str()); +} + +cmCursesLabelWidget::~cmCursesLabelWidget() +{ +} + +bool cmCursesLabelWidget::HandleInput(int& key, FORM* form, WINDOW* w) +{ + // Static text. No input is handled here. + return false; +} |