37 #include <wx/imaglist.h>
39 #if( wxMAJOR_VERSION == 3 && wxMINOR_VERSION == 0 )
56 long style,
const wxValidator& validator,
const wxString &name)
59 Create(parent, winid, pos,
size, style, validator, name);
68 long style,
const wxValidator& validator,
const wxString &name)
70 if (!wxListCtrl::Create(parent, winid, pos,
size, style, validator, name))
84 long item = HitTest(event.GetPosition(),
flags);
85 if (item > -1 && (
flags & wxLIST_HITTEST_ONITEMICON))
88 wxListEvent
le(wxEVT_LIST_ITEM_CHECKED,
GetId());
89 le.m_itemIndex = item;
90 le.SetEventObject(
this);
91 GetEventHandler()->ProcessEvent(
le);
105 info.m_mask = wxLIST_MASK_IMAGE;
106 info.m_itemId = item;
110 return (
info.m_image == 1 ||
info.m_image == 3);
119 info.m_mask = wxLIST_MASK_IMAGE;
120 info.m_itemId = item;
121 if (GetItem(
info) &&
info.m_image == 3)
124 SetItemImage(item, (checked ? 1 : 0), -1);
void OnMouseEvent(wxMouseEvent &event)
bool Create(wxWindow *parent, wxWindowID winid=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxLC_REPORT, const wxValidator &validator=wxDefaultValidator, const wxString &name=wxListCtrlNameStr)
bool IsChecked(long item) const
void SetChecked(long item, bool checked)
wxImageList * m_ImageList
wxDEFINE_EVENT(WIDTH_EVENT, wxCommandEvent)
IMPLEMENT_CLASS(CFloatingFrame, CFloatingFrameBaseClass) const static long kFloatFrameStyle
CFloatingFrame.
const CSeq_id & GetId(const CSeq_loc &loc, CScope *scope)
If all CSeq_ids embedded in CSeq_loc refer to the same CBioseq, returns the first CSeq_id found,...
#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
bool le(T x_, T y_, T round_)
wxImageList * CreateCheckboxImages(wxWindow *wnd)