Feature #879

[Scrollbar] Scrollbar should have context menu

Added by Zbigniew Rebacz about 6 years ago. Updated almost 3 years ago.

Status:RejectedStart date:09/26/2014
Priority:LowDue date:
Assignee:Zbigniew Rebacz% Done:

100%

Category:CtrlLibSpent time:-
Target version:Release 2017.2 - NTH

Description

Task description:

I think that scrollbar default implementation should be able to invoke menu after right mouse button click.

Vertical scrollbar context menu should contains following structure:
  • Scroll here
  • Separator
  • Top
  • Bottom
  • Separator
  • Page up
  • Page down
  • Separator
  • Scroll up
  • Scroll down
Horizontal structure:
  • Scroll here
  • Separator
  • Left edge
  • Right edge
  • Separator
  • Page left
  • Page right
  • Separator
  • Scroll left
  • Scroll right

P.S.
If any of above operation isn't implemented. Just do it.

ScrollbarContextMenu.png - Screenshot of feature "Scroll here" (155 KB) Zbigniew Rebacz, 10/09/2014 08:29 PM

ScrollBarContextMenu.diff Magnifier (22.4 KB) Zbigniew Rebacz, 10/12/2014 02:45 PM

History

#1 Updated by Zbigniew Rebacz about 6 years ago

  • File ScrollBarContextMenu.diff added
  • Status changed from New to In Progress
  • Assignee set to Miroslav Fidler
  • % Done changed from 0 to 50

Hello,

I have created inital version. It dosen't contain implementation of "Scroll here" feature. Important changes:
- Added "WhenRightClick" callback to Pusher
- Replace callback1(this, method binding) to THISBACK notation in Scrollbar code
- Added context menu to Scrollbar
- Minor code standarization in CtrlLib

Can you review this code?

  • This version shouldn't be commited to trunk!!!

#2 Updated by Zbigniew Rebacz about 6 years ago

  • File deleted (ScrollBarContextMenu.diff)

#3 Updated by Zbigniew Rebacz about 6 years ago

  • File ScrollBarContextMenu.diff added
  • Assignee changed from Miroslav Fidler to Zbigniew Rebacz
  • % Done changed from 50 to 90

Implemented "Scroll here" operation.

What is missing:
- Translation (Only English version)
- Documentation for "WhenRightClick" callback (See the post above)

I will need to check some things before commit. This is preview version :)

#4 Updated by Zbigniew Rebacz about 6 years ago

  • File deleted (ScrollBarContextMenu.diff)

#5 Updated by Zbigniew Rebacz about 6 years ago

  • File ScrollBarContextMenu.diff added

Moreover I added variable "menu" to Scrollbar style (Enable by default). The purpose of this variable is to control this feature.

#6 Updated by Zbigniew Rebacz about 6 years ago

  • File deleted (ScrollBarContextMenu.diff)

#7 Updated by Zbigniew Rebacz about 6 years ago

  • File ScrollBarContextMenu.diff added
  • Status changed from In Progress to Patch ready
  • Assignee changed from Zbigniew Rebacz to Miroslav Fidler
  • % Done changed from 90 to 100

Implemented. Last "Scroll here" implementation works with the midpoint of the scrollbar.

#9 Updated by Zbigniew Rebacz about 6 years ago

  • File deleted (ScrollBarContextMenu.diff)

#10 Updated by Zbigniew Rebacz about 6 years ago

  • Doubles instead of floats

#11 Updated by Zbigniew Rebacz over 4 years ago

  • Target version set to Release 2017.1 - NTH

#12 Updated by Zbigniew Rebacz over 3 years ago

  • Target version changed from Release 2017.1 - NTH to Release 2017.2 - NTH

#13 Updated by Zbigniew Rebacz almost 3 years ago

  • Status changed from Patch ready to Rejected
  • Assignee changed from Miroslav Fidler to Zbigniew Rebacz

Also available in: Atom PDF