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

  • Home
  • SEARCH
  • 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 80307
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T21:16:56+00:00 2026-05-10T21:16:56+00:00

In Delphi 2006, I am showing a modal form. User input in that form

  • 0

In Delphi 2006, I am showing a modal form. User input in that form can change data that might be displayed currently on the parent form which is the mainform. To reflect those changes I need to force a repaint of some ownerdrawn components on the mainform. I tried to do that like this from the modal form:

MainForm := Application.MainForm; MainForm.Invalidate; MainForm.Update; 

That did not change a bit. I always thought an ‘update’ on the form would always repaint it right away – apparently not so. The painting code itself should be ok since I can move the modal form over those ownerdraw components to force a manual repaint.

But how can I force the repaint programmatically when the data changes?

Edit: I will try Application.ProcessMessages and Refresh next week, thanks for the suggestions.

Sorry for taking so long to answer and thanks to all who responded. Calling Refresh() was part of the solution but it had to be done on the custom draw components, not on the form they were on… Now I would like to accept more than one answer 😉

  • 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. 2026-05-10T21:16:56+00:00Added an answer on May 10, 2026 at 9:16 pm

    Maybe worth mentioning that if you are using a skinning library that can affect things too. I found that I had to get the skinning library to refresh, not the form.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Delphi 2006 app which can pop up a modal dialog in
I have a Delphi 2006 app that pops up a modal alert dialog when
I am writing a program using Delphi 2006 and storing data in XML files
How do I change the default refactoring keyboard mappings in Delphi 2006?
Can someone tell me how to set file permissions in Delphi 2006? I am
When Delphi (2006) goes quantum: I've got something that appears to be both a
I am currently using Delphi 2006 a few days ago I downloaded a copy
We have a Delphi 2006 application that drives a MS SQL Server database. We
I have an application written in Delphi 2006 that was working fine in Windows
I have the following function that works in Delphi 2006, but under Delphi XE2

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.