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

Offers a text ctrl related to a ex object. More...

#include <wex/textctrl.h>

Public Member Functions

 textctrl (managed_frame *frame, wxControl *prefix, const data::window &data)
 Constructor. Creates empty control.
 
 textctrl (managed_frame *frame, const std::string &value=std::string(), const data::window &data=data::window())
 Constructor. Skips prefix.
 
 ~textctrl ()
 Destructor.
 
wxControl * control ()
 Returns the control window for the component.
 
wex::exex ()
 Returns ex component.
 
managed_frameframe ()
 Returns frame.
 
const std::string get_text () const
 Get string value.
 
void select_all () const
 Selects all text.
 
bool set_ex (wex::ex *ex, const std::string &command)
 Sets ex component using string command. More...
 
bool set_ex (wex::ex *ex, char command)
 Sets ex component using char command. More...
 
void set_text (const std::string &text)
 Sets text.
 

Detailed Description

Offers a text ctrl related to a ex object.

Member Function Documentation

◆ set_ex() [1/2]

bool wex::textctrl::set_ex ( wex::ex ex,
char  command 
)

Sets ex component using char command.

Returns false if command not supported.

◆ set_ex() [2/2]

bool wex::textctrl::set_ex ( wex::ex ex,
const std::string &  command 
)

Sets ex component using string command.

Returns false if command not supported.