<< Click to Display Table of Contents >> TNGHtmlFormat |
|
NGDropSource.Add(CF.HTML.Data(s))
.Execute;
NGDropTarget.Register(MyTargetPanel, procedure(C: TNGTargetContext)
var
s: string;
begin
if C.Accept(CF.HTML.Ref(@s)) then
ShowHtml(s);
end);
HTML format is bit tricky, and contain special text headers, so please look MSDN Documentation to understand it. NG Drag&Drop does not add/parse such header data internally, so it should be added manually.
Please, look at provided demo project to understand how to work with HTML data format.