Diable Contextmenu on Scrollbars

SyntaxEditor for Windows Forms Forum

Posted 11 years ago by Wielage Dirk
Version: 4.0.0274
Avatar
Hi

I don’t want to have the context menu on the horizontal or vertical scrollbar! Is it possible to disable these context menus?

The ContextMenuRequested event is not fired in this situation.

Dirk

Comments (4)

Posted 11 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Sorry the ScrollBars are separate controls and there isn't a way to disable those context menus.


Actipro Software Support

Posted 11 years ago by Wielage Dirk
Avatar
If we can't disable these menu we need to localize the context menu.

Is that possible?

Dirk
Posted 11 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Yes, here are the default string resource keys and values:
ScrollBar_Command_DecreaseLarge_Text = Decrease Large
ScrollBar_Command_DecreaseSmall_Text = Decrease Small
ScrollBar_Command_IncreaseLarge_Text = Increase Large
ScrollBar_Command_IncreaseSmall_Text = Increase Small

ScrollBar_ContextMenu_Bottom_Text = Bottom
ScrollBar_ContextMenu_LeftEdge_Text = Left Edge
ScrollBar_ContextMenu_PageDown_Text = Page Down
ScrollBar_ContextMenu_PageLeft_Text = Page Left
ScrollBar_ContextMenu_PageRight_Text = Page Right
ScrollBar_ContextMenu_PageUp_Text = Page Up
ScrollBar_ContextMenu_RightEdge_Text = Right Edge
ScrollBar_ContextMenu_ScrollDown_Text = Scroll Down
ScrollBar_ContextMenu_ScrollHere_Text = Scroll Here
ScrollBar_ContextMenu_ScrollLeft_Text = Scroll Left
ScrollBar_ContextMenu_ScrollRight_Text = Scroll Right
ScrollBar_ContextMenu_ScrollUp_Text = Scroll Up
ScrollBar_ContextMenu_Top_Text = Top
Then to customize any of them, do a line like this where name/value are string variables:
ActiproSoftware.Products.WinUICore.AssemblyInfo.Instance.Resources.SetCustomString(name, value);


Actipro Software Support

Posted 11 years ago by Wielage Dirk
Avatar
Thanks that's exact what i needed!

Dirk
The latest build of this product (v2018.1 build 0341) was released 3 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.