Setting new text for toggle command hides other command on view toolbar [message #496239] |
Mon, 09 November 2009 07:49  |
Eclipse User |
|
|
|
It's a little weird and I wonder if any one else has come across such a behavior.
I have placed 5 commands on a view's toolbar.
First of them is a toggle command.
When user would press this toggle command I change its text to 'Turn On' or 'Turn Off' based on it's new state.
In the case of text appearing 'Turn Off' ie when the toggle button is in 'pressed' state, last of the commands disappears from the toolbar. As if it didn't get enough space on the toolbar.
When the toggle command goes back in (new toggle text : 'Turn On') the disappeared command again appears.
Do I have to set default size or something for each of the commands?
How do I go about solving this problem?
Thanks.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.23515 seconds