Guidance
指路人
g.yi.org
Guidance Forums / wxWidgets (wxWindows) in C++ / wxgrid-scroll-event

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. wxgrid-scroll-event
#3193
Posted by: 2004-01-04 18:58:01
i have wxFrame with wxGrid.
EVT_SCROLLWIN doesnt work.
i also catch EVT_GRID_CELL_CHANGE and it works.
can someone advice me what i am doing wrong?

code:

BEGIN_EVENT_TABLE(CDbfFrame, wxFrame)
  ...
  EVT_GRID_CELL_CHANGE(CDbfFrame::OnGridCellChange)
  EVT_SCROLLWIN(CDbfFrame::OnGridScroll)
END_EVENT_TABLE()

void CDbfFrame::OnGridCellChange(wxGridEvent &event)
{
  msg("GridCellChanged");
}

void CDbfFrame::OnGridScroll(wxScrollEvent &event)
{
  msg("GridScrolled");
}
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
 
 
 
 
 
 
 
 
 
 
© Wed 2022-8-10  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0