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
115
how to change the spacing between items in ultraexplorerbar in style [VisualStudio2005ToolBox] ?
posted

I'm working on UltraExplorerBar now. But I got one trouble.

The spacing between items is too narrow to right click and display the ContextMenuStrip.

Is there any way to enlarge the spacing between items?

Parents
  • 21795
    Offline posted

    Hello Jim,

    To add some space between items you may set the Height of the items to some big enough value. You can do this for all the items like this:

    this.ultraExplorerBar1.ItemSettings.Height = 100;

    or to items in a particular group like this:

    this.ultraExplorerBar1.Groups[0].ItemSettings.Height = 50;

    or even to a single items like this:

    this.ultraExplorerBar1.Groups[1].Items[2].Settings.Height = 150;

    After setting this you may also need to set the vertical text and picture alignment of your items. To do so get the appropriate ItemSettings object and set TextVAlign and ImageVAlign as you need them. You can use code like this:

    this.ultraExplorerBar1.ItemSettings.AppearancesSmall.Appearance.TextVAlign = VAlign.Top;
    this.ultraExplorerBar1.ItemSettings.AppearancesSmall.Appearance.ImageVAlign = VAlign.Top;

    Please let me know if any additional questions on this matter arise.

Reply Children