Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
635
Slow performance creating buttons for UltraToolbar
posted

Hi

In my main menu form, I'm using the UltraToolbarsManager and dynamically creating toolbars and buttontools. Here's what I do:

  1. Create an UltraToolbar.
  2. In a loop, create ButtonTools and store them in a Toolbase array.
  3. Using AddRange, add the array to the toolbar manager and the new toolbar.

And repeat for each toolbar.

It works fine but it's slow, specifically when it creates the buttontools. It takes over 2 seconds to create 35 buttons. I'm also using an UltraTree and that creates over 700 nodes in about 0.15 seconds.

How can I make it quicker?

Thanks John

Parents Reply Children
No Data