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.
Unfortunately, activation email could not send to your email. Please try again.

Toolbar position (all in the same row)

Thread ID:

Created:

Updated:

Platform:

Replies:

62193 Jun 9,2007 09:23 AM Jun 11,2007 02:13 AM Windows Forms 1
loading
Tags: Tools
Christoph Gasser
Asked On June 9, 2007 09:23 AM

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?

JayaLakshmi [Syncfusion]
Replied On June 11, 2007 02:13 AM

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

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;