如何创建自定义滚动条? [英] How to create a custom scroll bar?

查看:102
本文介绍了如何创建自定义滚动条?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用2008年的VS 2005中的VSPackage。

I am working on VSPackage in VS 2005, 2008.

我想知道如何添加自定义滚动条到代码编辑器?以及如何在代码编辑器中的某些行的滚动条上包含一些标记?

I wanted to know how to add a custom scroll bar to the code editor? and how to include some markers on the scroll bar for certain lines in the code editor?

任何人都可以帮助我使用代码片段来执行此操作吗?

Can anyone help me with a code snippet to do this?

谢谢,

Nayna

推荐答案

嗨Nayna,

Hi Nayna,

虽然在VS 2005或2008中这样做是可能的,但它并不是真正支持的东西。然而,在VS 2010中,这很简单,并且需要创建编辑器边距。如果使用2010 是您的选项,我建议
下载VSSDK并从C#/ VB =>下的编辑边距模板开始新项目对话框中的可扩展性。您还可以查看此示例,它类似于:
http://code.msdn.microsoft.com/overviewMargin

While doing this in VS 2005 or 2008 may be possible, it isn't something that is really supported. In VS 2010, however, this is quite simple to do and is a matter of creating an editor margin. If using 2010 is an option for you, I would suggest downloading the VSSDK and starting with the editor margin template under C#/VB => Extensibility in the new project dialog. You can also check out this sample, which does something similar: http://code.msdn.microsoft.com/overviewMargin

干杯,

Chris  Granger

Visual Studio专业版体验 

Cheers,
Chris Granger
Visual Studio Pro Experience 

 

 


这篇关于如何创建自定义滚动条?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆