Hi,
Par.CharPos[ParentPosInPar].width works fine as long as PositionMode is wpotChar, if changed to wpotPar then Par.CharPos[ParentPosInPar].width is always 0.
What is the solution to get the width whatever the PositionMode ?
Thanks
Karine
Hi,
Par.CharPos[ParentPosInPar].width works fine as long as PositionMode is wpotChar, if changed to wpotPar then Par.CharPos[ParentPosInPar].width is always 0.
What is the solution to get the width whatever the PositionMode ?
Thanks
Karine
Sorry to bother again ...
When I try to install the WPTools5 Pro Bundle, Delphi 2009 check is grayed.
I can only have versions untill Delphi 2007
Need some help : )
Thanks
Karine
Hello,
When will WPTools5 be available for Delphi 2009 ?
Soon, I hope !
Thanks
Karine
It works fine.
Thanks a lot.
Karine
Hello,
In WPTools 4, I was used to use ReadFromPar procedure, to apply the selected paragraph attributes to my ParStyle stored in a StyleCollection. Like this :
var AttrOnly: TWPStyleElementsChar;
parOnly : TWPStyleElementsPar;
pa : PTAttr;
begin
pa := WPRichText.CPAttr;
AttrOnly := [];
include(AttrOnly, wpseFontBold);
include(AttrOnly, wpseFontItalic);
include(AttrOnly, wpseFontUnderline);
include(AttrOnly, wpseFontFont);
include(AttrOnly, wpseFontSize);
include(AttrOnly, wpseFontColor);
include(AttrOnly, wpseFontBGColor);
parOnly := [];
include(parOnly, wpseColor);
include(parOnly, wpseBrdLines);
include(parOnly, wpseBrdWidth);
include(parOnly, wpseBrdColor);
include(parOnly, wpseShading);
include(parOnly, wpseNumber);
include(parOnly, wpseTabs);
include(parOnly, wpseSpaceBefore);
include(parOnly, wpseMultSpaceBetween);
include(parOnly, wpseSpaceBetween);
include(parOnly, wpseSpaceAfter);
include(parOnly, wpseAlign);
include(parOnly, wpseIsOutline);
include(parOnly, wpseBorderSpacing);
include(parOnly, wpseKeepTogether);
include(parOnly, wpseKeepNext);
include(parOnly, wpseIndentLeft);
include(parOnly, wpseIndentRight);
include(parOnly, wpseIndentFirst);
WPStyleCollection.StyleByName(MyStyle).ReadFromPar(WPRichText.ActivePar, pa,
WPRichText.Memo, TRUE, parOnly, AttrOnly);
ClearAttributes(wpRichText.ActivePar,0,0,WPRichText.GetStyleNrForName(MyStyle));
WPRichText.ActivePar.style := WPRichText.GetStyleNrForName(MyStyle);
WPStyleCollection.UpdateAll(WPRichText,False);
end;
Alles anzeigen
I now use WPT5 and a global RTFProps and cannot managed to handle this behaviour again.
Someone can help me ?
Thanks
Karine
Hello,
I would like to know : if I purchase WPViewPDF, will I have the code source provided too ?
Regards
Karine