Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8736599
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T10:20:26+00:00 2026-06-13T10:20:26+00:00

I have a third party component that displays a print preview form. I would

  • 0

I have a third party component that displays a print preview form. I would like to change the caption of the preview form to something more appropriate. Unfortunately I do not have the source for the third party component and the component does not provide the functionality.

Is it possible to somehow catch the modal form as it is being displayed and set it’s properties before it is shown?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T10:20:28+00:00Added an answer on June 13, 2026 at 10:20 am

    The modal form will cause the calling form to deactivate, you can listen for WM_ACTIVATE messages on the form that is active before the modal form is shown. You’ll have the activating window’s handle in the message handler, you can test that if it is of a form of the type of the modal form. Below example tests for the class name, which you can get with something like Spy++. Note that deactivation happens briefly after the modal form has become visible, but I don’t think it would be possible to notice the differing caption.

    type
      TForm1 = class(TForm)
        ..
      protected
        procedure WMActivate(var Message: TWMActivate); message WM_ACTIVATE;
      end;
    
    procedure TForm1.WMActivate(var Message: TWMActivate);
    var
      Form: TWinControl;
    begin
      if Message.Active = WA_INACTIVE then begin
        Form := FindControl(Message.ActiveWindow);
        if Form is TCustomForm then begin
          if TCustomForm(Form).ClassName = 'TThirdPartyModalForm' then
            TCustomForm(Form).Caption := 'My caption';
        end;
      end;
      inherited;
    end;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

IE7/Windows XP I have a third party component in my page that does a
I have a third party COM component (they don't offer a .Net assy), that
I have a third party component that I am trying to write unit tests
We have old .net 1.1 project that is using a third party component. Aparently
I have a third party component that produce serialized xml and stored procedure that
I frequently have svn-based projects that include third-party components such as the TinyMCE (in-browser
I have a third party component I'm using and I'm seeing some issues with
I have a third party component written in C/C++ (on VS 2010) which can
I have third-party C code that writes data to a file. I want to
I have third party sites that link to some images on my site. The

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.