您的位置:首页 > 移动开发 > Objective-C

How to show separators in WinForm's StatusStrip control?

2007-08-08 10:33 471 查看
 windsurfing_stew:

Hi,

Winforms has the new StatusStrip control that replaces StatusBar in
1.1. I've looked high and low but can't seem to find how to get
separators (|) in my status bar, eg

Info1 | Info2 | Info3 | Info4

where Infos 1 to 4 are StatusLabels.

Any takers?

Stew

Jason Newell:

The "Items Collection Editor" of the StatusStrip control doesn't allow
it, but you can call StatusStrip.Items.Add(new Image()). The image
would be your separator as an embedded resource.

If there's another way to do it, I don't see it.

Jason Newell

 

<
4000
p>Chris :
Set the border style to Etched and have bordersides Left, Right for the
object in the status strip. This creates the exact look
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息