Is there any way of making toolbar to be aligned to the right side of the application window? When window is resized the "right-aligned" toolbars are not following the application window as it is for example in msword.
Yes, I know that. But to make it work with all toolbars, the layout has to be looped and done to all toolbars with each resize callback. This is pretty heavy operation with bigger layout files. Seems to be so that activebar doesn't support this (?). This should work by default in the same way as in other ms applications...
janttu,
Maybe I missed something but vbcorner's code snippet just keeps entire ActiveBar area with all toolbars, etc. on the right side of application window. Also, I think, its more comfortable to set ActiveBar's AlignToForm property so ActiveBar fills the entire SDIForm's client area so that the control can become an adequate sized container for your controls. So you can place all other controls in a PictureBox, for example, and place PictureBox in ActiveBar client area (by using AutoSizeChildren and ClientAreaControl properties).
Thank you,Andrey T.
I don't want all the toolbars to be aligned to right all the time. This is the case you're talking about, right? I want the toolbar alignment to work as in ms word; once you've repositioned the toolbar to the right side of the application window and after that resize the window (make smaller then larger) the appropriate toolbar stays right-aligned (as long as the window size isn't larger than in the situation the toolbar was right-aligned). You can test this with ms word. For this I'm looking for solution. Second of all I don't want the toolbar to use all the space from the dockline. There's no point in that solution.