- Code: Select all Expand view
METHOD KeyDown() CLASS TCalex
....
case ::oView:IsKindOf( "TDAYVIEW" )
do case
case nKey == VK_UP
IF ::oDayView:nRowDown > 1
::oDayView:aSelectedRow:= {}
::oDayView:nRowDown-= 1.0001
AAdd( ::oDayView:aSelectedRow, { ::oDayView:nRowDown, ::oDayView:nColDown } )
::Refresh()
ENDIF
*
case nKey == VK_DOWN
IF ::oDayView:nRowDown < ::oDayView:nRowCount
::oDayView:aSelectedRow:= {}
::oDayView:nRowDown+= 1.0001
AAdd( ::oDayView:aSelectedRow, {::oDayView:nRowDown , ::oDayView:nColDown } )
::Refresh()
ENDIF
*
case nKey == VK_PRIOR
*
::oDayView:GoNext()
*
case nKey == VK_NEXT
*
::oDayView:GoPrev()
*
endase
...