rbWiki > RCL > RichText > RB 7 and WP Tools

RB 7 and WP Tools

Table of contents
No headers

ReportBuilder 7 no longer includes the global ppParentWnd due to modifications required for thread-safety.

You have two choices:

  1. Modify TWPCustomRichTextForPP (or create a descendant class). Override the CreateParams as shown below. CreateParams is a protected method of TWinControl. (note: This is the approach that RB uses so that RichText can be thread-safe for RB Server.)  
  2.   

    procedure TWPCustomRichTextForPP.CreateParams(var Params:
    TCreateParams);
    begin
    
      inherited CreateParams(Params);
    
      {remove ws-child so that no parent window is required}
      Params.Style := Params.Style and not(WS_CHILD);
    
    end; {procedure, CreateParams}

      

  3. Create an invisble form and use that as the parent. (Note: This is not thread-safe).
Tags
none

Files (0)

 
You must login to post a comment.