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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T14:11:15+00:00 2026-05-20T14:11:15+00:00

I want read-only check boxes to be greyed out, but display their checked/unchecked status

  • 0

I want read-only check boxes to be greyed out, but display their checked/unchecked status under Windows (XP and above), but I’m having some issues.

NOTE – Regarding ‘read-only’: It appears that Delphi’s TCheckBox, doesn’t even have a read-only option, this has been ‘faked’ by placing it on a TPanel and disabling that… However the question still remains valid, how does one achieve a read-only check-box that is greyed out, OR a inactive check-box that displays it’s state.

Disabled checkboxes are greyed out, but these don’t display a checked or unchecked state. Read-only check boxes can, but when Windows themes them, they just look like normal editable check boxes. The read-only box cannot have its value changed, but it looks like it can.

In XP with themes turned off (i.e. under classic mode), it works correctly.

Solutions that aren’t acceptable, due to how clumsy/unprofessional they are for a large app or the development time/cash ratio of it, include these:
– Manually greying the text and displaying an image of the checkbox status.
– Disabling themes on the check-boxes, as the look without them is ugly.
– Using custom checkboxes

Screenshots of the issue – These are three checked check boxes, one disabled, one read only and one normal:

enter image description here
enter image description here

Although the read-only and editable check boxes appear different, that’s just because the editable box in the first image has the focus. The read-only one will look the same if it’s the one with the focus, as see in the second image.

  • 1 1 Answer
  • 1 View
  • 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-20T14:11:15+00:00Added an answer on May 20, 2026 at 2:11 pm

    Anonymous has asked for code that demonstrates disabled check boxes showing their checked state.

    program Project28;
    
    uses
      Forms, StdCtrls;
    
    var
      Form: TForm;
    
    procedure Initialise;
    var
      cb1, cb2: TCheckBox;
    begin
      cb1 := TCheckBox.Create(Form);
      cb2 := TCheckBox.Create(Form);
      cb1.Parent := Form;
      cb2.Parent := Form;
      cb1.Top := 0;
      cb2.Top := 16;
      cb1.Enabled := False;
      cb2.Enabled := False;
      cb1.Checked := False;
      cb2.Checked := True;
      cb1.Caption := 'Checkbox1';
      cb2.Caption := 'Checkbox2';
    end;
    
    begin
      Application.Initialize;
      Application.MainFormOnTaskbar := True;
      Application.CreateForm(TForm, Form);
      Initialise;
      Application.Run;
    end.
    

    enter image description here

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

Sidebar

Related Questions

I want to make Raty read-only in the click event, but it does not
I want to read an existing PDF file, get not only the text, but
I want a read only column bound to a boolean that shows a check
I want to create a read-only user in PostgreSQL. The intention is to have
I have a text file. I want read that file. But In that if
I have a form in which I want two check boxes to be required
I have some read-only data that I want to initialise and then re-initialise periodically
This is what I am trying to accomplish: Check if database is read-only in
I've only skimmed through, but I wanted to get my first question out here,
I want to read token from a text document and check for particular keyword.

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.