Hello,
Trying to create a split screen in code. As a test I've dropped two WPRichText editors on a form, set AllowMultiView to True and then dropped a TWPRTFStorage control and a TButton on the form.
In the button onClick event I add the following code:
Code
RTFStorage.Links.Clear;
StorageLink := RTFStorage.Links.Add;
StorageLink.RTFControl := WPRichText1;
StorageLink.TextName := 'Editor1';
StorageLink.DisplayMode := wpDisplayTextStream;
StorageLink := RTFStorage.Links.Add;
StorageLink.RTFControl := WPRichText2;
StorageLink.TextName := 'Editor1';
StorageLink.DisplayMode := wpDisplayTextStream;
Alles anzeigen
This doesnt work. The second RichText editor stays blank. What am I missing? When I create the links using the Links property editor at design time it works!
Regards,
Paul