A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/string__list__ctrl_8cpp_source.html below:

NCBI C++ ToolKit: src/gui/widgets/edit/string_list_ctrl.cpp Source File

42 #include <wx/bitmap.h> 44 #include <wx/recguard.h> 98 

wxScrolledWindow::Create( parent,

id

, pos,

size

, style );

103

GetSizer()->SetSizeHints(

this

);

147

wxBoxSizer* itemBoxSizer2 =

new

wxBoxSizer(wxVERTICAL);

148

itemScrolledWindow1->SetSizer(itemBoxSizer2);

151

itemBoxSizer2->Add(

m_GridSizer

, 1, wxGROW|wxALL, 5);

205

wxHyperlinkCtrl* 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);

210

wxTextCtrl* itemTextCtrl =

new

wxTextCtrl(

this

,

id

,

ToWxString

(

value

), wxDefaultPosition, wxDefaultSize, 0 );

211  m_GridSizer

->Add(itemTextCtrl, 0, wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 2);

222

wxWindow* window = FindWindow(

id

);

232  if

(guard.IsInside())

240

GetClientSize(0, &h);

241

GetVirtualSize(0, &hv);

242  if

(hv > h) Scroll(-1, (hv - h + 5)/5);

248

wxWindow* window = FindWindow(event.GetId());

253

wxSizerItemList::iterator node =

m_GridSizer

->GetChildren().begin();

254  for

( ; node !=

m_GridSizer

->GetChildren().end(); ++node, ++index) {

255

wxSizerItem* item = *node;

256  if

(item->IsWindow()&& item->GetWindow() == window)

270

wxString

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)

308

m_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