wex  v21.10.0
Public Member Functions | List of all members
wex::textctrl Class Reference

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.
 

Detailed Description

Offers a text ctrl related to a factory::stc object.

Member Function Documentation

◆ set_stc() [1/2]

bool wex::textctrl::set_stc ( wex::factory::stc stc,
char  command 
)

Sets stc component and handles char command.

Returns false if command not supported.

◆ set_stc() [2/2]

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.