View previous topic :: View next topic |
Author |
Message |
JohnSummit2
Joined: 18 Jan 2011 Posts: 12
|
Posted: Mon Jan 13, 2014 10:23 pm Post subject: How to change VSplit Cursor? |
|
|
I want to change the default VirtualTree split cursors to the Cursors.SizeWE to make the look consistent with the split cursor used by other parts of my app. I can't find any forum posts regarding this or any object properties related to this. Could you please give me some pointers?
Thanks. |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Tue Jan 14, 2014 6:29 am Post subject: |
|
|
Yes you can do this by creating a custom ColumnDividerWidget (as described in the help section "Using Widgets"). Then override the OnMouseEnter method
Code: | public override void OnMouseEnter(MouseEventArgs e)
{
WidgetControl.Cursor = Cursors.SizeWE;
} |
_________________ Infralution Support |
|
Back to top |
|
|
JohnSummit2
Joined: 18 Jan 2011 Posts: 12
|
Posted: Tue Jan 14, 2014 6:57 pm Post subject: |
|
|
Thanks. Works fine! |
|
Back to top |
|
|
|