View Single Post
Old 01-22-2018, 05:08 AM   #1
fundorin
Banned
 
Join Date: Feb 2014
Location: Moscow, Russia
Posts: 554
Default Time selection function

I can move cursor along the arrange view with:
1. MoveEditCursor(amt, 1)
2. SetEditCurPos(BR_GetPrevGridDivision(GetCursorPosi tion()), 1, 0)
SetEditCurPos(BR_GetNextGridDivision(GetCursorPosi tion()), 1, 0)
3. ApplyNudge(0, 2, 6, 2, amt, true, 0)

Tried all three methods and found the last one most suitable.

Now, I need to move cursor by grid lines, creating time selection.
What would be the best way to do that?
fundorin is offline   Reply With Quote