31 : wxWindow(parent, wxID_ANY, wxDefaultPosition, s+wxSize(2,2), wxBORDER_SIMPLE | wxCLIP_CHILDREN)
33 SetBackgroundColour(wxColour(245, 245, 245));
35 m_text =
new wxTextCtrl(
this, wxID_ANY,
"STANDARDTEXT", wxDefaultPosition, s, wxTE_MULTILINE | wxTE_READONLY | wxTE_RICH | wxBORDER_NONE);
36 m_text->SetBackgroundColour(wxColour(245, 245, 245));
55 m_text->SetDefaultStyle(wxTextAttr(wxColour(128,128,128)));
57 SetPosition(pos-wxPoint(2,0));
85 SetSize(s+wxSize(4,2));
99 m_text->SetDefaultStyle(wxTextAttr(wxNullColour, wxNullColour, font));
114 wxString text =
m_text->GetValue();
116 m_text->SetDefaultStyle(wxTextAttr(wxColour(128, 128, 128)));
117 m_text->AppendText(text.substr(0, start));
118 m_text->SetDefaultStyle(wxTextAttr(*wxBLUE));
119 m_text->AppendText(text.substr(start, len));
120 m_text->SetDefaultStyle(wxTextAttr(wxColour(128, 128, 128)));
121 m_text->AppendText(text.substr(start+len));
void Highlight(size_t start, size_t len)
Hightlight the section of the text in the calltip.
void Resize(const wxSize &s)
Change the calltip's size.
TerminalCallTip(wxWindow *parent, const wxSize &s=wxDefaultSize)
TerminalCallTip constructor.
void Dismiss()
Remove the shown calltip.
void PopUp(const wxPoint &pos, const wxString &text)
Show the calltip at the desired position. This function does not check, whether the calltip is acutal...
void ChangeFont(const wxFont &font)
Changes the font of the calltip.