OpenCPN Partial API docs
Loading...
Searching...
No Matches
TextCtrlWithHelp Class Reference

A wxTextCtrl with an initial italics help text, removed when user starts typing. More...

#include <text_ctrl_w_help.h>

Inheritance diagram for TextCtrlWithHelp:

Public Member Functions

 TextCtrlWithHelp (wxWindow *parent, const std::string &help_text)
 
void SetValue (const wxString &value) override
 Ignored if pristine, use ChangeValue if need be.
 
void ChangeValue (const wxString &value) override
 Falsify pristine state.
 
void RestoreHelp ()
 Restore help text to initial value, enter pristine state.
 
void SetHelp (const std::string &help_text)
 Set help text, enter pristine state.
 
bool IsPristine () const
 Return true if user has not entered anything.
 

Detailed Description

A wxTextCtrl with an initial italics help text, removed when user starts typing.

Definition at line 22 of file text_ctrl_w_help.h.

Member Function Documentation

◆ IsPristine()

bool TextCtrlWithHelp::IsPristine ( ) const
inline

Return true if user has not entered anything.

Definition at line 39 of file text_ctrl_w_help.h.


The documentation for this class was generated from the following file: