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
How can I turn off the Focus Rectangle on an UltraFormattedLinkLabel?
posted

Hi there,

i tried to hide the Focus Rectangle like it's described in the Knowledgebase...

http://devcenter.infragistics.com/Support/KnowledgeBaseArticle.aspx?ArticleID=4791

but my Link Label still draws it when it receives the Focus...

Im creating an Instance of the Label and using it as EditorComponent in an UltraTree:

this.formattedLabel = new UltraFormattedLinkLabel();
this.formattedLabel.UseOsThemes = DefaultableBoolean.False;
this.formattedLabel.DrawFilter = new UltraFocusRectangleDrawFilter();

myNode.Override.UseEditor = DefaultableBoolean.True;
myNode.Override.EditorComponent = this.formattedLabel;

public class UltraFocusRectangleDrawFilter : IUIElementDrawFilter
    {
        public UltraFocusRectangleDrawFilter()
        {
        }
        public DrawPhase GetPhasesToFilter(ref UIElementDrawParams drawParams)
        {
            return DrawPhase.BeforeDrawFocus;
        }
        public Boolean DrawElement(DrawPhase drawPhase, ref UIElementDrawParams drawParams)
        {
            return true;
        }
    }

 

any ideas?

 

Thanks a lot.

Parents
No Data
Reply Children