• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

SDK to Change a Frame's Content from kTextFrame to kGraphicFrame

Engaged ,
Sep 21, 2021 Sep 21, 2021

Copy link to clipboard

Copied

Hi,

I am trying to change a Frame's Content from text to graphics, using the SDK.

Basically the SDK equivalent of the UI procedure shown below.

Very best regards,

Olivier

 

2021-09-21_16-07-13.png

TOPICS
How to , SDK

Views

186

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
community guidelines
Community Expert ,
Sep 22, 2021 Sep 22, 2021

Copy link to clipboard

Copied

This seems to be be done via the command kConvertItemToFrameCmdBoss. Set the itemlist of the command to the uidref of the pageitem that needs to be converted and execute the command. Hopefully that would work

-Manan

Votes

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
community guidelines
Engaged ,
Sep 22, 2021 Sep 22, 2021

Copy link to clipboard

Copied

Thank you very much, Manan.

I'll give it a try and report back.

Very best regards,

Olivier

Votes

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
community guidelines
Guide ,
Sep 22, 2021 Sep 22, 2021

Copy link to clipboard

Copied

Have a look at:

CGraphicPlaceBehavior.cpp

 

P.

Votes

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
community guidelines
Engaged ,
Sep 22, 2021 Sep 22, 2021

Copy link to clipboard

Copied

LATEST

Thank you very much, Pickory.

That unit seems to have cut/paste-able code :-).

I'll test it out.

Very best regards,

Olivier

Votes

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
community guidelines