Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Suite Pro
  New Posts New Posts RSS Feed - OLEDropMode in Treeview hasn' an effect
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

OLEDropMode in Treeview hasn' an effect

 Post Reply Post Reply
Author
Message
FrankM View Drop Down
Groupie
Groupie
Avatar

Joined: 28 June 2010
Location: Germany
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote FrankM Quote  Post ReplyReply Direct Link To This Post Topic: OLEDropMode in Treeview hasn' an effect
    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
Back to Top
FrankM View Drop Down
Groupie
Groupie
Avatar

Joined: 28 June 2010
Location: Germany
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote FrankM Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.125 seconds.