Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > SplitContainer > Show a normal arrow cursor over the splitter when the splitter is fixed?

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

Feed from this thread
  • Posted on May 7, 2010 (permalink)

    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!

    Reply

  • Answer Martin Vasilev Martin Vasilev admin's avatar

    Posted on May 13, 2010 (permalink)

    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.

    Reply

  • Posted on May 13, 2010 (permalink)

    Worked like a charm!  Thanks so much!

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > SplitContainer > Show a normal arrow cursor over the splitter when the splitter is fixed?
Related resources for "Show a normal arrow cursor over the splitter when the splitter is fixed?"

[ Features | Demos | Documentation | Knowledge Base | Telerik TV | Code Library | Step-by-step Tutorial | Blogs | Self-Paced Trainer ]