RadControl RTL questiones

5 posts, 0 answers
  1. eliraz
    eliraz avatar
    20 posts
    Member since:
    Nov 2010

    Posted 04 Jan 2011 Link to this post

    Hi, I am new to the "RadDock" control and trying to test it before we put it in our App.
    there is some thing that I Test and I dont know if they could be done.

    1.We miss a feature in the RedDock control to have a different text between the tab and the "ToolWindow" caption 

    2.The RedDock not full support RTL, because the X(close) keep staying in the right side even though I marked all as RTL(but many I didn't do it right)

    3.I miss a feature to control the location of the Caption alignment in the "Tool Window"(I want it to be to the right because my App is RTL).

    4.The Quick navigator also don’t change by RTL.

    5.Is the Quick navigator a Control by itself by any chance? Because I cant find it and would like to use it.
  2. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 04 Jan 2011 Link to this post

    Hello,

    I'll do my best to answer as many of your questions as I can.
    1: Please can you clarify "different text between the tab and the "ToolWindow""
    2 / 3: As far as I know, this area of RTL support is not fully implemented (though I may be wrong). However, you can change the following

    A: You could take away the ToolWindow caption and then set the StretchHorizontally property to false of the DockLayoutPanel which will put the close buttons on the opposite side
    CType(Me.ToolTabStrip1.CaptionElement.Children(2), DockLayoutPanel).StretchHorizontally = False
    Me.ToolWindow1.Text = ""

    Or, just to align the text to the right, but keep the close buttons on the right
    CType(Me.ToolTabStrip1.CaptionElement.Children(2).Children(3), TextPrimitive).TextAlignment = ContentAlignment.MiddleRight

    4/5: Have a look at this forum post which will tell you a little more about Quick Navigator and the documentation for it is here

    hope this helps, but if you have any questions let me know
    Richard
  3. UI for WinForms is Visual Studio 2017 Ready
  4. eliraz
    eliraz avatar
    20 posts
    Member since:
    Nov 2010

    Posted 04 Jan 2011 Link to this post

    clarification : 
    the tool-window have a caption, and if we have 2 Tabed tool-windows they will have a Text in the bottom where the tabs are.
    what i want to do, is have a different text in the tool-window caption and the bottom tab text.
  5. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 04 Jan 2011 Link to this post

    Hello,

    Please can you include a screenshot showing what you would like to change as I'm afraid I don't understand your requirement.
    Thanks
    Richard
  6. Ivan Todorov
    Admin
    Ivan Todorov avatar
    688 posts

    Posted 06 Jan 2011 Link to this post

    Hi eliraz,

    Thank you for your questions.

    In regards to your first question: as far as I understand you would like to have different caption text for tool windows in different dock states. If so, then you could subscribe to the DockStateChanged event and change the text to whatever you like. Here is a short code snippet that demonstrates this:
    private void radDock1_DockStateChanged(object sender, DockWindowEventArgs e)
    {
        if (e.DockWindow == toolWindow3 && e.DockWindow.DockState == DockState.TabbedDocument)
        {
            toolWindow3.Text = "tabbed toolWindow3";
        }
    }

    In regards to the RTL questions: implementing full support of localization and Right-to-left languages and layouts is in the roadmap for Q1 2011 so these new features will be released soon.  Until then you can use Richard's suggestions as a workaround.

    In regards to your 5th question: the quick navigator is a control, but it is tightly related to the RadDock control and it could be really difficult to reuse it. Please provides us with more details about the scenario in which you are willing to use the QuickNavigator so we could provide a more detailed answer.

    I hope this was helpful. Do not hesitate to write back if you have any further questions.

    Greetings,
    Ivan Todorov
    the Telerik team
    Q3’10 SP1 of RadControls for WinForms is available for download; also available is the Q1'11 Roadmap for Telerik Windows Forms controls.
Back to Top
UI for WinForms is Visual Studio 2017 Ready