[Demo] Plain-text checkboxes
Posted: Tue Oct 20, 2020 11:06 am
This demo shows how to implement checkboxes in TRichViewEdit using plain text.
No controls or images are used inside the editor in this demo: check marks are implemented as Unicode characters. Checkboxes are implemented as hyperlinks.
It shoes how to synchronize checkboxes in the editor and a group of TCheckBox controls.
No controls or images are used inside the editor in this demo: check marks are implemented as Unicode characters. Checkboxes are implemented as hyperlinks.
This demo has methods:
Code: Select all
// gets the checkbox value
function GetCheckBoxValue(const CheckBoxName: String): Boolean;
// sets the checkbox value
procedure SetCheckBoxValue(const CheckBoxName: String; Value: Boolean);
// occurs when a checkbox is clicked
procedure CheckBoxClickInEditor(const CheckBoxName: String; Checked: Boolean);