This is a migrated thread and some comments may be shown as answers.

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

2 Answers 119 Views
SplitContainer
This is a migrated thread and some comments may be shown as answers.
Adam
Top achievements
Rank 2
Adam asked on 07 May 2010, 06:54 PM
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 Answers, 1 is accepted

Sort by
0
Accepted
Martin Vasilev
Telerik team
answered on 13 May 2010, 11:34 AM
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.
0
Adam
Top achievements
Rank 2
answered on 13 May 2010, 04:57 PM
Worked like a charm!  Thanks so much!
Tags
SplitContainer
Asked by
Adam
Top achievements
Rank 2
Answers by
Martin Vasilev
Telerik team
Adam
Top achievements
Rank 2
Share this question
or