PeteC
Joined: 08 Jan 2011 Posts: 1
|
Posted: Sat Jan 08, 2011 5:33 pm Post subject: Setting TreeNode.imageIndex problem |
|
|
I've just started playing with dfl because I've been looking for a nice, simple, easy to use GUI library, and it seems really good. Nice work!
One problem I ran into was that setting imageIndex on a TreeNode didn't seem to work. It looks like it's just that Message m in the setter is not being initialized before the call to tview.prevWndProc(m);
Code: |
--- treeview.d.orig 2011-01-08 23:11:21.000000000 +0000
+++ treeview.d 2011-01-08 23:29:53.208280600 +0000
@@ -584,6 +584,7 @@
item.mask |= TVIF_SELECTEDIMAGE;
item.iSelectedImage = _imgidx;
}
+ m = Message(tview.handle, TVM_SETITEMA, 0, cast(LPARAM)&item);
tview.prevWndProc(m);
}
}
|
|
|