mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
.reference
git-svn-id: svn://ultimatepp.org/upp/trunk@11764 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
c02bb2da33
commit
62a1d3c11f
1 changed files with 4 additions and 2 deletions
|
|
@ -13,7 +13,9 @@ struct MyApp : TopWindow {
|
|||
{
|
||||
tree.AdjustAction(parent, d);
|
||||
if(d.Accept(MyDnDName)) {
|
||||
tree.SetCursor(tree.Insert(parent, ii, Image(), ~d));
|
||||
String s = ~d;
|
||||
s.Trim((int)strlen(~s)); // raw data can be padded with zeroes
|
||||
tree.SetCursor(tree.Insert(parent, ii, Image(), s));
|
||||
tree.SetFocus();
|
||||
}
|
||||
}
|
||||
|
|
@ -30,7 +32,7 @@ struct MyApp : TopWindow {
|
|||
iw.DrawText(0, 0, text);
|
||||
|
||||
VectorMap<String, ClipData> clip;
|
||||
clip.Add(MyDnDName, text);
|
||||
clip.Add(MyDnDName, text); // we are putting raw binary data here
|
||||
|
||||
if(DoDragAndDrop(clip, iw) == DND_MOVE)
|
||||
tree.Remove(id);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue