Print Page | Close Window

OLEDropMode in Treeview hasn' an effect

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Suite Pro
Forum Description: Topics Related to Codejock Suite Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=16903
Printed Date: 21 December 2024 at 9:15pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: OLEDropMode in Treeview hasn' an effect
Posted By: FrankM
Subject: OLEDropMode in Treeview hasn' an effect
Date Posted: 02 July 2010 at 8:03am

Hi there

 

I have a little Problem. I create an Usercontrol with a Xtreme Suite treeview. I have some Properties also a Property like:

 

Public Property Get OLEDropMode() As XtremeSuiteControls.OLEDropConstants

    OLEDropMode = TreeView1.OLEDropMode

End Property

 

Public Property Let OLEDropMode(ByVal newOLEDropMode As XtremeSuiteControls.OLEDropConstants)

    TreeView1.OLEDropMode = newOLEDropMode

    PropertyChanged "OLEDropMode"

End Property

 

Private Sub UserControl_ReadProperties(PropBag As PropertyBag)

    TreeView1.OLEDropMode = PropBag.ReadProperty("OLEDropMode", XtremeSuiteControls.OLEDropConstants.xtpOLEDropNone)

 End Sub

 

Private Sub UserControl_WriteProperties(PropBag As PropertyBag)

    Call PropBag.WriteProperty("OLEDropMode", TreeView1.OLEDropMode, XtremeSuiteControls.OLEDropConstants.xtpOLEDropNone)

End Sub

 

When I use my Control in a form, the OLEDropMode doesn’t take an effect. I need some help please

thx

 
p.s. also in the listview control



Replies:
Posted By: FrankM
Date Posted: 14 July 2010 at 10:12am
Hello
 
Problem is solved.
 
Message from Oleg
 
>>Hello,

>>Thanks, agree that problem. TreeView doesn't recrete self after OLEDropMode propety was changed - it was designed to be used only in designtime.

>>As workaround you can update some propety that will recreate tree like HideSelection:

>>Public Property Let OLEDropMode(ByVal newOLEDropMode As XtremeSuiteControls.OLEDropConstants)
>> TreeView1.OLEDropMode = newOLEDropMode
>> TreeView1.HideSelection = TreeView1.HideSelection
>> PropertyChanged "OLEDropMode"
>>End Property  
 
bye


-------------
Product xtreme Suite 15.2.1 OS: Windows 7 64bit and Windows XP Prof SP 3



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net