filmov
tv
Learn Delphi Programming | Unit 6.9 | Exploring CheckBoxes (TCheckBox Class)
Показать описание
-- Download some video lessons for FREE
-- Download some Delphi project files used in tutorials for FREE
-- Download some PDF lesson instructions for FREE
-- Participate in chats and discussions
-- Get Early access to new tutorials
-- No need to signup and no obligation
PS: SORT VIDEOS FROM EARLIEST TO LATEST TO START AT THE BEGINNING
----------------------------------------
Delphi Programming Tutorial - Unit 6.9: Exploring CheckBoxes (TCheckBox Class):
This is the second-last out of ten tutorials where we explore the Delphi components we use to create Graphical User Interfaces. We will learn about CheckBoxes (the TCheckBox class) in this video.
A check box is a toggle that lets the user switch an on or off state by checking or unchecking the check box. When the selection is turned on, the check box is checked. Else the check box is blank/unchecked. You create check boxes using Delphi’s TCheckBox class. A TCheckBox component presents an option for the user. The user can check the box to select the option, or uncheck it to deselect the option.
• Set Checked to True to make the box appear checked by default.
• Set AllowGrayed to True to give the check box three possible states: checked, unchecked, and grayed.
• The State property indicates whether the check box is checked (cbChecked), unchecked (cbUnchecked), or grayed (cbGrayed).
Check box controls display one of two Boolean states. The undetermined state is used when other settings make it impossible to determine the current value for the check box.
In this tutorial, we continue with the Graphical User Interface that we worked on in earlier tutorials. We add a TCheckBox on our Form for the user to opt-in or opt-out for newsletters. After completing this tutorial the following properties of our TCheckBox object will be set:
Height – 20
Left – 80
Top -70
Width – 100
Caption – Send NewsLetter
Checked = True
Best viewed in HD. To change your settings to HD:
1. Click on the Gear-icon (Settings) at the bottom of the YouTube Video Player.
2. Select "720p HD" and wait a few moments for the setting to take effect.
Enjoy!
You may also want to visit the following resources for more information:
Комментарии