mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
CodeEditor: EditorBar MouseWheel (thanks Zbigniew) #736
git-svn-id: svn://ultimatepp.org/upp/trunk@7307 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
403797e86e
commit
bdd7bd1d1e
2 changed files with 7 additions and 0 deletions
|
|
@ -53,6 +53,7 @@ public:
|
|||
virtual void LeftDown(Point p, dword flags);
|
||||
virtual void LeftDouble(Point p, dword flags);
|
||||
virtual void RightDown(Point p, dword flags);
|
||||
virtual void MouseWheel(Point p, int zdelta, dword keyflags);
|
||||
|
||||
private:
|
||||
struct LnInfo : Moveable<LnInfo> {
|
||||
|
|
|
|||
|
|
@ -216,6 +216,12 @@ void EditorBar::RightDown(Point p, dword flags)
|
|||
WhenAnnotationRightClick();
|
||||
}
|
||||
|
||||
void EditorBar::MouseWheel(Point p, int zdelta, dword keyflags)
|
||||
{
|
||||
if(editor)
|
||||
editor->MouseWheel(p, zdelta, keyflags);
|
||||
}
|
||||
|
||||
void EditorBar::InsertLines(int i, int count)
|
||||
{
|
||||
li.InsertN(minmax(i + 1, 0, li.GetCount()), max(count, 0));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue