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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T06:40:46+00:00 2026-05-28T06:40:46+00:00

Further to my post on custom format clipboard, I am considering the possibility of

  • 0

Further to my post on custom format clipboard, I am considering the possibility of writing my own custom clipboad monitoring component.

Prior to the statement:

ClipboardWindow:=SetClipboardViewer(Form1.Handle);

I have seen in a sample code I studied the following snippet:

OpenClipboard(Form1.Handle); 
EmptyClipboard; 
CloseClipboard;

whereas others don’t include a cleaning code at all. I am confused.

I believe Clipbrd.TClipboard.Clear just does the same the VCL way.

My question is:

When clearing the clipboard before joining the clipboard chain is mandatory ?

  • 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-05-28T06:40:47+00:00Added an answer on May 28, 2026 at 6:40 am

    No, there is no need to clear the clipboard. Indeed, you shouldn’t. Other clipboard monitors will needlessly react to the update, and the user may want to paste that thing that you just destroyed.
    Additionally, there is a lot more to clipboard chain monitoring than just adding yourself to the chain. You must pass the events along to the next window (result handle from SetClipboardViewer), and you must, without failure, remove yourself from the chain when your app exits. Also, you need to avoid blocking the clipboard unnecessarily. Typically, this means waiting to register for the clipboard events until you’re ready to actually process events. For example, don’t make it the first thing in your startup, if you’re going to subsequently open a dialog asking the user where he wants to store the data, if he has a license key, etc..

    I have tips, as well as common pitfalls here:
    http://www.clipboardextender.com/developing-clipboard-aware-programs-for-windows/6

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

Sidebar

Related Questions

Using Marius Gedminas's excellent blog post , I have created a custom traverser for
I've created a custom post type with categories and sub categories, what I need
More specifically, how to test further? I saw another post where the answer used
Further to my previous post , I would like to copy dependent objects (such
Further to my previous post about obtaining data from objects on the server using
EDIT: There's a further detail I left out with my original post. The program
Further to my question on disabling validators using javascript - Disable ASP.NET validators with
Will there be any further resultset to process if the lookup table in the
I'm seeking further clarification after seeing What is responsible for releasing NSWindowController objects? I'm
Background (question further down) I've been Googling this back and forth reading RFCs and

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.