wxScrolledWindow::Create( parent,
id, pos,
size, style );
103GetSizer()->SetSizeHints(
this);
147wxBoxSizer* itemBoxSizer2 =
newwxBoxSizer(wxVERTICAL);
148itemScrolledWindow1->SetSizer(itemBoxSizer2);
151itemBoxSizer2->Add(
m_GridSizer, 1, wxGROW|wxALL, 5);
205wxHyperlinkCtrl* itemHyperlinkCtrl =
new CHyperlink(
this,
206 id+
kMaxStringsCount,
wxT(
"Delete"),
wxT(
""), wxDefaultPosition, wxDefaultSize, wxHL_DEFAULT_STYLE );
207 m_GridSizer->Add(itemHyperlinkCtrl, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 2);
210wxTextCtrl* itemTextCtrl =
newwxTextCtrl(
this,
id,
ToWxString(
value), wxDefaultPosition, wxDefaultSize, 0 );
211 m_GridSizer->Add(itemTextCtrl, 0, wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 2);
222wxWindow* window = FindWindow(
id);
232 if(guard.IsInside())
240GetClientSize(0, &h);
241GetVirtualSize(0, &hv);
242 if(hv > h) Scroll(-1, (hv - h + 5)/5);
248wxWindow* window = FindWindow(event.GetId());
253wxSizerItemList::iterator node =
m_GridSizer->GetChildren().begin();
254 for( ; node !=
m_GridSizer->GetChildren().end(); ++node, ++index) {
255wxSizerItem* item = *node;
256 if(item->IsWindow()&& item->GetWindow() == window)
270wxString
value= textCtrl->GetValue();
271 if(!
value.empty())
282 m_GridSizer->GetItem((
size_t)0)->DeleteWindows();
292: m_Control(control), m_Id(kStringIdBase-1), m_TextCtrl(0)
308m_TextCtrl = (wxTextCtrl*)m_Control.FindWindow(m_Id);
CHyperlink is wrapper class for wxHyperlinkCtrl On OSX platform it posts URL click instead of sending...
CConstIterator & operator++()
CConstIterator(CStringListCtrl &control)
bool AddString(const string &value)
void Init()
Initialises member variables.
static bool ShowToolTips()
Should we show tooltips?
void OnDelete(wxHyperlinkEvent &event)
void OnTextCtrlUpdated(wxCommandEvent &event)
bool Create(wxWindow *parent, wxWindowID id=ID_CSTRINGSPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL)
Creation.
void CreateControls()
Creates the controls and sizers.
wxFlexGridSizer * m_GridSizer
~CStringListCtrl()
Destructor.
CStringListCtrl()
Constructors.
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
Include a standard set of the NCBI C++ Toolkit most basic headers.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
const struct ncbi::grid::netcache::search::fields::SIZE size
const GenericPointer< typename T::ValueType > T2 value
static wxRecursionGuardFlag s_flagReentrancy
wxString ToWxString(const string &s)
string ToStdString(const wxString &s)
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4