TCheckBox is a VCL control showing a box that can be checked or unchecked. It is defined in the StdCtrls.pas unit.
Questions tagged [tcheckbox]
22 questions
14
votes
9 answers
Change CheckBox state without calling OnClick Event
I'm wondering so when I change state of CheckBox
CheckBox->Checked=false;
It calls CheckBoxOnClick Event , how to avoid it ?

cnd
- 32,616
- 62
- 183
- 313
11
votes
3 answers
Put a TCheckBox inside a TStringGrid in Delphi
I want to put a TCheckBox inside a TStringGrid in Delphi in every cell of certain column. I'm using Delphi XE.

alexzm1
- 563
- 2
- 7
- 14
10
votes
2 answers
How to add a checkbox to TSaveDialog in Delphi 2010
I want to add a checkbox or other VCL component to the TSaveDialog.
Cantu says,
The new Vista Open and Save dialog boxes (implemented by the IFileOpenDialog and
IFileSaveDialog interfaces) are directly mapped by the new FileOpenDialog and
…

RobertFrank
- 7,332
- 11
- 53
- 99
7
votes
4 answers
CheckBox in a DBGrid
My question is how to set a column in dbgrid in Delphi 7 which will be with a checkbox items.
Thanks in advance.

Jordan Borisov
- 1,603
- 6
- 34
- 69
5
votes
3 answers
How to use a checkbox in Delphi?
Right now, I have the code:
begin
If odd(GetAsyncKeyState(VK_snapshot)) then
If CheckBox1.Checked then
begin
And then it continues on with the rest of the code. Is that the correct way of doing that, or am I doing it wrong?

PuppyKevin
- 2,967
- 7
- 25
- 27
5
votes
4 answers
How to verify if the checkbox is checked in a Delphi TTaskDialog?
OK, this should be easy, but I do not find the solution, at least not in the not so good documentation.. In a TTaskDialog, you have the option to add one check-box. You can control its initial state by means of the tfVerificationFlagChecked flag in…

Andreas Rejbrand
- 105,602
- 8
- 282
- 384
3
votes
2 answers
How to show a check box in TListView header column?
I need to have a check box in a column header of a TListView:
I have tried the following code:
with CheckBox1 do
begin
Parent := ListView1;
Top := 0;
Left := 4;
end;
but the check box doesn't always work as expected. How can I properly…

dedoki
- 709
- 4
- 14
- 24
3
votes
1 answer
Using checkbox in virtual mode listview
I am learning to make virtual mode listview. So far my problem is I can not use checkbox in the listview. I already read a link from http://delphi-kb.blogspot.com/2011/02/draw-checkboxes-in-virtual-mode.html but I don't see any checkbox. Any idea?

Charles Sungkono
- 145
- 2
- 10
3
votes
1 answer
How to set value for checkbox via EmbeddedWB.FillForm ? (Delphi)
how can i set value for a checkbox via FillForm method ?
I tried these but doesn't work :
W.FillForm('Chkname', 'True');
W.FillForm('Chkname', '1');
W.FillForm('Chkname', '', 1);

Kermia
- 4,171
- 13
- 64
- 105
3
votes
5 answers
Transparent checkbox with theme-support?
I'm looking for a simple, transparent checkbox component that properly supports XP/Vista/7 theming.
It should also work with Delphi 7.
I've found a component on Torry's that's not working properly, and I know that Raize components has a transparent…

Steve
- 2,510
- 4
- 34
- 53
2
votes
4 answers
Why doesn't OnUpdate trigger for invisible components
When I make a component invisible by setting the connected TAction to invisible, the onupdate event will not trigger anymore. To recreate, do the following.
Create a new VCL forms application
Drop a button, a checkbox and an actionlist on the…

Svein Bringsli
- 5,640
- 7
- 41
- 73
2
votes
2 answers
How to display a "greyed-out" read-only checkbox using Delphi under windows themes
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…

Anonymous
- 31
- 1
- 4
2
votes
1 answer
Is it possible to store additional info (just one item) in a TCheckListBox?
I'm using a list of checkboxes on a form where they are actually TCheckListBox components.
I can use this method to show the clicked item:
ShowMessage(MyCheckBoxes.GetSelectedText);
In addition to the visible text in each row, I'd like to store an…

itsols
- 5,406
- 7
- 51
- 95
1
vote
1 answer
C++ Builder 11 - TCheckBox Scales When Form Scaled is False - Work around?
I submitted a bug (RSP-30892) to Embarcadero over 1.5 years ago (since Rad Studio 10.4) regarding the following issue:
TCheckBox is scaling when it shouldn't when Windows 10 is set to 150% scaling. The form property is set to Scaled=false, the…

Anthony West
- 66
- 7
1
vote
2 answers
Event Handler for Dynamically Created CheckBox
I wrote a C++ program using Borland C++ Builder 5. The program dynamically creates an array of TCheckBox objects. I have tried to write an OnClick event handler that would identify which checkbox is being clicked and execute some instructions…

Doug
- 21
- 2