WPCubed Product Support

Legal outline numbering

I am experiencing some difficulties to get these to work correctly.

What i want to create is number list as following:

Inside a TWPBulletDlg i can edit the outline styles and select Legal mode, however this isn't having the desired effect.

In the demo 'Numbering' there is an example of using legal outline numbering. This example doesn't work correctly since i needed to delete the indent values first before applying a new outlinestyle. (Else the numbers overlap the text).

Now the problem here is that i'm not creating a new style, but replacing an existing outline style, changing all numbered list that were using this style. To create a new style i have to loop through all existing styles to find out which group is not yet being used. (Is there no other way to do this?)

I can probably get all of this working, but i would be spending much time on something where probably a better solution exists that i'm missing.

#1 ♥ 0
2.6k Views 2 users read 2 min

Hi,

If you get a refereneze to the current outlines style (Numberstyles) you can read the property Group from there. Now you can update all the styles (loop through NumberStyles) which use that group. Normally it should be '1'.

The items in NumberStyles all have a property 'TextStyle'. That is the usual TWPTextStyle class which is also the anchestor of TParagragrap. To change the props use ASet()

Julian

#2 ♥ 0
This category is archived. No new posts are possible.