We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

XPToolbar Problems

Hi. Since upgrading to I have been having problems with the XPToolBar. I have included a small example with screenshots to illustrate my problem. 1. Resizing Form Creates Second XPToolBar Row If the XPToolBar is Docked at the Top of the form then when the form is resized to be smaller some of the buttons on the XPToolBar are moved onto a second row. In previous versions the buttons were simply hidden. Is it possible to control this behaviour and change it so that a second row is NOT added. 2. Second Row Never Disappears. Having resized the form forcing the XPToolbar to create a second row for some buttons the form is resized to be larger. The buttons are moved back up to the first row but the second row does NOT disappear. 3. Docking to the LEFT or RIGHT. In the old version the buttons would automatically appear vertically however in this version they remain horizontal. Thanks in advance. Nik

2 Replies

AD Administrator Syncfusion Team April 27, 2004 05:55 PM UTC

Hi Nik, We appreciate your feedback on this issue. These are known shortcomings of the XPToolBar and all of them have been fixed internally. The fixes will be available in the next release of Essential Suite. For now, you could use the following workarounds. 1. Instead of docking it on top, you could place it adjacent to the top edge of the form set its anchor property to right. This will hide the BarItems when the form is resized and will not create a second row. 2. For this, you could handle the XPToolBar''s Layou event as follows : private void xpToolBar1_Layout(object sender, System.Windows.Forms.LayoutEventArgs e) { this.xpToolBar1.Size = this.xpToolBar1.PreferredSize; } I have modified your sample accordingly and have attached it here. 3. Even in previous versions like v2.0.3.0 the XPToolBar always displayed the BarItem text horizontally (refer screenshot). Only the XPMenus.Bar can display it vertically when its BarStyle.RotateWhenVertical is set. Thanks for choosing Syncfusion products. Regards, Guru Patwal Syncfusion, Inc.

NV Nik Vale April 27, 2004 08:28 PM UTC

Guru, Thanks for help. Your suggestions helped me resolve my problems. Keep up the good work. Nik

Live Chat Icon For mobile
Up arrow icon