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

Toolbar position (all in the same row)

Hi,

I've a couple of toolbars that are changig depending on the module of the software that is currently activ. Therefore I've added a MainFrameBarManager component to the form and added the toolbars. So far so good.

My problem now is, that I want to have all (there are always two active bars) the toolbars in the same row. I tried to achieve this using the following code:

this.mfbm.GetBarControl(this.bar1).RowOffset = 0;
this.mfbm.GetBarControl(this.bar1).RowIndex = 0;
this.mfbm.GetBarControl(this.bar2).RowIndex = 0;
this.mfbm.GetBarControl(this.bar2).RowOffset = this.mfbm.GetBarControl(this.bar1).Width;

Also changing the RowIndex of bar2 to 1 or higher brings no success. Any idea how to get the bars in one single row?

1 Reply

JA JayaLakshmi Syncfusion Team June 11, 2007 06:13 AM UTC

Hi Christoph,

Thank you for your interest in Syncfusion products.

I could able to get the two bars in the same row with the code snippet you used. Also the position of bars gets changed when you incremented the values of RowIndex and RowOffset properties.

Could you please try to modify the below sample and reproduce the same.
http://websamples.syncfusion.com/samples/Tools.Windows/F62193/main.htm

Also kindly let me know the Essential studio version you are using now.

Regards,
Jaya

Loader.
Live Chat Icon For mobile
Up arrow icon