Highlighted

Why i am not getting help in this community!

Community Beginner ,
Aug 29, 2020

Copy link to clipboard

Copied

I have posted before about a drag drop task i have, again i have the following code and i want to know how i can drag and drop a text (PMString), please help about it if possible:

 

InterfacePtr<IDataExchangeHandler> ourHandler(DNDController->QueryHandler(kTEXTFlavor));
if (ourHandler==nil)
{
    ASSERT_FAIL("Handler nil for our flavor?");
break;
}

if (ourHandler->IsEmpty() == kFalse)
{
ourHandler->Clear();
}

DNDController->SetSourceHandler(ourHandler);

PMString newPageItem("Hello There");

 

InterfacePtr<IStringData> stringData(ourHandler , UseDefaultIID());

stringData->Set(newPageItem);
InterfacePtr<IPMDataObject> item(DNDController->AddDragItem(1));


PMFlavorFlags flavorFlags = 0;

item->PromiseFlavor(kTEXTFlavor, flavorFlags);
result = kTrue;

Topics

SDK

Views

81

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Why i am not getting help in this community!

Community Beginner ,
Aug 29, 2020

Copy link to clipboard

Copied

I have posted before about a drag drop task i have, again i have the following code and i want to know how i can drag and drop a text (PMString), please help about it if possible:

 

InterfacePtr<IDataExchangeHandler> ourHandler(DNDController->QueryHandler(kTEXTFlavor));
if (ourHandler==nil)
{
    ASSERT_FAIL("Handler nil for our flavor?");
break;
}

if (ourHandler->IsEmpty() == kFalse)
{
ourHandler->Clear();
}

DNDController->SetSourceHandler(ourHandler);

PMString newPageItem("Hello There");

 

InterfacePtr<IStringData> stringData(ourHandler , UseDefaultIID());

stringData->Set(newPageItem);
InterfacePtr<IPMDataObject> item(DNDController->AddDragItem(1));


PMFlavorFlags flavorFlags = 0;

item->PromiseFlavor(kTEXTFlavor, flavorFlags);
result = kTrue;

Topics

SDK

Views

82

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Adobe Community Professional ,
Aug 29, 2020

Copy link to clipboard

Copied

(1) Most of those who monitor this forum are not scripters, so only those who write scripts could help. (2) It's a weekend, when many people don't check the forums.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Most Valuable Participant ,
Aug 29, 2020

Copy link to clipboard

Copied

(3) Because nobody felt like answering. You seem to assume it's someone's job to make sure your post is answered. But that isn't how a community works...

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Adobe Community Professional ,
Aug 29, 2020

Copy link to clipboard

Copied

Hi Steve,

it's more complicated.

 

For the "why": This is an SDK problem using, I assume, C++ code and not scripting.

The number of participants in this forum that can answer this is around five to ten people, I think.

 

Scripting ExtendScript is very easy compared with that.

 

Regards,
Uwe Laubender

( ACP )

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Adobe Community Professional ,
Aug 31, 2020

Copy link to clipboard

Copied

Thanks, Uwe, sorry I couldn't tell the difference.

 

 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...