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 8074569
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T14:41:46+00:00 2026-06-05T14:41:46+00:00

If I want to replace a VCL component TXxx should I base my component

  • 0

If I want to replace a VCL component TXxx should I base my component on TXxx or TCustomXxx?

I am looking to make drop-in replacements for various text-editing components (TEdit, TMemo, etc.) to have WM_PASTE handlers to sanitize inputs to a back-end that is very picky about what it will accept (basically only 7-bit ASCII printable glyphs, spaces, and CR/LF pairs… even tab characters are not acceptable to it). These new components have to go into an existing application, and I want to not do anything I don’t absolutely have to in order to make them work exactly the way the old ones did, except for the non-default paste behavior.

I’ve done one based on TMemo and it seems to work, but somehow or other I have the impression that the recommended approach would be to use TCustomMemo. Is there something I am missing?

  • 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-05T14:41:48+00:00Added an answer on June 5, 2026 at 2:41 pm

    By convention, the difference between TSomething and TCustomSomething is that the latter has no or very few published properties so that you can pick which ones to publish yourself. Otherwise there should not be any difference.

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

Sidebar

Related Questions

I want to replace the 'client' field text box in fogbugz when you edit
I want to replace all mailto: links in html with plain emails. In: text
I want to replace space with tab in a text variable. For example something
I want to replace a token in a text file with a number. The
I want to replace the class with the div text like this : This:
I want to replace a link as plain text format to html format. But
I want to replace special characters in string. For example this is input text
I want replace a(or each) element(number) instead another element(number) in a class while running
I want to replace RBSplitView with NSSplitView in my existing project. The application is
I want to replace the last String which is a , with ) .

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.