G
Guest
I am using the StatusStrip control in my windows forms application and I am
having difficulty aligning my sub controls, which are ToolStripLables and
ToolStripDropdownButtons.
I have 3 sub controls located on my StatusStrip. In order, they are...
ToolStripStatusLabel (Displays fixed text 'Status:' on the left side)
ToolStripStatusLabel (Displays whatever status I want to display to user
left justified)
ToolStripDropDownButton (Has buttons on it that I want to ALWAYS show. This
is right justified on the StatusStrip.
Here are the problems I have found with different configurations...
- If the StatusStrip is in FlowLayout or StackWithFlow (Horizontal or
Vertical), when the user resizes my form, the overflow properties kick in and
my ToolStripDropDownButtons disappear when they resize it smaller than the
size of the status label and the status text are bigger than the width of the
form size
- If the StatusStrip is in Table Layout, then in addition to the problems
explained above, the ToolStripDropDownButton that is typically right
justified is now left justified and won't move over, regardless of the size
of the parent form
I tried setting the width of the controls on both end objects to fixed
values, then set the middle text to autosize and spring=true. That didn't
work and the overflow took over and made the ToolStripDropDownButtons
disappear.
This is what I want to do; I want it so that the Status label on the left
side is always left justified and always shows up. I want the
ToolStripDropDownButtons on the right to be right justified and to always
showup. I want the status text between the status text and the
ToolStripDropDownButtons to be left justified and take up the entire space
available between the two, but if there isn't enough room, then it would just
cut off the remaining text of the label and display ... on it. But, it
wouldn't hide the ToolStripDropDownButtons on the right.
Either I am using the wrong type of control to do what I want, or I'm just
messing the settings up somehow. Any help would be greatly appreciated.
Thanks in advance.
having difficulty aligning my sub controls, which are ToolStripLables and
ToolStripDropdownButtons.
I have 3 sub controls located on my StatusStrip. In order, they are...
ToolStripStatusLabel (Displays fixed text 'Status:' on the left side)
ToolStripStatusLabel (Displays whatever status I want to display to user
left justified)
ToolStripDropDownButton (Has buttons on it that I want to ALWAYS show. This
is right justified on the StatusStrip.
Here are the problems I have found with different configurations...
- If the StatusStrip is in FlowLayout or StackWithFlow (Horizontal or
Vertical), when the user resizes my form, the overflow properties kick in and
my ToolStripDropDownButtons disappear when they resize it smaller than the
size of the status label and the status text are bigger than the width of the
form size
- If the StatusStrip is in Table Layout, then in addition to the problems
explained above, the ToolStripDropDownButton that is typically right
justified is now left justified and won't move over, regardless of the size
of the parent form
I tried setting the width of the controls on both end objects to fixed
values, then set the middle text to autosize and spring=true. That didn't
work and the overflow took over and made the ToolStripDropDownButtons
disappear.
This is what I want to do; I want it so that the Status label on the left
side is always left justified and always shows up. I want the
ToolStripDropDownButtons on the right to be right justified and to always
showup. I want the status text between the status text and the
ToolStripDropDownButtons to be left justified and take up the entire space
available between the two, but if there isn't enough room, then it would just
cut off the remaining text of the label and display ... on it. But, it
wouldn't hide the ToolStripDropDownButtons on the right.
Either I am using the wrong type of control to do what I want, or I'm just
messing the settings up somehow. Any help would be greatly appreciated.
Thanks in advance.