trichview.support
Re: ListStyle problem with FormatString |
Author |
Message |
Sergey Tkachenko |
Posted: 07/19/2003 15:50:40 Your workaround is correct. Marker items have cached information - a text string to display. These strings are calculated when you insert/modify/delete markers. But they are not recalculated if you change ListStyle level's properties like FormatString or ListType. Since runtime modification of list markers is rarely used, I do not think that it's necessary to recalculate these strings on each formatting. But in the next update I'll add a new method - RefreshListMarkers which will recalculate these strings for all markers (it must be called before Format). > > I found a quick fix. After setting the FormatString > you need to call SetListMarkerInfo to force the > reformatting of the List Level. > > > rve.Style.listStyles[0].Levels[0].FormatString := s; > rve.SetListMarkerInfo(0, 0, 0, 2, 1, false); > rve.Format; > |
Powered by ABC Amber Outlook Express Converter