Hi,
How can I make this format stay?
The bullet is a property of the text. If you save the text in RTF format the bullet is saved to it.
How can I add formats that the users can see when first opening the dialog?
You can do this in code - preferably in the OnClear event.
WPRichText1.NumberStyles.AddNumberStyle(
wp_1, // wp_bullet, wp_circle,
// wp_1, wp_lg_i, wp_i, wp_lg_a, wp_a,
Before1.Text,
After1.Text,
'', // Font, important for bullets
ind, // default indent
0, // Fontsize or default
false, // = legal numbering
0, // group, 1 for outline numbering
0 // level in group 1..10
)
How can I set a new default bullet for all users?
Such as in a global document template? I would say it is best to load the NumberStyles from a stream in OnClear.
The release has a new format option usable for the WPT format:
'WPT-AllNumberstyles'
thgis makes sure all number styles are save to and loaded from a stream. So you can also use WPRichText.SaveToStream to create a document template.
Regards,
Julian Ziersch
Regards,
Julian Ziersch