Infralution Support Forum Index Infralution Support
Support groups for Infralution products
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to change VSplit Cursor?

 
Post new topic   Reply to topic    Infralution Support Forum Index -> Virtual Tree Support
View previous topic :: View next topic  
Author Message
JohnSummit2



Joined: 18 Jan 2011
Posts: 12

PostPosted: Mon Jan 13, 2014 10:23 pm    Post subject: How to change VSplit Cursor? Reply with quote

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
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 4999

PostPosted: Tue Jan 14, 2014 6:29 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
JohnSummit2



Joined: 18 Jan 2011
Posts: 12

PostPosted: Tue Jan 14, 2014 6:57 pm    Post subject: Reply with quote

Thanks. Works fine!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Infralution Support Forum Index -> Virtual Tree Support All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group