自动隐藏控件 [英] Autohiding a control

查看:84
本文介绍了自动隐藏控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Visual Studio中,各种盒子可以很好地滑开.
我想使用treecontrol来做到这一点.

我尝试过:
对于i = 0到10
宽度-= 3
下一个

但是很笨重.

有什么想法.

ps我以为我以前曾发布过这个q,但是找不到它.

In Visual Studio, various boxes slide away nicely.
I would like to do this with a treecontrol.

I''ve tried:
For i=0 to 10
width -=3
next

but it is very clunky.

Any ideas.

ps I thought I had posted this q before, but I can''t find it.

推荐答案

关于CP的文章:

简单的自动隐藏面板 [
There''s an article on CP :

Simple auto-hide panel[^]

But it does not slide away. So you''d have to do that yourself. I guess one way to do this is to use a timer. The trick to make it smooth would be to do the entire slide-in/out in about 400-500 ms but in as small steps as you can achieve in that time.


您可以找到UI的实现的源代码,类似于SharpDevelop(开放源.NET IDE)的源代码中的Visual Studio,请参见 http://en.wikipedia.org/wiki/SharpDevelop [ ^ ], http://sharpdevelop.com/OpenSource/SD/Download/ [
—SA
You can find source code of the implementation of UI similar to Visual Studio in the source code of SharpDevelop, an Open Source .NET IDE, see http://en.wikipedia.org/wiki/SharpDevelop[^], http://sharpdevelop.com/OpenSource/SD/Download/[^].

You "slide-away" boxes is a part of it. :-)

—SA


这篇关于自动隐藏控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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