FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Setting TreeNode.imageIndex problem

 
Post new topic   Reply to topic     Forum Index -> DFL
View previous topic :: View next topic  
Author Message
PeteC



Joined: 08 Jan 2011
Posts: 1

PostPosted: Sat Jan 08, 2011 5:33 pm    Post subject: Setting TreeNode.imageIndex problem Reply with quote

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);
          }
       }
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> DFL All times are GMT - 6 Hours
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