Hello,
it is a littlebit difficult to discribe what my problem is but i will try.
I have a UltraToolbar with .IsStockToolbar = true. On this toolbar there are n ControlContainer tools followed by a SpringLabel and two ButtonTools. In the ContainerTools there are several setting a user can make. The two buttons are to edit settings and "close" the toolbar. The SpringLabel is used to position the two buttons always on the right end of toolbar.
The two buttons should be the last tools to be bumped, therefor i set priority of the two buttons and the springlabel to containertools.count + 1 and +2 and +3.
But what happened:
If i resize the form, the springlabel gets smaller and smaller. Everthing ok. But then the last button (n +3) disappears without bumpednotification. Go on resizing.
Then the first containercontrol disappears with bumped notification and the last button (n+3) appears again but the springlabel skrinks to the same size as the buttons (16 pix) and the two buttons are not at the right end anymore.
So why is the springlabel quiting to spring in bumped mode and why disappears the button without bumpednotification instead of one of the controlcontainertools which should disappear first?
Hope you understand what i mean,
Thank you
Bjoern
Hello Bjoern
I`m not able to reproduce your issue. Could you please modify the sample that I upload with my previous response to reproduce your issue and revert it back to me. I`ll be glad ot research this issue for you. Also could you please tell me what is your current version and do you have any installed service release and which one.
Let me know if you have any questions,
Regards
Hello Georgi,
it's me again. I got mad, because your sample was working. But as i mentioned we use derived controls and the toolbars parent is a panel of a splitterpanel etc. So i modified a lot in your sample and copy the settings from our project (vb not c#) to your sample. After a while i found out the reason.
Its the MinWidth of the Label. The default is -1 but we set it to 50 to be sure of a litte space between the controls and the buttons. And with this property set the effect appears.
OK we could do it without the MinWidth, but there is one thing that disturb.
When the the first button is bumped the springlabel shrink to the smallest possible size 16 and so the two buttons are "aligned left" instead of right.
Is it possible that the springlabel does not shrink after the first bumped tool?
Thank you for your great help,
Hello Bjoern,
Thanks for you response. Let me know if you have any further questions
thank you for your engagement. In your video everthing look good. Instead of the label tool in the middle we use a buttontool and thw both buttons are imageonly on toolbars. Another note is that we have derived every control (toolbarsmanager and tools). I will take a look to your code.
Our version is 12.1.20121.1001
Regards,
Here is the sample: