Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1070
ImageHAlign does not Work on LabelTool
posted

Hi there,

for me it seems like the ImageHAlign Property on the LabelTool does not Work.

The Image (16x16) will be always shown on the left side of the Caption.

The LabelTool is placed in a Ribbon Group below a ComboBoxTool.

 

I have only set the following Property so that i can except side effects:

SharedProps.AppearancesSmall.Appearance.ImageHAlign

 

does anyone have an idea?

Parents
No Data
Reply
  • 44743
    posted

    Where the image is displayed relative to the text is something that is controlled on the owner of the tool and therefore cannot be set with the tool's appearance.

    On a menu, the image must be placed to the left of the text because it must go in the icon area of the menu.

    On a toolbar, it has a Settings.CaptionPlacement property which you can set. It must be the same for all tools on a toolbar because the if the captions are below or above the image, they must all be that way.

    On a ribbon group, the image placement is determined by the tool size according to the Office 2007 UI Guidelines. On large tools, the image is above the text. On normal tools, the image is placed to the left of the text. There is no way to customize this. The only way I can think of to try to do this would be to implement a creation filter. After a LabelToolUIElement has been created, you can change the Rect values of the child elements to swap their relative locations. If you have never used a creation filter before, the following help article gives a brief overview:
    http://help.infragistics.com/Help/NetAdvantage/WinForms/2009.2/CLR2.0/html/Win_Creation_Filter.html

Children
No Data