ToolStrips & Mirroring

Hi
WindowsForms use Gdi+ For drawing. But Gdi+ dosn't support mirroring like Gdi32 when window has WS_EX_LAYOUTRTL extended style.
Now if ToolStrips draws with Gdi+ we can not use theme with WS_EX_LAYOUTRTL extended style.


Answer this question

ToolStrips & Mirroring

  • Ramana G.V

    ToolStrips (and all Windows Forms controls in Whidbey) use the new GDI text rendering class, TextRenderer, to draw text.

     - mike

  • Alois Kraus

    Toolstrips support RTL without Mirroring - the layout changes when you set RTL. There are bugs in this support in Beta1
    mark

  • koiravahti

    When we set WS_EX_LAYOUTRTL we mirror whole window and all contents of window will be mirrord. I ask for layout of window not for text rendering.
    In .NET framework 1.0 and 1.1 controls drawn by Gdi+ and Gdi+ dosn't suppurt mirroing like Gdi32, If we want to set WS_EX_LAYOUTRTL we shuld set WS_EX_LAYOUTRTL | WS_EX_NOINHERITLAYOUT both to solve the problem, you can see http://www.microsoft.com/middleeast/msdn/mirror.aspx
    Now I want to know if we set WS_EX_LAYOUTRTL for ToolStrips or them parents have we that probleme or not.

  • flodis79

    In Whidbey, we have an Application.EnableRTLMirroring() so these steps will no longer be necessary.  

  • ToolStrips & Mirroring