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
505
ControlContainer tool caption still remains highlighted after the tool loses focus
posted

Hi,

I have a ControlContainer on a toolbar and set it's DisplayStyle to TextAlways so the Caption is displayed to the left of the tool. I add a control to the form and assign it to the tool, e.g. an UltraCalendarCombo or an UltraTextEditor. I then add a button to the form just so that we can make the toolbar lose focus by clicking on the button.

When I click in the editor, the tool label text background gets highlighted (in orange as I'm using the Office2007 theme), which while that is unusual I could live with if it was just while the control had focus or was in edit mode.

However if you then click on the button the tool text remains highlighted and I can't figure out how to force it to restore the appearance back to normality.

I guess I can use a separate label tool instead of using the Caption, though it seems a shame to have to create lots of label tools when the functionality is provided through the Caption.

I can provide a simple project if it helps.

Further information, If I add a second ContainerControl with a caption to the toolbar, toggling the input focus between the two controls changes which label is highlighted so it looks like it is highlighting the active tool. However when the toolbar loses focus the highlight remains. I tried setting the IsActiveTool to false after the toolbar lost focus but this had no effect. I really want to disable this highlight appearance completely...

One other thing, the text colour of the container tool caption is displayed in black, but all other text displayed in a toolbar is blue as per the Office2007 Style setting...

Thanks,

   Martin.