wex
v21.10.0
|
Offers a text ctrl related to a factory::stc object. More...
#include <wex/textctrl.h>
Public Member Functions | |
textctrl (frame *frame, wxControl *prefix, const data::window &data) | |
Constructor. Creates empty control. | |
textctrl (frame *frame, const std::string &value=std::string(), const data::window &data=data::window()) | |
Constructor. Skips prefix. | |
wxControl * | control () |
Returns the control window for the component. | |
auto * | get_frame () |
Returns frame. | |
const std::string | get_text () const |
Get string value. | |
void | on_exit () |
Destroys the implementation. | |
void | select_all () const |
Selects all text. | |
void | set_stc (wex::factory::stc *stc) |
Sets stc component. | |
bool | set_stc (wex::factory::stc *stc, const std::string &command) |
Sets stc component and handles string command. More... | |
bool | set_stc (wex::factory::stc *stc, char command) |
Sets stc component and handles char command. More... | |
void | set_text (const std::string &text) |
Sets text. | |
auto * | stc () |
Returns stc component. | |
Offers a text ctrl related to a factory::stc object.
bool wex::textctrl::set_stc | ( | wex::factory::stc * | stc, |
char | command | ||
) |
Sets stc component and handles char command.
Returns false if command not supported.
bool wex::textctrl::set_stc | ( | wex::factory::stc * | stc, |
const std::string & | command | ||
) |
Sets stc component and handles string command.
Returns false if command not supported.