Hi.
I have an ultratoolbarmanager with a menubar and several toolbars. I would, however, like to add an image at the right side of the toolbar since there is a lot of space available.
My question is: Is is posible to put an image at the top right of the ultratoolbarmanager? Should this be done with a very vide image and then set strech options on the image, or is there a better solution?
Thanks
/Hykkel
If you want the image in a toolbar, you could add two LabelTools to the toolbar. Set the first one's caption to an empty string and set it's InstanceProps.Spring to True. On the second LabelTool, add your image and give it no caption as well. Also set the toolbars Settings.FillEntireRow to True. At runtime, the toolbar will stretch to the edge of the Form and the second label will display the image at the right side of the toolbar. But if you don't want the image in the toolbar, where would you like to place it?
Hi Mike.
Thanks for the reply. I will test it later (pretty hung up on another thing right now). But without testing it, I have a question.
Would this solution not create an image that did not cover from top to button inside the ultratoolbarmanager? What I mean is, that there are both a menubar and a toolbar. The image should not only be within the toolbar area, but also within the menubar area.
Kind regards
Hykkel
So it sounds like you want to place an image in the dock area. This will span all rows of toolbars and the main menu bar. However, the image will be behind the toolbars and main menu bar, so I don't think this will produce the result you are looking for. Can you post a screen shot example of what you are looking for?
Again, thanks.
I've never used a draw filter before, but I can see that this will not be the last time either!
There is no built in way to do this, but you can probably accomplish this with a draw filter. If you have never used a draw filter before, the following help article gives a brief overview:http://help.infragistics.com/Help/NetAdvantage/WinForms/2010.1/CLR2.0/html/Win_Draw_Filter.html
You would want to handle the BeforeDrawImageBackground phase for the UltraToolbarsDockAreaUIElement and draw your own image. You would have to align it to the right of the element manually, but you can use the Rect of the element to get its bounds.
Thanks again for your reply. Hope this illustrates my thoughts. I want to use the right unused side of the area to place a logo/image. I guess there is no built in functionallity for this in the framework. Hoped there might have been a background image property for the entire area, that I could have right alligned.