Profile Picture

need a way to position NdockingToolbar

Posted By JSW W. 14 Years Ago
Author
Message
Angel Chorbadzhiev
Posted 14 Years Ago
View Quick Profile
Supreme Being

Supreme Being (142 reputation)Supreme Being (142 reputation)Supreme Being (142 reputation)Supreme Being (142 reputation)Supreme Being (142 reputation)Supreme Being (142 reputation)Supreme Being (142 reputation)Supreme Being (142 reputation)Supreme Being (142 reputation)

Group: Forum Members
Last Active: Last Month
Posts: 139, Visits: 184

Hello JSW W.,

You can set ImageList to each ToolBar and it will working correctly, but when you save a state of the command bars manager it saves only the imageList that is set to the manager and when load the state back it applies only this ImageList to the toolbars.

As I know you cannot set multiple transparent colors in one ImageList.

Regarding the toolbars order it is pretty straightforward:

To set a toolbar in specific row you need to set its RowIndex property to this row. For example if you want to set toolBar1 to be on the second row you need to do the following:

toolbar1.RowIndex = 1;

If you have 2 or more toolbars in the same row their order in that row depends of the order that they were added to the manager's ToolBars collection.

Let say you have toolBar1 and toolBar2 with the same RowIndex and we want to set toolBar2 to be before toolBar1 that you should do the following:

toolbar1.RowIndex = 1;

toolbar2.RowIndex = 1;

manager.ToolBars.Add(toolbar2);

manager.ToolBars.Add(toolbar1);

Regards,

Angel.



JSW W.
Posted 14 Years Ago
View Quick Profile
Supreme Being

Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)

Group: Forum Members
Last Active: 12 Years Ago
Posts: 127, Visits: 1
Hi Angel
I all working thanks to you.
If I added toolbars.clear() before these code, it messed up everything. Strangely it works without having to clear toolbars first.

Cheers



Similar Topics


Reading This Topic