load userdefined style information to existing text
Posted: Thu Feb 01, 2007 3:30 pm
Hello Sergey,
I have a question:
I use TRichview in an CB6-application where the users can create and format text modules. Later the users can select text modules to generate a document. I merge the document from the selected modules using InsertRVFFromStream.
Until now the RVStyle for the modules comes from a design time component. That is nessecary because I need continous lists in the resulting document.
No I would like to implement a possibility for the users to change the style, for example change the standard font size. I want all the existing text modules to change to the new format too.
I tried SaveINI (where the users can change the style) and LoadIni (into the existing text modules), but afterwards the lists in the resulting documents are not continous any more. So LoadINI seems to create a new list style each time.
Then I wondered if I can transfer only the style information (instead of the whole style) from the ini file to the existing style to keep the same liststyle and so the numbering to stay continous. So I would like to make rvstyle2->LoadINI, look for styles that exist in rvstyle1 (which is used for the text modules) and rvstyle2, and then transfer the style information between the corresponding styles. But now the problem is: the style names are not unique. How can I recognise them?
Can you give me a hint?
Thanks a lot,
Usch
I have a question:
I use TRichview in an CB6-application where the users can create and format text modules. Later the users can select text modules to generate a document. I merge the document from the selected modules using InsertRVFFromStream.
Until now the RVStyle for the modules comes from a design time component. That is nessecary because I need continous lists in the resulting document.
No I would like to implement a possibility for the users to change the style, for example change the standard font size. I want all the existing text modules to change to the new format too.
I tried SaveINI (where the users can change the style) and LoadIni (into the existing text modules), but afterwards the lists in the resulting documents are not continous any more. So LoadINI seems to create a new list style each time.
Then I wondered if I can transfer only the style information (instead of the whole style) from the ini file to the existing style to keep the same liststyle and so the numbering to stay continous. So I would like to make rvstyle2->LoadINI, look for styles that exist in rvstyle1 (which is used for the text modules) and rvstyle2, and then transfer the style information between the corresponding styles. But now the problem is: the style names are not unique. How can I recognise them?
Can you give me a hint?
Thanks a lot,
Usch