CS4:Crashes on right click on text frame
hi,
m using own created tool draw text frame as,
ibtool::ibtool(ipmunknown* boss) :ctool(boss,ktextselectiontool, ktrue,ktrue)
{//constructor ctool;
}
in tracker.cpp have written following code activate text editor in same fame ,
the code crashes indesign on right click in frame cs4(on cs3 behaves fine).
iactivecontext *activecontext=getexecutioncontextsession()->getactivecontext();
icontrolview* view = activecontext->getcontextview();
utils<itexteditorutils>()->activatetexteditorview(view,newitem);
//newitem=pageitemref of textframe drawn tool.
interfaceptr<itool>ipointertool(utils<itoolboxutils>()->querypreviousactivetool(kpointerto olboss));
utils<itoolboxutils>()->setactivetool(ipointertool);
if not activate texteditor doesn't crash.
if knows please me!
thanks.
More discussions in InDesign SDK
adobe
Comments
Post a Comment