Calculating toolbar icon width
Posted
by TheWzrdOz
on Stack Overflow
See other posts from Stack Overflow
or by TheWzrdOz
Published on 2010-06-16T15:29:13Z
Indexed on
2010/06/16
15:32 UTC
Read the original article
Hit count: 129
I am building an RDP client and I have toolbar that shows the running applications, same as the Windows toolbar. I need to support dual monitors, so my questions are 1) How do I detect that there is more than one monitor and 2) Is there a formula for calculating the width of the icons on the toolbar?
I know that at the start, the width is not dependent on the number of monitors, and is always the same size. What does change is the number of icons I can display before I must start "shrinking" their width, and it will depend on the screen resolution as well.
Any ideas?
© Stack Overflow or respective owner