cxWidgets 1.0
floatingPtInputWithRightLabel.h
Go to the documentation of this file.
1// Copyright (c) 2026 E. Oulashin
2#ifndef __FLOATINGPTINPUTWITHRIGHTLABEL_H__
3#define __FLOATINGPTINPUTWITHRIGHTLABEL_H__
4
5// Copyright (c) 2007 Michael H. Kinney
6
7// This is a class that derives from cxMultiLineInput so that the onKeypress()
8// function can be overridden.
9
10#include "cxMultiLineInput.h"
11#include <string>
12
13namespace cx {
14
16{
17 public:
18 explicit floatingPtInputWithRightLabel(cxWindow *pParentWindow = nullptr,
19 int pRow = 0, int pCol = 0, int pHeight = 1,
20 int pWidth = DEFAULT_WIDTH,
21 const std::string& pLabel = "",
22 eBorderStyle pBorderStyle = eBS_NOBORDER,
23 eInputOptions pInputOption = eINPUT_EDITABLE,
24 std::string *pExtValue = nullptr);
25
27
28 // In addition do doing the per-key validation, this will update the
29 // right label.
30 std::string onKeypress() override;
31};
32
33} // namespace cx
34
35#endif
This class represents an input box that can have a height.
Definition cxMultiLineInput.h:149
Represents a text-based window on the screen. Can contain a title, status, and a message to appear wi...
Definition cxWindow.h:195
Definition floatingPtInputWithRightLabel.h:16
~floatingPtInputWithRightLabel()
Definition floatingPtInputWithRightLabel.cpp:18
std::string onKeypress() override
This runs each time the user presses a key. If built-in.
Definition floatingPtInputWithRightLabel.cpp:22
#define DEFAULT_WIDTH
Definition cxWindow.h:69
cxBorderChars.h - Defines border characters to be used in drawing a box (i.e., in cxWindow and all it...
Definition cxApp.cpp:5
eInputOptions
Definition cxInputOptions.h:20
@ eINPUT_EDITABLE
Definition cxInputOptions.h:21
eBorderStyle
Definition cxBorderStyles.h:26
@ eBS_NOBORDER
Definition cxBorderStyles.h:27