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

Tree dnd feedback

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.     Forum Index -> DWT
View previous topic :: View next topic  
Author Message
bobef



Joined: 05 Jun 2005
Posts: 269

PostPosted: Sat Jan 07, 2006 5:05 am    Post subject: Tree dnd feedback Reply with quote

DND.FEEDBACK_SELECT is not working for bold (font) tree items. Is it supposed to?
Back to top
View user's profile Send private message
Shawn Liu



Joined: 09 Mar 2005
Posts: 104
Location: Shanghai, China

PostPosted: Sun Jan 08, 2006 7:46 am    Post subject: Re: Tree dnd feedback Reply with quote

bobef wrote:
DND.FEEDBACK_SELECT is not working for bold (font) tree items. Is it supposed to?


I didn't test DND.FEEDBACK_SELECT. Would please post a snippet of code to illustrate the bug?
Back to top
View user's profile Send private message
bobef



Joined: 05 Jun 2005
Posts: 269

PostPosted: Sun Jan 08, 2006 12:22 pm    Post subject: Reply with quote

Add these lines after line 78 (TreeItem subItem = new TreeItem(item, DWT.NONE); ) of the dndtree example and drag an item. Notice the bold items don't get selected.

Code:
Font f=subItem.getFont();
FontData[] d=f.getFontData();
foreach(FontData dd;d) dd.setStyle(DWT.BOLD);
subItem.setFont(new Font(display,d));


Also if you drag it a bit longer you may notice the other bug I wrote about with the tree draging...
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.     Forum Index -> DWT 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