View previous topic :: View next topic |
Author |
Message |
bobef
Joined: 05 Jun 2005 Posts: 269
|
Posted: Sat Jan 07, 2006 5:05 am Post subject: Tree dnd feedback |
|
|
DND.FEEDBACK_SELECT is not working for bold (font) tree items. Is it supposed to? |
|
Back to top |
|
|
Shawn Liu
Joined: 09 Mar 2005 Posts: 104 Location: Shanghai, China
|
Posted: Sun Jan 08, 2006 7:46 am Post subject: Re: Tree dnd feedback |
|
|
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 |
|
|
bobef
Joined: 05 Jun 2005 Posts: 269
|
Posted: Sun Jan 08, 2006 12:22 pm Post subject: |
|
|
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 |
|
|
|