CGXGridCore::EnableIntelliMouse
void EnableIntelliMouse();
Remarks
Enables Intelli Mouse support for the grid. Call this method at initialization time of your grid, e.g. before calling OnGridInitialUpdate or Initialize
Intellimouse support is very similar to MS Excel and MS Internet Explorer. Objective Grid supports the following features:
-
Scrolling by rolling the mouse wheel
-
Scroll horizontally by clicking SHIFT and rolling the mouse wheel
-
Zoom in and out by clicking CTRL and rolling the mouse wheel
-
Auto scrolling by clicking the mouse wheel button and dragging the mouse up, down, to the left or right.
- ClickLock for the mouse wheel button: Just click and hold down mouse button for a momemt and your click is locked. With ClickLock you can scroll the grid very easy by simply dragging the mouse (just the same as with Autoscroll but you don't have to hold the mousewheel button down). Click again to release ClickLock.
Please note that the first three features (rolling the mousewheel) are only supported if compiled with Visual C++ 6.0 or higher.
Example:
void CMyGridView::OnInitialUpdate()
{
CGXGridView::OnInitialUpdate();
EnableIntelliMouse();
}
BOOL CSample4Dialog::OnInitDialog()
{
CDialog::OnInitDialog();
GetGridWnd()->EnableFormulaEngine();
GetGridWnd()->Initialize();
GetGridWnd()->SetRowCount(25);
GetGridWnd()->SetColCount(52);
GetGridWnd()->SetCurrentCell(1,1);
GetGridWnd()->EnableIntelliMouse();
GetGridWnd()->SetFocus();
return FALSE; // return TRUE unless you set the focus to a control
}
Control-Factory Specific ->
Make sure that intelli-mouse support has been linked into the grid library. See the section "Reducing the size of your application" in the user's guide how to remove or include mouse-wheel support from the grid library using the Build Wizard.
END Control-Factory Specific
See Also
CGXIntelliMousePlugin CGXGridCore::EnableMouseWheel