|
OpenCPN Partial API docs
|
Text field with validator and error handler. More...
#include <field_text.h>
Public Member Functions | |
| TextField (wxWindow *parent, const wxString &label, const wxString &value="", wxWindowID id=wxID_ANY) | |
| Add new text field to the form grid. | |
| void | OnError (const wxString &msg) |
| Shows an error below the text field. | |
| void | SetValidator (const wxValidator &validator=wxDefaultValidator) override |
| void | OnTextChanged (wxCommandEvent &event) |
| Text changed event handler. | |
Text field with validator and error handler.
Definition at line 38 of file field_text.h.
| TextField::TextField | ( | wxWindow * | parent, |
| const wxString & | label, | ||
| const wxString & | value = "", |
||
| wxWindowID | id = wxID_ANY |
||
| ) |
Add new text field to the form grid.
It requires a parent window with form grid, to layout label and field in the grid columns.
| parent | Parent window. |
| label | Field label. |
| value | Field value. |
| id | Window identifier. |
| void TextField::OnError | ( | const wxString & | msg | ) |
Shows an error below the text field.
| msg | Error message. |
| void TextField::OnTextChanged | ( | wxCommandEvent & | event | ) |
Text changed event handler.
| event | Change event. |