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
65
Hide caption/border for docked windows while allowing for undocking
posted

Is it possible to hide the caption/border for docked windows using the DrawFilter, but still allow them to undock the control (and if it's floating, the display the caption/border again)? 

I tried implementing IUIElementDrawFilter, but when I set "UltraDockManager.DrawFilter = this", and in "GetPhasesToFilter" i check for if the "drawParams.Element is DockableWindowUIElement", and if so set "BeforeDrawBorders", but nothing happens.  And if I check for "FloatingWindowControlUIElement", "DrawElement" doesn't even get called.

  • 44743
    posted

    By returning values from GetPhasesToFilter, you are not actually affecting the drawing of elements. You are just indictaing which phases on which you would like to get you DrawElement implementation called. So in your DrawElement logic, you could just return True for the BeforeDrawBorders phase to prevent the normal border drawing logic from being used.