Show a normal arrow cursor over the splitter when the splitter is fixed?

3 posts, 1 answers
  1. Adam
    Adam avatar
    89 posts
    Member since:
    Mar 2008

    Posted 07 May 2010 Link to this post

    Is it possible to do this?  I want to selectively turn on and off the resize ability using the 'Fixed' property on the SplitterElement.  It would be nice to not still show the resize arrows when resizing will not work.'

    Thanks!
  2. Answer
    Martin Vasilev
    Admin
    Martin Vasilev avatar
    1061 posts

    Posted 13 May 2010 Link to this post

    Hi Adam,

    Thank you for writing.

    There is no build-in functionality, which allows for changing the cursor of a SplitterElement depending on its state. However, you can implement this by inheriting the RadSplitConteiner class and overriding the OnMouseMove :
    class CustomSplitContainer : RadSplitContainer
        {
            private int num;
      
            protected override void OnMouseMove(MouseEventArgs e)
            {
         SplitterElement element = this.GetSplitterElementAtPoint(e.Location); 
                if (element != null && element.Fixed)
                {
                    return;
                }
      
                base.OnMouseMove(e);
            }
        }

    I hope this helps. Let me know if you have any additional questions.

    Sincerely yours,
    Martin Vasilev
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Adam
    Adam avatar
    89 posts
    Member since:
    Mar 2008

    Posted 13 May 2010 Link to this post

    Worked like a charm!  Thanks so much!
Back to Top