.reference

git-svn-id: svn://ultimatepp.org/upp/trunk@11764 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2018-02-06 10:50:35 +00:00
parent c02bb2da33
commit 62a1d3c11f

View file

@ -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);