Copy link to clipboard
Copied
Hello,
Applying the following code on a normal graphic box works fine. However it does not work on an anchored box. Appreciate your help and suggestions:
UIDList newSplineItemList(BoxIDRef); //BoxIDRef is the UIDRef of the anchored box
InterfacePtr<ICommand> FillTintSplineCmd(Utils<IGraphicAttributeUtils>()->CreateFillTintCommand(pcr->backShade, &newSplineItemList, kTrue, kTrue));
if (FillTintSplineCmd == nil)
{
status = kFailure;
QError(QERROR, "185620-cannot create the command to apply FillTint");
return status;
}
status = CmdUtils::ProcessCommand(FillTintSplineCmd);
Use ::GetClass() to determine the class of your "anchored box".
That's probably something related to the anchoring.
Then look around for nested objects using IHierarchy.
Copy link to clipboard
Copied
Use ::GetClass() to determine the class of your "anchored box".
That's probably something related to the anchoring.
Then look around for nested objects using IHierarchy.