Kameleon
07-14-2009, 02:49 PM
Hey guys, I was testing my custom Classes in a rollout and I've noticed that the treeview in a rollout acts different than in a windows forms.
For example:
...
dotNetControl tvFolders "KClasses.dnFolders" pos:[17,50] width:200 height:300
...
on tvFolders mouseDown sender eb do
(
print eb
showproperties eb
)
Returns:
dotNetObject:System.Windows.Forms.MouseEventArgs
.Button : <System.Windows.Forms.MouseButtons>, read-only
.Clicks : <System.Int32>, read-only
.Delta : <System.Int32>, read-only
.Location : <System.Drawing.Point>, read-only
.X : <System.Int32>, read-only
.Y : <System.Int32>, read-only
.Empty : <System.EventArgs>, read-only, static
While when using this in a Windows Form:
...
tvFolders = dotnetobject "KClasses.dnFolders"
...
fn tvFolders_MouseDown sender eb =
(
print eb
showproperties eb
)
dotnet.addEventHandler tvFolders "NodeMouseClick" tvFolders_MouseDown
Returns (correctly):
dotNetObject:System.Windows.Forms.TreeNodeMouseClickEventArgs
.Button : <System.Windows.Forms.MouseButtons>, read-only
.Clicks : <System.Int32>, read-only
.Delta : <System.Int32>, read-only
.Location : <System.Drawing.Point>, read-only
.Node : <System.Windows.Forms.TreeNode>, read-only
.X : <System.Int32>, read-only
.Y : <System.Int32>, read-only
.Empty : <System.EventArgs>, read-only, static
Any thoughts on this? I've tried searching but with no avail. Thanks in advance.
For example:
...
dotNetControl tvFolders "KClasses.dnFolders" pos:[17,50] width:200 height:300
...
on tvFolders mouseDown sender eb do
(
print eb
showproperties eb
)
Returns:
dotNetObject:System.Windows.Forms.MouseEventArgs
.Button : <System.Windows.Forms.MouseButtons>, read-only
.Clicks : <System.Int32>, read-only
.Delta : <System.Int32>, read-only
.Location : <System.Drawing.Point>, read-only
.X : <System.Int32>, read-only
.Y : <System.Int32>, read-only
.Empty : <System.EventArgs>, read-only, static
While when using this in a Windows Form:
...
tvFolders = dotnetobject "KClasses.dnFolders"
...
fn tvFolders_MouseDown sender eb =
(
print eb
showproperties eb
)
dotnet.addEventHandler tvFolders "NodeMouseClick" tvFolders_MouseDown
Returns (correctly):
dotNetObject:System.Windows.Forms.TreeNodeMouseClickEventArgs
.Button : <System.Windows.Forms.MouseButtons>, read-only
.Clicks : <System.Int32>, read-only
.Delta : <System.Int32>, read-only
.Location : <System.Drawing.Point>, read-only
.Node : <System.Windows.Forms.TreeNode>, read-only
.X : <System.Int32>, read-only
.Y : <System.Int32>, read-only
.Empty : <System.EventArgs>, read-only, static
Any thoughts on this? I've tried searching but with no avail. Thanks in advance.
