惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

L
LINUX DO - 热门话题
Stack Overflow Blog
Stack Overflow Blog
B
Blog
WordPress大学
WordPress大学
Project Zero
Project Zero
P
Palo Alto Networks Blog
阮一峰的网络日志
阮一峰的网络日志
博客园 - 司徒正美
有赞技术团队
有赞技术团队
S
SegmentFault 最新的问题
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
小众软件
小众软件
T
Tailwind CSS Blog
Forbes - Security
Forbes - Security
F
Full Disclosure
SecWiki News
SecWiki News
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Hacker News: Ask HN
Hacker News: Ask HN
C
Check Point Blog
Microsoft Security Blog
Microsoft Security Blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
F
Fortinet All Blogs
Cisco Talos Blog
Cisco Talos Blog
G
Google Developers Blog
J
Java Code Geeks
Google DeepMind News
Google DeepMind News
人人都是产品经理
人人都是产品经理
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Recorded Future
Recorded Future
O
OpenAI News
Spread Privacy
Spread Privacy
MongoDB | Blog
MongoDB | Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
C
Cybersecurity and Infrastructure Security Agency CISA
S
Securelist
V
Vulnerabilities – Threatpost
Y
Y Combinator Blog
IT之家
IT之家
U
Unit 42
腾讯CDC
S
Security Affairs
C
Cisco Blogs
Schneier on Security
Schneier on Security
The Last Watchdog
The Last Watchdog
B
Blog RSS Feed
宝玉的分享
宝玉的分享
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
S
Security @ Cisco Blogs
Cyberwarzone
Cyberwarzone
T
The Blog of Author Tim Ferriss

博客园 - 随风

最后期限 修改KMP的Next函数 Sql Prompt Sql懒人助手 99:87 Oh no no no i'm a rocket man NBA 08-09 会考 新书到 涂鸦(3)雨点大, 伞子小 涂鸦(2)人妖 最美丽的光华和一张厚实的医保卡 涂鸦(1) ---- 理想 辞职牛信 Where the Next Happen? 盘龙峡 众里寻 E心情 Sql拼凑器 英语面板 生活死锁
Mac DockMenu
随风 · 2008-04-23 · via 博客园 - 随风

最近看到网页下的MacOS菜单导航效果很不错,效果http://www.ndesign-studio.com/demo/css-dock-menu/css-dock.html
于是决定用GDI+搞个出来,
向下飞的原理很简单,当鼠标移动的时候,计算鼠标位置和图片的距离在一定距离下进行对图片进行缩放, 然后重新调整位置就OK了。

 
向上飞要麻烦一点, 如果要跟向下飞一样动态改变 控件的高度的话,需要改变控件的Location
这样导致画图的时候Location在变, 高度在变,鼠标移动的时候晃的比较厉害,效果不好。
最直接的方法是直接定死控件的高度为图片的最大值高一点, 这样的话Location和Height都不变的情况下效果很不错。
可惜的是不能动态变了,这样这个控件的上面就需要预留一定的空间方便飞出来了。